(path: string)
| 32 | } |
| 33 | |
| 34 | function safeReadText(path: string): string | null { |
| 35 | try { |
| 36 | if (File.exists(path)) { |
| 37 | return File.fromPath(path).readTextSync(); |
| 38 | } |
| 39 | } catch (_) {} |
| 40 | return null; |
| 41 | } |
| 42 | |
| 43 | function findInlineOrLinkedMapFromJs(jsPath: string): { key: string; text: string } | null { |
| 44 | const jsText = safeReadText(jsPath); |
no test coverage detected