(context: ResolutionContext)
| 650 | const MEMOS = new WeakMap<ResolutionContext, Memos>(); |
| 651 | |
| 652 | function memos(context: ResolutionContext): Memos { |
| 653 | let m = MEMOS.get(context); |
| 654 | if (!m) { |
| 655 | m = { |
| 656 | named: new Map(), inScope: new Map(), classOfRoutine: new Map(), classByQn: new Map(), |
| 657 | ancestors: new Map(), usedFiles: new Map(), classByName: new Map(), unitFiles: new Map(), hierarchy: new Map(), |
| 658 | memberTypes: new Map(), keywords: new Map(), procedural: new Map(), headerClasses: new Map(), outlines: new Map(), |
| 659 | conditionDepths: new Map(), unitFileSets: new Map(), includes: new Map(), includers: new Map(), ownFiles: new Map(), |
| 660 | nestedInScope: new Map(), routineNodes: new Map(), routineQns: new Map(), |
| 661 | }; |
| 662 | MEMOS.set(context, m); |
| 663 | } |
| 664 | return m; |
| 665 | } |
| 666 | |
| 667 | /** Every Pascal method's and function's name, lowercased, or null when the context can't list them. */ |
| 668 | function routineNames(context: ResolutionContext): Set<string> | null { |
no test coverage detected