public bool IsListLabel(string label) { bool hasListLabel = false; if (label != null) { Rule r = grammar.GetRule(currentRuleName); //String stName = null; if (r != null) { Grammar.LabelElementPair pair = r.GetLabel(label); if (pair != null && (pair.type == LabelType.TokenList || pair.type == LabelType.RuleList || pair.type == LabelType.WildcardTreeList)) { hasListLabel = true; } } } return(hasListLabel); }
public Grammar.LabelElementPair GetElementLabel(string id) { return(enclosingRule.GetLabel(id)); }