org.exist.xquery.parser.XQueryAST tmp158_AST = null; tmp158_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp158_AST);
org.exist.xquery.parser.XQueryAST tmp157_AST = null; tmp157_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp157_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 tmp155_AST = null;			tmp155_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));			astFactory.addASTChild(currentAST, tmp155_AST);			match(LITERAL_ascending);			break;		}		case LITERAL_descending:		{			org.exist.xquery.parser.XQueryAST tmp156_AST = null;			tmp156_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));			astFactory.addASTChild(currentAST, tmp156_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 tmp157_AST = null;			tmp157_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));			astFactory.addASTChild(currentAST, tmp157_AST);			match(LITERAL_empty);			{			switch ( LA(1)) {			case LITERAL_greatest:			{				org.exist.xquery.parser.XQueryAST tmp158_AST = null;				tmp158_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));				astFactory.addASTChild(currentAST, tmp158_AST);				match(LITERAL_greatest);				break;			}			case LITERAL_least:			{				org.exist.xquery.parser.XQueryAST tmp159_AST = null;				tmp159_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));				astFactory.addASTChild(currentAST, tmp159_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 tmp160_AST = null;			tmp160_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));			astFactory.addASTChild(currentAST, tmp160_AST);			match(LITERAL_collation);			org.exist.xquery.parser.XQueryAST tmp161_AST = null;			tmp161_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));			astFactory.addASTChild(currentAST, tmp161_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;	}