CsParserTypes.h File Reference


Defines

#define DEFINE_AST_ALLOCATOR(Type)
#define INVARIANT()
#define DELETE_FROM_CONTAINER(cont_type, cont)

Enumerations

enum  cs_node {
  n_null, n_using_alias_directive, n_using_namespace_directive, n_simple_name,
  n_literal, n_embedded_type_member_access, n_this_access, n_base_member_access,
  n_base_indexer_access, n_typeof_expression, n_checked_expression, n_unchecked_expression,
  n_sizeof_expression, n_parenthesized_expression, n_new_object_expression, n_new_array_expression,
  n_invocation_expression, n_element_access, n_member_access, n_pointer_member_access,
  n_post_increment_decrement_expression, n_binary_expression, n_as_is_expression, n_conditional_expression,
  n_operator_unary_expression, n_pre_increment_decrement_expression, n_cast_unary_expression, n_assignment_expression,
  n_expression_list, n_makeref, n_reftype, n_refvalue,
  n_arglist, n_attribute_named_argument, n_attribute, n_attribute_section,
  n_attributes, n_type_ref, n_type_base, n_argument_list,
  n_class, n_struct, n_interface, n_enum_member,
  n_enum, n_formal_parameter, n_formal_parameter_list, n_delegate,
  n_namespace, n_argument, n_label, n_labeled_statement,
  n_empty_statement, n_expression_statement, n_declaration_statement, n_local_constant_declarator,
  n_local_constant_declaration, n_if_statement, n_switch_label, n_switch_section,
  n_switch_statement, n_while_statement, n_do_while_statement, n_local_variable_declarator,
  n_local_variable_declaration, n_statement_expression_list, n_for_statement, n_foreach_statement,
  n_break_statement, n_continue_statement, n_goto_statement, n_return_statement,
  n_throw_statement, n_catch_clause, n_try_statement, n_checked_statement,
  n_unchecked_statement, n_lock_statement, n_using_statement, n_unsafe_statement,
  n_fixed_point_declarator, n_fixed_statement, n_stack_alloc_expression, n_block,
  n_constructor_declaration, n_constant_declarator, n_constant_declaration, n_variable_declarator,
  n_variable_declaration, n_array_initializer, n_method_declaration, n_property_accessor,
  n_property_declaration, n_event_declaration, n_event_declarator, n_event_accessor,
  n_indexer_declaration, n_operator_declaration, n_conversion_operator_declaration, n_destructor_declaration,
  n_compilation_unit, n_end
}
 AST node enumaration type. More...
enum  expression_classification {
  ec_unknown, ec_value, ec_variable, ec_namespace,
  ec_type, ec_method_group, ec_property_access, ec_indexer_access,
  ec_event_access, ec_nothing
}
 Expression classification. More...
enum  TypeSpecifierEnum { tsArrayPostfix, tsPointer }
 Type specifier enumeration. More...
enum  AttributeSpecifierEnum {
  asNONE = 0x0000, asASSEMBLY = 0x0001, asEVENT = 0x0002, asFIELD = 0x0003,
  asMETHOD = 0x0004, asPARAM = 0x0005, asPROPERTY = 0x0006, asRETURN = 0x0007,
  asTYPE = 0x0008
}
 Attribute specifier enumeration. More...
enum  CsModifierEnum {
  mINTERNAL = 0x0001, mPRIVATE = 0x0002, mPROTECTED = 0x0004, mPUBLIC = 0x0008,
  m_non_access_modifiers_mask = 0x3ff0, mABSTRACT = 0x0010, mEXTERN = 0x0020, mNEW = 0x0040,
  mOVERRIDE = 0x0080, mREADONLY = 0x0100, mSEALED = 0x0200, mSTATIC = 0x0400,
  mVIRTUAL = 0x0800, mVOLATILE = 0x1000, mUNSAFE = 0x2000
}
 Modifier enumeration type. More...

Define Documentation

#define DEFINE_AST_ALLOCATOR Type   ) 
 

Value:

inline void * Type::operator new ( size_t size )\
{\
        return FixedSmallObjAllocator < ALIGN_TO_2_POW_N_OR_64 ( sizeof ( Type ) ), AstAllocatorId, OwnPageAllocator >::allocate();\
}\
\
inline void Type::operator delete ( void * address )\
{\
        FixedSmallObjAllocator < ALIGN_TO_2_POW_N_OR_64 ( sizeof ( Type ) ), AstAllocatorId, OwnPageAllocator >::deallocate ( address );\
}\

#define DELETE_FROM_CONTAINER cont_type,
cont   ) 
 

Value:

{\
        for ( cont_type::iterator it = cont.begin(); it != cont.end(); ++it )\
                delete *it;\
}\

 
#define INVARIANT  ) 
 


Enumeration Type Documentation

enum AttributeSpecifierEnum
 

Attribute specifier enumeration.

Enumeration values:
asNONE  No attribute specifier.
asASSEMBLY  assembly: attribute specifier.
asEVENT  event: attribute specifier.
asFIELD  field: attribute specifier.
asMETHOD  method: attribute specifier.
asPARAM  param: attribute specifier.
asPROPERTY  property: attribute specifier.
asRETURN  return: attribute specifier.
asTYPE  type: attribute specifier.

enum cs_node
 

AST node enumaration type.

