ToAdornedDebugString gives the adorned string representation of the Expr.
(e ast.Expr, adorner Adorner)
| 59 | |
| 60 | // ToAdornedDebugString gives the adorned string representation of the Expr. |
| 61 | func ToAdornedDebugString(e ast.Expr, adorner Adorner) string { |
| 62 | w := newDebugWriter(adorner) |
| 63 | w.Buffer(e) |
| 64 | return w.String() |
| 65 | } |
| 66 | |
| 67 | // debugWriter is used to print out pretty-printed debug strings. |
| 68 | type debugWriter struct { |