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

Function getNonInterhitedProperties

test/fixtures/snapshot/typescript.js:84510–84530  ·  view source on GitHub ↗
(type, baseTypes, properties)

Source from the content-addressed store, hash-verified

84508 }
84509 }
84510 function getNonInterhitedProperties(type, baseTypes, properties) {
84511 if (!ts.length(baseTypes)) {
84512 return properties;
84513 }
84514 var seen = new ts.Map();
84515 ts.forEach(properties, function (p) {
84516 seen.set(p.escapedName, p);
84517 });
84518 for (var _i = 0, baseTypes_3 = baseTypes; _i < baseTypes_3.length; _i++) {
84519 var base = baseTypes_3[_i];
84520 var properties_5 = getPropertiesOfType(getTypeWithThisArgument(base, type.thisType));
84521 for (var _a = 0, properties_4 = properties_5; _a < properties_4.length; _a++) {
84522 var prop = properties_4[_a];
84523 var existing = seen.get(prop.escapedName);
84524 if (existing && prop.parent === existing.parent) {
84525 seen.delete(prop.escapedName);
84526 }
84527 }
84528 }
84529 return ts.arrayFrom(seen.values());
84530 }
84531 function checkInheritedPropertiesAreIdentical(type, typeNode) {
84532 var baseTypes = getBaseTypes(type);
84533 if (baseTypes.length < 2) {

Callers 1

serializeAsClassFunction · 0.85

Calls 8

getPropertiesOfTypeFunction · 0.85
getTypeWithThisArgumentFunction · 0.85
forEachMethod · 0.65
getMethod · 0.65
deleteMethod · 0.65
lengthMethod · 0.45
setMethod · 0.45
valuesMethod · 0.45

Tested by

no test coverage detected