UNPKG

1.35 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 { Heredoc } from './heredoc';
7import { Variable } from './variable';
8export declare class Instruction extends Line {
9 protected readonly dockerfile: Dockerfile;
10 protected readonly escapeChar: string;
11 private readonly instruction;
12 private readonly instructionRange;
13 constructor(document: TextDocument, range: Range, dockerfile: Dockerfile, escapeChar: string, instruction: string, instructionRange: Range);
14 toString(): string;
15 protected getRangeContent(range: Range | null): string | null;
16 getInstructionRange(): Range;
17 getInstruction(): string;
18 getKeyword(): string;
19 getArgumentsRange(): Range | null;
20 getArgumentsRanges(): Range[];
21 getRawArgumentsContent(): string | null;
22 getArgumentsContent(): string | null;
23 getArguments(): Argument[];
24 private getRawArguments;
25 getExpandedArguments(): Argument[];
26 getVariables(): Variable[];
27 private parseVariables;
28 private isBuildVariable;
29 private createSingleLineHeredocs;
30 private getName;
31 private getNameRange;
32 protected getHeredocs(): Heredoc[];
33 private getDelimiterRange;
34}