(n *semantic.Annotation)
| 396 | } |
| 397 | |
| 398 | func (e *encoder) annotation(n *semantic.Annotation) (outID uint64) { |
| 399 | e.build(&e.instances.Annotation, e.maps.Annotation, n, &outID, func() *Annotation { |
| 400 | p := &Annotation{ |
| 401 | Ast: e.astAnnotation(n.AST), |
| 402 | Name: e.str(n.Name()), |
| 403 | } |
| 404 | foreach(n.Arguments, e.expr, &p.Arguments) |
| 405 | return p |
| 406 | }) |
| 407 | return |
| 408 | } |
| 409 | |
| 410 | func (e *encoder) annotations(n semantic.Annotations) *Annotations { |
| 411 | p := &Annotations{} |