Skip to content

Commit 1f3f4b2

Browse files
committed
Re-add new keyword, source generator formatting
1 parent cf7c543 commit 1f3f4b2

13 files changed

+27
-14
lines changed

modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/AbstractGenericNode(Of T)_ScriptProperties.generated.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ protected override bool GetGodotClassPropertyValue(in godot_string_name name, ou
6464
return false;
6565
}
6666

67+
#pragma warning disable CS0109 // The member 'member' does not hide an inherited member. The new keyword is not required
6768
/// <summary>
6869
/// Get the property information for all the properties declared in this class.
6970
/// This method is used by Godot to register the available properties in the editor.
@@ -76,5 +77,5 @@ protected override bool GetGodotClassPropertyValue(in godot_string_name name, ou
7677
properties.Add(new(type: (global::Godot.Variant.Type)28, name: PropertyName.@MyArray, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
7778
return properties;
7879
}
79-
#pragma warning restore CS0109
80+
#pragma warning restore CS0109 // The member 'member' does not hide an inherited member. The new keyword is not required
8081
}

modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/AllReadOnly_ScriptProperties.generated.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ protected override bool GetGodotClassPropertyValue(in godot_string_name name, ou
7777
return false;
7878
}
7979

80+
#pragma warning disable CS0109 // The member 'member' does not hide an inherited member. The new keyword is not required
8081
/// <summary>
8182
/// Get the property information for all the properties declared in this class.
8283
/// This method is used by Godot to register the available properties in the editor.
@@ -92,5 +93,5 @@ protected override bool GetGodotClassPropertyValue(in godot_string_name name, ou
9293
properties.Add(new(type: (global::Godot.Variant.Type)4, name: PropertyName.@InitOnlyAutoProperty, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4096, exported: false));
9394
return properties;
9495
}
95-
#pragma warning restore CS0109
96+
#pragma warning restore CS0109 // The member 'member' does not hide an inherited member. The new keyword is not required
9697
}

modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/AllWriteOnly_ScriptProperties.generated.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ protected override bool GetGodotClassPropertyValue(in godot_string_name name, ou
7575
return false;
7676
}
7777

78+
#pragma warning disable CS0109 // The member 'member' does not hide an inherited member. The new keyword is not required
7879
/// <summary>
7980
/// Get the property information for all the properties declared in this class.
8081
/// This method is used by Godot to register the available properties in the editor.
@@ -88,5 +89,5 @@ protected override bool GetGodotClassPropertyValue(in godot_string_name name, ou
8889
properties.Add(new(type: (global::Godot.Variant.Type)1, name: PropertyName.@WriteOnlyProperty, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4096, exported: false));
8990
return properties;
9091
}
91-
#pragma warning restore CS0109
92+
#pragma warning restore CS0109 // The member 'member' does not hide an inherited member. The new keyword is not required
9293
}

modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/ExportDiagnostics_GD0108_ScriptProperties.generated.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ protected override bool GetGodotClassPropertyValue(in godot_string_name name, ou
4444
return false;
4545
}
4646

47+
#pragma warning disable CS0109 // The member 'member' does not hide an inherited member. The new keyword is not required
4748
/// <summary>
4849
/// Get the property information for all the properties declared in this class.
4950
/// This method is used by Godot to register the available properties in the editor.
@@ -55,5 +56,5 @@ protected override bool GetGodotClassPropertyValue(in godot_string_name name, ou
5556
var properties = new global::System.Collections.Generic.List<global::Godot.Bridge.PropertyInfo>();
5657
return properties;
5758
}
58-
#pragma warning restore CS0109
59+
#pragma warning restore CS0109 // The member 'member' does not hide an inherited member. The new keyword is not required
5960
}

modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/ExportDiagnostics_GD0109_ScriptProperties.generated.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ protected override bool GetGodotClassPropertyValue(in godot_string_name name, ou
4444
return false;
4545
}
4646

47+
#pragma warning disable CS0109 // The member 'member' does not hide an inherited member. The new keyword is not required
4748
/// <summary>
4849
/// Get the property information for all the properties declared in this class.
4950
/// This method is used by Godot to register the available properties in the editor.
@@ -55,5 +56,5 @@ protected override bool GetGodotClassPropertyValue(in godot_string_name name, ou
5556
var properties = new global::System.Collections.Generic.List<global::Godot.Bridge.PropertyInfo>();
5657
return properties;
5758
}
58-
#pragma warning restore CS0109
59+
#pragma warning restore CS0109 // The member 'member' does not hide an inherited member. The new keyword is not required
5960
}

modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/ExportDiagnostics_GD0110_ScriptProperties.generated.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ protected override bool GetGodotClassPropertyValue(in godot_string_name name, ou
4444
return false;
4545
}
4646

