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

Function languageForFile

src/resolution/frameworks/vue-router.ts:209–213  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

207}
208
209function languageForFile(filePath: string): Language {
210 if (filePath.endsWith('.vue')) return 'vue';
211 if (/\.(?:ts|mts|cts)$/.test(filePath)) return 'typescript';
212 return 'javascript';
213}
214
215/** The id a config-declared route carries — a verbatim reconstruction, so the table can recognise its own. */
216function routeId(filePath: string, line: number, path: string): string {

Callers 2

routeComponentFunction · 0.70
extractFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected