Hmikihiro
c57a42acf3
remvoe add_attr edit_in_place.rs because it use ted.
2025-08-04 21:52:49 +09:00
Shoyu Vanilla (Flint)
68e7ec90bf
Merge pull request #20345 from Hmikihiro/Migrate_add_trait_assoc_items_to_impl
...
metrics / build_metrics (push) Has been cancelled
rustdoc / rustdoc (push) Has been cancelled
metrics / other_metrics (diesel-1.4.8) (push) Has been cancelled
metrics / other_metrics (hyper-0.14.18) (push) Has been cancelled
metrics / other_metrics (ripgrep-13.0.0) (push) Has been cancelled
metrics / other_metrics (self) (push) Has been cancelled
metrics / other_metrics (webrender-2022) (push) Has been cancelled
metrics / generate_final_metrics (push) Has been cancelled
add `SyntaxEditor::delete_all` to migrate utils.rs `add_trait_assoc_items_to_impl`
2025-07-31 15:11:22 +00:00
Lukas Wirth
8ce30264c8
cargo clippy --fix
2025-07-31 10:55:10 +02:00
Hmikihiro
e600060680
add SyntaxEditor::delete_all
to migrate utils.rs add_trait_assoc_items_to_impl
2025-07-30 23:53:05 +09:00
Hayashi Mikihiro
9cc03e01c5
migrate generate new
2025-07-21 17:22:03 +09:00
Lukas Wirth
2c01609d6d
minor: Handle match arm commas in make::match_arm
...
Co-authored-by: Giga Bowser <45986823+Giga-Bowser@users.noreply.github.com>
2025-07-04 11:08:28 +02:00
Prajwal S N
bb493649d2
fix: migrate unmerge_use
to syntax editor
...
Also ensures that attributes on the use item are applied to the new use
item when unmerging.
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-04-28 17:31:23 +05:30
Lukas Wirth
33c3f67764
Merge pull request #19511 from snprajwal/fixmes
...
chore: clean up some FIXMEs
2025-04-07 10:30:46 +00:00
BenjaminBrienen
2462624a7d
prefer default over new
2025-04-04 15:49:50 +02:00
Prajwal S N
72c7cd3869
chore: clean up some FIXMEs
...
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-04-04 17:40:56 +05:30
BenjaminBrienen
7535bb4661
cargo fmt
2025-03-15 21:32:01 +01:00
Giga Bowser
b4f2d62952
internal: Improve reporting of intersecting changes
2025-02-25 11:46:45 -05:00
Giga Bowser
32ff06d51c
internal: Generally improve make::match_arm
...
`make::match_arm` should take a single `ast::Pat`, and callers can handle creating an `ast::OrPat` if need be. It should also take a proper `ast::MatchGuard`, instead of making one itself.
2025-01-06 15:58:39 -06:00
Giga Bowser
905e1e1fc0
internal: move make::expr_unit
to make::ext::expr_unit
...
`expr_unit` is just a shortcut for a common expression, so it belongs in `make::ext`
2025-01-06 15:58:39 -06:00
Giga Bowser
f388482119
internal: make::expr_tuple
should return ast::TupleExpr
2025-01-06 15:32:08 -06:00
Giga Bowser
5eb8affdc5
fix: Don't produce ChangedAncestor
for SyntaxToken
s
2024-12-06 10:01:34 -05:00
Tarek
9157761f5d
refactor: move editing for ast using SyntaxEditor
to a separate file
...
Signed-off-by: Tarek <tareknaser360@gmail.com>
2024-12-04 14:51:48 +02:00
DropDemBits
05b48e4005
internal: Add SyntaxFactory
to ease generating nodes with syntax mappings
2024-09-26 16:28:48 -04:00
DropDemBits
12c62662aa
bundle old root into SyntaxEdit
result
...
useful for `SourceChangeBuilder` so it can still perform a tree diff without having to store the old root separately
2024-09-03 11:20:23 -04:00
DropDemBits
69e8393963
misc fixes
2024-09-02 22:53:54 -04:00
DropDemBits
d929121f7b
handle replace_with_many and replace_all
2024-09-02 22:27:14 -04:00
DropDemBits
41dbaa415a
support replacing root node
2024-09-02 21:42:08 -04:00
DropDemBits
21bb04d3a6
support insert{_all}
2024-09-02 19:11:39 -04:00
DropDemBits
3440408087
propagate annotations to mapped elements
2024-09-02 18:24:47 -04:00
DropDemBits
db649195e9
handle merging two syntax editors together
2024-09-02 00:09:30 -04:00
DropDemBits
883e429179
elaborate SyntaxEdit comments
2024-09-02 00:02:32 -04:00
DropDemBits
ad9595d729
wip: new syntax tree editor
2024-09-02 00:02:32 -04:00