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

Function createParseCtx

ark/schema/scope.ts:888–898  ·  view source on GitHub ↗
(
		input: input
	)

Source from the content-addressed store, hash-verified

886 }
887
888 protected createParseCtx<input extends BaseParseContextInput>(
889 input: input
890 ): input & AttachedParseContext {
891 bootstrap()
892 const ctx = input as input & AttachedParseContext
893 ctx[arkKind] = "context"
894 ctx.$ = this as never
895 ctx.id = input.id ?? registerNodeId(input.prefix)
896 ctx.phase = "unresolved"
897 return ctx
898 }
899
900 traversal(root: unknown): Traversal {
901 return new (rootApplyRuntimeOf(this.cfg).Traversal)(root, this.cfg)

Callers

nothing calls this directly

Calls 2

bootstrapFunction · 0.90
registerNodeIdFunction · 0.90

Tested by

no test coverage detected