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
Показать файл Открыть проект Примеры использования класса

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

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

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

Свойство Тип Описание
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