[.NET] Add IgnoreMember attribute to exclude members from Godot
Co-authored-by: kkjinping <ygkn1992@vip.qq.com>
This commit is contained in:
@@ -128,6 +128,8 @@ namespace Godot.SourceGenerators
|
||||
var methodSymbols = members
|
||||
.Where(s => s.Kind == SymbolKind.Method && !s.IsImplicitlyDeclared)
|
||||
.Cast<IMethodSymbol>()
|
||||
.Where(m => !m.GetAttributes()
|
||||
.Any(a => a.AttributeClass?.IsGodotIgnoreMemberAttribute() ?? false))
|
||||
.Where(m => m.MethodKind == MethodKind.Ordinary);
|
||||
|
||||
var godotClassMethods = methodSymbols.WhereHasGodotCompatibleSignature(typeCache)
|
||||
|
||||
Reference in New Issue
Block a user