UNPKG

dockerfile-ast

Version:

Parse a Dockerfile into an array of instructions and comments.

16 lines (15 loc) 562 B
import { TextDocument } from 'vscode-languageserver-textdocument'; import { Range } from 'vscode-languageserver-types'; import { Directive } from './main'; import { Line } from './line'; export declare class ParserDirective extends Line { private readonly nameRange; private readonly valueRange; constructor(document: TextDocument, range: Range, nameRange: Range, valueRange: Range); toString(): string; getNameRange(): Range; getValueRange(): Range; getName(): string; getValue(): string; getDirective(): Directive | null; }