Skip to content

Commit

Permalink
Merge pull request #65618 from DoctorKrolic/move-to-verify-cs-4
Browse files Browse the repository at this point in the history
Move `CSharpUseCompoundAssignmentCodeFixProvider` to `VerifyCS`
  • Loading branch information
CyrusNajmabadi committed Nov 26, 2022
2 parents bb09a63 + 3af1d2e commit 07c6b71
Show file tree
Hide file tree
Showing 2 changed files with 1,038 additions and 896 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using System.Composition;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using Microsoft.CodeAnalysis.CodeFixes;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Host.Mef;
using Microsoft.CodeAnalysis.LanguageService;
using Microsoft.CodeAnalysis.UseCompoundAssignment;

Expand All @@ -17,7 +18,7 @@ internal class CSharpUseCompoundAssignmentCodeFixProvider
: AbstractUseCompoundAssignmentCodeFixProvider<SyntaxKind, AssignmentExpressionSyntax, ExpressionSyntax>
{
[ImportingConstructor]
[SuppressMessage("RoslynDiagnosticsReliability", "RS0033:Importing constructor should be [Obsolete]", Justification = "Used in test code: https://github.com/dotnet/roslyn/issues/42814")]
[Obsolete(MefConstruction.ImportingConstructorMessage, error: true)]
public CSharpUseCompoundAssignmentCodeFixProvider()
: base(Utilities.Kinds)
{
Expand Down
Loading

0 comments on commit 07c6b71

Please sign in to comment.