org.exist.xquery.parser.XQueryAST tmp286_AST = null; tmp286_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp286_AST);
org.exist.xquery.parser.XQueryAST tmp287_AST = null; tmp287_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp287_AST);
	public final void compDocumentConstructor() throws RecognitionException, TokenStreamException, XPathException {				returnAST = null;		ASTPair currentAST = new ASTPair();		org.exist.xquery.parser.XQueryAST compDocumentConstructor_AST = null;		org.exist.xquery.parser.XQueryAST e_AST = null;				org.exist.xquery.parser.XQueryAST tmp286_AST = null;		tmp286_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));		astFactory.addASTChild(currentAST, tmp286_AST);		match(LITERAL_document);		match(LCURLY);		expr();		e_AST = (org.exist.xquery.parser.XQueryAST)returnAST;		astFactory.addASTChild(currentAST, returnAST);		match(RCURLY);		if ( inputState.guessing==0 ) {			compDocumentConstructor_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;			compDocumentConstructor_AST = (org.exist.xquery.parser.XQueryAST)astFactory.make( (new ASTArray(2)).add((org.exist.xquery.parser.XQueryAST)astFactory.create(COMP_DOC_CONSTRUCTOR,"document")).add(e_AST));			currentAST.root = compDocumentConstructor_AST;			currentAST.child = compDocumentConstructor_AST!=null &&compDocumentConstructor_AST.getFirstChild()!=null ?				compDocumentConstructor_AST.getFirstChild() : compDocumentConstructor_AST;			currentAST.advanceChildToEnd();		}		compDocumentConstructor_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;		returnAST = compDocumentConstructor_AST;	}