(index, content)
| 315 | return this; |
| 316 | } |
| 317 | appendRight(index, content) { |
| 318 | if (typeof content !== 'string') throw new TypeError('inserted content must be a string'); |
| 319 | this._split(index); |
| 320 | const chunk = this.byStart[index]; |
| 321 | if (chunk) { |
| 322 | chunk.appendRight(content); |
| 323 | } else { |
| 324 | this.outro += content; |
| 325 | } |
| 326 | return this; |
| 327 | } |
| 328 | clone() { |
| 329 | const cloned = new MagicString(this.original, { filename: this.filename }); |
| 330 | let originalChunk = this.firstChunk; |
nothing calls this directly
no test coverage detected