CsBlock Struct Reference

Block AST node. More...

Inheritance diagram for CsBlock:

CsStatement CsNode

List of all members.

Public Member Functions

 CsBlock ()
 CsBlock (LineInfo line_info)
virtual ~CsBlock ()
virtual void build_entities (CsDisplay &display)
 Build Entities - pass 2 (for internal purpose only).
virtual void type_lookup (CsDisplay &display)
 Type Lookup - pass 3 (for internal purpose only).
virtual void member_lookup (CsDisplay &display)
 Member Lookup - pass 4 (for internal purpose only).
virtual void addTokensRecursive (CsTokenCollector &tokenCollector)
 Recusively collect token indexes in source code order.
virtual void addTokens (CsTokenCollector &tokenCollector)
 Collect token indexes associated with this AST node.
virtual void addEntityDefinitions (CsEntityCollector &tokenCollector)
 Collect entities defined in this AST node.
virtual void addEntityReferences (CsEntityCollector &tokenCollector)
 Collect entity references.
virtual void clearEntities ()
 Clear all entity references (for internal purpose only).

Public Attributes

FastArray< CsStatement * > statements
 Statements.
CsScopeEntityentity
 Block entity.
HashTableTemplate< CsLabel * > * label_table
 Label hash table.
CsTokenIndex lcurly_token
CsTokenIndex rcurly_token


Detailed Description

Block AST node.

EBNF grammar:

block:
  (statement)*


Constructor & Destructor Documentation

CsBlock::CsBlock (  )  [inline]

CsBlock::CsBlock ( LineInfo  line_info  )  [inline, explicit]

virtual CsBlock::~CsBlock (  )  [inline, virtual]


Member Function Documentation

virtual void CsBlock::build_entities ( CsDisplay &  display  )  [virtual]

Build Entities - pass 2 (for internal purpose only).

Implements CsNode.

virtual void CsBlock::type_lookup ( CsDisplay &  display  )  [virtual]

Type Lookup - pass 3 (for internal purpose only).

Implements CsNode.

virtual void CsBlock::member_lookup ( CsDisplay &  display  )  [virtual]

Member Lookup - pass 4 (for internal purpose only).

Implements CsNode.

virtual void CsBlock::addTokensRecursive ( CsTokenCollector tokenCollector  )  [virtual]

Recusively collect token indexes in source code order.

Implements CsNode.

virtual void CsBlock::addTokens ( CsTokenCollector tokenCollector  )  [virtual]

Collect token indexes associated with this AST node.

Implements CsNode.

virtual void CsBlock::addEntityDefinitions ( CsEntityCollector tokenCollector  )  [virtual]

Collect entities defined in this AST node.

Implements CsNode.

virtual void CsBlock::addEntityReferences ( CsEntityCollector tokenCollector  )  [virtual]

Collect entity references.

Implements CsNode.

virtual void CsBlock::clearEntities (  )  [virtual]

Clear all entity references (for internal purpose only).

Implements CsNode.


Member Data Documentation

Statements.

HashTableTemplate<CsLabel*>* CsBlock::label_table

Label hash table.

© 2008 metaspec