MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / detectLanguage

Function detectLanguage

src/tools/ast/parser.ts:32–35  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

30};
31
32export function detectLanguage(filePath: string): string | null {
33 const ext = path.extname(filePath).toLowerCase();
34 return EXT_TO_LANG[ext] ?? null;
35}
36
37async function initTreeSitter(): Promise<void> {
38 if (TreeSitter) return;

Callers 10

executeMethod · 0.85
checkSyntaxForWriteFunction · 0.85
indexAllMethod · 0.85
indexFileMethod · 0.85
walkMethod · 0.85
extractSymbolsFunction · 0.85
analyzeDataFlowFunction · 0.85
langForFileFunction · 0.85
parseCheckMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected