![]() |
Zen
A cross-platform functional programming language
|
Concrete class for AST Node representing a call to an Invoker. More...
#include <Ast.hpp>
Public Member Functions | |
| InvokerCallExpr (const QualifiedType &type, const Invoker &invoker) | |
| Default constructor. | |
| const Invoker & | getInvoker () const |
| Returns the invoker to be called. | |
Private Member Functions | |
| virtual void | visit (Expr::Visitor &visitor) const |
| Abstract visitor function. | |
Private Attributes | |
| const Invoker & | _invoker |
| The invoker. | |
Concrete class for AST Node representing a call to an Invoker.
For example:
local x = fn(1, 'a');
Here, fn is a functor and fn() is an invoker call.
| InvokerCallExpr | ( | const QualifiedType & | type, |
| const Invoker & | invoker | ||
| ) | [inline] |
Default constructor.
| type | Expression type |
| invoker | The Invoker to be called. |
| const Invoker& getInvoker | ( | ) | const [inline] |
Returns the invoker to be called.
| void visit | ( | Expr::Visitor & | visitor | ) | const [private, virtual] |