Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: format code with dotnet-format #20

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ namespace System.Diagnostics.CodeAnalysis;
[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 }) { }
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,28 @@ internal sealed class CompilerFeatureRequiredAttribute(string? featureName, bool
: Attribute
{
public CompilerFeatureRequiredAttribute(string? featureName)
: this(featureName, false) { }
public CompilerFeatureRequiredAttribute()
: this(null) { }
/// <summary>
/// The <see cref="FeatureName"/> used for the ref structs C# feature.
/// </summary>
public const string RefStructs = nameof(RefStructs);
/// <summary>
/// The <see cref="FeatureName"/> used for the required members C# feature.
/// </summary>
public const string RequiredMembers = nameof(RequiredMembers);
/// <summary>
/// The name of the compiler feature.
/// </summary>
public string FeatureName { get; } = featureName;
/// <summary>
/// If <see langword="true" />, the compiler can choose to allow access to the location where this attribute is applied if it does not understand <see cref="FeatureName"/>.
/// </summary>
public bool IsOptional { get; init; } = isOptional;
: this(featureName, false) { }

public CompilerFeatureRequiredAttribute()
: this(null) { }

/// <summary>
/// The <see cref="FeatureName"/> used for the ref structs C# feature.
/// </summary>
public const string RefStructs = nameof(RefStructs);

/// <summary>
/// The <see cref="FeatureName"/> used for the required members C# feature.
/// </summary>
public const string RequiredMembers = nameof(RequiredMembers);

/// <summary>
/// The name of the compiler feature.
/// </summary>
public string FeatureName { get; } = featureName;

/// <summary>
/// If <see langword="true" />, the compiler can choose to allow access to the location where this attribute is applied if it does not understand <see cref="FeatureName"/>.
/// </summary>
public bool IsOptional { get; init; } = isOptional;
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ namespace System.Runtime.CompilerServices
#else
internal
#endif
static class IsExternalInit { }
static class IsExternalInit
{ }
}
Loading