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

Function isNestedComprehension

cel/folding.go:802–811  ·  view source on GitHub ↗
(e ast.NavigableExpr)

Source from the content-addressed store, hash-verified

800}
801
802func isNestedComprehension(e ast.NavigableExpr) bool {
803 parent, found := e.Parent()
804 for found {
805 if parent.Kind() == ast.ComprehensionKind {
806 return true
807 }
808 parent, found = parent.Parent()
809 }
810 return false
811}
812
813func aggregateLiteralMatcher(e ast.NavigableExpr) bool {
814 return e.Kind() == ast.ListKind || e.Kind() == ast.MapKind || e.Kind() == ast.StructKind

Callers 1

constantExprMatcherMethod · 0.85

Calls 2

ParentMethod · 0.65
KindMethod · 0.65

Tested by

no test coverage detected