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

Method addSourcemapLocation

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

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