(context: ResolutionContext)
| 1172 | const INFER_SCAN_STATES = new WeakMap<ResolutionContext, Map<string, InferScanState>>(); |
| 1173 | |
| 1174 | function getInferScanStates(context: ResolutionContext): Map<string, InferScanState> { |
| 1175 | let m = INFER_SCAN_STATES.get(context); |
| 1176 | if (!m) { |
| 1177 | m = new Map(); |
| 1178 | INFER_SCAN_STATES.set(context, m); |
| 1179 | } |
| 1180 | return m; |
| 1181 | } |
| 1182 | |
| 1183 | /** Drop the per-context scan states (see ReferenceResolver.clearCaches). */ |
| 1184 | export function clearNameMatcherMemos(context: ResolutionContext): void { |
no test coverage detected