Skip to content

Commit fb86c2b

Browse files
committed
Fix node modifier movement running on wrong node
1 parent 982b26f commit fb86c2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/laytonsmith/core/MethodScriptCompiler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1917,8 +1917,8 @@ public static ParseTree compile(TokenStream stream, Environment environment,
19171917
processLateKeywords(tree, environment, compilerErrors);
19181918
checkLinearComponents(tree, environment, compilerErrors);
19191919
postParseRewrite(rootNode, environment, envs, compilerErrors, true); // Pass rootNode since this might rewrite 'tree'.
1920-
moveNodeModifiersOffSyntheticNodes(tree);
19211920
tree = rootNode.getChildAt(0);
1921+
moveNodeModifiersOffSyntheticNodes(tree);
19221922
staticAnalysis.analyze(tree, environment, envs, compilerErrors);
19231923
optimize(tree, environment, envs, procs, compilerErrors);
19241924
link(tree, compilerErrors);

0 commit comments

Comments
 (0)