CsIndexer Struct Reference

Indexer AST node. More...

Inheritance diagram for CsIndexer:
CsNode

List of all members.

Public Member Functions

 CsIndexer ()
 CsIndexer (LineInfo line_info)
virtual ~CsIndexer ()
virtual void build_entities (CsDisplay &display)
 Build Entities - pass 2 (for internal purpose only).
PHashString get_last_name (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 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.
virtual cs_pass getNodePassType ()
 Returns node pass type.
virtual cs_entity_modification getEntityModification ()
 Returns entity modification.
virtual void iInternalRemoveEntities (cs_pass pass)

Public Attributes

CsAttributesattributes
 Attributes.
CsModifiers modifiers
 Modifiers.
CsTypeReftype
 Indexer type.
CsNodeinterface_type
 Interface type.
CsFormalParameterListparameters
 Indexer formal parameters.
CsPropertyAccessorget
 Indexer get accessor.
CsPropertyAccessorset
 Indexer set accessor.
CsEntityPropertyentity
 Indexer property entity.
CsTokenIndex dot_token
CsTokenIndex this_token
CsTokenIndex lbracket_token
CsTokenIndex rbracket_token
CsTokenIndex lcurly_token
CsTokenIndex rcurly_token
CsTokenIndex semicolon_token
DcDatadc
 Documentation comments.

Detailed Description

Indexer AST node.

EBNF grammar:

indexer-declaration:
  (attributes)? (indexer-modifiers)? indexer-declarator "{" accessor-declarations "}"

indexer-declarator:
  type "this" "[" formal-parameter-list "]"
  type interface-type "." "this" "[" formal-parameter-list "]"


Constructor & Destructor Documentation

CsIndexer::CsIndexer ( ) [inline]
CsIndexer::CsIndexer ( LineInfo  line_info) [inline, explicit]
virtual CsIndexer::~CsIndexer ( ) [inline, virtual]

Member Function Documentation

virtual void CsIndexer::addEntityDefinitions ( CsEntityCollector tokenCollector) [virtual]

Collect entities defined in this AST node.

Implements CsNode.

virtual void CsIndexer::addEntityReferences ( CsEntityCollector tokenCollector) [virtual]

Collect entity references.

Implements CsNode.

virtual void CsIndexer::addTokens ( CsTokenCollector tokenCollector) [virtual]

Collect token indexes associated with this AST node.

Implements CsNode.

virtual void CsIndexer::addTokensRecursive ( CsTokenCollector tokenCollector) [virtual]

Recursively collect token indexes in source code order.

Implements CsNode.

virtual void CsIndexer::build_entities ( CsDisplay &  display) [virtual]

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

Implements CsNode.

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

CsAstCallback support.

Implements CsNode.

virtual void CsIndexer::clearEntities ( ) [virtual]

Clear all entity references (for internal purpose only).

Implements CsNode.

PHashString CsIndexer::get_last_name ( CsDisplay &  display)
virtual cs_entity_modification CsIndexer::getEntityModification ( ) [inline, virtual]

Returns entity modification.

Implements CsNode.

virtual cs_pass CsIndexer::getNodePassType ( ) [inline, virtual]

Returns node pass type.

Implements CsNode.

virtual void CsIndexer::iInternalRemoveEntities ( cs_pass  pass) [inline, virtual]

Reimplemented from CsNode.

virtual void CsIndexer::member_lookup ( CsDisplay &  display) [virtual]

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

Implements CsNode.

virtual void CsIndexer::type_lookup ( CsDisplay &  display) [virtual]

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

Implements CsNode.

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

CsAstVisitor support.

Implements CsNode.


Member Data Documentation

Documentation comments.

CsTokenIndex CsIndexer::dot_token

Indexer property entity.

Indexer get accessor.

Indexer formal parameters.

Indexer set accessor.

CsTokenIndex CsIndexer::this_token

Indexer type.

© 2010 metaspec