C# Class Mono.CSharp.TypeContainer

Inheritance: MemberCore
Afficher le fichier Open project: kumpera/mono Class Usage Examples

Méthodes publiques

Свойство Type Description
DynamicSitesCounter int
Kind MemberKind

Protected Properties

Свойство 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

Private Properties

Свойство Type Description
AddMemberToList void
CheckRecursiveDefinition System.TypeSpec
CreateTypeBuilder bool
DefineBaseTypes bool
GenerateDocComment void
GetNormalPartialBases TypeExpr[]
ITypeDefinition bool
LookupNestedTypeInHierarchy TypeSpec

Méthodes publiques

Méthode Description
AddBasesForPart ( DeclSpace part, List bases ) : void
AddCompilerGeneratedClass ( CompilerGeneratedClass c ) : void
AddConstant ( Mono.CSharp.Const constant ) : void
AddConstructor ( Constructor c ) : void
AddDelegate ( Delegate d ) : System.TypeSpec
AddEvent ( Event e ) : void
AddField ( FieldBase field ) : bool
AddIndexer ( Indexer i ) : void

Indexer has special handling in constrast to other AddXXX because the name can be driven by IndexerNameAttribute

AddMember ( MemberCore symbol ) : bool
AddMember ( MemberCore symbol, string name ) : bool
AddMethod ( MethodOrOperator method ) : void
AddOperator ( Operator op ) : void
AddPartial ( TypeContainer next_part ) : TypeContainer
AddProperty ( Property prop ) : void
AddTypeContainer ( TypeContainer tc ) : TypeContainer
ApplyAttributeBuilder ( Attribute a, MethodSpec ctor, byte cdata, Mono.CSharp.PredefinedAttributes pa ) : void
CheckMemberUsage ( List al, string member_type ) : void
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 constraints_list ) : void
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

Méthodes protégées

Méthode Description
AddMemberType ( TypeContainer ds ) : bool
AddPartial ( TypeContainer next_part, string name ) : TypeContainer
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

Private Methods

Méthode Description
AddMemberToList ( MemberCore mc, List alist, bool isexplicit ) : void
CheckRecursiveDefinition ( TypeContainer tc ) : System.TypeSpec
CreateTypeBuilder ( ) : bool
DefineBaseTypes ( ) : bool
GenerateDocComment ( DeclSpace ds ) : void
GetNormalPartialBases ( ) : TypeExpr[]
ITypeDefinition ( IAssemblyDefinition assembly ) : bool
LookupNestedTypeInHierarchy ( string name, int arity ) : TypeSpec

Method Details

AddBasesForPart() public méthode

public AddBasesForPart ( DeclSpace part, List bases ) : void
part DeclSpace
bases List
Résultat void

AddCompilerGeneratedClass() public méthode

public AddCompilerGeneratedClass ( CompilerGeneratedClass c ) : void
c CompilerGeneratedClass
Résultat void

AddConstant() public méthode

public AddConstant ( Mono.CSharp.Const constant ) : void
constant Mono.CSharp.Const
Résultat void

AddConstructor() public méthode

public AddConstructor ( Constructor c ) : void
c Constructor
Résultat void

AddDelegate() public méthode

public AddDelegate ( Delegate d ) : System.TypeSpec
d Delegate
Résultat System.TypeSpec

AddEvent() public méthode

public AddEvent ( Event e ) : void
e Event
Résultat void

AddField() public méthode

public AddField ( FieldBase field ) : bool
field FieldBase
Résultat bool

AddIndexer() public méthode

Indexer has special handling in constrast to other AddXXX because the name can be driven by IndexerNameAttribute
public AddIndexer ( Indexer i ) : void
i Indexer
Résultat void

AddMember() public méthode

public AddMember ( MemberCore symbol ) : bool
symbol MemberCore
Résultat bool

AddMember() public méthode

public AddMember ( MemberCore symbol, string name ) : bool
symbol MemberCore
name string
Résultat bool

AddMemberType() protected méthode

protected AddMemberType ( TypeContainer ds ) : bool
ds TypeContainer
Résultat bool

AddMethod() public méthode

public AddMethod ( MethodOrOperator method ) : void
method MethodOrOperator
Résultat void

AddOperator() public méthode

public AddOperator ( Operator op ) : void
op Operator
Résultat void

AddPartial() public méthode

public AddPartial ( TypeContainer next_part ) : TypeContainer
next_part TypeContainer
Résultat TypeContainer

AddPartial() protected méthode

protected AddPartial ( TypeContainer next_part, string name ) : TypeContainer
next_part TypeContainer
name string
Résultat TypeContainer

AddProperty() public méthode

public AddProperty ( Property prop ) : void
prop Property
Résultat void

AddTypeContainer() public méthode

public AddTypeContainer ( TypeContainer tc ) : TypeContainer
tc TypeContainer
Résultat TypeContainer

ApplyAttributeBuilder() public méthode

public ApplyAttributeBuilder ( Attribute a, MethodSpec ctor, byte cdata, Mono.CSharp.PredefinedAttributes pa ) : void
a Attribute
ctor MethodSpec
cdata byte
pa Mono.CSharp.PredefinedAttributes
Résultat void

CheckEqualsAndGetHashCode() protected méthode

protected CheckEqualsAndGetHashCode ( ) : void
Résultat void

CheckMemberUsage() public méthode

public CheckMemberUsage ( List al, string member_type ) : void
al List
member_type string
Résultat void

CheckPairedOperators() public méthode

public CheckPairedOperators ( ) : void
Résultat void

CloseType() public méthode

public CloseType ( ) : void
Résultat void

ComputeIndexerName() protected méthode

protected ComputeIndexerName ( ) : void
Résultat void

CreateHoistedBaseCallProxy() public méthode

public CreateHoistedBaseCallProxy ( ResolveContext rc, MethodSpec method ) : MethodSpec
rc ResolveContext
method MethodSpec
Résultat MethodSpec

CreateType() public méthode

public CreateType ( ) : bool
Résultat bool

Define() public final méthode

Populates our TypeBuilder with fields and methods
public final Define ( ) : bool
Résultat bool

DefineConstants() public méthode

public DefineConstants ( ) : void
Résultat void

DefineContainerMembers() protected méthode

protected DefineContainerMembers ( System mcal ) : void
mcal System
Résultat void

DefineNestedTypes() protected méthode

protected DefineNestedTypes ( ) : bool
Résultat bool

DefineType() public méthode

public DefineType ( ) : void
Résultat void

DoDefineMembers() protected méthode

protected DoDefineMembers ( ) : bool
Résultat bool

DoResolveFieldInitializers() public méthode

public DoResolveFieldInitializers ( BlockContext ec ) : void
ec BlockContext
Résultat void

DoResolveTypeParameters() protected méthode

protected DoResolveTypeParameters ( ) : bool
Résultat bool

Emit() public méthode

public Emit ( ) : void
Résultat void

EmitConstructors() public méthode

public EmitConstructors ( ) : void
Résultat void

EmitIndexerName() public méthode

public EmitIndexerName ( ) : void
Résultat void

EmitType() public méthode

Emits the code, this step is performed after all the types, enumerations, constructors
public EmitType ( ) : void
Résultat void

GetAttributeCoClass() public méthode

public GetAttributeCoClass ( ) : TypeSpec
Résultat TypeSpec

GetAttributeDefaultMember() public méthode

public GetAttributeDefaultMember ( ) : string
Résultat string

GetAttributeUsage() public méthode

public GetAttributeUsage ( PredefinedAttribute pa ) : AttributeUsageAttribute
pa PredefinedAttribute
Résultat AttributeUsageAttribute

IsBaseTypeDefinition() public méthode

public IsBaseTypeDefinition ( TypeSpec baseType ) : bool
baseType TypeSpec
Résultat bool

LoadMembers() public méthode

public LoadMembers ( TypeSpec declaringType, bool onlyTypes, MemberCache &cache ) : void
declaringType TypeSpec
onlyTypes bool
cache MemberCache
Résultat void

