(e exprDesc)
| 785 | } |
| 786 | |
| 787 | func (f *function) GoIfTrue(e exprDesc) exprDesc { |
| 788 | pc := noJump |
| 789 | switch e = f.DischargeVariables(e); e.kind { |
| 790 | case kindJump: |
| 791 | f.invertJump(e.info) |
| 792 | pc = e.info |
| 793 | case kindConstant, kindNumber, kindTrue: |
| 794 | default: |
| 795 | pc = f.jumpOnCondition(e, 0) |
| 796 | } |
| 797 | e.f = f.Concatenate(e.f, pc) |
| 798 | f.PatchToHere(e.t) |
| 799 | e.t = noJump |
| 800 | return e |
| 801 | } |
| 802 | |
| 803 | func (f *function) GoIfFalse(e exprDesc) exprDesc { |
| 804 | pc := noJump |
no test coverage detected