MCPcopy Create free account
hub / github.com/brimdata/super / IsContainerType

Function IsContainerType

type.go:361–370  ·  view source on GitHub ↗
(typ Type)

Source from the content-addressed store, hash-verified

359}
360
361func IsContainerType(typ Type) bool {
362 switch typ := typ.(type) {
363 case *TypeNamed:
364 return IsContainerType(typ.Type)
365 case *TypeSet, *TypeArray, *TypeRecord, *TypeUnion, *TypeMap:
366 return true
367 default:
368 return false
369 }
370}
371
372func IsPrimitiveType(typ Type) bool {
373 return !IsContainerType(typ)

Callers 3

decodePrimitiveMethod · 0.92
IsContainerMethod · 0.85
IsPrimitiveTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected