Lukas Wirth
9fe206956f
fix: Fix ast::IfExpr child accessors
2023-03-15 14:34:31 +01:00
Lukas Wirth
41a46a78f2
Make tt generic over the span data
2023-01-31 14:58:16 +01:00
Yuri Astrakhan
e16c76e3c3
Inline all format arguments where possible
...
This makes code more readale and concise,
moving all format arguments like `format!("{}", foo)`
into the more compact `format!("{foo}")` form.
The change was automatically created with, so there are far less change
of an accidental typo.
```
cargo clippy --fix -- -A clippy::all -W clippy::uninlined_format_args
```
2022-12-24 14:36:10 -05:00
Ryo Yoshida
5b07061011
Test TokenTree
s' equality modulo Punct
s' spacing
2022-11-10 19:40:40 +09:00
Ryo Yoshida
4f415fc348
Ignore outermost non-delimited Subtree
when reversing fixups
2022-11-10 19:22:20 +09:00
Ryo Yoshida
41b0c54c07
Fix tt::Punct
's spacing calculation
2022-11-05 19:42:09 +09:00
Edwin Cheng
c47914c6cf
Fixes tests
2022-08-10 16:29:23 +08:00
fprasx
ab44a81150
Fixed up for loops, added fixme with problem
...
https://github.com/rust-lang/rust-analyzer/pull/12937#discussion_r937633695
2022-08-04 10:43:09 -04:00
fprasx
d6d8a1c18f
Shortened fixup for match, added cases for for
...
Previously added a blank _ => {} for match statements
2022-08-04 09:28:25 -04:00
fprasx
ef2eabbfa8
Tidy formatted
2022-08-03 16:27:43 -04:00
fprasx
d513b4c8ba
Added fixup for for loops w/ missing parts
2022-08-03 15:59:17 -04:00
fprasx
5cb3e7a41b
Added fixup for match statements w/ missing parts
...
Passes tests
2022-08-03 15:59:17 -04:00
Paul Lange
c16e4f260f
Add syntax fixup for loop
2022-07-27 18:18:51 +02:00
Paul Lange
a969481952
Add syntax fixup for while loops
2022-07-27 18:16:58 +02:00
Florian Diebold
0a4065d12d
Improve syntax fixup a bit, handle incomplete if
...
- allow appending tokens after a token, not just a node
- allow inserting delimiters (and remove them again)
- fix up `if {}` and `if` without anything following
2022-07-16 13:03:32 +02:00
Peh
1f011fa4a3
style: rename crates to kebab case
2022-05-01 10:48:58 +00:00