summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-02-16 18:33:16 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-02-16 18:33:16 +0100
commit05fd229e77901fa0a6aeee1cc8f62342a6d57a19 (patch)
tree63e3614735e8e1ed8cdfae04b518a5629eab3868
parentf9dbbc3d725ed1cfef185ec234489bae454bb687 (diff)
parentfce8a05b58a764a61fd796c606cb0fca4b984b2c (diff)
Merge pull request #73382 from RedworkDE/net-source-gen-param
C#: Fix internal source generator on the 7.0.200 SDK
-rw-r--r--modules/mono/glue/GodotSharp/Godot.SourceGenerators.Internal/UnmanagedCallbacksGenerator.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/mono/glue/GodotSharp/Godot.SourceGenerators.Internal/UnmanagedCallbacksGenerator.cs b/modules/mono/glue/GodotSharp/Godot.SourceGenerators.Internal/UnmanagedCallbacksGenerator.cs
index 3226ca79e5..6b000cc89b 100644
--- a/modules/mono/glue/GodotSharp/Godot.SourceGenerators.Internal/UnmanagedCallbacksGenerator.cs
+++ b/modules/mono/glue/GodotSharp/Godot.SourceGenerators.Internal/UnmanagedCallbacksGenerator.cs
@@ -168,7 +168,9 @@ using Godot.NativeInterop;
{
var parameter = callback.Parameters[i];
- source.Append(parameter.ToDisplayString());
+ AppendRefKind(source, parameter.RefKind);
+ source.Append(' ');
+ source.Append(parameter.Type.FullQualifiedNameIncludeGlobal());
source.Append(' ');
source.Append(parameter.Name);