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

Function languageForFile

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

Source from the content-addressed store, hash-verified

109}
110
111function languageForFile(filePath: string): Language {
112 if (filePath.endsWith('.tsx')) return 'tsx';
113 if (filePath.endsWith('.jsx')) return 'jsx';
114 if (/\.(?:ts|mts|cts)$/.test(filePath)) return 'typescript';
115 return 'javascript';
116}
117
118// =============================================================================
119// 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