77 references to Select
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
RequestDelegateGenerator.cs (2)
35.Select((endpoint, _) => 56.Select((endpointWithLocations, _) =>
Microsoft.CodeAnalysis (2)
SourceGeneration\Nodes\SyntaxValueProvider_ForAttributeWithSimpleName.cs (2)
72.Select((info, cancellationToken) => getGlobalAliasesInCompilationUnit(syntaxHelper, info.Tree.GetRoot(cancellationToken))) 108.Select((tuple, c) => (tuple.Left.Tree, GetMatchingNodes(syntaxHelper, tuple.Right, tuple.Left.Tree, simpleName, predicate, c)))
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (14)
SourceGeneration\GeneratorDriverTests.cs (9)
1502.Select((c, _) => c.Identifier.ValueText) 1736ctx.RegisterSourceOutput(ctx.AdditionalTextsProvider.Select((at, ct) => at).WithTrackingName("AdditionalTextsTransform"), (spc, at) => { }); 2181.Select((n, _) => n); 2278.Select((n, _) => n) 2394.Select((c, ct) => c).WithTrackingName("Classes"); 2707ctx.RegisterSourceOutput(ctx.AdditionalTextsProvider.Select((t, _) => t.Path).WithTrackingName("Paths"), (spc, p) => { }); 2893var paths = texts.Select((t, _) => t?.Path).WithTrackingName("Path"); 2894var contents = texts.Select((t, ct) => t?.GetText(ct)?.ToString()).WithTrackingName("Content"); 4056.Select(static (node, _) => (ClassDeclarationSyntax)node)
SourceGeneration\SyntaxAwareGeneratorTests.cs (5)
1394.Select((s, ct) => s).WithTrackingName("Fields"); 1685context.RegisterSourceOutput(source.Select((s, ct) => $"Output1_{s}").WithTrackingName("Output"), (spc, fieldName) => 1689context.RegisterSourceOutput(source.Select((s, ct) => $"Output2_{s}").WithTrackingName("Output"), (spc, fieldName) => 1748context.RegisterSourceOutput(source2.Select((value, ct) => value.Left.Left.Left).WithTrackingName("Output"), (spc, output) => 1801context.RegisterSourceOutput(joinedSource.Select((value, ct) => value.Left).WithTrackingName("Output"), (spc, fieldName) =>
Microsoft.CodeAnalysis.Features.UnitTests (1)
EditAndContinue\CompileTimeSolutionProviderTests.cs (1)
88var sources = context.AdditionalTextsProvider.Combine(isDisabled).Select((pair, ct) =>
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
GenerateFileForEachAdditionalFileWithContentsCommented.cs (1)
20context.RegisterSourceOutput(context.AdditionalTextsProvider.Select((t, ct) => t).WithTrackingName(StepName), (context, additionalText) =>
Microsoft.Gen.ComplianceReports (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
68.Select((t, _) => t!);
Microsoft.Gen.ContextualOptions (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
68.Select((t, _) => t!);
Microsoft.Gen.Logging (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
68.Select((t, _) => t!);
Microsoft.Gen.Metrics (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
68.Select((t, _) => t!);
Microsoft.Gen.MetricsReports (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
68.Select((t, _) => t!);
Microsoft.Interop.ComInterfaceGenerator (18)
ComClassGenerator.cs (6)
29.Select(static (data, ct) => 40var className = attributedClasses.Select(static (info, ct) => info.ClassName); 43.Select(static (info, ct) => new { info.ClassName, info.ImplementedInterfacesNames }) 44.Select(static (info, ct) => GenerateClassInfoType(info.ImplementedInterfacesNames.Array).NormalizeWhitespace()); 47.Select(static (info, ct) => new { info.ContainingSyntaxContext, info.ClassSyntax }) 48.Select(static (info, ct) => GenerateClassInfoAttributeOnUserType(info.ContainingSyntaxContext, info.ClassSyntax).NormalizeWhitespace());
ComInterfaceGenerator.cs (2)
47var interfaceSymbolOrDiagnostics = attributedInterfaces.Combine(stubEnvironment).Select(static (data, ct) => 61.Select((data, ct) => data.InterfaceInfo!)
VtableIndexStubGenerator.cs (10)
48var methodsWithDiagnostics = attributedMethods.Select(static (data, ct) => 67.Select(static (data, ct) => new 73.Select( 81.Select( 89context.RegisterConcatenatedSyntaxOutputs(generateManagedToNativeStub.Select((data, ct) => data.Item1), "ManagedToNativeStubs.g.cs"); 98.Select( 106context.RegisterConcatenatedSyntaxOutputs(generateNativeToManagedStub.Select((data, ct) => data.Item1), "NativeToManagedStubs.g.cs"); 110.Select(static (context, ct) => context.ContainingSyntaxContext) 113.Select(static (context, ct) => GenerateNativeInterfaceMetadata(context)); 124.Select(static (vtable, ct) => GeneratePopulateVTableMethod(vtable));
Microsoft.Interop.JavaScript.JSImportGenerator (11)
JSExportGenerator.cs (6)
46var methodsWithDiagnostics = attributedMethods.Select(static (data, ct) => 77.Select(static (data, ct) => new 83.Select( 87.Select( 96.Select( 107.Select(
JSImportGenerator.cs (5)
44var methodsWithDiagnostics = attributedMethods.Select(static (data, ct) => 75.Select(static (data, ct) => new 81.Select( 85.Select( 93context.RegisterConcatenatedSyntaxOutputs(generateSingleStub.Select((data, ct) => data.Item1), "JSImports.g.cs");
Microsoft.Interop.LibraryImportGenerator (5)
LibraryImportGenerator.cs (5)
54var methodsWithDiagnostics = attributedMethods.Select(static (data, ct) => 89.Select(static (data, ct) => new 96.Select( 101.Select( 109context.RegisterConcatenatedSyntaxOutputs(generateSingleStub.Select((data, ct) => data.Item1), "LibraryImports.g.cs");
Microsoft.Interop.LibraryImportGenerator.Downlevel (5)
DownlevelLibraryImportGenerator.cs (5)
53var methodsWithDiagnostics = attributedMethods.Select(static (data, ct) => 67.Select(static (data, ct) => new 73.Select( 77.Select( 85context.RegisterConcatenatedSyntaxOutputs(generateSingleStub.Select((data, ct) => data.Item1), "LibraryImports.g.cs");
Microsoft.Interop.SourceGeneration (7)
DiagnosticOr.cs (3)
121var values = provider.Where(x => x.HasValue).Select(static (x, ct) => x.Value); 131var values = provider.Select((arr, ct) => arr.Where(x => x.HasValue).Select((x, ct) => x.Value).ToSequenceEqualImmutableArray()); 141var values = provider.Where(x => x.Item1.HasValue).Select(static (x, ct) => (x.Item1.Value, x.Item2));
IncrementalGeneratorInitializationContextExtensions.cs (1)
73.Select(
IncrementalValuesProviderExtensions.cs (3)
47return provider.Select((node, ct) => node.NormalizeWhitespace()); 52return (provider.Select(static (data, ct) => data.Item1), provider.Select(static (data, ct) => data.Item2));
Microsoft.Maui.Controls.BindingSourceGen (1)
BindingSourceGenerator.cs (1)
34 .Select(static (binding, t) => binding.Value)
Microsoft.Maui.Controls.SourceGen (3)
CodeBehindGenerator.cs (3)
44 .Select(ComputeProjectItem) 49 .Select(ComputeXamlProjectItem) 73 .Select(static (t, _) => (t.Left.Left, t.Left.Right, t.Right))
System.Text.RegularExpressions.Generator (2)
RegexGenerator.cs (2)
68.Select((methodOrDiagnostic, _) => 88.Select((state, _) =>