MCPcopy Create free account
hub / github.com/nodejs/node / getTypeOfReverseMappedSymbol

Function getTypeOfReverseMappedSymbol

test/fixtures/snapshot/typescript.js:68243–68249  ·  view source on GitHub ↗
(symbol)

Source from the content-addressed store, hash-verified

68241 return reversed;
68242 }
68243 function getTypeOfReverseMappedSymbol(symbol) {
68244 var links = getSymbolLinks(symbol);
68245 if (!links.type) {
68246 links.type = inferReverseMappedType(symbol.propertyType, symbol.mappedType, symbol.constraintType);
68247 }
68248 return links.type;
68249 }
68250 function inferReverseMappedType(sourceType, target, constraint) {
68251 var typeParameter = getIndexedAccessType(constraint.type, getTypeParameterFromMappedType(target));
68252 var templateType = getTemplateTypeFromMappedType(target);

Callers 1

getTypeOfSymbolFunction · 0.85

Calls 2

getSymbolLinksFunction · 0.85
inferReverseMappedTypeFunction · 0.85

Tested by

no test coverage detected