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
@@ -30,7 +30,7 @@ namespace Telegrator.Analyzers
return true;
}
private static HandlerDeclarationModel Transform(GeneratorSyntaxContext context, CancellationToken cancellationToken)
{
ClassDeclarationSyntax classSyntax = (ClassDeclarationSyntax)context.Node;
@@ -72,7 +72,7 @@ namespace Telegrator.Analyzers
sourceBuilder.AppendLine("\t}\n}");
sourceBuilder.Insert(0, string.Join("\n", usingDirectives.OrderBy(use => use)) + "\n\n");
//context.AddSource("DeveloperHelperAnalyzer.cs", sourceBuilder.ToString());
context.AddSource("DeveloperHelperAnalyzer.cs", sourceBuilder.ToString());
}
private static void ParseHandlerDeclaration(SourceProductionContext context, StringBuilder sourceBuilder, HandlerDeclarationModel handler, CancellationToken cancellationToken)