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 Tree interface which can hold the property that the children nodes are unordered.
Checks in ChawatheGenerator to eliminate the move actions if the parent of node is UNORDERED and they are mapped to the same parent.
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:
Tree
interface which can hold the property that the children nodes are unordered.ChawatheGenerator
to eliminate the move actions if the parent of node isUNORDERED
and they are mapped to the same parent.