case LITERAL_node: { anyKindTest(); astFactory.addASTChild(currentAST, returnAST); kindTest_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_element: { elementTest(); astFactory.addASTChild(currentAST, returnAST); kindTest_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_attribute: { attributeTest(); astFactory.addASTChild(currentAST, returnAST); kindTest_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_comment: { commentTest(); astFactory.addASTChild(currentAST, returnAST); kindTest_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 135: { piTest(); astFactory.addASTChild(currentAST, returnAST); kindTest_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 136: { documentTest(); astFactory.addASTChild(currentAST, returnAST); kindTest_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } returnAST = kindTest_AST;
	public final void kindTest() throws RecognitionException, TokenStreamException {				traceIn("kindTest");		try { // debugging			returnAST = null;			ASTPair currentAST = new ASTPair();			org.exist.xquery.parser.XQueryAST kindTest_AST = null;						switch ( LA(1)) {			case LITERAL_text:			{				textTest();				astFactory.addASTChild(currentAST, returnAST);				kindTest_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;				break;			}			case LITERAL_node:			{				anyKindTest();				astFactory.addASTChild(currentAST, returnAST);				kindTest_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;				break;			}			case LITERAL_element:			{				elementTest();				astFactory.addASTChild(currentAST, returnAST);				kindTest_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;				break;			}			case LITERAL_attribute:			{				attributeTest();				astFactory.addASTChild(currentAST, returnAST);				kindTest_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;				break;			}			case LITERAL_comment:			{				commentTest();				astFactory.addASTChild(currentAST, returnAST);				kindTest_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;				break;			}			case 135:			{				piTest();				astFactory.addASTChild(currentAST, returnAST);				kindTest_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;				break;			}			case 136:			{				documentTest();				astFactory.addASTChild(currentAST, returnAST);				kindTest_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;				break;			}			default:			{				throw new NoViableAltException(LT(1), getFilename());			}			}			returnAST = kindTest_AST;		} finally { // debugging			traceOut("kindTest");		}	}