Indicates whether the expr is a complex operator, i.e., a call expression with 2 or more arguments.
(expr *exprpb.Expr)
| 762 | // Indicates whether the expr is a complex operator, i.e., a call expression |
| 763 | // with 2 or more arguments. |
| 764 | func 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 |