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

Function includeMixinType

test/fixtures/snapshot/typescript.js:58292–58303  ·  view source on GitHub ↗
(type, types, mixinFlags, index)

Source from the content-addressed store, hash-verified

58290 return mixinFlags;
58291 }
58292 function includeMixinType(type, types, mixinFlags, index) {
58293 var mixedTypes = [];
58294 for (var i = 0; i < types.length; i++) {
58295 if (i === index) {
58296 mixedTypes.push(type);
58297 }
58298 else if (mixinFlags[i]) {
58299 mixedTypes.push(getReturnTypeOfSignature(getSignaturesOfType(types[i], 1 /* SignatureKind.Construct */)[0]));
58300 }
58301 }
58302 return getIntersectionType(mixedTypes);
58303 }
58304 function resolveIntersectionTypeMembers(type) {
58305 // The members and properties collections are empty for intersection types. To get all properties of an
58306 // intersection type use getPropertiesOfType (only the language service uses this).

Callers 1

_loop_12Function · 0.85

Calls 4

getReturnTypeOfSignatureFunction · 0.85
getSignaturesOfTypeFunction · 0.85
getIntersectionTypeFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected