namespaceDecl_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; returnAST = namespaceDecl_AST;
	public final void namespaceDecl() throws RecognitionException, TokenStreamException {				traceIn("namespaceDecl");		try { // debugging			returnAST = null;			ASTPair currentAST = new ASTPair();			org.exist.xquery.parser.XQueryAST namespaceDecl_AST = null;			Token  prefix = null;			org.exist.xquery.parser.XQueryAST prefix_AST = null;			Token  uri = null;			org.exist.xquery.parser.XQueryAST uri_AST = null;						org.exist.xquery.parser.XQueryAST tmp124_AST = null;			tmp124_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));			astFactory.addASTChild(currentAST, tmp124_AST);			match(LITERAL_declare);			org.exist.xquery.parser.XQueryAST tmp125_AST = null;			tmp125_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));			astFactory.addASTChild(currentAST, tmp125_AST);			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);			if ( inputState.guessing==0 ) {				namespaceDecl_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;				namespaceDecl_AST= (org.exist.xquery.parser.XQueryAST)astFactory.make( (new ASTArray(2)).add((org.exist.xquery.parser.XQueryAST)astFactory.create(NAMESPACE_DECL,prefix.getText())).add(uri_AST));				currentAST.root = namespaceDecl_AST;				currentAST.child = namespaceDecl_AST!=null &&namespaceDecl_AST.getFirstChild()!=null ?					namespaceDecl_AST.getFirstChild() : namespaceDecl_AST;				currentAST.advanceChildToEnd();			}			namespaceDecl_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;			returnAST = namespaceDecl_AST;		} finally { // debugging			traceOut("namespaceDecl");		}	}