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

Method needsCtxFor

ark/type/standalone/compilers.ts:644–652  ·  view source on GitHub ↗
(
		node: BaseNode,
		kind: TraversalKind = this.trav
	)

Source from the content-addressed store, hash-verified

642 }
643
644 override needsCtxFor(
645 node: BaseNode,
646 kind: TraversalKind = this.trav
647 ): boolean {
648 return (
649 (kind !== "Allows" || !this.unifies(node)) &&
650 super.needsCtxFor(node, kind)
651 )
652 }
653
654 // a key's union value is applied by its own traversal, which allows unpassed
655 override failingSiteOf(): undefined {}

Callers 1

invFunction · 0.80

Calls 1

unifiesMethod · 0.45

Tested by

no test coverage detected