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

Function detectLang

src/context/import-graph.ts:86–92  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

84}
85
86function detectLang(file: string): string {
87 const ext = path.extname(file).toLowerCase();
88 if (ext === '.py') return 'python';
89 if (ext === '.go') return 'go';
90 if (ext === '.rs') return 'rust';
91 return 'js';
92}
93
94/**
95 * Resolve an import specifier (as written) to a project-relative file path, or

Callers 1

buildImportGraphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected