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;
}