blark.transform.FunctionCallStatement
- class blark.transform.FunctionCallStatement(name: SimpleVariable | MultiElementVariable, parameters: List[ParameterAssignment], dereferenced: bool, meta: Meta | None = None)[source]
Bases:
Statement
,FunctionCall
A 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_statement
function_call_statement: function_call ";"+
Methods
from_lark
(invocation)Attributes
base_type_name
The base type name.
full_type_name
The full type name, including any dereferencing or subscripts.
meta
value
The initialization value (the function call itself).
name
The function name.
parameters
Positional, naed, or output parameters.
dereferenced
Dereference the return value?
- static from_lark(invocation: FunctionCall) FunctionCallStatement [source]