globalStack.push(elementStack); elementStack= new Stack(); lexer.inElementContent= false;   } expr(); astFactory.addASTChild(currentAST, returnAST); match(RCURLY); if ( inputState.guessing==0 ) {
} expr(); astFactory.addASTChild(currentAST, returnAST); match(RCURLY); if ( inputState.guessing==0 ) {  elementStack= (Stack) globalStack.pop(); lexer.inElementContent= true;
	public final void enclosedExpr() throws RecognitionException, TokenStreamException {				traceIn("enclosedExpr");		try { // debugging			returnAST = null;			ASTPair currentAST = new ASTPair();			org.exist.xquery.parser.XQueryAST enclosedExpr_AST = null;						org.exist.xquery.parser.XQueryAST tmp315_AST = null;			tmp315_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));			astFactory.makeASTRoot(currentAST, tmp315_AST);			match(LCURLY);			if ( inputState.guessing==0 ) {										globalStack.push(elementStack);						elementStack= new Stack();						lexer.inElementContent= false;						//lexer.wsExplicit= false;								}			expr();			astFactory.addASTChild(currentAST, returnAST);			match(RCURLY);			if ( inputState.guessing==0 ) {										elementStack= (Stack) globalStack.pop();						lexer.inElementContent= true;						//lexer.wsExplicit= true;								}			enclosedExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;			returnAST = enclosedExpr_AST;		} finally { // debugging			traceOut("enclosedExpr");		}	}