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

Function AllMatcher

common/ast/navigable.go:98–102  ·  view source on GitHub ↗

AllMatcher returns true for all descendants of a NavigableExpr, effectively flattening them into a list. Such a result would work well with subsequent MatchList calls.

()

Source from the content-addressed store, hash-verified

96//
97// Such a result would work well with subsequent MatchList calls.
98func AllMatcher() ExprMatcher {
99 return func(NavigableExpr) bool {
100 return true
101 }
102}
103
104// MatchDescendants takes a NavigableExpr and ExprMatcher and produces a list of NavigableExpr values
105// matching the input criteria in post-order (bottom up).

Callers 3

TestNavigateASTFunction · 0.92
TestNavigableMapExprFunction · 0.92
TestNavigableStructExprFunction · 0.92

Calls

no outgoing calls

Tested by 3

TestNavigateASTFunction · 0.74
TestNavigableMapExprFunction · 0.74
TestNavigableStructExprFunction · 0.74