(expr ast.Expr)
| 401 | } |
| 402 | |
| 403 | func (un *unparser) visitOptSelect(expr ast.Expr) error { |
| 404 | c := expr.AsCall() |
| 405 | args := c.Args() |
| 406 | operand := args[0] |
| 407 | field := args[1].AsLiteral().(types.String) |
| 408 | return un.visitSelectInternal(operand, false, ".?", string(field)) |
| 409 | } |
| 410 | |
| 411 | func (un *unparser) visitSelect(expr ast.Expr) error { |
| 412 | sel := expr.AsSelect() |
no test coverage detected