Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Aug 29, 2023
1 parent 9fbbc0c commit c26695e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Polyfill/Nullability/NullabilityInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
#nullable enable

using System.Linq;
using System.Diagnostics.CodeAnalysis;
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System.Collections.ObjectModel;
using System.Diagnostics.CodeAnalysis;

namespace System.Reflection
{
Expand All @@ -20,7 +20,7 @@ namespace System.Reflection
#if PolyPublic
public
#endif
sealed class NullabilityInfo
sealed class NullabilityInfo
{
internal NullabilityInfo(Type type, NullabilityState readState, NullabilityState writeState,
NullabilityInfo? elementType, NullabilityInfo[] typeArguments)
Expand Down
5 changes: 2 additions & 3 deletions src/Polyfill/Nullability/NullabilityInfoContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
#nullable enable

using System.Linq;
using System.Diagnostics.CodeAnalysis;
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;

namespace System.Reflection
{
Expand All @@ -23,7 +23,7 @@ namespace System.Reflection
#if PolyPublic
public
#endif
sealed class NullabilityInfoContext
sealed class NullabilityInfoContext
{
private const string CompilerServicesNameSpace = "System.Runtime.CompilerServices";
private readonly Dictionary<Module, NotAnnotatedStatus> _publicOnlyModules = new();
Expand Down Expand Up @@ -634,7 +634,6 @@ private static NullabilityState TranslateByte(byte b) =>
private static bool IsValueTypeOrValueTypeByRef(Type type) =>
type.IsValueType || ((type.IsByRef || type.IsPointer) && type.GetElementType()!.IsValueType);

[ExcludeFromCodeCoverage]
private readonly struct NullableAttributeStateParser
{
private static readonly object UnknownByte = (byte)0;
Expand Down
2 changes: 2 additions & 0 deletions src/Tests/NullabilitySync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public async Task Run()
#nullable enable
using System.Linq;
using System.Diagnostics.CodeAnalysis;
""";

Expand Down Expand Up @@ -73,6 +74,7 @@ static string MakeInternal(string source) =>
.Replace(
"public sealed class",
"""
[ExcludeFromCodeCoverage]
#if PolyPublic
public
#endif
Expand Down

0 comments on commit c26695e

Please sign in to comment.