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

Function addLiteralTarget

ark/aot/usage.ts:1700–1707  ·  view source on GitHub ↗
(literal: Node, targets: KeyReads[])

Source from the content-addressed store, hash-verified

1698 patchesBuiltins: ctx.patchesBuiltins
1699 }
1700 const addLiteralTarget = (literal: Node, targets: KeyReads[]) => {
1701 let own = reads.byLiteral.get(literal)
1702 if (!own) {
1703 own = { keys: new Set(), any: false }
1704 ;(reads.byLiteral as Map<Node, KeyReads>).set(literal, own)
1705 }
1706 targets.push(own)
1707 }
1708 for (const module of moduleList) {
1709 walk(module.program, node => {
1710 if (node.type !== "ThisExpression") return true

Callers 1

thisReadsOfFunction · 0.85

Calls 3

getMethod · 0.65
setMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected