MCPcopy Create free account
hub / github.com/Rich-Harris/magic-string / addSourcemapLocation

Method addSourcemapLocation

src/MagicString.ts:203–205  ·  view source on GitHub ↗

* Adds the specified character index (with respect to the original string) to sourcemap mappings, if `hires` is false.

(char: number)

Source from the content-addressed store, hash-verified

201 * Adds the specified character index (with respect to the original string) to sourcemap mappings, if `hires` is false.
202 */
203 addSourcemapLocation(char: number): void {
204 this.sourcemapLocations.add(char)
205 }
206
207 /**
208 * Appends the specified content to the end of the string.

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected