public static bool IsPluginClass(this ClassDeclarationSyntax classDeclaration) { return(classDeclaration.GetExports() .Intersect(allPlugins) .Any()); }
public static string[] GetMissingInterfaces(this ClassDeclarationSyntax classDeclaration) { return(classDeclaration.GetExports() .Except(classDeclaration.GetInterfaces()) .ToArray()); }
public static bool IsExportIPlugin(this ClassDeclarationSyntax classDeclaration) => classDeclaration.GetExports().Contains(nameof(IPlugin));