C# Class ICSharpCode.NRefactory.MonoCSharp.MemberCore

Inheritance: Attributable, IMemberContext, IMemberDefinition
Afficher le fichier Open project: 0xd4d/NRefactory Class Usage Examples

Méthodes publiques

Свойство Type Description
Parent TypeContainer

Protected Properties

Свойство Type Description
comment string

Private Properties

Свойство Type Description
GenerateDocComment void

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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

Private Methods

Méthode Description
GenerateDocComment ( ICSharpCode.NRefactory.MonoCSharp.DocumentationBuilder builder ) : void

Method Details

Accept() public méthode

public Accept ( StructuralVisitor visitor ) : void
visitor StructuralVisitor
Résultat void

CheckAbstractAndExtern() protected méthode

protected CheckAbstractAndExtern ( bool has_block ) : bool
has_block bool
Résultat bool

CheckObsoleteness() public méthode

Checks for ObsoleteAttribute presence. It's used for testing of all non-types elements
public CheckObsoleteness ( Location loc ) : void
loc Location
Résultat void

CheckProtectedModifier() protected méthode

protected CheckProtectedModifier ( ) : void
Résultat void

ConditionalConditions() public méthode

public ConditionalConditions ( ) : string[]
Résultat string[]

Define() public abstract méthode

public abstract Define ( ) : bool
Résultat bool

Emit() public méthode

Base Emit method. This is also entry point for CLS-Compliant verification.
public Emit ( ) : void
Résultat void

EnableOverloadChecks() public méthode

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

GetAttributeObsolete() public méthode

Returns instance of ObsoleteAttribute for this MemberCore
public GetAttributeObsolete ( ) : ObsoleteAttribute
Résultat System.ObsoleteAttribute

GetCallerMemberName() public méthode

public GetCallerMemberName ( ) : string
Résultat string

GetCompletionStartingWith() public méthode

public GetCompletionStartingWith ( string prefix, List results ) : void
prefix string
results List
Résultat void

GetSignatureForDocumentation() public abstract méthode

public abstract GetSignatureForDocumentation ( ) : string
Résultat string

GetSignatureForError() public méthode

public GetSignatureForError ( ) : string
Résultat string

IsAccessibleAs() public méthode

public IsAccessibleAs ( System.TypeSpec p ) : bool
p System.TypeSpec
Résultat bool

IsClsComplianceRequired() public méthode

Analyze whether CLS-Compliant verification must be execute for this MemberCore.
public IsClsComplianceRequired ( ) : bool
Résultat bool

IsExposedFromAssembly() public méthode

Returns true when MemberCore is exposed from assembly.
public IsExposedFromAssembly ( ) : bool
Résultat bool

LookupExtensionMethod() public méthode

public LookupExtensionMethod ( string name, int arity ) : ExtensionMethodCandidates
name string
arity int
Résultat ExtensionMethodCandidates

LookupNamespaceAlias() public méthode

public LookupNamespaceAlias ( string name ) : FullNamedExpression
name string
Résultat FullNamedExpression

LookupNamespaceOrType() public méthode

public LookupNamespaceOrType ( string name, int arity, LookupMode mode, Location loc ) : FullNamedExpression
name string
arity int
mode LookupMode
loc Location
Résultat FullNamedExpression

MemberCore() protected méthode

protected MemberCore ( TypeContainer parent, MemberName name, Attributes attrs ) : System
parent TypeContainer
name MemberName
attrs Attributes
Résultat System

SetConstraints() public méthode

public SetConstraints ( List constraints_list ) : void
constraints_list List
Résultat void

SetIsAssigned() public méthode

public SetIsAssigned ( ) : void
Résultat void

SetIsUsed() public méthode

public SetIsUsed ( ) : void
Résultat void

SetMemberName() protected méthode

protected SetMemberName ( MemberName new_name ) : void
new_name MemberName
Résultat void

VerifyClsCompliance() protected méthode

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
Résultat bool

Warning_IdentifierNotCompliant() protected méthode

protected Warning_IdentifierNotCompliant ( ) : void
Résultat void

WriteDebugSymbol() public méthode

public WriteDebugSymbol ( MonoSymbolFile file ) : void
file Mono.CompilerServices.SymbolWriter.MonoSymbolFile
Résultat void

Property Details

Parent public_oe property

public TypeContainer,ICSharpCode.NRefactory.MonoCSharp Parent
Résultat TypeContainer

comment protected_oe property

XML documentation comment
protected string comment
Résultat string