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
Mostrar archivo Open project: kumpera/mono Class Usage Examples

Public Properties

Property Type Description
MemberName MemberName

Protected Properties

Property Type Description
namespaces Namespace>.Dictionary
types IList>.Dictionary

Public Methods

Method 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

Protected Methods

Method Description
DoResolve ( ResolveContext ec ) : Mono.CSharp.Expression

Private Methods

Method Description
LookupType ( string name, int arity ) : System.TypeSpec

Method Details

AddType() public method

public AddType ( System.TypeSpec ts ) : void
ts System.TypeSpec
return void

CompletionGetTypesStartingWith() public method

public CompletionGetTypesStartingWith ( string prefix ) : IEnumerable
prefix string
return IEnumerable

DoResolve() protected method

protected DoResolve ( ResolveContext ec ) : Mono.CSharp.Expression
ec ResolveContext
return Mono.CSharp.Expression

Error_NamespaceDoesNotExist() public method

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

GetNamespace() public method

public GetNamespace ( string name, bool create ) : Namespace
name string
create bool
return Namespace

GetSignatureForError() public method

public GetSignatureForError ( ) : string
return string

IsImportedTypeOverride() public static method

public static IsImportedTypeOverride ( System.TypeSpec ts, System.TypeSpec found ) : System.TypeSpec
ts System.TypeSpec
found System.TypeSpec
return System.TypeSpec

Lookup() public method

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
return Mono.CSharp.FullNamedExpression

LookupExtensionMethod() public method

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

LookupType() public method

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
return Mono.CSharp.TypeExpr

Namespace() public method

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
return System

RemoveDeclSpace() public method

public RemoveDeclSpace ( string name ) : void
name string
return void

ReplaceTypeWithPredefined() public method

public ReplaceTypeWithPredefined ( System.TypeSpec ts, BuildinTypeSpec pts ) : void
ts System.TypeSpec
pts BuildinTypeSpec
return void

VerifyClsCompliance() public method

public VerifyClsCompliance ( ) : void
return void

Property Details

MemberName public_oe property

public MemberName,Mono.CSharp MemberName
return MemberName

namespaces protected_oe property

protected Dictionary namespaces
return Namespace>.Dictionary

types protected_oe property

protected Dictionary> types
return IList>.Dictionary