Indicates whether the expr is a complex operator, i.e., a call expression with 2 or more arguments.
(expr ast.Expr)
| 501 | // Indicates whether the expr is a complex operator, i.e., a call expression |
| 502 | // with 2 or more arguments. |
| 503 | func 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 |
no test coverage detected