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

Function getPropertiesOfContext

test/fixtures/snapshot/typescript.js:67781–67796  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

67779 return context.siblings;
67780 }
67781 function getPropertiesOfContext(context) {
67782 if (!context.resolvedProperties) {
67783 var names = new ts.Map();
67784 for (var _i = 0, _a = getSiblingsOfContext(context); _i < _a.length; _i++) {
67785 var t = _a[_i];
67786 if (isObjectLiteralType(t) && !(ts.getObjectFlags(t) & 2097152 /* ObjectFlags.ContainsSpread */)) {
67787 for (var _b = 0, _c = getPropertiesOfType(t); _b < _c.length; _b++) {
67788 var prop = _c[_b];
67789 names.set(prop.escapedName, prop);
67790 }
67791 }
67792 }
67793 context.resolvedProperties = ts.arrayFrom(names.values());
67794 }
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

Callers 1

Calls 5

getSiblingsOfContextFunction · 0.85
isObjectLiteralTypeFunction · 0.85
getPropertiesOfTypeFunction · 0.85
setMethod · 0.45
valuesMethod · 0.45

Tested by

no test coverage detected