(b byte)
| 61 | } |
| 62 | |
| 63 | func (f *Formatter) WriteByte(b byte) { |
| 64 | if f.mode == FormatModeBeautify { |
| 65 | if b == newline { |
| 66 | f.builder.WriteByte(newline) |
| 67 | f.lineStart = true |
| 68 | return |
| 69 | } |
| 70 | f.writeIndentIfNeeded() |
| 71 | f.builder.WriteByte(b) |
| 72 | } else { |
| 73 | f.builder.WriteByte(b) |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | func (f *Formatter) WriteExpr(expr Expr) { |
| 78 | if expr == nil { |