20 references to Select
Microsoft.CodeAnalysis (8)
SourceGeneration\GeneratorAdaptor.cs (5)
39.Select((c, _) => new GeneratorContextBuilder(c)) 40.Combine(context.ParseOptionsProvider).Select((p, _) => p.Item1 with { ParseOptions = p.Item2 }) 41.Combine(context.AnalyzerConfigOptionsProvider).Select((p, _) => p.Item1 with { ConfigOptions = p.Item2 }) 42.Combine(context.AdditionalTextsProvider.Collect()).Select((p, _) => p.Item1 with { AdditionalTexts = p.Item2 }); 49.Select((p, _) => p.Item1 with { Receiver = p.Item2 });
SourceGeneration\Nodes\SyntaxValueProvider_ForAttributeWithSimpleName.cs (3)
83.Select(static (arrays, _) => GlobalAliases.Create(arrays)) 88var compilationGlobalAliases = _context.CompilationOptionsProvider.Select( 98.Select((tuple, _) => GlobalAliases.Concat(tuple.Left, tuple.Right))
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (3)
CommandLineTests.cs (3)
10173ctx.RegisterSourceOutput(ctx.AnalyzerConfigOptionsProvider.Select((p, _) => { p.GlobalOptions.TryGetValue("a", out var value); return value; }), (spc, value) => 10179var syntaxTreeInput = ctx.CompilationProvider.Select((c, _) => c.SyntaxTrees.First()); 10180ctx.RegisterSourceOutput(ctx.AnalyzerConfigOptionsProvider.Combine(syntaxTreeInput).Select((p, _) => { p.Left.GetOptions(p.Right).TryGetValue("a", out var value); return value; }), (spc, value) =>
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
SourceGeneration\GeneratorDriverTests.cs (8)
1633ctx.RegisterSourceOutput(ctx.CompilationProvider.Select((c, ct) => c).WithTrackingName("IdentityTransform"), (spc, c) => { }); 1680ctx.RegisterSourceOutput(ctx.CompilationProvider.Select((c, ct) => c).WithTrackingName("CompilationTransform"), (spc, c) => { }); 1938.Select((x, ct) => x) 2180var step1 = ctx.CompilationProvider.Select((c, ct) => { generatorCancelled = true; cts.Cancel(); return c; }); 2181var step2 = step1.Select((c, ct) => { ct.ThrowIfCancellationRequested(); return c; }); 2326ctx.RegisterSourceOutput(ctx.AnalyzerConfigOptionsProvider.Select((p, ct) => 3216var nullArray = ctx.CompilationProvider.Select((c, _) => null as object[]); 3315var transform = source.Select((a, _) => { wasCalled = true; return new object(); });
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
EditAndContinue\CompileTimeSolutionProviderTests.cs (1)
93var isDisabled = context.AnalyzerConfigOptionsProvider.Select(