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

Method constructor

benchmark/data.js:214–221  ·  view source on GitHub ↗
(hires)

Source from the content-addressed store, hash-verified

212}
213class Mappings {
214 constructor(hires) {
215 this.hires = hires;
216 this.generatedCodeLine = 0;
217 this.generatedCodeColumn = 0;
218 this.raw = [];
219 this.rawSegments = this.raw[this.generatedCodeLine] = [];
220 this.pending = null;
221 }
222 addEdit(sourceIndex, content, loc, nameIndex) {
223 if (content.length) {
224 const segment = [this.generatedCodeColumn, sourceIndex, loc.line, loc.column];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected