Every Pascal method's and function's name, lowercased, or null when the context can't list them.
(context: ResolutionContext)
| 1844 | |
| 1845 | /** Every Pascal method's and function's name, lowercased, or null when the context can't list them. */ |
| 1846 | function routineNames(context: ResolutionContext): Set<string> | null { |
| 1847 | const memo = memos(context); |
| 1848 | if (memo.routineNames === undefined) { |
| 1849 | const names = context.getNodeNamesOfKinds?.('pascal', ['method', 'function']); |
| 1850 | memo.routineNames = names ? new Set(names.map((n) => n.toLowerCase())) : null; |
| 1851 | } |
| 1852 | return memo.routineNames; |
| 1853 | } |
| 1854 | |
| 1855 | /** The Pascal nodes a name names, whatever their case. */ |
| 1856 | function pascalNamed(lower: string, context: ResolutionContext): Node[] { |
no test coverage detected