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

Method overwrite

tests/fuzz/edit-model.ts:103–105  ·  view source on GitHub ↗
(start: number, end: number, content: string)

Source from the content-addressed store, hash-verified

101 }
102
103 overwrite(start: number, end: number, content: string): void {
104 this.update(start, end, content, { overwrite: true })
105 }
106
107 reset(start: number, end: number): void {
108 if (start === end)

Callers 15

slice.test.tsFile · 0.45
reset.test.tsFile · 0.45
replace.test.tsFile · 0.45
misc.test.tsFile · 0.45
move.test.tsFile · 0.45
indent.test.tsFile · 0.45
buildFunction · 0.45
overwrite.test.tsFile · 0.45
trim.test.tsFile · 0.45
clone.test.tsFile · 0.45

Calls 1

updateMethod · 0.95

Tested by 2

buildFunction · 0.36
applyOpFunction · 0.36