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

Method addSourcemapLocation

src/MagicString.ts:111–113  ·  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

109 * Adds the specified character index (with respect to the original string) to sourcemap mappings, if `hires` is false.
110 */
111 addSourcemapLocation(char: number): void {
112 this.sourcemapLocations.add(char)
113 }
114
115 /**
116 * 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