Skip to content

Commit

Permalink
release v3.1.0
Browse files Browse the repository at this point in the history
- [fix] fix partial class generation error for classes without a namespace
  • Loading branch information
JasonXuDeveloper committed Jan 19, 2025
1 parent 009d1dc commit 84fcb26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Nino.Generator/PartialClassGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public partial {{modifer}} {{typeSimpleName}}
""";
if (hasNamespace)
{
code += "}";
code += "\n}";
}

spc.AddSource($"{typeSimpleName.Replace("<", "_").Replace(">", "_").Replace(",", "_")}.g.cs", code);
Expand Down

0 comments on commit 84fcb26

Please sign in to comment.