activeStates.add(new ParsingState(transition.target, tokenIndex, new CallerContext(caller, ((RuleTransition) transition).followState)));
activeStates.add(new ParsingState(transition.target, tokenIndex, new CallerContext(caller, ((RuleTransition) transition).followState)));
private CallerContext makeCallStack(RuleContext context) { if (context == null || context.invokingState == -1) { return null; } CallerContext parent = makeCallStack(context.parent); ATNState followState = ((RuleTransition) atn.states.get(context.invokingState).transition(0)).followState; return new CallerContext(parent, followState); } }
private CallerContext makeCallStack(RuleContext context) { if (context == null || context.invokingState == -1) { return null; } CallerContext parent = makeCallStack(context.parent); ATNState followState = ((RuleTransition) atn.states.get(context.invokingState).transition(0)).followState; return new CallerContext(parent, followState); } }