moduleDecl_AST = (org.exist.xquery.parser.XQueryAST)astFactory.make( (new ASTArray(2)).add((org.exist.xquery.parser.XQueryAST)astFactory.create(MODULE_DECL,prefix.getText())).add(uri_AST));  currentAST.root = moduleDecl_AST; currentAST.child = moduleDecl_AST!=null &&moduleDecl_AST.getFirstChild()!=null ? moduleDecl_AST.getFirstChild() : moduleDecl_AST; currentAST.advanceChildToEnd(); } moduleDecl_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; returnAST = moduleDecl_AST; } finally { traceOut("moduleDecl");
currentAST.root = moduleDecl_AST; currentAST.child = moduleDecl_AST!=null &&moduleDecl_AST.getFirstChild()!=null ? moduleDecl_AST.getFirstChild() : moduleDecl_AST; currentAST.advanceChildToEnd();
	public final void moduleDecl() throws RecognitionException, TokenStreamException {				traceIn("moduleDecl");		try { // debugging			returnAST = null;			ASTPair currentAST = new ASTPair();			org.exist.xquery.parser.XQueryAST moduleDecl_AST = null;			Token  prefix = null;			org.exist.xquery.parser.XQueryAST prefix_AST = null;			Token  uri = null;			org.exist.xquery.parser.XQueryAST uri_AST = null;						match(LITERAL_module);			match(LITERAL_namespace);			prefix = LT(1);			prefix_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(prefix);			astFactory.addASTChild(currentAST, prefix_AST);			match(NCNAME);			match(EQ);			uri = LT(1);			uri_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(uri);			astFactory.addASTChild(currentAST, uri_AST);			match(STRING_LITERAL);			match(SEMICOLON);			if ( inputState.guessing==0 ) {				moduleDecl_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;										moduleDecl_AST = (org.exist.xquery.parser.XQueryAST)astFactory.make( (new ASTArray(2)).add((org.exist.xquery.parser.XQueryAST)astFactory.create(MODULE_DECL,prefix.getText())).add(uri_AST));									currentAST.root = moduleDecl_AST;				currentAST.child = moduleDecl_AST!=null &&moduleDecl_AST.getFirstChild()!=null ?					moduleDecl_AST.getFirstChild() : moduleDecl_AST;				currentAST.advanceChildToEnd();			}			moduleDecl_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;			returnAST = moduleDecl_AST;		} finally { // debugging			traceOut("moduleDecl");		}	}