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

Function languages

__tests__/objcpp-cpp-items.test.ts:330–336  ·  view source on GitHub ↗

The language each named symbol of a file was read as.

(name: string, file: string)

Source from the content-addressed store, hash-verified

328
329 /** The language each named symbol of a file was read as. */
330 function languages(name: string, file: string): Record<string, string> {
331 const out: Record<string, string> = {};
332 for (const n of graphs.get(name)!.getNodesInFile(file)) {
333 if (n.kind !== 'file' && n.kind !== 'import') out[n.qualifiedName] = n.language;
334 }
335 return out;
336 }
337
338 describe("the issue's file", () => {
339 it('gives the symbols and the links the same lines give as C++', () => {

Callers 1

Calls 2

getNodesInFileMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected