(fileName string, options *core.CompilerOptions)
| 172 | } |
| 173 | |
| 174 | func getJSExtensionForFile(fileName string, options *core.CompilerOptions) string { |
| 175 | result := module.TryGetJSExtensionForFile(fileName, options) |
| 176 | if len(result) == 0 { |
| 177 | panic(fmt.Sprintf("Extension %s is unsupported:: FileName:: %s", extensionFromPath(fileName), fileName)) |
| 178 | } |
| 179 | return result |
| 180 | } |
| 181 | |
| 182 | /** |
| 183 | * Gets the extension from a path. |
no test coverage detected