(file: string)
| 2058 | } |
| 2059 | |
| 2060 | function languageForJsxFile(file: string): Language { |
| 2061 | if (file.endsWith('.tsx')) return 'tsx'; |
| 2062 | if (/\.[cm]?ts$/.test(file)) return 'typescript'; |
| 2063 | if (file.endsWith('.jsx')) return 'jsx'; |
| 2064 | if (file.endsWith('.vue')) return 'vue'; |
| 2065 | if (file.endsWith('.svelte')) return 'svelte'; |
| 2066 | return 'javascript'; |
| 2067 | } |
| 2068 | |
| 2069 | /** `localName` → the project file it is imported from, for one file's imports. */ |
| 2070 | function importedFrom(ctx: ResolutionContext, file: string, language: Language): Map<string, string> { |
no outgoing calls
no test coverage detected