Skip to content

Commit 67c82fc

Browse files
Update src/Features/CSharp/Portable/Copilot/CSharpImplementNotImplementedExceptionDiagnosticAnalyzer.cs
Co-authored-by: Cyrus Najmabadi <cyrus.najmabadi@gmail.com>
1 parent ee88b18 commit 67c82fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Features/CSharp/Portable/Copilot/CSharpImplementNotImplementedExceptionDiagnosticAnalyzer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ private static bool ShouldReportAsTopLevel(IOperation block, IOperation operatio
103103
// Excluding property declarations with expression bodies
104104
// Because their location is an exact match with the throw operation
105105
// and we don't want to report the same location twice
106-
!(operation.Syntax.Parent is ArrowExpressionClauseSyntax { Parent: PropertyDeclarationSyntax }))
106+
operation.Syntax.Parent is not ArrowExpressionClauseSyntax { Parent: PropertyDeclarationSyntax })
107107
{
108108
// Include expression-bodied methods and get accessors
109109
return true;

0 commit comments

Comments
 (0)