(context: ResolutionContext, memo: Memo)
| 99 | } |
| 100 | |
| 101 | function includesByStem(context: ResolutionContext, memo: Memo): Map<string, Include[]> { |
| 102 | if (memo.byStem) return memo.byStem; |
| 103 | const byStem = new Map<string, Include[]>(); |
| 104 | for (const [name, includes] of includesByName(context, memo)) { |
| 105 | const stem = stemOf(name); |
| 106 | const list = byStem.get(stem); |
| 107 | if (list) list.push(...includes); |
| 108 | else byStem.set(stem, [...includes]); |
| 109 | } |
| 110 | memo.byStem = byStem; |
| 111 | return byStem; |
| 112 | } |
| 113 | |
| 114 | /** |
| 115 | * Past this many, a project's `#include`s are left to the threads that ask |
no test coverage detected