public void WriteSyntax(SyntaxBuilder builder) { builder.Clear(); if (Usings != null && Usings.Any()) { foreach (var u in Usings) { builder.Line($"using {u};"); } builder.Line(); } builder.Line($"namespace {Namespace}"); builder.Block(() => { if (Class != null) { Class.WriteSyntax(builder); } if (Enum != null) { Enum.WriteSyntax(builder); } if (Interface != null) { Interface.WriteSyntax(builder); } }); }