Skip to content

Commit

Permalink
Merge pull request #706 from Cysharp/revert/701
Browse files Browse the repository at this point in the history
Revert "Merge pull request #701 from Cysharp/feature/RemoveGenerateAttribute
  • Loading branch information
mayuki authored Oct 30, 2023
2 parents 8c46502 + f0ffb69 commit 9d946e0
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/MagicOnion.Abstractions/GenerateDefineDebugAttribute.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MagicOnion
{
/// <summary>
/// instruction for moc.exe, surround #if symbol with output code.
/// </summary>
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Interface, AllowMultiple = false, Inherited = false)]
[Obsolete("GenerateDefineDebug is no longer used from the generator. Use C# '#if' directive instead.")]
public class GenerateDefineDebugAttribute : Attribute
{
public GenerateDefineDebugAttribute()
{
}
}
}
16 changes: 16 additions & 0 deletions src/MagicOnion.Abstractions/GenerateIfDirectiveAttribute.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System;

namespace MagicOnion
{
/// <summary>
/// instruction for moc.exe, surround #if symbol with output code.
/// </summary>
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Interface, AllowMultiple = false, Inherited = false)]
[Obsolete("GenerateIfDirective is no longer used from the generator. Use C# '#if' directive instead.")]
public class GenerateIfDirectiveAttribute : Attribute
{
public GenerateIfDirectiveAttribute(string condition)
{
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MagicOnion
{
/// <summary>
/// instruction for moc.exe, surround #if symbol with output code.
/// </summary>
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Interface, AllowMultiple = false, Inherited = false)]
[Obsolete("GenerateDefineDebug is no longer used from the generator. Use C# '#if' directive instead.")]
public class GenerateDefineDebugAttribute : Attribute
{
public GenerateDefineDebugAttribute()
{
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System;

namespace MagicOnion
{
/// <summary>
/// instruction for moc.exe, surround #if symbol with output code.
/// </summary>
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Interface, AllowMultiple = false, Inherited = false)]
[Obsolete("GenerateIfDirective is no longer used from the generator. Use C# '#if' directive instead.")]
public class GenerateIfDirectiveAttribute : Attribute
{
public GenerateIfDirectiveAttribute(string condition)
{
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9d946e0

Please sign in to comment.