summaryrefslogtreecommitdiffstats
path: root/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/NestedClass.cs
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-10-18 16:54:58 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-10-18 16:54:58 +0200
commit49f492d54bf955e2d1621ede03debcf830618c68 (patch)
treef155d480862c998a993add3cebbbee35889b867a /modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/NestedClass.cs
parent0111637fd31b56acb96ad274eb25c459ea7f1579 (diff)
parentfe078219fcfa183397734d756a9a77ce3f6383f4 (diff)
downloadredot-engine-49f492d54bf955e2d1621ede03debcf830618c68.tar.gz
Merge pull request #83532 from raulsntos/dotnet/nested-class-generation
C#: Fix generated nested class order
Diffstat (limited to 'modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/NestedClass.cs')
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/NestedClass.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/NestedClass.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/NestedClass.cs
new file mode 100644
index 0000000000..3021f57115
--- /dev/null
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/NestedClass.cs
@@ -0,0 +1,22 @@
+using System;
+
+namespace Godot.SourceGenerators.Sample;
+
+public partial class NestedClass : GodotObject
+{
+ public partial class NestedClass2 : GodotObject
+ {
+ public partial class NestedClass3 : GodotObject
+ {
+ [Signal]
+ public delegate void MySignalEventHandler(string str, int num);
+
+ [Export] private String field_String = "foo";
+ [Export] private String property_String { get; set; } = "foo";
+
+ private void Method()
+ {
+ }
+ }
+ }
+}