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

Method replaceLeft

src/sourcemap.ts:60–64  ·  view source on GitHub ↗
(start: number, end: number, value: string)

Source from the content-addressed store, hash-verified

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});
63 return this;
64 }
65 replaceRight(start: number, end: number, value: string): typeof this {
66 this._subsume(start, end);
67 this._edits.splice(this._bisectRight(start), 0, {start, end, value});

Callers 9

insertLeftMethod · 0.95
transformFunction · 0.95
transpileModuleFunction · 0.95
sourcemap-test.tsFile · 0.80
rewriteImportSourceFunction · 0.80
rewriteImportSourceFunction · 0.80
rewriteFileExpressionsFunction · 0.80
CallExpressionFunction · 0.80
rewriteParamsFunction · 0.80

Calls 2

_subsumeMethod · 0.95
_bisectLeftMethod · 0.95

Tested by

no test coverage detected