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

Function nextState

test/fixtures/snapshot/typescript.js:30551–30570  ·  view source on GitHub ↗
(machine, currentState)

Source from the content-addressed store, hash-verified

30549 }
30550 BinaryExpressionState.done = done;
30551 function nextState(machine, currentState) {
30552 switch (currentState) {
30553 case enter:
30554 if (machine.onLeft)
30555 return left;
30556 // falls through
30557 case left:
30558 if (machine.onOperator)
30559 return operator;
30560 // falls through
30561 case operator:
30562 if (machine.onRight)
30563 return right;
30564 // falls through
30565 case right: return exit;
30566 case exit: return done;
30567 case done: return done;
30568 default: ts.Debug.fail("Invalid state");
30569 }
30570 }
30571 BinaryExpressionState.nextState = nextState;
30572 function pushStack(stackIndex, stateStack, nodeStack, userStateStack, node) {
30573 stackIndex++;

Callers 5

enterFunction · 0.85
leftFunction · 0.85
operatorFunction · 0.85
rightFunction · 0.85
exitFunction · 0.85

Calls 1

failMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…