Property | Type | Description | |
---|---|---|---|
DynamicSitesCounter | int | ||
Kind | MemberKind |
Property | Type | Description | |
---|---|---|---|
base_type | TypeSpec | ||
base_type_expr | TypeExpr | ||
compiler_generated | List |
||
constants | List |
||
default_constructor | Constructor | ||
default_static_constructor | Constructor | ||
events | List |
||
fields | List |
||
iface_exprs | TypeExpr[] | ||
initialized_fields | List |
||
initialized_static_fields | List |
||
instance_constructors | List |
||
requires_delayed_unmanagedtype_check | bool | ||
spec | TypeSpec | ||
type_bases | List |
||
types | List |
Property | Type | Description | |
---|---|---|---|
AddMemberToList | void | ||
CheckRecursiveDefinition | System.TypeSpec | ||
CreateTypeBuilder | bool | ||
DefineBaseTypes | bool | ||
GenerateDocComment | void | ||
GetNormalPartialBases | TypeExpr[] | ||
ITypeDefinition | bool | ||
LookupNestedTypeInHierarchy | TypeSpec |
Method | Description | |
---|---|---|
AddBasesForPart ( |
||
AddCompilerGeneratedClass ( |
||
AddConstant ( Mono.CSharp.Const constant ) : void | ||
AddConstructor ( |
||
AddDelegate ( Delegate d ) : System.TypeSpec | ||
AddEvent ( |
||
AddField ( |
||
AddIndexer ( |
Indexer has special handling in constrast to other AddXXX because the name can be driven by IndexerNameAttribute
|
|
AddMember ( |
||
AddMember ( |
||
AddMethod ( |
||
AddOperator ( |
||
AddPartial ( |
||
AddProperty ( Property prop ) : void | ||
AddTypeContainer ( |
||
ApplyAttributeBuilder ( Attribute a, |
||
CheckMemberUsage ( List |
||
CheckPairedOperators ( ) : void | ||
CloseType ( ) : void | ||
CreateHoistedBaseCallProxy ( ResolveContext rc, MethodSpec method ) : MethodSpec | ||
CreateType ( ) : bool | ||
Define ( ) : bool |
Populates our TypeBuilder with fields and methods
|
|
DefineConstants ( ) : void | ||
DefineType ( ) : void | ||
DoResolveFieldInitializers ( BlockContext ec ) : void | ||
Emit ( ) : void | ||
EmitConstructors ( ) : void | ||
EmitIndexerName ( ) : void | ||
EmitType ( ) : void |
Emits the code, this step is performed after all the types, enumerations, constructors
|
|
GetAttributeCoClass ( ) : TypeSpec | ||
GetAttributeDefaultMember ( ) : string | ||
GetAttributeUsage ( PredefinedAttribute pa ) : AttributeUsageAttribute | ||
IsBaseTypeDefinition ( TypeSpec baseType ) : bool | ||
LoadMembers ( TypeSpec declaringType, bool onlyTypes, MemberCache &cache ) : void | ||
LookupNamespaceOrType ( string name, int arity, Location loc, bool ignore_cs0104 ) : FullNamedExpression | ||
Mark_HasEquals ( ) : void | ||
Mark_HasGetHashCode ( ) : void | ||
MethodModifiersValid ( MemberCore mc ) : bool | ||
RegisterFieldForInitialization ( MemberCore field, FieldInitializer expression ) : void | ||
RemoveTypeContainer ( TypeContainer next_part ) : void | ||
ResolveFieldInitializers ( BlockContext ec ) : void | ||
ResolveTypeParameters ( ) : bool | ||
SetParameterInfo ( List |
||
SetPredefinedSpec ( BuildinTypeSpec spec ) : void | ||
TypeContainer ( NamespaceEntry ns, DeclSpace parent, MemberName name, Attributes attrs, MemberKind kind ) : System | ||
UpdateTypeParameterConstraints ( TypeContainer part ) : void | ||
VerifyImplements ( InterfaceMemberBase mb ) : bool |
Performs checks for an explicit interface implementation. First it checks whether the `interface_type' is a base inteface implementation. Then it checks whether `name' exists in the interface type.
|
|
VerifyMembers ( ) : void |
Method | Description | |
---|---|---|
AddMemberType ( |
||
AddPartial ( |
||
CheckEqualsAndGetHashCode ( ) : void | ||
ComputeIndexerName ( ) : void | ||
DefineContainerMembers ( System mcal ) : void | ||
DefineNestedTypes ( ) : bool | ||
DoDefineMembers ( ) : bool | ||
DoResolveTypeParameters ( ) : bool | ||
RemoveMemberType ( DeclSpace ds ) : void | ||
ResolveBaseTypes ( TypeExpr &base_class ) : TypeExpr[] |
This function computes the Base class and also the list of interfaces that the class or struct @c implements. The return value is an array (might be null) of interfaces implemented (as Types). The @base_class argument is set to the base object or null if this is `System.Object'.
|
|
VerifyClsCompliance ( ) : bool |
Method | Description | |
---|---|---|
AddMemberToList ( |
||
CheckRecursiveDefinition ( |
||
CreateTypeBuilder ( ) : bool | ||
DefineBaseTypes ( ) : bool | ||
GenerateDocComment ( DeclSpace ds ) : void | ||
GetNormalPartialBases ( ) : TypeExpr[] | ||
ITypeDefinition ( IAssemblyDefinition assembly ) : bool | ||
LookupNestedTypeInHierarchy ( string name, int arity ) : TypeSpec |
public AddBasesForPart ( |
||
part | ||
bases | List |
|
return | void |
public AddCompilerGeneratedClass ( |
||
c | ||
return | void |
public AddConstant ( Mono.CSharp.Const constant ) : void | ||
constant | Mono.CSharp.Const | |
return | void |
public AddConstructor ( |
||
c | ||
return | void |
public AddDelegate ( Delegate d ) : System.TypeSpec | ||
d | Delegate | |
return | System.TypeSpec |
public AddMember ( |
||
symbol | ||
return | bool |
public AddMember ( |
||
symbol | ||
name | string | |
return | bool |
protected AddMemberType ( |
||
ds | ||
return | bool |
public AddMethod ( |
||
method | ||
return | void |
public AddPartial ( |
||
next_part | ||
return |
protected AddPartial ( |
||
next_part | ||
name | string | |
return |
public AddTypeContainer ( |
||
tc | ||
return |
public ApplyAttributeBuilder ( Attribute a, |
||
a | Attribute | |
ctor | ||
cdata | byte | |
pa | Mono.CSharp.PredefinedAttributes | |
return | void |
protected CheckEqualsAndGetHashCode ( ) : void | ||
return | void |
public CheckMemberUsage ( List |
||
al | List |
|
member_type | string | |
return | void |
public CreateHoistedBaseCallProxy ( ResolveContext rc, MethodSpec method ) : MethodSpec | ||
rc | ResolveContext | |
method | MethodSpec | |
return | MethodSpec |
protected DefineContainerMembers ( System mcal ) : void | ||
mcal | System | |
return | void |
public DoResolveFieldInitializers ( BlockContext ec ) : void | ||
ec | BlockContext | |
return | void |
public GetAttributeDefaultMember ( ) : string | ||
return | string |
public GetAttributeUsage ( PredefinedAttribute pa ) : AttributeUsageAttribute | ||
pa | PredefinedAttribute | |
return | AttributeUsageAttribute |
public IsBaseTypeDefinition ( TypeSpec baseType ) : bool | ||
baseType | TypeSpec | |
return | bool |
public LoadMembers ( TypeSpec declaringType, bool onlyTypes, MemberCache &cache ) : void | ||
declaringType | TypeSpec | |
onlyTypes | bool | |
cache | MemberCache | |
return | void |
public LookupNamespaceOrType ( string name, int arity, Location loc, bool ignore_cs0104 ) : FullNamedExpression | ||
name | string | |
arity | int | |
loc | Location | |
ignore_cs0104 | bool | |
return | FullNamedExpression |
public MethodModifiersValid ( MemberCore mc ) : bool | ||
mc | MemberCore | |
return | bool |
public RegisterFieldForInitialization ( MemberCore field, FieldInitializer expression ) : void | ||
field | MemberCore | |
expression | FieldInitializer | |
return | void |
protected RemoveMemberType ( DeclSpace ds ) : void | ||
ds | DeclSpace | |
return | void |
public RemoveTypeContainer ( TypeContainer next_part ) : void | ||
next_part | TypeContainer | |
return | void |
protected ResolveBaseTypes ( TypeExpr &base_class ) : TypeExpr[] | ||
base_class | TypeExpr | |
return | TypeExpr[] |
public ResolveFieldInitializers ( BlockContext ec ) : void | ||
ec | BlockContext | |
return | void |
public SetParameterInfo ( List |
||
constraints_list | List |
|
return | void |
public SetPredefinedSpec ( BuildinTypeSpec spec ) : void | ||
spec | BuildinTypeSpec | |
return | void |
public TypeContainer ( NamespaceEntry ns, DeclSpace parent, MemberName name, Attributes attrs, MemberKind kind ) : System | ||
ns | NamespaceEntry | |
parent | DeclSpace | |
name | MemberName | |
attrs | Attributes | |
kind | MemberKind | |
return | System |
public UpdateTypeParameterConstraints ( TypeContainer part ) : void | ||
part | TypeContainer | |
return | void |
public VerifyImplements ( InterfaceMemberBase mb ) : bool | ||
mb | InterfaceMemberBase | |
return | bool |
protected Constructor default_constructor | ||
return | Constructor |
protected Constructor default_static_constructor | ||
return | Constructor |
protected List |
||
return | List |
protected bool requires_delayed_unmanagedtype_check | ||
return | bool |