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

Function checksCtx

ark/schema/node.ts:628–634  ·  view source on GitHub ↗

whether checking data reaches a narrow that reads `ctx`, through aliases too, so Allows needs a traversal

()

Source from the content-addressed store, hash-verified

626
627 /** whether checking data reaches a narrow that reads `ctx`, through aliases too, so Allows needs a traversal */
628 get checksCtx(): boolean {
629 if (this.c.checksCtx !== undefined) return this.c.checksCtx
630 const requiresTraversal = this.reaches("ctxPred")
631 return isIoFinal() ?
632 (this.c.checksCtx = requiresTraversal)
633 : requiresTraversal
634 }
635
636 private reaches(
637 flag: "alters" | "ctxPred",

Callers

nothing calls this directly

Calls 2

isIoFinalFunction · 0.90
reachesMethod · 0.45

Tested by

no test coverage detected