using Microsoft.CodeAnalysis; namespace Vellum.Generator { /// /// Describes types, for both the converter scan and the [Saveable] checks. /// public static class SymbolSearch { public static bool IsPublic(INamedTypeSymbol type) { for (INamedTypeSymbol current = type; current != null; current = current.ContainingType) { if (current.DeclaredAccessibility != Accessibility.Public) { return false; } } return true; } } }