You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Merge pull request #79007 from 398utubzyt/dotnet/globalclass-analyzer
C#: Add a Roslyn analyzer for global classes
This commit is contained in:
@@ -81,7 +81,7 @@ namespace Godot.SourceGenerators
|
||||
return godotClassName ?? nativeType.Name;
|
||||
}
|
||||
|
||||
private static bool IsGodotScriptClass(
|
||||
private static bool TryGetGodotScriptClass(
|
||||
this ClassDeclarationSyntax cds, Compilation compilation,
|
||||
out INamedTypeSymbol? symbol
|
||||
)
|
||||
@@ -108,7 +108,7 @@ namespace Godot.SourceGenerators
|
||||
{
|
||||
foreach (var cds in source)
|
||||
{
|
||||
if (cds.IsGodotScriptClass(compilation, out var symbol))
|
||||
if (cds.TryGetGodotScriptClass(compilation, out var symbol))
|
||||
yield return (cds, symbol!);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user