(annotationID uint64)
| 224 | } |
| 225 | |
| 226 | func (d *decoder) annotation(annotationID uint64) (out *semantic.Annotation) { |
| 227 | d.build(d.content.Instances.Annotation, &d.inst.Annotation, annotationID, &out, |
| 228 | func(p *Annotation, s *semantic.Annotation) { |
| 229 | s.AST = d.astAnnotation(p.Ast) |
| 230 | s.Named = semantic.Named(d.str(p.Name)) |
| 231 | if len(p.Arguments) > 0 { |
| 232 | foreach(p.Arguments, d.expr, &out.Arguments) |
| 233 | } |
| 234 | }) |
| 235 | return |
| 236 | } |
| 237 | |
| 238 | func (d *decoder) annotations(p *Annotations) semantic.Annotations { |
| 239 | if p == nil || len(p.Annotations) == 0 { |
no test coverage detected