C#: Generate signal event with the same accessibility as the delegate
This commit is contained in:
parent
2d6af000e7
commit
445e822bcf
2 changed files with 27 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue