From 32bfd015bca06cd92382338a0fe7cf14ff84df61 Mon Sep 17 00:00:00 2001 From: CyrusNajmabadi Date: Fri, 14 Jul 2017 12:10:37 -0700 Subject: [PATCH] Make into a DiagnosticAnalyzer. --- .../CSharpIsAndCastCheckWithoutNameDiagnosticAnalyzer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Features/CSharp/Portable/UsePatternMatching/CSharpIsAndCastCheckWithoutNameDiagnosticAnalyzer.cs b/src/Features/CSharp/Portable/UsePatternMatching/CSharpIsAndCastCheckWithoutNameDiagnosticAnalyzer.cs index 338927aa024..a3d016bf523 100644 --- a/src/Features/CSharp/Portable/UsePatternMatching/CSharpIsAndCastCheckWithoutNameDiagnosticAnalyzer.cs +++ b/src/Features/CSharp/Portable/UsePatternMatching/CSharpIsAndCastCheckWithoutNameDiagnosticAnalyzer.cs @@ -26,7 +26,7 @@ namespace Microsoft.CodeAnalysis.CSharp.UsePatternMatching /// but only for code cases where the user has provided an appropriate variable name in /// code that can be used). /// - [ExportCodeRefactoringProvider(LanguageNames.CSharp), Shared] + [DiagnosticAnalyzer(LanguageNames.CSharp), Shared] internal class CSharpIsAndCastCheckWithoutNameDiagnosticAnalyzer : AbstractCodeStyleDiagnosticAnalyzer { private const string CS0165 = nameof(CS0165); // Use of unassigned local variable 's' -- GitLab