Antlr4.Tool.Ast.RuleAST.GetLexerAction C# (CSharp) Метод

GetLexerAction() публичный Метод

public GetLexerAction ( ) : ActionAST
Результат ActionAST
        public virtual ActionAST GetLexerAction()
        {
            ITree blk = GetFirstChildWithType(ANTLRParser.BLOCK);
            if (blk.ChildCount == 1)
            {
                ITree onlyAlt = blk.GetChild(0);
                ITree lastChild = onlyAlt.GetChild(onlyAlt.ChildCount - 1);
                if (lastChild.Type == ANTLRParser.ACTION)
                {
                    return (ActionAST)lastChild;
                }
            }
            return null;
        }