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

Method pairReference

ark/aot/declareShapes.ts:158–168  ·  view source on GitHub ↗
(node: ReferenceNode, t: ts.Type)

Source from the content-addressed store, hash-verified

156 }
157
158 pairReference(node: ReferenceNode, t: ts.Type): void {
159 const args = this.argumentsOf(node, t)
160 if (!args) return
161 const held = this.names.printHeld(t, this.key)
162 if (held !== undefined) {
163 this.byNode.set(node, held)
164 return
165 }
166 for (const [i, arg] of node.typeArguments!.entries())
167 if (i < args.length) this.pair(arg, args[i])
168 }
169
170 // the types a reference's arguments declare, where it names the type's
171 // alias, class or interface

Callers 1

pairMethod · 0.95

Calls 4

argumentsOfMethod · 0.95
pairMethod · 0.95
printHeldMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected