Skip to content

Commit

Permalink
Fix node modifier movement running on wrong node
Browse files Browse the repository at this point in the history
  • Loading branch information
Pieter12345 committed Jan 13, 2023
1 parent 982b26f commit fb86c2b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1917,8 +1917,8 @@ public static ParseTree compile(TokenStream stream, Environment environment,
processLateKeywords(tree, environment, compilerErrors);
checkLinearComponents(tree, environment, compilerErrors);
postParseRewrite(rootNode, environment, envs, compilerErrors, true); // Pass rootNode since this might rewrite 'tree'.
moveNodeModifiersOffSyntheticNodes(tree);
tree = rootNode.getChildAt(0);
moveNodeModifiersOffSyntheticNodes(tree);
staticAnalysis.analyze(tree, environment, envs, compilerErrors);
optimize(tree, environment, envs, procs, compilerErrors);
link(tree, compilerErrors);
Expand Down

0 comments on commit fb86c2b

Please sign in to comment.