SetAnnotation sets the annotation associated with this node.
(ann *Annotations, annotation interface{})
| 46 | |
| 47 | // SetAnnotation sets the annotation associated with this node. |
| 48 | func (n AnnotatedNode) SetAnnotation(ann *Annotations, annotation interface{}) { |
| 49 | ann.Set(n.AnnIdx, annotation) |
| 50 | } |
| 51 | |
| 52 | // Annotations is a container for AST annotations. |
| 53 | type Annotations []interface{} |