ANTAREX API

Clava API

LARA API

LARA Common Language API

(.js)
laraImport("clava.util.CodeInserter");

(.lara)
import clava.util.CodeInserter;

CodeInserter

Constructor

CodeInserter

new CodeInserter()

Writes the original code of the application, with the possibility of inserting new lines of code.


Instance Members

_addContent

_addContent(fileLines, line, content)

Parameters

fileLines: unknown
line: unknown
content: unknown

_getFileLines

_getFileLines(astId)

PRIVATE FUNCTIONS

Parameters

astId: unknown

add

add($file, line, content)

Parameters

$file: unknown
line: unknown
content: unknown

constructor

constructor()

write

write(outputFolder)

Writes the code of the current tree, plus the lines to insert, to the given folder.

Parameters

outputFolder: unknown