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

Function add

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

Source from the content-addressed store, hash-verified

65const tables = new WeakMap<ResolutionContext, ClassTable>();
66
67function add(map: Map<string, Node[]>, key: string, node: Node): void {
68 const list = map.get(key);
69 if (list) list.push(node);
70 else map.set(key, [node]);
71}
72
73function classTable(context: ResolutionContext): ClassTable {
74 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