MCPcopy Create free account
hub / github.com/dolthub/doltgresql / GetAnnotation

Method GetAnnotation

postgres/parser/sem/tree/annotation.go:40–45  ·  view source on GitHub ↗

GetAnnotation retrieves the annotation associated with this node.

(ann *Annotations)

Source from the content-addressed store, hash-verified

38
39// GetAnnotation retrieves the annotation associated with this node.
40func (n AnnotatedNode) GetAnnotation(ann *Annotations) interface{} {
41 if n.AnnIdx == NoAnnotation {
42 return nil
43 }
44 return ann.Get(n.AnnIdx)
45}
46
47// SetAnnotation sets the annotation associated with this node.
48func (n AnnotatedNode) SetAnnotation(ann *Annotations, annotation interface{}) {

Callers 1

ResolvedMethod · 0.80

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected