org.exist.xquery.parser.XQueryAST tmp137_AST = null; tmp137_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp137_AST);
org.exist.xquery.parser.XQueryAST tmp136_AST = null; tmp136_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp136_AST);
	public final void orderModifier() throws RecognitionException, TokenStreamException {				returnAST = null;		ASTPair currentAST = new ASTPair();		org.exist.xquery.parser.XQueryAST orderModifier_AST = null;				{		switch ( LA(1)) {		case LITERAL_ascending:		{			org.exist.xquery.parser.XQueryAST tmp136_AST = null;			tmp136_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));			astFactory.addASTChild(currentAST, tmp136_AST);			match(LITERAL_ascending);			break;		}		case LITERAL_descending:		{			org.exist.xquery.parser.XQueryAST tmp137_AST = null;			tmp137_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));			astFactory.addASTChild(currentAST, tmp137_AST);			match(LITERAL_descending);			break;		}		case LITERAL_collation:		case COMMA:		case LITERAL_empty:		case LITERAL_return:		{			break;		}		default:		{			throw new NoViableAltException(LT(1), getFilename());		}		}		}		{		switch ( LA(1)) {		case LITERAL_empty:		{			org.exist.xquery.parser.XQueryAST tmp138_AST = null;			tmp138_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));			astFactory.addASTChild(currentAST, tmp138_AST);			match(LITERAL_empty);			{			switch ( LA(1)) {			case LITERAL_greatest:			{				org.exist.xquery.parser.XQueryAST tmp139_AST = null;				tmp139_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));				astFactory.addASTChild(currentAST, tmp139_AST);				match(LITERAL_greatest);				break;			}			case LITERAL_least:			{				org.exist.xquery.parser.XQueryAST tmp140_AST = null;				tmp140_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));				astFactory.addASTChild(currentAST, tmp140_AST);				match(LITERAL_least);				break;			}			default:			{				throw new NoViableAltException(LT(1), getFilename());			}			}			}			break;		}		case LITERAL_collation:		case COMMA:		case LITERAL_return:		{			break;		}		default:		{			throw new NoViableAltException(LT(1), getFilename());		}		}		}		{		switch ( LA(1)) {		case LITERAL_collation:		{			org.exist.xquery.parser.XQueryAST tmp141_AST = null;			tmp141_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));			astFactory.addASTChild(currentAST, tmp141_AST);			match(LITERAL_collation);			org.exist.xquery.parser.XQueryAST tmp142_AST = null;			tmp142_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));			astFactory.addASTChild(currentAST, tmp142_AST);			match(STRING_LITERAL);			break;		}		case COMMA:		case LITERAL_return:		{			break;		}		default:		{			throw new NoViableAltException(LT(1), getFilename());		}		}		}		orderModifier_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;		returnAST = orderModifier_AST;	}