Fix source generator exceptions appearing when use "@+internal keyword" as type or namespace name in C# script
This commit is contained in:
parent
7a0ab9d561
commit
f192430921
12 changed files with 57 additions and 27 deletions
|
|
@ -0,0 +1,17 @@
|
|||
using Godot;
|
||||
using Godot.NativeInterop;
|
||||
|
||||
namespace @namespace {
|
||||
|
||||
partial class @class
|
||||
{
|
||||
#pragma warning disable CS0109 // Disable warning about redundant 'new' keyword
|
||||
/// <summary>
|
||||
/// Cached StringNames for the methods contained in this class, for fast lookup.
|
||||
/// </summary>
|
||||
public new class MethodName : global::Godot.GodotObject.MethodName {
|
||||
}
|
||||
#pragma warning restore CS0109
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue