summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-02-15 15:44:47 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-02-15 15:44:47 +0100
commit1efc3625fa945854282a58bd717fbb5ff5f07b1b (patch)
tree350eec7c5fd6ddd9441893eb712847712e9f76ba /modules
parentef5d6ccfb7bf155a238ada79db12ea41ca993116 (diff)
parent7b348708e8244aef4b523e5336cb99890be4b77f (diff)
downloadredot-engine-1efc3625fa945854282a58bd717fbb5ff5f07b1b.tar.gz
Merge pull request #87342 from raulsntos/dotnet/warnings/RS1024
C#: Use SymbolEqualityComparer
Diffstat (limited to 'modules')
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptPathAttributeGenerator.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptPathAttributeGenerator.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptPathAttributeGenerator.cs
index d6d8a93e03..625a6f9921 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptPathAttributeGenerator.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptPathAttributeGenerator.cs
@@ -55,8 +55,8 @@ namespace Godot.SourceGenerators
.Where(x =>
// Ignore classes whose name is not the same as the file name
Path.GetFileNameWithoutExtension(x.cds.SyntaxTree.FilePath) == x.symbol.Name)
- .GroupBy(x => x.symbol)
- .ToDictionary(g => g.Key, g => g.Select(x => x.cds));
+ .GroupBy<(ClassDeclarationSyntax cds, INamedTypeSymbol symbol), INamedTypeSymbol>(x => x.symbol, SymbolEqualityComparer.Default)
+ .ToDictionary<IGrouping<INamedTypeSymbol, (ClassDeclarationSyntax cds, INamedTypeSymbol symbol)>, INamedTypeSymbol, IEnumerable<ClassDeclarationSyntax>>(g => g.Key, g => g.Select(x => x.cds), SymbolEqualityComparer.Default);
foreach (var godotClass in godotClasses)
{