edit

actual external fun edit(edit: InputEdit)(source)

Edit this node to keep it in-sync with source code that has been edited.

This method is only rarely needed. When you edit a syntax tree via Tree.edit, all the nodes that you retrieve from the tree afterward will already reflect the edit. You only need to use this when you have a specific Node instance that you want to keep and continue to use after an edit.

expect fun edit(edit: InputEdit)(source)

Edit this node to keep it in-sync with source code that has been edited.

This method is only rarely needed. When you edit a syntax tree via Tree.edit, all the nodes that you retrieve from the tree afterward will already reflect the edit. You only need to use this when you have a specific Node instance that you want to keep and continue to use after an edit.

actual external fun edit(edit: InputEdit)(source)

Edit this node to keep it in-sync with source code that has been edited.

This method is only rarely needed. When you edit a syntax tree via Tree.edit, all the nodes that you retrieve from the tree afterward will already reflect the edit. You only need to use this when you have a specific Node instance that you want to keep and continue to use after an edit.

Edit this node to keep it in-sync with source code that has been edited.

This method is only rarely needed. When you edit a syntax tree via Tree.edit, all the nodes that you retrieve from the tree afterward will already reflect the edit. You only need to use this when you have a specific Node instance that you want to keep and continue to use after an edit.