UNPKG

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