if ( !((enclosingRule!=null && input.LA(1)!='=' && (enclosingRule.getTokenLabel((x!=null?x.getText():null))!=null|| isTokenRefInAlt((x!=null?x.getText():null))) && AttributeScope.tokenScope.getAttribute((y!=null?y.getText():null))!=null)) ) { if (state.backtracking>0) {state.failed=true; return ;}
mID(); if (state.failed) return ; ID2 = new CommonToken(input, Token.INVALID_TOKEN_TYPE, Token.DEFAULT_CHANNEL, ID2Start341, getCharIndex()-1); if ( !((grammar.type!=Grammar.LEXER && enclosingRule!=null && isTokenRefInAlt((ID2!=null?ID2.getText():null)))) ) { if (state.backtracking>0) {state.failed=true; return ;} throw new FailedPredicateException(input, "ISOLATED_TOKEN_REF", "grammar.type!=Grammar.LEXER && enclosingRule!=null && isTokenRefInAlt($ID.text)");
if ( !((enclosingRule!=null && input.LA(1)!='=' && (enclosingRule.getTokenLabel((x!=null?x.getText():null))!=null|| isTokenRefInAlt((x!=null?x.getText():null))) && AttributeScope.tokenScope.getAttribute((y!=null?y.getText():null))!=null)) ) { if (state.backtracking>0) {state.failed=true; return;}
if ( !((enclosingRule!=null && input.LA(1)!='=' && (enclosingRule.getTokenLabel((x!=null?x.getText():null))!=null|| isTokenRefInAlt((x!=null?x.getText():null))) && AttributeScope.tokenScope.getAttribute((y!=null?y.getText():null))!=null)) ) { if (state.backtracking>0) {state.failed=true; return;}
ID2.setCharPositionInLine(ID2StartCharPos348); if ( !((grammar.type!=Grammar.LEXER && enclosingRule!=null && isTokenRefInAlt((ID2!=null?ID2.getText():null)))) ) { if (state.backtracking>0) {state.failed=true; return;} throw new FailedPredicateException(input, "ISOLATED_TOKEN_REF", "grammar.type!=Grammar.LEXER && enclosingRule!=null && isTokenRefInAlt($ID.text)");
ID2.setCharPositionInLine(ID2StartCharPos348); if ( !((grammar.type!=Grammar.LEXER && enclosingRule!=null && isTokenRefInAlt((ID2!=null?ID2.getText():null)))) ) { if (state.backtracking>0) {state.failed=true; return;} throw new FailedPredicateException(input, "ISOLATED_TOKEN_REF", "grammar.type!=Grammar.LEXER && enclosingRule!=null && isTokenRefInAlt($ID.text)");
if ( !((enclosingRule!=null && (enclosingRule.getTokenLabel((x!=null?x.getText():null))!=null|| isTokenRefInAlt((x!=null?x.getText():null))) && AttributeScope.tokenScope.getAttribute((y!=null?y.getText():null))!=null && (grammar.type!=Grammar.LEXER ||
isTokenRefInAlt((x!=null?x.getText():null))) && AttributeScope.tokenScope.getAttribute((y!=null?y.getText():null))!=null && (grammar.type!=Grammar.LEXER ||
isTokenRefInAlt((x!=null?x.getText():null))) && AttributeScope.tokenScope.getAttribute((y!=null?y.getText():null))!=null && (grammar.type!=Grammar.LEXER ||