org.exist.xquery.parser.XQueryAST tmp141_AST = null; tmp141_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp141_AST);
org.exist.xquery.parser.XQueryAST tmp142_AST = null; tmp142_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp142_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 tmp140_AST = null;			tmp140_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));			astFactory.addASTChild(currentAST, tmp140_AST);			match(LITERAL_ascending);			break;		}		case LITERAL_descending:		{			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_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 tmp142_AST = null;			tmp142_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));			astFactory.addASTChild(currentAST, tmp142_AST);			match(LITERAL_empty);			{			switch ( LA(1)) {			case LITERAL_greatest:			{				org.exist.xquery.parser.XQueryAST tmp143_AST = null;				tmp143_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));				astFactory.addASTChild(currentAST, tmp143_AST);				match(LITERAL_greatest);				break;			}			case LITERAL_least:			{				org.exist.xquery.parser.XQueryAST tmp144_AST = null;				tmp144_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));				astFactory.addASTChild(currentAST, tmp144_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 tmp145_AST = null;			tmp145_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));			astFactory.addASTChild(currentAST, tmp145_AST);			match(LITERAL_collation);			org.exist.xquery.parser.XQueryAST tmp146_AST = null;			tmp146_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));			astFactory.addASTChild(currentAST, tmp146_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;	}