Browse Source

Fix: override members are not recognized

AnnulusGames 1 year ago
parent
commit
eb58252eb9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Lua.SourceGenerator/TypeMetadata.cs

+ 2 - 2
src/Lua.SourceGenerator/TypeMetadata.cs

@@ -21,7 +21,7 @@ internal class TypeMetadata
         TypeName = symbol.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat);
         TypeName = symbol.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat);
         FullTypeName = symbol.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat);
         FullTypeName = symbol.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat);
 
 
-        Properties = Symbol.GetAllMembers()
+        Properties = Symbol.GetAllMembers(false)
             .Where(x => x is (IFieldSymbol or IPropertySymbol) and { IsImplicitlyDeclared: false })
             .Where(x => x is (IFieldSymbol or IPropertySymbol) and { IsImplicitlyDeclared: false })
             .Where(x =>
             .Where(x =>
             {
             {
@@ -39,7 +39,7 @@ internal class TypeMetadata
             .Select(x => new PropertyMetadata(x, references))
             .Select(x => new PropertyMetadata(x, references))
             .ToArray();
             .ToArray();
 
 
-        Methods = Symbol.GetAllMembers()
+        Methods = Symbol.GetAllMembers(false)
             .Where(x => x is IMethodSymbol and { IsImplicitlyDeclared: false })
             .Where(x => x is IMethodSymbol and { IsImplicitlyDeclared: false })
             .Select(x => (IMethodSymbol)x)
             .Select(x => (IMethodSymbol)x)
             .Where(x =>
             .Where(x =>