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 clearEntities ()
 Clear all entity references (for internal purpose only).
virtual void addTokensRecursive (CsTokenCollector &tokenCollector)
 Recursively 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 visit (CsAstVisitor *visitor)
 CsAstVisitor support.
virtual void callback (CsAstCallback *visitor)
 CsAstCallback support.

Public Attributes

CsTokenType label_type
 Goto label type (one of: tkIDENTIFIER, tkCASE, tkDEFAULT).
CsIdentifier label
 Label name.
CsExpressioncase_expression
 Case expression.
CsNodegoto_target
 Goto target node.
CsTokenIndex goto_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]

Recursively 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).

Reimplemented from CsStatement.

virtual void CsGotoStatement::callback ( CsAstCallback visitor  )  [inline, virtual]

CsAstCallback support.

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).

Reimplemented from CsStatement.

virtual void CsGotoStatement::visit ( CsAstVisitor visitor  )  [inline, virtual]

CsAstVisitor support.

Implements CsNode.


Member Data Documentation

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

© 2010 metaspec