(switchID uint64)
| 1182 | } |
| 1183 | |
| 1184 | func (d *decoder) switch_(switchID uint64) (out *semantic.Switch) { |
| 1185 | d.build(d.content.Instances.Switch, &d.inst.Switch, switchID, &out, |
| 1186 | func(p *Switch, s *semantic.Switch) { |
| 1187 | s.AST = d.astSwitch(p.Ast) |
| 1188 | s.Value = d.expr(p.Value) |
| 1189 | s.Default = d.block(p.Default) |
| 1190 | foreach(p.Cases, d.case_, &s.Cases) |
| 1191 | }) |
| 1192 | return |
| 1193 | } |
| 1194 | |
| 1195 | func (d *decoder) write(writeID uint64) (out *semantic.Write) { |
| 1196 | d.build(d.content.Instances.Write, &d.inst.Write, writeID, &out, |