UNPKG

1.19 kBTypeScriptView Raw
1import { TextDocument } from 'vscode-languageserver-textdocument';
2import { Range } from 'vscode-languageserver-types';
3import { Dockerfile } from './dockerfile';
4import { Instruction } from './instruction';
5import { Property } from './property';
6import { Argument } from './argument';
7export declare abstract class PropertyInstruction extends Instruction {
8 private properties;
9 constructor(document: TextDocument, range: Range, dockerfile: Dockerfile, escapeChar: string, instruction: string, instructionRange: Range);
10 getProperties(): Property[];
11 /**
12 * Goes from the back of the string and returns the first
13 * non-whitespace character that is found. If an escape character
14 * is found with newline characters, the escape character will
15 * not be considered a non-whitespace character and its index in
16 * the string will not be returned.
17 *
18 * @param content the string to search through
19 * @return the index in the string for the first non-whitespace
20 * character when searching from the end of the string
21 */
22 private findTrailingNonWhitespace;
23 getPropertyArguments(): Argument[];
24 private createSpacedArgument;
25}