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

Method insertRight

benchmark/data-min.js:378–387  ·  view source on GitHub ↗
(t, e)

Source from the content-addressed store, hash-verified

376 );
377 }
378 insertRight(t, e) {
379 return (
380 c.insertRight ||
381 (console.warn(
382 'magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead',
383 ),
384 (c.insertRight = !0)),
385 this.prependRight(t, e)
386 );
387 }
388 move(t, e, n) {
389 if (n >= t && n <= e) throw new Error('Cannot move a selection inside itself');
390 (this._split(t), this._split(e), this._split(n));

Callers

nothing calls this directly

Calls 1

prependRightMethod · 0.95

Tested by

no test coverage detected