summaryrefslogtreecommitdiff
path: root/modules/mono/glue/GodotSharp/Godot.SourceGenerators.Internal
diff options
context:
space:
mode:
authorRaul Santos <raulsntos@gmail.com>2022-07-07 17:58:13 +0200
committerRaul Santos <raulsntos@gmail.com>2022-11-14 20:32:20 +0100
commit71df6d66aee1e267bc7071673a1960086bef2970 (patch)
tree64d9e74cc35195e1f4ffdc87864c5b8afbc66970 /modules/mono/glue/GodotSharp/Godot.SourceGenerators.Internal
parent315c64282bb8d24963104c6386f0a82dc5ccb777 (diff)
Add `readonly` to C# methods and types that don't mutate
Also removes a few unnecessary temp variables
Diffstat (limited to 'modules/mono/glue/GodotSharp/Godot.SourceGenerators.Internal')
-rw-r--r--modules/mono/glue/GodotSharp/Godot.SourceGenerators.Internal/CallbacksInfo.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/glue/GodotSharp/Godot.SourceGenerators.Internal/CallbacksInfo.cs b/modules/mono/glue/GodotSharp/Godot.SourceGenerators.Internal/CallbacksInfo.cs
index 686023a077..ae51c07386 100644
--- a/modules/mono/glue/GodotSharp/Godot.SourceGenerators.Internal/CallbacksInfo.cs
+++ b/modules/mono/glue/GodotSharp/Godot.SourceGenerators.Internal/CallbacksInfo.cs
@@ -4,7 +4,7 @@ using Microsoft.CodeAnalysis;
namespace Godot.SourceGenerators.Internal;
-internal struct CallbacksData
+internal readonly struct CallbacksData
{
public CallbacksData(INamedTypeSymbol nativeTypeSymbol, INamedTypeSymbol funcStructSymbol)
{