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

Function newNavigableExpr

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

Source from the content-addressed store, hash-verified

267}
268
269func newNavigableExpr(ast *AST, parent NavigableExpr, expr Expr, depth int) NavigableExpr {
270 // Reduce navigable expression nesting by unwrapping the embedded Expr value.
271 if nav, ok := expr.(*navigableExprImpl); ok {
272 expr = nav.Expr
273 }
274 nav := &navigableExprImpl{
275 Expr: expr,
276 depth: depth,
277 ast: ast,
278 parent: parent,
279 createChildren: getChildFactory(expr),
280 }
281 return nav
282}
283
284type navigableExprImpl struct {
285 Expr

Callers 2

NavigateExprFunction · 0.85
createChildMethod · 0.85

Calls 1

getChildFactoryFunction · 0.85

Tested by

no test coverage detected