using Microsoft.CodeAnalysis;
namespace PixiEditorGen;
internal static class Extensions
{
public static bool AssignableTo(this INamedTypeSymbol? type, INamedTypeSymbol target)
{
while (true)
{
if (type == null)
{
return false;
}
if (type.Name == target.Name)
{
return true;
}
type = type.BaseType;
}
}
}