MCPcopy Create free account
hub / github.com/Rich-Harris/magic-string / insertRight

Method insertRight

benchmark/data.js:469–477  ·  view source on GitHub ↗
(index, content)

Source from the content-addressed store, hash-verified

467 return this.appendLeft(index, content);
468 }
469 insertRight(index, content) {
470 if (!warned.insertRight) {
471 console.warn(
472 'magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead',
473 );
474 warned.insertRight = true;
475 }
476 return this.prependRight(index, content);
477 }
478 move(start, end, index) {
479 if (index >= start && index <= end) throw new Error('Cannot move a selection inside itself');
480 this._split(start);

Callers

nothing calls this directly

Calls 1

prependRightMethod · 0.95

Tested by

no test coverage detected