Browse Source

Use "static abstract" instead of "abstract static".

pull/2833/head
Daniel Grunwald 3 years ago
parent
commit
516341a09b
  1. 12
      ICSharpCode.Decompiler.Tests/TestCases/Pretty/StaticAbstractInterfaceMembers.cs
  2. 2
      ICSharpCode.Decompiler/CSharp/Syntax/CSharpModifierToken.cs

12
ICSharpCode.Decompiler.Tests/TestCases/Pretty/StaticAbstractInterfaceMembers.cs

@ -4,11 +4,11 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty.StaticAbstractInterfaceM @@ -4,11 +4,11 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty.StaticAbstractInterfaceM
{
public interface I
{
abstract static int Capacity { get; }
abstract static int Count { get; set; }
abstract static int SetterOnly { set; }
abstract static event EventHandler E;
abstract static I CreateI();
static abstract int Capacity { get; }
static abstract int Count { get; set; }
static abstract int SetterOnly { set; }
static abstract event EventHandler E;
static abstract I CreateI();
}
public class X : I
@ -72,7 +72,7 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty.StaticAbstractInterfaceM @@ -72,7 +72,7 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty.StaticAbstractInterfaceM
public interface IGetNext<T> where T : IGetNext<T>
{
abstract static T operator ++(T other);
static abstract T operator ++(T other);
}
public struct WrappedInteger : IGetNext<WrappedInteger>

2
ICSharpCode.Decompiler/CSharp/Syntax/CSharpModifierToken.cs

@ -66,7 +66,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax @@ -66,7 +66,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
Modifiers.Public, Modifiers.Private, Modifiers.Protected, Modifiers.Internal,
Modifiers.New,
Modifiers.Unsafe,
Modifiers.Abstract, Modifiers.Virtual, Modifiers.Sealed, Modifiers.Static, Modifiers.Override,
Modifiers.Static, Modifiers.Abstract, Modifiers.Virtual, Modifiers.Sealed, Modifiers.Override,
Modifiers.Required, Modifiers.Readonly, Modifiers.Volatile,
Modifiers.Ref,
Modifiers.Extern, Modifiers.Partial, Modifiers.Const,

Loading…
Cancel
Save