UNPKG

dockerfile-ast

Version:

Parse a Dockerfile into an array of instructions and comments.

12 lines (11 loc) 404 B
import { TextDocument } from 'vscode-languageserver-textdocument'; import { Range } from 'vscode-languageserver-types'; export declare class Line { protected readonly document: TextDocument; private readonly range; constructor(document: TextDocument, range: Range); getRange(): Range; getTextContent(): string; isAfter(line: Line): boolean; isBefore(line: number): boolean; }