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 SyntaxTokens
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