47+
#pragma warning disable CS0109 // The member 'member' does not hide an inherited member. The new keyword is not required
4748
/// <summary>
4849
/// Get the property information for all the properties declared in this class.
4950
/// This method is used by Godot to register the available properties in the editor.
@@ -55,5 +56,5 @@ protected override bool GetGodotClassPropertyValue(in godot_string_name name, ou
5556
var properties = new global::System.Collections.Generic.List<global::Godot.Bridge.PropertyInfo>();
5657
return properties;
5758
}
58-
#pragma warning restore CS0109
59+
#pragma warning restore CS0109 // The member 'member' does not hide an inherited member. The new keyword is not required
5960
}

modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/ExportDiagnostics_GD0111_ScriptProperties.generated.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ protected override bool GetGodotClassPropertyValue(in godot_string_name name, ou
155155
return false;
156156
}
157157

158+
#pragma warning disable CS0109 // The member 'member' does not hide an inherited member. The new keyword is not required
158159
/// <summary>
159160
/// Get the property information for all the properties declared in this class.
160161
/// This method is used by Godot to register the available properties in the editor.
@@ -170,5 +171,5 @@ protected override bool GetGodotClassPropertyValue(in godot_string_name name, ou
170171
properties.Add(new(type: (global::Godot.Variant.Type)25, name: PropertyName.@MyButtonOkWithCallableFromExpression, hint: (global::Godot.PropertyHint)39, hintString: "", usage: (global::Godot.PropertyUsageFlags)4, exported: true));
171172
return properties;
172173
}
173-
#pragma warning restore CS0109
174+
#pragma warning restore CS0109 // The member 'member' does not hide an inherited member. The new keyword is not required
174175
}

modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/ExportedFields_ScriptProperties.generated.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1162,6 +1162,7 @@ protected override bool GetGodotClassPropertyValue(in godot_string_name name, ou
11621162
return false;
11631163
}
11641164

1165+
#pragma warning disable CS0109 // The member 'member' does not hide an inherited member. The new keyword is not required
11651166
/// <summary>
11661167
/// Get the property information for all the properties declared in this class.
11671168
/// This method is used by Godot to register the available properties in the editor.
@@ -1235,5 +1236,5 @@ protected override bool GetGodotClassPropertyValue(in godot_string_name name, ou
12351236
properties.Add(new(type: (global::Godot.Variant.Type)31, name: PropertyName.@_fieldEmptyInt64Array, hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
12361237
return properties;
12371238
}
1238-
#pragma warning restore CS0109
1239+
#pragma warning restore CS0109 // The member 'member' does not hide an inherited member. The new keyword is not required
12391240
}

modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/ExportedProperties_ScriptProperties.generated.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1450,6 +1450,7 @@ protected override bool GetGodotClassPropertyValue(in godot_string_name name, ou
14501450
return false;
14511451
}
14521452

1453+
#pragma warning disable CS0109 // The member 'member' does not hide an inherited member. The new keyword is not required
14531454
/// <summary>
14541455
/// Get the property information for all the properties declared in this class.
14551456
/// This method is used by Godot to register the available properties in the editor.
@@ -1539,5 +1540,5 @@ protected override bool GetGodotClassPropertyValue(in godot_string_name name, ou
15391540
properties.Add(new(type: (global::Godot.Variant.Type)28, name: PropertyName.@PropertyGodotGenericArray, hint: (global::Godot.PropertyHint)23, hintString: "2/0:", usage: (global::Godot.PropertyUsageFlags)4102, exported: true));
15401541
return properties;
15411542
}
1542-
#pragma warning restore CS0109
1543+
#pragma warning restore CS0109 // The member 'member' does not hide an inherited member. The new keyword is not required
15431544
}

modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/ExportedToolButtons_ScriptProperties.generated.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ protected override bool GetGodotClassPropertyValue(in godot_string_name name, ou
5555
return false;
5656
}
5757

58+
#pragma warning disable CS0109 // The member 'member' does not hide an inherited member. The new keyword is not required
5859
/// <summary>
5960
/// Get the property information for all the properties declared in this class.
6061
/// This method is used by Godot to register the available properties in the editor.
@@ -68,5 +69,5 @@ protected override bool GetGodotClassPropertyValue(in godot_string_name name, ou
6869
properties.Add(new(type: (global::Godot.Variant.Type)25, name: PropertyName.@MyButton2, hint: (global::Godot.PropertyHint)39, hintString: "Click me!,ColorRect", usage: (global::Godot.PropertyUsageFlags)4, exported: true));
6970
return properties;
7071
}
71-
#pragma warning restore CS0109
72+
#pragma warning restore CS0109 // The member 'member' does not hide an inherited member. The new keyword is not required
7273
}

0 commit comments

Comments
 (0)