Skip to content

Commit 783911d

Browse files
committed
Source generator fix
1 parent 6b5f5e6 commit 783911d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

EntitiesDb.SourceGenerators/ForEachTemplates.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,12 +197,12 @@ private static string GetEnumeration(StringBuilder stringBuilder, IParameterSymb
197197
if (hasEntityId)
198198
{
199199
stringBuilder.Append(Environment.NewLine);
200-
stringBuilder.Append(" entityHandle.Value,");
200+
stringBuilder.Append(" entityHandle.Value");
201201
}
202202
index = 0;
203203
foreach (var componentParameter in componentParameters)
204204
{
205-
if (index != 0) stringBuilder.Append(',');
205+
if (index != 0 || hasEntityId) stringBuilder.Append(',');
206206
stringBuilder.Append(Environment.NewLine);
207207
stringBuilder.Append($" ref componentHandle{++index}.AsRef()");
208208
}

EntitiesDb/EntitiesDb.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1010
<Copyright>2022, Unnamed Studios, LLC</Copyright>
1111
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
12-
<VersionPrefix>2.1.2</VersionPrefix>
12+
<VersionPrefix>2.1.3</VersionPrefix>
1313
<Version>$(VersionPrefix)</Version>
1414
<AssemblyVersion>$(VersionPrefix)</AssemblyVersion>
1515
<FileVersion>$(VersionPrefix)</FileVersion>

0 commit comments

Comments
 (0)