UNPKG

1.11 kBTypeScriptView Raw
1import { TextDocument, Range } from 'vscode-languageserver-types';
2import { Dockerfile } from './dockerfile';
3import { Line } from './line';
4import { Argument } from './argument';
5import { Variable } from './variable';
6export declare class Instruction extends Line {
7 protected readonly dockerfile: Dockerfile;
8 protected readonly escapeChar: string;
9 private readonly instruction;
10 private readonly instructionRange;
11 constructor(document: TextDocument, range: Range, dockerfile: Dockerfile, escapeChar: string, instruction: string, instructionRange: Range);
12 toString(): string;
13 protected getRangeContent(range: Range | null): string | null;
14 getInstructionRange(): Range;
15 getInstruction(): string;
16 getKeyword(): string;
17 getArgumentsRange(): Range | null;
18 getArgumentsRanges(): Range[];
19 getRawArgumentsContent(): string | null;
20 getArgumentsContent(): string | null;
21 getArguments(): Argument[];
22 private getRawArguments;
23 getExpandedArguments(): Argument[];
24 getVariables(): Variable[];
25 private parseVariables;
26 private isBuildVariable;
27}