Skip to content

Commit 98014e5

Browse files
committed
Merge pull request #108885 from aaronfranke/csharp-public-explicit
Use explicit public access modifier in C# code
2 parents 939c7d5 + 9993438 commit 98014e5

File tree

7 files changed

+19
-19
lines changed

7 files changed

+19
-19
lines changed

modules/mono/editor/GodotTools/GodotTools.IdeMessaging/IHandshake.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ namespace GodotTools.IdeMessaging
44
{
55
public interface IHandshake
66
{
7-
string GetHandshakeLine(string identity);
8-
bool IsValidPeerHandshake(string handshake, [NotNullWhen(true)] out string? identity, ILogger logger);
7+
public string GetHandshakeLine(string identity);
8+
public bool IsValidPeerHandshake(string handshake, [NotNullWhen(true)] out string? identity, ILogger logger);
99
}
1010
}

modules/mono/editor/GodotTools/GodotTools.IdeMessaging/ILogger.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ namespace GodotTools.IdeMessaging
44
{
55
public interface ILogger
66
{
7-
void LogDebug(string message);
8-
void LogInfo(string message);
9-
void LogWarning(string message);
10-
void LogError(string message);
11-
void LogError(string message, Exception e);
7+
public void LogDebug(string message);
8+
public void LogInfo(string message);
9+
public void LogWarning(string message);
10+
public void LogError(string message);
11+
public void LogError(string message, Exception e);
1212
}
1313
}

modules/mono/editor/GodotTools/GodotTools.IdeMessaging/IMessageHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ namespace GodotTools.IdeMessaging
44
{
55
public interface IMessageHandler
66
{
7-
Task<MessageContent> HandleRequest(Peer peer, string id, MessageContent content, ILogger logger);
7+
public Task<MessageContent> HandleRequest(Peer peer, string id, MessageContent content, ILogger logger);
88
}
99
}

modules/mono/editor/GodotTools/GodotTools.OpenVisualStudio/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,13 +281,13 @@ int IOleMessageFilter.MessagePending(IntPtr hTaskCallee, int dwTickCount, int dw
281281
private interface IOleMessageFilter
282282
{
283283
[PreserveSig]
284-
int HandleInComingCall(int dwCallType, IntPtr hTaskCaller, int dwTickCount, IntPtr lpInterfaceInfo);
284+
public int HandleInComingCall(int dwCallType, IntPtr hTaskCaller, int dwTickCount, IntPtr lpInterfaceInfo);
285285

286286
[PreserveSig]
287-
int RetryRejectedCall(IntPtr hTaskCallee, int dwTickCount, int dwRejectType);
287+
public int RetryRejectedCall(IntPtr hTaskCallee, int dwTickCount, int dwRejectType);
288288

289289
[PreserveSig]
290-
int MessagePending(IntPtr hTaskCallee, int dwTickCount, int dwPendingType);
290+
public int MessagePending(IntPtr hTaskCallee, int dwTickCount, int dwPendingType);
291291
}
292292

293293
#endregion

modules/mono/glue/GodotSharp/GodotSharp/Core/Interfaces/IAwaitable.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public interface IAwaitable
99
/// Gets an Awaiter for this <see cref="IAwaitable"/>.
1010
/// </summary>
1111
/// <returns>An Awaiter.</returns>
12-
IAwaiter GetAwaiter();
12+
public IAwaiter GetAwaiter();
1313
}
1414

1515
/// <summary>
@@ -22,6 +22,6 @@ public interface IAwaitable<out TResult>
2222
/// Gets an Awaiter for this <see cref="IAwaitable{TResult}"/>.
2323
/// </summary>
2424
/// <returns>An Awaiter.</returns>
25-
IAwaiter<TResult> GetAwaiter();
25+
public IAwaiter<TResult> GetAwaiter();
2626
}
2727
}

modules/mono/glue/GodotSharp/GodotSharp/Core/Interfaces/IAwaiter.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ public interface IAwaiter : INotifyCompletion
1010
/// <summary>
1111
/// The completion status of this <see cref="IAwaiter"/>.
1212
/// </summary>
13-
bool IsCompleted { get; }
13+
public bool IsCompleted { get; }
1414

1515
/// <summary>
1616
/// Gets the result of completion for this <see cref="IAwaiter"/>.
1717
/// </summary>
18-
void GetResult();
18+
public void GetResult();
1919
}
2020

2121
/// <summary>
@@ -27,11 +27,11 @@ public interface IAwaiter<out TResult> : INotifyCompletion
2727
/// <summary>
2828
/// The completion status of this <see cref="IAwaiter{TResult}"/>.
2929
/// </summary>
30-
bool IsCompleted { get; }
30+
public bool IsCompleted { get; }
3131

3232
/// <summary>
3333
/// Gets the result of completion for this <see cref="IAwaiter{TResult}"/>.
3434
/// </summary>
35-
TResult GetResult();
35+
public TResult GetResult();
3636
}
3737
}

modules/mono/glue/GodotSharp/GodotSharp/Core/Interfaces/ISerializationListener.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ public interface ISerializationListener
1010
/// Executed before serializing this instance's state when reloading assemblies.
1111
/// Clear any data that should not be serialized.
1212
/// </summary>
13-
void OnBeforeSerialize();
13+
public void OnBeforeSerialize();
1414

1515
/// <summary>
1616
/// Executed after deserializing this instance's state after reloading assemblies.
1717
/// Restore any state that has been lost.
1818
/// </summary>
19-
void OnAfterDeserialize();
19+
public void OnAfterDeserialize();
2020
}
2121
}

0 commit comments

Comments
 (0)