MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / GetAnnotation

Method GetAnnotation

pkg/sql/sem/tree/annotation.go:21–26  ·  view source on GitHub ↗

GetAnnotation retrieves the annotation associated with this node.

(ann *Annotations)

Source from the content-addressed store, hash-verified

19
20// GetAnnotation retrieves the annotation associated with this node.
21func (n AnnotatedNode) GetAnnotation(ann *Annotations) interface{} {
22 if n.AnnIdx == NoAnnotation {
23 return nil
24 }
25 return ann.Get(n.AnnIdx)
26}
27
28// SetAnnotation sets the annotation associated with this node.
29func (n AnnotatedNode) SetAnnotation(ann *Annotations, annotation interface{}) {

Callers 1

ResolvedMethod · 0.80

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected