Zen
A cross-platform functional programming language

FunctionReturnStatement Class Reference

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

#include <Ast.hpp>

Inheritance diagram for FunctionReturnStatement:
Statement Node

List of all members.

Public Member Functions

 FunctionReturnStatement (Ast::FunctionDef &fdef, const ExprList &list)
 Default constructor.
const Ast::FunctionDefgetFunctionDef () const
 Returns a reference to the function for which this is the return statement.
const ExprListgetList () 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.

Detailed Description

AST Node representing a return statement in a function block.


Constructor & Destructor Documentation

FunctionReturnStatement ( Ast::FunctionDef fdef,
const ExprList list 
) [inline]

Default constructor.

Parameters:
fdefThe function for which this is the return statement
listThe list of expressions to return

Member Function Documentation

const Ast::FunctionDef& getFunctionDef ( ) const [inline]

Returns a reference to the function for which this is the return statement.

Returns:
The function definition.
const ExprList& getList ( ) const [inline]

Returns a reference to the list of expressions to be returned.

Returns:
The value list.
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