![]() |
Zen
A cross-platform functional programming language
|
AST Node representing a closure that returns values to the parent continuation. More...
#include <Ast.hpp>
Public Member Functions | |
| ReturnClosure (const VariableRefList &xRefList, const Ast::ExprList &list) | |
| Default constructor. | |
| const ExprList & | getList () const |
| Returns a reference to the list of values to be returned. | |
Private Member Functions | |
| virtual void | visit (Visitor &visitor) const |
| Abstract visitor function. | |
Private Attributes | |
| const Ast::ExprList & | _list |
| List of return values. | |
AST Node representing a closure that returns values to the parent continuation.
| ReturnClosure | ( | const VariableRefList & | xRefList, |
| const Ast::ExprList & | list | ||
| ) | [inline] |
Default constructor.
| xRefList | The list of external variables referenced by this closure. |
| list | The list of expressions returned by this closure. |
| const ExprList& getList | ( | ) | const [inline] |
Returns a reference to the list of values to be returned.
| void visit | ( | Visitor & | visitor | ) | const [private, virtual] |