defaults for the transformation config objects
name for the global budget variable
decorator name for generating generators
tries to find the decorator RTJS_DECORATOR for the given node, if found: add node to RTJS-function list
find the decorator for this node
node if the decorator was found, nothing if not
returns a budgeted version of the yield statement
if ( --this.rtjs.RTJS_BUDGET < 0 ) { yield this.Schedulermessage.Continue }
returns property access of rtjs's budget variable
this.rtjs.RTJS_BUDGET
returns a single return statement with Scheduler::TerminateTask message; indicates, that the task is finished
ast objects for return SchedulerMessage.TerminteTask
creates an expression like yield this.rtjs.spawnTaskFromFn(node.bind(node, SIZE), this.name + "->" + node.name, this.priority)
returns a single yield statement with the message Scheduler::Continue
ast objects for yield SchedulerMessage.Continue
make the node a generator and remove the async keyword
function-like to be evaluated
returns the comment string before the node
node for which to get the comment
comment string
modify the list of statements in a block
configuration variable
the block of statements to be modified
inserts a budgeted yield before function calls
configuration variable
the statement to be altered
modifies for-loops according to the config variable
configuration variable
AST node identifying the for-loop-statement
modifies a function according to the config values
configuration variable
the function node
modify if statements according to the config variable
configuration variable
the AST node identifying the if-statement
modifies a list of statements
configuration variable
the list of statements of the block
list of statements to be concatted after the modification of statements
the new list of statements
modifies while-loops according to the config variable
configuration variable
AST node identifying the while-loop-statement
<while ( ... )> {
starts the transformation, looks for RTJS_DECORATOR and starts transforming the decorated function-likes
configuration variable
Generated using TypeDoc
a FunctionLike is a method OR function - both are possible canidates for generating a generator