Skip to content

Commit

Permalink
Syntax fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyzimarev committed Jun 17, 2024
1 parent bfabd65 commit ec61130
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions gen/SourceGenerator/ImmutableGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,19 @@ public class ImmutableGenerator : ISourceGenerator {
}
""";

const string template = @"{Usings}
const string template = """
{Usings}

namespace {Namespace};
namespace {Namespace};

public partial class ReadOnly{ClassName} {
{Constructor}
public partial class ReadOnly{ClassName} {
{Constructor}

partial void CopyAdditionalProperties({ClassName} {ArgName});

partial void CopyAdditionalProperties({ClassName} {ArgName});
{Properties}
}";
{Properties}
}
""";

var code = template
.Replace("{Usings}", string.Join("\n", usings))
Expand Down

0 comments on commit ec61130

Please sign in to comment.