(id: string)
| 1101 | const ownMemo = new Map<string, Set<string>>(); |
| 1102 | const ownSignatures = new Map<string, Map<string, (string | undefined)[]>>(); |
| 1103 | const ownMethods = (id: string): Set<string> => { |
| 1104 | let names = ownMemo.get(id); |
| 1105 | if (!names) { |
| 1106 | names = new Set(); |
| 1107 | const signatures = new Map<string, (string | undefined)[]>(); |
| 1108 | for (const e of queries.getOutgoingEdges(id, ['contains'])) { |
| 1109 | const n = queries.getNodeById(e.target); |
| 1110 | if (!n || n.kind !== 'method') continue; |
| 1111 | const key = goMethodKey(n); |
| 1112 | names.add(key); |
| 1113 | const list = signatures.get(key); |
| 1114 | if (list) list.push(n.signature); |
| 1115 | else signatures.set(key, [n.signature]); |
| 1116 | } |
| 1117 | ownMemo.set(id, names); |
| 1118 | ownSignatures.set(id, signatures); |
| 1119 | } |
| 1120 | return names; |
| 1121 | }; |
| 1122 | |
| 1123 | // The types one embeds: an interface embeds interfaces, a struct any of the |
| 1124 | // three. Every type's are read up front in a few batched queries rather than |
no test coverage detected