Skip to content

Commit

Permalink
Use collection expressions for source generation
Browse files Browse the repository at this point in the history
  • Loading branch information
afxres committed Jun 1, 2024
1 parent 1f3cae0 commit 0172994
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ private void AppendConverterHead()
{
var members = this.members;
Output.AppendIndent(1, $"private sealed class {OutputConverterTypeName}(", ")", members.Length, i => $"{GetConverterTypeFullName(i)} cvt{i}");
Output.AppendIndent(2, $": Mikodev.Binary.Converter<{SymbolTypeFullName}>(Mikodev.Binary.Components.TupleObject.GetConverterLength(new {Constants.IConverterTypeName}[] {{ ", $" }}))", members.Length, x => $"cvt{x}");
Output.AppendIndent(2, $": Mikodev.Binary.Converter<{SymbolTypeFullName}>(Mikodev.Binary.Components.TupleObject.GetConverterLength([", $"]))", members.Length, x => $"cvt{x}");
Output.AppendIndent(1, $"{{");
CancellationToken.ThrowIfCancellationRequested();
}
Expand Down

0 comments on commit 0172994

Please sign in to comment.