Skip to content

removing Expression from the AST tree#1294

Merged
Janther merged 1 commit intomainfrom
skip-variants-5
Oct 29, 2025
Merged

removing Expression from the AST tree#1294
Janther merged 1 commit intomainfrom
skip-variants-5

Conversation

@Janther
Copy link
Copy Markdown
Member

@Janther Janther commented Oct 22, 2025

This is one of the biggest changes in the process of removing PolymorphicNodes from the tree.

Expressions are used over all the AST tree therefore there's already a vast amount of files that needed to change.

Also the queries for the grandparent node were designed this way because we would navigate through an Expression. By removing the Expression all of these queries needed to be redesigned to a parent query. In this case there are some for loops that where increasing the index by 2 to skip the Expression, now they increase by 1.

createHugFunction now has to create a smaller tree when adding parentheses because there is no need for Expression now.

@Janther Janther requested a review from fvictorio October 22, 2025 11:43
@Janther Janther merged commit 3dfa407 into main Oct 29, 2025
7 checks passed
@Janther Janther deleted the skip-variants-5 branch October 29, 2025 12:21
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

Successfully merging this pull request may close these issues.

2 participants