CsDelegate Struct Reference

Delegate AST node. More...

Inheritance diagram for CsDelegate:

CsScopeNode CsAttributesModifiers CsNode List of all members.

Public Member Functions

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

CsTypeReftype
 Delegate Type.
PHashString name
 Delegate Name.
CsFormalParameterListparameters
 Delegate parameters.
CsEntityMethodctor_method
 Constructor method entity.
CsEntityMethodinvoke_method
 Invoke method entity.
CsEntityMethodbeginInvoke_method
 BeginInvoke method entity.
CsEntityMethodendInvoke_method
 EndInvoke method entity.
CsTokenIndex delegate_token
CsTokenIndex identifier_token
CsTokenIndex lparen_token
CsTokenIndex rparen_token
CsTokenIndex semicolon_token

Detailed Description

Delegate AST node.

EBNF grammar:

delegate-declaration:
  (attributes)? (delegate-modifiers)? "delegate" type identifier "(" (formal-parameter-list)? ")" ";"

delegate-modifiers:
  (delegate-modifier)+

delegate-modifier:
  "new"
  "public"
  "protected"
  "internal"
  "private"


Constructor & Destructor Documentation

CsDelegate::CsDelegate  )  [inline]
 

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

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


Member Function Documentation

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

Collect entities defined in this AST node.

Implements CsNode.

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

Collect entity references.

Implements CsNode.

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

Collect token indexes associated with this AST node.

Implements CsNode.

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

Recusively collect token indexes in source code order.

Implements CsNode.

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

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

Implements CsNode.

virtual void CsDelegate::clearEntities  )  [virtual]
 

Clear all entity references (for internal purpose only).

Reimplemented from CsScopeNode.

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

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

Implements CsNode.

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

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

Implements CsNode.


Member Data Documentation

CsEntityMethod* CsDelegate::beginInvoke_method
 

BeginInvoke method entity.

CsEntityMethod* CsDelegate::ctor_method
 

Constructor method entity.

CsTokenIndex CsDelegate::delegate_token
 

CsEntityMethod* CsDelegate::endInvoke_method
 

EndInvoke method entity.

CsTokenIndex CsDelegate::identifier_token
 

CsEntityMethod* CsDelegate::invoke_method
 

Invoke method entity.

CsTokenIndex CsDelegate::lparen_token
 

PHashString CsDelegate::name
 

Delegate Name.

CsFormalParameterList* CsDelegate::parameters
 

Delegate parameters.

CsTokenIndex CsDelegate::rparen_token
 

CsTokenIndex CsDelegate::semicolon_token
 

CsTypeRef* CsDelegate::type
 

Delegate Type.

Reimplemented from CsNode.

© 2005 metaspec