CrefTypeRef Struct Reference

Type cref node. More...

Inheritance diagram for CrefTypeRef:
CrefNode

List of all members.

Public Member Functions

 CrefTypeRef ()
 Constructor.
virtual ~CrefTypeRef ()
virtual void visit (ICrefVisitor *visitor)
 Visit method. All nodes visited once in deep-first order.
virtual void callback (ICrefCallback *visitor)
 Callback method.

Public Attributes

CsTokenType predefined_type
 Predefined type. tkEOF if not a predefined type.
bool nullable
 True if type is nullable.
CrefNamespaceOrTypeNameBasetype_name
 Type name.
value_single_list
< CrefTypeSpecifier > * 
specifiers
 Type specifiers.
CsEntityTypeRefentity_typeref
 Resolved entity typeref.

Detailed Description

Type cref node.

EBNF grammar:

cref-type:
  cref-namespace-or-type-name
  "bool"
  "byte"
  "char"
  "decimal"
  "double"
  "float"
  "int"
  "long"
  "object"
  "sbyte"
  "string"
  "short"
  "uint"
  "ulong"
  "ushort"
  cref-non-array-type cref-rank-specifiers
  cref-pointer-type

cref-pointer-type:
  cref-unmanaged-type "*"
  void "*"

cref-unmanaged-type:
  cref-type

cref-rank-specifiers:
  ( cref-rank-specifier )+

cref-rank-specifier:
  "[" ( "," )* "]"


Constructor & Destructor Documentation

CrefTypeRef::CrefTypeRef (  )  [inline]

Constructor.

virtual CrefTypeRef::~CrefTypeRef (  )  [virtual]

Member Function Documentation

virtual void CrefTypeRef::callback ( ICrefCallback visitor  )  [virtual]

Callback method.

Parameters:
visitor Callback interface

Implements CrefNode.

virtual void CrefTypeRef::visit ( ICrefVisitor visitor  )  [virtual]

Visit method. All nodes visited once in deep-first order.

Parameters:
visitor Visitor

Implements CrefNode.


Member Data Documentation

Resolved entity typeref.

True if type is nullable.

Predefined type. tkEOF if not a predefined type.

Type specifiers.

© 2010 metaspec