Code cleanup

This commit is contained in:
2025-08-18 21:15:34 +04:00
parent c809470fb0
commit 065430a52f
5 changed files with 5 additions and 148 deletions
@@ -5,6 +5,7 @@ using System.Text;
using System.Xml.Linq;
using Telegrator.RoslynExtensions;
#if DEBUG
namespace Telegrator.RoslynGenerators
{
/// <summary>
@@ -15,11 +16,6 @@ namespace Telegrator.RoslynGenerators
{
public void Initialize(IncrementalGeneratorInitializationContext context)
{
#if RELEASE
// DEBUG ONLY GENERATOR
return;
#endif
IncrementalValueProvider<ImmutableArray<BaseTypeDeclarationSyntax>> typeDeclarations = context.SyntaxProvider
.CreateSyntaxProvider(
predicate: (node, _) => node is ClassDeclarationSyntax || node is InterfaceDeclarationSyntax || node is StructDeclarationSyntax || node is EnumDeclarationSyntax,
@@ -285,4 +281,5 @@ namespace Telegrator.RoslynGenerators
return type.Name;
}
}
}
}
#endif