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

Function inferFromTypeArguments

test/fixtures/snapshot/typescript.js:68735–68745  ·  view source on GitHub ↗
(sourceTypes, targetTypes, variances)

Source from the content-addressed store, hash-verified

68733 ];
68734 }
68735 function inferFromTypeArguments(sourceTypes, targetTypes, variances) {
68736 var count = sourceTypes.length < targetTypes.length ? sourceTypes.length : targetTypes.length;
68737 for (var i = 0; i < count; i++) {
68738 if (i < variances.length && (variances[i] & 7 /* VarianceFlags.VarianceMask */) === 2 /* VarianceFlags.Contravariant */) {
68739 inferFromContravariantTypes(sourceTypes[i], targetTypes[i]);
68740 }
68741 else {
68742 inferFromTypes(sourceTypes[i], targetTypes[i]);
68743 }
68744 }
68745 }
68746 function inferFromContravariantTypes(source, target) {
68747 if (strictFunctionTypes || priority & 1024 /* InferencePriority.AlwaysStrict */) {
68748 contravariant = !contravariant;

Callers 2

inferFromTypesFunction · 0.85
inferFromObjectTypesFunction · 0.85

Calls 2

inferFromTypesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…