diff --git a/tool/src/org/antlr/v4/tool/interp/ParserInterpreter.java b/tool/src/org/antlr/v4/tool/interp/ParserInterpreter.java index 24ec74aa4..437041f27 100644 --- a/tool/src/org/antlr/v4/tool/interp/ParserInterpreter.java +++ b/tool/src/org/antlr/v4/tool/interp/ParserInterpreter.java @@ -75,13 +75,13 @@ public class ParserInterpreter { @Nullable ParserRuleContext outerContext, boolean useContext) { - return atnSimulator.predictATN(dfa, input, ParserRuleContext.EMPTY, false); + return atnSimulator.predictATN(dfa, input, outerContext, useContext); } public int adaptivePredict(@NotNull SymbolStream input, int decision, @Nullable ParserRuleContext outerContext) { - return atnSimulator.adaptivePredict(input, decision, null); + return atnSimulator.adaptivePredict(input, decision, outerContext); } public int matchATN(@NotNull SymbolStream input,