Zen
A cross-platform functional programming language

RoutineReturnStatement Class Reference

AST Node representing a return statement in a routine block. More...

#include <Ast.hpp>

Inheritance diagram for RoutineReturnStatement:
Statement Node

List of all members.

Public Member Functions

 RoutineReturnStatement (const Expr &expr)
 Default constructor.
const ExprgetExpr () 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.

Detailed Description

AST Node representing a return statement in a routine block.


Constructor & Destructor Documentation

RoutineReturnStatement ( const Expr expr) [inline]

Default constructor.

Parameters:
exprThe expression value to return

Member Function Documentation

const Expr& getExpr ( ) const [inline]

Returns a reference to the return expression.

Returns:
The return value expression.
void visit ( Statement::Visitor visitor) const [private, virtual]

Abstract visitor function.

Parameters:
visitorThe visitor object.

Implements Statement.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines