synPredMatched280 = false; } rewind(_m280);
synPredMatched282 = false; } rewind(_m282);
	public final void primaryExpr() throws RecognitionException, TokenStreamException, XPathException {				returnAST = null;		ASTPair currentAST = new ASTPair();		org.exist.xquery.parser.XQueryAST primaryExpr_AST = null;		String varName= null;				switch ( LA(1)) {		case LT:		case XML_COMMENT:		case XML_PI:		{			directConstructor();			astFactory.addASTChild(currentAST, returnAST);			primaryExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;			break;		}		case SELF:		{			contextItemExpr();			astFactory.addASTChild(currentAST, returnAST);			primaryExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;			break;		}		case LPAREN:		{			parenthesizedExpr();			astFactory.addASTChild(currentAST, returnAST);			primaryExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;			break;		}		case DOLLAR:		{			varRef();			astFactory.addASTChild(currentAST, returnAST);			primaryExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;			break;		}		case STRING_LITERAL:		case DOUBLE_LITERAL:		case DECIMAL_LITERAL:		case INTEGER_LITERAL:		{			literal();			astFactory.addASTChild(currentAST, returnAST);			primaryExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;			break;		}		default:			boolean synPredMatched280 = false;			if (((_tokenSet_12.member(LA(1))))) {				int _m280 = mark();				synPredMatched280 = true;				inputState.guessing++;				try {					{					{					switch ( LA(1)) {					case LITERAL_element:					{						match(LITERAL_element);						break;					}					case LITERAL_attribute:					{						match(LITERAL_attribute);						break;					}					case LITERAL_text:					{						match(LITERAL_text);						break;					}					case LITERAL_document:					{						match(LITERAL_document);						break;					}					case 167:					{						match(167);						break;					}					case LITERAL_comment:					{						match(LITERAL_comment);						break;					}					default:					{						throw new NoViableAltException(LT(1), getFilename());					}					}					}					match(LCURLY);					}				}				catch (RecognitionException pe) {					synPredMatched280 = false;				}				rewind(_m280);				inputState.guessing--;			}			if ( synPredMatched280 ) {				computedConstructor();				astFactory.addASTChild(currentAST, returnAST);				primaryExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;			}			else {				boolean synPredMatched283 = false;				if (((_tokenSet_12.member(LA(1))))) {					int _m283 = mark();					synPredMatched283 = true;					inputState.guessing++;					try {						{						{						switch ( LA(1)) {						case LITERAL_element:						{							match(LITERAL_element);							break;						}						case LITERAL_attribute:						{							match(LITERAL_attribute);							break;						}						case 167:						{							match(167);							break;						}						case LITERAL_namespace:						{							match(LITERAL_namespace);							break;						}						default:						{							throw new NoViableAltException(LT(1), getFilename());						}						}						}						qName();						match(LCURLY);						}					}					catch (RecognitionException pe) {						synPredMatched283 = false;					}					rewind(_m283);					inputState.guessing--;				}				if ( synPredMatched283 ) {					computedConstructor();					astFactory.addASTChild(currentAST, returnAST);					primaryExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;				}				else {					boolean synPredMatched285 = false;					if (((LA(1)==LITERAL_ordered))) {						int _m285 = mark();						synPredMatched285 = true;						inputState.guessing++;						try {							{							match(LITERAL_ordered);							match(LCURLY);							}						}						catch (RecognitionException pe) {							synPredMatched285 = false;						}						rewind(_m285);						inputState.guessing--;					}					if ( synPredMatched285 ) {						orderedExpr();						astFactory.addASTChild(currentAST, returnAST);						primaryExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;					}					else {						boolean synPredMatched287 = false;						if (((LA(1)==LITERAL_unordered))) {							int _m287 = mark();							synPredMatched287 = true;							inputState.guessing++;							try {								{								match(LITERAL_unordered);								match(LCURLY);								}							}							catch (RecognitionException pe) {								synPredMatched287 = false;							}							rewind(_m287);							inputState.guessing--;						}						if ( synPredMatched287 ) {							unorderedExpr();							astFactory.addASTChild(currentAST, returnAST);							primaryExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;						}						else if ((_tokenSet_1.member(LA(1)))) {							functionCall();							astFactory.addASTChild(currentAST, returnAST);							primaryExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;						}					else {						throw new NoViableAltException(LT(1), getFilename());					}					}}}}					returnAST = primaryExpr_AST;				}