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))
88
var compilationGlobalAliases = _context.CompilationOptionsProvider.
Select
(
98
.
Select
((tuple, _) => GlobalAliases.Concat(tuple.Left, tuple.Right))
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (3)
CommandLineTests.cs (3)
10173
ctx.RegisterSourceOutput(ctx.AnalyzerConfigOptionsProvider.
Select
((p, _) => { p.GlobalOptions.TryGetValue("a", out var value); return value; }), (spc, value) =>
10179
var syntaxTreeInput = ctx.CompilationProvider.
Select
((c, _) => c.SyntaxTrees.First());
10180
ctx.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)
1633
ctx.RegisterSourceOutput(ctx.CompilationProvider.
Select
((c, ct) => c).WithTrackingName("IdentityTransform"), (spc, c) => { });
1680
ctx.RegisterSourceOutput(ctx.CompilationProvider.
Select
((c, ct) => c).WithTrackingName("CompilationTransform"), (spc, c) => { });
1938
.
Select
((x, ct) => x)
2180
var step1 = ctx.CompilationProvider.
Select
((c, ct) => { generatorCancelled = true; cts.Cancel(); return c; });
2181
var step2 = step1.
Select
((c, ct) => { ct.ThrowIfCancellationRequested(); return c; });
2326
ctx.RegisterSourceOutput(ctx.AnalyzerConfigOptionsProvider.
Select
((p, ct) =>
3216
var nullArray = ctx.CompilationProvider.
Select
((c, _) => null as object[]);
3315
var transform = source.
Select
((a, _) => { wasCalled = true; return new object(); });
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
EditAndContinue\CompileTimeSolutionProviderTests.cs (1)
93
var isDisabled = context.AnalyzerConfigOptionsProvider.
Select
(