C# Class Mono.CSharp.DeclSpace

Base class for structs, classes, enumerations and interfaces.
They all create new declaration spaces. This provides the common foundation for managing those name spaces.
Inheritance: MemberCore
Afficher le fichier Open project: kumpera/mono Class Usage Examples

Méthodes publiques

Свойство Type Description
Basename string
NamespaceEntry NamespaceEntry
PartialContainer TypeContainer
TypeBuilder TypeBuilder

Protected Properties

Свойство Type Description
defined_names MemberCore>.Dictionary
is_generic bool
type_params TypeParameter[]

Méthodes publiques

Méthode Description
DeclSpace ( NamespaceEntry ns, DeclSpace parent, MemberName name, Mono.CSharp.Attributes attrs ) : System
DefineType ( ) : void Should be overriten by the appropriate declaration space
GetDefinition ( string name ) : MemberCore

Returns the MemberCore associated with a given name in the declaration space. It doesn't return method based symbols !!

GetSignatureForError ( ) : string
IsUnmanagedType ( ) : bool
SetParameterInfo ( List constraints_list ) : void

Méthodes protégées

Méthode Description
AddToContainer ( MemberCore symbol, string name ) : bool

Adds the member to defined_names table. It tests for duplications and enclosing name conflicts

Error_MissingPartialModifier ( MemberCore type ) : void
RemoveFromContainer ( string name ) : void
VerifyClsCompliance ( ) : bool

Private Methods

Méthode Description
initialize_type_params ( ) : TypeParameter[]

Method Details

AddToContainer() protected méthode

Adds the member to defined_names table. It tests for duplications and enclosing name conflicts
protected AddToContainer ( MemberCore symbol, string name ) : bool
symbol MemberCore
name string
Résultat bool

DeclSpace() public méthode

public DeclSpace ( NamespaceEntry ns, DeclSpace parent, MemberName name, Mono.CSharp.Attributes attrs ) : System
ns NamespaceEntry
parent DeclSpace
name MemberName
attrs Mono.CSharp.Attributes
Résultat System

DefineType() public abstract méthode

Should be overriten by the appropriate declaration space
public abstract DefineType ( ) : void
Résultat void

Error_MissingPartialModifier() protected méthode

protected Error_MissingPartialModifier ( MemberCore type ) : void
type MemberCore
Résultat void

GetDefinition() public méthode

Returns the MemberCore associated with a given name in the declaration space. It doesn't return method based symbols !!
public GetDefinition ( string name ) : MemberCore
name string
Résultat MemberCore

GetSignatureForError() public méthode

public GetSignatureForError ( ) : string
Résultat string

IsUnmanagedType() public méthode

public IsUnmanagedType ( ) : bool
Résultat bool

RemoveFromContainer() protected méthode

protected RemoveFromContainer ( string name ) : void
name string
Résultat void

SetParameterInfo() public méthode

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

VerifyClsCompliance() protected méthode

protected VerifyClsCompliance ( ) : bool
Résultat bool

Property Details

Basename public_oe property

public string Basename
Résultat string

NamespaceEntry public_oe property

public NamespaceEntry NamespaceEntry
Résultat NamespaceEntry

PartialContainer public_oe property

public TypeContainer PartialContainer
Résultat TypeContainer

TypeBuilder public_oe property

This points to the actual definition that is being created with System.Reflection.Emit
public TypeBuilder TypeBuilder
Résultat TypeBuilder

defined_names protected_oe property

protected Dictionary defined_names
Résultat MemberCore>.Dictionary

is_generic protected_oe property

protected bool is_generic
Résultat bool

type_params protected_oe property

protected TypeParameter[] type_params
Résultat TypeParameter[]