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

Function isComplexOperator

parser/unparser.go:503–508  ·  view source on GitHub ↗

Indicates whether the expr is a complex operator, i.e., a call expression with 2 or more arguments.

(expr ast.Expr)

Source from the content-addressed store, hash-verified

501// Indicates whether the expr is a complex operator, i.e., a call expression
502// with 2 or more arguments.
503func isComplexOperator(expr ast.Expr) bool {
504 if expr.Kind() == ast.CallKind && len(expr.AsCall().Args()) >= 2 {
505 return true
506 }
507 return false
508}
509
510// Indicates whether it is a complex operation compared to another.
511// expr is *not* considered complex if it is not a call expression or has

Callers 2

visitCallConditionalMethod · 0.85
visitCallUnaryMethod · 0.85

Calls 3

KindMethod · 0.65
ArgsMethod · 0.65
AsCallMethod · 0.65

Tested by

no test coverage detected