(.js)
laraImport("antarex.split.extractCodeFuncs");
(.lara)
import antarex.split.extractCodeFuncs;
Global Functions:
declareIsolateFunctionOrMethod($funcOrMethodDecl, b)Declare a new function or method in a new file defined by $funcOrMethodDecl.
declareNewIsolateCodeFunctionOrMethod($stmt, name)Declare a new function(or method) in a new file to encapsulate the code of a statement ($stmt).
The name of the function is a parameter.
genDeclCreatedObjects($target, tabNewNames)Declare the created functions/methods, copies of $target but with new names (tabNewNames[])
genIsolateCodeVersions($target, n)Generates n copies of the $target with a new name.
Each copy is generated in a new file.
genSelectorCode($target, tabNewNames)Generate the selector of the version to use for the isolated function§method $target.
getAssociatedName($target)getCurrentExtractedCodeIdentifier()getExtractCodeSymbolSelectedId()isBeginIsolateCodePragma($apragma)isBeginIsolatePragma($apragma)mkNewExtractedCodeIdentifier()replaceCodeByCall($stmt, $name, $params)Replace a stamement ($stmt) by a call to $name + $params.