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

Function getStringMappingTypeForGenericType

test/fixtures/snapshot/typescript.js:62008–62015  ·  view source on GitHub ↗
(symbol, type)

Source from the content-addressed store, hash-verified

62006 return str;
62007 }
62008 function getStringMappingTypeForGenericType(symbol, type) {
62009 var id = "".concat(getSymbolId(symbol), ",").concat(getTypeId(type));
62010 var result = stringMappingTypes.get(id);
62011 if (!result) {
62012 stringMappingTypes.set(id, result = createStringMappingType(symbol, type));
62013 }
62014 return result;
62015 }
62016 function createStringMappingType(symbol, type) {
62017 var result = createType(268435456 /* TypeFlags.StringMapping */);
62018 result.symbol = symbol;

Callers 1

getStringMappingTypeFunction · 0.85

Calls 6

getSymbolIdFunction · 0.85
getTypeIdFunction · 0.85
createStringMappingTypeFunction · 0.85
concatMethod · 0.80
getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…