UNPKG

797 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.FlagOption = void 0;
4class FlagOption {
5 constructor(range, name, nameRange, value, valueRange) {
6 this.range = range;
7 this.name = name;
8 this.nameRange = nameRange;
9 this.value = value;
10 this.valueRange = valueRange;
11 }
12 toString() {
13 if (this.valueRange !== null) {
14 return this.name + "=" + this.value;
15 }
16 return this.name;
17 }
18 getRange() {
19 return this.range;
20 }
21 getName() {
22 return this.name;
23 }
24 getNameRange() {
25 return this.nameRange;
26 }
27 getValue() {
28 return this.value;
29 }
30 getValueRange() {
31 return this.valueRange;
32 }
33}
34exports.FlagOption = FlagOption;