gumtree
gumtree copied to clipboard
Add support for including unordered nodes
This feature is useful for nodes in the AST of source code (and even bytecode) that are independent of order. For example, import statements, method declarations. etc.
The change would require:
- Creating an implementation of
Treeinterface which can hold the property that the children nodes are unordered. - Checks in
ChawatheGeneratorto eliminate the move actions if the parent of node isUNORDEREDand they are mapped to the same parent.