ansys.scade.apitools.create.expression.create_unary#

ansys.scade.apitools.create.expression.create_unary(op: str, tree: EX, modifiers: ET | List[ET] = None) ET#

Return the expression tree for a unary operator.

Parameters:
opstr

Unary operator to call: - | + | !

treeEX

Operand: expression tree.

modifiersUnion[ET, LIST[ET]], default: None

List of higher-order constructs.

Returns:
ET