Introduce FixIt.Change
API that replaces the child of a syntax node
#2205
Labels
enhancement
New feature or request
Currently, Fix-Its are only able to replace syntax nodes but that makes it impossible to replace a
nil
node by a proper syntax node.We should offer a
FixIt.Change
that replaces the child of a syntax node, with a signature that’s something like this (written in GitHub, not sure if it compiles, but it gets the idea across).FixItApplier
will need to be updated to also handle this new change kindrdar://115562892
The text was updated successfully, but these errors were encountered: