class YARD::Tags::TypesExplainer::CollectionType

@private

‘<…>`’s type parameters are conventionally used two ways - as a homogeneous collection’s implicit union of element type(s), or as a class’s distinct, positional type parameters, e.g. ‘Result<Success, Failure>` - and this class renders either way, chosen per instance by {#union?}. This keeps that choice entirely out of the parser: every `<…>` becomes one of these, regardless of name.