C# Class 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.
Inheritance: Mono.CSharp.FullNamedExpression
Afficher le fichier Open project: kumpera/mono Class Usage Examples

Méthodes publiques

Свойство Type Description
MemberName MemberName

Protected Properties

Свойство Type Description
namespaces Namespace>.Dictionary
types IList>.Dictionary

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
DoResolve ( ResolveContext ec ) : Mono.CSharp.Expression

Private Methods

Méthode Description
LookupType ( string name, int arity ) : System.TypeSpec

Method Details

AddType() public méthode

public AddType ( System.TypeSpec ts ) : void
ts System.TypeSpec
Résultat void

CompletionGetTypesStartingWith() public méthode

public CompletionGetTypesStartingWith ( string prefix ) : IEnumerable
prefix string
Résultat IEnumerable

DoResolve() protected méthode

protected DoResolve ( ResolveContext ec ) : Mono.CSharp.Expression
ec ResolveContext
Résultat Mono.CSharp.Expression

Error_NamespaceDoesNotExist() public méthode

public Error_NamespaceDoesNotExist ( Mono.CSharp.Location loc, string name, int arity, IMemberContext ctx ) : void
loc Mono.CSharp.Location
name string
arity int
ctx IMemberContext
Résultat void

GetNamespace() public méthode

public GetNamespace ( string name, bool create ) : Namespace
name string
create bool
Résultat Namespace

GetSignatureForError() public méthode

public GetSignatureForError ( ) : string
Résultat string

IsImportedTypeOverride() public static méthode

public static IsImportedTypeOverride ( System.TypeSpec ts, System.TypeSpec found ) : System.TypeSpec
ts System.TypeSpec
found System.TypeSpec
Résultat System.TypeSpec

Lookup() public méthode

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
Résultat Mono.CSharp.FullNamedExpression

LookupExtensionMethod() public méthode

public LookupExtensionMethod ( System.TypeSpec extensionType, TypeContainer invocationContext, string name, int arity ) : List
extensionType System.TypeSpec
invocationContext TypeContainer
name string
arity int
Résultat List

LookupType() public méthode

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
Résultat Mono.CSharp.TypeExpr

Namespace() public méthode

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
Résultat System

RemoveDeclSpace() public méthode

public RemoveDeclSpace ( string name ) : void
name string
Résultat void

ReplaceTypeWithPredefined() public méthode

public ReplaceTypeWithPredefined ( System.TypeSpec ts, BuildinTypeSpec pts ) : void
ts System.TypeSpec
pts BuildinTypeSpec
Résultat void

VerifyClsCompliance() public méthode

public VerifyClsCompliance ( ) : void
Résultat void

Property Details

MemberName public_oe property

public MemberName,Mono.CSharp MemberName
Résultat MemberName

namespaces protected_oe property

protected Dictionary namespaces
Résultat Namespace>.Dictionary

types protected_oe property

protected Dictionary> types
Résultat IList>.Dictionary