(file: string)
| 1994 | } |
| 1995 | |
| 1996 | function languageForJsxFile(file: string): Language { |
| 1997 | if (file.endsWith('.tsx')) return 'tsx'; |
| 1998 | if (/\.[cm]?ts$/.test(file)) return 'typescript'; |
| 1999 | if (file.endsWith('.jsx')) return 'jsx'; |
| 2000 | if (file.endsWith('.vue')) return 'vue'; |
| 2001 | if (file.endsWith('.svelte')) return 'svelte'; |
| 2002 | return 'javascript'; |
| 2003 | } |
| 2004 | |
| 2005 | /** `localName` → the project file it is imported from, for one file's imports. */ |
| 2006 | function importedFrom(ctx: ResolutionContext, file: string, language: Language): Map<string, string> { |
no outgoing calls
no test coverage detected