(buf *TrackedBuffer, d format.Dialect)
| 12 | } |
| 13 | |
| 14 | func (n *A_Const) Format(buf *TrackedBuffer, d format.Dialect) { |
| 15 | if n == nil { |
| 16 | return |
| 17 | } |
| 18 | if _, ok := n.Val.(*String); ok { |
| 19 | buf.WriteString("'") |
| 20 | buf.astFormat(n.Val, d) |
| 21 | buf.WriteString("'") |
| 22 | } else { |
| 23 | buf.astFormat(n.Val, d) |
| 24 | } |
| 25 | } |