MCPcopy Index your code
hub / github.com/glideapps/quicktype / getHopefullyFinishedType

Function getHopefullyFinishedType

src/JSONSchemaInput.ts:125–131  ·  view source on GitHub ↗
(builder: TypeGraphBuilder, t: TypeRef)

Source from the content-addressed store, hash-verified

123// the properties of `Bar`, but to resolve those we have to
124// know the properties of `Foo`.
125function getHopefullyFinishedType(builder: TypeGraphBuilder, t: TypeRef): Type {
126 const result = builder.lookupType(t);
127 if (result === undefined) {
128 return panic("Inconveniently recursive types in schema");
129 }
130 return result;
131}
132
133function assertIsClass(t: Type): ClassType {
134 if (!(t instanceof ClassType)) {

Callers 3

makeClassMethod · 0.85
unifyTypesFunction · 0.85
makeClassFunction · 0.85

Calls 1

panicFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…