The qualified name of the routine the nearest routine header at or above a line names (`TFoo::Bar`), or null as for headerClassAt.
(filePath: string, line: number, context: ResolutionContext)
| 816 | |
| 817 | /** The qualified name of the routine the nearest routine header at or above a line names (`TFoo::Bar`), or null as for headerClassAt. */ |
| 818 | function headerRoutineAt(filePath: string, line: number, context: ResolutionContext): string | null { |
| 819 | headerClassAt(filePath, line, context); |
| 820 | return headerAt(memos(context).headerClasses.get(filePath) ?? [], line)?.qn ?? null; |
| 821 | } |
| 822 | |
| 823 | /** The last of a file's header lines (see headerClassAt) at or above a line. */ |
| 824 | function headerAt<T extends { line: number }>(headers: T[], line: number): T | undefined { |
no test coverage detected