(c byte)
| 162 | } |
| 163 | |
| 164 | func (w *textWriter) WriteByte(c byte) error { |
| 165 | if w.compact && c == '\n' { |
| 166 | c = ' ' |
| 167 | } |
| 168 | if !w.compact && w.complete { |
| 169 | w.writeIndent() |
| 170 | } |
| 171 | w.buf = append(w.buf, c) |
| 172 | w.complete = c == '\n' |
| 173 | return nil |
| 174 | } |
| 175 | |
| 176 | func (w *textWriter) writeName(fd protoreflect.FieldDescriptor) { |
| 177 | if !w.compact && w.complete { |
no test coverage detected