Debian Codegraph @

modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/GlobalClass.GD0401.cs

raw symbols SCIP
1 using Godot;
2
3 // This works because it inherits from GodotObject.
4 [GlobalClass]
5 public partial class CustomGlobalClass1 : GodotObject
6 {
7
8 }
9
10 // This works because it inherits from an object that inherits from GodotObject
11 [GlobalClass]
12 public partial class CustomGlobalClass2 : Node
13 {
14
15 }
16
17 // This raises a GD0401 diagnostic error: global classes must inherit from GodotObject
18 [GlobalClass]
19 public partial class {|GD0401:CustomGlobalClass3|}
20 {
21
22 }