Skip to content

Commit 76d38b0

Browse files
committed
Fix comment placement
1 parent fa4d574 commit 76d38b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1612UnitTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,8 +562,6 @@ public class ClassName
562562
await VerifyCSharpDiagnosticAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(false);
563563
}
564564

565-
// Syntax node actions for type declarations with a primary constructor were called twice
566-
// before support for c# 11 was added.
567565
protected static Task VerifyCSharpDiagnosticAsync(string source, DiagnosticResult[] expected, CancellationToken cancellationToken)
568566
=> VerifyCSharpDiagnosticAsync(source, testSettings: null, expected, ignoreCompilerDiagnostics: false, cancellationToken);
569567

@@ -682,6 +680,8 @@ private static DiagnosticResult[] GetExpectedDiagnostics(DiagnosticResult normal
682680
return GetExpectedDiagnostics(new[] { normallyExpected }, declaration);
683681
}
684682

683+
// Syntax node actions for type declarations with a primary constructor were called twice
684+
// before support for c# 11 was added.
685685
private static DiagnosticResult[] GetExpectedDiagnostics(DiagnosticResult[] normallyExpected, string declaration)
686686
{
687687
var isPrimaryConstructor = declaration.Contains("record") || declaration.Contains("class") || declaration.Contains("struct");

0 commit comments

Comments
 (0)