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

Method delete

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

Source from the content-addressed store, hash-verified

55 return this.replaceRight(index, index, value);
56 }
57 delete(start: number, end: number): typeof this {
58 return this.replaceRight(start, end, "");
59 }
60 replaceLeft(start: number, end: number, value: string): typeof this {
61 this._subsume(start, end);
62 this._edits.splice(this._bisectLeft(start), 0, {start, end, value});

Callers 15

trimMethod · 0.95
sourcemap-test.tsFile · 0.80
resolveJsrVersionFunction · 0.80
fetchJsrPackageFunction · 0.80
loadFunction · 0.80
populateNpmCacheFunction · 0.80
resolveNpmVersionFunction · 0.80
cacheDuckDBExtensionFunction · 0.80
recordMethod · 0.80
undefineFunction · 0.80

Calls 1

replaceRightMethod · 0.95

Tested by

no test coverage detected