Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
35
func
NewPathAST(selectorNode SelectorNode) *PathAST {
36
return
&PathAST{
37
Root: selectorNode,
38
}
39
}
40
41
func
(p *PathAST) String() (string, error) {
42
return
p.Root.toString(), nil
Callers
6
dotPathToPathAST
Function · 0.92
fieldPathToPathAST
Function · 0.92
convertPathAST
Function · 0.92
TestGetFirstSemanticTypeInPath
Function · 0.92
TestWalkAndMaskJSON
Function · 0.92
TestString
Function · 0.85
Calls
no outgoing calls
Tested by
3
TestGetFirstSemanticTypeInPath
Function · 0.74
TestWalkAndMaskJSON
Function · 0.74
TestString
Function · 0.68