CsLabel Struct Reference

Label AST node. More...

Inheritance diagram for CsLabel:

CsNode List of all members.

Public Member Functions

 CsLabel ()
 CsLabel (WPHashString phs, LineInfo line_info)
virtual ~CsLabel ()
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).
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).

Public Attributes

PHashString identifier
 Label name.
CsTokenIndex identifier_token
CsTokenIndex colon_token

Detailed Description

Label AST node.

EBNF grammar:

label:
  identifier ":"


Constructor & Destructor Documentation

CsLabel::CsLabel  )  [inline]
 

CsLabel::CsLabel WPHashString  phs,
LineInfo  line_info
[inline]
 

virtual CsLabel::~CsLabel  )  [inline, virtual]
 


Member Function Documentation

virtual void CsLabel::addEntityDefinitions CsEntityCollector tokenCollector  )  [virtual]
 

Collect entities defined in this AST node.

Implements CsNode.

virtual void CsLabel::addEntityReferences CsEntityCollector tokenCollector  )  [inline, virtual]
 

Collect entity references.

Implements CsNode.

virtual void CsLabel::addTokens CsTokenCollector tokenCollector  )  [virtual]
 

Collect token indexes associated with this AST node.

Implements CsNode.

virtual void CsLabel::addTokensRecursive CsTokenCollector tokenCollector  )  [virtual]
 

Recusively collect token indexes in source code order.

Implements CsNode.

virtual void CsLabel::build_entities CsDisplay &  display  )  [virtual]
 

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

Implements CsNode.

virtual void CsLabel::clearEntities  )  [inline, virtual]
 

Clear all entity references (for internal purpose only).

Implements CsNode.

virtual void CsLabel::member_lookup CsDisplay &  display  )  [virtual]
 

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

Implements CsNode.

virtual void CsLabel::type_lookup CsDisplay &  display  )  [virtual]
 

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

Implements CsNode.


Member Data Documentation

CsTokenIndex CsLabel::colon_token
 

PHashString CsLabel::identifier
 

Label name.

CsTokenIndex CsLabel::identifier_token
 

© 2005 metaspec