ANTAREX API

Clava API

LARA API

LARA Common Language API

StatementDecomposer

Constructor

StatementDecomposer

new StatementDecomposer()

Instance Members

constructor

constructor([tempPrefix = "decomp_"], [startIndex = 0])

Parameters

tempPrefix: string (optional)
startIndex: number (optional)

decompose

decompose($stmt)

Parameters

$stmt: $statement - A statement that will be decomposed.

Returns

$statement[] - An array with the new statements, or an empty array if no decomposition could be made

decomposeAndReplace

decomposeAndReplace($stmt)

If the given statement can be decomposed in two or more statements, replaces the statement with the decomposition.

Parameters

$stmt: $statement - A statement that will be decomposed.

decomposeAssignment

decomposeAssignment($assign)

Parameters

$assign: unknown

decomposeBinaryOp

decomposeBinaryOp($binaryOp)

Parameters

$binaryOp: unknown

decomposeCall

decomposeCall($call)

Parameters

$call: unknown

decomposeDeclStmt

decomposeDeclStmt($stmt)

Parameters

$stmt: unknown

decomposeExpr

decomposeExpr($expr)

Parameters

$expr: unknown

Returns

DecomposeResult

decomposeExprStmt

decomposeExprStmt($stmt)

Parameters

$stmt: unknown

decomposeReturnStmt

decomposeReturnStmt($stmt)

Parameters

$stmt: unknown

decomposeStmt

decomposeStmt($stmt)

Parameters

$stmt: unknown

decomposeTernaryOp

decomposeTernaryOp($ternaryOp)

Parameters

$ternaryOp: unknown

decomposeUnaryOp

decomposeUnaryOp($unaryOp)

Parameters

$unaryOp: unknown