MCPcopy Index your code
hub / github.com/cockscomb/cel2sql / isComplexOperator

Function isComplexOperator

cel2sql.go:764–769  ·  view source on GitHub ↗

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

(expr *exprpb.Expr)

Source from the content-addressed store, hash-verified

762// Indicates whether the expr is a complex operator, i.e., a call expression
763// with 2 or more arguments.
764func isComplexOperator(expr *exprpb.Expr) bool {
765 if expr.GetCallExpr() != nil && len(expr.GetCallExpr().GetArgs()) >= 2 {
766 return true
767 }
768 return false
769}
770
771// Indicates whether it is a complex operation compared to another.
772// expr is *not* considered complex if it is not a call expression or has

Callers 1

visitCallUnaryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected