ANTAREX API

Clava API

LARA API

LARA Common Language API

(.js)
laraImport("antarex.utils.IdentReferences");

(.lara)
import antarex.utils.IdentReferences;

Global Functions

getExternalDeclsOf

getExternalDeclsOf($statement, $FunctionDecls)

Parameters

$statement: any
$FunctionDecls: any

Returns

any - the set of the declarations of the variables referenced in a statement ($statement) but not declared in it (ie external references to the statement).

getRefVarsInExpr

getRefVarsInExpr($expr, $refVars, $FunctionRefs)

Return (in $refVars) the set of symbols (variables, constants, objects) referenced
in an expression ($expr).

Parameters

$expr: any
$refVars: any
$FunctionRefs: any

getRefVarsInStmt

getRefVarsInStmt($statement, $refVars, $FunctionRefs)

Return (in $refVars) the set of symbols (variables, constants, objects) referenced in a statement ($statement).

Parameters

$statement: any
$refVars: any
$FunctionRefs: any

getReferencedParameters

getReferencedParameters($statement)

Parameters

$statement: any

Returns

any - the set of the parameters referenced in a statement ($statement). Assumed: $statement is a statement of a function/method.

getStmtToVisitForExternalDecls

getStmtToVisitForExternalDecls($statement)

Parameters

$statement: any

Returns

any - the statement to visit for analyzing the declarations.

insertInUsingLocation

insertInUsingLocation(tabDecl, $stmt)

Insert a statement ($stmt) in an array (tabDecl) using the location of the objects to
ensure the unicity in tabDecl.

Parameters

tabDecl: any
$stmt: any

isOutsideDeclaration

isOutsideDeclaration($aDecl, $statement)

Parameters

$aDecl: any
$statement: any

Returns

any - true if a declaration ($aDecl) is not local to a statement ($statement), false otherwise.