![]() |
Zen
A cross-platform functional programming language
|
AST Node representing a return statement in a routine block. More...
#include <Ast.hpp>
Public Member Functions | |
| RoutineReturnStatement (const Expr &expr) | |
| Default constructor. | |
| const Expr & | getExpr () const |
| Returns a reference to the return expression. | |
Private Member Functions | |
| virtual void | visit (Statement::Visitor &visitor) const |
| Abstract visitor function. | |
Private Attributes | |
| const Expr & | _expr |
| The expression value to return. | |
AST Node representing a return statement in a routine block.
| RoutineReturnStatement | ( | const Expr & | expr | ) | [inline] |
Default constructor.
| expr | The expression value to return |
| const Expr& getExpr | ( | ) | const [inline] |
Returns a reference to the return expression.
| void visit | ( | Statement::Visitor & | visitor | ) | const [private, virtual] |