Lines Matching defs:textWriter
70 type textWriter struct { struct
71 ind int
72 complete bool // if the current position is a complete line
73 compact bool // whether to write out as a one-liner
74 w writer
77 func (w *textWriter) WriteString(s string) (n int, err error) {
91 func (w *textWriter) Write(p []byte) (n int, err error) {
140 func (w *textWriter) WriteByte(c byte) error {
152 func (w *textWriter) indent() { w.ind++ }
154 func (w *textWriter) unindent() {
162 func writeName(w *textWriter, props *Properties) error {
207 func (tm *TextMarshaler) writeProto3Any(w *textWriter, sv reflect.Value) (bool, error) {
253 func (tm *TextMarshaler) writeStruct(w *textWriter, sv reflect.Value) error {
462 func (tm *TextMarshaler) writeAny(w *textWriter, v reflect.Value, props *Properties) error {
561 func writeString(w *textWriter, s string) error {
597 func writeUnknownStruct(w *textWriter, data []byte) (err error) {
664 func writeUnknownInt(w *textWriter, x uint64, err error) error {
681 func (tm *TextMarshaler) writeExtensions(w *textWriter, pv reflect.Value) error {
736 func (tm *TextMarshaler) writeExtension(w *textWriter, name string, pb interface{}) error {
754 func (w *textWriter) writeIndent() {