CsGotoStatement Struct Reference

Goto statement AST node. More...

Inheritance diagram for CsGotoStatement:

CsStatement CsNode List of all members.

Public Member Functions

 CsGotoStatement ()
 CsGotoStatement (LineInfo line_info)
virtual ~CsGotoStatement ()
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

CsTokenType label_type
 Goto label type (one of: tkIDENTIFIER, tkCASE, tkDEFAULT).
PHashString label
 Label name.
CsExpressioncase_expression
 Case expression.
CsNodegoto_target
 Goto target node.
CsTokenIndex goto_token
CsTokenIndex label_token
CsTokenIndex default_case_token
CsTokenIndex semicolon_token

Detailed Description

Goto statement AST node.

EBNF grammar:

goto-statement:
  "goto" identifier ";"
  "goto" "case" constant-expression ";"
  "goto" "default" ";"


Constructor & Destructor Documentation

CsGotoStatement::CsGotoStatement  )  [inline]
 

CsGotoStatement::CsGotoStatement LineInfo  line_info  )  [inline, explicit]
 

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


Member Function Documentation

virtual void CsGotoStatement::addEntityDefinitions CsEntityCollector tokenCollector  )  [inline, virtual]
 

Collect entities defined in this AST node.

Implements CsNode.

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

Collect entity references.

Implements CsNode.

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

Collect token indexes associated with this AST node.

Implements CsNode.

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

Recusively collect token indexes in source code order.

Implements CsNode.

virtual void CsGotoStatement::build_entities CsDisplay &  display  )  [inline, virtual]
 

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

Implements CsNode.

virtual void CsGotoStatement::clearEntities  )  [virtual]
 

Clear all entity references (for internal purpose only).

Implements CsNode.

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

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

Implements CsNode.

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

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

Implements CsNode.


Member Data Documentation

CsExpression* CsGotoStatement::case_expression
 

Case expression.

CsTokenIndex CsGotoStatement::default_case_token
 

CsNode* CsGotoStatement::goto_target
 

Goto target node.

CsTokenIndex CsGotoStatement::goto_token
 

PHashString CsGotoStatement::label
 

Label name.

CsTokenIndex CsGotoStatement::label_token
 

CsTokenType CsGotoStatement::label_type
 

Goto label type (one of: tkIDENTIFIER, tkCASE, tkDEFAULT).

CsTokenIndex CsGotoStatement::semicolon_token
 

© 2005 metaspec