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

Method append

tests/fuzz/edit-model.ts:42–44  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

40 }
41
42 append(content: string): void {
43 this.right[this.original.length] += content
44 }
45
46 prepend(content: string): void {
47 this.left[0] = content + this.left[0]

Callers 14

append.test.tsFile · 0.45
misc.test.tsFile · 0.45
indent.test.tsFile · 0.45
buildFunction · 0.45
trim.test.tsFile · 0.45
clone.test.tsFile · 0.45
append.test.tsFile · 0.45
length.test.tsFile · 0.45
indent.test.tsFile · 0.45

Calls

no outgoing calls

Tested by 1

buildFunction · 0.36