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

Method _bisectRight

src/sourcemap.ts:32–41  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

30 return lo;
31 }
32 private _bisectRight(index: number): number {
33 let lo = 0;
34 let hi = this._edits.length;
35 while (lo < hi) {
36 const mid = (lo + hi) >>> 1;
37 if (this._edits[mid].start > index) hi = mid;
38 else lo = mid + 1;
39 }
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) {

Callers 1

replaceRightMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected