ANTAREX API

Clava API

LARA API

LARA Common Language API

(.js)
laraImport("antarex.precision.rewTypesFunc");

(.lara)
import antarex.precision.rewTypesFunc;

Global Functions

getNewType

getNewType($vardeclType, oldType, newType)

Parameters

$vardeclType: any
oldType: any
newType: any

Returns

any - the result of the substitution of a type (oldType) by an other one (newType) in a type expression ($vardeclType).

initPreservedTypes

initPreservedTypes(tab)

Initialize the preserved types.

Parameters

tab: any - an array of names of types to preserved, assumed to be typedef types.

isDeclareddDontModify

isDeclareddDontModify(nametype)

Parameters

nametype: any

Returns

any - true if the parameter (nametype) is a name of a preserved types, false otherwise.

setNewType

setNewType($vardeclType, $child, $ntype)

Misc function local to getNewType() function.

Parameters

$vardeclType: any
$child: any
$ntype: any