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

Method insert

src/MagicString.ts:446–450  ·  view source on GitHub ↗

@internal

()

Source from the content-addressed store, hash-verified

444
445 /** @internal */
446 insert(): never {
447 throw new Error(
448 'magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)',
449 )
450 }
451
452 /** @internal */
453 insertLeft(index: number, content: string): this {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected