UNPKG

xast

Version:
20 lines 556 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Location = void 0; class Location { constructor(startToken, endToken, source) { this.start = startToken.start; this.end = endToken.end; this.startToken = startToken; this.endToken = endToken; this.source = source; } get [Symbol.toStringTag]() { return 'Location'; } toJSON() { return { start: this.start, end: this.end }; } } exports.Location = Location; //# sourceMappingURL=Location.js.map