LookupNamespaceOrType() public méthode

public LookupNamespaceOrType ( string name, int arity, Location loc, bool ignore_cs0104 ) : FullNamedExpression
name string
arity int
loc Location
ignore_cs0104 bool
Résultat FullNamedExpression

Mark_HasEquals() public méthode

public Mark_HasEquals ( ) : void
Résultat void

Mark_HasGetHashCode() public méthode

public Mark_HasGetHashCode ( ) : void
Résultat void

MethodModifiersValid() public méthode

public MethodModifiersValid ( MemberCore mc ) : bool
mc MemberCore
Résultat bool

RegisterFieldForInitialization() public méthode

public RegisterFieldForInitialization ( MemberCore field, FieldInitializer expression ) : void
field MemberCore
expression FieldInitializer
Résultat void

RemoveMemberType() protected méthode

protected RemoveMemberType ( DeclSpace ds ) : void
ds DeclSpace
Résultat void

RemoveTypeContainer() public méthode

public RemoveTypeContainer ( TypeContainer next_part ) : void
next_part TypeContainer
Résultat void

ResolveBaseTypes() protected méthode

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'.
protected ResolveBaseTypes ( TypeExpr &base_class ) : TypeExpr[]
base_class TypeExpr
Résultat TypeExpr[]

ResolveFieldInitializers() public méthode

public ResolveFieldInitializers ( BlockContext ec ) : void
ec BlockContext
Résultat void

ResolveTypeParameters() public méthode

public ResolveTypeParameters ( ) : bool
Résultat bool

SetParameterInfo() public méthode

public SetParameterInfo ( List constraints_list ) : void
constraints_list List
Résultat void

SetPredefinedSpec() public méthode

public SetPredefinedSpec ( BuildinTypeSpec spec ) : void
spec BuildinTypeSpec
Résultat void

TypeContainer() public méthode

public TypeContainer ( NamespaceEntry ns, DeclSpace parent, MemberName name, Attributes attrs, MemberKind kind ) : System
ns NamespaceEntry
parent DeclSpace
name MemberName
attrs Attributes
kind MemberKind
Résultat System

UpdateTypeParameterConstraints() public méthode

public UpdateTypeParameterConstraints ( TypeContainer part ) : void
part TypeContainer
Résultat void

VerifyClsCompliance() protected méthode

protected VerifyClsCompliance ( ) : bool
Résultat bool

VerifyImplements() public méthode

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.
public VerifyImplements ( InterfaceMemberBase mb ) : bool
mb InterfaceMemberBase
Résultat bool

VerifyMembers() public méthode

public VerifyMembers ( ) : void
Résultat void

Property Details

DynamicSitesCounter public_oe property

public int DynamicSitesCounter
Résultat int

Kind public_oe property

public MemberKind Kind
Résultat MemberKind

base_type protected_oe property

protected TypeSpec base_type
Résultat TypeSpec

base_type_expr protected_oe property

protected TypeExpr base_type_expr
Résultat TypeExpr

compiler_generated protected_oe property

protected List compiler_generated
Résultat List

constants protected_oe property

protected List constants
Résultat List

default_constructor protected_oe property

protected Constructor default_constructor
Résultat Constructor

default_static_constructor protected_oe property

protected Constructor default_static_constructor
Résultat Constructor

events protected_oe property

protected List events
Résultat List

fields protected_oe property

protected List fields
Résultat List

iface_exprs protected_oe property

protected TypeExpr[] iface_exprs
Résultat TypeExpr[]

initialized_fields protected_oe property

protected List initialized_fields
Résultat List

initialized_static_fields protected_oe property

protected List initialized_static_fields
Résultat List

instance_constructors protected_oe property

protected List instance_constructors
Résultat List

requires_delayed_unmanagedtype_check protected_oe property

protected bool requires_delayed_unmanagedtype_check
Résultat bool

spec protected_oe property

protected TypeSpec spec
Résultat TypeSpec

type_bases protected_oe property

protected List type_bases
Résultat List

types protected_oe property

protected List types
Résultat List