MCPcopy Create free account
hub / github.com/cel-expr/cel-go / NavigateAST

Function NavigateAST

common/ast/navigable.go:46–48  ·  view source on GitHub ↗

NavigateAST converts an AST to a NavigableExpr

(ast *AST)

Source from the content-addressed store, hash-verified

44
45// NavigateAST converts an AST to a NavigableExpr
46func NavigateAST(ast *AST) NavigableExpr {
47 return NavigateExpr(ast, ast.Expr())
48}
49
50// NavigateExpr creates a NavigableExpr whose type information is backed by the input AST.
51//

Callers 15

TestCoverageStatsFunction · 0.92
reportCoverageFunction · 0.92
OptimizeMethod · 0.92
ValidateMethod · 0.92
ValidateMethod · 0.92
OptimizeMethod · 0.92
ValidateMethod · 0.92
ValidateMethod · 0.92
ValidateMethod · 0.92
ValidateMethod · 0.92
OptimizeMethod · 0.92
OptimizeMethod · 0.92

Calls 2

NavigateExprFunction · 0.85
ExprMethod · 0.65

Tested by 13

TestCoverageStatsFunction · 0.74
TestNavigateASTFunction · 0.74
TestExprVisitorFunction · 0.74
TestNavigableExprFunction · 0.74
TestNavigableListExprFunction · 0.74
TestNavigableMapExprFunction · 0.74
TestNavigableStructExprFunction · 0.74
TestNavigableSelectExprFunction · 0.74