Antlr4.Tool.Alternative.ResolvesToLabel C# (CSharp) Method

ResolvesToLabel() public method

public ResolvesToLabel ( string x, ActionAST node ) : bool
x string
node Antlr4.Tool.Ast.ActionAST
return bool
        public virtual bool ResolvesToLabel(string x, ActionAST node)
        {
            LabelElementPair anyLabelDef = GetAnyLabelDef(x);
            return anyLabelDef != null &&
                   (anyLabelDef.type == LabelType.TOKEN_LABEL ||
                    anyLabelDef.type == LabelType.RULE_LABEL);
        }