(goType: string | undefined, ctx?: GoCodegenCtx)
| 373 | } |
| 374 | |
| 375 | function goTypeIsNilable(goType: string | undefined, ctx?: GoCodegenCtx): boolean { |
| 376 | if (!goType) return false; |
| 377 | if (goTypeIsPointer(goType) || goTypeIsSlice(goType) || goTypeIsMap(goType)) return true; |
| 378 | return ctx ? goDiscriminatedUnionInfoForType(goType, ctx) !== undefined : false; |
| 379 | } |
| 380 | |
| 381 | function goOptionalFieldNeedsDereference(goType: string | undefined): boolean { |
| 382 | return goType === undefined || goTypeIsPointer(goType); |
no test coverage detected
searching dependent graphs…