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

Method insertLeft

src/MagicString.js:301–310  ·  view source on GitHub ↗
(index, content)

Source from the content-addressed store, hash-verified

299 }
300
301 insertLeft(index, content) {
302 if (!warned.insertLeft) {
303 console.warn(
304 'magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead',
305 );
306 warned.insertLeft = true;
307 }
308
309 return this.appendLeft(index, content);
310 }
311
312 insertRight(index, content) {
313 if (!warned.insertRight) {

Callers

nothing calls this directly

Calls 1

appendLeftMethod · 0.95

Tested by

no test coverage detected