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

Function right

test/fixtures/snapshot/typescript.js:30507–30517  ·  view source on GitHub ↗

* Handles walking the `right` side of a `BinaryExpression`. * @param machine State machine handler functions * @param frame The current frame * @returns The new frame

(machine, stackIndex, stateStack, nodeStack, userStateStack, _resultHolder, _outerState)

Source from the content-addressed store, hash-verified

30505 * @returns The new frame
30506 */
30507 function right(machine, stackIndex, stateStack, nodeStack, userStateStack, _resultHolder, _outerState) {
30508 ts.Debug.assertEqual(stateStack[stackIndex], right);
30509 ts.Debug.assertIsDefined(machine.onRight);
30510 stateStack[stackIndex] = nextState(machine, right);
30511 var nextNode = machine.onRight(nodeStack[stackIndex].right, userStateStack[stackIndex], nodeStack[stackIndex]);
30512 if (nextNode) {
30513 checkCircularity(stackIndex, nodeStack, nextNode);
30514 return pushStack(stackIndex, stateStack, nodeStack, userStateStack, nextNode);
30515 }
30516 return stackIndex;
30517 }
30518 BinaryExpressionState.right = right;
30519 /**
30520 * Handles walking out of a `BinaryExpression`.

Callers

nothing calls this directly

Calls 3

nextStateFunction · 0.85
checkCircularityFunction · 0.85
pushStackFunction · 0.85

Tested by

no test coverage detected