(typ Type)
| 359 | } |
| 360 | |
| 361 | func 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 | |
| 372 | func IsPrimitiveType(typ Type) bool { |
| 373 | return !IsContainerType(typ) |
no outgoing calls
no test coverage detected