C# Класс Mono.CSharp.Namespace

Keeps track of the namespaces defined in the C# code. This is an Expression to allow it to be referenced in the compiler parse/intermediate tree during name resolution.
Наследование: Mono.CSharp.FullNamedExpression
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
MemberName MemberName

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

Свойство Тип Описание
namespaces Namespace>.Dictionary
types IList>.Dictionary

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

Метод Описание
AddType ( System.TypeSpec ts ) : void
CompletionGetTypesStartingWith ( string prefix ) : IEnumerable
Error_NamespaceDoesNotExist ( Mono.CSharp.Location loc, string name, int arity, IMemberContext ctx ) : void
GetNamespace ( string name, bool create ) : Namespace
GetSignatureForError ( ) : string
IsImportedTypeOverride ( System.TypeSpec ts, System.TypeSpec found ) : System.TypeSpec
Lookup ( CompilerContext ctx, string name, int arity, Mono.CSharp.Location loc ) : Mono.CSharp.FullNamedExpression
LookupExtensionMethod ( System.TypeSpec extensionType, TypeContainer invocationContext, string name, int arity ) : List
LookupType ( CompilerContext ctx, string name, int arity, bool silent, Mono.CSharp.Location loc ) : Mono.CSharp.TypeExpr
Namespace ( Namespace parent, string name ) : System

Constructor Takes the current namespace and the name. This is bootstrapped with parent == null and name = ""

RemoveDeclSpace ( string name ) : void
ReplaceTypeWithPredefined ( System.TypeSpec ts, BuildinTypeSpec pts ) : void
VerifyClsCompliance ( ) : void

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

Метод Описание
DoResolve ( ResolveContext ec ) : Mono.CSharp.Expression

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

Метод Описание
LookupType ( string name, int arity ) : System.TypeSpec

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

AddType() публичный метод

public AddType ( System.TypeSpec ts ) : void
ts System.TypeSpec
Результат void

CompletionGetTypesStartingWith() публичный метод

public CompletionGetTypesStartingWith ( string prefix ) : IEnumerable
prefix string
Результат IEnumerable

DoResolve() защищенный метод

protected DoResolve ( ResolveContext ec ) : Mono.CSharp.Expression
ec ResolveContext
Результат Mono.CSharp.Expression

Error_NamespaceDoesNotExist() публичный метод

public Error_NamespaceDoesNotExist ( Mono.CSharp.Location loc, string name, int arity, IMemberContext ctx ) : void
loc Mono.CSharp.Location
name string
arity int
ctx IMemberContext
Результат void

GetNamespace() публичный метод

public GetNamespace ( string name, bool create ) : Namespace
name string
create bool
Результат Namespace

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

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

IsImportedTypeOverride() публичный статический метод

public static IsImportedTypeOverride ( System.TypeSpec ts, System.TypeSpec found ) : System.TypeSpec
ts System.TypeSpec
found System.TypeSpec
Результат System.TypeSpec

Lookup() публичный метод

public Lookup ( CompilerContext ctx, string name, int arity, Mono.CSharp.Location loc ) : Mono.CSharp.FullNamedExpression
ctx CompilerContext
name string
arity int
loc Mono.CSharp.Location
Результат Mono.CSharp.FullNamedExpression

LookupExtensionMethod() публичный метод

public LookupExtensionMethod ( System.TypeSpec extensionType, TypeContainer invocationContext, string name, int arity ) : List
extensionType System.TypeSpec
invocationContext TypeContainer
name string
arity int
Результат List

LookupType() публичный метод

public LookupType ( CompilerContext ctx, string name, int arity, bool silent, Mono.CSharp.Location loc ) : Mono.CSharp.TypeExpr
ctx CompilerContext
name string
arity int
silent bool
loc Mono.CSharp.Location
Результат Mono.CSharp.TypeExpr

Namespace() публичный метод

Constructor Takes the current namespace and the name. This is bootstrapped with parent == null and name = ""
public Namespace ( Namespace parent, string name ) : System
parent Namespace
name string
Результат System

RemoveDeclSpace() публичный метод

public RemoveDeclSpace ( string name ) : void
name string
Результат void

ReplaceTypeWithPredefined() публичный метод

public ReplaceTypeWithPredefined ( System.TypeSpec ts, BuildinTypeSpec pts ) : void
ts System.TypeSpec
pts BuildinTypeSpec
Результат void

VerifyClsCompliance() публичный метод

public VerifyClsCompliance ( ) : void
Результат void

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

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

public MemberName,Mono.CSharp MemberName
Результат MemberName

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

protected Dictionary namespaces
Результат Namespace>.Dictionary

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

protected Dictionary> types
Результат IList>.Dictionary