MCPcopy Create free account
hub / github.com/arktypeio/arktype / parseOpenDef

Function parseOpenDef

ark/schema/scope.ts:1172–1174  ·  view source on GitHub ↗

parses a definition in this scope while its aliases may still be open

(def: unknown, ctx: BaseParseContext)

Source from the content-addressed store, hash-verified

1170
1171 /** parses a definition in this scope while its aliases may still be open */
1172 private parseOpenDef(def: unknown, ctx: BaseParseContext): BaseRoot {
1173 return defining(() => this.bindRef(this.parseOwn(def, ctx)))
1174 }
1175
1176 fin<node extends BaseRoot>(node: node, jit = true): node {
1177 // an alias may reference a definition still parsing, e.g. Record<string, this>

Callers

nothing calls this directly

Calls 2

definingFunction · 0.90
parseOwnMethod · 0.45

Tested by

no test coverage detected