5 references to SelectMany
Microsoft.CodeAnalysis (3)
SourceGeneration\Nodes\SyntaxValueProvider_ForAttributeWithMetadataName.cs (1)
99
var finalProvider = compilationAndGroupedNodesProvider.
SelectMany
((tuple, cancellationToken) =>
SourceGeneration\Nodes\ValueSourceExtensions.cs (2)
119
public static IncrementalValuesProvider<TSource> Where<TSource>(this IncrementalValuesProvider<TSource> source, Func<TSource, bool> predicate) => source.
SelectMany
((item, _) => predicate(item) ? ImmutableArray.Create(item) : ImmutableArray<TSource>.Empty);
121
internal static IncrementalValuesProvider<TSource> Where<TSource>(this IncrementalValuesProvider<TSource> source, Func<TSource, CancellationToken, bool> predicate) => source.
SelectMany
((item, c) => predicate(item, c) ? ImmutableArray.Create(item) : ImmutableArray<TSource>.Empty);
Microsoft.Extensions.Logging.Generators (1)
src\libraries\Common\src\Roslyn\SyntaxValueProvider_ForAttributeWithMetadataName.cs (1)
121
var finalProvider = compilationAndGroupedNodesProvider.
SelectMany
((tuple, cancellationToken) =>
Microsoft.Interop.SourceGeneration (1)
DiagnosticOr.cs (1)
100
var diagnostics = provider.Where(x => x.HasDiagnostic).
SelectMany
(static (x, ct) => x.Diagnostics);