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

Method of

ark/aot/sameEachRun.ts:178–183  ·  view source on GitHub ↗
(fn: Node, module: SourceModule)

Source from the content-addressed store, hash-verified

176 }
177
178 of(fn: Node, module: SourceModule): boolean {
179 let result = this.byFunction.get(fn)
180 if (result === undefined)
181 this.byFunction.set(fn, (result = this.reads(fn, module, new Set())))
182 return result
183 }
184
185 // `seen` answers for what's being read, so a cycle is as sound as what else
186 // its members read, which each decides before the first returns

Callers

nothing calls this directly

Calls 3

readsMethod · 0.95
getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected