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

Function transformTypeOfMembers

test/fixtures/snapshot/typescript.js:67729–67738  ·  view source on GitHub ↗
(type, f)

Source from the content-addressed store, hash-verified

67727 return symbol;
67728 }
67729 function transformTypeOfMembers(type, f) {
67730 var members = ts.createSymbolTable();
67731 for (var _i = 0, _a = getPropertiesOfObjectType(type); _i < _a.length; _i++) {
67732 var property = _a[_i];
67733 var original = getTypeOfSymbol(property);
67734 var updated = f(original);
67735 members.set(property.escapedName, updated === original ? property : createSymbolWithType(property, updated));
67736 }
67737 return members;
67738 }
67739 /**
67740 * If the the provided object literal is subject to the excess properties check,
67741 * create a new that is exempt. Recursively mark object literal members as exempt.

Callers 1

Calls 5

getTypeOfSymbolFunction · 0.85
createSymbolWithTypeFunction · 0.85
fFunction · 0.50
setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…