Browse Source

Using EnumExtensions source generators & interception (ics.d-only)

enumext
Christoph Wille 2 weeks ago
parent
commit
ca0adee72f
  1. 3
      ICSharpCode.Decompiler/CSharp/CSharpLanguageVersion.cs
  2. 3
      ICSharpCode.Decompiler/CSharp/Resolver/OverloadResolutionErrors.cs
  3. 3
      ICSharpCode.Decompiler/CSharp/Syntax/Modifiers.cs
  4. 1
      ICSharpCode.Decompiler/ICSharpCode.Decompiler.csproj
  5. 3
      ICSharpCode.Decompiler/IL/InstructionFlags.cs
  6. 4
      ICSharpCode.Decompiler/IL/Instructions/DynamicInstructions.cs
  7. 3
      ICSharpCode.Decompiler/IL/Transforms/ILInlining.cs
  8. 3
      ICSharpCode.Decompiler/Output/IAmbience.cs
  9. 3
      ICSharpCode.Decompiler/TypeSystem/DecompilerTypeSystem.cs
  10. 3
      ICSharpCode.Decompiler/TypeSystem/IType.cs
  11. 14
      ICSharpCode.Decompiler/packages.lock.json

3
ICSharpCode.Decompiler/CSharp/CSharpLanguageVersion.cs

