MCPcopy Create free account
hub / github.com/glideapps/quicktype / unionNeedsName

Method unionNeedsName

src/Language/Java.ts:203–205  ·  view source on GitHub ↗
(u: UnionType)

Source from the content-addressed store, hash-verified

201 }
202
203 protected unionNeedsName(u: UnionType): boolean {
204 return !nullableFromUnion(u);
205 }
206
207 // FIXME: This is the same as for C#.
208 protected namedTypeToNameForTopLevel(type: Type): NamedType | null {

Callers 2

setUpNamingFunction · 0.45
emitSourceFunction · 0.45

Calls 1

nullableFromUnionFunction · 0.90

Tested by

no test coverage detected