if ( inputState.guessing==0 ) { quantifiedInVarBinding_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; quantifiedInVarBinding_AST = (org.exist.xquery.parser.XQueryAST)astFactory.make( (new ASTArray(2)).add((org.exist.xquery.parser.XQueryAST)astFactory.create(VARIABLE_BINDING,varName)).add(quantifiedInVarBinding_AST)); currentAST.root = quantifiedInVarBinding_AST; currentAST.child = quantifiedInVarBinding_AST!=null &&quantifiedInVarBinding_AST.getFirstChild()!=null ? quantifiedInVarBinding_AST.getFirstChild() : quantifiedInVarBinding_AST; currentAST.advanceChildToEnd(); }
break; } case LITERAL_in: { break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } match(LITERAL_in); exprSingle(); astFactory.addASTChild(currentAST, returnAST); if ( inputState.guessing==0 ) {
	public final void quantifiedInVarBinding() throws RecognitionException, TokenStreamException {				traceIn("quantifiedInVarBinding");		try { // debugging			returnAST = null;			ASTPair currentAST = new ASTPair();			org.exist.xquery.parser.XQueryAST quantifiedInVarBinding_AST = null;			String varName;						match(DOLLAR);			varName=qName();			{			switch ( LA(1)) {			case LITERAL_as:			{				typeDeclaration();				astFactory.addASTChild(currentAST, returnAST);				break;			}			case LITERAL_in:			{				break;			}			default:			{				throw new NoViableAltException(LT(1), getFilename());			}			}			}			match(LITERAL_in);			exprSingle();			astFactory.addASTChild(currentAST, returnAST);			if ( inputState.guessing==0 ) {				quantifiedInVarBinding_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;				quantifiedInVarBinding_AST = (org.exist.xquery.parser.XQueryAST)astFactory.make( (new ASTArray(2)).add((org.exist.xquery.parser.XQueryAST)astFactory.create(VARIABLE_BINDING,varName)).add(quantifiedInVarBinding_AST));				currentAST.root = quantifiedInVarBinding_AST;				currentAST.child = quantifiedInVarBinding_AST!=null &&quantifiedInVarBinding_AST.getFirstChild()!=null ?					quantifiedInVarBinding_AST.getFirstChild() : quantifiedInVarBinding_AST;				currentAST.advanceChildToEnd();			}			quantifiedInVarBinding_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;			returnAST = quantifiedInVarBinding_AST;		} finally { // debugging			traceOut("quantifiedInVarBinding");		}	}