@@ -988,41 +988,41 @@ public override void SyntaxError(IRecognizer recognizer, IToken offendingSymbol,
988
988
989
989
private class SummarizingDiagnosticErrorListener : DiagnosticErrorListener
990
990
{
991
- public override void ReportAmbiguity ( Parser recognizer , DFA dfa , int startIndex , int stopIndex , BitSet ambigAlts , ATNConfigSet configs )
991
+ public override void ReportAmbiguity ( Parser recognizer , DFA dfa , int startIndex , int stopIndex , bool exact , BitSet ambigAlts , ATNConfigSet configs )
992
992
{
993
993
if ( ! REPORT_AMBIGUITIES )
994
994
{
995
995
return ;
996
996
}
997
997
998
- base . ReportAmbiguity ( recognizer , dfa , startIndex , stopIndex , ambigAlts , configs ) ;
998
+ base . ReportAmbiguity ( recognizer , dfa , startIndex , stopIndex , exact , ambigAlts , configs ) ;
999
999
}
1000
1000
1001
- public override void ReportAttemptingFullContext ( Parser recognizer , DFA dfa , int startIndex , int stopIndex , SimulatorState initialState )
1001
+ public override void ReportAttemptingFullContext ( Parser recognizer , DFA dfa , int startIndex , int stopIndex , BitSet conflictingAlts , SimulatorState initialState )
1002
1002
{
1003
1003
if ( ! REPORT_FULL_CONTEXT )
1004
1004
{
1005
1005
return ;
1006
1006
}
1007
1007
1008
- base . ReportAttemptingFullContext ( recognizer , dfa , startIndex , stopIndex , initialState ) ;
1008
+ base . ReportAttemptingFullContext ( recognizer , dfa , startIndex , stopIndex , conflictingAlts , initialState ) ;
1009
1009
}
1010
1010
1011
- public override void ReportContextSensitivity ( Parser recognizer , DFA dfa , int startIndex , int stopIndex , SimulatorState acceptState )
1011
+ public override void ReportContextSensitivity ( Parser recognizer , DFA dfa , int startIndex , int stopIndex , int prediction , SimulatorState acceptState )
1012
1012
{
1013
1013
if ( ! REPORT_CONTEXT_SENSITIVITY )
1014
1014
{
1015
1015
return ;
1016
1016
}
1017
1017
1018
- base . ReportContextSensitivity ( recognizer , dfa , startIndex , stopIndex , acceptState ) ;
1018
+ base . ReportContextSensitivity ( recognizer , dfa , startIndex , stopIndex , prediction , acceptState ) ;
1019
1019
}
1020
1020
1021
- protected override string GetDecisionDescription ( Parser recognizer , int decision )
1021
+ protected override string GetDecisionDescription ( Parser recognizer , DFA dfa )
1022
1022
{
1023
1023
string format = "{0}({1})" ;
1024
- string ruleName = recognizer . RuleNames [ recognizer . Atn . decisionToState [ decision ] . ruleIndex ] ;
1025
- return string . Format ( format , decision , ruleName ) ;
1024
+ string ruleName = recognizer . RuleNames [ recognizer . Atn . decisionToState [ dfa . decision ] . ruleIndex ] ;
1025
+ return string . Format ( format , dfa . decision , ruleName ) ;
1026
1026
}
1027
1027
}
1028
1028
0 commit comments