From 9f462a694bc531a60a37146e6bb07f06de41231e Mon Sep 17 00:00:00 2001
From: "deepsource-autofix[bot]"
<62050782+deepsource-autofix[bot]@users.noreply.github.com>
Date: Wed, 10 Jan 2024 09:23:24 +0000
Subject: [PATCH] style: format code with dotnet-format
This commit fixes the style issues introduced in a45d3b7 according to the output
from dotnet-format.
Details: None
---
.../NotNullAttribute.cs | 12 ++---
.../SetsRequiredMembersAttribute.cs | 14 +++---
.../CompilerFeatureRequiredAttribute.cs | 48 +++++++++----------
3 files changed, 37 insertions(+), 37 deletions(-)
diff --git a/System.Private.CoreLib.Polyfills/System.Diagnostics.CodeAnalysis/NotNullAttribute.cs b/System.Private.CoreLib.Polyfills/System.Diagnostics.CodeAnalysis/NotNullAttribute.cs
index 6ae3e03..175cc25 100644
--- a/System.Private.CoreLib.Polyfills/System.Diagnostics.CodeAnalysis/NotNullAttribute.cs
+++ b/System.Private.CoreLib.Polyfills/System.Diagnostics.CodeAnalysis/NotNullAttribute.cs
@@ -18,10 +18,10 @@ internal sealed class NotNullAttribute() : Attribute
/// returns this value, the associated parameter will not be null.
///
public NotNullAttribute(bool returnValue)
- : this() => ReturnValue = returnValue;
-
- ///
- /// Gets the return value condition.
- ///
- public bool ReturnValue { get; }
+ : this() => ReturnValue = returnValue;
+
+///
+/// Gets the return value condition.
+///
+public bool ReturnValue { get; }
}
diff --git a/System.Private.CoreLib.Polyfills/System.Diagnostics.CodeAnalysis/SetsRequiredMembersAttribute.cs b/System.Private.CoreLib.Polyfills/System.Diagnostics.CodeAnalysis/SetsRequiredMembersAttribute.cs
index 48195e1..81666a3 100644
--- a/System.Private.CoreLib.Polyfills/System.Diagnostics.CodeAnalysis/SetsRequiredMembersAttribute.cs
+++ b/System.Private.CoreLib.Polyfills/System.Diagnostics.CodeAnalysis/SetsRequiredMembersAttribute.cs
@@ -3,11 +3,11 @@ namespace System.Diagnostics.CodeAnalysis;
[global::System.AttributeUsage(AttributeTargets.Constructor, AllowMultiple = false, Inherited = false)]
internal sealed class SetsRequiredMembersAttribute(params string[] members) : Attribute
{
- public string[] Members { get; } = members;
-
- public SetsRequiredMembersAttribute()
- : this(null as string[]) { }
-
- public SetsRequiredMembersAttribute(string members)
- : this(new[] { members }) { }
+ public string[] Members { get; } = members;
+
+public SetsRequiredMembersAttribute()
+ : this(null as string[]) { }
+
+public SetsRequiredMembersAttribute(string members)
+ : this(new[] { members }) { }
}
diff --git a/System.Private.CoreLib.Polyfills/System.Runtime.CompilerServices/CompilerFeatureRequiredAttribute.cs b/System.Private.CoreLib.Polyfills/System.Runtime.CompilerServices/CompilerFeatureRequiredAttribute.cs
index bf1a945..3dcfcae 100644
--- a/System.Private.CoreLib.Polyfills/System.Runtime.CompilerServices/CompilerFeatureRequiredAttribute.cs
+++ b/System.Private.CoreLib.Polyfills/System.Runtime.CompilerServices/CompilerFeatureRequiredAttribute.cs
@@ -9,28 +9,28 @@ internal sealed class CompilerFeatureRequiredAttribute(string? featureName, bool
: Attribute
{
public CompilerFeatureRequiredAttribute(string? featureName)
- : this(featureName, false) { }
-
- public CompilerFeatureRequiredAttribute()
- : this(null) { }
-
- ///
- /// The used for the ref structs C# feature.
- ///
- public const string RefStructs = nameof(RefStructs);
-
- ///
- /// The used for the required members C# feature.
- ///
- public const string RequiredMembers = nameof(RequiredMembers);
-
- ///
- /// The name of the compiler feature.
- ///
- public string FeatureName { get; } = featureName;
-
- ///
- /// If , the compiler can choose to allow access to the location where this attribute is applied if it does not understand .
- ///
- public bool IsOptional { get; init; } = isOptional;
+ : this(featureName, false) { }
+
+public CompilerFeatureRequiredAttribute()
+ : this(null) { }
+
+///
+/// The used for the ref structs C# feature.
+///
+public const string RefStructs = nameof(RefStructs);
+
+///
+/// The used for the required members C# feature.
+///
+public const string RequiredMembers = nameof(RequiredMembers);
+
+///
+/// The name of the compiler feature.
+///
+public string FeatureName { get; } = featureName;
+
+///
+/// If , the compiler can choose to allow access to the location where this attribute is applied if it does not understand .
+///
+public bool IsOptional { get; init; } = isOptional;
}