Enumeration values:
n_null 
n_using_alias_directive  CsUsingAliasDirective.
n_using_namespace_directive  CsUsingNamespaceDirective.
n_simple_name  CsSimpleName.
n_literal  CsLiteral.
n_embedded_type_member_access  CsEmbeddedTypeMemberAccess.
n_this_access  CsThisAccess.
n_base_member_access  CsBaseMemberAccess.
n_base_indexer_access  CsBaseIndexerAccess.
n_typeof_expression  CsTypeofExpression.
n_checked_expression  CsCheckedExpression.
n_unchecked_expression  CsUncheckedExpression.
n_sizeof_expression  CsSizeofExpression.
n_parenthesized_expression  CsParenthesizedExpression.
n_new_object_expression  CsNewObjectExpression.
n_new_array_expression  CsNewArrayExpression.
n_invocation_expression  CsInvocationExpression.
n_element_access  CsElementAccess.
n_member_access  CsMemberAccess.
n_pointer_member_access  CsPointerMemberAccess.
n_post_increment_decrement_expression  CsPostIncrementDecrementExpression.
n_binary_expression  CsBinaryExpression.
n_as_is_expression  CsAsIsExpression.
n_conditional_expression  CsConditionalExpression.
n_operator_unary_expression  CsOperatorUnaryExpression.
n_pre_increment_decrement_expression  CsPreIncrementDecrementExpression.
n_cast_unary_expression  CsCastUnaryExpression.
n_assignment_expression  CsAssignmentExpression.
n_expression_list  CsExpressionList.
n_makeref  CsMakeRefExpression.
n_reftype  CsRefTypeExpression.
n_refvalue  CsRefValueExpression.
n_arglist  CsArgListExpression.
n_attribute_named_argument  CsNamedArgument.
n_attribute  CsAttribute.
n_attribute_section  CsAttributeSection.
n_attributes  CsAttributes.
n_type_ref  CsTypeRef.
n_type_base  CsTypeBase.
n_argument_list  CsArgumentList.
n_class  CsClass.
n_struct  CsStruct.
n_interface  CsInterface.
n_enum_member  CsEnumMember.
n_enum  CsEnum.
n_formal_parameter  CsFormalParameter.
n_formal_parameter_list  CsFormalParameterList.
n_delegate  CsDelegate.
n_namespace  CsNamespace.
n_argument  CsArgument.
n_label  CsLabel.
n_labeled_statement  CsLabeledStatement.
n_empty_statement  CsEmptyStatement.
n_expression_statement  CsExpressionStatement.
n_declaration_statement  CsDeclarationStatement.
n_local_constant_declarator  CsLocalConstantDeclarator.
n_local_constant_declaration  CsLocalConstantDeclaration.
n_if_statement  CsIfStatement.
n_switch_label  CsSwitchLabel.
n_switch_section  CsSwitchSection.
n_switch_statement  CsSwitchStatement.
n_while_statement  CsWhileStatement.
n_do_while_statement  CsDoWhileStatement.
n_local_variable_declarator  CsLocalVariableDeclarator.
n_local_variable_declaration  CsLocalVariableDeclaration.
n_statement_expression_list  CsStatementExpressionList.
n_for_statement  CsForStatement.
n_foreach_statement  CsForeachStatement.
n_break_statement  CsBreakStatement.
n_continue_statement  CsContinueStatement.
n_goto_statement  CsGotoStatement.
n_return_statement  CsReturnStatement.
n_throw_statement  CsThrowStatement.
n_catch_clause  CsCatchClause.
n_try_statement  CsTryStatement.
n_checked_statement  CsCheckedStatement.
n_unchecked_statement  CsUncheckedStatement.
n_lock_statement  CsLockStatement.
n_using_statement  CsUsingStatement.
n_unsafe_statement  CsUnsafeStatement.
n_fixed_point_declarator  CsFixedPointDeclarator.
n_fixed_statement  CsFixedStatement.
n_stack_alloc_expression  CsStackAllocExpression.
n_block  CsBlock.
n_constructor_declaration  CsConstructorDeclaration.
n_constant_declarator  CsConstantDeclarator.
n_constant_declaration  CsConstantDeclaration.
n_variable_declarator  CsVariableDeclarator.
n_variable_declaration  CsVariableDeclaration.
n_array_initializer  CsArrayInitializer.
n_method_declaration  CsMethod.
n_property_accessor  CsPropertyAccessor.
n_property_declaration  CsProperty.
n_event_declaration  CsEvent.
n_event_declarator  CsEventDeclarator.
n_event_accessor  CsEventAccessor.
n_indexer_declaration  CsIndexer.
n_operator_declaration  CsOperator.
n_conversion_operator_declaration  CsConversionOperatorDeclaration.
n_destructor_declaration  CsDestructorDeclaration.
n_compilation_unit  CsCompilationUnit.
n_end 

enum CsModifierEnum
 

Modifier enumeration type.

Enumeration values:
mINTERNAL  internal
mPRIVATE  private
mPROTECTED  protected
mPUBLIC  public
m_non_access_modifiers_mask 
mABSTRACT  abstract
mEXTERN  extern
mNEW  new
mOVERRIDE  override
mREADONLY  readonly
mSEALED  sealed
mSTATIC  static
mVIRTUAL  virtual
mVOLATILE  volatile
mUNSAFE  unsafe

enum expression_classification
 

Expression classification.

[ECMA-334, 14.1]

Enumeration values:
ec_unknown  Not evaluated.
ec_value  A value.
ec_variable  A variable.
ec_namespace  A namespace.
ec_type  A type.
ec_method_group  A method group.
ec_property_access  A property access.
ec_indexer_access  An indexer access.
ec_event_access  An event access.
ec_nothing  Nothing.

enum TypeSpecifierEnum
 

Type specifier enumeration.

Enumeration values:
tsArrayPostfix  Array postfix specifier (Example: array[][]).
tsPointer  Pointer specifier (Example: char**).

© 2005 metaspec