Zen
A cross-platform functional programming language

FunctionBlock Class Reference

AST Node representing a routine block. More...

#include <Ast.hpp>

Inheritance diagram for FunctionBlock:
BlockBase Node

List of all members.

Public Member Functions

 FunctionBlock (const VariableRefList &refList, const StatementBlock &block)
 Default constructor.
const StatementBlockgetStatementBlock () const
 Returns a reference to the statement block for this function.

Private Attributes

const StatementBlock_block
 The statement block for this function.

Detailed Description

AST Node representing a routine block.

Todo:
Merge with RoutineBlock

Constructor & Destructor Documentation

FunctionBlock ( const VariableRefList refList,
const StatementBlock block 
) [inline, explicit]

Default constructor.

Parameters:
refListThe list of external variables referenced by this block
blockThe statement block for this function

Member Function Documentation

const StatementBlock& getStatementBlock ( ) const [inline]

Returns a reference to the statement block for this function.

Returns:
The statement block.

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