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

ResolvesToAttributeDict() public method

public ResolvesToAttributeDict ( string x, ActionAST node ) : bool
x string
node Antlr4.Tool.Ast.ActionAST
return bool
        public virtual bool ResolvesToAttributeDict(string x, ActionAST node)
        {
            if (ResolvesToToken(x, node))
                return true;
            if (ruleRefs.ContainsKey(x) && ruleRefs[x] != null)
                return true; // rule ref in this alt?
            LabelElementPair anyLabelDef = GetAnyLabelDef(x);
            if (anyLabelDef != null && anyLabelDef.type == LabelType.RULE_LABEL)
                return true;
            return false;
        }