C# Class ICSharpCode.NRefactory.MonoCSharp.MemberCore

Inheritance: Attributable, IMemberContext, IMemberDefinition
Show file Open project: 0xd4d/NRefactory Class Usage Examples

Public Properties

Property Type Description
Parent TypeContainer

Protected Properties

Property Type Description
comment string

Private Properties

Property Type Description
GenerateDocComment void

Public Methods

Method 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

Protected Methods

Method 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

Method Description
GenerateDocComment ( ICSharpCode.NRefactory.MonoCSharp.DocumentationBuilder builder ) : void

Method Details

Accept() public method

public Accept ( StructuralVisitor visitor ) : void
visitor StructuralVisitor
return void

CheckAbstractAndExtern() protected method

protected CheckAbstractAndExtern ( bool has_block ) : bool
has_block bool
return bool

CheckObsoleteness() public method

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

CheckProtectedModifier() protected method

protected CheckProtectedModifier ( ) : void
return void

ConditionalConditions() public method

public ConditionalConditions ( ) : string[]
return string[]

Define() public abstract method

public abstract Define ( ) : bool
return bool

Emit() public method

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

EnableOverloadChecks() public method

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

GetAttributeObsolete() public method

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

GetCallerMemberName() public method

public GetCallerMemberName ( ) : string
return string

GetCompletionStartingWith() public method

public GetCompletionStartingWith ( string prefix, List results ) : void
prefix string
results List
return void

GetSignatureForDocumentation() public abstract method

public abstract GetSignatureForDocumentation ( ) : string
return string

GetSignatureForError() public method

public GetSignatureForError ( ) : string
return string

IsAccessibleAs() public method

public IsAccessibleAs ( System.TypeSpec p ) : bool
p System.TypeSpec
return bool

IsClsComplianceRequired() public method

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

IsExposedFromAssembly() public method

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

LookupExtensionMethod() public method

public LookupExtensionMethod ( string name, int arity ) : ExtensionMethodCandidates
name string
arity int
return ExtensionMethodCandidates

LookupNamespaceAlias() public method

public LookupNamespaceAlias ( string name ) : FullNamedExpression
name string
return FullNamedExpression

LookupNamespaceOrType() public method

public LookupNamespaceOrType ( string name, int arity, LookupMode mode, Location loc ) : FullNamedExpression
name string
arity int
mode LookupMode
loc Location
return FullNamedExpression

MemberCore() protected method

protected MemberCore ( TypeContainer parent, MemberName name, Attributes attrs ) : System
parent TypeContainer
name MemberName
attrs Attributes
return System

SetConstraints() public method

public SetConstraints ( List constraints_list ) : void
constraints_list List
return void

SetIsAssigned() public method

public SetIsAssigned ( ) : void
return void

SetIsUsed() public method

public SetIsUsed ( ) : void
return void

SetMemberName() protected method

protected SetMemberName ( MemberName new_name ) : void
new_name MemberName
return void

VerifyClsCompliance() protected method

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
return bool

Warning_IdentifierNotCompliant() protected method

protected Warning_IdentifierNotCompliant ( ) : void
return void

WriteDebugSymbol() public method

public WriteDebugSymbol ( MonoSymbolFile file ) : void
file Mono.CompilerServices.SymbolWriter.MonoSymbolFile
return void

Property Details

Parent public property

public TypeContainer,ICSharpCode.NRefactory.MonoCSharp Parent
return TypeContainer

comment protected property

XML documentation comment
protected string comment
return string