Skip to content

Commit

Permalink
Merge pull request #1273 from RumbleDB/ExecutionModeWarning
Browse files Browse the repository at this point in the history
Remove execution mode warning.
  • Loading branch information
ghislainfourny authored Oct 28, 2024
2 parents 90a7faa + abd0770 commit 1f52989
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,11 @@ public StaticContext visitProlog(Prolog prolog, StaticContext argument) {
@Override
public StaticContext visitProgram(Program program, StaticContext argument) {
visitDescendants(program, argument);
ExecutionMode mergedExecutionMode = getHighestExecutionModeFromStatements(exitStatementChildren);
ExecutionMode mergedExecutionMode = program.getStatementsAndOptionalExpr().getHighestExecutionMode();
for (Statement statement : exitStatementChildren) {
ExecutionMode statementExecMode = statement.getHighestExecutionMode(this.visitorConfig);
mergedExecutionMode = getHighestExecutionMode(mergedExecutionMode, statementExecMode);
}
program.setHighestExecutionMode(mergedExecutionMode);
return argument;
}
Expand Down

0 comments on commit 1f52989

Please sign in to comment.