Browse Source

Merge branch 'famandasm' of https://github.com/pentp/ILSpy into pentp-famandasm

pull/1010/head
Siegfried Pammer 8 years ago
parent
commit
f764f94edb
  1. 2
      ICSharpCode.Decompiler/CSharp/Syntax/CSharpModifierToken.cs
  2. 3
      ICSharpCode.Decompiler/CSharp/Syntax/TypeSystemAstBuilder.cs
  3. 2
      ICSharpCode.Decompiler/TypeSystem/Accessibility.cs

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

@ -62,7 +62,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
// Not worth using a dictionary for such few elements. // Not worth using a dictionary for such few elements.
// This table is sorted in the order that modifiers should be output when generating code. // This table is sorted in the order that modifiers should be output when generating code.
static readonly Modifiers[] allModifiers = { static readonly Modifiers[] allModifiers = {
Modifiers.Public, Modifiers.Protected, Modifiers.Private, Modifiers.Internal, Modifiers.Public, Modifiers.Private, Modifiers.Protected, Modifiers.Internal,
Modifiers.New, Modifiers.New,
Modifiers.Unsafe, Modifiers.Unsafe,
Modifiers.Abstract, Modifiers.Virtual, Modifiers.Sealed, Modifiers.Static, Modifiers.Override, Modifiers.Abstract, Modifiers.Virtual, Modifiers.Sealed, Modifiers.Static, Modifiers.Override,

3
ICSharpCode.Decompiler/CSharp/Syntax/TypeSystemAstBuilder.cs

@ -1057,8 +1057,9 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
case Accessibility.Internal: case Accessibility.Internal:
return Modifiers.Internal; return Modifiers.Internal;
case Accessibility.ProtectedOrInternal: case Accessibility.ProtectedOrInternal:
case Accessibility.ProtectedAndInternal:
return Modifiers.Protected | Modifiers.Internal; return Modifiers.Protected | Modifiers.Internal;
case Accessibility.ProtectedAndInternal:
return Modifiers.Private | Modifiers.Protected;
default: default:
return Modifiers.None; return Modifiers.None;
} }

2
ICSharpCode.Decompiler/TypeSystem/Accessibility.cs

@ -53,7 +53,7 @@ namespace ICSharpCode.Decompiler.TypeSystem
/// <summary> /// <summary>
/// The entity is accessible in derived classes within the same project content. /// The entity is accessible in derived classes within the same project content.
/// </summary> /// </summary>
/// <remarks>C# does not support this accessibility.</remarks> /// <remarks>This corresponds to C# 'private protected'.</remarks>
ProtectedAndInternal, ProtectedAndInternal,
} }

Loading…
Cancel
Save