blark.transform.ChainedFunctionCall
- class blark.transform.ChainedFunctionCall(invocations: List[FunctionCall], meta: Meta | None = None)[source]
Bases:
Expression
A set of chained function (function block, method, action, etc.) calls.
The return value may be dereferenced with a carat (
^
).Examples:
A()^.B() A(1, 2).B().C() A(1, 2, sName:='test', iOutput=>).C().D() A.B[1].C(1, 2)
Lark grammar
This class is used by the following grammar rules:
chained_function_call
chained_function_call: function_call ( "." function_call )+
Methods
__init__
(invocations[, meta])from_lark
(*invocations)Attributes
- invocations: List[FunctionCall]
- static from_lark(*invocations: FunctionCall) ChainedFunctionCall [source]