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

Function MakeAnnotations

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

MakeAnnotations allocates an annotations container of the given size.

(numAnnotations AnnotationIdx)

Source from the content-addressed store, hash-verified

35
36// MakeAnnotations allocates an annotations container of the given size.
37func MakeAnnotations(numAnnotations AnnotationIdx) Annotations {
38 return make(Annotations, numAnnotations)
39}
40
41// Set an annotation in the container.
42func (a *Annotations) Set(idx AnnotationIdx, annotation interface{}) {

Callers 4

ParseMethod · 0.92
MakeExecSqlStmtMethod · 0.92
MakeFetchOrMoveStmtMethod · 0.92
ParseReturnQueryMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…