Function
typedCollection(for:containedTypes:unwrappedName:typeRef:)
Return a typed collection reference for the given, prefixed type name.
func typedCollection(for prefixedTypeName: String, containedTypes: [GIR.CType], unwrappedName: String, typeRef: TypeReference) -> TypeReference?
Parameters
prefixedTypeName-
The prefixed type name to check.
containedTypes-
The contained types of the given type.
unwrappedName-
The name of the unwrapped type.
typeRef-
The type reference for the given type
Return Value
The type reference for the typed collection, or nil if the given type name is not a known typed collection.
Discussion
This function thecks wthether the given type name is a known typed collection and, if so, returns the appropriate type reference for a typed collection.