case EMPTY_SEQUENCE_TYPE: {
return SequenceType.create(EmptySequenceType.INSTANCE, Quantifier.QUANT_ZERO);
}
case SINGLE_TYPE: {
SingleTypeNode stNode = (SingleTypeNode) type;
ItemType iType = createItemType(stNode.getAtomicType());
return SequenceType.create(iType, stNode.isOptional() ? Quantifier.QUANT_QUESTION
: Quantifier.QUANT_ONE);
}
default:
throw new IllegalStateException("Unknown node: " + type.getTag());