CsDestructor Struct Reference

Destructor declaration AST node. More...

Inheritance diagram for CsDestructor:
CsNode

List of all members.

Public Member Functions

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

CsAttributesattributes
 Attributes.
CsModifiers modifiers
 Modifiers.
CsIdentifier identifier
 Class name.
CsBlockdefinition
 Destructor method definition.
CsEntityMethodentity
 Destructor method entity.
CsTokenIndex tilde_token
CsTokenIndex lparen_token
CsTokenIndex rparen_token
CsTokenIndex semicolon_token
DcDatadc
 Documentation comments.

Detailed Description

Destructor declaration AST node.

EBNF grammar:

destructor-declaration:
  (attributes)? ("extern")? "~" identifier "(" ")" destructor-body

destructor-body:
  block
  ";"


Constructor & Destructor Documentation

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

Member Function Documentation

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

Collect entities defined in this AST node.

Implements CsNode.

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

Collect entity references.

Implements CsNode.

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

Collect token indexes associated with this AST node.

Implements CsNode.

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

Recursively collect token indexes in source code order.

Implements CsNode.

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

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

Implements CsNode.

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

CsAstCallback support.

Implements CsNode.

virtual void CsDestructor::clearEntities (  )  [virtual]

Clear all entity references (for internal purpose only).

Implements CsNode.

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

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

Implements CsNode.

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

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

Implements CsNode.

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

CsAstVisitor support.

Implements CsNode.


Member Data Documentation

Documentation comments.

Destructor method definition.

Destructor method entity.

© 2010 metaspec