(filePath: string)
| 85 | |
| 86 | /** True when this reader has a pattern family for the file. */ |
| 87 | export function isRouteSource(filePath: string): boolean { |
| 88 | const lower = filePath.toLowerCase(); |
| 89 | return ROUTE_SOURCE_EXTENSIONS.some(extension => lower.endsWith(extension)); |
| 90 | } |
| 91 | |
| 92 | /** 1-based line the character at `index` sits on. */ |
| 93 | function lineAt(source: string, index: number): number { |
no outgoing calls
no test coverage detected