C# 클래스 Mono.CSharp.MemberCore

Base representation for members. This is used to keep track of Name, Location and Modifier flags, and handling Attributes.
상속: Mono.CSharp.Attributable, IResolveContext
파일 보기 프로젝트 열기: kumpera/mono 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Parent TypeContainer

보호된 프로퍼티들

프로퍼티 타입 설명
cached_name string
comment string

Private Properties

프로퍼티 타입 설명
GenerateDocComment void
OnGenerateDocComment void

공개 메소드들

메소드 설명
CheckObsoleteness ( Mono.CSharp.Location loc ) : void

Checks for ObsoleteAttribute presence. It's used for testing of all non-types elements

ConditionalConditions ( ) : string[]
Define ( ) : bool
Emit ( ) : void

Base Emit method. This is also entry point for CLS-Compliant verification.

EnableOverloadChecks ( MemberCore overload ) : bool

Returns true when a member supports multiple overloads (methods, indexers, etc)

GetAttributeObsolete ( ) : ObsoleteAttribute

Returns instance of ObsoleteAttribute for this MemberCore

GetDocCommentName ( DeclSpace ds ) : string
GetSignatureForError ( ) : string
IsAccessibleAs ( System.TypeSpec p ) : bool
IsClsComplianceRequired ( ) : bool

Analyze whether CLS-Compliant verification must be execute for this MemberCore.

IsExposedFromAssembly ( ) : bool

Returns true when MemberCore is exposed from assembly.

IsNotCLSCompliant ( ) : bool

Goes through class hierarchy and gets value of first found CLSCompliantAttribute. If no is attribute exists then assembly CLSCompliantAttribute is returned.

LookupExtensionMethod ( System.TypeSpec extensionType, string name, int arity, NamespaceEntry &scope ) : IList
LookupNamespaceAlias ( string name ) : Mono.CSharp.FullNamedExpression
LookupNamespaceOrType ( string name, int arity, Mono.CSharp.Location loc, bool ignore_cs0104 ) : Mono.CSharp.FullNamedExpression
MemberCore ( DeclSpace parent, MemberName name, Mono.CSharp.Attributes attrs ) : System
SetIsAssigned ( ) : void
SetIsUsed ( ) : void

보호된 메소드들

메소드 설명
CheckAbstractAndExtern ( bool has_block ) : bool
CheckProtectedModifier ( ) : void
SetMemberName ( MemberName new_name ) : void
VerifyClsCompliance ( ) : bool

The main virtual method for CLS-Compliant verifications. The method returns true if member is CLS-Compliant and false if member is not CLS-Compliant which means that CLS-Compliant tests are not necessary. A descendants override it and add their extra verifications.

비공개 메소드들

메소드 설명
GenerateDocComment ( DeclSpace ds ) : void
OnGenerateDocComment ( Object intermediateNode ) : void

메소드 상세

CheckAbstractAndExtern() 보호된 메소드

protected CheckAbstractAndExtern ( bool has_block ) : bool
has_block bool
리턴 bool

CheckObsoleteness() 공개 메소드

Checks for ObsoleteAttribute presence. It's used for testing of all non-types elements
public CheckObsoleteness ( Mono.CSharp.Location loc ) : void
loc Mono.CSharp.Location
리턴 void

CheckProtectedModifier() 보호된 메소드

protected CheckProtectedModifier ( ) : void
리턴 void

ConditionalConditions() 공개 메소드

public ConditionalConditions ( ) : string[]
리턴 string[]

Define() 공개 추상적인 메소드

public abstract Define ( ) : bool
리턴 bool

Emit() 공개 메소드

Base Emit method. This is also entry point for CLS-Compliant verification.
public Emit ( ) : void
리턴 void

EnableOverloadChecks() 공개 메소드

Returns true when a member supports multiple overloads (methods, indexers, etc)
public EnableOverloadChecks ( MemberCore overload ) : bool
overload MemberCore
리턴 bool

GetAttributeObsolete() 공개 메소드

Returns instance of ObsoleteAttribute for this MemberCore
public GetAttributeObsolete ( ) : ObsoleteAttribute
리턴 System.ObsoleteAttribute

GetDocCommentName() 공개 메소드

public GetDocCommentName ( DeclSpace ds ) : string
ds DeclSpace
리턴 string

GetSignatureForError() 공개 메소드

public GetSignatureForError ( ) : string
리턴 string

IsAccessibleAs() 공개 메소드

public IsAccessibleAs ( System.TypeSpec p ) : bool
p System.TypeSpec
리턴 bool

IsClsComplianceRequired() 공개 메소드

Analyze whether CLS-Compliant verification must be execute for this MemberCore.
public IsClsComplianceRequired ( ) : bool
리턴 bool

IsExposedFromAssembly() 공개 메소드

Returns true when MemberCore is exposed from assembly.
public IsExposedFromAssembly ( ) : bool
리턴 bool

IsNotCLSCompliant() 공개 메소드

Goes through class hierarchy and gets value of first found CLSCompliantAttribute. If no is attribute exists then assembly CLSCompliantAttribute is returned.
public IsNotCLSCompliant ( ) : bool
리턴 bool

LookupExtensionMethod() 공개 메소드

public LookupExtensionMethod ( System.TypeSpec extensionType, string name, int arity, NamespaceEntry &scope ) : IList
extensionType System.TypeSpec
name string
arity int
scope NamespaceEntry
리턴 IList

LookupNamespaceAlias() 공개 메소드

public LookupNamespaceAlias ( string name ) : Mono.CSharp.FullNamedExpression
name string
리턴 Mono.CSharp.FullNamedExpression

LookupNamespaceOrType() 공개 메소드

public LookupNamespaceOrType ( string name, int arity, Mono.CSharp.Location loc, bool ignore_cs0104 ) : Mono.CSharp.FullNamedExpression
name string
arity int
loc Mono.CSharp.Location
ignore_cs0104 bool
리턴 Mono.CSharp.FullNamedExpression

MemberCore() 공개 메소드

public MemberCore ( DeclSpace parent, MemberName name, Mono.CSharp.Attributes attrs ) : System
parent DeclSpace
name MemberName
attrs Mono.CSharp.Attributes
리턴 System

SetIsAssigned() 공개 메소드

public SetIsAssigned ( ) : void
리턴 void

SetIsUsed() 공개 메소드

public SetIsUsed ( ) : void
리턴 void

SetMemberName() 보호된 메소드

protected SetMemberName ( MemberName new_name ) : void
new_name MemberName
리턴 void

VerifyClsCompliance() 보호된 메소드

The main virtual method for CLS-Compliant verifications. The method returns true if member is CLS-Compliant and false if member is not CLS-Compliant which means that CLS-Compliant tests are not necessary. A descendants override it and add their extra verifications.
protected VerifyClsCompliance ( ) : bool
리턴 bool

프로퍼티 상세

Parent 공개적으로 프로퍼티

public TypeContainer,Mono.CSharp Parent
리턴 TypeContainer

cached_name 보호되어 있는 프로퍼티

Public name
protected string cached_name
리턴 string

comment 보호되어 있는 프로퍼티

XML documentation comment
protected string comment
리턴 string