if ( synPredMatched221 ) {
if ( synPredMatched222 ) {
	public final void nameTest() throws RecognitionException, TokenStreamException, XPathException {				returnAST = null;		ASTPair currentAST = new ASTPair();		org.exist.xquery.parser.XQueryAST nameTest_AST = null;		String name= null;				boolean synPredMatched221 = false;		if (((_tokenSet_9.member(LA(1))))) {			int _m221 = mark();			synPredMatched221 = true;			inputState.guessing++;			try {				{				switch ( LA(1)) {				case NCNAME:				case LITERAL_xquery:				case LITERAL_version:				case LITERAL_module:				case LITERAL_namespace:				case LITERAL_import:				case LITERAL_declare:				case LITERAL_default:				case LITERAL_xmlspace:				case LITERAL_ordering:				case LITERAL_construction:				case 63:				case LITERAL_function:				case LITERAL_variable:				case LITERAL_encoding:				case LITERAL_collation:				case LITERAL_element:				case LITERAL_preserve:				case LITERAL_strip:				case LITERAL_ordered:				case LITERAL_unordered:				case LITERAL_at:				case LITERAL_external:				case LITERAL_as:				case LITERAL_empty:				case LITERAL_item:				case LITERAL_for:				case LITERAL_let:				case LITERAL_some:				case LITERAL_every:				case LITERAL_if:				case LITERAL_return:				case LITERAL_order:				case LITERAL_by:				case LITERAL_typeswitch:				case LITERAL_then:				case LITERAL_else:				case LITERAL_or:				case LITERAL_and:				case LITERAL_instance:				case LITERAL_of:				case LITERAL_cast:				case LITERAL_is:				case LITERAL_isnot:				case LITERAL_to:				case LITERAL_div:				case LITERAL_mod:				case LITERAL_union:				case LITERAL_intersect:				case LITERAL_except:				case LITERAL_text:				case LITERAL_node:				case LITERAL_attribute:				case LITERAL_comment:				case 142:				case LITERAL_document:				case LITERAL_child:				case LITERAL_self:				case LITERAL_descendant:				case 154:				case 155:				case LITERAL_following:				case LITERAL_parent:				case LITERAL_ancestor:				case 159:				case 160:				case LITERAL_collection:				case LITERAL_preceding:				{					{					ncnameOrKeyword();					match(COLON);					match(STAR);					}					break;				}				case STAR:				{					match(STAR);					break;				}				default:				{					throw new NoViableAltException(LT(1), getFilename());				}				}				}			}			catch (RecognitionException pe) {				synPredMatched221 = false;			}			rewind(_m221);			inputState.guessing--;		}		if ( synPredMatched221 ) {			wildcard();			astFactory.addASTChild(currentAST, returnAST);			nameTest_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;		}		else if ((_tokenSet_1.member(LA(1)))) {			name=qName();			astFactory.addASTChild(currentAST, returnAST);			if ( inputState.guessing==0 ) {				nameTest_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;				nameTest_AST= (org.exist.xquery.parser.XQueryAST)astFactory.create(QNAME,name);				currentAST.root = nameTest_AST;				currentAST.child = nameTest_AST!=null &&nameTest_AST.getFirstChild()!=null ?					nameTest_AST.getFirstChild() : nameTest_AST;				currentAST.advanceChildToEnd();			}			nameTest_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;		}		else {			throw new NoViableAltException(LT(1), getFilename());		}				returnAST = nameTest_AST;	}