(filePath: string)
| 46 | } |
| 47 | |
| 48 | export function getModuleName(filePath: string) { |
| 49 | const fileName = filePath.substring(filePath.lastIndexOf('/') + 1); |
| 50 | const fileNameNoExtension = fileName.split('.')[0]; |
| 51 | return fileNameNoExtension; |
| 52 | } |
| 53 | |
| 54 | export function onError(filename: string, sourceFile: ts.SourceFile, node: ts.Node, message: string): never { |
| 55 | throw new NativeCompilerError(filename, sourceFile, node, message); |
nothing calls this directly
no test coverage detected