| 1848 | } |
| 1849 | |
| 1850 | func (d *decoder) astSwitch(astSwitchID uint64) (out *ast.Switch) { |
| 1851 | d.build(d.content.Instances.AstSwitch, &d.inst.ASTSwitch, astSwitchID, &out, |
| 1852 | func(p *ASTSwitch, s *ast.Switch) { |
| 1853 | s.Value = d.astNode(p.Value) |
| 1854 | foreach(p.Cases, d.astCase, &s.Cases) |
| 1855 | s.Default = d.astDefault(p.Default) |
| 1856 | }) |
| 1857 | return |
| 1858 | } |
| 1859 | |
| 1860 | func (d *decoder) astUnaryOp(astUnaryOpID uint64) (out *ast.UnaryOp) { |
| 1861 | d.build(d.content.Instances.AstUnaryOp, &d.inst.ASTUnaryOp, astUnaryOpID, &out, |