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

Function add

src/resolution/pascal-scope.ts:977–981  ·  view source on GitHub ↗
(name: string, file: string)

Source from the content-addressed store, hash-verified

975 if (!m.unitsByName) {
976 const units = new Map<string, string[]>();
977 const add = (name: string, file: string): void => {
978 const files = units.get(name);
979 if (files) files.push(file);
980 else units.set(name, [file]);
981 };
982 const headed = new Set<string>();
983 for (const n of context.getNodesByKind('module')) {
984 if (n.language !== 'pascal') continue;

Callers 2

unitFileNamedFunction · 0.70
typesNamedFunction · 0.70

Calls 4

pushMethod · 0.80
hasMethod · 0.80
getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected