(n *semantic.Cast)
| 635 | } |
| 636 | |
| 637 | func (e *encoder) cast(n *semantic.Cast) (outID uint64) { |
| 638 | e.build(&e.instances.Cast, e.maps.Cast, n, &outID, func() *Cast { |
| 639 | return &Cast{ |
| 640 | Ast: e.astCall(n.AST), |
| 641 | Object: e.expr(n.Object), |
| 642 | Type: e.ty(n.Type), |
| 643 | } |
| 644 | }) |
| 645 | return |
| 646 | } |
| 647 | |
| 648 | func (e *encoder) choice(n *semantic.Choice) (outID uint64) { |
| 649 | e.build(&e.instances.Choice, e.maps.Choice, n, &outID, func() *Choice { |