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

Method Validate

pkg/util/jsonpath/path.go:36–36  ·  view source on GitHub ↗

Validate returns an error if there is a semantic error in the path, and collects all variable names in a map with a strictly increasing index, indicating the order of their first appearance. Leaf nodes should generally return nil.

(nestingLevel int, insideArraySubscript bool)

Source from the content-addressed store, hash-verified

34 // indicating the order of their first appearance. Leaf nodes should generally
35 // return nil.
36 Validate(nestingLevel int, insideArraySubscript bool) error
37}
38
39type Root struct{}

Callers 6

ValidateMethod · 0.65
ValidateMethod · 0.65
ValidateMethod · 0.65
ValidateMethod · 0.65
ValidateMethod · 0.65
ParseFunction · 0.65

Implementers 11

Methodpkg/util/jsonpath/method.go
Scalarpkg/util/jsonpath/scalar.go
Rootpkg/util/jsonpath/path.go
Wildcardpkg/util/jsonpath/path.go
ArrayIndexRangepkg/util/jsonpath/path.go
Lastpkg/util/jsonpath/path.go
Filterpkg/util/jsonpath/path.go
Currentpkg/util/jsonpath/path.go
Regexpkg/util/jsonpath/path.go
AnyKeypkg/util/jsonpath/path.go
Operationpkg/util/jsonpath/operation.go

Calls

no outgoing calls

Tested by

no test coverage detected