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

Function getInferenceInfoForType

test/fixtures/snapshot/typescript.js:68756–68766  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

68754 }
68755 }
68756 function getInferenceInfoForType(type) {
68757 if (type.flags & 8650752 /* TypeFlags.TypeVariable */) {
68758 for (var _i = 0, inferences_2 = inferences; _i < inferences_2.length; _i++) {
68759 var inference = inferences_2[_i];
68760 if (type === inference.typeParameter) {
68761 return inference;
68762 }
68763 }
68764 }
68765 return undefined;
68766 }
68767 function getSingleTypeVariableFromIntersectionTypes(types) {
68768 var typeVariable;
68769 for (var _i = 0, types_15 = types; _i < types_15.length; _i++) {

Callers 5

inferFromTypesFunction · 0.85
inferToMultipleTypesFunction · 0.85
inferToMappedTypeFunction · 0.85
inferFromObjectTypesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…