linkedCodeMap.js 535 B

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