1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | class Argument {
|
4 | constructor(value, range) {
|
5 | this.value = value;
|
6 | this.range = range;
|
7 | }
|
8 | toString() {
|
9 | return this.value;
|
10 | }
|
11 | getRange() {
|
12 | return this.range;
|
13 | }
|
14 | getValue() {
|
15 | return this.value;
|
16 | }
|
17 | isAfter(position) {
|
18 | if (this.range.end.line < position.line) {
|
19 | return false;
|
20 | }
|
21 | return this.range.start.line > position.line ? true : this.range.start.character > position.character;
|
22 | }
|
23 | isBefore(position) {
|
24 | if (this.range.start.line < position.line) {
|
25 | return true;
|
26 | }
|
27 | return this.range.end.line > position.line ? false : this.range.end.character < position.character;
|
28 | }
|
29 | }
|
30 | exports.Argument = Argument;
|