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

Function add

ark/aot/usage.ts:1005–1008  ·  view source on GitHub ↗
(name: string, read: PassedRead)

Source from the content-addressed store, hash-verified

1003 const reads: PassedReads = new Map()
1004 let readsArguments = false
1005 const add = (name: string, read: PassedRead) => {
1006 const at = positions.get(name)
1007 if (at !== undefined && reads.get(at) !== "any") reads.set(at, read)
1008 }
1009 walk(fn.body!, node => {
1010 const received = receivedOf(node)
1011 if (received) {

Callers 2

linkMethod · 0.70
readsOfFunction · 0.70

Calls 2

getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected