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

Method insert

src/MagicString.ts:449–453  ·  view source on GitHub ↗

@internal

()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected