1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.Line = void 0;
|
4 | class Line {
|
5 | constructor(document, range) {
|
6 | this.document = document;
|
7 | this.range = range;
|
8 | }
|
9 | getRange() {
|
10 | return this.range;
|
11 | }
|
12 | getTextContent() {
|
13 | return this.document.getText().substring(this.document.offsetAt(this.range.start), this.document.offsetAt(this.range.end));
|
14 | }
|
15 | isAfter(line) {
|
16 | return this.range.start.line > line.range.start.line;
|
17 | }
|
18 | isBefore(line) {
|
19 | return this.range.start.line < line;
|
20 | }
|
21 | }
|
22 | exports.Line = Line;
|