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

Method insertLeft

src/sourcemap.ts:51–53  ·  view source on GitHub ↗
(index: number, value: string)

Source from the content-addressed store, hash-verified

49 this._edits.length = n;
50 }
51 insertLeft(index: number, value: string): typeof this {
52 return this.replaceLeft(index, index, value);
53 }
54 insertRight(index: number, value: string): typeof this {
55 return this.replaceRight(index, index, value);
56 }

Callers 4

transpileTagFunction · 0.95
sourcemap-test.tsFile · 0.80
transpileJavaScriptFunction · 0.80

Calls 1

replaceLeftMethod · 0.95

Tested by

no test coverage detected