CsProperty Struct Reference

Property AST node. More...

Inheritance diagram for CsProperty:

CsNode CsAttributesModifiers List of all members.

Public Member Functions

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

CS_GET_NODES CsTypeReftype
 Property type.
CsCompoundIdentifier compound_identifier
 Property compound name.
CsPropertyAccessorget
 Get Accessor.
CsPropertyAccessorset
 Set Accessor.
CsEntityPropertyentity
 Property entity.
CsTokenIndex lcurly_token
CsTokenIndex rcurly_token
CsTokenIndex semicolon_token

Detailed Description

Property AST node.

EBNF grammar:

property-declaration:
  (attributes)? (property-modifiers)? type member-name "{" accessor-declarations "}"

accessor-declarations:
  get-accessor-declaration (set-accessor-declaration)?
  set-accessor-declaration (get-accessor-declaration)?


Constructor & Destructor Documentation

CsProperty::CsProperty  )  [inline]
 

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

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


Member Function Documentation

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

Collect entities defined in this AST node.

Implements CsNode.

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

Collect entity references.

Implements CsNode.

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

Collect token indexes associated with this AST node.

Implements CsNode.

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

Recusively collect token indexes in source code order.

Implements CsNode.

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

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

Implements CsNode.

virtual void CsProperty::clearEntities  )  [virtual]
 

Clear all entity references (for internal purpose only).

Implements CsNode.

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

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

Implements CsNode.

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

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

Implements CsNode.


Member Data Documentation

CsCompoundIdentifier CsProperty::compound_identifier
 

Property compound name.

CsEntityProperty* CsProperty::entity
 

Property entity.

CsPropertyAccessor* CsProperty::get
 

Get Accessor.

CsTokenIndex CsProperty::lcurly_token
 

CsTokenIndex CsProperty::rcurly_token
 

CsTokenIndex CsProperty::semicolon_token
 

CsPropertyAccessor* CsProperty::set
 

Set Accessor.

CS_GET_NODES CsTypeRef* CsProperty::type
 

Property type.

Reimplemented from CsNode.

© 2005 metaspec