MCPcopy Index your code
hub / github.com/bytebase/bytebase / NewPathAST

Function NewPathAST

backend/plugin/parser/base/json_path.go:35–39  ·  view source on GitHub ↗
(selectorNode SelectorNode)

Source from the content-addressed store, hash-verified

33}
34
35func NewPathAST(selectorNode SelectorNode) *PathAST {
36 return &PathAST{
37 Root: selectorNode,
38 }
39}
40
41func (p *PathAST) String() (string, error) {
42 return p.Root.toString(), nil

Callers 6

dotPathToPathASTFunction · 0.92
fieldPathToPathASTFunction · 0.92
convertPathASTFunction · 0.92
TestWalkAndMaskJSONFunction · 0.92
TestStringFunction · 0.85

Calls

no outgoing calls

Tested by 3

TestWalkAndMaskJSONFunction · 0.74
TestStringFunction · 0.68