(text: string)
| 13 | } |
| 14 | |
| 15 | append(text: string) { |
| 16 | if (text.length > this.budget()) { |
| 17 | this.appendEllipsis(); |
| 18 | return; |
| 19 | } |
| 20 | this._append(text); |
| 21 | } |
| 22 | |
| 23 | private _append(text: string) { |
| 24 | if (this._tokens.length) this._budget -= this._separator.length; |
no test coverage detected