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

Method insertRight

src/MagicString.ts:468–477  ·  view source on GitHub ↗

@internal

(index: number, content: string)

Source from the content-addressed store, hash-verified

466
467 /** @internal */
468 insertRight(index: number, content: string): this {
469 if (!warned.insertRight) {
470 console.warn(
471 'magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead',
472 )
473 warned.insertRight = true
474 }
475
476 return this.prependRight(index, content)
477 }
478
479 /**
480 * 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