C#: Report diagnostic for Node exports in a type that doesn't derive from Node
This commit is contained in:
parent
6916349697
commit
bfe1a93023
3 changed files with 44 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ namespace Godot.SourceGenerators
|
|||
disabledGenerators != null &&
|
||||
disabledGenerators.Split(';').Contains(generatorName));
|
||||
|
||||
public static bool InheritsFrom(this INamedTypeSymbol? symbol, string assemblyName, string typeFullName)
|
||||
public static bool InheritsFrom(this ITypeSymbol? symbol, string assemblyName, string typeFullName)
|
||||
{
|
||||
while (symbol != null)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue