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

Method holderKindOf

ark/aot/graph.ts:3942–3950  ·  view source on GitHub ↗
(node: Node, literal: Located)

Source from the content-addressed store, hash-verified

3940 // what a literal holds, or data while it's being resolved: e.g. `{ a: o.a }`
3941 // holds nothing until it holds something else
3942 private holderKindOf(node: Node, literal: Located): KindBits {
3943 if (this.resolving.has(node)) return kinds.data
3944 this.resolving.add(node)
3945 try {
3946 return holderOf(this.heldKindOf(literal))
3947 } finally {
3948 this.resolving.delete(node)
3949 }
3950 }
3951
3952 // `this`, or what `new` creates: the object or class that owns it
3953 private thisKindOf(

Callers 2

transferMethod · 0.95
thisKindOfMethod · 0.95

Calls 5

heldKindOfMethod · 0.95
holderOfFunction · 0.70
hasMethod · 0.45
addMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected