Skip to content

Commit d172bd6

Browse files
committed
Remove duplicate nullability directives
1 parent 3f2c61a commit d172bd6

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

src/Workspaces/SharedUtilitiesAndExtensions/Compiler/Extensions/Symbols/ITypeSymbolExtensions.AnonymousTypeRemover.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5-
#nullable enable
6-
#pragma warning disable RS1024 // Use 'SymbolEqualityComparer' when comparing symbols (https://github.com/dotnet/roslyn/issues/78583)
7-
85
#nullable disable
6+
#pragma warning disable RS1024 // Use 'SymbolEqualityComparer' when comparing symbols (https://github.com/dotnet/roslyn/issues/78583)
97

108
using System;
119
using System.Linq;

src/Workspaces/SharedUtilitiesAndExtensions/Compiler/Extensions/Symbols/ITypeSymbolExtensions.SubstituteTypesVisitor.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5-
#nullable enable
6-
#pragma warning disable RS1024 // Use 'SymbolEqualityComparer' when comparing symbols (https://github.com/dotnet/roslyn/issues/78583)
7-
85
#nullable disable
6+
#pragma warning disable RS1024 // Use 'SymbolEqualityComparer' when comparing symbols (https://github.com/dotnet/roslyn/issues/78583)
97

108
using System;
119
using System.Collections.Generic;

src/Workspaces/SharedUtilitiesAndExtensions/Compiler/Extensions/Symbols/SignatureComparer.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
#nullable enable
66
#pragma warning disable RS1024 // Use 'SymbolEqualityComparer' when comparing symbols (https://github.com/dotnet/roslyn/issues/78583)
77

8-
#nullable disable
9-
108
using System;
119
using System.Collections.Generic;
1210
using System.Collections.Immutable;
@@ -66,7 +64,7 @@ public bool HaveSameSignature(IPropertySymbol property1, IPropertySymbol propert
6664
this.ParameterEquivalenceComparer);
6765
}
6866

69-
public static bool BadPropertyAccessor(IMethodSymbol method1, IMethodSymbol method2)
67+
public static bool BadPropertyAccessor(IMethodSymbol? method1, IMethodSymbol? method2)
7068
{
7169
return method1 != null &&
7270
(method2 == null || method2.DeclaredAccessibility != Accessibility.Public);

0 commit comments

Comments
 (0)