MCPcopy Create free account
hub / github.com/SethGammon/Citadel / extractFile

Function extractFile

core/map/index.js:268–282  ·  view source on GitHub ↗
(content, lang)

Source from the content-addressed store, hash-verified

266}
267
268function extractFile(content, lang) {
269 switch (lang) {
270 case 'typescript':
271 case 'javascript':
272 return extractTS(content);
273 case 'python':
274 return extractPython(content);
275 case 'go':
276 return extractGo(content);
277 case 'rust':
278 return extractRust(content);
279 default:
280 return { exports: [], imports: [], symbols: [] };
281 }
282}
283
284function inferRole(relPath) {
285 const p = relPath.toLowerCase();

Callers 1

generateMapIndexFunction · 0.85

Calls 4

extractTSFunction · 0.85
extractPythonFunction · 0.85
extractGoFunction · 0.85
extractRustFunction · 0.85

Tested by

no test coverage detected