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

Function isEmptyRangeComprehension

cel/validator.go:586–592  ·  view source on GitHub ↗
(e ast.NavigableExpr)

Source from the content-addressed store, hash-verified

584}
585
586func isEmptyRangeComprehension(e ast.NavigableExpr) bool {
587 if e.Kind() != ast.ComprehensionKind {
588 return false
589 }
590 iterRange := e.AsComprehension().IterRange()
591 return iterRange.Kind() == ast.ListKind && iterRange.AsList().Size() == 0
592}
593
594func isCelBind(e ast.NavigableExpr) bool {
595 if !isEmptyRangeComprehension(e) {

Callers 2

ValidateMethod · 0.85
isCelBindFunction · 0.85

Calls 5

KindMethod · 0.65
IterRangeMethod · 0.65
AsComprehensionMethod · 0.65
SizeMethod · 0.65
AsListMethod · 0.65

Tested by

no test coverage detected