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

Method appendLeft

tests/fuzz/edit-model.ts:50–53  ·  view source on GitHub ↗
(index: number, content: string)

Source from the content-addressed store, hash-verified

48 }
49
50 appendLeft(index: number, content: string): void {
51 this.split(index)
52 this.left[index] += content
53 }
54
55 prependLeft(index: number, content: string): void {
56 this.split(index)

Callers 15

update.test.tsFile · 0.45
slice.test.tsFile · 0.45
append.test.tsFile · 0.45
reset.test.tsFile · 0.45
replace.test.tsFile · 0.45
createFunction · 0.45
misc.test.tsFile · 0.45
move.test.tsFile · 0.45
indent.test.tsFile · 0.45
buildFunction · 0.45
removedFunction · 0.45

Calls 1

splitMethod · 0.95

Tested by 4

createFunction · 0.36
buildFunction · 0.36
removedFunction · 0.36
createFunction · 0.36