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

Method GetAnnotation

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

GetAnnotation retrieves the annotation associated with this node.

(ann *Annotations)

Source from the content-addressed store, hash-verified

24
25// GetAnnotation retrieves the annotation associated with this node.
26func (n AnnotatedNode) GetAnnotation(ann *Annotations) interface{} {
27 if n.AnnIdx == NoAnnotation {
28 return nil
29 }
30 return ann.Get(n.AnnIdx)
31}
32
33// SetAnnotation sets the annotation associated with this node.
34func (n AnnotatedNode) SetAnnotation(ann *Annotations, annotation interface{}) {

Callers 1

ResolvedMethod · 0.80

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected