@specs-feup/lara
Version:
A js port of the popular framework for building source-to-source compilers
23 lines • 643 B
TypeScript
import { JavaClasses } from "./JavaTypes.js";
/**
* Helps inserting lines.
*
*/
export default class LineInserter {
newLine: string;
/**
* Sets the new line.
*
* @param newLine - the new line to use.
*/
setNewLine(newLine: string): void;
/**
*
* @param contents - The contents where lines will be inserted.
* @param linesToInsert - Maps line numbers to strings to insert.
*
* @returns the contents with the lines inserted.
*/
add(contents: string | JavaClasses.File, linesToInsert: Record<number, string | string[]>): string;
}
//# sourceMappingURL=LineInserter.d.ts.map