else if ( enclosingRule.getRuleLabel(x.getText())!=null ) {
// ref to rule label
Grammar.LabelElementPair pair = enclosingRule.getRuleLabel(x.getText());
pair.actionReferencesLabel = true;
refdRuleName = pair.referencedRuleName;
Rule refdRule = grammar.getRule(refdRuleName);
scope = refdRule.getLocalAttributeScope(y.getText());
}
else if ( enclosingRule.getRuleRefsInAlt(x.getText(), outerAltNum)!=null ) {
// ref to rule referenced in this alt
refdRuleName = x.getText();
Rule refdRule = grammar.getRule(refdRuleName);
scope = refdRule.getLocalAttributeScope(y.getText());
}
if ( scope!=null &&
(scope.isPredefinedRuleScope||scope.isPredefinedLexerRuleScope) )
{
grammar.referenceRuleLabelPredefinedAttribute(refdRuleName);