Skip to content

Commit 8a57c11

Browse files
committed
[4.2] Use explicit public access modifier in C# code
1 parent 3f01d03 commit 8a57c11

7 files changed

Lines changed: 39 additions & 19 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ namespace GodotTools.IdeMessaging
22
{
33
public interface IHandshake
44
{
5-
string GetHandshakeLine(string identity);
6-
bool IsValidPeerHandshake(string handshake, out string identity, ILogger logger);
5+
public string GetHandshakeLine(string identity);
6+
public bool IsValidPeerHandshake(string handshake, out string identity, ILogger logger);
77
}
88
}

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
@@ -275,13 +275,13 @@ int IOleMessageFilter.MessagePending(IntPtr hTaskCallee, int dwTickCount, int dw
275275
private interface IOleMessageFilter
276276
{
277277
[PreserveSig]
278-
int HandleInComingCall(int dwCallType, IntPtr hTaskCaller, int dwTickCount, IntPtr lpInterfaceInfo);
278+
public int HandleInComingCall(int dwCallType, IntPtr hTaskCaller, int dwTickCount, IntPtr lpInterfaceInfo);
279279

280280
[PreserveSig]
281-
int RetryRejectedCall(IntPtr hTaskCallee, int dwTickCount, int dwRejectType);
281+
public int RetryRejectedCall(IntPtr hTaskCallee, int dwTickCount, int dwRejectType);
282282

283283
[PreserveSig]
284-
int MessagePending(IntPtr hTaskCallee, int dwTickCount, int dwPendingType);
284+
public int MessagePending(IntPtr hTaskCallee, int dwTickCount, int dwPendingType);
285285
}
286286

287287
#endregion

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ namespace Godot
55
/// </summary>
66
public interface IAwaitable
77
{
8-
IAwaiter GetAwaiter();
8+
/// <summary>
9+
/// Gets an Awaiter for this <see cref="IAwaitable"/>.
10+
/// </summary>
11+
/// <returns>An Awaiter.</returns>
12+
public IAwaiter GetAwaiter();
913
}
1014

1115
/// <summary>
@@ -14,6 +18,10 @@ public interface IAwaitable
1418
/// <typeparam name="TResult">A reference to the result to be passed out.</typeparam>
1519
public interface IAwaitable<out TResult>
1620
{
17-
IAwaiter<TResult> GetAwaiter();
21+
/// <summary>
22+
/// Gets an Awaiter for this <see cref="IAwaitable{TResult}"/>.
23+
/// </summary>
24+
/// <returns>An Awaiter.</returns>
25+
public IAwaiter<TResult> GetAwaiter();
1826
}
1927
}

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

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,15 @@ namespace Godot
77
/// </summary>
88
public interface IAwaiter : INotifyCompletion
99
{
10-
bool IsCompleted { get; }
10+
/// <summary>
11+
/// The completion status of this <see cref="IAwaiter"/>.
12+
/// </summary>
13+
public bool IsCompleted { get; }
1114

12-
void GetResult();
15+
/// <summary>
16+
/// Gets the result of completion for this <see cref="IAwaiter"/>.
17+
/// </summary>
18+
public void GetResult();
1319
}
1420

1521
/// <summary>
@@ -18,8 +24,14 @@ public interface IAwaiter : INotifyCompletion
1824
/// <typeparam name="TResult">A reference to the result to be passed out.</typeparam>
1925
public interface IAwaiter<out TResult> : INotifyCompletion
2026
{
21-
bool IsCompleted { get; }
27+
/// <summary>
28+
/// The completion status of this <see cref="IAwaiter{TResult}"/>.
29+
/// </summary>
30+
public bool IsCompleted { get; }
2231

23-
TResult GetResult();
32+
/// <summary>
33+
/// Gets the result of completion for this <see cref="IAwaiter{TResult}"/>.
34+
/// </summary>
35+
public TResult GetResult();
2436
}
2537
}

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)