MCPcopy Index your code
hub / github.com/nodejs/node / addToMultimap

Function addToMultimap

test/fixtures/snapshot/typescript.js:119606–119613  ·  view source on GitHub ↗
(map, k, v)

Source from the content-addressed store, hash-verified

119604 }
119605 BuilderState.createManyToManyPathMap = createManyToManyPathMap;
119606 function addToMultimap(map, k, v) {
119607 var set = map.get(k);
119608 if (!set) {
119609 set = new ts.Set();
119610 map.set(k, set);
119611 }
119612 set.add(v);
119613 }
119614 function deleteFromMultimap(map, k, v) {
119615 var set = map.get(k);
119616 if (set === null || set === void 0 ? void 0 : set.delete(v)) {

Callers 1

createFunction · 0.85

Calls 3

getMethod · 0.65
addMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…