mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 17:28:27 -04:00
Small formatting fix for the source generator output files
This commit is contained in:
@@ -142,13 +142,12 @@ public class CmdAttribute : System.Attribute
|
|||||||
foreach (var className in model.ClassHierarchy)
|
foreach (var className in model.ClassHierarchy)
|
||||||
{
|
{
|
||||||
tw.WriteLine($"public partial class {className}");
|
tw.WriteLine($"public partial class {className}");
|
||||||
tw.Write("{");
|
tw.WriteLine("{");
|
||||||
tw.Indent ++;
|
tw.Indent ++;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (var method in model.Methods)
|
foreach (var method in model.Methods)
|
||||||
{
|
{
|
||||||
tw.WriteLine();
|
|
||||||
tw.WriteLine("[NadekoCommand]");
|
tw.WriteLine("[NadekoCommand]");
|
||||||
tw.WriteLine("[Aliases]");
|
tw.WriteLine("[Aliases]");
|
||||||
tw.WriteLine($"public partial {method.ReturnType} {method.MethodName}({string.Join(", ", method.Params)});");
|
tw.WriteLine($"public partial {method.ReturnType} {method.MethodName}({string.Join(", ", method.Params)});");
|
||||||
|
Reference in New Issue
Block a user