C# Класс 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.
Наследование: MemberCore
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Basename string
NamespaceEntry NamespaceEntry
PartialContainer TypeContainer
TypeBuilder TypeBuilder

Защищенные свойства (Protected)

Свойство Тип Описание
defined_names MemberCore>.Dictionary
is_generic bool
type_params TypeParameter[]

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
initialize_type_params ( ) : TypeParameter[]

Описание методов

AddToContainer() защищенный Метод

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
Результат bool

DeclSpace() публичный Метод

public DeclSpace ( NamespaceEntry ns, DeclSpace parent, MemberName name, Mono.CSharp.Attributes attrs ) : System
ns NamespaceEntry
parent DeclSpace
name MemberName
attrs Mono.CSharp.Attributes
Результат System

DefineType() публичный абстрактный Метод

Should be overriten by the appropriate declaration space
public abstract DefineType ( ) : void
Результат void

Error_MissingPartialModifier() защищенный Метод

protected Error_MissingPartialModifier ( MemberCore type ) : void
type MemberCore
Результат void

GetDefinition() публичный Метод

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
Результат MemberCore

GetSignatureForError() публичный Метод

public GetSignatureForError ( ) : string
Результат string

IsUnmanagedType() публичный Метод

public IsUnmanagedType ( ) : bool
Результат bool

RemoveFromContainer() защищенный Метод

protected RemoveFromContainer ( string name ) : void
name string
Результат void

SetParameterInfo() публичный Метод

public SetParameterInfo ( List constraints_list ) : void
constraints_list List
Результат void

VerifyClsCompliance() защищенный Метод

protected VerifyClsCompliance ( ) : bool
Результат bool

Описание свойств

Basename публичное свойство

public string Basename
Результат string

NamespaceEntry публичное свойство

public NamespaceEntry NamespaceEntry
Результат NamespaceEntry

PartialContainer публичное свойство

public TypeContainer PartialContainer
Результат TypeContainer

TypeBuilder публичное свойство

This points to the actual definition that is being created with System.Reflection.Emit
public TypeBuilder TypeBuilder
Результат TypeBuilder

defined_names защищенное свойство

protected Dictionary defined_names
Результат MemberCore>.Dictionary

is_generic защищенное свойство

protected bool is_generic
Результат bool

type_params защищенное свойство

protected TypeParameter[] type_params
Результат TypeParameter[]