The Pascal nodes a name names, whatever their case.
(lower: string, context: ResolutionContext)
| 676 | |
| 677 | /** The Pascal nodes a name names, whatever their case. */ |
| 678 | function pascalNamed(lower: string, context: ResolutionContext): Node[] { |
| 679 | const memo = memos(context).named; |
| 680 | let nodes = memo.get(lower); |
| 681 | if (!nodes) { |
| 682 | nodes = context.getNodesByLowerName(lower).filter((n) => n.language === 'pascal'); |
| 683 | memo.set(lower, nodes); |
| 684 | } |
| 685 | return nodes; |
| 686 | } |
| 687 | |
| 688 | /** Drops this module's per-context memos (the resolver clears them between runs). */ |
| 689 | export function clearPascalScopeMemos(context: ResolutionContext): void { |
no test coverage detected