Fix source generator exceptions appearing when use "@+internal keyword" as type or namespace name in C# script

This commit is contained in:
2750558108
2025-08-08 11:10:54 +08:00
parent 7a0ab9d561
commit f192430921
12 changed files with 57 additions and 27 deletions
@@ -140,7 +140,7 @@ using Godot.NativeInterop;
source.Append("partial ");
source.Append(containingType.GetDeclarationKeyword());
source.Append(" ");
source.Append(containingType.NameWithTypeParameters());
source.Append(containingType.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat));
source.Append("\n{\n");
}
}
@@ -319,7 +319,7 @@ using Godot.NativeInterop;
source.Append("partial ");
source.Append(containingType.GetDeclarationKeyword());
source.Append(" ");
source.Append(containingType.NameWithTypeParameters());
source.Append(containingType.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat));
source.Append("\n{\n");
}
}