| 468 | } |
| 469 | |
| 470 | func (d *decoder) choice(choiceID uint64) (out *semantic.Choice) { |
| 471 | d.build(d.content.Instances.Choice, &d.inst.Choice, choiceID, &out, |
| 472 | func(p *Choice, s *semantic.Choice) { |
| 473 | s.AST = d.astCase(p.Ast) |
| 474 | s.Annotations = d.annotations(p.Annotations) |
| 475 | s.Expression = d.expr(p.Expression) |
| 476 | foreach(p.Conditions, d.expr, &s.Conditions) |
| 477 | }) |
| 478 | return |
| 479 | } |
| 480 | |
| 481 | func (d *decoder) class(classID uint64) (out *semantic.Class) { |
| 482 | d.build(d.content.Instances.Class, &d.inst.Class, classID, &out, |