* 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)
| 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`. |
nothing calls this directly
no test coverage detected