@specs-feup/clava
Version:
A C/C++ source-to-source compiler written in Typescript
19 lines • 683 B
TypeScript
import { FileJp } from "../../Joinpoints.js";
/**
* Writes the original code of the application, with the possibility of inserting new lines of code.
*/
export default class CodeInserter {
/**
* Maps $file AST ids to an object that maps line numbers to strings to insert.
*/
protected linesToInserts: Record<string, Record<number, string[]>>;
constructor();
add($file: FileJp, line: number, content: string): void;
/**
* Writes the code of the current tree, plus the lines to insert, to the given folder.
*/
write(outputFolder: string): void;
private getFileLines;
private addContent;
}
//# sourceMappingURL=CodeInserter.d.ts.map