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

Function languageForFile

src/resolution/frameworks/nextjs.ts:110–115  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

108}
109
110function languageForFile(filePath: string): Language {
111 if (filePath.endsWith('.tsx')) return 'tsx';
112 if (filePath.endsWith('.jsx')) return 'jsx';
113 if (/\.(?:ts|mts|cts)$/.test(filePath)) return 'typescript';
114 return 'javascript';
115}
116
117// =============================================================================
118// Route table — this framework's pages, matched the Expo Router way

Callers 1

extractFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected