diff --git a/src/Ceras.AotGenerator/SourceGenerator/SourceFormatterGenerator.cs b/src/Ceras.AotGenerator/SourceGenerator/SourceFormatterGenerator.cs index d0a590c..a4b0b7f 100644 --- a/src/Ceras.AotGenerator/SourceGenerator/SourceFormatterGenerator.cs +++ b/src/Ceras.AotGenerator/SourceGenerator/SourceFormatterGenerator.cs @@ -1,16 +1,14 @@ -namespace CerasAotFormatterGenerator +using Ceras; +using Ceras.Helpers; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Reflection; + +namespace CerasAotFormatterGenerator { - using Ceras; - using Ceras.Helpers; - using System; - using System.Collections.Generic; - using System.Linq; - using System.Text; - using Ceras.Formatters; - using System.Reflection; - using System.Linq; - - static class SourceFormatterGenerator + static class SourceFormatterGenerator { public static void GenerateAll(List targets, CerasSerializer ceras, StringBuilder text) { @@ -41,7 +39,6 @@ public static void UseFormatters(SerializerConfig config) static void Generate(Type type, CerasSerializer ceras, StringBuilder text) { - text.AppendLine("[GeneratedFormatterAttribute]"); text.AppendLine($"\tinternal class {type.ToVariableSafeName()}Formatter : IFormatter<{type.ToFriendlyName(true)}>"); text.AppendLine("\t{"); GenerateClassContent(text, ceras, type);