43 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)) 87var compilationGlobalAliases = _context.CompilationOptionsProvider.Select( 97.Select(static (tuple, _) => GlobalAliases.Concat(tuple.Left, tuple.Right))
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (3)
CommandLineTests.cs (3)
10401ctx.RegisterSourceOutput(ctx.AnalyzerConfigOptionsProvider.Select((p, _) => { p.GlobalOptions.TryGetValue("a", out var value); return value; }), (spc, value) => 10407var syntaxTreeInput = ctx.CompilationProvider.Select((c, _) => c.SyntaxTrees.First()); 10408ctx.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)
1687ctx.RegisterSourceOutput(ctx.CompilationProvider.Select((c, ct) => c).WithTrackingName("IdentityTransform"), (spc, c) => { }); 1734ctx.RegisterSourceOutput(ctx.CompilationProvider.Select((c, ct) => c).WithTrackingName("CompilationTransform"), (spc, c) => { }); 1992.Select((x, ct) => x) 2466var step1 = ctx.CompilationProvider.Select((c, ct) => { generatorCancelled = true; cts.Cancel(); return c; }); 2467var step2 = step1.Select((c, ct) => { ct.ThrowIfCancellationRequested(); return c; }); 2620ctx.RegisterSourceOutput(ctx.AnalyzerConfigOptionsProvider.Select((p, ct) => 3540var nullArray = ctx.CompilationProvider.Select((c, _) => null as object[]); 3950var transform = source.Select((a, _) => { wasCalled = true; return new object(); });
Microsoft.CodeAnalysis.Features.UnitTests (1)
EditAndContinue\CompileTimeSolutionProviderTests.cs (1)
85var isDisabled = context.AnalyzerConfigOptionsProvider.Select(
Microsoft.Interop.ComInterfaceGenerator (1)
ComClassGenerator.cs (1)
21var unsafeCodeIsEnabled = context.CompilationProvider.Select((comp, ct) => comp.Options is CSharpCompilationOptions { AllowUnsafe: true }); // Unsafe code enabled
Microsoft.Interop.JavaScript.JSImportGenerator (3)
JSExportGenerator.cs (3)
37var 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); 42return 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.Windows.Forms.Analyzers.CSharp (2)
System\Windows\Forms\CSharp\Generators\ApplicationConfiguration\ApplicationConfigurationGenerator.cs (2)
74IncrementalValueProvider<OutputKind> outputKindProvider = context.CompilationProvider.Select((compilation, _) 88.Select((data, cancellationToken)