public

Inheritance Graph

graph BT
	Block
	Block --> ASTNode
	click Block "classEScript_1_1AST_1_1Block"
	click ASTNode "classEScript_1_1AST_1_1ASTNode"

Description

[ Block ] > [ ASTNode ]

Public Types

   
   
typedef std::deque< ref_t > statementList_t
   
typedef statementList_t::iterator statementCursor
   
typedef statementList_t::const_iterator cStatementCursor

Public Static Functions

   
   
Block * createBlockExpression(int line)
   
Block * createBlockStatement(int line)

Public Functions

   
   
  ~Block()
   
statementList_t & getStatements()
   
const statementList_t & getStatements() const
   
bool declareLocalVar( StringId id)
returns false if variable was already declared
   
bool declareStaticVar( StringId id)
   
const declaredVariableMap_t & getVars() const
   
void addStatement( ptr_t s)
   
bool hasDeclaredVars() const
   
size_t getNumDeclaredVars() const
   
void convertToStatement()
   
void convertToExpression()

Documentation

typedef
EScript::AST::Block::statementList_t

public
 
 
typedef std::deque< ref_t > statementList_t

Defined in EScript/EScript/Compiler/AST/Block.h:25


typedef
EScript::AST::Block::statementCursor

public
 
 
typedef statementList_t::iterator statementCursor

Defined in EScript/EScript/Compiler/AST/Block.h:26


typedef
EScript::AST::Block::cStatementCursor

public
 
 
typedef statementList_t::const_iterator cStatementCursor

Defined in EScript/EScript/Compiler/AST/Block.h:27


function
EScript::AST::Block::createBlockExpression

public static inline
     
     
Block * createBlockExpression( int line )

Defined in EScript/EScript/Compiler/AST/Block.h:29


function
EScript::AST::Block::createBlockStatement

public static inline
     
     
Block * createBlockStatement( int line )

Defined in EScript/EScript/Compiler/AST/Block.h:32


function
EScript::AST::Block::~Block

public inline virtual
   
   
~Block( )

Defined in EScript/EScript/Compiler/AST/Block.h:36


function
EScript::AST::Block::getStatements

public inline
   
   
statementList_t & getStatements( )

Defined in EScript/EScript/Compiler/AST/Block.h:38


function
EScript::AST::Block::getStatements

public const inline
   
   
const statementList_t & getStatements( ) const

Defined in EScript/EScript/Compiler/AST/Block.h:39


function
EScript::AST::Block::declareLocalVar

public inline
     
     
bool declareLocalVar( StringId id )

returns false if variable was already declared

Defined in EScript/EScript/Compiler/AST/Block.h:43


function
EScript::AST::Block::declareStaticVar

public inline
     
     
bool declareStaticVar( StringId id )

Defined in EScript/EScript/Compiler/AST/Block.h:44


function
EScript::AST::Block::getVars

public const inline
   
   
const declaredVariableMap_t & getVars( ) const

Defined in EScript/EScript/Compiler/AST/Block.h:45


function
EScript::AST::Block::addStatement

public inline
     
     
void addStatement( ptr_t s )

Defined in EScript/EScript/Compiler/AST/Block.h:48


function
EScript::AST::Block::hasDeclaredVars

public const inline
   
   
bool hasDeclaredVars( ) const

Defined in EScript/EScript/Compiler/AST/Block.h:49


function
EScript::AST::Block::getNumDeclaredVars

public const inline
   
   
size_t getNumDeclaredVars( ) const

Defined in EScript/EScript/Compiler/AST/Block.h:50


function
EScript::AST::Block::convertToStatement

public inline
   
   
void convertToStatement( )

Defined in EScript/EScript/Compiler/AST/Block.h:52


function
EScript::AST::Block::convertToExpression

public inline
   
   
void convertToExpression( )

Defined in EScript/EScript/Compiler/AST/Block.h:53