org.exist.xquery.parser.XQueryAST tmp120_AST = null; tmp120_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp120_AST);
org.exist.xquery.parser.XQueryAST tmp122_AST = null; tmp122_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp122_AST);
	public final void version() throws RecognitionException, TokenStreamException {				returnAST = null;		ASTPair currentAST = new ASTPair();		org.exist.xquery.parser.XQueryAST version_AST = null;		Token  v = null;		org.exist.xquery.parser.XQueryAST v_AST = null;				org.exist.xquery.parser.XQueryAST tmp120_AST = null;		tmp120_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));		astFactory.addASTChild(currentAST, tmp120_AST);		match(XQUERY);		org.exist.xquery.parser.XQueryAST tmp121_AST = null;		tmp121_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));		astFactory.addASTChild(currentAST, tmp121_AST);		match(VERSION);		v = LT(1);		v_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(v);		astFactory.addASTChild(currentAST, v_AST);		match(STRING_LITERAL);		if ( inputState.guessing==0 ) {			version_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;			version_AST= (org.exist.xquery.parser.XQueryAST)astFactory.make( (new ASTArray(1)).add((org.exist.xquery.parser.XQueryAST)astFactory.create(VERSION_DECL,v.getText())));			currentAST.root = version_AST;			currentAST.child = version_AST!=null &&version_AST.getFirstChild()!=null ?				version_AST.getFirstChild() : version_AST;			currentAST.advanceChildToEnd();		}		version_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;		returnAST = version_AST;	}