Merge pull request #69278 from rhofour/remove-namespaces

Remove unnecessary namespaces in generated PropertyDefVal files.
This commit is contained in:
Ignacio Roldán Etcheverry 2022-11-30 18:31:52 +01:00 committed by GitHub
commit 6745e199fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -78,10 +78,6 @@ namespace Godot.SourceGenerators
var source = new StringBuilder();
source.Append("using Godot;\n");
source.Append("using Godot.NativeInterop;\n");
source.Append("\n");
if (hasNamespace)
{
source.Append("namespace ");
@ -281,7 +277,7 @@ namespace Godot.SourceGenerators
{
source.Append("#pragma warning disable CS0109 // Disable warning about redundant 'new' keyword\n");
string dictionaryType = "System.Collections.Generic.Dictionary<StringName, object>";
string dictionaryType = "System.Collections.Generic.Dictionary<Godot.StringName, object>";
source.Append("#if TOOLS\n");
source.Append(" internal new static ");