Antlr4.Tool.Ast.GrammarAST.GetOutermostAltNode C# (CSharp) 메소드

GetOutermostAltNode() 공개 메소드

public GetOutermostAltNode ( ) : AltAST
리턴 AltAST
        public virtual AltAST GetOutermostAltNode()
        {
            if (this is AltAST && Parent.Parent is RuleAST)
            {
                return (AltAST)this;
            }
            if (Parent != null)
                return ((GrammarAST)Parent).GetOutermostAltNode();
            return null;
        }