diff --git a/.editorconfig b/.editorconfig index 91d15d8df5b2d4..2d2860549c8f7a 100644 --- a/.editorconfig +++ b/.editorconfig @@ -36,7 +36,7 @@ csharp_indent_switch_labels = true csharp_indent_labels = one_less_than_current # Modifier preferences -csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion +csharp_preferred_modifier_order = public,private,protected,internal,file,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,required,volatile,async:suggestion # avoid this. unless absolutely necessary dotnet_style_qualification_for_field = false:suggestion diff --git a/src/libraries/System.Runtime.InteropServices/gen/Microsoft.Interop.SourceGeneration/Marshalling/ElementsMarshalling.cs b/src/libraries/System.Runtime.InteropServices/gen/Microsoft.Interop.SourceGeneration/Marshalling/ElementsMarshalling.cs index c3e5a82f627c3f..6a42d229ae29b6 100644 --- a/src/libraries/System.Runtime.InteropServices/gen/Microsoft.Interop.SourceGeneration/Marshalling/ElementsMarshalling.cs +++ b/src/libraries/System.Runtime.InteropServices/gen/Microsoft.Interop.SourceGeneration/Marshalling/ElementsMarshalling.cs @@ -58,7 +58,7 @@ public StatementSyntax GenerateClearUnmanagedValuesSource(TypePositionInfo info, } #pragma warning disable SA1400 // Access modifier should be declared https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/3659 - static file class ElementsMarshallingCollectionSourceExtensions + file static class ElementsMarshallingCollectionSourceExtensions #pragma warning restore SA1400 // Access modifier should be declared { public static StatementSyntax GetNumElementsAssignmentFromManagedValuesSource(this IElementsMarshallingCollectionSource source, TypePositionInfo info, StubCodeContext context) diff --git a/src/libraries/System.Runtime.InteropServices/gen/Microsoft.Interop.SourceGeneration/Marshalling/UnmanagedToManagedOwnershipTrackingStrategy.cs b/src/libraries/System.Runtime.InteropServices/gen/Microsoft.Interop.SourceGeneration/Marshalling/UnmanagedToManagedOwnershipTrackingStrategy.cs index 434354715d7952..a5ec887a5e64f9 100644 --- a/src/libraries/System.Runtime.InteropServices/gen/Microsoft.Interop.SourceGeneration/Marshalling/UnmanagedToManagedOwnershipTrackingStrategy.cs +++ b/src/libraries/System.Runtime.InteropServices/gen/Microsoft.Interop.SourceGeneration/Marshalling/UnmanagedToManagedOwnershipTrackingStrategy.cs @@ -169,7 +169,7 @@ IEnumerable GenerateStatementsFromInner(StubCodeContext context } #pragma warning disable SA1400 // Access modifier should be declared https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/3659 - sealed file record OwnedValueCodeContext : StubCodeContext + file sealed record OwnedValueCodeContext : StubCodeContext #pragma warning restore SA1400 // Access modifier should be declared { private readonly StubCodeContext _innerContext; @@ -197,7 +197,7 @@ public override (string managed, string native) GetIdentifiers(TypePositionInfo } #pragma warning disable SA1400 // Access modifier should be declared https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/3659 - static file class OwnershipTrackingHelpers + file static class OwnershipTrackingHelpers #pragma warning restore SA1400 // Access modifier should be declared { public const string OwnOriginalValueIdentifier = "ownOriginal";