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

Function removeIneligibleSubExprs

policy/composer.go:588–594  ·  view source on GitHub ↗
(e ast.NavigableExpr, unnestMap map[int64]bool)

Source from the content-addressed store, hash-verified

586}
587
588func removeIneligibleSubExprs(e ast.NavigableExpr, unnestMap map[int64]bool) {
589 for _, id := range comprehensionSubExprIDs(e) {
590 if _, found := unnestMap[id]; found {
591 delete(unnestMap, id)
592 }
593 }
594}
595
596func comprehensionSubExprIDs(e ast.NavigableExpr) []int64 {
597 compre := e.AsComprehension()

Callers 1

maybeUnnestRuleMethod · 0.85

Calls 1

comprehensionSubExprIDsFunction · 0.85

Tested by

no test coverage detected