From 9993438a9e04ba402403935b28fcbf384f04d6b0 Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Tue, 22 Jul 2025 16:13:24 -0700 Subject: [PATCH] Use explicit public access modifier in C# code --- .../GodotTools/GodotTools.IdeMessaging/IHandshake.cs | 4 ++-- .../GodotTools/GodotTools.IdeMessaging/ILogger.cs | 10 +++++----- .../GodotTools.IdeMessaging/IMessageHandler.cs | 2 +- .../GodotTools/GodotTools.OpenVisualStudio/Program.cs | 6 +++--- .../GodotSharp/Core/Interfaces/IAwaitable.cs | 4 ++-- .../GodotSharp/GodotSharp/Core/Interfaces/IAwaiter.cs | 8 ++++---- .../Core/Interfaces/ISerializationListener.cs | 4 ++-- 7 files changed, 19 insertions(+), 19 deletions(-) diff --git a/modules/mono/editor/GodotTools/GodotTools.IdeMessaging/IHandshake.cs b/modules/mono/editor/GodotTools/GodotTools.IdeMessaging/IHandshake.cs index 8ec60876ccb..66ba50322fc 100644 --- a/modules/mono/editor/GodotTools/GodotTools.IdeMessaging/IHandshake.cs +++ b/modules/mono/editor/GodotTools/GodotTools.IdeMessaging/IHandshake.cs @@ -4,7 +4,7 @@ namespace GodotTools.IdeMessaging { public interface IHandshake { - string GetHandshakeLine(string identity); - bool IsValidPeerHandshake(string handshake, [NotNullWhen(true)] out string? identity, ILogger logger); + public string GetHandshakeLine(string identity); + public bool IsValidPeerHandshake(string handshake, [NotNullWhen(true)] out string? identity, ILogger logger); } } diff --git a/modules/mono/editor/GodotTools/GodotTools.IdeMessaging/ILogger.cs b/modules/mono/editor/GodotTools/GodotTools.IdeMessaging/ILogger.cs index d2855f93a13..2df480cc191 100644 --- a/modules/mono/editor/GodotTools/GodotTools.IdeMessaging/ILogger.cs +++ b/modules/mono/editor/GodotTools/GodotTools.IdeMessaging/ILogger.cs @@ -4,10 +4,10 @@ namespace GodotTools.IdeMessaging { public interface ILogger { - void LogDebug(string message); - void LogInfo(string message); - void LogWarning(string message); - void LogError(string message); - void LogError(string message, Exception e); + public void LogDebug(string message); + public void LogInfo(string message); + public void LogWarning(string message); + public void LogError(string message); + public void LogError(string message, Exception e); } } diff --git a/modules/mono/editor/GodotTools/GodotTools.IdeMessaging/IMessageHandler.cs b/modules/mono/editor/GodotTools/GodotTools.IdeMessaging/IMessageHandler.cs index 9622fcc96db..08abf9a51e9 100644 --- a/modules/mono/editor/GodotTools/GodotTools.IdeMessaging/IMessageHandler.cs +++ b/modules/mono/editor/GodotTools/GodotTools.IdeMessaging/IMessageHandler.cs @@ -4,6 +4,6 @@ namespace GodotTools.IdeMessaging { public interface IMessageHandler { - Task HandleRequest(Peer peer, string id, MessageContent content, ILogger logger); + public Task HandleRequest(Peer peer, string id, MessageContent content, ILogger logger); } } diff --git a/modules/mono/editor/GodotTools/GodotTools.OpenVisualStudio/Program.cs b/modules/mono/editor/GodotTools/GodotTools.OpenVisualStudio/Program.cs index 5bf07f626ba..45f4eded850 100644 --- a/modules/mono/editor/GodotTools/GodotTools.OpenVisualStudio/Program.cs +++ b/modules/mono/editor/GodotTools/GodotTools.OpenVisualStudio/Program.cs @@ -281,13 +281,13 @@ namespace GodotTools.OpenVisualStudio private interface IOleMessageFilter { [PreserveSig] - int HandleInComingCall(int dwCallType, IntPtr hTaskCaller, int dwTickCount, IntPtr lpInterfaceInfo); + public int HandleInComingCall(int dwCallType, IntPtr hTaskCaller, int dwTickCount, IntPtr lpInterfaceInfo); [PreserveSig] - int RetryRejectedCall(IntPtr hTaskCallee, int dwTickCount, int dwRejectType); + public int RetryRejectedCall(IntPtr hTaskCallee, int dwTickCount, int dwRejectType); [PreserveSig] - int MessagePending(IntPtr hTaskCallee, int dwTickCount, int dwPendingType); + public int MessagePending(IntPtr hTaskCallee, int dwTickCount, int dwPendingType); } #endregion diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Interfaces/IAwaitable.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Interfaces/IAwaitable.cs index 95732975328..fc13176f590 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Interfaces/IAwaitable.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Interfaces/IAwaitable.cs @@ -9,7 +9,7 @@ namespace Godot /// Gets an Awaiter for this . /// /// An Awaiter. - IAwaiter GetAwaiter(); + public IAwaiter GetAwaiter(); } /// @@ -22,6 +22,6 @@ namespace Godot /// Gets an Awaiter for this . /// /// An Awaiter. - IAwaiter GetAwaiter(); + public IAwaiter GetAwaiter(); } } diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Interfaces/IAwaiter.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Interfaces/IAwaiter.cs index 2be9f0ab45b..7394b9f3520 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Interfaces/IAwaiter.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Interfaces/IAwaiter.cs @@ -10,12 +10,12 @@ namespace Godot /// /// The completion status of this . /// - bool IsCompleted { get; } + public bool IsCompleted { get; } /// /// Gets the result of completion for this . /// - void GetResult(); + public void GetResult(); } /// @@ -27,11 +27,11 @@ namespace Godot /// /// The completion status of this . /// - bool IsCompleted { get; } + public bool IsCompleted { get; } /// /// Gets the result of completion for this . /// - TResult GetResult(); + public TResult GetResult(); } } diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Interfaces/ISerializationListener.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Interfaces/ISerializationListener.cs index 3288705dab8..6cb6de86ec9 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Interfaces/ISerializationListener.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Interfaces/ISerializationListener.cs @@ -10,12 +10,12 @@ namespace Godot /// Executed before serializing this instance's state when reloading assemblies. /// Clear any data that should not be serialized. /// - void OnBeforeSerialize(); + public void OnBeforeSerialize(); /// /// Executed after deserializing this instance's state after reloading assemblies. /// Restore any state that has been lost. /// - void OnAfterDeserialize(); + public void OnAfterDeserialize(); } }