UNPKG

759 BTypeScriptView Raw
1import { TextDocument } from 'vscode-languageserver-textdocument';
2import { Range } from 'vscode-languageserver-types';
3import { Instruction } from './instruction';
4import { Dockerfile } from './dockerfile';
5export declare class Parser {
6 private escapeChar;
7 static createInstruction(document: TextDocument, dockerfile: Dockerfile, escapeChar: string, lineRange: Range, instruction: string, instructionRange: Range): Instruction;
8 private getParserDirectives;
9 private document;
10 private buffer;
11 parse(buffer: string): Dockerfile;
12 private processInstruction;
13 private parseHeredocName;
14 private processHeredocs;
15 private processArguments;
16 private processComment;
17 private parseHeredoc;
18 private createInstruction;
19}