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

Method insertRight

src/MagicString.ts:476–485  ·  view source on GitHub ↗

@internal

(index: number, content: string)

Source from the content-addressed store, hash-verified

474
475 /** @internal */
476 insertRight(index: number, content: string): this {
477 if (!warned.insertRight) {
478 console.warn(
479 'magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead',
480 )
481 warned.insertRight = true
482 }
483
484 return this.prependRight(index, content)
485 }
486
487 /**
488 * Moves the characters from `start` and `end` to `index`.

Callers

nothing calls this directly

Calls 1

prependRightMethod · 0.95

Tested by

no test coverage detected