(s, o)
| 20310 | return this.constructor._walk(s, this.rootNode) |
| 20311 | } |
| 20312 | static _walk(s, o) { |
| 20313 | return ( |
| 20314 | 'string' == typeof o |
| 20315 | ? s.addText(o) |
| 20316 | : o.children && |
| 20317 | (s.openNode(o), o.children.forEach((o) => this._walk(s, o)), s.closeNode(o)), |
| 20318 | s |
| 20319 | ) |
| 20320 | } |
| 20321 | static _collapse(s) { |
| 20322 | 'string' != typeof s && |
| 20323 | s.children && |