1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const property_1 = require("../property");
|
4 | const propertyInstruction_1 = require("../propertyInstruction");
|
5 | class Arg extends propertyInstruction_1.PropertyInstruction {
|
6 | constructor(document, range, dockerfile, escapeChar, instruction, instructionRange) {
|
7 | super(document, range, dockerfile, escapeChar, instruction, instructionRange);
|
8 | this.property = null;
|
9 | const args = this.getPropertyArguments();
|
10 | if (args.length === 1) {
|
11 | this.property = new property_1.Property(this.document, this.escapeChar, args[0]);
|
12 | }
|
13 | else {
|
14 | this.property = null;
|
15 | }
|
16 | }
|
17 | |
18 |
|
19 |
|
20 |
|
21 |
|
22 | getProperty() {
|
23 | return this.property;
|
24 | }
|
25 | }
|
26 | exports.Arg = Arg;
|