(buf *TrackedBuffer, d format.Dialect)
| 14 | } |
| 15 | |
| 16 | func (n *ResTarget) Format(buf *TrackedBuffer, d format.Dialect) { |
| 17 | if n == nil { |
| 18 | return |
| 19 | } |
| 20 | if set(n.Val) { |
| 21 | buf.astFormat(n.Val, d) |
| 22 | if n.Name != nil { |
| 23 | buf.WriteString(" AS ") |
| 24 | buf.WriteString(d.QuoteIdent(*n.Name)) |
| 25 | } |
| 26 | } else { |
| 27 | if n.Name != nil { |
| 28 | buf.WriteString(d.QuoteIdent(*n.Name)) |
| 29 | } |
| 30 | } |
| 31 | } |
nothing calls this directly
no test coverage detected