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

Function add

src/resolution/pascal-scope.ts:254–259  ·  view source on GitHub ↗
(next: Node | null)

Source from the content-addressed store, hash-verified

252 const order: Node[] = [];
253 const seen = new Set<string>([cls.id]);
254 const add = (next: Node | null): Node | null => {
255 if (!next || next.kind !== 'class' || seen.has(next.id) || order.length >= MAX_HIERARCHY_DEPTH) return null;
256 seen.add(next.id);
257 order.push(next);
258 return next;
259 };
260 let c: Node | null = cls;
261 const helper = helperHead(cls);
262 if (helper) {

Callers 4

inheritedAncestryFunction · 0.70
usedUnitFilesFunction · 0.70
unitFileNamedFunction · 0.70
typesNamedFunction · 0.70

Calls 6

unitFileNamedFunction · 0.85
hasMethod · 0.80
pushMethod · 0.80
getMethod · 0.65
addMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected