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

Method SetAnnotation

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

SetAnnotation sets the annotation associated with this node.

(ann *Annotations, annotation interface{})

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected