C#: Generate signal event with the same accessibility as the delegate

This commit is contained in:
Raul Santos 2022-11-03 20:10:11 +01:00
parent 2d6af000e7
commit 445e822bcf
No known key found for this signature in database
GPG key ID: B532473AE3A803E4
2 changed files with 27 additions and 1 deletions

View file

@ -276,7 +276,7 @@ namespace Godot.SourceGenerators
source.Append(
$" /// <inheritdoc cref=\"{signalDelegate.DelegateSymbol.FullQualifiedNameIncludeGlobal()}\"/>\n");
source.Append(" public event ")
source.Append($" {signalDelegate.DelegateSymbol.GetAccessibilityKeyword()} event ")
.Append(signalDelegate.DelegateSymbol.FullQualifiedNameIncludeGlobal())
.Append(" @")
.Append(signalName)