| 18600 | return result; |
| 18601 | } |
| 18602 | calcIfExitStatus(then_status, else_status) { |
| 18603 | if (then_status === 'THROWS') { |
| 18604 | return else_status; |
| 18605 | } else if (else_status === 'THROWS') { |
| 18606 | return then_status; |
| 18607 | } |
| 18608 | if (then_status === 'WONT' && else_status === 'WONT') { |
| 18609 | return 'WONT'; |
| 18610 | } |
| 18611 | if (then_status === 'WILL' && else_status === 'WILL') { |
| 18612 | return 'WILL'; |
| 18613 | } |
| 18614 | return 'MIGHT'; |
| 18615 | } |
| 18616 | transformIf(node) { |
| 18617 | const [then_block, else_block] = node.blocks(); |
| 18618 | let then_pair = this.transformExits(then_block); |