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

Method insertLeft

benchmark/data.js:460–468  ·  view source on GitHub ↗
(index, content)

Source from the content-addressed store, hash-verified

458 );
459 }
460 insertLeft(index, content) {
461 if (!warned.insertLeft) {
462 console.warn(
463 'magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead',
464 );
465 warned.insertLeft = true;
466 }
467 return this.appendLeft(index, content);
468 }
469 insertRight(index, content) {
470 if (!warned.insertRight) {
471 console.warn(

Callers

nothing calls this directly

Calls 1

appendLeftMethod · 0.95

Tested by

no test coverage detected