int _cnt228=0; _loop228: do { switch ( LA(1)) { case ATTRIBUTE_CONTENT: { org.exist.xquery.parser.XQueryAST tmp312_AST = null; tmp312_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp312_AST); match(ATTRIBUTE_CONTENT); break; } case LCURLY: { attributeEnclosedExpr(); astFactory.addASTChild(currentAST, returnAST); break; } default: { if ( _cnt228>=1 ) { break _loop228; } else {throw new NoViableAltException(LT(1), getFilename());} } } _cnt228++; } while (true);
org.exist.xquery.parser.XQueryAST tmp312_AST = null; tmp312_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp312_AST); match(ATTRIBUTE_CONTENT); break;
	public final void attributeValue() throws RecognitionException, TokenStreamException {				traceIn("attributeValue");		try { // debugging			returnAST = null;			ASTPair currentAST = new ASTPair();			org.exist.xquery.parser.XQueryAST attributeValue_AST = null;						{			int _cnt228=0;			_loop228:			do {				switch ( LA(1)) {				case ATTRIBUTE_CONTENT:				{					org.exist.xquery.parser.XQueryAST tmp312_AST = null;					tmp312_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));					astFactory.addASTChild(currentAST, tmp312_AST);					match(ATTRIBUTE_CONTENT);					break;				}				case LCURLY:				{					attributeEnclosedExpr();					astFactory.addASTChild(currentAST, returnAST);					break;				}				default:				{					if ( _cnt228>=1 ) { break _loop228; } else {throw new NoViableAltException(LT(1), getFilename());}				}				}				_cnt228++;			} while (true);			}			attributeValue_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;			returnAST = attributeValue_AST;		} finally { // debugging			traceOut("attributeValue");		}	}