if (backtracking>0) {failed=true; return ;}
throw new FailedPredicateException(input, "X_Y", "enclosingRule!=null");
}
if ( backtracking==1 ) {
AttributeScope scope = null;
String refdRuleName = null;
if ( x.getText().equals(enclosingRule.name) ) {
// ref to enclosing rule.
refdRuleName = x.getText();
scope = enclosingRule.getLocalAttributeScope(y.getText());