virtualx-engine/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators
Ignacio Etcheverry ee8e5146a4 C#: Fix ScriptPathAttribute generator with none or nested namespaces
The following two bugs were fixed:
- For classes without namespace we were still generating `namespace {`
without a namespace identifier, causing a syntax error.
- For classes with nested namespaces we were generating only the innermost
part of the namespace was being generated, e.g.: for `Foo.Bar` we were
generating `namespace Bar {` instead of `namespace Foo.Bar {`.
This wasn't causing any build error, but because of the wrong namespace
Godot wasn't able to find the class associated with the script.
2021-03-13 01:04:59 +01:00
..
Common.cs Add C# source generator for a new ScriptPath attribute 2021-03-06 21:50:32 +01:00
ExtensionMethods.cs C#: Fix ScriptPathAttribute generator with none or nested namespaces 2021-03-13 01:04:59 +01:00
Godot.SourceGenerators.csproj Add C# source generator for a new ScriptPath attribute 2021-03-06 21:50:32 +01:00
Godot.SourceGenerators.props Add C# source generator for a new ScriptPath attribute 2021-03-06 21:50:32 +01:00
GodotClasses.cs Add C# source generator for a new ScriptPath attribute 2021-03-06 21:50:32 +01:00
ScriptPathAttributeGenerator.cs C#: Fix ScriptPathAttribute generator with none or nested namespaces 2021-03-13 01:04:59 +01:00