The names of the routines the project's helpers declare, lowercased, whatever type each helps.
(context: ResolutionContext)
| 2113 | |
| 2114 | /** The names of the routines the project's helpers declare, lowercased, whatever type each helps. */ |
| 2115 | function helperMemberNames(context: ResolutionContext): Set<string> { |
| 2116 | const m = memos(context); |
| 2117 | if (!m.helperNames) { |
| 2118 | const names = new Set<string>(); |
| 2119 | for (const helper of context.iterateNodesByKind?.('class') ?? context.getNodesByKind('class')) { |
| 2120 | if (helper.language !== 'pascal' || !helperHead(helper)) continue; |
| 2121 | const owner = helper.qualifiedName.toLowerCase(); |
| 2122 | for (const n of context.getNodesInFile(helper.filePath)) { |
| 2123 | if (isRoutine(n) && ownerOf(n) === owner) names.add(n.name.toLowerCase()); |
| 2124 | } |
| 2125 | } |
| 2126 | m.helperNames = names; |
| 2127 | } |
| 2128 | return m.helperNames; |
| 2129 | } |
| 2130 | |
| 2131 | /** |
| 2132 | * The project's helpers by the id of the class each helps: a class the |
no test coverage detected