C#: Ignore explicit interface implementations

(cherry picked from commit 0372bd56b6)
This commit is contained in:
Raul Santos 2023-03-04 19:16:48 +01:00 committed by Yuri Sizov
parent 079c8ea719
commit ad6fa1cd25
4 changed files with 34 additions and 2 deletions

View file

@ -113,7 +113,7 @@ namespace Godot.SourceGenerators
var propertySymbols = members
.Where(s => !s.IsStatic && s.Kind == SymbolKind.Property)
.Cast<IPropertySymbol>()
.Where(s => !s.IsIndexer);
.Where(s => !s.IsIndexer && s.ExplicitInterfaceImplementations.Length == 0);
var fieldSymbols = members
.Where(s => !s.IsStatic && s.Kind == SymbolKind.Field && !s.IsImplicitlyDeclared)