internal static async Task <ImmutableArray <INamedTypeSymbol> > FindImplementationsArrayAsync(
            INamedTypeSymbol type, Solution solution, bool transitive, IImmutableSet <Project> projects = null, CancellationToken cancellationToken = default)
        {
            var types = await DependentTypeFinder.FindTypesAsync(
                type, solution, projects, transitive, DependentTypesKind.ImplementingTypes, cancellationToken).ConfigureAwait(false);

            return(types.WhereAsArray(t => IsAccessible(t)));
        }
Esempio n. 2
0
            > FindDerivedInterfacesArrayAsync(
            INamedTypeSymbol type,
            Solution solution,
            bool transitive,
            IImmutableSet <Project> projects    = null,
            CancellationToken cancellationToken = default
            )
        {
            var types = await DependentTypeFinder
                        .FindTypesAsync(
                type,
                solution,
                projects,
                transitive,
                DependentTypesKind.DerivedInterfaces,
                cancellationToken
                )
                        .ConfigureAwait(false);

            return(types.WhereAsArray(t => IsAccessible(t)));
        }