Browse Source

Rename analyzers to reflect their headers

These analyzers show all members implementing the analyzed member,
not the members of implemented interfaces
pull/2028/head
dymanoid 5 years ago
parent
commit
211cc7aeae
  1. 2
      ILSpy/Analyzers/Builtin/EventImplementedByAnalyzer.cs
  2. 2
      ILSpy/Analyzers/Builtin/MethodImplementedByAnalyzer.cs
  3. 2
      ILSpy/Analyzers/Builtin/PropertyImplementedByAnalyzer.cs
  4. 6
      ILSpy/ILSpy.csproj

2
ILSpy/Analyzers/Builtin/EventImplementsInterfaceAnalyzer.cs → ILSpy/Analyzers/Builtin/EventImplementedByAnalyzer.cs

@ -28,7 +28,7 @@ namespace ICSharpCode.ILSpy.Analyzers.Builtin
/// Shows events that implement an interface event. /// Shows events that implement an interface event.
/// </summary> /// </summary>
[ExportAnalyzer(Header = "Implemented By", Order = 10)] [ExportAnalyzer(Header = "Implemented By", Order = 10)]
class EventImplementsInterfaceAnalyzer : IAnalyzer class EventImplementedByAnalyzer : IAnalyzer
{ {
public IEnumerable<ISymbol> Analyze(ISymbol analyzedSymbol, AnalyzerContext context) public IEnumerable<ISymbol> Analyze(ISymbol analyzedSymbol, AnalyzerContext context)
{ {

2
ILSpy/Analyzers/Builtin/MethodImplementsInterfaceAnalyzer.cs → ILSpy/Analyzers/Builtin/MethodImplementedByAnalyzer.cs

@ -31,7 +31,7 @@ namespace ICSharpCode.ILSpy.Analyzers.Builtin
/// Shows methods that implement an interface method. /// Shows methods that implement an interface method.
/// </summary> /// </summary>
[ExportAnalyzer(Header = "Implemented By", Order = 40)] [ExportAnalyzer(Header = "Implemented By", Order = 40)]
class MethodImplementsInterfaceAnalyzer : IAnalyzer class MethodImplementedByAnalyzer : IAnalyzer
{ {
public IEnumerable<ISymbol> Analyze(ISymbol analyzedSymbol, AnalyzerContext context) public IEnumerable<ISymbol> Analyze(ISymbol analyzedSymbol, AnalyzerContext context)
{ {

2
ILSpy/Analyzers/Builtin/PropertyImplementsInterfaceAnalyzer.cs → ILSpy/Analyzers/Builtin/PropertyImplementedByAnalyzer.cs

@ -28,7 +28,7 @@ namespace ICSharpCode.ILSpy.Analyzers.Builtin
/// Shows properties that implement an interface property. /// Shows properties that implement an interface property.
/// </summary> /// </summary>
[ExportAnalyzer(Header = "Implemented By", Order = 10)] [ExportAnalyzer(Header = "Implemented By", Order = 10)]
class PropertyImplementsInterfaceAnalyzer : IAnalyzer class PropertyImplementedByAnalyzer : IAnalyzer
{ {
public IEnumerable<ISymbol> Analyze(ISymbol analyzedSymbol, AnalyzerContext context) public IEnumerable<ISymbol> Analyze(ISymbol analyzedSymbol, AnalyzerContext context)
{ {

6
ILSpy/ILSpy.csproj

@ -77,14 +77,14 @@
<Compile Include="Analyzers\AnalyzerContext.cs" /> <Compile Include="Analyzers\AnalyzerContext.cs" />
<Compile Include="Analyzers\AnalyzerScope.cs" /> <Compile Include="Analyzers\AnalyzerScope.cs" />
<Compile Include="Analyzers\Builtin\AttributeAppliedToAnalyzer.cs" /> <Compile Include="Analyzers\Builtin\AttributeAppliedToAnalyzer.cs" />
<Compile Include="Analyzers\Builtin\EventImplementsInterfaceAnalyzer.cs" /> <Compile Include="Analyzers\Builtin\EventImplementedByAnalyzer.cs" />
<Compile Include="Analyzers\Builtin\EventOverriddenByAnalyzer.cs" /> <Compile Include="Analyzers\Builtin\EventOverriddenByAnalyzer.cs" />
<Compile Include="Analyzers\Builtin\MethodImplementsInterfaceAnalyzer.cs" /> <Compile Include="Analyzers\Builtin\MethodImplementedByAnalyzer.cs" />
<Compile Include="Analyzers\Builtin\MethodOverriddenByAnalyzer.cs" /> <Compile Include="Analyzers\Builtin\MethodOverriddenByAnalyzer.cs" />
<Compile Include="Analyzers\Builtin\MethodVirtualUsedByAnalyzer.cs" /> <Compile Include="Analyzers\Builtin\MethodVirtualUsedByAnalyzer.cs" />
<Compile Include="Analyzers\Builtin\MethodUsedByAnalyzer.cs" /> <Compile Include="Analyzers\Builtin\MethodUsedByAnalyzer.cs" />
<Compile Include="Analyzers\Builtin\MethodUsesAnalyzer.cs" /> <Compile Include="Analyzers\Builtin\MethodUsesAnalyzer.cs" />
<Compile Include="Analyzers\Builtin\PropertyImplementsInterfaceAnalyzer.cs" /> <Compile Include="Analyzers\Builtin\PropertyImplementedByAnalyzer.cs" />
<Compile Include="Analyzers\Builtin\PropertyOverriddenByAnalyzer.cs" /> <Compile Include="Analyzers\Builtin\PropertyOverriddenByAnalyzer.cs" />
<Compile Include="Analyzers\Builtin\TypeExposedByAnalyzer.cs" /> <Compile Include="Analyzers\Builtin\TypeExposedByAnalyzer.cs" />
<Compile Include="Analyzers\Builtin\TypeInstantiatedByAnalyzer.cs" /> <Compile Include="Analyzers\Builtin\TypeInstantiatedByAnalyzer.cs" />

Loading…
Cancel
Save