![]() |
Zen
A cross-platform functional programming language
|
AST Node representing a return statement in a function block. More...
#include <Ast.hpp>
Public Member Functions | |
| FunctionReturnStatement (Ast::FunctionDef &fdef, const ExprList &list) | |
| Default constructor. | |
| const Ast::FunctionDef & | getFunctionDef () const |
| Returns a reference to the function for which this is the return statement. | |
| const ExprList & | getList () const |
| Returns a reference to the list of expressions to be returned. | |
Private Member Functions | |
| virtual void | visit (Statement::Visitor &visitor) const |
| Abstract visitor function. | |
Private Attributes | |
| const Ast::FunctionDef & | _fdef |
| The function definition. | |
| const ExprList & | _list |
| The value list. | |
AST Node representing a return statement in a function block.
| FunctionReturnStatement | ( | Ast::FunctionDef & | fdef, |
| const ExprList & | list | ||
| ) | [inline] |
Default constructor.
| fdef | The function for which this is the return statement |
| list | The list of expressions to return |
| const Ast::FunctionDef& getFunctionDef | ( | ) | const [inline] |
Returns a reference to the function for which this is the return statement.
| const ExprList& getList | ( | ) | const [inline] |
Returns a reference to the list of expressions to be returned.
| void visit | ( | Statement::Visitor & | visitor | ) | const [private, virtual] |