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

Method insert

benchmark/data.js:455–459  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

453 return this;
454 }
455 insert() {
456 throw new Error(
457 'magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)',
458 );
459 }
460 insertLeft(index, content) {
461 if (!warned.insertLeft) {
462 console.warn(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected