Zen
A cross-platform functional programming language

ReturnClosure Class Reference

AST Node representing a closure that returns values to the parent continuation. More...

#include <Ast.hpp>

Inheritance diagram for ReturnClosure:
Closure Node

List of all members.

Public Member Functions

 ReturnClosure (const VariableRefList &xRefList, const Ast::ExprList &list)
 Default constructor.
const ExprListgetList () 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.

Detailed Description

AST Node representing a closure that returns values to the parent continuation.


Constructor & Destructor Documentation

ReturnClosure ( const VariableRefList xRefList,
const Ast::ExprList list 
) [inline]

Default constructor.

Parameters:
xRefListThe list of external variables referenced by this closure.
listThe list of expressions returned by this closure.

Member Function Documentation

const ExprList& getList ( ) const [inline]

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

Returns:
Reference to return values.
void visit ( Visitor visitor) const [private, virtual]

Abstract visitor function.

Parameters:
visitorThe visitor object.

Implements Closure.


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