(node: Node)
| 516 | return types.get(first) ?? null; |
| 517 | }; |
| 518 | const memberTypesOf = async (node: Node): Promise<Map<string, string>> => { |
| 519 | const key = `${node.filePath}:${node.startLine}`; |
| 520 | let types = classTypes.get(key); |
| 521 | if (!types) { |
| 522 | types = await calls.memberTypes(node); |
| 523 | classTypes.set(key, types); |
| 524 | } |
| 525 | return types; |
| 526 | }; |
| 527 | |
| 528 | // Where a member call really goes, by the receiver's declared type: the |
| 529 | // class named by the type, and its method of the call's name. Null when the |
no test coverage detected