Skip to content

Commit

Permalink
fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Lightczx committed Jul 11, 2024
1 parent 140a4e2 commit 96453c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>Snap.Hutao.SourceGeneration</id>
<version>1.1.2</version>
<version>1.1.3</version>
<authors>DGP Studio</authors>
<developmentDependency>true</developmentDependency>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,14 @@ partial class {{context3.Symbol.ToDisplayString(SymbolDisplayFormats.QualifiedNo
{
return propertyName switch
{
{{FillProperties(context3.Symbol)}}
_ => default,
{{FillProperties(context3.Symbol)}} _ => default,
};
}
}
""");


production.AddSource($"{context3.Symbol.ToDisplayString().NormalizeSymbolName()}.ctor.g.cs", sourceBuilder.ToString());
production.AddSource($"{context3.Symbol.ToDisplayString().NormalizeSymbolName()}.g.cs", sourceBuilder.ToString());
}

private static string FillProperties(INamedTypeSymbol classSymbol)
Expand Down

0 comments on commit 96453c2

Please sign in to comment.