utils/node_modules/@volar/language-core/lib/sourceMaps.js

16 lines
553 B
JavaScript
Raw Normal View History

2024-02-07 01:33:07 -05:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MirrorMap = void 0;
const SourceMaps = require("@volar/source-map");
class MirrorMap extends SourceMaps.SourceMap {
*findMirrorOffsets(start) {
for (const mapped of this.toGeneratedOffsets(start)) {
yield [mapped[0], mapped[1].data[1]];
}
for (const mapped of this.toSourceOffsets(start)) {
yield [mapped[0], mapped[1].data[0]];
}
}
}
exports.MirrorMap = MirrorMap;
//# sourceMappingURL=sourceMaps.js.map