MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / languageForJsxFile

Function languageForJsxFile

src/resolution/callback-synthesizer.ts:1996–2003  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

1994}
1995
1996function 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. */
2006function importedFrom(ctx: ResolutionContext, file: string, language: Language): Map<string, string> {

Callers 4

importedFromPackageFunction · 0.85
projectImportFunction · 0.85
jsxChildFunction · 0.85
collectionOfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected