traceIn("version"); try { 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 tmp122_AST = null; tmp122_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp122_AST); match(XQUERY); org.exist.xquery.parser.XQueryAST tmp123_AST = null; tmp123_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp123_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(); }
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 tmp122_AST = null; tmp122_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp122_AST); match(XQUERY); org.exist.xquery.parser.XQueryAST tmp123_AST = null; tmp123_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp123_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 ) {
	public final void version() throws RecognitionException, TokenStreamException {				traceIn("version");		try { // debugging			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 tmp122_AST = null;			tmp122_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));			astFactory.addASTChild(currentAST, tmp122_AST);			match(XQUERY);			org.exist.xquery.parser.XQueryAST tmp123_AST = null;			tmp123_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));			astFactory.addASTChild(currentAST, tmp123_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;		} finally { // debugging			traceOut("version");		}	}