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

Function checkCircularity

test/fixtures/snapshot/typescript.js:30579–30586  ·  view source on GitHub ↗
(stackIndex, nodeStack, node)

Source from the content-addressed store, hash-verified

30577 return stackIndex;
30578 }
30579 function checkCircularity(stackIndex, nodeStack, node) {
30580 if (ts.Debug.shouldAssert(2 /* AssertionLevel.Aggressive */)) {
30581 while (stackIndex >= 0) {
30582 ts.Debug.assert(nodeStack[stackIndex] !== node, "Circular traversal detected.");
30583 stackIndex--;
30584 }
30585 }
30586 }
30587 })(BinaryExpressionState || (BinaryExpressionState = {}));
30588 /**
30589 * Holds state machine handler functions

Callers 2

leftFunction · 0.85
rightFunction · 0.85

Calls 1

assertMethod · 0.80

Tested by

no test coverage detected