(expr ast.Expr)
| 300 | } |
| 301 | |
| 302 | func (un *unparser) visitCallUnary(expr ast.Expr) error { |
| 303 | c := expr.AsCall() |
| 304 | fun := c.FunctionName() |
| 305 | args := c.Args() |
| 306 | unmangled, found := operators.FindReverse(fun) |
| 307 | if !found { |
| 308 | return fmt.Errorf("cannot unmangle operator: %s", fun) |
| 309 | } |
| 310 | un.str.WriteString(unmangled) |
| 311 | nested := isComplexOperator(args[0]) || isAmbiguousUnaryOperand(args[0]) |
| 312 | return un.visitMaybeNested(args[0], nested) |
| 313 | } |
| 314 | |
| 315 | func (un *unparser) visitConstVal(val ref.Val) error { |
| 316 | optional := false |
no test coverage detected