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

Method constructor

benchmark/data.js:14–27  ·  view source on GitHub ↗
(start, end, content)

Source from the content-addressed store, hash-verified

12}
13class Chunk {
14 constructor(start, end, content) {
15 this.start = start;
16 this.end = end;
17 this.original = content;
18 this.intro = '';
19 this.outro = '';
20 this.content = content;
21 this.storeName = false;
22 this.edited = false;
23 Object.defineProperties(this, {
24 previous: { writable: true, value: null },
25 next: { writable: true, value: null },
26 });
27 }
28 appendLeft(content) {
29 this.outro += content;
30 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected