UNPKG

proc_macro

Version:
25 lines 799 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * TODO: Implement spans for more accurate debugging. */ var Span = /** @class */ (function () { function Span(sections) { if (sections === void 0) { sections = []; } this._sections = sections; } Object.defineProperty(Span.prototype, "sections", { get: function () { return this.sections; }, enumerable: false, configurable: true }); Span.prototype.expand = function (section) { this._sections.push(section); }; Span.prototype.toParenthesisString = function () { return '[' + this._sections.map(function (s) { return s[0] + ".." + s[1]; }) + ']'; }; return Span; }()); exports.default = Span; //# sourceMappingURL=span.js.map