Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for including unordered nodes #373

Open
algomaster99 opened this issue Oct 14, 2024 · 0 comments
Open

Add support for including unordered nodes #373

algomaster99 opened this issue Oct 14, 2024 · 0 comments

Comments

@algomaster99
Copy link
Contributor

algomaster99 commented Oct 14, 2024

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:

  1. Creating an implementation of Tree interface which can hold the property that the children nodes are unordered.
  2. Checks in ChawatheGenerator to eliminate the move actions if the parent of node is UNORDERED and they are mapped to the same parent.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant