AST __t755 = _t; AST tmp31_AST_in = (AST)_t;
AST __t256 = _t; AST tmp33_AST_in = (AST)_t;
	public final void sequenceType(AST _t,		SequenceType type	) throws RecognitionException, XPathException {				AST sequenceType_AST_in = (AST)_t;		AST t = null;				{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case ATOMIC_TYPE:		{			AST __t753 = _t;			t = _t==ASTNULL ? null :(AST)_t;			match(_t,ATOMIC_TYPE);			_t = _t.getFirstChild();										QName qn= QName.parse(context, t.getText());							int code= Type.getType(qn);							type.setPrimaryType(code);									_t = __t753;			_t = _t.getNextSibling();			break;		}		case LITERAL_empty:		{			AST __t754 = _t;			AST tmp30_AST_in = (AST)_t;			match(_t,LITERAL_empty);			_t = _t.getFirstChild();										type.setPrimaryType(Type.EMPTY);							type.setCardinality(Cardinality.EMPTY);									_t = __t754;			_t = _t.getNextSibling();			break;		}		case LITERAL_item:		{			AST __t755 = _t;			AST tmp31_AST_in = (AST)_t;			match(_t,LITERAL_item);			_t = _t.getFirstChild();			type.setPrimaryType(Type.ITEM);			_t = __t755;			_t = _t.getNextSibling();			break;		}		case LITERAL_node:		{			AST __t756 = _t;			AST tmp32_AST_in = (AST)_t;			match(_t,LITERAL_node);			_t = _t.getFirstChild();			type.setPrimaryType(Type.NODE);			_t = __t756;			_t = _t.getNextSibling();			break;		}		case LITERAL_element:		{			AST __t757 = _t;			AST tmp33_AST_in = (AST)_t;			match(_t,LITERAL_element);			_t = _t.getFirstChild();			type.setPrimaryType(Type.ELEMENT);			_t = __t757;			_t = _t.getNextSibling();			break;		}		case LITERAL_attribute:		{			AST __t758 = _t;			AST tmp34_AST_in = (AST)_t;			match(_t,LITERAL_attribute);			_t = _t.getFirstChild();			type.setPrimaryType(Type.ATTRIBUTE);			_t = __t758;			_t = _t.getNextSibling();			break;		}		case LITERAL_text:		{			AST __t759 = _t;			AST tmp35_AST_in = (AST)_t;			match(_t,LITERAL_text);			_t = _t.getFirstChild();			type.setPrimaryType(Type.ITEM);			_t = __t759;			_t = _t.getNextSibling();			break;		}		case 123:		{			AST __t760 = _t;			AST tmp36_AST_in = (AST)_t;			match(_t,123);			_t = _t.getFirstChild();			type.setPrimaryType(Type.PROCESSING_INSTRUCTION);			_t = __t760;			_t = _t.getNextSibling();			break;		}		case LITERAL_comment:		{			AST __t761 = _t;			AST tmp37_AST_in = (AST)_t;			match(_t,LITERAL_comment);			_t = _t.getFirstChild();			type.setPrimaryType(Type.COMMENT);			_t = __t761;			_t = _t.getNextSibling();			break;		}		case 124:		{			AST __t762 = _t;			AST tmp38_AST_in = (AST)_t;			match(_t,124);			_t = _t.getFirstChild();			type.setPrimaryType(Type.DOCUMENT);			_t = __t762;			_t = _t.getNextSibling();			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		}		{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case STAR:		{			AST tmp39_AST_in = (AST)_t;			match(_t,STAR);			_t = _t.getNextSibling();			type.setCardinality(Cardinality.ZERO_OR_MORE);			break;		}		case PLUS:		{			AST tmp40_AST_in = (AST)_t;			match(_t,PLUS);			_t = _t.getNextSibling();			type.setCardinality(Cardinality.ONE_OR_MORE);			break;		}		case QUESTION:		{			AST tmp41_AST_in = (AST)_t;			match(_t,QUESTION);			_t = _t.getNextSibling();			type.setCardinality(Cardinality.ZERO_OR_ONE);			break;		}		case 3:		{			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		}		_retTree = _t;	}