| 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++; |