org.exist.xquery.parser.XQueryAST sequenceType_AST_in = (org.exist.xquery.parser.XQueryAST)_t;
org.exist.xquery.parser.XQueryAST sequenceType_AST_in = (_t == ASTNULL) ? null : (org.exist.xquery.parser.XQueryAST)_t;
	public final void sequenceType(AST _t,		SequenceType type	) throws RecognitionException, XPathException {				org.exist.xquery.parser.XQueryAST sequenceType_AST_in = (org.exist.xquery.parser.XQueryAST)_t;		org.exist.xquery.parser.XQueryAST t = null;				{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case ATOMIC_TYPE:		{			AST __t274 = _t;			t = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t;			match(_t,ATOMIC_TYPE);			_t = _t.getFirstChild();										QName qn= QName.parse(context, t.getText());							int code= Type.getType(qn);							type.setPrimaryType(code);									_t = __t274;			_t = _t.getNextSibling();			break;		}		case LITERAL_empty:		{			AST __t275 = _t;			org.exist.xquery.parser.XQueryAST tmp33_AST_in = (org.exist.xquery.parser.XQueryAST)_t;			match(_t,LITERAL_empty);			_t = _t.getFirstChild();										type.setPrimaryType(Type.EMPTY);							type.setCardinality(Cardinality.EMPTY);									_t = __t275;			_t = _t.getNextSibling();			break;		}		case LITERAL_item:		{			AST __t276 = _t;			org.exist.xquery.parser.XQueryAST tmp34_AST_in = (org.exist.xquery.parser.XQueryAST)_t;			match(_t,LITERAL_item);			_t = _t.getFirstChild();			type.setPrimaryType(Type.ITEM);			_t = __t276;			_t = _t.getNextSibling();			break;		}		case LITERAL_node:		{			AST __t277 = _t;			org.exist.xquery.parser.XQueryAST tmp35_AST_in = (org.exist.xquery.parser.XQueryAST)_t;			match(_t,LITERAL_node);			_t = _t.getFirstChild();			type.setPrimaryType(Type.NODE);			_t = __t277;			_t = _t.getNextSibling();			break;		}		case LITERAL_element:		{			AST __t278 = _t;			org.exist.xquery.parser.XQueryAST tmp36_AST_in = (org.exist.xquery.parser.XQueryAST)_t;			match(_t,LITERAL_element);			_t = _t.getFirstChild();			type.setPrimaryType(Type.ELEMENT);			_t = __t278;			_t = _t.getNextSibling();			break;		}		case LITERAL_attribute:		{			AST __t279 = _t;			org.exist.xquery.parser.XQueryAST tmp37_AST_in = (org.exist.xquery.parser.XQueryAST)_t;			match(_t,LITERAL_attribute);			_t = _t.getFirstChild();			type.setPrimaryType(Type.ATTRIBUTE);			_t = __t279;			_t = _t.getNextSibling();			break;		}		case LITERAL_text:		{			AST __t280 = _t;			org.exist.xquery.parser.XQueryAST tmp38_AST_in = (org.exist.xquery.parser.XQueryAST)_t;			match(_t,LITERAL_text);			_t = _t.getFirstChild();			type.setPrimaryType(Type.ITEM);			_t = __t280;			_t = _t.getNextSibling();			break;		}		case 135:		{			AST __t281 = _t;			org.exist.xquery.parser.XQueryAST tmp39_AST_in = (org.exist.xquery.parser.XQueryAST)_t;			match(_t,135);			_t = _t.getFirstChild();			type.setPrimaryType(Type.PROCESSING_INSTRUCTION);			_t = __t281;			_t = _t.getNextSibling();			break;		}		case LITERAL_comment:		{			AST __t282 = _t;			org.exist.xquery.parser.XQueryAST tmp40_AST_in = (org.exist.xquery.parser.XQueryAST)_t;			match(_t,LITERAL_comment);			_t = _t.getFirstChild();			type.setPrimaryType(Type.COMMENT);			_t = __t282;			_t = _t.getNextSibling();			break;		}		case 136:		{			AST __t283 = _t;			org.exist.xquery.parser.XQueryAST tmp41_AST_in = (org.exist.xquery.parser.XQueryAST)_t;			match(_t,136);			_t = _t.getFirstChild();			type.setPrimaryType(Type.DOCUMENT);			_t = __t283;			_t = _t.getNextSibling();			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		}		{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case STAR:		{			org.exist.xquery.parser.XQueryAST tmp42_AST_in = (org.exist.xquery.parser.XQueryAST)_t;			match(_t,STAR);			_t = _t.getNextSibling();			type.setCardinality(Cardinality.ZERO_OR_MORE);			break;		}		case PLUS:		{			org.exist.xquery.parser.XQueryAST tmp43_AST_in = (org.exist.xquery.parser.XQueryAST)_t;			match(_t,PLUS);			_t = _t.getNextSibling();			type.setCardinality(Cardinality.ONE_OR_MORE);			break;		}		case QUESTION:		{			org.exist.xquery.parser.XQueryAST tmp44_AST_in = (org.exist.xquery.parser.XQueryAST)_t;			match(_t,QUESTION);			_t = _t.getNextSibling();			type.setCardinality(Cardinality.ZERO_OR_ONE);			break;		}		case 3:		{			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		}		_retTree = _t;	}