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
파일 보기 프로젝트 열기: kumpera/mono 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
MemberName MemberName

보호된 프로퍼티들

프로퍼티 타입 설명
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