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

Method appendRight

benchmark/data-min.js:262–267  ·  view source on GitHub ↗
(t, e)

Source from the content-addressed store, hash-verified

260 return (n ? n.appendLeft(e) : (this.intro += e), this);
261 }
262 appendRight(t, e) {
263 if (typeof e != 'string') throw new TypeError('inserted content must be a string');
264 this._split(t);
265 const n = this.byStart[t];
266 return (n ? n.appendRight(e) : (this.outro += e), this);
267 }
268 clone() {
269 const t = new f(this.original, { filename: this.filename });
270 let e = this.firstChunk,

Callers

nothing calls this directly

Calls 2

_splitMethod · 0.95
appendRightMethod · 0.45

Tested by

no test coverage detected