Antlr4.Automata.LexerATNFactory.Action C# (CSharp) Method

Action() protected method

protected Action ( GrammarAST node, ILexerAction lexerAction ) : Handle
node Antlr4.Tool.Ast.GrammarAST
lexerAction ILexerAction
return Handle
        protected virtual Handle Action(GrammarAST node, ILexerAction lexerAction)
        {
            ATNState left = NewState(node);
            ATNState right = NewState(node);
            bool isCtxDependent = false;
            int lexerActionIndex = GetLexerActionIndex(lexerAction);
            ActionTransition a =
                new ActionTransition(right, currentRule.index, lexerActionIndex, isCtxDependent);
            left.AddTransition(a);
            node.atnState = left;
            Handle h = new Handle(left, right);
            return h;
        }

Same methods

LexerATNFactory::Action ( ActionAST action ) : Handle
LexerATNFactory::Action ( string action ) : Handle