(n *semantic.Case)
| 622 | } |
| 623 | |
| 624 | func (e *encoder) case_(n *semantic.Case) (outID uint64) { |
| 625 | e.build(&e.instances.Case, e.maps.Case, n, &outID, func() *Case { |
| 626 | p := &Case{ |
| 627 | Ast: e.astCase(n.AST), |
| 628 | Annotations: e.annotations(n.Annotations), |
| 629 | Block: e.block(n.Block), |
| 630 | } |
| 631 | foreach(n.Conditions, e.expr, &p.Conditions) |
| 632 | return p |
| 633 | }) |
| 634 | return |
| 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 { |