protected internal virtual void Accept(ICharStream input, int ruleIndex, int actionIndex
                                        , int index, int line, int charPos)
 {
     if (actionIndex >= 0 && recog != null)
     {
         recog.Action(null, ruleIndex, actionIndex);
     }
     // seek to after last char in token
     input.Seek(index);
     this.line = line;
     this.charPositionInLine = charPos;
     if (input.La(1) != IntStreamConstants.Eof)
     {
         Consume(input);
     }
 }
Exemple #2
0
 /// <summary>
 /// <inheritDoc/>
 /// <p>Custom actions are implemented by calling
 /// <see cref="Antlr4.Runtime.Recognizer{Symbol, ATNInterpreter}.Action(Antlr4.Runtime.RuleContext, int, int)"/>
 /// with the
 /// appropriate rule and action indexes.</p>
 /// </summary>
 public void Execute(Lexer lexer)
 {
     lexer.Action(null, ruleIndex, actionIndex);
 }
 /// <summary>
 /// <inheritDoc/>
 /// <p>Custom actions are implemented by calling
 /// <see cref="Antlr4.Runtime.Recognizer{Symbol, ATNInterpreter}.Action(Antlr4.Runtime.RuleContext, int, int)"/>
 /// with the
 /// appropriate rule and action indexes.</p>
 /// </summary>
 public void Execute(Lexer lexer)
 {
     lexer.Action(null, ruleIndex, actionIndex);
 }