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

Method Validate

pkg/util/jsonpath/operation.go:114–124  ·  view source on GitHub ↗
(nestingLevel int, insideArraySubscript bool)

Source from the content-addressed store, hash-verified

112}
113
114func (o Operation) Validate(nestingLevel int, insideArraySubscript bool) error {
115 if err := o.Left.Validate(nestingLevel, insideArraySubscript); err != nil {
116 return err
117 }
118 if o.Right != nil {
119 if err := o.Right.Validate(nestingLevel, insideArraySubscript); err != nil {
120 return err
121 }
122 }
123 return nil
124}
125
126func opPriority(path Path) int {
127 switch path := path.(type) {

Callers

nothing calls this directly

Calls 1

ValidateMethod · 0.65

Tested by

no test coverage detected