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

Function newNavigableExpr

common/ast/navigable.go:292–305  ·  view source on GitHub ↗
(ast *AST, parent NavigableExpr, expr Expr, depth int)

Source from the content-addressed store, hash-verified

290}
291
292func newNavigableExpr(ast *AST, parent NavigableExpr, expr Expr, depth int) NavigableExpr {
293 // Reduce navigable expression nesting by unwrapping the embedded Expr value.
294 if nav, ok := expr.(*navigableExprImpl); ok {
295 expr = nav.Expr
296 }
297 nav := &navigableExprImpl{
298 Expr: expr,
299 depth: depth,
300 ast: ast,
301 parent: parent,
302 createChildren: getChildFactory(expr),
303 }
304 return nav
305}
306
307type navigableExprImpl struct {
308 Expr

Callers 2

NavigateExprFunction · 0.85
createChildMethod · 0.85

Calls 1

getChildFactoryFunction · 0.85

Tested by

no test coverage detected