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

Function inferFromProperties

test/fixtures/snapshot/typescript.js:69030–69039  ·  view source on GitHub ↗
(source, target)

Source from the content-addressed store, hash-verified

69028 }
69029 }
69030 function inferFromProperties(source, target) {
69031 var properties = getPropertiesOfObjectType(target);
69032 for (var _i = 0, properties_3 = properties; _i < properties_3.length; _i++) {
69033 var targetProp = properties_3[_i];
69034 var sourceProp = getPropertyOfType(source, targetProp.escapedName);
69035 if (sourceProp && !ts.some(sourceProp.declarations, hasSkipDirectInferenceFlag)) {
69036 inferFromTypes(getTypeOfSymbol(sourceProp), getTypeOfSymbol(targetProp));
69037 }
69038 }
69039 }
69040 function inferFromSignatures(source, target, kind) {
69041 var sourceSignatures = getSignaturesOfType(source, kind);
69042 var targetSignatures = getSignaturesOfType(target, kind);

Callers 1

inferFromObjectTypesFunction · 0.85

Calls 5

getPropertyOfTypeFunction · 0.85
inferFromTypesFunction · 0.85
getTypeOfSymbolFunction · 0.85
someMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…