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

Function addToGroup

test/fixtures/snapshot/typescript.js:82084–82093  ·  view source on GitHub ↗
(map, key, value, getKey)

Source from the content-addressed store, hash-verified

82082 return !(getMergedSymbol(typeParameter.symbol).isReferenced & 262144 /* SymbolFlags.TypeParameter */) && !isIdentifierThatStartsWithUnderscore(typeParameter.name);
82083 }
82084 function addToGroup(map, key, value, getKey) {
82085 var keyString = String(getKey(key));
82086 var group = map.get(keyString);
82087 if (group) {
82088 group[1].push(value);
82089 }
82090 else {
82091 map.set(keyString, [key, [value]]);
82092 }
82093 }
82094 function tryGetRootParameterDeclaration(node) {
82095 return ts.tryCast(ts.getRootDeclaration(node), ts.isParameter);
82096 }

Callers 1

Calls 5

StringClass · 0.85
getMethod · 0.65
getKeyFunction · 0.50
pushMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected