Indicates whether the expr is a complex operator, i.e., a call expression with 2 or more arguments.
(expr ast.Expr)
| 539 | // Indicates whether the expr is a complex operator, i.e., a call expression |
| 540 | // with 2 or more arguments. |
| 541 | func isComplexOperator(expr ast.Expr) bool { |
| 542 | if expr.Kind() == ast.CallKind && len(expr.AsCall().Args()) >= 2 { |
| 543 | return true |
| 544 | } |
| 545 | return false |
| 546 | } |
| 547 | |
| 548 | // Indicates whether the operand of a unary operator must be wrapped in parentheses in order for |
| 549 | // the unparsed expression to parse back to an equivalent AST. |
no test coverage detected