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

Method overwrite

src/MagicString.js:368–371  ·  view source on GitHub ↗
(start, end, content, options)

Source from the content-addressed store, hash-verified

366 }
367
368 overwrite(start, end, content, options) {
369 options = options || {};
370 return this.update(start, end, content, { ...options, overwrite: !options.contentOnly });
371 }
372
373 update(start, end, content, options) {
374 start = start + this.offset;

Callers 3

_replaceRegexpMethod · 0.95
_replaceStringMethod · 0.95
_replaceAllStringMethod · 0.95

Calls 1

updateMethod · 0.95

Tested by

no test coverage detected