CsEventDeclarator Struct Reference

Event declarator AST node. More...

Inheritance diagram for CsEventDeclarator:

CsNode List of all members.

Public Member Functions

 CsEventDeclarator ()
 CsEventDeclarator (LineInfo line_info)
 CsEventDeclarator (LineInfo line_info, WPHashString phs, CsTokenIndex identifier_token)
virtual ~CsEventDeclarator ()
virtual void build_entities (CsDisplay &display)
 Build Entities - pass 2 (for internal purpose only).
CsEntityMethodgenerate_event_accessor (const char *prefix, CsDisplay &display)
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

CS_GET_NODES CsCompoundIdentifier compound_identifier
 Event name.
CsEventAccessoradd
 Event add accessor.
CsEventAccessorremove
 Event remove accessor.
CsExpressionexpression
 Expression assigned to event variable.
CsEntityEvententity
 Event entity.
CsTokenIndex separator_token
CsTokenIndex assign_token
CsTokenIndex lcurly_token
CsTokenIndex rcurly_token

Detailed Description

Event declarator AST node.

EBNF grammar:

variable-declarator:
  identifier ( "=" variable-initializer )?

variable-initializer:
  expression
  array-initializer


Constructor & Destructor Documentation

CsEventDeclarator::CsEventDeclarator  )  [inline]
 

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

CsEventDeclarator::CsEventDeclarator LineInfo  line_info,
WPHashString  phs,
CsTokenIndex  identifier_token
[inline]
 

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


Member Function Documentation

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

Collect entities defined in this AST node.

Implements CsNode.

virtual void CsEventDeclarator::addEntityReferences CsEntityCollector tokenCollector  )  [virtual]
 

Collect entity references.

Implements CsNode.

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

Collect token indexes associated with this AST node.

Implements CsNode.

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

Recusively collect token indexes in source code order.

Implements CsNode.

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

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

Implements CsNode.

virtual void CsEventDeclarator::clearEntities  )  [virtual]
 

Clear all entity references (for internal purpose only).

Implements CsNode.

CsEntityMethod* CsEventDeclarator::generate_event_accessor const char *  prefix,
CsDisplay &  display
 

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

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

Implements CsNode.

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

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

Implements CsNode.


Member Data Documentation

CsEventAccessor* CsEventDeclarator::add
 

Event add accessor.

CsTokenIndex CsEventDeclarator::assign_token
 

CS_GET_NODES CsCompoundIdentifier CsEventDeclarator::compound_identifier
 

Event name.

CsEntityEvent* CsEventDeclarator::entity
 

Event entity.

CsExpression* CsEventDeclarator::expression
 

Expression assigned to event variable.

CsTokenIndex CsEventDeclarator::lcurly_token
 

CsTokenIndex CsEventDeclarator::rcurly_token
 

CsEventAccessor* CsEventDeclarator::remove
 

Event remove accessor.

CsTokenIndex CsEventDeclarator::separator_token
 

© 2005 metaspec