blark.transform.FunctionCallStatement
- class blark.transform.FunctionCallStatement(name: SimpleVariable | MultiElementVariable, parameters: List[ParameterAssignment], dereferenced: bool, meta: Meta | None = None)[source]
Bases:
Statement,FunctionCallA function (function block, method, action, etc.) call as a statement.
Examples:
A(1, 2); A(1, 2, sName:='test', iOutput=>); A.B[1].C(1, 2);
Lark grammar
This class is used by the following grammar rules:
function_call_statementfunction_call_statement: function_call ";"+
Methods
from_lark(invocation)Attributes
base_type_nameThe base type name.
full_type_nameThe full type name, including any dereferencing or subscripts.
metavalueThe initialization value (the function call itself).
nameThe function name.
parametersPositional, naed, or output parameters.
dereferencedDereference the return value?
- static from_lark(invocation: FunctionCall) FunctionCallStatement[source]