Skip to content
Draft
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
3 changes: 3 additions & 0 deletions ICSharpCode.Decompiler/CSharp/CSharpLanguageVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.

using NetEscapades.EnumGenerators;

namespace ICSharpCode.Decompiler.CSharp
{
[EnumExtensions]
public enum LanguageVersion
{
CSharp1 = 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@

using System;

using NetEscapades.EnumGenerators;

namespace ICSharpCode.Decompiler.CSharp.Resolver
{
[Flags]
[EnumExtensions]
public enum OverloadResolutionErrors
{
None = 0,
Expand Down
3 changes: 3 additions & 0 deletions ICSharpCode.Decompiler/CSharp/Syntax/Modifiers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,12 @@

using System;

using NetEscapades.EnumGenerators;

namespace ICSharpCode.Decompiler.CSharp.Syntax
{
[Flags]
[EnumExtensions]
public enum Modifiers
{
None = 0,
Expand Down
5 changes: 3 additions & 2 deletions ICSharpCode.Decompiler/ICSharpCode.Decompiler.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@
<None Include="PackageReadme.md" Pack="true" PackagePath="\" />
<None Include="DecompilerNuGetPackageIcon.png" Pack="true" PackagePath="\" />
</ItemGroup>

<!-- https://devblogs.microsoft.com/nuget/enable-repeatable-package-restores-using-a-lock-file/ -->
<PropertyGroup>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<RestoreLockedMode>true</RestoreLockedMode>
<RestoreLockedMode>true</RestoreLockedMode>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
Expand Down Expand Up @@ -84,6 +84,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</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.Reflection.Metadata" Version="9.0.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
Expand Down
3 changes: 3 additions & 0 deletions ICSharpCode.Decompiler/IL/InstructionFlags.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@

using System;

using NetEscapades.EnumGenerators;

namespace ICSharpCode.Decompiler.IL
{
[Flags]
[EnumExtensions]
public enum InstructionFlags
{
None = 0,
Expand Down
4 changes: 4 additions & 0 deletions ICSharpCode.Decompiler/IL/Instructions/DynamicInstructions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@
using ICSharpCode.Decompiler.TypeSystem;
using ICSharpCode.Decompiler.Util;

using NetEscapades.EnumGenerators;

namespace ICSharpCode.Decompiler.IL
{
[Flags]
[EnumExtensions]
public enum CSharpArgumentInfoFlags
{
None = 0,
Expand All @@ -41,6 +44,7 @@ public enum CSharpArgumentInfoFlags
}

[Flags]
[EnumExtensions]
public enum CSharpBinderFlags
{
None = 0,
Expand Down
3 changes: 3 additions & 0 deletions ICSharpCode.Decompiler/IL/Transforms/ILInlining.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@
using ICSharpCode.Decompiler.TypeSystem;
using ICSharpCode.Decompiler.TypeSystem.Implementation;

using NetEscapades.EnumGenerators;

namespace ICSharpCode.Decompiler.IL.Transforms
{
[Flags]
[EnumExtensions]
public enum InliningOptions
{
None = 0,
Expand Down
3 changes: 3 additions & 0 deletions ICSharpCode.Decompiler/Output/IAmbience.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@

using ICSharpCode.Decompiler.TypeSystem;

using NetEscapades.EnumGenerators;

namespace ICSharpCode.Decompiler.Output
{
[Flags]
[EnumExtensions]
public enum ConversionFlags
{
/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions ICSharpCode.Decompiler/TypeSystem/DecompilerTypeSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
using ICSharpCode.Decompiler.TypeSystem.Implementation;
using ICSharpCode.Decompiler.Util;

using NetEscapades.EnumGenerators;

using static ICSharpCode.Decompiler.Metadata.MetadataExtensions;

using SRM = System.Reflection.Metadata;
Expand All @@ -35,6 +37,7 @@ namespace ICSharpCode.Decompiler.TypeSystem
/// Options that control how metadata is represented in the type system.
/// </summary>
[Flags]
[EnumExtensions]
public enum TypeSystemOptions
{
/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions ICSharpCode.Decompiler/TypeSystem/IType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
using System;
using System.Collections.Generic;

using NetEscapades.EnumGenerators;

namespace ICSharpCode.Decompiler.TypeSystem
{
/// <summary>
Expand Down Expand Up @@ -335,6 +337,7 @@ public interface IType : INamedElement, IEquatable<IType>
}

[Flags]
[EnumExtensions]
public enum GetMemberOptions
{
/// <summary>
Expand Down
14 changes: 14 additions & 0 deletions ICSharpCode.Decompiler/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@
"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": {
"type": "Direct",
"requested": "[2.0.3, )",
Expand Down Expand Up @@ -68,6 +77,11 @@
"resolved": "8.0.0",
"contentHash": "dk9JPxTCIevS75HyEQ0E4OVAFhB2N+V9ShCXf8Q6FkUQZDkgLI12y679Nym1YqsiSysuQskT7Z+6nUf3yab6Vw=="
},
"NetEscapades.EnumGenerators": {
"type": "Transitive",
"resolved": "1.0.0-beta16",
"contentHash": "QKRivsr5EFhkDQbM//DLrdRCkX3X8BtXwsgnp1saswTlXaqzIBgiGFxNFlgEv/WHdKRU9mfRGW2l1dhVFsonyg=="
},
"System.Buffers": {
"type": "Transitive",
"resolved": "4.5.1",
Expand Down
Loading