debugString converts mathTree to a string. Good for testing, debugging. nolint: unused
()
| 368 | // debugString converts mathTree to a string. Good for testing, debugging. |
| 369 | // nolint: unused |
| 370 | func (t *MathTree) debugString() string { |
| 371 | buf := bytes.NewBuffer(make([]byte, 0, 20)) |
| 372 | t.stringHelper(buf) |
| 373 | return buf.String() |
| 374 | } |
| 375 | |
| 376 | // stringHelper does simple DFS to convert MathTree to string. |
| 377 | // nolint: unused |