Skip to content

Commit

Permalink
Fix XEnumGenerator to address generation code modification defects
Browse files Browse the repository at this point in the history
  • Loading branch information
kochounoyume committed Sep 23, 2024
1 parent 00c6267 commit c1ff4c7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Binary file not shown.
2 changes: 1 addition & 1 deletion Packages/MinimalUtility/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jp.kochounoyume.minimal.utility",
"displayName": "MinimalUtility",
"version": "1.1.9",
"version": "1.2.0",
"unity": "2022.3",
"keyword": [
"Debug",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,12 @@ static Cache()

var cacheSb = new StringBuilder();

var typeHashset = new HashSet<ITypeSymbol>(SymbolEqualityComparer.Default);

foreach (var method in metaDataArray)
{
var genericSymbol = method.TypeArguments[0];
if (!typeHashset.Add(genericSymbol)) continue;
if (genericSymbol.DeclaredAccessibility != Accessibility.Public)
{
var syntax = genericSymbol.DeclaringSyntaxReferences[0].GetSyntax();
Expand Down

0 comments on commit c1ff4c7

Please sign in to comment.