(node: ReferenceNode, t: ts.Type)
| 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 |
no test coverage detected