Merge pull request #87342 from raulsntos/dotnet/warnings/RS1024
C#: Use SymbolEqualityComparer
This commit is contained in:
commit
1efc3625fa
@ -55,8 +55,8 @@ namespace Godot.SourceGenerators
|
|||||||
.Where(x =>
|
.Where(x =>
|
||||||
// Ignore classes whose name is not the same as the file name
|
// Ignore classes whose name is not the same as the file name
|
||||||
Path.GetFileNameWithoutExtension(x.cds.SyntaxTree.FilePath) == x.symbol.Name)
|
Path.GetFileNameWithoutExtension(x.cds.SyntaxTree.FilePath) == x.symbol.Name)
|
||||||
.GroupBy(x => x.symbol)
|
.GroupBy<(ClassDeclarationSyntax cds, INamedTypeSymbol symbol), INamedTypeSymbol>(x => x.symbol, SymbolEqualityComparer.Default)
|
||||||
.ToDictionary(g => g.Key, g => g.Select(x => x.cds));
|
.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)
|
foreach (var godotClass in godotClasses)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user