(expr ast.Expr)
| 262 | } |
| 263 | |
| 264 | func (un *unparser) visitCallUnary(expr ast.Expr) error { |
| 265 | c := expr.AsCall() |
| 266 | fun := c.FunctionName() |
| 267 | args := c.Args() |
| 268 | unmangled, found := operators.FindReverse(fun) |
| 269 | if !found { |
| 270 | return fmt.Errorf("cannot unmangle operator: %s", fun) |
| 271 | } |
| 272 | un.str.WriteString(unmangled) |
| 273 | nested := isComplexOperator(args[0]) |
| 274 | return un.visitMaybeNested(args[0], nested) |
| 275 | } |
| 276 | |
| 277 | func (un *unparser) visitConstVal(val ref.Val) error { |
| 278 | optional := false |
no test coverage detected