sourceMaps.js 553 B

12345678910111213141516
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.MirrorMap = void 0;
  4. const SourceMaps = require("@volar/source-map");
  5. class MirrorMap extends SourceMaps.SourceMap {
  6. *findMirrorOffsets(start) {
  7. for (const mapped of this.toGeneratedOffsets(start)) {
  8. yield [mapped[0], mapped[1].data[1]];
  9. }
  10. for (const mapped of this.toSourceOffsets(start)) {
  11. yield [mapped[0], mapped[1].data[0]];
  12. }
  13. }
  14. }
  15. exports.MirrorMap = MirrorMap;
  16. //# sourceMappingURL=sourceMaps.js.map