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

Function getWidenedProperty

test/fixtures/snapshot/typescript.js:67797–67807  ·  view source on GitHub ↗
(prop, context)

Source from the content-addressed store, hash-verified

67795 return context.resolvedProperties;
67796 }
67797 function getWidenedProperty(prop, context) {
67798 if (!(prop.flags & 4 /* SymbolFlags.Property */)) {
67799 // Since get accessors already widen their return value there is no need to
67800 // widen accessor based properties here.
67801 return prop;
67802 }
67803 var original = getTypeOfSymbol(prop);
67804 var propContext = context && createWideningContext(context, prop.escapedName, /*siblings*/ undefined);
67805 var widened = getWidenedTypeWithContext(original, propContext);
67806 return widened === original ? prop : createSymbolWithType(prop, widened);
67807 }
67808 function getUndefinedProperty(prop) {
67809 var cached = undefinedProperties.get(prop.escapedName);
67810 if (cached) {

Callers 1

Calls 4

getTypeOfSymbolFunction · 0.85
createWideningContextFunction · 0.85
createSymbolWithTypeFunction · 0.85

Tested by

no test coverage detected