Functions
- transpile(input_file, output_file)
-
Read the file with the js program, calls addLogin to add the login messages and writes the output
- addLogging(code) ⇒
-
Builds the AST and Traverses it searching for function nodes and callas addBeforeNode to transform the AST
- addBeforeCode(node)
-
AST transformation
transpile(input_file, output_file)
Read the file with the js program, calls addLogin to add the login messages and writes the output
Kind: global function
Param | Type | Description |
---|---|---|
input_file | string |
The name of the input file |
output_file | string |
The name of the output file |
addLogging(code) ⇒
Builds the AST and Traverses it searching for function nodes and callas addBeforeNode to transform the AST
Kind: global function
Returns: -- The transformed AST
Param | Type | Description |
---|---|---|
code | string |
the source code |
addBeforeCode(node)
AST transformation
Kind: global function
Param | Type |
---|---|
node | AST |