1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

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
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)