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

Method addSourcemapLocation

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

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