MCPcopy Create free account
hub / github.com/observablehq/framework / _subsume

Method _subsume

src/sourcemap.ts:42–50  ·  view source on GitHub ↗
(start: number, end: number)

Source from the content-addressed store, hash-verified

40 return lo;
41 }
42 private _subsume(start: number, end: number): void {
43 let n = 0;
44 for (let i = 0; i < this._edits.length; ++i) {
45 const e = this._edits[i];
46 if (start <= e.start && e.end < end) continue;
47 this._edits[n++] = e;
48 }
49 this._edits.length = n;
50 }
51 insertLeft(index: number, value: string): typeof this {
52 return this.replaceLeft(index, index, value);
53 }

Callers 2

replaceLeftMethod · 0.95
replaceRightMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected