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

Function findResolutionCycleStartIndex

test/fixtures/snapshot/typescript.js:55640–55650  ·  view source on GitHub ↗
(target, propertyName)

Source from the content-addressed store, hash-verified

55638 return true;
55639 }
55640 function findResolutionCycleStartIndex(target, propertyName) {
55641 for (var i = resolutionTargets.length - 1; i >= 0; i--) {
55642 if (hasType(resolutionTargets[i], resolutionPropertyNames[i])) {
55643 return -1;
55644 }
55645 if (resolutionTargets[i] === target && resolutionPropertyNames[i] === propertyName) {
55646 return i;
55647 }
55648 }
55649 return -1;
55650 }
55651 function hasType(target, propertyName) {
55652 switch (propertyName) {
55653 case 0 /* TypeSystemPropertyName.Type */:

Callers 4

pushTypeResolutionFunction · 0.85
instantiateMappedTypeFunction · 0.85
isCircularMappedPropertyFunction · 0.85

Calls 1

hasTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…