UNPKG

ts-budgie

Version:

Converts TypeScript code to Budgie.

35 lines (34 loc) 1.38 kB
import { BudgieLine } from "../output/budgieLine"; import { Transformation } from "../output/transformation"; /** * Prints series of transformations as lines of Budgie. */ export declare class TransformationsPrinter { /** * Indents Budgie lines using their command metadata. */ private readonly lineIndenter; /** * Prints a series of transformations as indented lines. * * @param sourceText Full source text from the transforming file. * @param transformations A series of transformations. * @returns The transformations' equivalent indented lines. */ printFile(sourceText: string, transformations: Transformation[]): string[]; /** * Prints a series of transformations as lines of Budgie and literal string lines. * * @param sourceText Full source text from the transforming file. * @param transformations A series of transformations. * @returns The transformations' equivalent Budgie and literal string lines. */ printTransformations(sourceText: string, transformations: Transformation[]): (string | BudgieLine)[]; /** * Prints a series of transformations as lines of Budgie. * * @param transformation A transformations. * @returns The transformation's equivalent Budgie. */ private printTransformation; }