You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Fix source generator exceptions appearing when use "@+internal keyword" as type or namespace name in C# script
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
using Xunit;
|
||||
|
||||
namespace Godot.SourceGenerators.Tests;
|
||||
|
||||
public class KeywordClassAndNamespaceTest
|
||||
{
|
||||
[Fact]
|
||||
public async void GenerateScriptMethodsTest()
|
||||
{
|
||||
await CSharpSourceGeneratorVerifier<ScriptMethodsGenerator>.Verify(
|
||||
"KeywordClassNameAndNamespace.cs",
|
||||
"namespace.class_ScriptMethods.generated.cs"
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user