(expr ast.Expr)
| 363 | } |
| 364 | |
| 365 | func (un *unparser) visitOptSelect(expr ast.Expr) error { |
| 366 | c := expr.AsCall() |
| 367 | args := c.Args() |
| 368 | operand := args[0] |
| 369 | field := args[1].AsLiteral().(types.String) |
| 370 | return un.visitSelectInternal(operand, false, ".?", string(field)) |
| 371 | } |
| 372 | |
| 373 | func (un *unparser) visitSelect(expr ast.Expr) error { |
| 374 | sel := expr.AsSelect() |
no test coverage detected