StatementListAST Class Reference

#include <ast.h>

Inheritance diagram for StatementListAST:

Inheritance graph
[legend]
Collaboration diagram for StatementListAST:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 1417 of file ast.h.

Public Types

enum  

Public Member Functions

 StatementListAST ()
List< StatementAST * > * statementList () const
void addStatement (StatementAST *statement)

Private Member Functions

 StatementListAST (const StatementListAST &source)
void operator= (const StatementListAST &source)

Private Attributes

List< StatementAST * > * m_statementList


Member Enumeration Documentation

anonymous enum

Definition at line 1420 of file ast.h.


Constructor & Destructor Documentation

StatementListAST::StatementListAST (  ) 

Definition at line 629 of file ast.cpp.

00630     : m_statementList(0)
00631 {
00632 }

StatementListAST::StatementListAST ( const StatementListAST source  )  [private]


Member Function Documentation

List<StatementAST *>* StatementListAST::statementList (  )  const [inline]

Definition at line 1425 of file ast.h.

References m_statementList.

Referenced by TreeWalker::parseStatementList().

01425 { return m_statementList; }

void StatementListAST::addStatement ( StatementAST statement  ) 

Definition at line 634 of file ast.cpp.

References AST::_pool, m_statementList, and AST::setParent().

Referenced by Parser::parseCompoundStatement(), and Parser::parseFunctionBody().

00635 {
00636     if(!statement)
00637         return;
00638 
00639     statement->setParent(this);
00640     m_statementList = snoc(m_statementList, statement, _pool);
00641 }

Here is the call graph for this function:

void StatementListAST::operator= ( const StatementListAST source  )  [private]


Member Data Documentation

List<StatementAST *>* StatementListAST::m_statementList [private]

Definition at line 1429 of file ast.h.

Referenced by addStatement(), and statementList().


The documentation for this class was generated from the following files:
Generated on Thu Mar 15 20:03:54 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1