46 references to Select
Microsoft.AspNetCore.App.SourceGenerators (6)
PublicTopLevelProgramGenerator.cs (6)
22
.
Select
(static (compilation, cancellationToken) => compilation.GetEntryPoint(cancellationToken))
24
.
Select
(static (symbol, _) => symbol?.ContainingSymbol)
26
.
Select
(static (symbol, _) => symbol?.DeclaredAccessibility == Accessibility.Public ? null : symbol)
29
.
Select
(static (symbol, _) => symbol is INamedTypeSymbol { TypeKind: TypeKind.Class } ? symbol : null)
32
.
Select
(static (symbol, _) => symbol is { DeclaringSyntaxReferences: { Length: 1 } declaringSyntaxReferences } ? declaringSyntaxReferences.Single() : null)
34
.
Select
(static (declaringSyntaxReference, cancellationToken) => declaringSyntaxReference?.GetSyntax(cancellationToken) is ClassDeclarationSyntax ? null : declaringSyntaxReference);
Microsoft.AspNetCore.Http.RequestDelegateGenerator (3)
RequestDelegateGenerator.cs (3)
161
.
Select
((endpoints, _) =>
172
.
Select
((endpoints, _) =>
238
.
Select
((endpoints, _) =>
Microsoft.CodeAnalysis (8)
SourceGeneration\GeneratorAdaptor.cs (5)
51
.
Select
((c, _) => new GeneratorContextBuilder(c))
52
.Combine(context.ParseOptionsProvider).
Select
((p, _) => p.Item1 with { ParseOptions = p.Item2 })
53
.Combine(context.AnalyzerConfigOptionsProvider).
Select
((p, _) => p.Item1 with { ConfigOptions = p.Item2 })
54
.Combine(context.AdditionalTextsProvider.Collect()).
Select
((p, _) => p.Item1 with { AdditionalTexts = p.Item2 });
61
.
Select
((p, _) => p.Item1 with { Receiver = p.Item2 });
SourceGeneration\Nodes\SyntaxValueProvider_ForAttributeWithSimpleName.cs (3)
82
.
Select
(static (arrays, _) => GlobalAliases.Create(arrays))
87
var compilationGlobalAliases = _context.CompilationOptionsProvider.
Select
(
97
.
Select
(static (tuple, _) => GlobalAliases.Concat(tuple.Left, tuple.Right))
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (3)
CommandLineTests.cs (3)
10401
ctx.RegisterSourceOutput(ctx.AnalyzerConfigOptionsProvider.
Select
((p, _) => { p.GlobalOptions.TryGetValue("a", out var value); return value; }), (spc, value) =>
10407
var syntaxTreeInput = ctx.CompilationProvider.
Select
((c, _) => c.SyntaxTrees.First());
10408
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)
1735
ctx.RegisterSourceOutput(ctx.CompilationProvider.
Select
((c, ct) => c).WithTrackingName("IdentityTransform"), (spc, c) => { });
1782
ctx.RegisterSourceOutput(ctx.CompilationProvider.
Select
((c, ct) => c).WithTrackingName("CompilationTransform"), (spc, c) => { });
2040
.
Select
((x, ct) => x)
2596
var step1 = ctx.CompilationProvider.
Select
((c, ct) => { generatorCancelled = true; cts.Cancel(); return c; });
2597
var step2 = step1.
Select
((c, ct) => { ct.ThrowIfCancellationRequested(); return c; });
2750
ctx.RegisterSourceOutput(ctx.AnalyzerConfigOptionsProvider.
Select
((p, ct) =>
3670
var nullArray = ctx.CompilationProvider.
Select
((c, _) => null as object[]);
4080
var transform = source.
Select
((a, _) => { wasCalled = true; return new object(); });
Microsoft.CodeAnalysis.Features.UnitTests (1)
EditAndContinue\CompileTimeSolutionProviderTests.cs (1)
85
var isDisabled = context.AnalyzerConfigOptionsProvider.
Select
(
Microsoft.Extensions.Logging.Generators (1)
src\libraries\Common\src\Roslyn\SyntaxValueProvider_ForAttributeWithSimpleName.cs (1)
119
.
Select
(static (arrays, _) => GlobalAliases.Create(arrays.SelectMany(a => a.AliasAndSymbolNames).ToImmutableArray()))
Microsoft.Interop.ComInterfaceGenerator (1)
ComClassGenerator.cs (1)
21
var unsafeCodeIsEnabled = context.CompilationProvider.
Select
((comp, ct) => comp.Options is CSharpCompilationOptions { AllowUnsafe: true }); // Unsafe code enabled
Microsoft.Interop.JavaScript.JSImportGenerator (3)
JSExportGenerator.cs (3)
37
var assemblyName = context.CompilationProvider.
Select
(static (c, _) => c.AssemblyName);
102
.
Select
(static (data, ct) => GenerateRegSource(data.Left, data.Right))
103
.
Select
(static (data, ct) => data.NormalizeWhitespace().ToFullString());
Microsoft.Interop.LibraryImportGenerator (2)
LibraryImportGenerator.cs (2)
66
.
Select
(static (options, ct) => new LibraryImportGeneratorOptions(options.GlobalOptions));
73
.
Select
((comp, ct) => comp.Options is CSharpCompilationOptions { AllowUnsafe: true })
Microsoft.Interop.SourceGeneration (4)
IncrementalGeneratorInitializationContextExtensions.cs (4)
28
.
Select
((topLevelAttrs, ct) => !topLevelAttrs.IsEmpty ? EnvironmentFlags.SkipLocalsInit : EnvironmentFlags.None);
40
.
Select
((topLevelAttrs, ct) => !topLevelAttrs.IsEmpty ? EnvironmentFlags.DisableRuntimeMarshalling : EnvironmentFlags.None);
42
return isModuleSkipLocalsInit.Combine(disabledRuntimeMarshalling).
Select
((data, ct) => data.Left | data.Right);
49
.
Select
((data, ct) =>
Microsoft.Maui.Controls.SourceGen (2)
CodeBehindGenerator.cs (2)
62
.
Select
(GetAssemblyAttributes)
66
.
Select
(GetTypeCache)
System.Private.CoreLib.Generators (1)
ProductVersionInfoGenerator.cs (1)
15
IncrementalValueProvider<string?> informationalVersionProvider = context.AnalyzerConfigOptionsProvider.
Select
((options, _) =>
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Roslyn4.0.cs (1)
32
.
Select
((compilation, _) => new KnownTypeSymbols(compilation));
System.Windows.Forms.Analyzers.CSharp (2)
System\Windows\Forms\CSharp\Generators\ApplicationConfiguration\ApplicationConfigurationGenerator.cs (2)
74
IncrementalValueProvider<OutputKind> outputKindProvider = context.CompilationProvider.
Select
((compilation, _)
88
.
Select
((data, cancellationToken)