Zen
A cross-platform functional programming language
|
AST Node representing a statement block. More...
#include <Ast.hpp>
Public Member Functions | |
StatementBlock (const StatementList &list) | |
Default constructor. | |
const StatementList & | getList () const |
Returns a reference to the list of statements in this block. | |
Private Member Functions | |
virtual void | visit (Statement::Visitor &visitor) const |
Abstract visitor function. | |
Private Attributes | |
const StatementList & | _list |
The statement list. |
AST Node representing a statement block.
A statement block is a compound statement, typically used to represent a standa-alone set of statements in curly braces. For example:
{ ... }
Here, everything between the { and } is a statement block
StatementBlock | ( | const StatementList & | list | ) | [inline, explicit] |
Default constructor.
list | The statement list contained in the block |
const StatementList& getList | ( | ) | const [inline] |
Returns a reference to the list of statements in this block.
void visit | ( | Statement::Visitor & | visitor | ) | const [private, virtual] |