(file: string, sourceRoot: string)
| 2235 | } |
| 2236 | |
| 2237 | function absoluteSourceFile(file: string, sourceRoot: string): string { |
| 2238 | const cleanFile = stringValue(file); |
| 2239 | if (!cleanFile || isAbsoluteSourceFile(cleanFile) || !sourceRoot) { |
| 2240 | return cleanFile; |
| 2241 | } |
| 2242 | return `${sourceRoot}/${cleanFile.replace(/^\.?\//, "")}`; |
| 2243 | } |
| 2244 | |
| 2245 | function isAbsoluteSourceFile(file: string): boolean { |
| 2246 | return ( |
no test coverage detected