ansys.scade.apitools.create.declaration.add_operator_hidden#

ansys.scade.apitools.create.declaration.add_operator_hidden(operator: scade.model.suite.Operator, vars: List[Tuple[str, ansys.scade.apitools.create.type.TX]], insert_before: scade.model.suite.LocalVariable | None = None) List[scade.model.suite.LocalVariable]#

Add hidden inputs to an operator.

Notes#

This is an interface change with respect to the SCADE Creation Library. The pairs “name”/”type” tree are now embedded in a list of tuples.

Parameters#

operatorsuite.Operator

Input operator.

varsList[Tuple[str, TX]]

Name/type expression trees.

insert_beforesuite.LocalVariable | None, default: None

Insertion point of the inputs. When this parameter is not None, it is an existing hidden input of the operator. The hidden inputs are inserted before this input. Otherwise, the hidden inputs are added at the end.

Returns#

List[suite.LocalVariable]

List of the added hidden inputs.