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

Function add

src/resolution/frameworks/codeigniter.ts:69–73  ·  view source on GitHub ↗
(map: Map<string, Node[]>, key: string, node: Node)

Source from the content-addressed store, hash-verified

67const tables = new WeakMap<ResolutionContext, ClassTable>();
68
69function add(map: Map<string, Node[]>, key: string, node: Node): void {
70 const list = map.get(key);
71 if (list) list.push(node);
72 else map.set(key, [node]);
73}
74
75function classTable(context: ResolutionContext): ClassTable {
76 const all = context.getNodesByKind('class');

Callers 1

classTableFunction · 0.70

Calls 3

pushMethod · 0.80
getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected