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

Function languageForFile

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

Source from the content-addressed store, hash-verified

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

Callers 1

extractFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected