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

Function languageForJsxFile

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

Source from the content-addressed store, hash-verified

2058}
2059
2060function 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. */
2070function importedFrom(ctx: ResolutionContext, file: string, language: Language): Map<string, string> {

Callers 3

importedFromPackageFunction · 0.85
projectImportFunction · 0.85
jsxChildFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected