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

Function languageOf

__tests__/pascal-inc-detection.test.ts:149–149  ·  view source on GitHub ↗
(cg: CodeGraph, rel: string)

Source from the content-addressed store, hash-verified

147 fs.writeFileSync(p, body);
148 };
149 const languageOf = (cg: CodeGraph, rel: string) => cg.getFiles().find((f) => f.path === rel)?.language;
150 const symbolsIn = (cg: CodeGraph, rel: string) =>
151 cg.getNodesInFile(rel).filter((n) => n.kind !== 'file').map((n) => `${n.kind}:${n.name}:${n.language}`).sort();
152

Callers 1

Calls 1

getFilesMethod · 0.80

Tested by

no test coverage detected