Zen
A cross-platform functional programming language
|
AST Nodes representing closures that call a single function anywhere in a continuation. More...
#include <Ast.hpp>
Public Member Functions | |
FunctionCallClosure (const VariableRefList &xRefList, const Ast::VariableDef &vdef, const Ast::Invoker &invoker) | |
Default constructor. | |
const VariableDef & | getDef () const |
Returns the variable that holds the return value of this closure. | |
const Invoker & | getInvoker () const |
Returns the invoker for this closure. | |
Private Member Functions | |
virtual void | visit (Visitor &visitor) const |
Abstract visitor function. | |
Private Attributes | |
const Ast::VariableDef & | _vdef |
The variable identifying the closure. | |
const Ast::Invoker & | _invoker |
The closure invoker. |
AST Nodes representing closures that call a single function anywhere in a continuation.
FunctionCallClosure | ( | const VariableRefList & | xRefList, |
const Ast::VariableDef & | vdef, | ||
const Ast::Invoker & | invoker | ||
) | [inline] |
Default constructor.
xRefList | The list of external variables referenced by this closure. |
vdef | The variable that uniquely identifies this closure in the continuation. |
invoker | The invocation (function, functor, etc) that gets called within the closure. |
const VariableDef& getDef | ( | ) | const [inline] |
Returns the variable that holds the return value of this closure.
const Invoker& getInvoker | ( | ) | const [inline] |
Returns the invoker for this closure.
void visit | ( | Visitor & | visitor | ) | const [private, virtual] |