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

Method insertRight

src/MagicString.js:312–321  ·  view source on GitHub ↗
(index, content)

Source from the content-addressed store, hash-verified

310 }
311
312 insertRight(index, content) {
313 if (!warned.insertRight) {
314 console.warn(
315 'magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead',
316 );
317 warned.insertRight = true;
318 }
319
320 return this.prependRight(index, content);
321 }
322
323 move(start, end, index) {
324 start = start + this.offset;

Callers

nothing calls this directly

Calls 1

prependRightMethod · 0.95

Tested by

no test coverage detected