Every Pascal method's and function's name, lowercased, or null when the context can't list them.
(context: ResolutionContext)
| 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 { |
| 669 | const memo = memos(context); |
| 670 | if (memo.routineNames === undefined) { |
| 671 | const names = context.getNodeNamesOfKinds?.('pascal', ['method', 'function']); |
| 672 | memo.routineNames = names ? new Set(names.map((n) => n.toLowerCase())) : null; |
| 673 | } |
| 674 | return memo.routineNames; |
| 675 | } |
| 676 | |
| 677 | /** The Pascal nodes a name names, whatever their case. */ |
| 678 | function pascalNamed(lower: string, context: ResolutionContext): Node[] { |
no test coverage detected