code: func (r *renderedFrame) dumpTo(w io.Writer, idx int) (n int, err error) {
  	return iotools.WriteTracker(w, func(rawWriter io.Writer) error {
  		w := &indented.Writer{Writer: rawWriter, UseSpaces: true}
  
  		fmt.Fprintf(w, "#%d %s/%s:%d - %s()\n", idx, r.pkg, r.file,
  			r.lineNum, r.funcName)
  		w.Level += 2
  		switch len(r.annotations) {
  		case 0:
  			// pass
  		case 1:
  			for _, line := range r.annotations[0] {
  				fmt.Fprintf(w, "%s\n", line)
  			}
  		default:
  			for i, ann := range r.annotations {
  				fmt.Fprintf(w, "annotation #%d:\n", i)
  				w.Level += 2
  				for _, line := range ann {
  					fmt.Fprintf(w, "%s\n", line)
  				}
  				w.Level -= 2
  			}
  		}
  		return nil
  	})
  }
docs: // dumpTo formats the Header and annotations for this renderedFrame.