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

Function isOptionalNone

policy/composer.go:582–586  ·  view source on GitHub ↗
(e ast.Expr)

Source from the content-addressed store, hash-verified

580}
581
582func isOptionalNone(e ast.Expr) bool {
583 return e.Kind() == ast.CallKind &&
584 e.AsCall().FunctionName() == "optional.none" &&
585 len(e.AsCall().Args()) == 0
586}
587
588func removeIneligibleSubExprs(e ast.NavigableExpr, unnestMap map[int64]bool) {
589 for _, id := range comprehensionSubExprIDs(e) {

Callers 1

combineMethod · 0.85

Calls 4

KindMethod · 0.65
FunctionNameMethod · 0.65
AsCallMethod · 0.65
ArgsMethod · 0.65

Tested by

no test coverage detected