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