C# Класс ICSharpCode.NRefactory.MonoCSharp.MemberCore

Наследование: Attributable, IMemberContext, IMemberDefinition
Показать файл Открыть проект Примеры использования класса

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

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

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

Свойство Тип Описание
comment string

Private Properties

Свойство Тип Описание
GenerateDocComment void

Открытые методы

Метод Описание
Accept ( StructuralVisitor visitor ) : void
CheckObsoleteness ( 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

GetCallerMemberName ( ) : string
GetCompletionStartingWith ( string prefix, List results ) : void
GetSignatureForDocumentation ( ) : 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.

LookupExtensionMethod ( string name, int arity ) : ExtensionMethodCandidates
LookupNamespaceAlias ( string name ) : FullNamedExpression
LookupNamespaceOrType ( string name, int arity, LookupMode mode, Location loc ) : FullNamedExpression
SetConstraints ( List constraints_list ) : void
SetIsAssigned ( ) : void
SetIsUsed ( ) : void
WriteDebugSymbol ( MonoSymbolFile file ) : void

Защищенные методы

Метод Описание
CheckAbstractAndExtern ( bool has_block ) : bool
CheckProtectedModifier ( ) : void
MemberCore ( TypeContainer parent, MemberName name, Attributes attrs ) : System
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.

Warning_IdentifierNotCompliant ( ) : void

Приватные методы

Метод Описание
GenerateDocComment ( ICSharpCode.NRefactory.MonoCSharp.DocumentationBuilder builder ) : void

Описание методов

Accept() публичный Метод

public Accept ( StructuralVisitor visitor ) : void
visitor StructuralVisitor
Результат 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 ( Location loc ) : void
loc 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

GetCallerMemberName() публичный Метод

public GetCallerMemberName ( ) : string
Результат string

GetCompletionStartingWith() публичный Метод

public GetCompletionStartingWith ( string prefix, List results ) : void
prefix string
results List
Результат void

GetSignatureForDocumentation() публичный абстрактный Метод

public abstract GetSignatureForDocumentation ( ) : string
Результат 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

LookupExtensionMethod() публичный Метод

public LookupExtensionMethod ( string name, int arity ) : ExtensionMethodCandidates
name string
arity int
Результат ExtensionMethodCandidates

LookupNamespaceAlias() публичный Метод

public LookupNamespaceAlias ( string name ) : FullNamedExpression
name string
Результат FullNamedExpression

LookupNamespaceOrType() публичный Метод

public LookupNamespaceOrType ( string name, int arity, LookupMode mode, Location loc ) : FullNamedExpression
name string
arity int
mode LookupMode
loc Location
Результат FullNamedExpression

MemberCore() защищенный Метод

protected MemberCore ( TypeContainer parent, MemberName name, Attributes attrs ) : System
parent TypeContainer
name MemberName
attrs Attributes
Результат System

SetConstraints() публичный Метод

public SetConstraints ( List constraints_list ) : void
constraints_list List
Результат void

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

Warning_IdentifierNotCompliant() защищенный Метод

protected Warning_IdentifierNotCompliant ( ) : void
Результат void

WriteDebugSymbol() публичный Метод

public WriteDebugSymbol ( MonoSymbolFile file ) : void
file Mono.CompilerServices.SymbolWriter.MonoSymbolFile
Результат void

Описание свойств

Parent публичное свойство

public TypeContainer,ICSharpCode.NRefactory.MonoCSharp Parent
Результат TypeContainer

comment защищенное свойство

XML documentation comment
protected string comment
Результат string