@ -16,8 +16,11 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE. // DEALINGS IN THE SOFTWARE.
using NetEscapades.EnumGenerators;
namespace ICSharpCode.Decompiler.CSharp namespace ICSharpCode.Decompiler.CSharp
{ {
[EnumExtensions]
public enum LanguageVersion public enum LanguageVersion
{ {
CSharp1 = 1, CSharp1 = 1,

3
ICSharpCode.Decompiler/CSharp/Resolver/OverloadResolutionErrors.cs

@ -18,9 +18,12 @@
using System; using System;
using NetEscapades.EnumGenerators;
namespace ICSharpCode.Decompiler.CSharp.Resolver namespace ICSharpCode.Decompiler.CSharp.Resolver
{ {
[Flags] [Flags]
[EnumExtensions]
public enum OverloadResolutionErrors public enum OverloadResolutionErrors
{ {
None = 0, None = 0,

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

@ -28,9 +28,12 @@
using System; using System;
using NetEscapades.EnumGenerators;
namespace ICSharpCode.Decompiler.CSharp.Syntax namespace ICSharpCode.Decompiler.CSharp.Syntax
{ {
[Flags] [Flags]
[EnumExtensions]
public enum Modifiers public enum Modifiers
{ {
None = 0, None = 0,

1
ICSharpCode.Decompiler/ICSharpCode.Decompiler.csproj

@ -84,6 +84,7 @@
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference> </PackageReference>
<PackageReference Include="NetEscapades.EnumGenerators.Interceptors" Version="1.0.0-beta16" PrivateAssets="all" ExcludeAssets="runtime" />
<PackageReference Include="System.Collections.Immutable" Version="9.0.0" /> <PackageReference Include="System.Collections.Immutable" Version="9.0.0" />
<PackageReference Include="System.Reflection.Metadata" Version="9.0.0" /> <PackageReference Include="System.Reflection.Metadata" Version="9.0.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0"> <PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">

3
ICSharpCode.Decompiler/IL/InstructionFlags.cs

@ -19,9 +19,12 @@
using System; using System;
using NetEscapades.EnumGenerators;
namespace ICSharpCode.Decompiler.IL namespace ICSharpCode.Decompiler.IL
{ {
[Flags] [Flags]
[EnumExtensions]
public enum InstructionFlags public enum InstructionFlags
{ {
None = 0, None = 0,

4
ICSharpCode.Decompiler/IL/Instructions/DynamicInstructions.cs

@ -26,9 +26,12 @@ using ICSharpCode.Decompiler.IL.Patterns;
using ICSharpCode.Decompiler.TypeSystem; using ICSharpCode.Decompiler.TypeSystem;
using ICSharpCode.Decompiler.Util; using ICSharpCode.Decompiler.Util;
using NetEscapades.EnumGenerators;
namespace ICSharpCode.Decompiler.IL namespace ICSharpCode.Decompiler.IL
{ {
[Flags] [Flags]
[EnumExtensions]
public enum CSharpArgumentInfoFlags public enum CSharpArgumentInfoFlags
{ {
None = 0, None = 0,
@ -41,6 +44,7 @@ namespace ICSharpCode.Decompiler.IL
} }
[Flags] [Flags]
[EnumExtensions]
public enum CSharpBinderFlags public enum CSharpBinderFlags
{ {
None = 0, None = 0,

3
ICSharpCode.Decompiler/IL/Transforms/ILInlining.cs

@ -24,9 +24,12 @@ using System.Reflection;
using ICSharpCode.Decompiler.TypeSystem; using ICSharpCode.Decompiler.TypeSystem;
using ICSharpCode.Decompiler.TypeSystem.Implementation; using ICSharpCode.Decompiler.TypeSystem.Implementation;
using NetEscapades.EnumGenerators;
namespace ICSharpCode.Decompiler.IL.Transforms namespace ICSharpCode.Decompiler.IL.Transforms
{ {
[Flags] [Flags]
[EnumExtensions]
public enum InliningOptions public enum InliningOptions
{ {
None = 0, None = 0,

3
ICSharpCode.Decompiler/Output/IAmbience.cs

@ -20,9 +20,12 @@ using System;
using ICSharpCode.Decompiler.TypeSystem; using ICSharpCode.Decompiler.TypeSystem;
using NetEscapades.EnumGenerators;
namespace ICSharpCode.Decompiler.Output namespace ICSharpCode.Decompiler.Output
{ {
[Flags] [Flags]
[EnumExtensions]
public enum ConversionFlags public enum ConversionFlags
{ {
/// <summary> /// <summary>

3
ICSharpCode.Decompiler/TypeSystem/DecompilerTypeSystem.cs

@ -25,6 +25,8 @@ using ICSharpCode.Decompiler.Metadata;
using ICSharpCode.Decompiler.TypeSystem.Implementation; using ICSharpCode.Decompiler.TypeSystem.Implementation;
using ICSharpCode.Decompiler.Util; using ICSharpCode.Decompiler.Util;
using NetEscapades.EnumGenerators;
using static ICSharpCode.Decompiler.Metadata.MetadataExtensions; using static ICSharpCode.Decompiler.Metadata.MetadataExtensions;
using SRM = System.Reflection.Metadata; using SRM = System.Reflection.Metadata;
@ -35,6 +37,7 @@ namespace ICSharpCode.Decompiler.TypeSystem
/// Options that control how metadata is represented in the type system. /// Options that control how metadata is represented in the type system.
/// </summary> /// </summary>
[Flags] [Flags]
[EnumExtensions]
public enum TypeSystemOptions public enum TypeSystemOptions
{ {
/// <summary> /// <summary>

3
ICSharpCode.Decompiler/TypeSystem/IType.cs

@ -21,6 +21,8 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using NetEscapades.EnumGenerators;
namespace ICSharpCode.Decompiler.TypeSystem namespace ICSharpCode.Decompiler.TypeSystem
{ {
/// <summary> /// <summary>
@ -335,6 +337,7 @@ namespace ICSharpCode.Decompiler.TypeSystem
} }
[Flags] [Flags]
[EnumExtensions]
public enum GetMemberOptions public enum GetMemberOptions
{ {
/// <summary> /// <summary>

14
ICSharpCode.Decompiler/packages.lock.json

@ -18,6 +18,15 @@
"Microsoft.SourceLink.Common": "8.0.0" "Microsoft.SourceLink.Common": "8.0.0"
} }
}, },
"NetEscapades.EnumGenerators.Interceptors": {
"type": "Direct",
"requested": "[1.0.0-beta16, )",
"resolved": "1.0.0-beta16",
"contentHash": "pGcgfiVbv8+Yvs4de5hZW8t7Z1UmK7aPY4aZKzJxVFutUwNyAoV3USqRNde/MPE+USlKzGbx8qeq9Pfrec15xg==",
"dependencies": {
"NetEscapades.EnumGenerators": "1.0.0-beta16"
}
},
"NETStandard.Library": { "NETStandard.Library": {
"type": "Direct", "type": "Direct",
"requested": "[2.0.3, )", "requested": "[2.0.3, )",
@ -68,6 +77,11 @@
"resolved": "8.0.0", "resolved": "8.0.0",
"contentHash": "dk9JPxTCIevS75HyEQ0E4OVAFhB2N+V9ShCXf8Q6FkUQZDkgLI12y679Nym1YqsiSysuQskT7Z+6nUf3yab6Vw==" "contentHash": "dk9JPxTCIevS75HyEQ0E4OVAFhB2N+V9ShCXf8Q6FkUQZDkgLI12y679Nym1YqsiSysuQskT7Z+6nUf3yab6Vw=="
}, },
"NetEscapades.EnumGenerators": {
"type": "Transitive",
"resolved": "1.0.0-beta16",
"contentHash": "QKRivsr5EFhkDQbM//DLrdRCkX3X8BtXwsgnp1saswTlXaqzIBgiGFxNFlgEv/WHdKRU9mfRGW2l1dhVFsonyg=="
},
"System.Buffers": { "System.Buffers": {
"type": "Transitive", "type": "Transitive",
"resolved": "4.5.1", "resolved": "4.5.1",

Loading…
Cancel
Save