Skip to content

Commit cf7c543

Browse files
committed
Minor source generator styling fixes
1 parent 2af103b commit cf7c543

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptPropertiesGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ void AppendPartialContainingTypeDeclarations(INamedTypeSymbol? containingType)
302302

303303
source.Append(" [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]\n");
304304

305-
source.Append(" internal new static ")
305+
source.Append(" internal static ")
306306
.Append(DictionaryType)
307307
.Append(" GetGodotPropertyList()\n {\n");
308308

modules/mono/editor/bindings_generator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2880,7 +2880,7 @@ Error BindingsGenerator::_generate_cs_type(const TypeInterface &itype, const Str
28802880
<< " bool " CS_METHOD_HAS_GODOT_CLASS_SIGNAL "(in godot_string_name signal)\n"
28812881
<< INDENT1 "{\n";
28822882

2883-
output << INDENT2 << "return SignalRegistry.ContainsName(signal);"
2883+
output << INDENT2 << "return SignalRegistry.ContainsName(signal);\n"
28842884
<< INDENT1 << "}\n\n";
28852885

28862886
if (is_derived_type) {
@@ -2962,7 +2962,7 @@ Error BindingsGenerator::_generate_cs_type(const TypeInterface &itype, const Str
29622962
<< ")\n";
29632963
}
29642964

2965-
output << INDENT3 << ".Build();\n";
2965+
output << INDENT2 << ".Build();\n";
29662966

29672967
output << "#pragma warning restore CS0618 // Type or member is obsolete\n";
29682968
output << "#pragma warning restore CS0628 // new protected member declared in sealed class\n";

0 commit comments

Comments
 (0)