(context: ResolutionContext)
| 120 | } |
| 121 | |
| 122 | function cacheFor(context: ResolutionContext): Cache { |
| 123 | let cache = memo.get(context); |
| 124 | if (!cache) { |
| 125 | cache = { summaries: new Map(), includes: new Map(), byBasename: null, roots: new Map(), watched: new Map() }; |
| 126 | memo.set(context, cache); |
| 127 | } |
| 128 | return cache; |
| 129 | } |
| 130 | |
| 131 | /** Cache syntax, never conditional truth: an included file can change its flags. */ |
| 132 | function summarize(file: string, context: ResolutionContext, cache: Cache): FileEvent[] { |
no test coverage detected