tree-edit icon indicating copy to clipboard operation
tree-edit copied to clipboard

Changing node type while preserving contents

Open ethan-leba opened this issue 4 years ago • 0 comments
trafficstars

Let's say we want to turn this expression String input = null; into input = null; by deleting String. This seems reasonable, but would take us at the syntax-tree level from a local_variable_declaration to an (expression_statement (assignment_expression)). How can we support this?

ethan-leba avatar Oct 24 '21 00:10 ethan-leba