(branchID uint64)
| 358 | } |
| 359 | |
| 360 | func (d *decoder) branch(branchID uint64) (out *semantic.Branch) { |
| 361 | d.build(d.content.Instances.Branch, &d.inst.Branch, branchID, &out, |
| 362 | func(p *Branch, s *semantic.Branch) { |
| 363 | s.AST = d.astBranch(p.Ast) |
| 364 | s.Condition = d.expr(p.Condition) |
| 365 | s.True = d.block(p.True) |
| 366 | s.False = d.block(p.False) |
| 367 | }) |
| 368 | return |
| 369 | } |
| 370 | |
| 371 | func (d *decoder) boolValue(boolValueID uint64) semantic.BoolValue { |
| 372 | return semantic.BoolValue(d.content.Instances.BoolValue[boolValueID-1].Value) |