The Pascal nodes a name names, whatever their case.
(lower: string, context: ResolutionContext)
| 1854 | |
| 1855 | /** The Pascal nodes a name names, whatever their case. */ |
| 1856 | function pascalNamed(lower: string, context: ResolutionContext): Node[] { |
| 1857 | const memo = memos(context).named; |
| 1858 | let nodes = memo.get(lower); |
| 1859 | if (!nodes) { |
| 1860 | nodes = context.getNodesByLowerName(lower).filter((n) => n.language === 'pascal'); |
| 1861 | memo.set(lower, nodes); |
| 1862 | } |
| 1863 | return nodes; |
| 1864 | } |
| 1865 | |
| 1866 | /** Drops this module's per-context memos (the resolver clears them between runs). */ |
| 1867 | export function clearPascalScopeMemos(context: ResolutionContext): void { |
no test coverage detected