* Handles walking the `left` 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)
| 30473 | * @returns The new frame |
| 30474 | */ |
| 30475 | function left(machine, stackIndex, stateStack, nodeStack, userStateStack, _resultHolder, _outerState) { |
| 30476 | ts.Debug.assertEqual(stateStack[stackIndex], left); |
| 30477 | ts.Debug.assertIsDefined(machine.onLeft); |
| 30478 | stateStack[stackIndex] = nextState(machine, left); |
| 30479 | var nextNode = machine.onLeft(nodeStack[stackIndex].left, userStateStack[stackIndex], nodeStack[stackIndex]); |
| 30480 | if (nextNode) { |
| 30481 | checkCircularity(stackIndex, nodeStack, nextNode); |
| 30482 | return pushStack(stackIndex, stateStack, nodeStack, userStateStack, nextNode); |
| 30483 | } |
| 30484 | return stackIndex; |
| 30485 | } |
| 30486 | BinaryExpressionState.left = left; |
| 30487 | /** |
| 30488 | * Handles walking the `operatorToken` of a `BinaryExpression`. |
nothing calls this directly
no test coverage detected