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

Function languageForFile

src/resolution/frameworks/tanstack-router.ts:135–140  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

133}
134
135function languageForFile(filePath: string): Language {
136 if (filePath.endsWith('.tsx')) return 'tsx';
137 if (filePath.endsWith('.jsx')) return 'jsx';
138 if (/\.(?:ts|mts|cts)$/.test(filePath)) return 'typescript';
139 return 'javascript';
140}
141
142// =============================================================================
143// Reading the routes

Callers 1

extractFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected