Small formatting fix for the source generator output files

This commit is contained in:
Kwoth
2022-01-01 07:14:22 +01:00
parent 25eeffa163
commit 8c6fcd2ce6

View File

@@ -142,13 +142,12 @@ public class CmdAttribute : System.Attribute
foreach (var className in model.ClassHierarchy)
{
tw.WriteLine($"public partial class {className}");
tw.Write("{");
tw.WriteLine("{");
tw.Indent ++;
}
foreach (var method in model.Methods)
{
tw.WriteLine();
tw.WriteLine("[NadekoCommand]");
tw.WriteLine("[Aliases]");
tw.WriteLine($"public partial {method.ReturnType} {method.MethodName}({string.Join(", ", method.Params)});");