30 types derived from List
dotnet-svcutil-lib (1)
GenerateDocumentationAndConfigFiles (1)
ILCompiler.Compiler (1)
ILCompiler.DependencyAnalysisFramework (1)
illink (1)
Microsoft.AspNetCore.Http (1)
Microsoft.AspNetCore.Mvc.Core (1)
Microsoft.AspNetCore.Routing (1)
Microsoft.CodeAnalysis.Analyzers (1)
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
Microsoft.CodeAnalysis.CodeStyle (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
Microsoft.CodeAnalysis.Workspaces (1)
Microsoft.CSharp (1)
Microsoft.Maui (1)
Microsoft.Maui.Controls (2)
Microsoft.ML.CodeGenerator (2)
Microsoft.ML.Data (1)
Microsoft.TestPlatform.CommunicationUtilities (1)
NuGet.Packaging (1)
PresentationCore (1)
PresentationFramework (1)
Roslyn.Diagnostics.Analyzers (1)
System.Data.OleDb (1)
System.Private.Xml (2)
System.Windows.Forms (1)
System.Xaml (1)
11571 instantiations of List
aspire (218)
aspire-managed (14)
Aspire.Acquisition.Tests (3)
Aspire.Azure.AI.Inference (1)
Aspire.Azure.Messaging.EventHubs (1)
Aspire.Azure.Messaging.EventHubs.Tests (3)
Aspire.Azure.Messaging.ServiceBus (1)
Aspire.Azure.Messaging.WebPubSub (1)
Aspire.Azure.Security.KeyVault.Tests (3)
Aspire.Azure.Storage.Queues (1)
Aspire.Cli.EndToEnd.Tests (4)
Aspire.Cli.Tests (223)
Projects\PrebuiltAppHostServerTests.cs (24)
123var projectRefs = new List<IntegrationReference> { IntegrationReference.FromProject("Aspire.Hosting.Java", referencedProject) };
146var projectRefs = new List<IntegrationReference> { IntegrationReference.FromProject("Aspire.Hosting.Java", referencedProject) };
164var projectRefs = new List<IntegrationReference> { IntegrationReference.FromProject("Aspire.Hosting.Java", referencedProject) };
184var projectRefs = new List<IntegrationReference> { IntegrationReference.FromProject("Aspire.Hosting.Java", referencedProject) };
201var projectRefs = new List<IntegrationReference> { IntegrationReference.FromProject("First", first) };
214var projectRefs = new List<IntegrationReference> { IntegrationReference.FromProject("Aspire.Hosting.Java", referencedProject) };
230var projectRefs = new List<IntegrationReference> { IntegrationReference.FromProject("Aspire.Hosting.Java", referencedProject) };
243var projectRefs = new List<IntegrationReference> { IntegrationReference.FromProject("Aspire.Hosting.Java", referencedProject) };
244var packageRefs = new List<IntegrationReference> { IntegrationReference.FromPackage("Aspire.Hosting.Redis", "13.5.0") };
279var packageRefs = new List<IntegrationReference> { IntegrationReference.FromPackage("Aspire.Hosting.Redis", version) };
287var packageRefs = new List<IntegrationReference>
365var packageRefs = new List<IntegrationReference>
370var projectRefs = new List<IntegrationReference>();
386var packageRefs = new List<IntegrationReference>();
387var projectRefs = new List<IntegrationReference>
405var packageRefs = new List<IntegrationReference>
410var projectRefs = new List<IntegrationReference>
425var packageRefs = new List<IntegrationReference>
429var projectRefs = new List<IntegrationReference>();
547var packageRefs = new List<IntegrationReference>
2846var metadataLines = new List<string>();
2847var sourcePaths = new List<string>();
2848var targetPaths = new List<string>();
2971var sources = new List<string>();
Projects\ProjectUpdaterTests.cs (39)
55var packages = new List<NuGetPackageCli>();
171var packagesAddsExecuted = new List<(FileInfo ProjectFile, string PackageId, string PackageVersion, string? PackageSource, bool NoRestore)>();
180var packages = new List<NuGetPackageCli>();
334var packages = new List<NuGetPackageCli>
438var packagesAddsExecuted = new List<(FileInfo ProjectFile, string PackageId, string PackageVersion, string? PackageSource, bool NoRestore)>();
447var packages = new List<NuGetPackageCli>();
592var packagesAddsExecuted = new List<(FileInfo ProjectFile, string PackageId, string PackageVersion, string? PackageSource, bool NoRestore)>();
602var packages = new List<NuGetPackageCli>();
721var packagesAddsExecuted = new List<(FileInfo ProjectFile, string PackageId, string PackageVersion, string? PackageSource, bool NoRestore)>();
730var packages = new List<NuGetPackageCli>();
880var updatedFiles = new List<string>();
890var packages = new List<NuGetPackageCli>();
1009var packages = new List<NuGetPackageCli>();
1111var packages = new List<NuGetPackageCli>();
1237var packages = new List<NuGetPackageCli>
1331var packages = new List<NuGetPackageCli>
1406var packages = new List<NuGetPackageCli>
1501var packages = new List<NuGetPackageCli>
1664var packages = new List<NuGetPackageCli>
1813var packages = new List<NuGetPackageCli>();
1929var packages = new List<NuGetPackageCli>();
2050var packages = new List<NuGetPackageCli>();
2163var packages = new List<NuGetPackageCli>();
2259var packages = new List<NuGetPackageCli>();
2368var packages = new List<NuGetPackageCli>();
2453var packages = new List<NuGetPackageCli>();
2529var packages = new List<NuGetPackageCli>();
2613var packages = new List<NuGetPackageCli>();
2708var packages = new List<NuGetPackageCli>
2800var packages = new List<NuGetPackageCli>
2876var packages = new List<NuGetPackageCli>();
2956var packages = new List<NuGetPackageCli>();
3046var packages = new List<NuGetPackageCli>();
3125var packages = new List<NuGetPackageCli>();
3193var packagesUpdated = new List<string>();
3203var packages = new List<NuGetPackageCli>();
3338var packagesAddsExecuted = new List<(FileInfo ProjectFile, string PackageId, string PackageVersion, string? PackageSource, bool NoRestore)>();
3348var packages = new List<NuGetPackageCli>();
3722var calls = new List<string>();
Aspire.Components.Common.TestUtilities (3)
Aspire.Confluent.Kafka.Tests (2)
Aspire.Dashboard (131)
Aspire.Dashboard.Components.Tests (34)
Aspire.Dashboard.Tests (92)
TelemetryRepositoryTests\MetricsTests.cs (5)
109var metricAttributes = new List<KeyValuePair<string, string>>();
110var meterAttributes = new List<KeyValuePair<string, string>>();
223var metricAttributes = new List<KeyValuePair<string, string>>();
224var meterAttributes = new List<KeyValuePair<string, string>>
342CreateSumMetric(metricName: "test", startTime: s_testTime.AddMinutes(1), exemplars: new List<Exemplar> { CreateExemplar(startTime: s_testTime.AddMinutes(1), value: 2, attributes: [KeyValuePair.Create("key1", "value1")]) }),
TelemetryRepositoryTests\TraceTests.cs (6)
527CreateSpan(traceId: "1", spanId: "1-1", startTime: s_testTime.AddMinutes(1), endTime: s_testTime.AddMinutes(10), events: new List<Span.Types.Event>
603CreateSpan(traceId: "1", spanId: "1-1", startTime: s_testTime.AddMinutes(1), endTime: s_testTime.AddMinutes(10), links: new List<Span.Types.Link>
756var attributes = new List<KeyValuePair<string, string>>();
763var events = new List<Span.Types.Event>();
980CreateSpan(traceId: traceId, spanId: $"{traceId}-2", startTime: startTime.AddMinutes(5), endTime: startTime.AddMinutes(1), parentSpanId: $"{traceId}-1", links: new List<Span.Types.Link>
984CreateSpan(traceId: traceId, spanId: $"{traceId}-1", startTime: startTime.AddMinutes(1), endTime: startTime.AddMinutes(10), links: new List<Span.Types.Link>
Aspire.Deployment.EndToEnd.Tests (1)
Aspire.EndToEnd.Tests (2)
Aspire.Hosting (106)
Aspire.Hosting.Analyzers (1)
Aspire.Hosting.Azure (23)
Aspire.Hosting.Azure.AppContainers (3)
Aspire.Hosting.Azure.AppService (4)
Aspire.Hosting.Azure.CosmosDB (1)
Aspire.Hosting.Azure.Functions (2)
Aspire.Hosting.Azure.Kubernetes (1)
Aspire.Hosting.Azure.Kubernetes.Tests (11)
Aspire.Hosting.Azure.Kusto.Tests (1)
Aspire.Hosting.Azure.Network (2)
Aspire.Hosting.Azure.Sql (2)
Aspire.Hosting.Azure.Tests (43)
Aspire.Hosting.Azure.WebPubSub (1)
Aspire.Hosting.Blazor (6)
Aspire.Hosting.Blazor.Tests (21)
Aspire.Hosting.Browsers (11)
Aspire.Hosting.Browsers.Tests (19)
Aspire.Hosting.CodeGeneration.Go (9)
Aspire.Hosting.CodeGeneration.Java (17)
Aspire.Hosting.CodeGeneration.Java.Tests (1)
Aspire.Hosting.CodeGeneration.Python (14)
Aspire.Hosting.CodeGeneration.Rust (2)
Aspire.Hosting.CodeGeneration.Rust.Tests (1)
Aspire.Hosting.CodeGeneration.TypeScript (20)
Aspire.Hosting.CodeGeneration.TypeScript.Tests (3)
Aspire.Hosting.DevTunnels (1)
Aspire.Hosting.Docker (5)
Aspire.Hosting.Dotnet (2)
Aspire.Hosting.EntityFrameworkCore (4)
Aspire.Hosting.EntityFrameworkCore.Tests (2)
Aspire.Hosting.Foundry (4)
Aspire.Hosting.Foundry.Tests (2)
Aspire.Hosting.Garnet (1)
Aspire.Hosting.Go (2)
Aspire.Hosting.Integration.Analyzers (2)
Aspire.Hosting.Java (1)
Aspire.Hosting.JavaScript (3)
Aspire.Hosting.JavaScript.Tests (15)
AddViteAppTests.cs (11)
509var args = new List<object>();
534var args = new List<object>();
569var args = new List<object> { "run", "dev", "--", "--port", "3000", "--config", "vite.config.js" };
629var args = new List<object> { "run", "dev", "--", "--port", "3000" };
681var args = new List<object> { "run", "dev", "--", "--port", "3000" };
727var args = new List<object> { "run", "dev", "--", "--port", "3000", "--config", viteConfigPath };
776var args = new List<object> { "run", "dev", "--", "--port", "3000" };
838var args = new List<object> { "run", "dev", "--", "--port", "3000" };
913var args = new List<object> { "run", "dev", "--", "--port", "3000" };
1016var args = new List<object> { "run", "dev", "--", "--port", "3000" };
1109var args = new List<object> { "run", "dev", "--", "--port", "3000" };
Aspire.Hosting.Keycloak.Tests (1)
Aspire.Hosting.Kubernetes (18)
Aspire.Hosting.Kubernetes.Tests (2)
Aspire.Hosting.Maui (7)
Aspire.Hosting.Maui.Tests (3)
Aspire.Hosting.Nats (1)
Aspire.Hosting.Nats.Tests (1)
Aspire.Hosting.PostgreSQL (1)
Aspire.Hosting.Radius (14)
Publishing\SealedSecretApplyStep.cs (5)
212var args = new List<string> { "apply", "-f", "-", "-o", "json" };
225var args = new List<string> { "get", "sealedsecret", name, "-n", ns, "-o", "json" };
233var args = new List<string> { "get", "secret", name, "-n", ns, "-o", "name" };
245var args = new List<string> { "get", "secret", name, "-n", ns, "-o", "json" };
447var conditions = new List<SealedSecretCondition>();
Aspire.Hosting.Redis (2)
Aspire.Hosting.RemoteHost (37)
Aspire.Hosting.RemoteHost.Tests (9)
Aspire.Hosting.Rust (5)
Aspire.Hosting.Rust.Tests (3)
Aspire.Hosting.Sdk.Tests (1)
Aspire.Hosting.Testing.Tests (3)
Aspire.Hosting.Tests (145)
Aspire.Hosting.TestUtilities (3)
Aspire.Hosting.Valkey (1)
Aspire.Hosting.Yarp (5)
Aspire.Hosting.Yarp.Tests (10)
Aspire.Microsoft.Azure.Cosmos (1)
Aspire.Microsoft.EntityFrameworkCore.Cosmos (1)
Aspire.Microsoft.Extensions.Configuration.AzureAppConfiguration (1)
Aspire.Microsoft.Extensions.Configuration.AzureAppConfiguration.Tests (3)
Aspire.Oracle.EntityFrameworkCore.Tests (1)
Aspire.Playground.Tests (2)
Aspire.RuntimeIdentifier.Tool (1)
Aspire.Templates.Tests (3)
Aspire.TerminalHost (2)
Aspire.TestTools (2)
Aspire.TestUtilities (2)
Aspire.TypeSystem (1)
AzureAppService.ApiService (1)
AzureContainerApps.ApiService (1)
AzureFunctionsWithDts.Functions (1)
AzureStorageEndToEnd.ApiService (1)
AzureVirtualNetworkEndToEnd.ApiService (1)
BasketService (3)
BicepSample.ApiService (6)
blazor-gateway (2)
BlazorHosted.ClientServiceDefaults (1)
BlazorStandalone.ClientServiceDefaults (1)
CatalogDb (1)
CatalogModel (1)
cdac-build-tool (1)
CdkSample.ApiService (2)
Client.ClientBase.IntegrationTests (13)
ConfigurationSchemaGenerator (13)
CosmosEndToEnd.ApiService (1)
crossgen2 (12)
Crossgen2Tasks (7)
csc (4)
CSharpSyntaxGenerator (7)
dotnet (72)
dotnet-aot (19)
dotnet-dev-certs (20)
dotnet-format (5)
dotnet-getdocument (8)
dotnet-Microsoft.XmlSerializer.Generator (7)
dotnet-openapi (7)
dotnet-razorpagegenerator (1)
dotnet-sourcelink (4)
dotnet-sql-cache (7)
dotnet-suggest (1)
dotnet-svcutil (1)
dotnet-svcutil-lib (255)
dotnet-svcutil-lib.Tests (5)
dotnet-svcutil.xmlserializer (11)
dotnet-user-jwts (17)
dotnet-user-secrets (7)
dotnet-watch (6)
GenerateAnalyzerNuspec (2)
GenerateDocumentationAndConfigFiles (41)
GetDocument.Insider (9)
HelixTestTasks (5)
ILAssembler (23)
ilc (16)
ILCompiler.Build.Tasks (1)
ILCompiler.Compiler (154)
ILCompiler.DependencyAnalysisFramework (6)
ILCompiler.Diagnostics (2)
ILCompiler.MetadataTransform (46)
ILCompiler.ReadyToRun (130)
ILCompiler.RyuJit (15)
ILCompiler.TypeSystem (7)
illink (80)
ILLink.CodeFixProvider (5)
ILLink.RoslynAnalyzer (6)
Infrastructure.Common (7)
Infrastructure.Tests (36)
Microsoft.Analyzers.Extra (8)
Microsoft.Analyzers.Extra.Tests (7)
Microsoft.Analyzers.Local (3)
Microsoft.Analyzers.Local.Tests (10)
Microsoft.AspNetCore (5)
Microsoft.AspNetCore.Analyzers (2)
Microsoft.AspNetCore.Antiforgery (2)
Microsoft.AspNetCore.App.Analyzers (4)
Microsoft.AspNetCore.Authentication.Abstractions (3)
Microsoft.AspNetCore.Authentication.Certificate (2)
Microsoft.AspNetCore.Authentication.Cookies (4)
Microsoft.AspNetCore.Authentication.Core (1)
Microsoft.AspNetCore.Authentication.DeviceBoundSessions (7)
Microsoft.AspNetCore.Authentication.JwtBearer (6)
Microsoft.AspNetCore.Authentication.Negotiate (1)
Microsoft.AspNetCore.Authentication.OAuth (2)
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
Microsoft.AspNetCore.Authentication.Twitter (1)
Microsoft.AspNetCore.Authentication.WsFederation (3)
Microsoft.AspNetCore.Authorization (8)
Microsoft.AspNetCore.Components (35)
Microsoft.AspNetCore.Components.AI (20)
Microsoft.AspNetCore.Components.AI.SourceGenerators (3)
Microsoft.AspNetCore.Components.Analyzers (7)
Microsoft.AspNetCore.Components.Authorization (1)
Microsoft.AspNetCore.Components.Endpoints (38)
Microsoft.AspNetCore.Components.Forms (4)
Microsoft.AspNetCore.Components.QuickGrid (7)
Microsoft.AspNetCore.Components.SdkAnalyzers (2)
Microsoft.AspNetCore.Components.Server (17)
Microsoft.AspNetCore.Components.Testing (7)
Microsoft.AspNetCore.Components.Web (5)
Microsoft.AspNetCore.Components.WebAssembly (13)
Microsoft.AspNetCore.Components.WebAssembly.Authentication (1)
Microsoft.AspNetCore.Components.WebView (2)
Microsoft.AspNetCore.Connections.Abstractions (2)
Microsoft.AspNetCore.CookiePolicy (1)
Microsoft.AspNetCore.Cors (7)
Microsoft.AspNetCore.DataProtection (9)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (8)
Microsoft.AspNetCore.Diagnostics (9)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (3)
Microsoft.AspNetCore.Diagnostics.Middleware (11)
Microsoft.AspNetCore.Diagnostics.Middleware.PerformanceTests (2)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (31)
Latency\RequestLatencyTelemetryMiddlewareTests.cs (5)
33Options.Create(new RequestLatencyTelemetryOptions()), new List<ILatencyDataExporter> { ex1, ex2 },
64new List<ILatencyDataExporter> { ex1, ex2 });
92Options.Create(new RequestLatencyTelemetryOptions()), new List<ILatencyDataExporter> { ex1, ex2 },
122new List<ILatencyDataExporter> { ex1, ex2 },
173new List<ILatencyDataExporter> { ex1 },
Microsoft.AspNetCore.Grpc.JsonTranscoding (14)
Microsoft.AspNetCore.HeaderParsing (4)
Microsoft.AspNetCore.HeaderParsing.Tests (4)
Microsoft.AspNetCore.HostFiltering (2)
Microsoft.AspNetCore.Hosting (9)
Microsoft.AspNetCore.Html.Abstractions (2)
Microsoft.AspNetCore.Http (8)
Microsoft.AspNetCore.Http.Abstractions (8)
Microsoft.AspNetCore.Http.Connections (11)
Microsoft.AspNetCore.Http.Connections.Client (1)
Microsoft.AspNetCore.Http.Connections.Common (2)
Microsoft.AspNetCore.Http.Extensions (25)
Microsoft.AspNetCore.Http.Features (2)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (4)
Microsoft.AspNetCore.HttpLogging (6)
Microsoft.AspNetCore.HttpOverrides (5)
Microsoft.AspNetCore.HttpsPolicy (1)
Microsoft.AspNetCore.Identity (3)
Microsoft.AspNetCore.Identity.EntityFrameworkCore (1)
Microsoft.AspNetCore.Identity.UI (1)
Microsoft.AspNetCore.InternalTesting (3)
Microsoft.AspNetCore.JsonPatch (7)
Microsoft.AspNetCore.JsonPatch.SystemTextJson (4)
Microsoft.AspNetCore.Localization (9)
Microsoft.AspNetCore.Mvc.Abstractions (10)
Microsoft.AspNetCore.Mvc.ApiExplorer (10)
Microsoft.AspNetCore.Mvc.Core (124)
Microsoft.AspNetCore.Mvc.DataAnnotations (3)
Microsoft.AspNetCore.Mvc.Formatters.Xml (4)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
Microsoft.AspNetCore.Mvc.Razor (11)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (7)
Microsoft.AspNetCore.Mvc.RazorPages (22)
Microsoft.AspNetCore.Mvc.TagHelpers (5)
Microsoft.AspNetCore.Mvc.Testing (4)
Microsoft.AspNetCore.Mvc.ViewFeatures (29)
Microsoft.AspNetCore.OpenApi (8)
Microsoft.AspNetCore.OpenApi.SourceGenerators (6)
Microsoft.AspNetCore.OutputCaching (9)
Microsoft.AspNetCore.RateLimiting (2)
Microsoft.AspNetCore.Razor (4)
Microsoft.AspNetCore.Razor.Runtime (3)
Microsoft.AspNetCore.ResponseCaching (1)
Microsoft.AspNetCore.Rewrite (10)
Microsoft.AspNetCore.Routing (83)
Microsoft.AspNetCore.Routing.Abstractions (5)
Microsoft.AspNetCore.Server.HttpSys (5)
Microsoft.AspNetCore.Server.IIS (7)
Microsoft.AspNetCore.Server.IntegrationTesting (7)
Microsoft.AspNetCore.Server.Kestrel.Core (41)
Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (4)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (2)
Microsoft.AspNetCore.Session (1)
Microsoft.AspNetCore.SignalR.Client.Core (4)
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (6)
Microsoft.AspNetCore.SignalR.Common (2)
Microsoft.AspNetCore.SignalR.Core (15)
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (3)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (3)
Microsoft.AspNetCore.SignalR.Specification.Tests (5)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (11)
Microsoft.AspNetCore.StaticAssets (4)
Microsoft.AspNetCore.StaticFiles (1)
Microsoft.AspNetCore.TestHost (1)
Microsoft.AspNetCore.WebSockets (1)
Microsoft.AspNetCore.WebUtilities (2)
Microsoft.Authentication.WebAssembly.Msal (3)
Microsoft.Build (340)
Microsoft.Build.Framework (23)
Microsoft.Build.NuGetSdkResolver (8)
Microsoft.Build.Tasks.CodeAnalysis (9)
Microsoft.Build.Tasks.Core (194)
Microsoft.Build.Tasks.Git (11)
Microsoft.Build.Utilities.Core (38)
Microsoft.CodeAnalysis (52)
Microsoft.CodeAnalysis.Analyzers (43)
Microsoft.CodeAnalysis.AnalyzerUtilities (31)
Microsoft.CodeAnalysis.CodeStyle (29)
Microsoft.CodeAnalysis.CodeStyle.Fixes (12)
Microsoft.CodeAnalysis.CSharp (35)
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (10)
Microsoft.CodeAnalysis.CSharp.Features (39)
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (5)
Microsoft.CodeAnalysis.CSharp.Workspaces (24)
Microsoft.CodeAnalysis.Extensions.Package (3)
Microsoft.CodeAnalysis.ExternalAccess.HotReload (1)
Microsoft.CodeAnalysis.Features (44)
Microsoft.CodeAnalysis.NetAnalyzers (36)
Microsoft.NetCore.Analyzers\Runtime\AttributeStringLiteralsShouldParseCorrectly.cs (1)
54new(
Microsoft.CodeAnalysis.Razor.Compiler (24)
Microsoft.CodeAnalysis.Rebuild (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (32)
Microsoft.CodeAnalysis.Scripting (9)
Microsoft.CodeAnalysis.VisualBasic (2)
Microsoft.CodeAnalysis.Workspaces (57)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (6)
Microsoft.CSharp (41)
Microsoft.Data.Analysis (49)
Microsoft.Data.Analysis.Interactive (6)
Microsoft.Data.Analysis.Interactive.Tests (1)
Microsoft.Data.Analysis.Tests (35)
DataFrameTests.cs (27)
327List<int> verify = new List<int>() { 0, 3, 1, 4, 2, 5 };
349List<int> originalColumnVerify = new List<int>() { 6, 8, 7, 9 };
350List<int> tailColumnVerity = new List<int>() { 1, 2, 4, 5 };
1091df.Append(new List<object> { 5, true }, inPlace: true);
1096DataFrame ret = df.Append(new List<object> { 5, true });
1101df.Append(new List<object> { 100 }, inPlace: true);
1106ret = df.Append(new List<object> { 100 }, inPlace: false);
1111df.Append(new List<object> { null, null }, inPlace: true);
1115ret = df.Append(new List<object> { null, null }, inPlace: false);
1171Assert.Throws<FormatException>(() => df.Append(new List<object> { 5, "str" }, inPlace: true));
1173Assert.Throws<ArgumentException>(() => df.Append(new List<object> { 5, true, true }, inPlace: true));
1199df.Append(new List<object> { "", true }, inPlace: true);
1207df.Append(new List<object> { 1, true, "" }, inPlace: true);
1213df.Append(new List<object> { 1, true, null }, inPlace: true);
1410new List<string> { "id" },
1411new List<string> { "A", "B" },
1428new List<string> { "id" },
1446new List<string> { "id" },
1464new List<string> { "id" },
1482new List<string> { "id" },
1500new List<string> { "id" },
1518new List<string> { "id" },
1536new List<string> { "id" },
1554new List<string> { "id" },
1572new List<string> { "id" },
1592new List<string> { "id1", "id2" },
1593new List<string> { "A", "B" },
Microsoft.Deployment.DotNet.Releases (8)
Microsoft.Diagnostics.DataContractReader.Contracts (27)
Microsoft.Diagnostics.DataContractReader.DataGenerator (6)
Microsoft.Diagnostics.DataContractReader.Legacy (38)
Microsoft.Diagnostics.NETCore.Client (8)
Microsoft.DiaSymReader (2)
Microsoft.DotNet.ApiCompat.Task (2)
Microsoft.DotNet.ApiCompatibility (6)
Microsoft.DotNet.ApiSymbolExtensions (2)
Microsoft.DotNet.Arcade.Sdk (2)
Microsoft.DotNet.Build.Manifest (4)
Microsoft.DotNet.Build.Tasks.FileCatalog (3)
Microsoft.DotNet.Build.Tasks.Installers (3)
Microsoft.DotNet.Build.Tasks.Packaging (39)
Microsoft.DotNet.Build.Tasks.TargetFramework (2)
Microsoft.DotNet.Build.Tasks.Workloads (5)
Microsoft.DotNet.Cli.Definitions (6)
Microsoft.DotNet.Cli.Telemetry (2)
Microsoft.DotNet.Cli.Utils (6)
Microsoft.DotNet.CMake.Sdk (1)
Microsoft.DotNet.GenFacades (3)
Microsoft.DotNet.HotReload.Utils.Generator (5)
Microsoft.DotNet.HotReload.Watch (16)
Microsoft.DotNet.HotReload.WebAssembly.Browser (4)
Microsoft.DotNet.NativeWrapper (2)
Microsoft.DotNet.NuGetRepack.Tasks (3)
Microsoft.DotNet.PackageTesting (5)
Microsoft.DotNet.SharedFramework.Sdk (6)
Microsoft.DotNet.TemplateLocator (3)
Microsoft.DotNet.XliffTasks (4)
Microsoft.Extensions.AI (8)
Microsoft.Extensions.AI.Abstractions (3)
Microsoft.Extensions.AI.Abstractions.Tests (15)
Microsoft.Extensions.AI.Evaluation (1)
Microsoft.Extensions.AI.Evaluation.Integration.Tests (7)
Microsoft.Extensions.AI.Evaluation.Quality (1)
Microsoft.Extensions.AI.Integration.Tests (13)
Microsoft.Extensions.AI.OpenAI (7)
Microsoft.Extensions.AI.OpenAI.Tests (31)
Microsoft.Extensions.AI.Stabilization.Tests (1)
Microsoft.Extensions.AI.Tests (116)
Microsoft.Extensions.AmbientMetadata.Application (3)
Microsoft.Extensions.AmbientMetadata.Build (1)
Microsoft.Extensions.AsyncState (1)
Microsoft.Extensions.AsyncState.Tests (3)
Microsoft.Extensions.Caching.Memory (8)
Microsoft.Extensions.Compliance.Abstractions (1)
Microsoft.Extensions.Compliance.Abstractions.Tests (2)
Microsoft.Extensions.Compliance.Redaction (3)
Microsoft.Extensions.Compliance.Testing (3)
Microsoft.Extensions.Configuration (11)
Microsoft.Extensions.Configuration.Binder (4)
Microsoft.Extensions.Configuration.Binder.SourceGeneration (10)
Microsoft.Extensions.Configuration.Xml (5)
Microsoft.Extensions.DataIngestion (5)
Microsoft.Extensions.DependencyInjection (15)
Microsoft.Extensions.DependencyInjection.Abstractions (1)
Microsoft.Extensions.DependencyModel (15)
Microsoft.Extensions.Diagnostics (1)
Microsoft.Extensions.Diagnostics.Abstractions (2)
Microsoft.Extensions.Diagnostics.ExceptionSummarization (1)
Microsoft.Extensions.Diagnostics.ExceptionSummarization.Tests (2)
Microsoft.Extensions.Diagnostics.HealthChecks (2)
Microsoft.Extensions.Diagnostics.HealthChecks.Common (2)
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (8)
TelemetryHealthChecksPublisherTests.cs (6)
26new List<HealthStatus> { HealthStatus.Healthy },
34new List<HealthStatus> { HealthStatus.Degraded },
42new List<HealthStatus> { HealthStatus.Unhealthy },
50new List<HealthStatus> { HealthStatus.Healthy, HealthStatus.Healthy },
58new List<HealthStatus> { HealthStatus.Healthy, HealthStatus.Unhealthy },
66new List<HealthStatus> { HealthStatus.Healthy, HealthStatus.Degraded, HealthStatus.Unhealthy },
Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization (5)
Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization.Tests (7)
Microsoft.Extensions.Diagnostics.Probes (3)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (5)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (18)
Microsoft.Extensions.Diagnostics.Testing (6)
Microsoft.Extensions.Diagnostics.Testing.Tests (2)
Microsoft.Extensions.DotNetDeltaApplier (4)
Microsoft.Extensions.FileProviders.Composite (3)
Microsoft.Extensions.FileProviders.Embedded (5)
Microsoft.Extensions.FileSystemGlobbing (18)
Microsoft.Extensions.Hosting (19)
Microsoft.Extensions.Hosting.Testing.Tests (2)
Microsoft.Extensions.Http (5)
Microsoft.Extensions.Http.Diagnostics (3)
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (1)
Microsoft.Extensions.Http.Diagnostics.Tests (52)
HttpHeadersRedactorTests.cs (8)
32Add(new LinkedList<string>(new List<string> { "aaa", "bbb", "ccc" }), "Redacted:aaa,Redacted:bbb,Redacted:ccc");
33Add(new LinkedList<string>(new List<string> { "aaa", "bbb", null! }), "Redacted:aaa,Redacted:bbb,");
34Add(new LinkedList<string>(new List<string> { "aaa", null!, null! }), "Redacted:aaa,,");
35Add(new LinkedList<string>(new List<string> { null!, null!, null! }), ",,");
36Add(new LinkedList<string>(new List<string> { null! }), string.Empty);
37Add(new LinkedList<string>(new List<string> { "aaa" }), "Redacted:aaa");
38Add(new LinkedList<string>(new List<string>()), string.Empty);
39Add(new LinkedList<string>(new List<string> { longStr, "bbb", "ccc" }), $"Redacted:{longStr},Redacted:bbb,Redacted:ccc");
Logging\AcceptanceTests.cs (5)
169httpRequestMessage.Headers.Add("ReQuEStHeAdErFirst", new List<string> { "Request Value 2", "Request Value 3" });
185httpRequestMessage2.Headers.Add("ReQuEStHeAdErSecond", new List<string> { "Request Value 2", "Request Value 3" });
250httpRequestMessage.Headers.Add("ReQuEStHeAdEr2", new List<string> { "Request Value 2", "Request Value 3" });
272httpRequestMessage2.Headers.Add("ReQuEStHeAdEr2", new List<string> { "Request Value 2", "Request Value 3" });
688httpRequestMessage.Headers.Add("ReQuEStHeAdEr2", new List<string> { "Request Value 2", "Request Value 3" });
Logging\HttpClientLoggerTest.cs (10)
230new List<IHttpClientLogEnricher> { testEnricher },
327new List<IHttpClientLogEnricher> { testEnricher },
434new List<IHttpClientLogEnricher> { testEnricher },
550new List<IHttpClientLogEnricher> { testEnricher },
644new List<IHttpClientLogEnricher> { testEnricher },
688new List<IHttpClientLogEnricher> { enricher1.Object, enricher2.Object },
731new List<IHttpClientLogEnricher> { enricher1.Object, enricher2.Object },
766var enrichers = new List<IHttpClientLogEnricher> { enricher1.Object, enricher2.Object };
813new List<IHttpClientLogEnricher> { enricher1.Object, enricher2.Object },
915new List<IHttpClientLogEnricher> { testEnricher },
Logging\HttpRequestReaderTest.cs (22)
103var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
104var responseHeadersBuffer = new List<KeyValuePair<string, string>>();
162var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
163var responseHeadersBuffer = new List<KeyValuePair<string, string>>();
234var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
235var responseHeadersBuffer = new List<KeyValuePair<string, string>>();
310var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
311var responseHeadersBuffer = new List<KeyValuePair<string, string>>();
371var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
372var responseHeadersBuffer = new List<KeyValuePair<string, string>>();
443var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
444var responseHeadersBuffer = new List<KeyValuePair<string, string>>();
512var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
513var responseHeadersBuffer = new List<KeyValuePair<string, string>>();
582var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
583var responseHeadersBuffer = new List<KeyValuePair<string, string>>();
669var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
698await reader.ReadRequestAsync(logRecord, httpRequestMessage, new List<KeyValuePair<string, string>>(), CancellationToken.None);
728await reader.ReadRequestAsync(logRecord, httpRequestMessage, new List<KeyValuePair<string, string>>(), CancellationToken.None);
764await reader.ReadRequestAsync(logRecord, httpRequestMessage, new List<KeyValuePair<string, string>>(), CancellationToken.None);
853await reader.ReadRequestAsync(logRecord, httpRequestMessage, new List<KeyValuePair<string, string>>(), CancellationToken.None);
909var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
Microsoft.Extensions.Http.Resilience (35)
Microsoft.Extensions.Http.Resilience.Tests (14)
Microsoft.Extensions.Identity.Core (23)
Microsoft.Extensions.Identity.Stores (1)
Microsoft.Extensions.Localization (1)
Microsoft.Extensions.Logging (10)
Microsoft.Extensions.Logging.Abstractions (1)
Microsoft.Extensions.Logging.AzureAppServices (1)
Microsoft.Extensions.Logging.Console (2)
Microsoft.Extensions.Logging.EventLog (1)
Microsoft.Extensions.Logging.EventSource (1)
Microsoft.Extensions.Logging.Generators (10)
Microsoft.Extensions.Options (11)
Microsoft.Extensions.Options.Contextual (1)
Microsoft.Extensions.Options.DataAnnotations (6)
Microsoft.Extensions.Options.SourceGeneration (11)
Microsoft.Extensions.Primitives (1)
Microsoft.Extensions.ServiceDiscovery (5)
Microsoft.Extensions.ServiceDiscovery.Dns (13)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (4)
Microsoft.Extensions.ServiceDiscovery.Tests (1)
Microsoft.Extensions.ServiceDiscovery.Yarp (3)
Microsoft.Extensions.Telemetry (16)
Microsoft.Extensions.Telemetry.Abstractions (6)
Microsoft.Extensions.Telemetry.Abstractions.Tests (1)
Microsoft.Extensions.Telemetry.Tests (13)
Microsoft.Extensions.TimeProvider.Testing.Tests (4)
Microsoft.Extensions.Validation (1)
Microsoft.Extensions.Validation.ValidationsGenerator (3)
Microsoft.Extensions.VectorData.ConformanceTests (1)
Microsoft.Gen.BuildMetadata (2)
Microsoft.Gen.BuildMetadata.Unit.Tests (5)
Microsoft.Gen.ComplianceReports (2)
Microsoft.Gen.ComplianceReports.Unit.Tests (5)
Microsoft.Gen.ContextualOptions (1)
Microsoft.Gen.ContextualOptions.Unit.Tests (6)
Microsoft.Gen.Logging (6)
Microsoft.Gen.Logging.Unit.Tests (7)
Microsoft.Gen.MetadataExtractor (7)
Microsoft.Gen.MetadataExtractor.Unit.Tests (5)
Microsoft.Gen.Metrics (7)
Microsoft.Gen.Metrics.Unit.Tests (10)
Microsoft.Gen.MetricsReports (5)
Microsoft.Gen.MetricsReports.Unit.Tests (5)
Microsoft.Interop.ComInterfaceGenerator (12)
Microsoft.Interop.JavaScript.JSImportGenerator (5)
Microsoft.Interop.LibraryImportGenerator (13)
Microsoft.Interop.LibraryImportGenerator.Downlevel (2)
Microsoft.Interop.SourceGeneration (9)
Microsoft.Maui (27)
Microsoft.Maui.Controls (159)
Microsoft.Maui.Controls.BindingSourceGen (7)
Microsoft.Maui.Controls.Build.Tasks (23)
Microsoft.Maui.Controls.Foldable (1)
Microsoft.Maui.Controls.SourceGen (9)
Microsoft.Maui.Controls.Xaml (19)
Microsoft.Maui.Essentials (15)
Microsoft.Maui.Graphics (25)
Microsoft.Maui.Graphics.Skia (1)
Microsoft.Maui.Graphics.Text.Markdig (1)
Microsoft.Maui.Maps (1)
Microsoft.Maui.Resizetizer (7)
Microsoft.ML.AutoML (63)
Microsoft.ML.AutoML.Interactive (5)
Microsoft.ML.AutoML.SourceGenerator (5)
Microsoft.ML.AutoML.Tests (35)
InferredPipelineTests.cs (19)
28var transforms1 = new List<SuggestedTransform>();
29var transforms2 = new List<SuggestedTransform>();
30var inferredPipeline1 = new SuggestedPipeline(transforms1, new List<SuggestedTransform>(), trainer1, context, false);
31var inferredPipeline2 = new SuggestedPipeline(transforms2, new List<SuggestedTransform>(), trainer2, context, false);
35var hyperparams1 = new ParameterSet(new List<IParameterValue>() { new LongParameterValue("NumberOfLeaves", 2) });
38inferredPipeline1 = new SuggestedPipeline(transforms1, new List<SuggestedTransform>(), trainer1, context, false);
39inferredPipeline2 = new SuggestedPipeline(transforms2, new List<SuggestedTransform>(), trainer2, context, false);
43hyperparams1 = new ParameterSet(new List<IParameterValue>() { new LongParameterValue("NumberOfLeaves", 2) });
44var hyperparams2 = new ParameterSet(new List<IParameterValue>() { new LongParameterValue("NumberOfLeaves", 6) });
47inferredPipeline1 = new SuggestedPipeline(transforms1, new List<SuggestedTransform>(), trainer1, context, false);
48inferredPipeline2 = new SuggestedPipeline(transforms2, new List<SuggestedTransform>(), trainer2, context, false);
54transforms1 = new List<SuggestedTransform>() { ColumnConcatenatingExtension.CreateSuggestedTransform(context, new[] { "In" }, "Out") };
55transforms2 = new List<SuggestedTransform>() { ColumnConcatenatingExtension.CreateSuggestedTransform(context, new[] { "In" }, "Out") };
56inferredPipeline1 = new SuggestedPipeline(transforms1, new List<SuggestedTransform>(), trainer1, context, false);
57inferredPipeline2 = new SuggestedPipeline(transforms2, new List<SuggestedTransform>(), trainer2, context, false);
63transforms1 = new List<SuggestedTransform>() { ColumnConcatenatingExtension.CreateSuggestedTransform(context, new[] { "In" }, "Out") };
64transforms2 = new List<SuggestedTransform>() { ColumnConcatenatingExtension.CreateSuggestedTransform(context, new[] { "In" }, "Out") };
65inferredPipeline1 = new SuggestedPipeline(transforms1, new List<SuggestedTransform>(), trainer1, context, false);
66inferredPipeline2 = new SuggestedPipeline(transforms2, new List<SuggestedTransform>(), trainer2, context, false);
Microsoft.ML.CodeGenerator (16)
Microsoft.ML.CodeGenerator.Tests (19)
ApprovalTests\ConsoleCodeGeneratorTests.cs (9)
602var hyperparams1 = new Microsoft.ML.AutoML.ParameterSet(new List<Microsoft.ML.AutoML.IParameterValue>() { new LongParameterValue("NumLeaves", 2) });
604var transforms1 = new List<SuggestedTransform>() { ColumnConcatenatingExtension.CreateSuggestedTransform(context, new[] { "In" }, "Out") };
605var inferredPipeline1 = new SuggestedPipeline(transforms1, new List<SuggestedTransform>(), trainer1, context, true);
639var hyperparams1 = new Microsoft.ML.AutoML.ParameterSet(new List<Microsoft.ML.AutoML.IParameterValue>() { new LongParameterValue("NumLeaves", 2) });
641var transforms1 = new List<SuggestedTransform>() { ColumnConcatenatingExtension.CreateSuggestedTransform(context, new[] { "In" }, "Out") };
642var inferredPipeline1 = new SuggestedPipeline(transforms1, new List<SuggestedTransform>(), trainer1, context, true);
1097var hyperparams1 = new Microsoft.ML.AutoML.ParameterSet(new List<Microsoft.ML.AutoML.IParameterValue>() { new LongParameterValue("NumLeaves", 2) });
1099var transforms1 = new List<SuggestedTransform>() { ColumnConcatenatingExtension.CreateSuggestedTransform(context, new[] { "In" }, "Out") };
1100var inferredPipeline1 = new SuggestedPipeline(transforms1, new List<SuggestedTransform>(), trainer1, context, true);
Microsoft.ML.Core (37)
Microsoft.ML.Core.Tests (11)
Microsoft.ML.Data (258)
Microsoft.ML.DataView (3)
Microsoft.ML.Ensemble (4)
Microsoft.ML.EntryPoints (37)
Microsoft.ML.FastTree (97)
Microsoft.ML.GenAI.Core (3)
Microsoft.ML.GenAI.Core.Tests (3)
Microsoft.ML.GenAI.LLaMA (4)
Microsoft.ML.GenAI.LLaMA.Tests (1)
Microsoft.ML.GenAI.Mistral (3)
Microsoft.ML.GenAI.Mistral.Tests (2)
Microsoft.ML.GenAI.Phi (3)
Microsoft.ML.GenAI.Samples (2)
Microsoft.ML.IntegrationTests (1)
Microsoft.ML.InternalCodeAnalyzer (1)
Microsoft.ML.KMeansClustering (1)
Microsoft.ML.LightGbm (11)
Microsoft.ML.Maml (3)
Microsoft.ML.Mkl.Components (2)
Microsoft.ML.OnnxConverter (7)
Microsoft.ML.OnnxTransformer (4)
Microsoft.ML.OnnxTransformerTest (6)
Microsoft.ML.Parquet (3)
Microsoft.ML.PerformanceTests (5)
Microsoft.ML.Predictor.Tests (17)
Microsoft.ML.Recommender (3)
Microsoft.ML.ResultProcessor (15)
Microsoft.ML.Samples (81)
Microsoft.ML.Samples.OneDal (3)
Microsoft.ML.SamplesUtils (4)
Microsoft.ML.SearchSpace (3)
Microsoft.ML.StandardTrainers (21)
Microsoft.ML.Sweeper (28)
Microsoft.ML.Sweeper.Tests (13)
Microsoft.ML.TensorFlow (1)
Microsoft.ML.TensorFlow.Tests (9)
Microsoft.ML.TestFramework (13)
Microsoft.ML.TestFrameworkCommon (3)
Microsoft.ML.Tests (88)
OnnxConversionTest.cs (19)
185List<IEstimator<ITransformer>> estimators = new List<IEstimator<ITransformer>>()
223List<IEstimator<ITransformer>> estimators = new List<IEstimator<ITransformer>>()
281List<IEstimator<ITransformer>> estimators = new List<IEstimator<ITransformer>>()
415var samples = new List<DataPoint>()
506ctx.AddInitializer(new List<float> { 9.4f, 1.7f, 3.6f }, new List<long> { 1, 3 }, "floats");
507ctx.AddInitializer(new List<long> { 94L, 17L, 36L }, new List<long> { 1, 3 }, "int64s");
508ctx.AddInitializer(new List<string> { "94", "17", "36" }, new List<long> { 1, 3 }, "strings");
1154var samples = new List<DataPoint>()
1243List<IEstimator<ITransformer>> pipelines = new List<IEstimator<ITransformer>>();
1439var samples = new List<TextData>()
1466var samples = new List<TextData>()
1546var samples = new List<TextData>()
1570var samples = new List<TextData>()
1649List<IEstimator<ITransformer>> estimators = new List<IEstimator<ITransformer>>()
1934List<IEstimator<ITransformer>> estimators = new List<IEstimator<ITransformer>>()
1976List<IEstimator<ITransformer>> estimators = new List<IEstimator<ITransformer>>()
Transformers\ValueMappingTests.cs (23)
55var keys = new List<string>() { "foo", "bar", "test", "wahoo" };
56var values = new List<int>() { 1, 2, 3, 4 };
93var keys = new List<ReadOnlyMemory<char>>() { "foo".AsMemory(), "bar".AsMemory(), "test".AsMemory(), "wahoo".AsMemory() };
94var values = new List<int>() { 1, 2, 3, 4 };
139var keyValuePairs = new List<KeyValuePair<string, string>>() {
174IEnumerable<string> keys = new List<string>() { "foo", "bar", "test" };
175List<int[]> values = new List<int[]>() {
263IEnumerable<string> keys = new List<string>() { "foo", "bar", "test" };
264List<string[]> values = new List<string[]>() {
307var keys = new List<string>() { "foo", "bar", "test", "wahoo" };
308var values = new List<int>() { 1, 2, 3, 4 };
345var keys = new List<string>() { "foo", "foo" };
346var values = new List<int>() { 1, 2 };
364var keyValuePairs = new List<KeyValuePair<string, int>>() {
396var keyValuePairs = new List<KeyValuePair<string, string>>() {
430var keyValuePairs = new List<KeyValuePair<string, uint>>() {
471var keyValuePairs = new List<KeyValuePair<string, ulong>>() {
512var keyValuePairs = new List<KeyValuePair<string, string>>() {
552var keyValuePairs = new List<KeyValuePair<string, string>>() {
594var keyValuePairs = new List<KeyValuePair<string, int>>() {
613var keyValuePairs = new List<KeyValuePair<string, int[]>>() {
633var keyValuePairs = new List<KeyValuePair<ReadOnlyMemory<char>, int>>() {
687var keyValuePairs = new List<KeyValuePair<string, int>>() {
Microsoft.ML.TimeSeries (47)
Microsoft.ML.TimeSeries.Tests (43)
TimeSeriesDirectApi.cs (20)
112List<Data> data = new List<Data>(size);
134List<double> expectedValues = new List<double>() { 0, 5, 0.5, 5.1200000000000114E-08, 0, 5, 0.4999999995, 5.1200000046080209E-08, 0, 5, 0.4999999995, 5.1200000092160303E-08,
157List<Data> data = new List<Data>();
187List<double> expectedValues = new List<double>() { 0, -3.31410551071167, 0.5, 5.12000000000001E-08, 0, 1.570083498954773, 5.2001145245395008E-07,
213List<Data> data = new List<Data>();
289List<Data> data = new List<Data>();
359List<Data> data = new List<Data>();
394List<float> expectedForecast = new List<float>() { 0.191492021f, 2.53994060f, 5.26454258f, 7.37313938f };
395List<float> minCnf = new List<float>() { -3.9741986f, -2.36872721f, 0.09407699f, 2.18899393f };
396List<float> maxCnf = new List<float>() { 4.3571825f, 7.4486084f, 10.435008f, 12.5572853f };
422List<Data> data = new List<Data>();
546var data = new List<TimeSeriesData>();
602data = new List<TimeSeriesDataDouble>();
958var rootCauseLocalizationInput = new RootCauseLocalizationInput(GetRootCauseTimestamp(), GetRootCauseAnomalyDimension("UK", _rootCauseAggSymbol), new List<MetricSlice>() { new MetricSlice(GetRootCauseTimestamp(), GetRootCauseLocalizationPoints(_rootCauseAggSymbol)) }, AggregateType.Sum, _rootCauseAggSymbol);
985var rootCauseLocalizationInput = new RootCauseLocalizationInput(GetRootCauseTimestamp(), GetRootCauseAnomalyDimension("UK", _rootCauseAggSymbol), new List<MetricSlice>() { new MetricSlice(GetRootCauseTimestamp(), GetRootCauseLocalizationPoints(_rootCauseAggSymbol)) }, AggregateType.Sum, _rootCauseAggSymbol);
1031List<MetricSlice> slice = new List<MetricSlice>
1085List<TimeSeriesPoint> points = new List<TimeSeriesPoint>();
1181List<MetricSlice> slice = new List<MetricSlice>
1215List<MetricSlice> slice = new List<MetricSlice>
1229List<TimeSeriesPoint> points = new List<TimeSeriesPoint>();
TimeSeriesSimpleApiTests.cs (8)
43var data = new List<Data>(size);
62List<double> expectedValues = new List<double>() { 0, 5, 0.5, 5.1200000000000114E-08, 0, 5, 0.4999999995, 5.1200000046080209E-08, 0, 5, 0.4999999995, 5.1200000092160303E-08,
85var data = new List<Data>();
105List<double> expectedValues = new List<double>() { 0, -3.31410598754883, 0.5, 5.12000000000001E-08, 0, 1.5700820684432983, 5.2001145245395008E-07,
128List<Data> data = new List<Data>(size);
145var expectedValues = new List<double[]>() {
180List<Data> data = new List<Data>(size);
197var expectedValues = new List<double[]>() {
Microsoft.ML.Tokenizers (43)
Microsoft.ML.Tokenizers.Data.Tests (2)
Microsoft.ML.Tokenizers.Tests (41)
TiktokenTests.cs (13)
150Assert.Equal(new List<int>() { 9906, 4435 }, encoded);
162Assert.Equal(new List<Range> { new Range(0, 5), new Range(5, 11) }, offsets);
203Assert.Equal(new List<int>() { 100264, 9906, 4435, 100265 }, encoded);
216Assert.Equal(new List<(int, int)> { (0, 12), (12, 5), (17, 6), (23, 10) }, offsets);
246Assert.Equal(new List<int>() { 100264, 9906, 100265, 4435 }, encoded);
259Assert.Equal(new List<(int, int)> { (0, 12), (12, 5), (17, 10), (27, 6) }, offsets);
281Assert.Equal(new List<int>() { 100264, 9906, 2928, 99834, 4435, 100265 }, encoded);
289Assert.Equal(new List<(int, int)> { (0, 12), (12, 5), (17, 2), (18, 1), (19, 6), (25, 10) }, result.Select(token => (token.Offset.Start.Value, token.Offset.End.Value - token.Offset.Start.Value)).ToArray());
317Assert.Equal(new List<int>() { 199999, 13225, 161181, 5922, 200018 }, encoded);
326Assert.Equal(new List<(int, int)> { (0, 13), (13, 5), (18, 2), (20, 6), (26, 15) }, result.Select(token => (token.Offset.Start.Value, token.Offset.End.Value - token.Offset.Start.Value)).ToArray());
807Assert.Equal(new List<int>() { 100264, 9906, 100266, 4435, 100265, 100349 }, encoded);
845new List<int> { 199998, 200006, 200008, 13225, 5922, 200007, 199999 },
852Assert.Equal(new List<(int, int)> { (0, 15), (15, 24), (24, 35), (35, 40), (40, 46), (46, 53), (53, 66) },
UnigramTests.cs (9)
500IReadOnlyList<int> ids2 = index < normalized.Length ? _unigramTokenizer.EncodeToIds(normalized!.Substring(index), addBeginningOfSentence: false, addEndOfSentence: false, considerNormalization: false) : new List<int>();
506ids2 = index < normalized.Length ? _unigramTokenizer.EncodeToIds(normalized!.Substring(index).AsSpan(), addBeginningOfSentence: false, addEndOfSentence: false, considerNormalization: false) : new List<int>();
512ids2 = index < normalized.Length ? _unigramTokenizer.EncodeToIds(normalized!.Substring(index), addBeginningOfSentence: false, addEndOfSentence: false, considerNormalization: false) : new List<int>();
518ids2 = index < normalized.Length ? _unigramTokenizer.EncodeToIds(normalized!.Substring(index).AsSpan(), addBeginningOfSentence: false, addEndOfSentence: false, considerNormalization: false) : new List<int>();
570var vocab = new List<(string Piece, float Score)>
608var vocab = new List<(string Piece, float Score)> { ("a", 0f) };
674var vocab = new List<(string Piece, float Score)>
696var vocab = new List<(string Piece, float Score)>
1285var vocab = new List<(string Piece, float Score)>
Microsoft.ML.TorchSharp (79)
AutoFormerV2\AutoFormerV2Backbone.cs (7)
60embedChannels ??= new List<int>() { 96, 192, 384, 576 };
61depths ??= new List<int>() { 2, 2, 6, 2 };
62numHeads ??= new List<int>() { 3, 6, 12, 18 };
63windowSizes ??= new List<int>() { 7, 7, 14, 7 };
64outIndices ??= new List<int>() { 1, 2, 3 };
72var dpr = new List<double>();
121var outs = new List<Tensor>();
AutoFormerV2\BasicLayer.cs (2)
69List<int> hSlicesStartAndEnd = new List<int>() { 0, hp - this.windowSize, hp - this.windowSize, hp - this.shiftSize, hp - this.shiftSize, hp };
70List<int> wSlicesStartAndEnd = new List<int>() { 0, wp - this.windowSize, wp - this.windowSize, wp - this.shiftSize, wp - this.shiftSize, wp };
AutoFormerV2\ObjectDetectionTrainer.cs (12)
84public List<int> Steps = new List<int> { 6 };
218embedChannels: new List<int>() { 64, 128, 256, 448 },
219depths: new List<int>() { 2, 2, 6, 2 },
220numHeads: new List<int>() { 2, 4, 8, 14 },
377List<Tensor> part = new List<Tensor>();
446var metadata = new List<SchemaShape.Column>();
450var scoreMetadata = new List<SchemaShape.Column>();
551var scoreMetadata = new List<SchemaShape.Column>();
689embedChannels: new List<int>() { 64, 128, 256, 448 },
690depths: new List<int>() { 2, 2, 6, 2 },
691numHeads: new List<int>() { 2, 4, 8, 14 },
911var part = new List<Tensor>();
NasBert\Modules\MultiHeadAttention.cs (7)
206k = torch.cat(new List<torch.Tensor> { k, kRepeat }, dim: 0);
207v = torch.cat(new List<torch.Tensor> { v, vRepeat }, dim: 0);
224: torch.cat(new List<torch.Tensor> { prevKey, k }, dim: 1);
232: torch.cat(new List<torch.Tensor> { prevValue, v }, dim: 1);
258k = torch.cat(new List<torch.Tensor> { k, kZeros }, dim: 1);
259v = torch.cat(new List<torch.Tensor> { v, vZeros }, dim: 1);
310return torch.cat(new List<torch.Tensor> { tensor, zeros }, dim: 1);
Utils\ImageUtils.cs (6)
49var finalResult = new[] { new List<Tensor>(), new List<Tensor>(), new List<Tensor>() };
119var keep = new List<long>();
191new List<Tensor> { predBoxesX1, predBoxesY1, predBoxesX2, predBoxesY2 },
220new List<Tensor> { clippedBoxesX0, clippedBoxesY0, clippedBoxesX1, clippedBoxesY1 },
Microsoft.ML.TorchSharp.Tests (9)
Microsoft.ML.Transforms (82)
Microsoft.ML.Vision (4)
Microsoft.NET.Build.Containers (7)
Microsoft.NET.Build.Extensions.Tasks (4)
Microsoft.NET.Build.Tasks (94)
Microsoft.NET.HostModel (8)
Microsoft.Net.Http.Headers (6)
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (6)
Microsoft.NET.Sdk.Publish.Tasks (22)
Microsoft.NET.Sdk.Razor.Tasks (5)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (67)
Microsoft.NET.Sdk.WorkloadManifestReader (3)
Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver (2)
Microsoft.NET.StringTools (1)
Microsoft.Private.Windows.Core (3)
Microsoft.SourceLink.AzureDevOpsServer.Git (2)
Microsoft.SourceLink.AzureRepos.Git (2)
Microsoft.SourceLink.Bitbucket.Git (2)
Microsoft.SourceLink.Common (2)
Microsoft.SourceLink.Gitea (2)
Microsoft.SourceLink.Gitee (2)
Microsoft.SourceLink.GitHub (2)
Microsoft.SourceLink.GitLab (2)
Microsoft.SourceLink.GitWeb (2)
Microsoft.SourceLink.Tools.Package (1)
Microsoft.TemplateEngine.Cli (57)
Microsoft.TemplateEngine.Core (27)
Microsoft.TemplateEngine.Edge (50)
Microsoft.TemplateEngine.IDE (5)
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (79)
Microsoft.TemplateEngine.Utils (17)
Microsoft.TemplateSearch.Common (16)
Microsoft.TestPlatform.AdapterUtilities (1)
Microsoft.TestPlatform.Build (5)
Microsoft.TestPlatform.CommunicationUtilities (11)
Microsoft.TestPlatform.CoreUtilities (1)
Microsoft.TestPlatform.CrossPlatEngine (42)
Microsoft.TestPlatform.Extensions.BlameDataCollector (9)
Microsoft.TestPlatform.TestHostRuntimeProvider (2)
Microsoft.TestPlatform.Utilities (12)
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (2)
Microsoft.VisualBasic.Core (18)
Microsoft.VisualStudio.TestPlatform.Client (1)
Microsoft.VisualStudio.TestPlatform.Common (27)
Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger (10)
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (14)
Microsoft.VisualStudio.TestPlatform.ObjectModel (22)
Microsoft.Web.XmlTransform (8)
Microsoft.Win32.Msi (1)
Microsoft.Win32.SystemEvents (1)
MilvusPlayground.ApiService (4)
Mono.Cecil (3)
Mono.Cecil.Mdb (19)
Mono.Cecil.Pdb (3)
MSBuild (22)
MyFrontend (2)
NuGet.Build.Tasks (16)
NuGet.Build.Tasks.Console (6)
NuGet.Build.Tasks.Pack (8)
NuGet.CommandLine.XPlat (75)
NuGet.Commands (139)
NuGet.Common (6)
NuGet.Configuration (30)
NuGet.Credentials (2)
NuGet.DependencyResolver.Core (18)
NuGet.Frameworks (10)
NuGet.LibraryModel (2)
NuGet.PackageManagement (97)
NuGetPackageManager.cs (42)
169var sources = new List<SourceRepository>();
176var folders = new List<string>(count)
243new List<SourceRepository> { primarySourceRepository },
269new List<SourceRepository> { primarySourceRepository },
368new List<SourceRepository> { primarySourceRepository },
393new List<SourceRepository> { primarySourceRepository },
570packageIdentities: new List<PackageIdentity>(),
590packageIdentities: new List<PackageIdentity>(),
610packageIdentities: new List<PackageIdentity> { packageIdentity },
680var tasks = new List<Task<IEnumerable<NuGetProjectAction>>>(maxTasks);
681var nugetActions = new List<NuGetProjectAction>();
842var actions = new List<NuGetProjectAction>();
847var lowLevelActions = new List<NuGetProjectAction>();
941var lowLevelActions = new List<NuGetProjectAction>();
1024var primaryTargetIds = new List<string>();
1025var primaryTargets = new List<PackageIdentity>();
1059primaryTargets = new List<PackageIdentity> { preferredVersions[packageId] };
1063primaryTargetIds = new List<string> { packageId };
1094var nuGetProjectActions = new List<NuGetProjectAction>();
1111var allSources = new List<SourceRepository>(primarySources);
1401var nuGetProjectActions = new List<NuGetProjectAction>();
1571var primarySources = new List<SourceRepository> { primarySourceRepository };
1655var results = new List<ResolvedAction>();
1658var buildIntegratedProjectsToUpdate = new List<BuildIntegratedNuGetProject>();
1661var otherTargetProjectsToUpdate = new List<NuGetProject>();
1808var nuGetProjectActions = new List<NuGetProjectAction>();
1845var primaryPackages = new List<PackageIdentity> { packageIdentity };
1912var preferredPackageReferences = new List<PackageReference>(projectInstalledPackageReferences.Where(pr =>
1954var newPackagesToUninstall = new List<PackageIdentity>();
2153var results = new List<NuGetProjectAction>();
2155var buildIntegratedProjectsToUpdate = new List<BuildIntegratedNuGetProject>();
2156var otherTargetProjectsToUpdate = new List<NuGetProject>();
2855new List<BuildIntegratedNuGetProject>() { buildIntegratedProject },
2914var result = new List<ResolvedAction>();
3084List<(NuGetProjectAction, BuildIntegratedInstallationContext)> projectActionsAndInstallationContexts = new(nuGetProjectActions.Length);
3244List<PackagePatternItem> newPatternItems = new()
3509List<string> filesToBeUpdated = new(3); // We know that we have 3 files.
3779new List<SourceRepository> { primarySourceRepository },
3803new List<SourceRepository> { primarySourceRepository },
3834var tasks = new List<Task<ResolvedPackage>>();
3856var tasks = new List<Task<ResolvedPackage>>();
3922var effectiveSources = new List<SourceRepository>(count)
NuGet.Packaging (127)
NuGet.ProjectModel (48)
NuGet.Protocol (82)
NuGet.Resolver (14)
NuGet.Versioning (1)
OrderProcessor (2)
PresentationBuildTasks (26)
PresentationCore (351)
PresentationFramework (546)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (14)
1795new List<Type>() { typeof(System.Type) },
1885new List<Type>() { typeof(System.String) },
2828new List<Type>() { typeof(System.Object) },
2974new List<Type>() { typeof(System.Type), typeof(System.Object) },
3356new List<Type>() { typeof(System.Object) },
4352new List<Type>() { typeof(System.Object) },
9167new List<Type>() { typeof(System.Windows.Data.RelativeSourceMode) },
9174new List<Type>() { typeof(System.Windows.Data.RelativeSourceMode), typeof(System.Type), typeof(System.Int32) },
10451new List<Type>() { typeof(System.String) },
10472new List<Type>() { typeof(System.Object) },
10956new List<Type>() { typeof(System.Windows.DependencyProperty) },
11196new List<Type>() { typeof(System.String) },
11828new List<Type>() { typeof(System.Type) },
13165new List<Type>() { typeof(System.Object) },
PresentationFramework.Aero (1)
PresentationFramework.Aero2 (1)
PresentationFramework.AeroLite (1)
PresentationFramework.Classic (1)
PresentationFramework.Luna (1)
PresentationFramework.Royale (1)
PresentationUI (24)
Publishers.AppHost (1)
QuarantineTools.Tests (6)
ReachFramework (38)
RepoTasks (13)
Roslyn.Diagnostics.Analyzers (39)
Roslyn.Diagnostics.CSharp.Analyzers (13)
rzc (16)
sdk-tasks (5)
SelectTests (19)
Shared (1)
Shared.Tests (16)
Stress.ApiService (4)
Stress.AppHost (12)
Stress.TelemetryService (1)
System.CodeDom (2)
System.Collections (4)
System.Collections.Concurrent (3)
System.Collections.Immutable (7)
System.CommandLine (19)
System.CommandLine.StaticCompletions (4)
System.ComponentModel.Annotations (10)
System.ComponentModel.Composition (58)
System.ComponentModel.Composition.Registration (18)
System\ComponentModel\Composition\Registration\PartBuilder.cs (10)
13private static readonly List<Attribute> s_importingConstructorList = new List<Attribute>() { new ImportingConstructorAttribute() };
39_typeExportBuilders = new List<ExportBuilder>();
40_propertyExports = new List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ExportBuilder>, Type>>();
41_propertyImports = new List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ImportBuilder>, Type>>();
42_interfaceExports = new List<Tuple<Predicate<Type>, Action<Type, ExportBuilder>>>();
188_metadataItems ??= new List<Tuple<string, object>>();
196_metadataItemFuncs ??= new List<Tuple<string, Func<Type, object>>>();
225var attributes = new List<Attribute>();
388configuredMembers ??= new List<Tuple<object, List<Attribute>>>();
503configuredMembers ??= new List<Tuple<object, List<Attribute>>>();
System.ComponentModel.TypeConverter (16)
System.Composition.Convention (21)
System\Composition\Convention\PartConventionBuilder.cs (12)
18private static readonly List<Attribute> s_importingConstructorList = new List<Attribute>() { new ImportingConstructorAttribute() };
43_typeExportBuilders = new List<ExportConventionBuilder>();
44_propertyExports = new List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ExportConventionBuilder>, Type>>();
45_propertyImports = new List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ImportConventionBuilder>>>();
46_interfaceExports = new List<Tuple<Predicate<Type>, Action<Type, ExportConventionBuilder>>>();
47_methodImportsSatisfiedNotifications = new List<Predicate<MethodInfo>>();
373_metadataItems ??= new List<Tuple<string, object>>();
394_metadataItemFuncs ??= new List<Tuple<string, Func<Type, object>>>();
422var attributes = new List<Attribute>();
579configuredMembers ??= new List<Tuple<object, List<Attribute>>>();
646var onImportsSatisfiedAttributeList = new List<Attribute>
748configuredMembers ??= new List<Tuple<object, List<Attribute>>>();
System.Composition.Hosting (5)
System.Composition.TypedParts (9)
System.Configuration.ConfigurationManager (7)
System.Console (2)
System.Data.Common (53)
System.Data.Odbc (12)
System.Data.OleDb (9)
System.Diagnostics.DiagnosticSource (24)
System.Diagnostics.EventLog (16)
System.Diagnostics.PerformanceCounter (1)
System.Diagnostics.Process (10)
System.Diagnostics.TraceSource (7)
System.DirectoryServices (2)
System.DirectoryServices.AccountManagement (38)
System.Formats.Asn1 (1)
System.Formats.Cbor (4)
System.Formats.Nrbf (3)
System.Formats.Tar (1)
System.IO.Compression (4)
System.IO.FileSystem.AccessControl (1)
System.IO.FileSystem.DriveInfo (2)
System.IO.FileSystem.Watcher (3)
System.IO.Packaging (10)
System.IO.Pipelines (3)
System.IO.Ports (4)
System.Linq (24)
System.Linq.Expressions (33)
System.Linq.Parallel (7)
System.Linq.Queryable (2)
System.Memory (2)
System.Net.Http (24)
System.Net.HttpListener (17)
System.Net.Mail (4)
System.Net.NameResolution (15)
System.Net.NetworkInformation (12)
System.Net.Primitives (2)
System.Net.Quic (1)
System.Net.Requests (4)
System.Net.Security (3)
System.Net.Sockets (1)
System.Net.WebHeaderCollection (2)
System.Net.WebSockets.Client (1)
System.ObjectModel (3)
System.Private.CoreLib (93)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\Collection.cs (1)
20items = new List<T>();
System.Private.CoreLib.Generators (2)
System.Private.DataContractSerialization (38)
System.Private.Reflection.Execution (1)
System.Private.TypeLoader (3)
System.Private.Windows.Core (3)
System.Private.Xml (170)
System.Private.Xml.Linq (4)
System.Reflection.Context (8)
System.Reflection.DispatchProxy (2)
System.Reflection.Emit (43)
System.Reflection.Metadata (50)
System.Reflection.MetadataLoadContext (12)
System.Resources.Extensions (1)
System.Resources.Writer (1)
System.Runtime.Caching (3)
System.Runtime.InteropServices.JavaScript (2)
System.Runtime.Serialization.Formatters (2)
System.Runtime.Serialization.Schema (3)
System.Security.AccessControl (2)
System.Security.Claims (4)
System.Security.Cryptography (34)
System.Security.Cryptography.Cose (1)
System.Security.Cryptography.Pkcs (42)
System.Security.Cryptography.Xml (2)
System.Security.Permissions (1)
System.Security.Principal.Windows (3)
System.ServiceModel.Federation (2)
System.ServiceModel.Federation.Tests (1)
System.ServiceModel.NetFramingBase (8)
System.ServiceModel.NetNamedPipe (1)
System.ServiceModel.Primitives (117)
System.ServiceModel.Primitives.Tests (26)
System.ServiceModel.Syndication (2)
System.Speech (60)
System.Text.Json (36)
System.Text.Json.SourceGeneration (24)
System.Text.RegularExpressions (30)
System.Text.RegularExpressions.Generator (16)
System.Threading.Channels (1)
System.Threading.RateLimiting (8)
System.Threading.Tasks.Dataflow (13)
System.Threading.Tasks.Parallel (1)
System.Windows.Controls.Ribbon (26)
System.Windows.Forms (30)
System.Windows.Forms.Design (32)
System.Windows.Input.Manipulations (1)
System.Xaml (87)
TypeScriptApiCompat (5)
UIAutomationClientSideProviders (4)
UnitTests.Common (1)
vbc (4)
VBCSCompiler (13)
vstest.console (19)
vstest.console.arm64 (19)
WindowsFormsIntegration (2)
25211 references to List
aspire (628)
Commands\AddCommand.cs (8)
176List<(NuGetPackage Package, PackageChannel Channel)> packagesWithChannels;
185packagesWithChannels = discoveredPackages as List<(NuGetPackage Package, PackageChannel Channel)> ?? discoveredPackages.ToList();
193packagesWithChannels = discoveredPackages as List<(NuGetPackage Package, PackageChannel Channel)> ?? discoveredPackages.ToList();
206var packagesWithShortName = packagesWithChannels.Select(IntegrationPackageSearchService.GenerateFriendlyName).OrderBy(p => p.FriendlyName, new CommunityToolkitFirstComparer()).ToList();
228var compatiblePackagesWithShortName = packagesWithShortName
245var filteredPackagesWithShortName = packagesWithShortName
453var versions = new List<(string FriendlyName, NuGetPackage Package, PackageChannel Channel)>();
668var rootChoices = new List<(string Label, Func<CancellationToken, Task<(string FriendlyName, NuGetPackage Package, PackageChannel Channel)>> Action)>();
Commands\DashboardRunCommand.cs (9)
105var dashboardArgs = new List<string> { "dashboard" };
164private static void AddOptionArgs(ParseResult parseResult, List<string> args, IReadOnlyList<string> unmatchedTokens, IEnvironment environment)
182private static void AddStringOptionArg(ParseResult parseResult, List<string> args, IReadOnlyList<string> unmatchedTokens,
200private static void AddBoolOptionArg(ParseResult parseResult, List<string> args, IReadOnlyList<string> unmatchedTokens,
256internal static DashboardInfo ResolveDashboardInfo(List<string> dashboardArgs, IReadOnlyList<string> unmatchedTokens, IEnvironment environment, string? browserToken)
277internal static string? ResolveSettingValue(List<string> args, IReadOnlyList<string> unmatchedTokens, IEnvironment environment, string key)
300internal static string? ResolveArgValue(List<string> args, string key)
341var labels = new List<string> { dashboardLabel, otlpGrpcLabel, otlpHttpLabel, logsLabel };
373private async Task<CommandResult> ExecuteForegroundAsync(string managedPath, List<string> dashboardArgs, DashboardInfo dashboardInfo, IDictionary<string, string>? environmentVariables, CancellationToken cancellationToken)
Documentation\Docs\LlmsTxtParser.cs (12)
144var docBoundaries = FindDocumentBoundaries(span, codeBlocks);
150var documents = new List<LlmsDocument>(docBoundaries.Count);
200List<(int Start, int End)>? sliced = null;
236private static List<int> FindDocumentBoundaries(ReadOnlySpan<char> span, (int Start, int End)[] codeBlocks)
238var boundaries = new List<int>();
360var sections = ParseSections(docSpan, docCodeBlocks);
460private static List<LlmsSection> ParseSections(ReadOnlySpan<char> docSpan, (int Start, int End)[] codeBlocks)
462var sections = new List<LlmsSection>();
466var sectionStarts = FindSectionHeadings(docSpan, codeBlocks);
502var regions = new List<(int Start, int End)>();
600private static List<(int Index, int Level, string Heading)> FindSectionHeadings(
604var sectionStarts = new List<(int Index, int Level, string Heading)>();
Projects\GuestAppHostProject.cs (11)
197private async Task<List<IntegrationReference>> GetIntegrationReferencesAsync(
203var integrations = config.GetIntegrationReferences(defaultSdkVersion, directory.FullName).ToList();
279List<IntegrationReference> integrations,
305var integrations = await GetIntegrationReferencesAsync(config, directory, cancellationToken);
422var integrations = await GetIntegrationReferencesAsync(config, directory, cancellationToken);
1060var integrations = await GetIntegrationReferencesAsync(config, directory, cancellationToken);
1449var updates = await _interactionService.ShowStatusAsync(
1453var packageUpdates = new List<(string PackageId, string CurrentVersion, string NewVersion)>();
1625var integrationsList = integrations.ToList();
2001private static void SaveGenerationHash(string generatedPath, List<IntegrationReference> integrations)
2013private static string ComputeIntegrationsHash(List<IntegrationReference> integrations)
Projects\PrebuiltAppHostServer.cs (23)
151var integrationList = integrations.ToList();
152var packageRefs = integrationList.Where(r => r.IsPackageReference).ToList();
153var projectRefs = integrationList.Where(r => r.IsProjectReference).ToList();
299List<IntegrationReference> packageRefs,
307var packages = packageRefs
372var closure = new List<string>();
466private static List<string> ReadProjectReferences(string projectPath)
468var references = new List<string>();
730List<IntegrationReference> packageRefs,
731List<IntegrationReference> projectRefs,
818var sourcePaths = await ReadManifestFileAsync(closureSourcesPath, cancellationToken).ConfigureAwait(false);
819var metadataLines = await ReadManifestFileAsync(closureMetadataPath, cancellationToken).ConfigureAwait(false);
820var targetPaths = await ReadManifestFileAsync(closureTargetsPath, cancellationToken).ConfigureAwait(false);
827var projectRefAssemblyNames = await ReadProjectRefAssemblyNamesAsync(
835var closureEntries = new List<AppHostServerClosureSource>(sourcePaths.Count);
864List<IntegrationReference> packageRefs,
865List<IntegrationReference> projectRefs,
1015var sources = new List<string>();
1536private async Task<List<string>> ReadProjectRefAssemblyNamesAsync(string filePath, CancellationToken cancellationToken)
1548private static async Task<List<string>> ReadManifestFileAsync(string filePath, CancellationToken cancellationToken)
1658List<IntegrationReference> packageRefs,
1659List<string> projectRefAssemblyNames)
1661var atsAssemblies = new List<string> { "Aspire.Hosting" };
Projects\ProjectLocator.cs (26)
33Task<List<AppHostProjectCandidate>> FindAppHostProjectsAsync(
56var candidates = await FindAppHostProjectsAsync(searchDirectory, scope, cancellationToken).ConfigureAwait(false);
72Task<List<AppHostProjectCandidate>> FindAppHostProjectsAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, int? maxDepth, CancellationToken cancellationToken)
84Task<List<FileInfo>> FindAppHostProjectFilesAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken);
94Task<List<FileInfo>> FindAppHostProjectFilesAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, int? maxDepth, CancellationToken cancellationToken)
163public async Task<List<AppHostProjectCandidate>> FindAppHostProjectsAsync(
179public async Task<List<AppHostProjectCandidate>> FindAppHostProjectsAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, int? maxDepth, CancellationToken cancellationToken)
182var candidates = allCandidates.BuildableAppHost.Concat(allCandidates.UnbuildableSuspectedAppHostProjects).ToList();
254public async Task<List<FileInfo>> FindAppHostProjectFilesAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken)
267public async Task<List<FileInfo>> FindAppHostProjectFilesAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, int? maxDepth, CancellationToken cancellationToken)
269var candidates = await FindAppHostProjectsAsync(searchDirectory, scope, maxDepth, cancellationToken);
279public async Task<List<FileInfo>> FindAppHostProjectFilesAsync(string searchDirectory, CancellationToken cancellationToken)
288private async Task<(List<AppHostProjectCandidate> BuildableAppHost, List<AppHostProjectCandidate> UnbuildableSuspectedAppHostProjects, List<FileInfo> UnsupportedProjects)> FindAppHostProjectFilesAsync(DirectoryInfo searchDirectory, bool stopAfterMultipleBuildableAppHosts, bool displayProgress, AppHostDiscoveryScope scope, int? maxDepth, ChannelWriter<AppHostProjectCandidate>? candidateWriter = null, Action<int>? onDirectoryEnumerated = null, CancellationToken cancellationToken = default)
292async Task<(List<AppHostProjectCandidate> BuildableAppHost, List<AppHostProjectCandidate> UnbuildableSuspectedAppHostProjects, List<FileInfo> UnsupportedProjects)> FindAppHostsAsync()
294var appHostProjects = new List<AppHostProjectCandidate>();
295var unbuildableSuspectedAppHostProjects = new List<AppHostProjectCandidate>();
296var unsupportedProjects = new List<FileInfo>();
334var candidatesWithHandlers = new List<(FileInfo File, IAppHostProject Handler)>();
911var appHostProjects = searchResults.BuildableAppHost
923var unbuildableInDirectory = searchResults.UnbuildableSuspectedAppHostProjects
1181var allCandidates = results.BuildableAppHost.Select(c => c.AppHostFile).ToList();
1443internal record AppHostProjectSearchResult(FileInfo? SelectedProjectFile, List<FileInfo> AllProjectFileCandidates)
Projects\ProjectUpdater.cs (30)
48var updateStepsByProject = updateSteps
253var descriptions = new List<string>();
636var updatedSdks = new List<string>();
1274var originalSources = ExtractPackageSources(originalDocument);
1275var proposedSources = ExtractPackageSources(proposedDocument);
1296private static List<PackageSourceInfo> ExtractPackageSources(XmlDocument? document)
1298var sources = new List<PackageSourceInfo>();
1325private static Dictionary<string, List<string>> ExtractPackageSourceMappings(XmlDocument? document)
1327var mappings = new Dictionary<string, List<string>>();
1344var patterns = new List<string>();
1366private static List<MappingChange> AnalyzeMappingChanges(Dictionary<string, List<string>> originalMappings, Dictionary<string, List<string>> proposedMappings)
1368var changes = new List<MappingChange>();
1375var originalPatterns = originalMappings.GetValueOrDefault(source, []);
1376var proposedPatterns = proposedMappings.GetValueOrDefault(source, []);
1378var addedPatterns = proposedPatterns.Except(originalPatterns).ToList();
1379var removedPatterns = originalPatterns.Except(proposedPatterns).ToList();
1401if (changes.ProposedMappings.TryGetValue(feed.Key, out var patterns))
1440if (changes.ProposedMappings.TryGetValue(feed.Key, out var currentPatterns))
1442var addedPatterns = mappingChangesBySource.TryGetValue(feed.Key, out var currentMappingChange) ? currentMappingChange.AddedPatterns : new List<string>();
1460internal record MappingChange(string SourceKey, List<string> AddedPatterns, List<string> RemovedPatterns);
1464public List<PackageSourceInfo> AddedFeeds { get; set; } = [];
1465public List<PackageSourceInfo> RemovedFeeds { get; set; } = [];
1466public List<PackageSourceInfo> RetainedFeeds { get; set; } = [];
1467public List<MappingChange> MappingChanges { get; set; } = [];
1468public Dictionary<string, List<string>> OriginalMappings { get; set; } = new();
1469public Dictionary<string, List<string>> ProposedMappings { get; set; } = new();
1529var changes = new List<string>();
src\Shared\DashboardUrls.cs (4)
206public static string TelemetryLogsApiUrl(string baseUrl, List<string>? resources = null, string? traceId = null, string? severity = null, int? limit = null, bool? follow = null, string? search = null)
244public static string TelemetrySpansApiUrl(string baseUrl, List<string>? resources = null, string? traceId = null, bool? hasError = null, int? limit = null, bool? follow = null, string? search = null)
280public static string TelemetryTracesApiUrl(string baseUrl, List<string>? resources = null, bool? hasError = null, int? limit = null, string? search = null)
335private static string AddResourceParams(string url, List<string>? resources)
aspire-managed (39)
NuGet\Commands\RestoreCommand.cs (7)
107var packages = new List<(string Id, string Version)>();
130List<(string Id, string Version)> packages,
170var packageSources = ResolvePackageSources(settings, cliSources, noNugetOrg);
235private static List<PackageSource> ResolvePackageSources(ISettings settings, string[] cliSources, bool noNugetOrg)
239var sources = provider.LoadPackageSources().Where(s => s.IsEnabled).ToList();
265List<(string Id, string Version)> packages,
269List<PackageSource> sources,
Aspire.Acquisition.Tests (8)
Aspire.Azure.AI.Inference (1)
Aspire.Azure.Messaging.EventHubs (3)
Aspire.Azure.Messaging.EventHubs.Tests (10)
Aspire.Azure.Messaging.ServiceBus (3)
Aspire.Azure.Messaging.WebPubSub (3)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (1)
Aspire.Azure.Npgsql.Tests (1)
Aspire.Azure.Security.KeyVault.Tests (10)
Aspire.Azure.Storage.Queues (3)
Aspire.Cli.EndToEnd.Tests (10)
Aspire.Cli.Tests (545)
Commands\AddCommandTests.cs (19)
1312var exactMatchQueries = new List<string>();
1391var exactMatchQueries = new List<string>();
1691var statusMessages = new List<string>();
2193List<(string FriendlyName, NuGetPackage Package, PackageChannel Channel)>? displayedPackages = null;
2204var choicesList = choices.Cast<(string FriendlyName, NuGetPackage Package, PackageChannel Channel)>().ToList();
2241List<object>? displayedChoices = null;
2252var choicesList = choices.Cast<object>().ToList();
2289List<object>? displayedChoices = null;
2300var choicesList = choices.Cast<object>().ToList();
2347List<string>? displayedLabels = null;
2357var choicesList = choices.Cast<object>().ToList();
2394List<string>? displayedLabels = null;
2399var choicesList = choices.Cast<object>().ToList();
2421Assert.IsType<List<string>>(displayedLabels),
3408var queries = new List<string>();
3586var promptedPackages = new List<(string FriendlyName, NuGetPackage Package, PackageChannel Channel)>();
3790var promptedPackages = new List<(string FriendlyName, NuGetPackage Package, PackageChannel Channel)>();
3849var promptedPackages = new List<(string FriendlyName, NuGetPackage Package, PackageChannel Channel)>();
4019var promptedPackages = new List<(string FriendlyName, NuGetPackage Package, PackageChannel Channel)>();
Commands\ExtensionInternalCommandTests.cs (12)
247public Task<List<AppHostProjectCandidate>> FindAppHostProjectsAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken)
249return Task.FromResult<List<AppHostProjectCandidate>>([new(_projectFile, "test")]);
252public Task<List<FileInfo>> FindAppHostProjectFilesAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken)
254return Task.FromResult<List<FileInfo>>([_projectFile]);
295private readonly List<FileInfo> _projectFiles;
297public MultipleProjectsProjectLocator(List<FileInfo> projectFiles)
312public Task<List<AppHostProjectCandidate>> FindAppHostProjectsAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken)
317public Task<List<FileInfo>> FindAppHostProjectFilesAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken)
360public Task<List<AppHostProjectCandidate>> FindAppHostProjectsAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken)
365public Task<List<FileInfo>> FindAppHostProjectFilesAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken)
417public Task<List<AppHostProjectCandidate>> FindAppHostProjectsAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken)
422public Task<List<FileInfo>> FindAppHostProjectFilesAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken)
Commands\RunCommandTests.cs (11)
1261public Task<List<AppHostProjectCandidate>> FindAppHostProjectsAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken)
1266public Task<List<FileInfo>> FindAppHostProjectFilesAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken)
1983public Task<List<AppHostProjectCandidate>> FindAppHostProjectsAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken)
1988public Task<List<FileInfo>> FindAppHostProjectFilesAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken)
2008public Task<List<AppHostProjectCandidate>> FindAppHostProjectsAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken)
2013public Task<List<FileInfo>> FindAppHostProjectFilesAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken)
3536public Task<List<AppHostProjectCandidate>> FindAppHostProjectsAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken)
3539return Task.FromResult<List<AppHostProjectCandidate>>([new(appHostFile, "test")]);
3542public Task<List<FileInfo>> FindAppHostProjectFilesAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken)
3544return Task.FromResult<List<FileInfo>>([new FileInfo("/tmp/apphost.cs")]);
4314var args = new List<string> { commandName, "--apphost", appHostFile.FullName };
Projects\PrebuiltAppHostServerTests.cs (42)
123var projectRefs = new List<IntegrationReference> { IntegrationReference.FromProject("Aspire.Hosting.Java", referencedProject) };
146var projectRefs = new List<IntegrationReference> { IntegrationReference.FromProject("Aspire.Hosting.Java", referencedProject) };
164var projectRefs = new List<IntegrationReference> { IntegrationReference.FromProject("Aspire.Hosting.Java", referencedProject) };
184var projectRefs = new List<IntegrationReference> { IntegrationReference.FromProject("Aspire.Hosting.Java", referencedProject) };
201var projectRefs = new List<IntegrationReference> { IntegrationReference.FromProject("First", first) };
214var projectRefs = new List<IntegrationReference> { IntegrationReference.FromProject("Aspire.Hosting.Java", referencedProject) };
230var projectRefs = new List<IntegrationReference> { IntegrationReference.FromProject("Aspire.Hosting.Java", referencedProject) };
243var projectRefs = new List<IntegrationReference> { IntegrationReference.FromProject("Aspire.Hosting.Java", referencedProject) };
244var packageRefs = new List<IntegrationReference> { IntegrationReference.FromPackage("Aspire.Hosting.Redis", "13.5.0") };
279var packageRefs = new List<IntegrationReference> { IntegrationReference.FromPackage("Aspire.Hosting.Redis", version) };
287var packageRefs = new List<IntegrationReference>
365var packageRefs = new List<IntegrationReference>
370var projectRefs = new List<IntegrationReference>();
375var packageElements = doc.Descendants("PackageReference").ToList();
386var packageRefs = new List<IntegrationReference>();
387var projectRefs = new List<IntegrationReference>
395var projectElements = doc.Descendants("ProjectReference").ToList();
405var packageRefs = new List<IntegrationReference>
410var projectRefs = new List<IntegrationReference>
425var packageRefs = new List<IntegrationReference>
429var projectRefs = new List<IntegrationReference>();
547var packageRefs = new List<IntegrationReference>
560var packageElements = doc.Descendants("PackageReference").ToList();
1453List<string>? restoreArgs = null;
1494List<string>? restoreArgs = null;
1535List<string>? restoreArgs = null;
1594List<string>? restoreArgs = null;
1654List<string>? restoreArgs = null;
1713List<string>? restoreArgs = null;
1773List<string>? restoreArgs = null;
1828List<string>? restoreArgs = null;
2126var packageElements = generatedProject.Descendants("PackageReference").ToList();
2254var packageElements = generatedProject.Descendants("PackageReference").ToList();
2439var copiedLibs = Directory.GetFiles(Path.Combine(layoutPath, "libs"), "*", SearchOption.AllDirectories)
2450var managedAssemblies = probeManifest.RootElement.GetProperty("managedAssemblies").EnumerateArray().ToList();
2491var copiedLibs = Directory.GetFiles(Path.Combine(layoutPath, "libs"), "*", SearchOption.AllDirectories)
2502var managedAssemblies = probeManifest.RootElement.GetProperty("managedAssemblies").EnumerateArray().ToList();
2512var nativeLibraries = probeManifest.RootElement.GetProperty("nativeLibraries").EnumerateArray().ToList();
2846var metadataLines = new List<string>();
2847var sourcePaths = new List<string>();
2848var targetPaths = new List<string>();
2971var sources = new List<string>();
Projects\ProjectLocatorTests.cs (34)
297var appHostProjectFiles = new List<FileInfo>();
312var projectLocators = appHostProjectFiles
317var callers = appHostProjectFiles
346var settingsFileMessages = interactionService.DisplayedMessages
1233var displayedSubtleMessages = new List<string>();
1766var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(workspace.WorkspaceRoot.FullName, CancellationToken.None).DefaultTimeout();
1791var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(workspace.WorkspaceRoot.FullName, CancellationToken.None).DefaultTimeout();
1840var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(workspace.WorkspaceRoot.FullName, CancellationToken.None).DefaultTimeout();
1867var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(workspace.WorkspaceRoot.FullName, CancellationToken.None).DefaultTimeout();
1904var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(workspace.WorkspaceRoot.FullName, CancellationToken.None).DefaultTimeout();
1936var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(workspace.WorkspaceRoot.FullName, CancellationToken.None).DefaultTimeout();
2740var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(workspace.WorkspaceRoot.FullName, CancellationToken.None).DefaultTimeout();
2784var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(workspace.WorkspaceRoot.FullName, CancellationToken.None).DefaultTimeout();
2813var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(workspace.WorkspaceRoot.FullName, CancellationToken.None).DefaultTimeout();
2836var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(workspace.WorkspaceRoot.FullName, CancellationToken.None).DefaultTimeout();
2857var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(workspace.WorkspaceRoot.FullName, CancellationToken.None).DefaultTimeout();
2880var found = await projectLocator.FindAppHostProjectsAsync(workspace.WorkspaceRoot, AppHostDiscoveryScope.DefaultFiltered, CancellationToken.None).DefaultTimeout();
2908var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(workspace.WorkspaceRoot.FullName, CancellationToken.None).DefaultTimeout();
2943var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(
2973var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(
3011var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(
3051var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(
3307var found = await projectLocator.FindAppHostProjectsAsync(workspace.WorkspaceRoot, AppHostDiscoveryScope.DefaultFiltered, CancellationToken.None).DefaultTimeout();
3334var found = await projectLocator.FindAppHostProjectsAsync(workspace.WorkspaceRoot, AppHostDiscoveryScope.AllFiles, CancellationToken.None).DefaultTimeout();
3363var found = await projectLocator.FindAppHostProjectFilesAsync(workspace.WorkspaceRoot.FullName, CancellationToken.None).DefaultTimeout();
3394var found = await projectLocator.FindAppHostProjectsAsync(workspace.WorkspaceRoot, AppHostDiscoveryScope.AllFiles, CancellationToken.None).DefaultTimeout();
3443var found = await projectLocator.FindAppHostProjectsAsync(workspace.WorkspaceRoot, AppHostDiscoveryScope.ExplicitDirectory, CancellationToken.None).DefaultTimeout();
3475var found = await projectLocator.FindAppHostProjectFilesAsync(
3514var found = await projectLocator.FindAppHostProjectsAsync(workspace.WorkspaceRoot, AppHostDiscoveryScope.DefaultFiltered, CancellationToken.None).DefaultTimeout();
3551var found = await projectLocator.FindAppHostProjectsAsync(workspace.WorkspaceRoot, AppHostDiscoveryScope.DefaultFiltered, CancellationToken.None).DefaultTimeout();
3586var found = await projectLocator.FindAppHostProjectsAsync(workspace.WorkspaceRoot, AppHostDiscoveryScope.DefaultFiltered, CancellationToken.None).DefaultTimeout();
4078var found = await projectLocator.FindAppHostProjectsAsync(workspace.WorkspaceRoot, AppHostDiscoveryScope.DefaultFiltered, CancellationToken.None).DefaultTimeout();
4118var found = await projectLocator.FindAppHostProjectsAsync(workspace.WorkspaceRoot, AppHostDiscoveryScope.DefaultFiltered, CancellationToken.None).DefaultTimeout();
4151var found = await projectLocator.FindAppHostProjectsAsync(workspace.WorkspaceRoot, AppHostDiscoveryScope.DefaultFiltered, CancellationToken.None).DefaultTimeout();
Projects\ProjectUpdaterTests.cs (45)
55var packages = new List<NuGetPackageCli>();
171var packagesAddsExecuted = new List<(FileInfo ProjectFile, string PackageId, string PackageVersion, string? PackageSource, bool NoRestore)>();
180var packages = new List<NuGetPackageCli>();
334var packages = new List<NuGetPackageCli>
438var packagesAddsExecuted = new List<(FileInfo ProjectFile, string PackageId, string PackageVersion, string? PackageSource, bool NoRestore)>();
447var packages = new List<NuGetPackageCli>();
592var packagesAddsExecuted = new List<(FileInfo ProjectFile, string PackageId, string PackageVersion, string? PackageSource, bool NoRestore)>();
602var packages = new List<NuGetPackageCli>();
721var packagesAddsExecuted = new List<(FileInfo ProjectFile, string PackageId, string PackageVersion, string? PackageSource, bool NoRestore)>();
730var packages = new List<NuGetPackageCli>();
815var sharedProjectUpdates = packagesAddsExecuted.Where(p => p.ProjectFile.FullName == sharedProjectFile.FullName).ToList();
823var appHostUpdates = packagesAddsExecuted.Where(p => p.ProjectFile.FullName == appHostProjectFile.FullName).ToList();
880var updatedFiles = new List<string>();
890var packages = new List<NuGetPackageCli>();
1009var packages = new List<NuGetPackageCli>();
1111var packages = new List<NuGetPackageCli>();
1237var packages = new List<NuGetPackageCli>
1331var packages = new List<NuGetPackageCli>
1406var packages = new List<NuGetPackageCli>
1501var packages = new List<NuGetPackageCli>
1664var packages = new List<NuGetPackageCli>
1813var packages = new List<NuGetPackageCli>();
1929var packages = new List<NuGetPackageCli>();
2050var packages = new List<NuGetPackageCli>();
2163var packages = new List<NuGetPackageCli>();
2259var packages = new List<NuGetPackageCli>();
2368var packages = new List<NuGetPackageCli>();
2453var packages = new List<NuGetPackageCli>();
2529var packages = new List<NuGetPackageCli>();
2613var packages = new List<NuGetPackageCli>();
2708var packages = new List<NuGetPackageCli>
2800var packages = new List<NuGetPackageCli>
2876var packages = new List<NuGetPackageCli>();
2956var packages = new List<NuGetPackageCli>();
3046var packages = new List<NuGetPackageCli>();
3125var packages = new List<NuGetPackageCli>();
3193var packagesUpdated = new List<string>();
3203var packages = new List<NuGetPackageCli>();
3338var packagesAddsExecuted = new List<(FileInfo ProjectFile, string PackageId, string PackageVersion, string? PackageSource, bool NoRestore)>();
3348var packages = new List<NuGetPackageCli>();
3722var calls = new List<string>();
3804var addCalls = calls.Where(c => c.StartsWith("add:", StringComparison.Ordinal)).ToList();
3809var restoreCalls = calls.Where(c => c.StartsWith("restore:", StringComparison.Ordinal)).ToList();
3887var nugetConfigs = workspace.WorkspaceRoot
4051var nugetConfigs = workspace.WorkspaceRoot
TestServices\TestProjectLocator.cs (7)
18public Func<DirectoryInfo, AppHostDiscoveryScope, CancellationToken, Task<List<AppHostProjectCandidate>>>? FindAppHostProjectsAsyncCallback { get; set; }
22public Func<DirectoryInfo, AppHostDiscoveryScope, CancellationToken, Task<List<FileInfo>>>? FindAppHostProjectFilesAsyncCallback { get; set; }
24public Func<DirectoryInfo, AppHostDiscoveryScope, int?, CancellationToken, Task<List<FileInfo>>>? FindAppHostProjectFilesWithDepthAsyncCallback { get; set; }
26public async Task<List<AppHostProjectCandidate>> FindAppHostProjectsAsync(
55var candidates = await FindAppHostProjectsAsync(searchDirectory, scope, cancellationToken);
62public async Task<List<FileInfo>> FindAppHostProjectFilesAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken)
72public async Task<List<FileInfo>> FindAppHostProjectFilesAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, int? maxDepth, CancellationToken cancellationToken)
Utils\DevCertsCheckTests.cs (40)
123var results = DevCertsCheck.EvaluateCertificateResults([], new HostEnvironment());
134var certs = new List<DevCertInfo>
140var results = DevCertsCheck.EvaluateCertificateResults(certs, new HostEnvironment());
150var certs = new List<DevCertInfo>
156var results = DevCertsCheck.EvaluateCertificateResults(certs, new HostEnvironment());
166var certs = new List<DevCertInfo>
172var results = DevCertsCheck.EvaluateCertificateResults(certs, new HostEnvironment());
182var certs = new List<DevCertInfo>
187var results = DevCertsCheck.EvaluateCertificateResults(certs, new HostEnvironment());
197var certs = new List<DevCertInfo>
202var results = DevCertsCheck.EvaluateCertificateResults(certs, new HostEnvironment());
212var certs = new List<DevCertInfo>
217var results = DevCertsCheck.EvaluateCertificateResults(certs, new HostEnvironment());
227var certs = new List<DevCertInfo>
232var results = DevCertsCheck.EvaluateCertificateResults(certs, new HostEnvironment());
243var certs = new List<DevCertInfo>
249var results = DevCertsCheck.EvaluateCertificateResults(certs, new HostEnvironment());
261var certs = new List<DevCertInfo>
267var results = DevCertsCheck.EvaluateCertificateResults(certs, new HostEnvironment());
277var certs = new List<DevCertInfo>
284var results = DevCertsCheck.EvaluateCertificateResults(certs, new HostEnvironment());
294var certs = new List<DevCertInfo>
299var results = DevCertsCheck.EvaluateCertificateResults(certs, new HostEnvironment());
319var results = DevCertsCheck.EvaluateCertificateResults([], new HostEnvironment());
328var certs = new List<DevCertInfo>
363var certs = new List<DevCertInfo>
409var certs = new List<DevCertInfo>
453var certs = new List<DevCertInfo>
504var certs = new List<DevCertInfo>
559var certs = new List<DevCertInfo>
609var certs = new List<DevCertInfo>
668var certs = new List<DevCertInfo>
725var certs = new List<DevCertInfo>
766var certs = new List<DevCertInfo>
810var certs = new List<DevCertInfo>
856var certs = new List<DevCertInfo>
902var certs = new List<DevCertInfo>
948var certs = new List<DevCertInfo>
991var certs = new List<DevCertInfo>
1027var certs = new List<DevCertInfo>
Aspire.Components.Common.TestUtilities (4)
Aspire.Confluent.Kafka (6)
Aspire.Confluent.Kafka.Tests (5)
Aspire.Dashboard (529)
Api\TelemetryApiService.cs (29)
35var resources = telemetryRepository.GetResources();
36var resourceKeys = ResolveResourceKeys(resources, resourceNames);
45var spanFilters = new List<TelemetryFilter>();
59var allSpans = result.PagedResult.Items;
64var spans = allSpans;
88var resources = telemetryRepository.GetResources();
89var resourceKeys = ResolveResourceKeys(resources, resourceNames);
98var traceFilters = new List<TelemetryFilter>();
110var allTraces = result.PagedResult.Items;
112var traces = allTraces;
132var spans = traces.SelectMany(t => t.Spans).ToList();
157var spans = trace.Spans.ToList();
177var resources = telemetryRepository.GetResources();
178var resourceKeys = ResolveResourceKeys(resources, resourceNames);
186var filters = new List<TelemetryFilter>();
225var logs = result.Items;
258var resourceKeys = await WaitForResourceKeysAsync(resourceNames, cancellationToken).ConfigureAwait(false);
261List<TelemetryFilter> spanFilters = [];
295var resourceKeys = await WaitForResourceKeysAsync(resourceNames, cancellationToken).ConfigureAwait(false);
298var filters = new List<TelemetryFilter>();
347var resources = telemetryRepository.GetResources();
368List<TelemetryFilter> filters,
369Action<SearchFilter, List<TelemetryFilter>> addFilters,
390private static void AddLogFiltersFromQualifiers(SearchFilter parsedSearch, List<TelemetryFilter> filters)
431private static void AddSpanFiltersFromQualifiers(SearchFilter parsedSearch, List<TelemetryFilter> filters)
526private async Task<List<ResourceKey>> WaitForResourceKeysAsync(string[]? resourceNames, CancellationToken cancellationToken)
545var resources = telemetryRepository.GetResources();
560private static List<ResourceKey>? ResolveResourceKeys(IReadOnlyList<OtlpResource> resources, string[]? resourceNames)
567var keys = new List<ResourceKey>();
Components\Controls\Chart\ChartDataCalculator.cs (10)
24public ChartData CalculateChartValues(List<DimensionScope> dimensions, DateTimeOffset startTime, Func<DateTimeOffset, DateTimeOffset> toLocal, string yLabel)
27var yValues = new List<double?>();
28var xValues = new List<DateTimeOffset>();
68public ChartData CalculateHistogramValues(List<DimensionScope> dimensions, DateTimeOffset startTime, Func<DateTimeOffset, DateTimeOffset> toLocal, string yLabel)
77var xValues = new List<DateTimeOffset>();
78var exemplars = new List<ChartExemplar>();
133internal static bool TryCalculatePoint(List<DimensionScope> dimensions, DateTimeOffset start, DateTimeOffset end, out double pointValue)
186internal static bool TryCalculateHistogramPoints(List<DimensionScope> dimensions, DateTimeOffset start, DateTimeOffset end, Dictionary<int, ChartTrace> traces, List<ChartExemplar> exemplars, Func<DateTimeOffset, DateTimeOffset> toLocal)
302private static void CollectExemplars(List<ChartExemplar> exemplars, MetricValueBase metric, Func<DateTimeOffset, DateTimeOffset> toLocal)
Configuration\EndpointInfo.cs (8)
11public static bool TryAddEndpoint(List<EndpointInfo> configuredEndpoints, BindingAddress? address, string name, HttpProtocols? httpProtocols, bool requireCertificate, ConnectionType connectionType)
22public static IEnumerable<KeyValuePair<BindingAddress, List<EndpointInfo>>> GroupEndpointsByAddress(IEnumerable<EndpointInfo> endpoints)
24var groups = new List<KeyValuePair<BindingAddress, List<EndpointInfo>>>();
25var map = new Dictionary<string, List<EndpointInfo>>();
34groups.Add(new KeyValuePair<BindingAddress, List<EndpointInfo>>(address, [endpoint]));
40if (!map.TryGetValue(key, out var list))
54groups.Add(new KeyValuePair<BindingAddress, List<EndpointInfo>>(address, kvp.Value));
Model\GenAI\GenAIVisualizerDialogViewModel.cs (23)
30public required Func<List<OtlpSpan>> GetContextGenAISpans { get; init; }
35public List<GenAIItemViewModel> Items { get; } = new List<GenAIItemViewModel>();
36public List<GenAIItemViewModel> InputMessages { get; private set; } = default!;
37public List<GenAIItemViewModel> OutputMessages { get; private set; } = default!;
39public List<ToolDefinitionViewModel> ToolDefinitions { get; private set; } = new();
40public List<EvaluationResultViewModel> Evaluations { get; private set; } = new();
55Func<List<OtlpSpan>> getContextGenAISpans)
57var resources = telemetryRepository.GetResources();
194private static bool AllMessagesHaveNoContent(List<GenAIItemViewModel> messageViewModels)
293var parts = instructionParts.Select(GenAIItemPartViewModel.CreateMessagePart).ToList();
314var logEntries = GetSpanLogEntries(telemetryRepository, viewModel.Span);
319var parts = DeserializeEventContent(index, type.Value, item.Message);
339var parts = DeserializeEventContent(index, type.Value, content);
361var viewParts = parts.Select(GenAIItemPartViewModel.CreateMessagePart).ToList();
407var parts = new List<GenAIItemPartViewModel>
434var parts = new List<GenAIItemPartViewModel>
489private static GenAIItemViewModel CreateMessage(GenAIVisualizerDialogViewModel viewModel, int currentIndex, GenAIItemType type, List<GenAIItemPartViewModel> parts, long? internalId)
502private static List<GenAIItemPartViewModel> DeserializeEventContent(int index, GenAIItemType type, string message)
504var messagePartViewModels = new List<GenAIItemPartViewModel>();
540static void ProcessAssistantEvent(List<GenAIItemPartViewModel> messagePartViewModels, AssistantEvent assistantEvent)
596private static List<OtlpLogEntry> GetSpanLogEntries(TelemetryRepository telemetryRepository, OtlpSpan span)
618var evaluations = new List<EvaluationResultViewModel>();
621var logEntries = GetSpanLogEntries(telemetryRepository, viewModel.Span);
Model\Otlp\SpanWaterfallViewModel.cs (14)
13public required List<SpanWaterfallViewModel> Children { get; init; }
20public required List<SpanLogEntryViewModel> SpanLogs { get; init; }
36public string GetTooltip(List<OtlpResource> allResources)
115List<FieldTelemetryFilter>? enabledFilters = null;
156public sealed record TraceDetailState(IOutgoingPeerResolver[] OutgoingPeerResolvers, List<string> CollapsedSpanIds, List<OtlpResource> AllResources);
158public static string GetTitle(OtlpSpan span, List<OtlpResource> allResources)
163public static List<SpanWaterfallViewModel> Create(OtlpTrace trace, List<OtlpLogEntry> logs, TraceDetailState state)
165var orderedSpans = new List<SpanWaterfallViewModel>();
171groupedLogs.TryGetValue(span.SpanId, out var spanLogs);
182static SpanWaterfallViewModel CreateViewModel(OtlpSpan span, int depth, bool hidden, TraceDetailState state, List<OtlpLogEntry>? spanLogs, ref int currentSpanLogIndex)
200var spanLogVms = new List<SpanLogEntryViewModel>();
251private static string? ResolveUninstrumentedPeerName(OtlpSpan span, IOutgoingPeerResolver[] outgoingPeerResolvers, List<OtlpResource> allResources)
Model\ResourceMenuBuilder.cs (10)
61List<MenuButtonItem> menuItems,
146private void AddUrlMenuItems(List<MenuButtonItem> menuItems, ResourceViewModel resource)
148var urls = ResourceUrlHelpers.GetUrls(resource, includeInternalUrls: false, includeNonEndpointUrls: true)
161var urlItems = new List<MenuButtonItem>();
203private void AddTelemetryMenuItems(List<MenuButtonItem> menuItems, ResourceViewModel resource, IDictionary<string, ResourceViewModel> resourceByName)
255private void AddCommandMenuItems(List<MenuButtonItem> menuItems, ResourceViewModel resource, EventCallback<CommandViewModel> commandSelected, Func<ResourceViewModel, CommandViewModel, bool> isCommandExecuting)
257var menuCommands = resource.Commands
266var highlightedMenuCommands = menuCommands.Where(c => c.IsHighlighted).ToList();
267var otherMenuCommands = menuCommands.Where(c => !c.IsHighlighted).ToList();
281var commands = new List<MenuButtonItem>();
Model\SpanDetailsViewModel.cs (8)
16public required List<TelemetryPropertyViewModel> Properties { get; init; }
17public required List<SpanLinkViewModel> Links { get; init; }
18public required List<SpanLinkViewModel> Backlinks { get; init; }
20public required List<OtlpResource> Resources { get; init; }
22public static SpanDetailsViewModel Create(OtlpSpan span, TelemetryRepository telemetryRepository, List<OtlpResource> resources)
28var entryProperties = span.GetKnownProperties().Select(CreateTelemetryProperty).ToList();
42var links = span.Links.Select(l => CreateLinkViewModel(l.TraceId, l.SpanId, l.Attributes, telemetryRepository, traceCache)).ToList();
43var backlinks = span.BackLinks.Select(l => CreateLinkViewModel(l.SourceTraceId, l.SourceSpanId, l.Attributes, telemetryRepository, traceCache)).ToList();
Model\TelemetryExportService.cs (26)
59var allOtlpResources = _telemetryRepository.GetResources();
62List<ResourceViewModel> resourceDetailsResources = [];
80var structuredLogResources = allOtlpResources
84var traceResources = allOtlpResources
88var metricsResources = allOtlpResources
139var lines = logEntries
147private static void AddResources(ExportArchive exportArchive, List<ResourceViewModel> resources)
157private void AddStructuredLogs(ExportArchive exportArchive, List<OtlpResource> resources)
173private void AddTraces(ExportArchive exportArchive, List<OtlpResource> resources)
189private void AddMetrics(ExportArchive exportArchive, List<OtlpResource> resources)
193var instrumentSummaries = _telemetryRepository.GetInstrumentsSummaries(resource.ResourceKey);
201var instrumentsData = new List<OtlpInstrumentData>();
229internal static OtlpTelemetryDataJson ConvertLogsToOtlpJson(List<OtlpLogEntry> logs)
305var allSpans = traces.SelectMany(t => t.Spans).ToList();
309internal static string ConvertSpanToJson(OtlpSpan span, IOutgoingPeerResolver[] outgoingPeerResolvers, List<OtlpLogEntry>? logs = null, bool indent = true)
334internal static string ConvertTraceToJson(OtlpTrace trace, IOutgoingPeerResolver[] outgoingPeerResolvers, List<OtlpLogEntry>? logs = null)
446private static OtlpResourceLogsJson[]? ConvertLogsToResourceLogs(List<OtlpLogEntry>? logs)
473internal static OtlpTelemetryDataJson ConvertMetricsToOtlpJson(OtlpResource resource, List<OtlpInstrumentData> instruments)
535private static OtlpNumberDataPointJson[] ConvertNumberDataPoints(List<DimensionScope> dimensions)
537var dataPoints = new List<OtlpNumberDataPointJson>();
568private static OtlpHistogramDataPointJson[] ConvertHistogramDataPoints(List<DimensionScope> dimensions)
570var dataPoints = new List<OtlpHistogramDataPointJson>();
600private static OtlpExemplarJson[] ConvertExemplars(List<MetricsExemplar> exemplars)
614var attributes = new List<OtlpKeyValueJson>
702var relationships = new List<ResourceRelationshipJson>();
705var matches = allResources
Model\TraceHelpers.cs (5)
19var spanLookup = new Dictionary<OtlpSpan, List<OtlpSpan>>();
20var unrootedSpans = new List<OtlpSpan>();
29ref var childSpans = ref CollectionsMarshal.GetValueRefOrAddDefault(spanLookup, parentSpan, out _);
44static void Visit(Dictionary<OtlpSpan, List<OtlpSpan>> spanLookup, OtlpSpan span, Func<OtlpSpan, TState, TState> spanAction, TState state, Func<OtlpSpan, DateTime> orderByFunc)
46if (spanLookup.TryGetValue(span, out var childSpans))
Otlp\Storage\TelemetryRepository.cs (61)
43private readonly List<Subscription> _resourceSubscriptions = new();
44private readonly List<Subscription> _logSubscriptions = new();
45private readonly List<Subscription> _metricsSubscriptions = new();
46private readonly List<Subscription> _tracesSubscriptions = new();
50private List<SpanWatcher>? _spanWatchers;
51private List<LogWatcher>? _logWatchers;
71private readonly List<OtlpSpanLink> _spanLinks = new();
72private readonly List<IDisposable> _peerResolverSubscriptions = new();
82internal List<OtlpSpanLink> SpanLinks => _spanLinks;
83internal List<Subscription> TracesSubscriptions => _tracesSubscriptions;
117public List<OtlpResource> GetResources(bool includeUninstrumentedPeers = false)
122public List<OtlpResource> GetResourcesByName(string name, bool includeUninstrumentedPeers = false)
127private List<OtlpResource> GetResourcesCore(bool includeUninstrumentedPeers, string? name)
139var resources = results.OrderBy(a => a.ResourceKey).ToList();
167public List<OtlpResource> GetResources(ResourceKey key, bool includeUninstrumentedPeers = false)
213var resources = GetResources(key.Value);
300private Subscription AddSubscription(string name, ResourceKey? resourceKey, SubscriptionType subscriptionType, Func<Task> callback, List<Subscription> subscriptions)
319private void RaiseSubscriptionChanged(List<Subscription> subscriptions)
361List<OtlpLogEntry>? addedLogs = null;
444List<OtlpResource>? resources = null;
515public List<OtlpLogEntry> GetLogsForSpan(string traceId, string spanId)
546public List<OtlpLogEntry> GetLogsForTrace(string traceId)
566public List<string> GetLogPropertyKeys(ResourceKey? resourceKey)
568List<OtlpResource>? resources = null;
593public List<string> GetTracePropertyKeys(ResourceKey? resourceKey)
595List<OtlpResource>? resources = null;
622List<OtlpResource>? resources = null;
645var filters = context.Filters.GetEnabledFilters().ToList();
646var optimizedFilters = CreateOptimizedTraceFilters(filters);
647var resourceFilter = resources is { Count: > 0 } ? resources : null;
653List<OtlpTrace>? items = null;
718List<OtlpResource>? resources = null;
740var filters = context.Filters.GetEnabledFilters().ToList();
741var resourceFilter = resources is { Count: > 0 } ? resources : null;
745List<OtlpSpan>? items = null;
799private static bool MatchesSpanCriteria(OtlpSpan span, string? traceId, bool? hasError, List<TelemetryFilter> filters, string[]? textFragments)
827private static bool MatchesSpanFilters(OtlpSpan span, List<TelemetryFilter> filters)
946private static List<TraceFilter>? CreateOptimizedTraceFilters(List<TelemetryFilter> filters)
948List<TraceFilter>? result = null;
968private static bool MatchesFilters(OtlpTrace trace, List<TelemetryFilter> filters, List<TraceFilter>? optimizedFilters)
1027private static bool MatchesFilters(OtlpTrace trace, List<TraceFilter> optimizedFilters)
1249private static bool MatchResources(ResourceKey resourceKey, List<OtlpResource> resources)
1262private static bool MatchResources(OtlpTrace t, List<OtlpResource> resources)
1314var allOtlpResources = GetResources();
1360List<OtlpResource>? resources = null;
1422List<OtlpResource>? resources = null;
1484List<OtlpResource> resources;
1724List<OtlpSpan>? addedSpans = null;
1986var currentSpanLinks = _spanLinks.ToList();
2026var events = new List<OtlpSpanEvent>();
2028var links = new List<OtlpSpanLink>();
2077public List<OtlpInstrumentSummary> GetInstrumentsSummaries(ResourceKey key)
2079var resources = GetResources(key);
2090var allResourceSummaries = resources
2102var resources = GetResources(request.ResourceKey);
2103var instruments = resources
2125var allDimensions = new List<DimensionScope>();
2126var allKnownAttributes = new Dictionary<string, List<string?>>();
2135ref var values = ref CollectionsMarshal.GetValueRefOrAddDefault(allKnownAttributes, knownAttributeValues.Key, out _);
src\Shared\DashboardUrls.cs (4)
206public static string TelemetryLogsApiUrl(string baseUrl, List<string>? resources = null, string? traceId = null, string? severity = null, int? limit = null, bool? follow = null, string? search = null)
244public static string TelemetrySpansApiUrl(string baseUrl, List<string>? resources = null, string? traceId = null, bool? hasError = null, int? limit = null, bool? follow = null, string? search = null)
280public static string TelemetryTracesApiUrl(string baseUrl, List<string>? resources = null, bool? hasError = null, int? limit = null, string? search = null)
335private static string AddResourceParams(string url, List<string>? resources)
Aspire.Dashboard.Components.Tests (56)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (2)
156public static Span CreateSpan(string traceId, string spanId, DateTime startTime, DateTime endTime, string? parentSpanId = null, List<Span.Types.Event>? events = null, List<Span.Types.Link>? links = null, IEnumerable<KeyValuePair<string, string>>? attributes = null, Span.Types.SpanKind? kind = null, Status? status = null)
Aspire.Dashboard.Tests (227)
Model\SpanWaterfallViewModelTests.cs (10)
32var vm = SpanWaterfallViewModel.Create(trace, [], new SpanWaterfallViewModel.TraceDetailState([], [], []));
63var vm = SpanWaterfallViewModel.Create(trace, [log], new SpanWaterfallViewModel.TraceDetailState([], [], []));
92var vm = SpanWaterfallViewModel.Create(trace, [], new SpanWaterfallViewModel.TraceDetailState([new BrowserLinkOutgoingPeerResolver()], [], []));
237var vms = SpanWaterfallViewModel.Create(trace, [], new SpanWaterfallViewModel.TraceDetailState([], [], []));
259var vms = SpanWaterfallViewModel.Create(trace, [], new SpanWaterfallViewModel.TraceDetailState([], [], []));
302var filters = new List<FieldTelemetryFilter>
339var filters = new List<FieldTelemetryFilter>
376var filters = new List<FieldTelemetryFilter>
412var vms = SpanWaterfallViewModel.Create(trace, [], new SpanWaterfallViewModel.TraceDetailState([], [], []));
417var filters = new List<FieldTelemetryFilter>
tests\Shared\Telemetry\TelemetryTestHelpers.cs (2)
156public static Span CreateSpan(string traceId, string spanId, DateTime startTime, DateTime endTime, string? parentSpanId = null, List<Span.Types.Event>? events = null, List<Span.Types.Link>? links = null, IEnumerable<KeyValuePair<string, string>>? attributes = null, Span.Types.SpanKind? kind = null, Status? status = null)
Aspire.Deployment.EndToEnd.Tests (2)
Aspire.EndToEnd.Tests (2)
Aspire.Hosting (352)
Pipelines\DistributedApplicationPipeline.cs (42)
28private readonly List<PipelineStep> _steps = [];
29private readonly List<Func<PipelineConfigurationContext, Task>> _configurationCallbacks = [];
32private List<PipelineStep>? _lastResolvedSteps;
118var computeResources = context.Model.Resources
334var stepsToAnalyze = _lastResolvedSteps ?? throw new InvalidOperationException(
391var computeEnvironments = model.Resources.OfType<IComputeEnvironmentResource>().ToList();
397var unboundResources = model.Resources
416var buildOnlyContainers = model.GetBuildResources()
443var unconsumedBuildOnlyContainers = buildOnlyContainers
575var allSteps = await ResolveStepsAsync(context).ConfigureAwait(false);
598var allSteps = await ResolveStepsAsync(context).ConfigureAwait(false);
614var stepsToExecute = ComputeTransitiveDependencies(targetStep, allStepsByName);
625internal async Task<List<PipelineStep>> ResolveStepsAsync(PipelineContext context)
627var annotationSteps = await CollectStepsFromAnnotationsAsync(context).ConfigureAwait(false);
628var allSteps = _steps.Concat(annotationSteps).ToList();
656List<PipelineStep> steps,
679private static (List<PipelineStep> StepsToExecute, Dictionary<string, PipelineStep> StepsByName) FilterStepsForExecution(
680List<PipelineStep> allSteps,
702var stepsToExecute = ComputeTransitiveDependencies(targetStep, allStepsByName);
708internal static List<PipelineStep> ComputeTransitiveDependencies(
713var result = new List<PipelineStep>();
741private static async Task<List<PipelineStep>> CollectStepsFromAnnotationsAsync(PipelineContext context)
743var steps = new List<PipelineStep>();
772List<PipelineStep> allSteps)
775var callbacks = new List<Func<PipelineConfigurationContext, Task>>();
847List<PipelineStep> steps,
880var failedDeps = step.DependsOnSteps
956var failures = allStepTasks
965var failedStepNames = new List<string>();
991List<PipelineStep> steps,
1003var orderedSteps = GetTopologicalOrder(steps);
1074List<PipelineStep> steps,
1158List<PipelineStep> allSteps,
1182var executionOrder = GetTopologicalOrder(allSteps);
1272var orphanedSteps = allSteps.Where(step =>
1317var stepsForTarget = ComputeTransitiveDependencies(targetStep, allStepsByName);
1338var stepsAtLevel = stepsByLevel[level];
1391List<PipelineStep> steps,
1424List<PipelineStep> steps,
1473internal static List<PipelineStep> GetTopologicalOrder(List<PipelineStep> steps)
1477var result = new List<PipelineStep>();
Aspire.Hosting.Analyzers (1)
Aspire.Hosting.Azure (73)
AzureProvisioningController.cs (26)
136private readonly List<AzureOperationState> _queuedOperationStates = [];
667var targetResources = GetTargetAzureResources(model, resourceName, includeAnnotationParentRelationships: false);
1040var afterProvisionTasks = new List<Task>(azureResources.Count);
1220private static List<(IResource Resource, IAzureResource AzureResource)> GetProvisionableAzureResources(DistributedApplicationModel model)
1231private static List<(IResource Resource, IAzureResource AzureResource)> GetTargetAzureResources(
1236var azureResources = GetProvisionableAzureResources(model);
1249var targetResources = new List<(IResource Resource, IAzureResource AzureResource)>();
1377private static List<(IResource Resource, IAzureResource AzureResource)> GetActiveOperationTargetAzureResources(DistributedApplicationModel model, ActiveAzureOperation activeOperation)
1646var azureResources = GetProvisionableAzureResources(model);
1731var azureResources = GetProvisionableAzureResources(model);
1747var targetResources = GetTargetAzureResources(model, intent.ResourceName, includeAnnotationParentRelationships: true);
1801var azureResources = GetProvisionableAzureResources(model);
1887var targetResources = GetTargetAzureResources(model, intent.ResourceName, includeAnnotationParentRelationships: false);
1940var targetResources = GetTargetAzureResources(model, intent.ResourceName, includeAnnotationParentRelationships: true);
2025var targetResources = GetTargetAzureResources(model, resourceName, includeAnnotationParentRelationships: true);
2039var targetResourcesToCancel = activeOperation is not null
2042var inFlightResourcesToCancel = activeOperation is not null
2091var targetResources = GetTargetAzureResources(model, intent.ResourceName, includeAnnotationParentRelationships: true);
2178List<string>? driftedResources = null;
2465var targetResources = GetTargetAzureResources(
2478var targetResources = GetTargetAzureResources(model, resourceName, includeAnnotationParentRelationships: true);
3048var keyVaultLocations = new List<string>();
3054private static void AddLocationIfPresent(List<string> locations, string? location)
3647var resources = new List<IResource>();
3693var childResources = parentChildLookup[resource.Resource].ToList();
3894var tasks = new List<Task>(azureResources.Count);
Provisioning\Internal\BaseProvisioningContextProvider.cs (14)
249protected async Task<(List<KeyValuePair<string, string>>? tenantOptions, bool fetchSucceeded)> TryGetTenantsAsync(CancellationToken cancellationToken)
251List<KeyValuePair<string, string>>? tenantOptions = null;
259var tenantList = availableTenants.ToList();
298protected async Task<(List<KeyValuePair<string, string>>? subscriptionOptions, bool fetchSucceeded)> TryGetSubscriptionsAsync(string? tenantId, CancellationToken cancellationToken)
300List<KeyValuePair<string, string>>? subscriptionOptions = null;
308var subscriptionList = availableSubscriptions.ToList();
326protected async Task<(List<KeyValuePair<string, string>>? subscriptionOptions, bool fetchSucceeded)> TryGetSubscriptionsAsync(CancellationToken cancellationToken)
331protected async Task<(List<(string Name, string Location)>? resourceGroupOptions, bool fetchSucceeded)> TryGetResourceGroupsWithLocationAsync(string subscriptionId, CancellationToken cancellationToken)
333List<(string Name, string Location)>? resourceGroupOptions = null;
343var resourceGroupList = availableResourceGroups.ToList();
364protected async Task<(List<KeyValuePair<string, string>> locationOptions, bool fetchSucceeded)> TryGetLocationsAsync(string subscriptionId, CancellationToken cancellationToken)
366List<KeyValuePair<string, string>>? locationOptions = null;
377var locationList = availableLocations.ToList();
404private static List<KeyValuePair<string, string>> GetStaticAzureLocations()
Aspire.Hosting.Azure.AppContainers (8)
Aspire.Hosting.Azure.AppService (7)
Aspire.Hosting.Azure.CognitiveServices (2)
Aspire.Hosting.Azure.ContainerRegistry (2)
Aspire.Hosting.Azure.CosmosDB (5)
Aspire.Hosting.Azure.EventHubs (2)
Aspire.Hosting.Azure.FrontDoor (1)
Aspire.Hosting.Azure.Functions (6)
Aspire.Hosting.Azure.KeyVault (1)
Aspire.Hosting.Azure.Kubernetes (5)
Aspire.Hosting.Azure.Kubernetes.Tests (19)
tests\Shared\TestPipelineActivityReporter.cs (7)
31public List<string> CreatedSteps { get; } = [];
36public List<(string StepTitle, string? ParentStepId, int HierarchyLevel)> CreatedStepHierarchy { get; } = [];
41public List<(string StepTitle, string TaskStatusText)> CreatedTasks { get; } = [];
46public List<(string StepTitle, string CompletionText, CompletionState CompletionState)> CompletedSteps { get; } = [];
51public List<(string TaskStatusText, string? CompletionMessage, CompletionState CompletionState)> CompletedTasks { get; } = [];
56public List<(string TaskStatusText, string StatusText)> UpdatedTasks { get; } = [];
61public List<(string StepTitle, LogLevel LogLevel, string Message)> LoggedMessages { get; } = [];
Aspire.Hosting.Azure.Kusto (1)
Aspire.Hosting.Azure.Kusto.Tests (7)
Aspire.Hosting.Azure.Network (14)
Aspire.Hosting.Azure.ServiceBus (4)
Aspire.Hosting.Azure.SignalR (1)
Aspire.Hosting.Azure.Sql (4)
Aspire.Hosting.Azure.Storage (3)
Aspire.Hosting.Azure.Tests (138)
ProvisioningTestHelpers.cs (22)
67public static IArmClientProvider CreateArmClientProvider(IEnumerable<string> existingResourceIds, List<string> deletedResourceIds) => new TestArmClientProvider(existingResourceIds: existingResourceIds, deletedResourceIds: deletedResourceIds);
70List<string>? deletedResourceIds,
72List<string>? canceledDeploymentIds,
73List<(string ResourceId, string Location)>? purgedDeletedKeyVaults = null,
208private readonly List<string>? _deletedResourceIds;
209private readonly List<(string ResourceId, string Location)>? _purgedDeletedKeyVaults;
214private readonly List<string>? _canceledDeploymentIds;
259List<string>? deletedResourceIds = null,
261List<string>? canceledDeploymentIds = null,
262List<(string ResourceId, string Location)>? purgedDeletedKeyVaults = null,
300var tenants = new List<ITenantResource>
309var subscriptions = new List<ISubscriptionResource>
321var subscriptions = new List<ISubscriptionResource>
349var locations = new List<(string Name, string DisplayName)>
361var resourceGroups = new List<(string Name, string Location)>
928private readonly List<string>? _deletedResourceIds;
929private readonly List<(string ResourceId, string Location)>? _purgedDeletedKeyVaults;
931private readonly List<string>? _canceledDeploymentIds;
960List<string>? deletedResourceIds = null,
962List<string>? canceledDeploymentIds = null,
963List<(string ResourceId, string Location)>? purgedDeletedKeyVaults = null,
1082public List<ExecutedCommand> ExecutedCommands { get; } = [];
tests\Shared\TestPipelineActivityReporter.cs (7)
31public List<string> CreatedSteps { get; } = [];
36public List<(string StepTitle, string? ParentStepId, int HierarchyLevel)> CreatedStepHierarchy { get; } = [];
41public List<(string StepTitle, string TaskStatusText)> CreatedTasks { get; } = [];
46public List<(string StepTitle, string CompletionText, CompletionState CompletionState)> CompletedSteps { get; } = [];
51public List<(string TaskStatusText, string? CompletionMessage, CompletionState CompletionState)> CompletedTasks { get; } = [];
56public List<(string TaskStatusText, string StatusText)> UpdatedTasks { get; } = [];
61public List<(string StepTitle, LogLevel LogLevel, string Message)> LoggedMessages { get; } = [];
Aspire.Hosting.Azure.WebPubSub (1)
Aspire.Hosting.Blazor (24)
Aspire.Hosting.Blazor.Tests (30)
Aspire.Hosting.Browsers (20)
Aspire.Hosting.Browsers.Tests (35)
Aspire.Hosting.CodeGeneration.Go (47)
AtsGoCodeGenerator.cs (47)
194var ordered = handleTypeIds
248var reservationOptionals = capability.Parameters
387private static Dictionary<string, List<AtsCapabilityInfo>> GroupCapabilitiesByDirectTarget(
390var result = new Dictionary<string, List<AtsCapabilityInfo>>(StringComparer.Ordinal);
397if (!result.TryGetValue(capability.TargetTypeId, out var list))
412private Dictionary<string, List<AtsCapabilityInfo>> GroupCapabilitiesByConcreteImpl(
415var result = new Dictionary<string, List<AtsCapabilityInfo>>(StringComparer.Ordinal);
442if (!result.TryGetValue(targetType.TypeId, out var list))
715var members = new List<string>();
772private void GenerateMarkerInterfaces(Dictionary<string, List<AtsCapabilityInfo>> capabilitiesByDirectTarget)
774var interfaceTypeIds = _interfaceNames
806private void GenerateConcreteHandleTypes(Dictionary<string, List<AtsCapabilityInfo>> capabilitiesByConcreteImpl)
808var concreteTypeIds = _implNames.Keys.OrderBy(id => _interfaceNames[id], StringComparer.Ordinal).ToList();
823var capabilities = capabilitiesByConcreteImpl.TryGetValue(typeId, out var caps)
829var listDictGetters = CollectListDictGetters(capabilities);
847private static List<(string Field, string MethodName, AtsTypeRef ReturnType, string CapabilityId, string? Description)>
850var result = new List<(string, string, AtsTypeRef, string, string?)>();
854var nonTargetParams = capability.Parameters
885List<(string Field, string MethodName, AtsTypeRef ReturnType, string CapabilityId, string? Description)> listDictGetters)
940List<(string Field, string MethodName, AtsTypeRef ReturnType, string CapabilityId, string? Description)> listDictGetters)
1016var parameters = capability.Parameters
1026private static (List<AtsParameterInfo> Required, List<AtsParameterInfo> Optional) SplitParameters(
1027List<AtsParameterInfo> parameters)
1029var required = new List<AtsParameterInfo>();
1030var optional = new List<AtsParameterInfo>();
1064List<AtsParameterInfo> requiredParams,
1065List<AtsParameterInfo> optionalParams,
1205List<(string Field, string MethodName, AtsTypeRef ReturnType, string CapabilityId, string? Description)> listDictGetters)
1224var parameters = capability.Parameters
1260List<AtsParameterInfo> requiredParams,
1261List<AtsParameterInfo> optionalParams,
1333List<AtsParameterInfo> requiredParams,
1334List<AtsParameterInfo> optionalParams,
1358List<AtsParameterInfo> requiredParams,
1359List<AtsParameterInfo> optionalParams,
1396List<AtsParameterInfo> requiredParams,
1397List<AtsParameterInfo> optionalParams,
1570var argNames = new List<string>(callbackParameters.Count);
1642var optionalParams = capability.Parameters
1765var aOpts = a.Parameters
1770var bOpts = b.Parameters
1809private static List<AtsParameterInfo> GetUnionParameters(AtsCapabilityInfo capability)
1814var result = new List<AtsParameterInfo>();
1887List<AtsParameterInfo> requiredParams,
1888List<AtsParameterInfo> optionalParams,
Aspire.Hosting.CodeGeneration.Go.Tests (19)
Aspire.Hosting.CodeGeneration.Java (70)
AtsJavaCodeGenerator.cs (70)
41private readonly Dictionary<string, List<AtsParameterInfo>> _optionsClassesToGenerate = new(StringComparer.Ordinal);
118var importLines = new List<string>();
153List<string>? currentDeclaration = null;
154List<string>? pendingLines = [];
410private static int FindDeclarationLineIndex(List<string> declarationLines)
461private static List<string> FilterImports(List<string> importLines, List<string> declarationLines)
464var used = new List<string>();
523private static string CreateJavaSourceFile(string fileName, string packageLine, List<string> importLines, List<string> declarationLines)
533var usedImports = FilterImports(importLines, declarationLines);
934var parameters = capability.Parameters
945private void RegisterOptionsClass(string capabilityId, string methodName, List<AtsParameterInfo> optionalParameters)
948if (_optionsClassesToGenerate.TryGetValue(baseClassName, out var existingParameters))
959if (!_optionsClassesToGenerate.TryGetValue(suffixedName, out var suffixedParameters))
978private static bool AreOptionsCompatible(List<AtsParameterInfo> existing, List<AtsParameterInfo> candidate)
1071private static (List<AtsParameterInfo> Required, List<AtsParameterInfo> Optional) SeparateParameters(IEnumerable<AtsParameterInfo> parameters)
1073var required = new List<AtsParameterInfo>();
1074var optional = new List<AtsParameterInfo>();
1099var argumentList = arguments.ToList();
1104private List<JavaMethodParameter> CreateMethodParameters(IEnumerable<AtsParameterInfo> parameters)
1106var result = new List<JavaMethodParameter>();
1160var convertibleParameters = parameters
1180var overloadParameters = new List<string>(parameters.Count);
1181var callArguments = new List<string>(parameters.Count);
1233Dictionary<string, List<AtsCapabilityInfo>> capabilitiesByTarget)
1254if (capabilitiesByTarget.TryGetValue(handleType.TypeId, out var methods))
1346var parameters = capability.Parameters
1375private void GenerateUnionOverloads(JavaCapabilityReturnInfo returnInfo, string methodName, List<AtsParameterInfo> parameters)
1377var unionParameters = parameters.Where(p => IsUnionType(p.Type)).ToList();
1395private void GenerateSingleUnionOverloads(JavaCapabilityReturnInfo returnInfo, string methodName, List<AtsParameterInfo> parameters, AtsParameterInfo unionParameter)
1451private void GenerateMultiUnionOverloads(JavaCapabilityReturnInfo returnInfo, string methodName, List<AtsParameterInfo> parameters, List<AtsParameterInfo> unionParameters)
1454var unionTypesByParam = unionParameters
1463var combinations = CartesianProduct(unionTypesByParam);
1465foreach (var combination in combinations)
1503private static List<List<AtsTypeRef>> CartesianProduct(List<List<AtsTypeRef>> lists)
1505var result = new List<List<AtsTypeRef>> { new() };
1506foreach (var list in lists)
1508var temp = new List<List<AtsTypeRef>>();
1509foreach (var existing in result)
1513var combined = new List<AtsTypeRef>(existing) { item };
1522private void GenerateOptionalOverloads(JavaCapabilityReturnInfo returnInfo, string methodName, List<AtsParameterInfo> parameters)
1532var visibleParameters = parameters.Take(parameters.Count - omitCount).ToList();
1536var callArguments = new List<string>(parameters.Count);
1576List<AtsParameterInfo> requiredParameters,
1579var unionParameters = requiredParameters.Where(p => IsUnionType(p.Type)).ToList();
1638var bridgeParameters = CreateUnionMethodParameters(requiredParameters, unionParameter, unionType);
1672private List<JavaMethodParameter> CreateUnionMethodParameters(
1673List<AtsParameterInfo> parameters,
1677var result = new List<JavaMethodParameter>(parameters.Count);
1711List<AtsParameterInfo> requiredParameters,
1712List<AtsParameterInfo> optionalParameters,
1737var implementationArguments = requiredParameters
1753var optionsParameters = CreateMethodParameters(requiredParameters);
1780private void GenerateCapabilityMethodImplementation(AtsCapabilityInfo capability, JavaCapabilityReturnInfo returnInfo, string methodName, string targetParamName, List<AtsParameterInfo> parameters, bool isPublic)
1894var typeArguments = new List<string>();
1922var callArguments = new List<string>();
2385var results = new List<JavaHandleType>();
2419private static Dictionary<string, List<AtsCapabilityInfo>> GroupCapabilitiesByTarget(
2422var result = new Dictionary<string, List<AtsCapabilityInfo>>(StringComparer.Ordinal);
2444if (!result.TryGetValue(targetType.TypeId, out var list))
Aspire.Hosting.CodeGeneration.Java.Tests (24)
Aspire.Hosting.CodeGeneration.Python (84)
AtsPythonCodeGenerator.cs (83)
22public required List<AtsCapabilityInfo> Capabilities { get; init; }
116List<AtsParameterInfo> RequiredParameters,
117List<AtsParameterInfo> OptionalParameters,
142private readonly List<string> _ignoreTypes = new()
298private List<AtsCapabilityInfo> MergeCapabilitiesBySourceLocation(List<AtsCapabilityInfo> capabilities)
300var result = new List<AtsCapabilityInfo>();
311var items = group.ToList();
359var mergedParams = new List<AtsParameterInfo>();
427private static List<AtsParameterInfo> FilterMethodParameters(IReadOnlyList<AtsParameterInfo> parameters, string? targetParameterName = null)
712var allBuilders = CreateBuilderModels(capabilities);
713var entryPoints = GetEntryPointCapabilities(capabilities);
716var builders = allBuilders;
765var resources = builders.Where(b => b.TargetType?.IsResourceBuilder == true).ToList();
766var typeClasses = builders.Where(b => b.TargetType?.IsResourceBuilder != true).ToList();
767var interfaceClasses = resources.Where(b => b.IsInterface).ToList();
949var members = new List<string>();
1026var getters = model.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertyGetter).ToList();
1027var setters = model.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertySetter).ToList();
1028var contextMethods = model.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.InstanceMethod).ToList();
1029var otherMethods = model.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.Method).ToList();
1032var allMethods = contextMethods.Concat(otherMethods).ToList();
1067var properties = GroupPropertiesByName(getters, setters);
1124private static List<(string PropertyName, AtsCapabilityInfo? Getter, AtsCapabilityInfo? Setter)> GroupPropertiesByName(
1125List<AtsCapabilityInfo> getters, List<AtsCapabilityInfo> setters)
1127var result = new List<(string PropertyName, AtsCapabilityInfo? Getter, AtsCapabilityInfo? Setter)>();
1281var userParams = FilterMethodParameters(capability.Parameters, targetParamName);
1282var requiredParams = userParams.Where(p => !p.IsOptional && !p.IsNullable).ToList();
1283var optionalParams = userParams.Where(p => !requiredParams.Contains(p)).ToList();
1382var implementedInterfaces = builder.TargetType?.ImplementedInterfaces.ToList();
1409var getters = builder.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertyGetter).ToList();
1410var setters = builder.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertySetter).ToList();
1411var properties = GroupPropertiesByName(getters, setters);
1421var methods = builder.Capabilities.Where(c =>
1450var baseTypeInterfaces = new List<string>();
1463var implementedInterfaces = builder.TargetType?.ImplementedInterfaces.Where(i => !baseTypeInterfaces.Contains(i.TypeId)).ToList();
1528var optionNames = new List<string>();
1529if (!isBaseResource && _moduleBuilder.ResourceOptionNames.TryGetValue(baseBuilderClassName, out var baseOptionNames))
1537var getters = builder.Capabilities.Where(c =>
1540var setters = builder.Capabilities.Where(c =>
1543var properties = GroupPropertiesByName(getters, setters);
1554var methods = builder.Capabilities.Where(c =>
1587var userParams = FilterMethodParameters(capability.Parameters, targetParamName);
1593var requiredParams = userParams.Where(p => !p.IsOptional && !p.IsNullable).ToList();
1594var optionalParams = userParams.Where(p => !requiredParams.Contains(p)).ToList();
1603var optionTypeVariations = CreateOptionVariations(capability, userParams, requiredParams, optionalParams);
1614if (builderClassName != null && _moduleBuilder.ResourceOptionNames.TryGetValue(builderClassName, out var optionNamesList))
1725private void GenerateEntryPointFunctions(System.Text.StringBuilder sb, List<AtsCapabilityInfo> entryPoints)
1743var paramDefs = new List<string> { "client: AspireClient" };
1744var paramArgs = new List<string>();
1746var userParams = FilterMethodParameters(capability.Parameters);
1825private List<BuilderModel> CreateBuilderModels(IReadOnlyList<AtsCapabilityInfo> capabilities)
1828var capabilitiesByTypeId = new Dictionary<string, List<AtsCapabilityInfo>>();
1834var interfaceCapabilities = new Dictionary<string, List<AtsCapabilityInfo>>();
1853if (!interfaceCapabilities.TryGetValue(targetTypeId, out var interfaceList))
1868if (!capabilitiesByTypeId.TryGetValue(expandedType.TypeId, out var list))
1881if (!capabilitiesByTypeId.TryGetValue(targetTypeId, out var list))
1892var builders = new List<BuilderModel>();
1899var uniqueCapabilities = typeCapabilities
1927var uniqueCapabilities = caps
1964var applicableCapabilities = new List<AtsCapabilityInfo>();
1999private static List<BuilderModel> TopologicalSortBuilders(List<BuilderModel> builders)
2026var result = new List<BuilderModel>();
2156private static List<AtsCapabilityInfo> GetEntryPointCapabilities(IReadOnlyList<AtsCapabilityInfo> capabilities)
2365private List<OptionVariation> CreateOptionVariations(
2367List<AtsParameterInfo> parameters,
2368List<AtsParameterInfo> requiredParameters,
2369List<AtsParameterInfo> optionalParameters)
2375var variations = new List<OptionVariation>();
2437private void AddParameterMapping(string methodName, List<AtsParameterInfo> requiredParameters, List<AtsParameterInfo> optionalParameters)
2473List<AtsParameterInfo> requiredParams,
2474List<AtsParameterInfo> optionalParams,
2498var tupleSlots = SplitTupleTypes(optionType.Trim('(', ')'));
2515List<OptionVariation> variations,
2522var requiredParameters = variation.RequiredParameters;
2523var optionalParameters = variation.OptionalParameters;
2581var paramTypes = SplitTupleTypes(currentOption.Trim('(', ')'));
2625var paramTypes = parameters?.Select(p => MapTypeRefToPython(p.Type)).ToList() ?? [];
2640private static List<string> SplitTupleTypes(string tupleContent)
2642var result = new List<string>();
Aspire.Hosting.CodeGeneration.Python.Tests (19)
Aspire.Hosting.CodeGeneration.Rust (7)
Aspire.Hosting.CodeGeneration.Rust.Tests (20)
Aspire.Hosting.CodeGeneration.TypeScript (123)
AtsTypeScriptCodeGenerator.cs (123)
21public required List<AtsCapabilityInfo> Capabilities { get; init; }
130private readonly Dictionary<string, List<AtsParameterInfo>> _optionsInterfacesToGenerate = new(StringComparer.Ordinal);
423var nonHandleTypes = new List<string>();
424var handleTypeNames = new List<string>();
443var allBaseTypes = nonHandleTypes
478var parameterDocs = (publicParameters ?? capability.Parameters
523var lines = new List<string>();
563private static void AddTaggedDocumentationLines(List<string> lines, string tag, string? text)
570var tagLines = SplitDocumentationLines(text);
583private static void AddDocumentationLines(List<string> lines, string? text, bool addBlankLineBefore = false)
585var textLines = SplitDocumentationLines(text);
599private static List<string> SplitDocumentationLines(string? text)
674List<string>? assignableWrapperTypes = null;
790private bool TryGetDtoCallbackMarshallingProperties(AtsTypeRef? typeRef, out List<AtsDtoPropertyInfo> marshallingProperties)
944var allBuilders = CreateBuilderModels(capabilities);
945var entryPoints = GetEntryPointCapabilities(capabilities);
948var builders = allBuilders;
951var clientMethods = entryPoints
982var resourceBuilders = builders.Where(b => b.TargetType?.IsResourceBuilder == true).ToList();
983var typeClasses = builders.Where(b => b.TargetType?.IsResourceBuilder != true).ToList();
1017directlyReturnedResourceTypesByClassName.TryGetValue(builder.BuilderClassName, out var directlyReturnedAliases);
1171var generatedEnumTypes = enumTypes
1214var generatedDtoTypes = dtoTypes
1341var members = new List<string>();
1447private static (List<AtsParameterInfo> Required, List<AtsParameterInfo> Optional) SeparateParameters(
1450var required = new List<AtsParameterInfo>();
1451var optional = new List<AtsParameterInfo>();
1468private static bool TryGetDirectOptionsParameter(List<AtsParameterInfo> optionalParams, out AtsParameterInfo? directOptionsParam)
1483private static AtsParameterInfo? GetTrailingCancellationTokenParameter(List<AtsParameterInfo> optionalParams)
1499private void RegisterOptionsInterface(string capabilityId, string methodName, List<AtsParameterInfo> optionalParams)
1509if (_optionsInterfacesToGenerate.TryGetValue(baseInterfaceName, out var existingParams))
1530if (!_optionsInterfacesToGenerate.TryGetValue(suffixedName, out var suffixedParams))
1568private static bool AreOptionsCompatible(List<AtsParameterInfo> existing, List<AtsParameterInfo> candidate)
1672List<AtsParameterInfo> requiredParams,
1678var publicParamDefs = new List<string>();
1858var getters = builder.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertyGetter).ToList();
1859var setters = builder.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertySetter).ToList();
1862var properties = GroupPropertiesByName(getters, setters);
1874var userParams = capability.Parameters.Where(p => p.Name != targetParamName).ToList();
1912var capabilities = builder.Capabilities.Where(c =>
1915var getters = builder.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertyGetter).ToList();
1916var setters = builder.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertySetter).ToList();
1917var getterOnlyProperties = GroupPropertiesByName(getters, setters)
1934var userParams = capability.Parameters.Where(p => p.Name != targetParamName).ToList();
1971var userParams = capability.Parameters.Where(p => p.Name != targetParamName).ToList();
2008var getters = model.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertyGetter).ToList();
2009var setters = model.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertySetter).ToList();
2010var contextMethods = model.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.InstanceMethod).ToList();
2011var otherMethods = model.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.Method).ToList();
2012var standardMethods = contextMethods.Concat(otherMethods).ToList();
2015var properties = GroupPropertiesByName(getters, setters);
2016var getterOnlyProperties = properties
2076var getters = builder.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertyGetter).ToList();
2077var setters = builder.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertySetter).ToList();
2080var properties = GroupPropertiesByName(getters, setters);
2138var userParams = capability.Parameters.Where(p => p.Name != targetParamName).ToList();
2151var internalParamDefs = new List<string>();
2205var callbackParamsForPromiseWrapper = userParams.Where(p => p.IsCallback).ToList();
2242var callbackParams2 = userParams.Where(p => p.IsCallback).ToList();
2282var callbackParams = userParams.Where(p => p.IsCallback).ToList();
2455List<AtsParameterInfo> requiredParams,
2456List<AtsParameterInfo> optionalParams,
2469var requiredArgs = new List<string> { $"{targetParamName}: this._handle" };
2491List<AtsParameterInfo> requiredParams,
2492List<AtsParameterInfo> optionalParams,
2502var requiredArgs = new List<string> { $"{targetParamName}: this._handle" };
2527if (!TryGetDtoCallbackMarshallingProperties(param.Type, out var marshallingProperties))
2593if (!TryGetDtoCallbackMarshallingProperties(dtoProperty.Type, out var nestedMarshallingProperties))
2663var capabilities = builder.Capabilities.Where(c =>
2666var getters = builder.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertyGetter).ToList();
2667var setters = builder.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertySetter).ToList();
2668var getterOnlyProperties = GroupPropertiesByName(getters, setters)
2718var userParams = capability.Parameters.Where(p => p.Name != targetParamName).ToList();
2728var publicParamDefs = new List<string>();
2745var forwardArgs = new List<string>();
2821private void GenerateAspireClient(List<AtsCapabilityInfo> entryPoints)
2864var paramDefs = new List<string> { "client: AspireClientRpc" };
2906var requiredArgs = requiredParams
2942var requiredArgs = requiredParams
2980var paramList = new List<string>();
3074var callArgs = new List<string>();
3259private void GenerateHandleWrapperRegistrations(List<BuilderModel> typeClasses, List<BuilderModel> resourceBuilders)
3318var getters = model.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertyGetter).ToList();
3319var setters = model.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertySetter).ToList();
3320var contextMethods = model.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.InstanceMethod).ToList();
3321var otherMethods = model.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.Method).ToList();
3322var allMethods = contextMethods.Concat(otherMethods).ToList();
3334var properties = GroupPropertiesByName(getters, setters);
3335var getterOnlyProperties = properties
3379private static List<(string PropertyName, AtsCapabilityInfo? Getter, AtsCapabilityInfo? Setter)> GroupPropertiesByName(
3380List<AtsCapabilityInfo> getters, List<AtsCapabilityInfo> setters)
3382var result = new List<(string PropertyName, AtsCapabilityInfo? Getter, AtsCapabilityInfo? Setter)>();
3877var userParams = method.Parameters.Where(p => p.Name != targetParamName).ToList();
3992var userParams = capability.Parameters.Where(p => p.Name != firstParamName).ToList();
4110var userParams = capability.Parameters.Where(p => p.Name != targetParamName).ToList();
4123var internalParamDefs = new List<string>();
4153var callbackParams = userParams.Where(p => p.IsCallback).ToList();
4211var callbackParams = userParams.Where(p => p.IsCallback).ToList();
4265var callbackParams = userParams.Where(p => p.IsCallback).ToList();
4319private void GenerateTypeClassThenableWrapper(BuilderModel model, List<AtsCapabilityInfo> methods)
4343var getters = model.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertyGetter).ToList();
4344var setters = model.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertySetter).ToList();
4345var getterOnlyProperties = GroupPropertiesByName(getters, setters)
4373var userParams = capability.Parameters.Where(p => p.Name != targetParamName).ToList();
4383var publicParamDefs = new List<string>();
4400var forwardArgs = new List<string>();
4472private static List<BuilderModel> CreateBuilderModels(IReadOnlyList<AtsCapabilityInfo> capabilities)
4477var capabilitiesByTypeId = new Dictionary<string, List<AtsCapabilityInfo>>();
4483var interfaceCapabilities = new Dictionary<string, List<AtsCapabilityInfo>>();
4515if (!capabilitiesByTypeId.TryGetValue(expandedType.TypeId, out var list))
4528if (!interfaceCapabilities.TryGetValue(targetTypeId, out var interfaceList))
4541if (!capabilitiesByTypeId.TryGetValue(targetTypeId, out var list))
4553var builders = new List<BuilderModel>();
4562var uniqueCapabilities = typeCapabilities
4595var uniqueCapabilities = caps
4659var candidates = group
4784private static List<AtsCapabilityInfo> GetEntryPointCapabilities(IReadOnlyList<AtsCapabilityInfo> capabilities)
4854var getters = model.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertyGetter).ToList();
4855var setters = model.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertySetter).ToList();
Aspire.Hosting.CodeGeneration.TypeScript.Tests (61)
Aspire.Hosting.Containers.Tests (16)
Aspire.Hosting.DevTunnels (12)
Aspire.Hosting.Docker (35)
Aspire.Hosting.Docker.Tests (20)
tests\Shared\TestPipelineActivityReporter.cs (7)
31public List<string> CreatedSteps { get; } = [];
36public List<(string StepTitle, string? ParentStepId, int HierarchyLevel)> CreatedStepHierarchy { get; } = [];
41public List<(string StepTitle, string TaskStatusText)> CreatedTasks { get; } = [];
46public List<(string StepTitle, string CompletionText, CompletionState CompletionState)> CompletedSteps { get; } = [];
51public List<(string TaskStatusText, string? CompletionMessage, CompletionState CompletionState)> CompletedTasks { get; } = [];
56public List<(string TaskStatusText, string StatusText)> UpdatedTasks { get; } = [];
61public List<(string StepTitle, LogLevel LogLevel, string Message)> LoggedMessages { get; } = [];
Aspire.Hosting.Dotnet (5)
Aspire.Hosting.Dotnet.Tests (13)
Aspire.Hosting.DotnetTool.Tests (11)
Aspire.Hosting.EntityFrameworkCore (13)
Aspire.Hosting.EntityFrameworkCore.Tests (43)
EFMigrationPipelineTests.cs (24)
25var steps = await CreateStepsAsync(builder, migrations.Resource);
42var steps = await CreateStepsAsync(builder, migrations.Resource);
58var steps = await CreateStepsAsync(builder, migrations.Resource);
76var steps = await CreateStepsAsync(builder, migrations.Resource);
94var m1Steps = await CreateStepsAsync(builder, m1.Resource);
95var m2Steps = await CreateStepsAsync(builder, m2.Resource);
120var m1Steps = await CreateStepsAsync(builder, m1.Resource);
121var m2Steps = await CreateStepsAsync(builder, m2.Resource);
150var m1Steps = await CreateStepsAsync(builder, m1.Resource);
151var m2Steps = await CreateStepsAsync(builder, m2.Resource);
172var m1Steps = await CreateStepsAsync(builder, m1.Resource);
173var m2Steps = await CreateStepsAsync(builder, m2.Resource);
198var m1Steps = await CreateStepsAsync(builder, m1.Resource);
199var m3Steps = await CreateStepsAsync(builder, m3.Resource);
221var steps = await CreateStepsAsync(builder, migrations.Resource);
237var waitAnnotations = migrations.Resource.Annotations.OfType<WaitAnnotation>().ToList();
257var waitAnnotations = migrations.Resource.Annotations.OfType<WaitAnnotation>().ToList();
269var waitAnnotations = migrations.Resource.Annotations.OfType<WaitAnnotation>().ToList();
676var waitedResources = migrations.Resource.Annotations.OfType<WaitAnnotation>().Select(w => w.Resource).ToList();
717var steps = await CreateStepsAsync(builder, migrations.Resource);
742var result = EFResourceBuilderExtensions.GetToolEnvironmentVariables(config, isPublishMode: true).ToList();
761var result = EFResourceBuilderExtensions.GetToolEnvironmentVariables(config, isPublishMode: false).ToList();
767private static async Task<List<PipelineStep>> CreateStepsAsync(
779var results = new List<PipelineStep>();
Aspire.Hosting.Foundry (8)
Aspire.Hosting.Foundry.Tests (16)
tests\Shared\TestPipelineActivityReporter.cs (7)
31public List<string> CreatedSteps { get; } = [];
36public List<(string StepTitle, string? ParentStepId, int HierarchyLevel)> CreatedStepHierarchy { get; } = [];
41public List<(string StepTitle, string TaskStatusText)> CreatedTasks { get; } = [];
46public List<(string StepTitle, string CompletionText, CompletionState CompletionState)> CompletedSteps { get; } = [];
51public List<(string TaskStatusText, string? CompletionMessage, CompletionState CompletionState)> CompletedTasks { get; } = [];
56public List<(string TaskStatusText, string StatusText)> UpdatedTasks { get; } = [];
61public List<(string StepTitle, LogLevel LogLevel, string Message)> LoggedMessages { get; } = [];
Aspire.Hosting.Garnet (1)
Aspire.Hosting.Garnet.Tests (1)
Aspire.Hosting.GitHub.Models.Tests (1)
Aspire.Hosting.Go (3)
Aspire.Hosting.Go.Tests (26)
Aspire.Hosting.Integration.Analyzers (2)
Aspire.Hosting.Java (1)
Aspire.Hosting.Java.Tests (26)
tests\Shared\TestPipelineActivityReporter.cs (7)
31public List<string> CreatedSteps { get; } = [];
36public List<(string StepTitle, string? ParentStepId, int HierarchyLevel)> CreatedStepHierarchy { get; } = [];
41public List<(string StepTitle, string TaskStatusText)> CreatedTasks { get; } = [];
46public List<(string StepTitle, string CompletionText, CompletionState CompletionState)> CompletedSteps { get; } = [];
51public List<(string TaskStatusText, string? CompletionMessage, CompletionState CompletionState)> CompletedTasks { get; } = [];
56public List<(string TaskStatusText, string StatusText)> UpdatedTasks { get; } = [];
61public List<(string StepTitle, LogLevel LogLevel, string Message)> LoggedMessages { get; } = [];
Aspire.Hosting.JavaScript (4)
Aspire.Hosting.JavaScript.Tests (25)
AddViteAppTests.cs (12)
509var args = new List<object>();
534var args = new List<object>();
569var args = new List<object> { "run", "dev", "--", "--port", "3000", "--config", "vite.config.js" };
629var args = new List<object> { "run", "dev", "--", "--port", "3000" };
681var args = new List<object> { "run", "dev", "--", "--port", "3000" };
727var args = new List<object> { "run", "dev", "--", "--port", "3000", "--config", viteConfigPath };
776var args = new List<object> { "run", "dev", "--", "--port", "3000" };
838var args = new List<object> { "run", "dev", "--", "--port", "3000" };
913var args = new List<object> { "run", "dev", "--", "--port", "3000" };
1016var args = new List<object> { "run", "dev", "--", "--port", "3000" };
1056var stepAnnotations = nodeApp.Resource.Annotations.OfType<PipelineStepAnnotation>().ToList();
1109var args = new List<object> { "run", "dev", "--", "--port", "3000" };
Aspire.Hosting.Kubernetes (160)
Aspire.Hosting.Kubernetes.Tests (48)
tests\Shared\TestPipelineActivityReporter.cs (7)
31public List<string> CreatedSteps { get; } = [];
36public List<(string StepTitle, string? ParentStepId, int HierarchyLevel)> CreatedStepHierarchy { get; } = [];
41public List<(string StepTitle, string TaskStatusText)> CreatedTasks { get; } = [];
46public List<(string StepTitle, string CompletionText, CompletionState CompletionState)> CompletedSteps { get; } = [];
51public List<(string TaskStatusText, string? CompletionMessage, CompletionState CompletionState)> CompletedTasks { get; } = [];
56public List<(string TaskStatusText, string StatusText)> UpdatedTasks { get; } = [];
61public List<(string StepTitle, LogLevel LogLevel, string Message)> LoggedMessages { get; } = [];
Aspire.Hosting.Maui (7)
Aspire.Hosting.Maui.Tests (19)
Aspire.Hosting.MongoDB.Tests (4)
Aspire.Hosting.MySql (1)
Aspire.Hosting.MySql.Tests (1)
Aspire.Hosting.Nats (1)
Aspire.Hosting.Nats.Tests (3)
Aspire.Hosting.OpenAI.Tests (1)
Aspire.Hosting.Oracle.Tests (4)
Aspire.Hosting.PostgreSQL (1)
Aspire.Hosting.Python.Tests (20)
AddPythonAppTests.cs (20)
174var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(pythonProjectResource, TestServiceProvider.Instance);
213var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(pythonProjectResource, TestServiceProvider.Instance);
256var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(pythonProjectResource, TestServiceProvider.Instance);
430var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(pythonProjectResource, TestServiceProvider.Instance);
461var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(pythonProjectResource, TestServiceProvider.Instance);
513var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(pythonProjectResource, TestServiceProvider.Instance);
1004var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(pythonProjectResource, TestServiceProvider.Instance);
1037var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(pythonProjectResource, TestServiceProvider.Instance);
1071var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(pythonProjectResource, TestServiceProvider.Instance);
1091var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(resource, TestServiceProvider.Instance);
1115var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(resource, TestServiceProvider.Instance);
1137var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(resource, TestServiceProvider.Instance);
1169var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(resource, TestServiceProvider.Instance);
1412var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(resource, app.Services);
1456var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(resource, app.Services);
1496var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(resource, app.Services);
1668var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(resource, app.Services);
1701var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(resource, TestServiceProvider.Instance);
2500var waitAnnotations = pythonAppResource.Annotations.OfType<WaitAnnotation>().ToList();
2533var waitAnnotations = pythonAppResource.Annotations.OfType<WaitAnnotation>().ToList();
Aspire.Hosting.RabbitMQ (1)
Aspire.Hosting.Radius (46)
Publishing\SealedSecretApplyStep.cs (8)
61var stores = GetSealedStores(model);
199private List<RadiusSecretStoreResource> GetSealedStores(DistributedApplicationModel model) =>
212var args = new List<string> { "apply", "-f", "-", "-o", "json" };
225var args = new List<string> { "get", "sealedsecret", name, "-n", ns, "-o", "json" };
233var args = new List<string> { "get", "secret", name, "-n", ns, "-o", "name" };
245var args = new List<string> { "get", "secret", name, "-n", ns, "-o", "json" };
250private static void AddContext(List<string> args, string? kubeContext)
447var conditions = new List<SealedSecretCondition>();
Aspire.Hosting.Radius.Tests (7)
Aspire.Hosting.Redis (2)
Aspire.Hosting.Redis.Tests (5)
Aspire.Hosting.RemoteHost (127)
AtsCapabilityScanner.cs (85)
30public required List<AtsCapabilityInfo> Capabilities { get; init; }
33public required List<AtsTypeInfo> HandleTypes { get; init; }
36public List<AtsDtoTypeInfo> DtoTypes { get; init; } = [];
39public List<AtsEnumTypeInfo> EnumTypes { get; init; } = [];
42public List<AtsExportedValueInfo> ExportedValues { get; init; } = [];
45public List<AtsDiagnostic> Diagnostics { get; init; } = [];
101var values = Enum.GetNames(enumType).ToList();
102var valueInfos = values.Select(value => new AtsEnumValueInfo
120public List<AtsEnumTypeInfo> GetEnumTypes() => [.. _enums.Values];
141var allCapabilities = new List<AtsCapabilityInfo>();
142var allTypeInfos = new List<AtsTypeInfo>();
143var allDtoTypes = new List<AtsDtoTypeInfo>();
144var allEnumTypes = new List<AtsEnumTypeInfo>();
145var allExportedValues = new List<AtsExportedValueInfo>();
146var allDiagnostics = new List<AtsDiagnostic>();
275var exportedValues = DeduplicateExportedValues(result.ExportedValues, result.Diagnostics);
299var capabilities = new List<AtsCapabilityInfo>();
300var typeInfos = new List<AtsTypeInfo>();
301var dtoTypes = new List<AtsDtoTypeInfo>();
302var exportedValues = new List<AtsExportedValueInfo>();
303var diagnostics = new List<AtsDiagnostic>();
482var implementedInterfaces = !isInterface
485var baseTypeHierarchy = !isInterface
505var enumTypes = CollectEnumTypes(capabilities, dtoTypes);
525private static List<AtsEnumTypeInfo> CollectEnumTypes(
526List<AtsCapabilityInfo> capabilities,
527List<AtsDtoTypeInfo> dtoTypes)
573var result = new List<AtsEnumTypeInfo>();
578var values = Enum.GetNames(enumType).ToList();
634List<AtsCapabilityInfo> capabilities,
635List<AtsDtoTypeInfo> dtoTypes,
719List<AtsCapabilityInfo> capabilities,
720List<AtsDiagnostic> diagnostics)
827List<AtsCapabilityInfo> capabilities,
828List<AtsTypeInfo> typeInfos)
846if (typeToCompatibleTypes.TryGetValue(originalTarget, out var compatibleTypes))
870private static Dictionary<string, List<AtsTypeRef>> BuildTypeCompatibilityMap(
871List<AtsTypeInfo> typeInfos)
873var typeToCompatibleTypes = new Dictionary<string, List<AtsTypeRef>>();
917Dictionary<string, List<AtsTypeRef>> map,
921if (!map.TryGetValue(key, out var list))
935private static void FilterMethodNameCollisions(List<AtsCapabilityInfo> capabilities, List<AtsDiagnostic> diagnostics)
937var capabilitiesWithTargets = capabilities
942var collisionGroups = capabilitiesWithTargets
959var collidingCapabilities = collisionGroup
964var exactTargetCapabilities = collidingCapabilities
990var capIds = collidingCapabilities.Select(c => c.CapabilityId).ToList();
1024public static List<AtsCapabilityInfo> ScanCapabilities(
1041var implementedInterfaces = !type.IsInterface
1047var baseTypeHierarchy = !type.IsInterface
1070List<AtsDiagnostic> diagnostics)
1079var properties = new List<AtsDtoPropertyInfo>();
1155return genericTypeDefinition == typeof(List<>) ||
1176List<AtsExportedValueInfo> exportedValues,
1177List<AtsDiagnostic> diagnostics)
1257List<AtsExportedValueInfo> exportedValues,
1258List<AtsDiagnostic> diagnostics)
1376var pathSegments = new List<string> { valueAttr.CatalogName };
1431private static List<AtsExportedValueInfo> DeduplicateExportedValues(
1433List<AtsDiagnostic> diagnostics)
1441var uniqueValues = new List<AtsExportedValueInfo>(exportedValues.Count);
1517public required List<AtsCapabilityInfo> Capabilities { get; init; }
1522public List<AtsDiagnostic> Diagnostics { get; init; } = [];
1541var capabilities = new List<AtsCapabilityInfo>();
1542var diagnostics = new List<AtsDiagnostic>();
1851var paramInfos = new List<AtsParameterInfo>
2010var parameters = method.GetParameters().ToList();
2039var paramInfos = new List<AtsParameterInfo>();
2184var parameters = new List<AtsCallbackParameterInfo>();
2247var genericArgs = delegateType.GetGenericArguments().ToList();
2258var parameters = new List<AtsCallbackParameterInfo>();
2279var parameters = new List<AtsCallbackParameterInfo>();
2428if (genericDef == typeof(List<>) || genericDef == typeof(IList<>))
2782if (genericDef == typeof(List<>) || genericDef == typeof(IList<>))
2965private static List<AtsTypeRef> CollectAllInterfaces(Type type)
2967var allInterfaces = new List<AtsTypeRef>();
2985var nestedInterfaces = CollectAllInterfaces(iface);
3005private static List<AtsTypeRef> CollectBaseTypeHierarchy(Type type)
3007var baseTypes = new List<AtsTypeRef>();
3299var unionTypes = new List<AtsTypeRef>();
3481var standardParameters = CreateParameterDocumentation(memberElement.Elements("param"));
3482var atsParameterElements = memberElement.Elements("ats-param").ToList();
3487var parameters = standardParameters
3523private static List<AtsParameterDocumentationInfo> CreateParameterDocumentation(IEnumerable<XElement> parameters)
Aspire.Hosting.RemoteHost.Tests (28)
Aspire.Hosting.Rust (12)
Aspire.Hosting.Rust.Tests (21)
tests\Shared\TestPipelineActivityReporter.cs (7)
31public List<string> CreatedSteps { get; } = [];
36public List<(string StepTitle, string? ParentStepId, int HierarchyLevel)> CreatedStepHierarchy { get; } = [];
41public List<(string StepTitle, string TaskStatusText)> CreatedTasks { get; } = [];
46public List<(string StepTitle, string CompletionText, CompletionState CompletionState)> CompletedSteps { get; } = [];
51public List<(string TaskStatusText, string? CompletionMessage, CompletionState CompletionState)> CompletedTasks { get; } = [];
56public List<(string TaskStatusText, string StatusText)> UpdatedTasks { get; } = [];
61public List<(string StepTitle, LogLevel LogLevel, string Message)> LoggedMessages { get; } = [];
Aspire.Hosting.Sdk.Tests (1)
Aspire.Hosting.SqlServer (1)
Aspire.Hosting.SqlServer.Tests (1)
Aspire.Hosting.Testing.Tests (7)
Aspire.Hosting.Tests (427)
Dcp\DcpExecutorTests.cs (124)
130var startingEvents = new List<OnResourceStartingContext>();
152var executables = GetCreatedExecutablesForResource(kubernetesService, "ServiceA");
220var executables = GetCreatedExecutablesForResource(kubernetesService, "ServiceA");
224var callArgs = executionType == ExecutionType.IDE ? exe.Spec.Args : exe.Spec.Args![^(expectedArgs?.Length ?? 0)..];
227Assert.True(exe.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var argAnnotations));
256var executables = kubernetesService.CreatedResources.OfType<Executable>().ToList();
264Assert.True(exe.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var argAnnotations));
314Assert.True(exe.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var displayArgs));
353Assert.True(exe.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var displayArgs));
385Assert.True(exe.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var argAnnotations));
389var effectiveArgs = exe.Spec.Args!.ToList();
431Assert.True(container.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var argAnnotations));
435var effectiveArgs = container.Spec.Args!.ToList();
580var executables = GetCreatedExecutablesForResource(kubernetesService, resource.Name);
588Assert.True(exe1.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var argAnnotations1));
608Assert.True(exe2.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var argAnnotations2));
629Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
661Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
693Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
726Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
781Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
810Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
845Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
881Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
919Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
947Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
978Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
1010Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
1040Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
1243var executables = GetCreatedExecutablesForResource(kubernetesService, "CoolProgram");
1281var containers = GetCreatedContainersForResource(kubernetesService, "database");
1389var executables = GetCreatedExecutablesForResource(kubernetesService, "ServiceA");
1755var logLines = new List<LogLine>();
2026var logLines = new List<LogLine>();
3299var exes = GetCreatedExecutablesForResource(kubernetesService, "ServiceA");
3304Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
3344var exes = GetCreatedExecutablesForResource(kubernetesService, "ServiceA");
3349Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
3386Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
3423Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
3461Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
3490Assert.True(dcpCtr.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
3525Assert.True(dcpCtr.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
3609Assert.True(dcpCtr.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
3642Assert.True(dcpCtr.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
3950Assert.True(dcpCtr.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
3985Assert.True(dcpCtr.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
4016Assert.True(dcpCtr.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
4158var serviceProducers = JsonSerializer.Deserialize<List<ServiceProducerAnnotation>>(annotations[CustomResource.ServiceProducerAnnotation]);
4603List<Executable> dcpExes = [];
4615Assert.True(debuggableExe.TryGetAnnotationAsObjectList<ExecutableLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs1));
4687Assert.True(exe.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var argAnnotations));
4724Assert.True(exe.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var argAnnotations));
4920Assert.True(exe.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var displayArgs));
4946var failedResources = new List<IResource>();
5517var dcpExes = kubernetesService.CreatedResources.OfType<Executable>().ToList();
5554var dcpExes = kubernetesService.CreatedResources.OfType<Executable>().ToList();
5595var dcpExes = kubernetesService.CreatedResources.OfType<Executable>().ToList();
5631var dcpExes = kubernetesService.CreatedResources.OfType<Executable>().ToList();
5673var dcpExes = kubernetesService.CreatedResources.OfType<Executable>().ToList();
5715var dcpExes = kubernetesService.CreatedResources.OfType<Executable>().ToList();
5757var dcpExes = kubernetesService.CreatedResources.OfType<Executable>().ToList();
6026Assert.True(exe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs));
6132var expectedArgs = new List<string> { resourceArgs[0] };
6184var expectedArgs = new List<string> { resourceArgs[0] };
6229var expectedArgs = new List<string> { resourceArgs[0] };
6301var expectedArgs = new List<string> { "run" };
6310Assert.True(exe.TryGetAnnotationAsObjectList<TestMauiLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs));
6403var expectedArgs = new List<string>
6549var expectedArgs = new List<string>
6566out var launchConfigurations));
6572var logLines = new List<LogLine>();
6632Assert.True(exe.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var displayArgs));
6660var resourceArgs = new List<string>();
6720var expectedArgs = new List<string>();
6746Assert.True(exe.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var displayArgs));
6747var expectedDisplayArgs = new List<string>();
6838Assert.True(exe.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var displayArgs));
6935var expectedArgs = new List<string> { "run" };
7066Assert.True(customExe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs));
7241Assert.True(exe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs));
7359Assert.True(exe.TryGetAnnotationAsObjectList<ExecutableLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs));
7389var failedResources = new List<IResource>();
7594Assert.True(exe.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var displayArgs));
7713Assert.True(exe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs));
7905var failedResources = new List<IResource>();
7927var logLines = new List<LogLine>();
7980Assert.True(exe.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var displayArgs));
8033Assert.True(exe.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var displayArgs));
8084Assert.True(exe.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var displayArgs));
8171Assert.True(exe.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var displayArgs));
8237var failedResources = new List<IResource>();
8407var failedResources = new List<(IResource Resource, string? ErrorMessage)>();
8433var logLines = new List<LogLine>();
8520var logLines = new List<LogLine>();
8573Assert.True(exe1.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var displayArgs1));
8579var executables = GetCreatedExecutablesForResource(kubernetesService, "TestExecutable");
8583Assert.True(exe2.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var displayArgs2));
8592Assert.True(exe3.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var displayArgs3));
8643var executables = GetCreatedExecutablesForResource(kubernetesService, "TestExecutable");
8678var failedResources = new List<(IResource Resource, string? ErrorMessage)>();
8787var svcs = kubernetesService.CreatedResources
9028Assert.True(container.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var argAnnotations));
9072Assert.True(startedExecutable.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var argAnnotations));
9117Assert.True(startedContainer.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var argAnnotations));
9301var createdContainers = kubernetesService.CreatedResources.OfType<Container>().ToList();
9351var createdContainers = kubernetesService.CreatedResources.OfType<Container>().ToList();
9356var tunnelServices = kubernetesService.CreatedResources
9420var createdResources = kubernetesService.CreatedResources.ToList();
9429var tunnelServices = createdResources
9462var failedResources = new List<string>();
9474var createdContainers = kubernetesService.CreatedResources.OfType<Container>().ToList();
9499var failedResources = new List<string>();
9511var createdContainers = kubernetesService.CreatedResources.OfType<Container>().ToList();
9521var commandAnnotations = resource.Annotations.OfType<ResourceCommandAnnotation>().ToList();
9530var commandAnnotations = resource.Annotations.OfType<ResourceCommandAnnotation>().ToList();
9540var expectedArgs = new List<string> { "run", "--project", "TestProject" };
9580var failedResources = new List<IResource>();
9640Assert.True(exe.TryGetAnnotationAsObjectList<ExecutableLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs));
9671var failedResources = new List<IResource>();
9737private static List<Executable> GetCreatedExecutablesForResource(TestKubernetesService kubernetesService, string appModelResourceName)
9744private static List<Container> GetCreatedContainersForResource(TestKubernetesService kubernetesService, string appModelResourceName)
9782var exes = kubernetesService.CreatedResources.OfType<Executable>()
tests\Shared\TestPipelineActivityReporter.cs (7)
31public List<string> CreatedSteps { get; } = [];
36public List<(string StepTitle, string? ParentStepId, int HierarchyLevel)> CreatedStepHierarchy { get; } = [];
41public List<(string StepTitle, string TaskStatusText)> CreatedTasks { get; } = [];
46public List<(string StepTitle, string CompletionText, CompletionState CompletionState)> CompletedSteps { get; } = [];
51public List<(string TaskStatusText, string? CompletionMessage, CompletionState CompletionState)> CompletedTasks { get; } = [];
56public List<(string TaskStatusText, string StatusText)> UpdatedTasks { get; } = [];
61public List<(string StepTitle, LogLevel LogLevel, string Message)> LoggedMessages { get; } = [];
Aspire.Hosting.TestUtilities (13)
Aspire.Hosting.Valkey (1)
Aspire.Hosting.Valkey.Tests (1)
Aspire.Hosting.Yarp (8)
Aspire.Hosting.Yarp.Tests (2)
Aspire.Microsoft.Azure.Cosmos (3)
Aspire.Microsoft.Azure.StackExchangeRedis.Tests (1)
Aspire.Microsoft.EntityFrameworkCore.Cosmos (3)
Aspire.Microsoft.Extensions.Configuration.AzureAppConfiguration (3)
Aspire.Microsoft.Extensions.Configuration.AzureAppConfiguration.Tests (10)
Aspire.NATS.Net.Tests (1)
Aspire.Oracle.EntityFrameworkCore.Tests (1)
Aspire.Playground.Tests (15)
Aspire.RabbitMQ.Client (1)
Aspire.RabbitMQ.Client.Tests (1)
Aspire.RuntimeIdentifier.Tool (1)
Aspire.StackExchange.Redis (1)
Aspire.StackExchange.Redis.DistributedCaching.Tests (1)
Aspire.StackExchange.Redis.OutputCaching.Tests (1)
Aspire.StackExchange.Redis.Tests (1)
Aspire.Templates.Tests (7)
Aspire.TerminalHost (3)
Aspire.TestTools (10)
Aspire.TestUtilities (3)
Aspire.TypeSystem (3)
AzureAppService.ApiService (1)
AzureContainerApps.ApiService (1)
AzureFunctionsWithDts.Functions (1)
AzureSearch.ApiService (2)
AzureStorageEndToEnd.ApiService (2)
AzureVirtualNetworkEndToEnd.ApiService (2)
BasketService (3)
BicepSample.ApiService (8)
blazor-gateway (2)
BlazorHosted.ClientServiceDefaults (2)
BlazorStandalone.ClientServiceDefaults (2)
CatalogDb (9)
CatalogModel (3)
CatalogService (1)
cdac-build-tool (1)
CdkSample.ApiService (9)
Client.ClientBase.IntegrationTests (14)
ConfigurationSchemaGenerator (30)
Contract.Data.IntegrationTests (1)
CosmosEndToEnd.ApiService (1)
crossgen2 (13)
Crossgen2Tasks (14)
csc (7)
CSharpSyntaxGenerator (62)
DatabaseMigration.ApiService (1)
dotnet (316)
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.Help.cs (19)
15private readonly ConcurrentDictionary<bool, List<(string, string[])>> _moduleNamesToCommandLineOptions = [];
34Dictionary<bool, List<(string[], string[])>> moduleToMissingOptions = GetModulesToMissingOptions(_moduleNamesToCommandLineOptions, builtInOptions.Select(option => option.Name!), nonBuiltInOptions.Select(option => option.Name!));
58var parentCommands = new List<Command>();
97List<string> builtInOptions = [];
98List<string> nonBuiltInOptions = [];
128private (List<CommandLineOptionMessage> BuiltInOptions, List<CommandLineOptionMessage> NonBuiltInOptions) GetAllOptions(IList<Option> commandOptions)
130List<CommandLineOptionMessage> builtInOptions = [];
131List<CommandLineOptionMessage> nonBuiltInOptions = [];
159private static Dictionary<bool, List<(string[], string[])>> GetModulesToMissingOptions(
160ConcurrentDictionary<bool, List<(string, string[])>> moduleNamesToCommandLineOptions,
164var modulesWithMissingOptions = new Dictionary<bool, List<(string[], string[])>>();
169var groupedModules = new List<(string[], string[])>();
170var missingOptionsToModules = new Dictionary<string, List<string>>();
183if (!missingOptionsToModules.TryGetValue(missingKey, out var modules))
209Dictionary<bool, List<(string[], string[])>> moduleToMissingOptions)
228List<TwoColumnHelpRow> optionRows = [];
245private static void WriteModulesToMissingOptionsToConsole(Dictionary<bool, List<(string[], string[])>> modulesWithMissingOptions)
247foreach (KeyValuePair<bool, List<(string[], string[])>> groupedModules in modulesWithMissingOptions)
Commands\Workload\Install\FileBasedInstaller.cs (20)
151List<PackInfo> packsToInstall = [];
192var tempDirsToDelete = new List<string>();
420Dictionary<(string workloadSetVersion, SdkFeatureBand workloadSetFeatureBand), List<SdkFeatureBand>> workloadSetInstallRecords = GetAllWorkloadSetInstallRecords();
426List<SdkFeatureBand> referencingFeatureBands;
432List<SdkFeatureBand> featureBandsToRemove = [];
468Dictionary<(ManifestId manifestId, ManifestVersion manifestVersion, SdkFeatureBand manifestFeatureBand), List<SdkFeatureBand>> manifestInstallRecords = GetAllManifestInstallRecords();
471var referencingFeatureBands = manifestInstallRecords[(manifestId, manifestVersion, manifestFeatureBand)];
472List<SdkFeatureBand> featureBandsToRemove = [];
505Dictionary<(WorkloadPackId packId, string packVersion), List<SdkFeatureBand>> packInstallRecords = GetAllPackInstallRecords();
508var referencingFeatureBands = packInstallRecords[(packId, packVersion)];
509List<SdkFeatureBand> featureBandsToRemove = [];
713private Dictionary<(string workloadSetVersion, SdkFeatureBand workloadSetFeatureBand), List<SdkFeatureBand>> GetAllWorkloadSetInstallRecords()
715Dictionary<(string workloadSetVersion, SdkFeatureBand workloadSetFeatureBand), List<SdkFeatureBand>> records = [];
733if (!records.TryGetValue((workloadSetVersion, workloadSetFeatureBand), out var referencingFeatureBands))
764private Dictionary<(ManifestId manifestId, ManifestVersion manifestVersion, SdkFeatureBand manifestFeatureBand), List<SdkFeatureBand>> GetAllManifestInstallRecords()
766Dictionary<(ManifestId manifestId, ManifestVersion manifestVersion, SdkFeatureBand manifestFeatureBand), List<SdkFeatureBand>> records = [];
788if (!records.TryGetValue((manifestId, manifestVersion, manifestFeatureBand), out var referencingFeatureBands))
806private Dictionary<(WorkloadPackId packId, string packVersion), List<SdkFeatureBand>> GetAllPackInstallRecords()
808Dictionary<(WorkloadPackId packId, string packVersion), List<SdkFeatureBand>> records = [];
827if (!records.TryGetValue((packId, packVersion), out var referencingFeatureBands))
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.11.0-1.26424.106\contentFiles\cs\net11.0\BuildServerConnection.cs (1)
72List<string> arguments,
dotnet-aot (73)
dotnet-dev-certs (64)
dotnet-format (15)
dotnet-getdocument (11)
dotnet-Microsoft.XmlSerializer.Generator (10)
Sgen.cs (10)
32var types = new List<string>();
35var errs = new List<string>();
223private static void GenerateFile(List<string> typeNames, string defaultNamespace, string assemblyName, bool proxyOnly, bool silent, bool verbose, bool force, string outputDirectory, bool parsableerrors)
236List<Type> loadedTypes = new List<Type>();
264var mappings = new List<XmlMapping>();
265var importedTypes = new List<Type>();
445private static void ImportType(Type type, string defaultNamespace, List<XmlMapping> mappings, List<Type> importedTypes, bool verbose, XmlReflectionImporter importer, bool parsableerrors)
574var referencelist = new List<string>();
667var parsedArgs = new List<string>();
dotnet-openapi (10)
dotnet-razorpagegenerator (1)
dotnet-sourcelink (5)
dotnet-sql-cache (10)
dotnet-suggest (1)
dotnet-svcutil (1)
dotnet-svcutil-lib (294)
CodeDomFixup\ConfigToCode.cs (5)
32List<string> endpointNames = new List<string>();
68private static void AddConfigEndpoint(CodeConstructor ctor, List<string> endpointNames)
99private void FixupConstructors(CodeTypeDeclaration clientType, bool shouldRemoveDefault, bool endpointConfigurationExists, CodeNamespace namespaceDecl, List<string> endpointNames)
178private static void FixupConstructorsNonDuplex(CodeTypeDeclaration clientType, bool shouldRemoveDefault, bool endpointConfigurationExists, List<string> endpointNames)
304private void FixupConstructorsDuplex(CodeTypeDeclaration clientType, bool shouldRemoveDefault, bool endpointConfigurationExists, CodeNamespace namespaceDecl, List<string> endpointNames)
dotnet-svcutil-lib.Tests (12)
TestInit.cs (9)
362var baselineFiles = Directory.GetFiles(this_TestCaseBaselinesDir, "*", SearchOption.AllDirectories)
365var nonRefbaselineFiles = baselineFiles.Where(f => f.EndsWith(".cs") && !f.EndsWith(Path.DirectorySeparatorChar + "reference.cs", StringComparison.OrdinalIgnoreCase)).ToList();
371var generatedFiles = Directory.GetFiles(this_TestCaseOutputDir, "*.*", SearchOption.AllDirectories)
377var nonRefGeneratedFiles = generatedFiles.Where(f => f.EndsWith(".cs") && !f.EndsWith(Path.DirectorySeparatorChar + "reference.cs", StringComparison.OrdinalIgnoreCase)).ToList();
387protected bool ValidateFiles(string outputDir, string baselineDir, string bootstrapDir, List<string> generatedFiles, List<string> baselineFiles, out string failureMessage)
468var fileLines1 = new List<string>();
469var fileLines2 = new List<string>();
470var exceptLines = new List<string>() { "<ImplicitUsings>enable</ImplicitUsings>", "<Nullable>enable</Nullable>", "<Content CopyToOutputDirectory" };
dotnet-svcutil.xmlserializer (17)
dotnet-user-jwts (30)
dotnet-user-secrets (12)
dotnet-watch (14)
DotNetWatchTasks (2)
GenerateAnalyzerNuspec (2)
GenerateDocumentationAndConfigFiles (147)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (2)
24public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg)
43public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\CompatAbstractFormattingRule.cs (6)
25public sealed override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation)
33public sealed override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation)
41public sealed override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
78public virtual void AddAnchorIndentationOperationsSlow(List<AnchorIndentationOperation> list, SyntaxNode node, ref NextAnchorIndentationOperationAction nextOperation)
84public virtual void AddIndentBlockOperationsSlow(List<IndentBlockOperation> list, SyntaxNode node, ref NextIndentBlockOperationAction nextOperation)
90public virtual void AddAlignTokensOperationsSlow(List<AlignTokensOperation> list, SyntaxNode node, ref NextAlignTokensOperationAction nextOperation)
GetDocument.Insider (12)
HelixTestTasks (5)
ILAssembler (31)
ilc (18)
ILCompiler.Build.Tasks (1)
ILCompiler.Compiler (365)
Compiler\DependencyAnalysis\CustomAttributeBasedDependencyAlgorithm.cs (8)
14using CombinedDependencyList = System.Collections.Generic.List<ILCompiler.DependencyAnalysisFramework.DependencyNodeCore<ILCompiler.DependencyAnalysis.NodeFactory>.CombinedDependencyListEntry>;
31public static void AddDependenciesDueToCustomAttributes(ref CombinedDependencyList dependencies, NodeFactory factory, EcmaMethod method)
59public static void AddDependenciesDueToCustomAttributes(ref CombinedDependencyList dependencies, NodeFactory factory, EcmaType type)
74public static void AddDependenciesDueToCustomAttributes(ref CombinedDependencyList dependencies, NodeFactory factory, EcmaField field)
80public static void AddDependenciesDueToCustomAttributes(ref CombinedDependencyList dependencies, NodeFactory factory, PropertyPseudoDesc property)
85public static void AddDependenciesDueToCustomAttributes(ref CombinedDependencyList dependencies, NodeFactory factory, EventPseudoDesc @event)
90public static void AddDependenciesDueToCustomAttributes(ref CombinedDependencyList dependencies, NodeFactory factory, EcmaAssembly assembly)
99private static void AddDependenciesDueToCustomAttributes(ref CombinedDependencyList dependencies, object condition, NodeFactory factory, EcmaModule module, CustomAttributeHandleCollection attributeHandles, TypeSystemEntity parent)
Compiler\Logging\DocumentationSignatureParser.cs (23)
45var results = new List<TypeSystemEntity>();
58var results = new List<TypeSystemEntity>();
68var results = new List<TypeSystemEntity>();
82private static bool ParseDocumentationSignature(string id, ModuleDesc module, List<TypeSystemEntity> results)
96private static void ParseSignature(string id, ref int index, ModuleDesc module, List<TypeSystemEntity> results)
137public static void ParseSignaturePart(string id, ref int index, ModuleDesc module, MemberType memberTypes, List<TypeSystemEntity> results)
198public static void GetMatchingMembers(string id, ref int index, ModuleDesc module, TypeDesc containingType, string memberName, int arity, MemberType memberTypes, List<TypeSystemEntity> results, bool acceptName = false)
279var results = new List<string>();
288private static void ParseTypeSymbol(string id, ref int index, TypeSystemEntity typeParameterContext, List<string> results)
349private static void ParseTypeParameterSymbol(string id, ref int index, TypeSystemEntity typeParameterContext, List<string> results)
394private static void ParseNamedTypeSymbol(string id, ref int index, TypeSystemEntity typeParameterContext, List<string> results)
407List<string> typeArguments = null;
492private static bool ParseTypeArguments(string id, ref int index, TypeSystemEntity typeParameterContext, List<string> typeArguments)
527private static void GetMatchingTypes(ModuleDesc module, TypeDesc declaringType, string name, int arity, List<TypeSystemEntity> results)
576private static void GetMatchingMethods(string id, ref int index, TypeDesc type, string memberName, int arity, List<TypeSystemEntity> results, bool acceptName = false)
581var parameters = new List<string>();
633private static void GetMatchingProperties(string id, ref int index, TypeDesc typeDesc, string memberName, List<TypeSystemEntity> results, bool acceptName = false)
641List<string> parameters = null;
679private static void GetMatchingFields(TypeDesc type, string memberName, List<TypeSystemEntity> results)
691private static void GetMatchingEvents(TypeDesc typeDesc, string memberName, List<TypeSystemEntity> results)
705private static bool AllParametersMatch(MethodSignature methodParameters, List<string> expectedParameters)
719private static bool AllParametersMatch(PropertySignature propertyParameters, List<string> expectedParameters)
733private static bool ParseParameterList(string id, ref int index, TypeSystemEntity typeParameterContext, List<string> parameters)
Compiler\MetadataManager.cs (24)
19using CombinedDependencyList = System.Collections.Generic.List<ILCompiler.DependencyAnalysisFramework.DependencyNodeCore<ILCompiler.DependencyAnalysis.NodeFactory>.CombinedDependencyListEntry>;
50private List<MetadataMapping<MetadataType>> _typeMappings;
51private List<MetadataMapping<FieldDesc>> _fieldMappings;
53private List<MetadataMapping<MethodDesc>> _methodMappings;
55private List<StackTraceMapping> _stackTraceMappings;
56private List<ReflectionStackTraceMapping> _reflectionStackTraceMappings;
65private readonly List<DispatchCellNode> _dispatchCells = new List<DispatchCellNode>();
88private List<(DehydratableObjectNode Node, ObjectNode.ObjectData Data)> _dehydratableData = new List<(DehydratableObjectNode Node, ObjectNode.ObjectData data)>();
593public virtual void GetConditionalDependenciesDueToEETypePresence(ref CombinedDependencyList dependencies, NodeFactory factory, TypeDesc type, bool allocated)
634public virtual void GetDependenciesDueToDelegateCreation(ref CombinedDependencyList dependencies, NodeFactory factory, TypeDesc delegateType, MethodDesc target)
643public virtual void GetDependenciesForOverridingMethod(ref CombinedDependencyList dependencies, NodeFactory factory, MethodDesc decl, MethodDesc impl)
663public virtual void GetConditionalDependenciesDueToMethodCodePresence(ref CombinedDependencyList dependencies, NodeFactory factory, MethodDesc method)
727out List<MetadataMapping<MetadataType>> typeMappings,
728out List<MetadataMapping<MethodDesc>> methodMappings,
730out List<MetadataMapping<FieldDesc>> fieldMappings,
732out List<StackTraceMapping> stackTraceMapping,
733out List<ReflectionStackTraceMapping> reflectionStackTraceMapping);
739out List<MetadataMapping<MetadataType>> typeMappings,
740out List<MetadataMapping<MethodDesc>> methodMappings,
742out List<MetadataMapping<FieldDesc>> fieldMappings,
744out List<StackTraceMapping> stackTraceMapping,
745out List<ReflectionStackTraceMapping> reflectionBasedStackTraceMapping) where TPolicy : struct, IMetadataPolicy
764var stackTraceRecords = new List<StackTraceRecordData>();
953List<MetadataRecord> genericArgs = new List<MetadataRecord>();
Compiler\UsageBasedMetadataManager.cs (18)
22using CombinedDependencyList = System.Collections.Generic.List<ILCompiler.DependencyAnalysisFramework.DependencyNodeCore<ILCompiler.DependencyAnalysis.NodeFactory>.CombinedDependencyListEntry>;
52private readonly List<TypeDesc> _typesWithForcedEEType = new List<TypeDesc>();
54private readonly List<FieldDesc> _fieldsWithMetadata = new List<FieldDesc>();
55private readonly List<MethodDesc> _methodsWithMetadata = new List<MethodDesc>();
56private readonly List<MetadataType> _typesWithMetadata = new List<MetadataType>();
57private readonly List<FieldDesc> _fieldsWithRuntimeMapping = new List<FieldDesc>();
58private readonly List<ReflectableCustomAttribute> _customAttributesWithMetadata = new List<ReflectableCustomAttribute>();
59private readonly List<ReflectableParameter> _parametersWithMetadata = new List<ReflectableParameter>();
67private readonly List<string> _satelliteAssemblyFiles;
229out List<MetadataMapping<MetadataType>> typeMappings,
230out List<MetadataMapping<MethodDesc>> methodMappings,
232out List<MetadataMapping<FieldDesc>> fieldMappings,
234out List<StackTraceMapping> stackTraceMapping,
235out List<ReflectionStackTraceMapping> reflectionStackTraceMapping)
425public override void GetConditionalDependenciesDueToEETypePresence(ref CombinedDependencyList dependencies, NodeFactory factory, TypeDesc type, bool allocated)
570public override void GetDependenciesDueToDelegateCreation(ref CombinedDependencyList dependencies, NodeFactory factory, TypeDesc delegateType, MethodDesc target)
622public override void GetDependenciesForOverridingMethod(ref CombinedDependencyList dependencies, NodeFactory factory, MethodDesc decl, MethodDesc impl)
692public override void GetConditionalDependenciesDueToMethodCodePresence(ref CombinedDependencyList dependencies, NodeFactory factory, MethodDesc method)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PEObjectWriter.cs (12)
73private Dictionary<int, List<SymbolicRelocation>> _resolvableRelocations = [];
78private readonly SortedDictionary<uint, List<ushort>> _baseRelocMap = new();
563private protected override unsafe void EmitRelocations(int sectionIndex, List<SymbolicRelocation> relocationList)
567if (!_resolvableRelocations.TryGetValue(sectionIndex, out List<SymbolicRelocation> resolvable))
582if (!_baseRelocMap.TryGetValue(pageRva, out var list))
601List<Utf8String> exports = new(_exportedSymbolNames.Count);
689List<ushort> entries = kv.Value;
830if (_resolvableRelocations.TryGetValue(i, out List<SymbolicRelocation> relocationsToResolve))
870private protected override List<(long Offset, byte[] Value)> ComputeChecksums(Stream outputFileStream, List<ChecksumsToCalculate> checksumRelocations)
872List<(long Offset, byte[] Value)> pendingWrites = base.ComputeChecksums(outputFileStream, checksumRelocations);
891private unsafe void ResolveRelocations(int sectionIndex, List<SymbolicRelocation> symbolicRelocations, long imageBase, MemoryStream stream)
ILCompiler.DependencyAnalysisFramework (30)
src\runtime\src\coreclr\tools\Common\Sorting\ListAccessor.cs (7)
8internal struct ListAccessor<T> : ISortableDataStructureAccessor<T, List<T>>
10public void Copy(List<T> source, int sourceIndex, T[] target, int destIndex, int length)
15public void Copy(T[] source, int sourceIndex, List<T> target, int destIndex, int length)
23public T GetElement(List<T> dataStructure, int i)
28public int GetLength(List<T> dataStructure)
33public void SetElement(List<T> dataStructure, int i, T value)
38public void SwapElements(List<T> dataStructure, int i, int i2)
src\runtime\src\coreclr\tools\Common\Sorting\MergeSort.cs (8)
13public static void MergeSort<T>(this List<T> listToSort, Comparison<T> comparison)
15MergeSortCore<T, List<T>, ListAccessor<T>, ComparisonWrapper<T>, RequireTotalOrderAssert>.ParallelSortApi(listToSort, new ComparisonWrapper<T>(comparison));
19public static void MergeSortAllowDuplicates<T>(this List<T> listToSort, Comparison<T> comparison)
21MergeSortCore<T, List<T>, ListAccessor<T>, ComparisonWrapper<T>, AllowDuplicates>.ParallelSortApi(listToSort, new ComparisonWrapper<T>(comparison));
25public static void MergeSort<T>(this List<T> listToSort, IComparer<T> comparer)
27MergeSortCore<T, List<T>, ListAccessor<T>, IComparer<T>, RequireTotalOrderAssert>.ParallelSortApi(listToSort, comparer);
31public static void MergeSortAllowDuplicates<T>(this List<T> listToSort, IComparer<T> comparer)
33MergeSortCore<T, List<T>, ListAccessor<T>, IComparer<T>, AllowDuplicates>.ParallelSortApi(listToSort, comparer);
ILCompiler.Diagnostics (2)
ILCompiler.MetadataTransform (122)
ILCompiler.ReadyToRun (261)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PEObjectWriter.cs (12)
73private Dictionary<int, List<SymbolicRelocation>> _resolvableRelocations = [];
78private readonly SortedDictionary<uint, List<ushort>> _baseRelocMap = new();
563private protected override unsafe void EmitRelocations(int sectionIndex, List<SymbolicRelocation> relocationList)
567if (!_resolvableRelocations.TryGetValue(sectionIndex, out List<SymbolicRelocation> resolvable))
582if (!_baseRelocMap.TryGetValue(pageRva, out var list))
601List<Utf8String> exports = new(_exportedSymbolNames.Count);
689List<ushort> entries = kv.Value;
830if (_resolvableRelocations.TryGetValue(i, out List<SymbolicRelocation> relocationsToResolve))
870private protected override List<(long Offset, byte[] Value)> ComputeChecksums(Stream outputFileStream, List<ChecksumsToCalculate> checksumRelocations)
872List<(long Offset, byte[] Value)> pendingWrites = base.ComputeChecksums(outputFileStream, checksumRelocations);
891private unsafe void ResolveRelocations(int sectionIndex, List<SymbolicRelocation> symbolicRelocations, long imageBase, MemoryStream stream)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WebCilObjectWriter.cs (16)
316List<ushort> entries = kv.Value;
378if (_resolvableRelocations.TryGetValue(index, out List<SymbolicRelocation> relocations) &&
414if (_resolvableRelocations.TryGetValue(section.SectionIndex, out List<SymbolicRelocation> relocations))
457Dictionary<int, List<SymbolicRelocation>> _resolvableRelocations = new();
458SortedDictionary<uint, List<ushort>> _baseRelocMap = new();
465private readonly List<PendingBaseReloc> _pendingBaseRelocs = new();
467private protected override void EmitRelocations(int sectionIndex, List<SymbolicRelocation> relocationList)
471if (!_resolvableRelocations.TryGetValue(sectionIndex, out List<SymbolicRelocation> resolvable))
514if (!_baseRelocMap.TryGetValue(pageRva, out List<ushort> list))
537private List<CodeBlob> ParseCodeBlobs(Stream sectionStream)
539List<CodeBlob> blobs = new();
560private void ResolveCodeRelocations(int sectionIndex, MemoryStream sectionStream, List<CodeBlob> blobs, List<SymbolicRelocation> relocs, bool shrink = false)
661List<CodeBlob> newBlobs = ParseCodeBlobs(sectionStream);
857private void ResolveRelocations(int sectionIndex, Stream sectionStream, MemoryStream dstStream, List<SymbolicRelocation> relocs, long sectionStart = 0, bool shrink = false)
874List<CodeBlob> blobs = ParseCodeBlobs(dstStream);
ILCompiler.RyuJit (43)
ILCompiler.TypeSystem (12)
illink (195)
Linker.Dataflow\DynamicallyAccessedMembersBinder.cs (5)
25var members = new List<IMetadataTokenProvider>();
86var members = new List<IMetadataTokenProvider>();
99var members = new List<IMetadataTokenProvider>();
418public static void GetAllOnType(this TypeDefinition type, LinkContext context, bool declaredOnly, List<IMetadataTokenProvider> members) => GetAllOnType(type, context, declaredOnly, members, new HashSet<TypeDefinition>());
420static void GetAllOnType(TypeDefinition type, LinkContext context, bool declaredOnly, List<IMetadataTokenProvider> members, HashSet<TypeDefinition> types)
Linker.Steps\MarkStep.cs (19)
67protected List<(TypeDefinition, MessageOrigin)> _typesWithInterfaces;
69protected List<TypeDefinition> _dynamicInterfaceCastableImplementationTypes;
70protected List<(MethodBody, MessageOrigin)> _unreachableBodies;
72readonly List<(TypeDefinition Type, MethodBody Body, Instruction Instr)> _pending_isinst_instr;
600var baseMethods = Annotations.GetBaseMethods(method);
721List<OverrideInformation>? overridingMethods = (List<OverrideInformation>?)Annotations.GetOverrides(method);
787var bases = Annotations.GetBaseMethods(method);
1630var skippedItems = new List<AttributeProviderPair>();
1695var skippedItems = new List<(AttributeProviderPair, DependencyInfo, MessageOrigin)>();
2623var ifaces = Annotations.GetRecursiveInterfaces(type);
2636protected virtual bool ShouldMarkInterfaceImplementationList(TypeDefinition type, List<InterfaceImplementation> ifaces, TypeReference ifaceType)
2697var base_list = Annotations.GetBaseMethods(method);
3104var list = Annotations.GetPreservedMethods(type);
3114var list = Annotations.GetPreservedMethods(method);
3585var ifaces = Annotations.GetRecursiveInterfaces(method.DeclaringType);
3667var base_methods = Annotations.GetBaseMethods(method);
4104void MarkInterfaceImplementationList(List<InterfaceImplementation> ifaces, MessageOrigin origin, DependencyInfo? reason = null)
4149if (Context.CompilerGeneratedState.TryGetCompilerGeneratedCalleesForUserMethod(methodIL.Method, out List<IMemberDefinition>? compilerGeneratedCallees))
Linker\DocumentationSignatureParser.cs (22)
42var results = new List<IMemberDefinition>();
55var results = new List<IMemberDefinition>();
65var results = new List<IMemberDefinition>();
79static bool ParseDocumentationSignature(string id, ModuleDefinition module, List<IMemberDefinition> results, ITryResolveMetadata resolver)
93static void ParseSignature(string id, ref int index, ModuleDefinition module, List<IMemberDefinition> results, ITryResolveMetadata resolver)
134public static void ParseSignaturePart(string id, ref int index, ModuleDefinition module, MemberType memberTypes, List<IMemberDefinition> results, ITryResolveMetadata resolver)
195public static void GetMatchingMembers(string id, ref int index, ModuleDefinition module, TypeDefinition? containingType, string memberName, int arity, MemberType memberTypes, List<IMemberDefinition> results, ITryResolveMetadata resolver, bool acceptName = false)
276var results = new List<string>();
285static void ParseTypeSymbol(string id, ref int index, IGenericParameterProvider? typeParameterContext, List<string> results)
346static void ParseTypeParameterSymbol(string id, ref int index, IGenericParameterProvider? typeParameterContext, List<string> results)
391static void ParseNamedTypeSymbol(string id, ref int index, IGenericParameterProvider? typeParameterContext, List<string> results)
404List<string>? typeArguments = null;
489static bool ParseTypeArguments(string id, ref int index, IGenericParameterProvider? typeParameterContext, List<string> typeArguments)
524static void GetMatchingTypes(ModuleDefinition module, TypeDefinition? declaringType, string name, int arity, List<IMemberDefinition> results, ITryResolveMetadata resolver)
559static void GetMatchingMethods(string id, ref int index, TypeDefinition? type, string memberName, int arity, List<IMemberDefinition> results, ITryResolveMetadata resolver, bool acceptName = false)
564var parameters = new List<string>();
618static void GetMatchingProperties(string id, ref int index, TypeDefinition? type, string memberName, List<IMemberDefinition> results, ITryResolveMetadata resolver, bool acceptName = false)
626List<string>? parameters = null;
661static void GetMatchingFields(TypeDefinition? type, string memberName, List<IMemberDefinition> results)
673static void GetMatchingEvents(TypeDefinition? type, string memberName, List<IMemberDefinition> results)
685static bool AllParametersMatch(Collection<ParameterDefinition> methodParameters, List<string> expectedParameters, ITryResolveMetadata resolver)
699static bool ParseParameterList(string id, ref int index, IGenericParameterProvider typeParameterContext, List<string> parameters)
Linker\LinkerAttributesInformation.cs (12)
16readonly List<(Type Type, List<Attribute> Attributes)>? _linkerAttributes;
18private LinkerAttributesInformation(List<(Type Type, List<Attribute> Attributes)>? cache)
23private static bool TryFindAttributeList(List<(Type Type, List<Attribute> Attributes)> list, Type type, [NotNullWhen(returnValue: true)] out List<Attribute>? foundAttributes)
41List<(Type Type, List<Attribute> Attributes)>? cache = null;
76cache ??= new List<(Type Type, List<Attribute> Attributes)>();
80if (!TryFindAttributeList(cache, attributeValueType, out var attributeList))
107if (!TryFindAttributeList(_linkerAttributes, typeof(T), out var attributeList))
Linker\TypeMapHandler.cs (18)
22readonly Dictionary<TypeDefinition, Dictionary<TypeReference, List<CustomAttributeWithOrigin>>> _unmarkedExternalTypeMapEntries = [];
25readonly Dictionary<TypeDefinition, Dictionary<TypeReference, List<CustomAttributeWithOrigin>>> _unmarkedProxyTypeMapEntries = [];
29Dictionary<TypeReference, List<CustomAttributeWithOrigin>> _pendingExternalTypeMapEntries = null!;
30Dictionary<TypeReference, List<CustomAttributeWithOrigin>> _pendingProxyTypeMapEntries = null!;
34Dictionary<TypeReference, List<(CustomAttributeWithOrigin Attr, AssemblyDefinition? TargetAssembly)>> _pendingAssemblyTargets = null!;
40Dictionary<AssemblyDefinition, List<(TypeReference Group, CustomAttributeWithOrigin Attr, MethodDefinition? CallingMethod)>> _pendingAssemblyTargetsByAssembly = null!;
76if (_pendingExternalTypeMapEntries.Remove(typeMapGroup, out List<CustomAttributeWithOrigin>? pendingEntries))
83if (_pendingAssemblyTargets.Remove(typeMapGroup, out List<(CustomAttributeWithOrigin Attr, AssemblyDefinition? TargetAssembly)>? assemblyTargets))
96if (_pendingProxyTypeMapEntries.Remove(typeMapGroup, out List<CustomAttributeWithOrigin>? pendingEntries))
103if (_pendingAssemblyTargets.Remove(typeMapGroup, out List<(CustomAttributeWithOrigin Attr, AssemblyDefinition? TargetAssembly)>? assemblyTargets))
151if (!_pendingAssemblyTargetsByAssembly.Remove(newlyMarkedAssembly, out List<(TypeReference Group, CustomAttributeWithOrigin Attr, MethodDefinition? CallingMethod)>? waiting))
166Dictionary<TypeDefinition, Dictionary<TypeReference, List<CustomAttributeWithOrigin>>> unmarkedTypeMapAttributes,
168Dictionary<TypeReference, List<CustomAttributeWithOrigin>> typeMapAttributesPendingUniverseMarking)
170if (!unmarkedTypeMapAttributes.Remove(targetType, out Dictionary<TypeReference, List<CustomAttributeWithOrigin>>? entries))
182else if (!typeMapAttributesPendingUniverseMarking.TryGetValue(typeMapGroup, out List<CustomAttributeWithOrigin>? value))
258void RecordTypeMapEntry(CustomAttributeWithOrigin attr, TypeReference group, TypeReference? dependencySource, Dictionary<TypeDefinition, Dictionary<TypeReference, List<CustomAttributeWithOrigin>>> pendingDependencySourceMarking, HashSet<TypeReference> seenTypeGroups, Dictionary<TypeReference, List<CustomAttributeWithOrigin>> pendingTypeMapGroupMarking)
295if (!pendingDependencySourceMarking.TryGetValue(dependencyTypeDef, out Dictionary<TypeReference, List<CustomAttributeWithOrigin>>? entries))
Linker\TypeMapInfo.cs (22)
46protected readonly Dictionary<MethodDefinition, List<OverrideInformation>> base_methods = new Dictionary<MethodDefinition, List<OverrideInformation>>();
47protected readonly Dictionary<MethodDefinition, List<OverrideInformation>> override_methods = new Dictionary<MethodDefinition, List<OverrideInformation>>();
48protected readonly Dictionary<MethodDefinition, List<OverrideInformation>> default_interface_implementations = new Dictionary<MethodDefinition, List<OverrideInformation>>();
69public List<OverrideInformation>? GetOverrides(MethodDefinition method)
72override_methods.TryGetValue(method, out List<OverrideInformation>? overrides);
83public List<OverrideInformation>? GetBaseMethods(MethodDefinition method)
86base_methods.TryGetValue(method, out List<OverrideInformation>? bases);
99default_interface_implementations.TryGetValue(baseMethod, out var ret);
119Dictionary<TypeDefinition, List<(TypeReference, List<InterfaceImplementation>)>> interfaces = new();
133internal List<(TypeReference InterfaceType, List<InterfaceImplementation> ImplementationChain)>? GetRecursiveInterfaces(TypeDefinition type)
136if (interfaces.TryGetValue(type, out var value))
141List<(TypeReference InterfaceType, List<InterfaceImplementation> ImplementationChain)> GetRecursiveInterfaceImplementations(TypeDefinition type)
143List<(TypeReference, List<InterfaceImplementation>)> firstImplementationChain = new();
150static void AddRecursiveInterfaces(TypeReference typeRef, IEnumerable<InterfaceImplementation> pathToType, List<(TypeReference, List<InterfaceImplementation>)> firstImplementationChain, LinkContext Context)
ILLink.CodeFixProvider (8)
ILLink.RoslynAnalyzer (12)
Infrastructure.Common (9)
Infrastructure.Tests (102)
tools\GenerateCITimeline\TimelineRenderer.cs (27)
19List<string> Labels)
28public List<JobInfo> Jobs { get; } = [];
204private static List<string> GetLabels(JsonElement job)
206var labels = new List<string>();
220private static List<JobGroup> BuildJobGroups(List<JsonElement> jobs, DateTimeOffset t0)
271private static string RenderSummaryTable(List<JobGroup> groups, double totalSeconds)
273var allJobs = groups.SelectMany(g => g.Jobs).ToList();
282var statusParts = new List<string>();
292var labelParts = runnerLabels
313private static string RenderCriticalPath(List<JobGroup> groups, double minTotalSeconds = 300)
320var filteredGroups = groups.Where(g => !IsResultsPhase(g)).ToList();
322var allJobs = filteredGroups
357private static string RenderHotspots(List<JobGroup> groups)
359var filteredGroups = groups.Where(g => !IsResultsPhase(g)).ToList();
360var allJobs = filteredGroups.SelectMany(g => g.Jobs).ToList();
366var worstJobs = filteredGroups
394private static string RenderTimelineBars(List<JobGroup> groups, double totalSeconds, double minTotalSeconds = 0)
401var phaseJobs = new Dictionary<string, List<JobInfo>>();
409if (!phaseJobs.TryGetValue(phase, out var list))
419foreach (var list in phaseJobs.Values)
430if (!phaseJobs.TryGetValue(phase, out var jobsInPhase) || jobsInPhase.Count == 0)
456public static string GenerateSummary(JsonElement runInfo, List<JsonElement> jobs, double minTotalMinutes = 0)
458var allCreated = jobs
464var allCompleted = jobs
481var actualCompleted = jobs
510var groups = BuildJobGroups(jobs, t0);
installer.tasks (2)
Keycloak.Web (1)
Microsoft.Agents.AI.ProjectTemplates.Tests (1)
Microsoft.Analyzers.Extra (28)
Microsoft.Analyzers.Extra.Tests (10)
Microsoft.Analyzers.Local (28)
CallAnalyzer.State.cs (6)
16public readonly Dictionary<IMethodSymbol, List<Action<OperationAnalysisContext, IInvocationOperation>>> Methods = new(SymbolEqualityComparer.Default);
17public readonly Dictionary<IMethodSymbol, List<Action<OperationAnalysisContext, IObjectCreationOperation>>> Ctors = new(SymbolEqualityComparer.Default);
18public readonly Dictionary<IPropertySymbol, List<Action<OperationAnalysisContext, IPropertyReferenceOperation>>> Props = new(SymbolEqualityComparer.Default);
19public readonly Dictionary<ITypeSymbol, List<Action<OperationAnalysisContext, IThrowOperation>>> ExceptionTypes = new(SymbolEqualityComparer.Default);
20public readonly Dictionary<ITypeSymbol, List<MethodHandlers>> Interfaces = new(SymbolEqualityComparer.Default);
32public List<Action<OperationAnalysisContext, IInvocationOperation>> Actions { get; } = [];
Microsoft.Analyzers.Local.Tests (10)
Microsoft.AspNetCore (7)
Microsoft.AspNetCore.Analyzers (6)
Microsoft.AspNetCore.Antiforgery (8)
Microsoft.AspNetCore.App.Analyzers (20)
Infrastructure\VirtualChars\CSharpVirtualCharService.cs (7)
267var charResults = new List<(char ch, TextSpan span)>();
304string tokenText, int offset, int startIndexInclusive, int endIndexExclusive, List<(char ch, TextSpan span)> charResults)
314private static void ConvertCharactersToRunes(List<(char ch, TextSpan span)> charResults, ImmutableList<VirtualChar>.Builder runeResults)
348List<(char ch, TextSpan span)> result, string tokenText, int offset, int index)
361List<(char ch, TextSpan span)> result, string tokenText, int offset, int index)
394List<(char ch, TextSpan span)> result, string tokenText, int offset, int index)
413List<(char ch, TextSpan span)> result, string tokenText, int offset, int index, char character)
Microsoft.AspNetCore.Authentication.Abstractions (2)
Microsoft.AspNetCore.Authentication.Certificate (2)
Microsoft.AspNetCore.Authentication.Cookies (4)
Microsoft.AspNetCore.Authentication.Core (1)
Microsoft.AspNetCore.Authentication.DeviceBoundSessions (50)
_generated\3\DeviceBoundSessionJsonContext.SessionInstruction.g.cs (8)
138var info4 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionCredential>>
153AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionInstruction).GetProperty("Credentials", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionCredential>), global::System.Array.Empty<global::System.Type>(), null),
156properties[4] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionCredential>>(options, info4);
158var info5 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<string>>
173AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionInstruction).GetProperty("AllowedRefreshInitiators", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<string>), global::System.Array.Empty<global::System.Type>(), null),
176properties[5] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<string>>(options, info5);
212global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionCredential> __value_Credentials = ((global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionInstruction)value).Credentials;
218global::System.Collections.Generic.List<string> __value_AllowedRefreshInitiators = ((global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionInstruction)value).AllowedRefreshInitiators;
Microsoft.AspNetCore.Authentication.JwtBearer (6)
Microsoft.AspNetCore.Authentication.Negotiate (1)
Microsoft.AspNetCore.Authentication.OAuth (2)
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
Microsoft.AspNetCore.Authentication.Twitter (15)
Microsoft.AspNetCore.Authentication.WsFederation (1)
Microsoft.AspNetCore.Authorization (4)
Microsoft.AspNetCore.Components (81)
Microsoft.AspNetCore.Components.AI (23)
Microsoft.AspNetCore.Components.AI.SourceGenerators (9)
Microsoft.AspNetCore.Components.Analyzers (9)
Microsoft.AspNetCore.Components.Authorization (1)
Microsoft.AspNetCore.Components.Endpoints (102)
FormMapping\Factories\Collections\TypedCollectionConverterFactory.cs (5)
190CreateConverter<IReadOnlyList<TElement>, List<TElement>>(elementTypeConverter),
192CreateConverter<IReadOnlyCollection<TElement>, List<TElement>>(elementTypeConverter),
196CreateConverter<IList<TElement>, List<TElement>>(elementTypeConverter),
198CreateConverter<ICollection<TElement>, List<TElement>>(elementTypeConverter),
202CreateConverter<IEnumerable<TElement>, List<TElement>>(elementTypeConverter),
FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (20)
33var parameters = new List<ParameterExpression>() { readerParam, typeParam, optionsParam, resultParam, foundValueParam };
40var variables = new List<ParameterExpression>() { propertyFoundValue, succeeded, localFoundValueVar, exceptionVar };
42var propertyValueLocals = new List<ParameterExpression>();
43var constructorParameterValueLocals = new List<ParameterExpression>();
45var body = new List<Expression>()
112List<ParameterExpression> constructorParameterValueLocals,
114List<ParameterExpression> propsLocals,
115List<ParameterExpression> variables,
190var assignments = new List<Expression>();
226List<ParameterExpression> constructorParameters,
228List<ParameterExpression> properties,
329List<ParameterExpression> variables,
330List<ParameterExpression> propertyValueLocals,
331List<Expression> body)
428List<ParameterExpression> variables,
429List<ParameterExpression> constructorParameterValueLocals,
430List<Expression> body)
560List<ParameterExpression> parameters,
561List<ParameterExpression> variables,
562List<Expression> body)
src\aspnetcore\src\Components\Shared\src\RenderFragmentSerializer.cs (11)
21internal static List<RenderTreeNode> SerializeFrames(
26var result = new List<RenderTreeNode>();
40List<RenderTreeNode> target,
232internal static RenderFragment Deserialize(List<RenderTreeNode> nodes, JsonSerializerOptions jsonOptions, ComponentParametersTypeCache typeCache)
263private static void DeserializeNodes(RenderTreeBuilder builder, List<RenderTreeNode> nodes, JsonSerializerOptions? jsonOptions, ComponentParametersTypeCache typeCache)
324private static void DeserializeAttributes(RenderTreeBuilder builder, List<RenderTreeAttribute>? attributes, JsonSerializerOptions? jsonOptions, ComponentParametersTypeCache typeCache)
340private static void DeserializeComponentParameters(RenderTreeBuilder builder, List<RenderTreeAttribute>? parameters, JsonSerializerOptions? jsonOptions, ComponentParametersTypeCache typeCache)
415public List<RenderTreeNode> Nodes { get; init; } = [];
431public List<RenderTreeAttribute>? Attributes { get; set; }
452public List<RenderTreeAttribute>? ComponentParameters { get; set; }
455public List<RenderTreeNode>? Children { get; set; }
Microsoft.AspNetCore.Components.Forms (11)
Microsoft.AspNetCore.Components.QuickGrid (6)
Microsoft.AspNetCore.Components.SdkAnalyzers (2)
Microsoft.AspNetCore.Components.Server (25)
src\aspnetcore\src\Components\Shared\src\RenderFragmentSerializer.cs (11)
21internal static List<RenderTreeNode> SerializeFrames(
26var result = new List<RenderTreeNode>();
40List<RenderTreeNode> target,
232internal static RenderFragment Deserialize(List<RenderTreeNode> nodes, JsonSerializerOptions jsonOptions, ComponentParametersTypeCache typeCache)
263private static void DeserializeNodes(RenderTreeBuilder builder, List<RenderTreeNode> nodes, JsonSerializerOptions? jsonOptions, ComponentParametersTypeCache typeCache)
324private static void DeserializeAttributes(RenderTreeBuilder builder, List<RenderTreeAttribute>? attributes, JsonSerializerOptions? jsonOptions, ComponentParametersTypeCache typeCache)
340private static void DeserializeComponentParameters(RenderTreeBuilder builder, List<RenderTreeAttribute>? parameters, JsonSerializerOptions? jsonOptions, ComponentParametersTypeCache typeCache)
415public List<RenderTreeNode> Nodes { get; init; } = [];
431public List<RenderTreeAttribute>? Attributes { get; set; }
452public List<RenderTreeAttribute>? ComponentParameters { get; set; }
455public List<RenderTreeNode>? Children { get; set; }
Microsoft.AspNetCore.Components.Testing (7)
Microsoft.AspNetCore.Components.Testing.Generators (3)
Microsoft.AspNetCore.Components.Web (33)
_generated\7\WebRendererSerializerContext.DictionaryStringListString.g.cs (13)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.List<string>>>? _DictionaryStringListString;
19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.List<string>>> DictionaryStringListString
22get => _DictionaryStringListString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.List<string>>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.List<string>>));
25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.List<string>>> Create_DictionaryStringListString(global::System.Text.Json.JsonSerializerOptions options)
27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.List<string>>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.List<string>>> jsonTypeInfo))
29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.List<string>>>
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.List<string>>(),
37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.List<string>>, string, global::System.Collections.Generic.List<string>>(options, info);
47private void DictionaryStringListStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.List<string>>? value)
57foreach (global::System.Collections.Generic.KeyValuePair<string, global::System.Collections.Generic.List<string>> entry in value)
Microsoft.AspNetCore.Components.WebAssembly (24)
src\aspnetcore\src\Components\Shared\src\RenderFragmentSerializer.cs (11)
21internal static List<RenderTreeNode> SerializeFrames(
26var result = new List<RenderTreeNode>();
40List<RenderTreeNode> target,
232internal static RenderFragment Deserialize(List<RenderTreeNode> nodes, JsonSerializerOptions jsonOptions, ComponentParametersTypeCache typeCache)
263private static void DeserializeNodes(RenderTreeBuilder builder, List<RenderTreeNode> nodes, JsonSerializerOptions? jsonOptions, ComponentParametersTypeCache typeCache)
324private static void DeserializeAttributes(RenderTreeBuilder builder, List<RenderTreeAttribute>? attributes, JsonSerializerOptions? jsonOptions, ComponentParametersTypeCache typeCache)
340private static void DeserializeComponentParameters(RenderTreeBuilder builder, List<RenderTreeAttribute>? parameters, JsonSerializerOptions? jsonOptions, ComponentParametersTypeCache typeCache)
415public List<RenderTreeNode> Nodes { get; init; } = [];
431public List<RenderTreeAttribute>? Attributes { get; set; }
452public List<RenderTreeAttribute>? ComponentParameters { get; set; }
455public List<RenderTreeNode>? Children { get; set; }
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
Microsoft.AspNetCore.Components.WebView (3)
Microsoft.AspNetCore.Connections.Abstractions (1)
Microsoft.AspNetCore.CookiePolicy (1)
Microsoft.AspNetCore.DataProtection (16)
Microsoft.AspNetCore.DataProtection.MicroBenchmarks (1)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (20)
Microsoft.AspNetCore.Diagnostics (9)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (3)
Microsoft.AspNetCore.Diagnostics.HealthChecks (1)
Microsoft.AspNetCore.Diagnostics.Middleware (13)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
322List<string>? temp = null;
Microsoft.AspNetCore.Diagnostics.Middleware.PerformanceTests (12)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (16)
Microsoft.AspNetCore.Grpc.JsonTranscoding (46)
src\aspnetcore\src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (10)
66public static bool TryResolveDescriptors(MessageDescriptor messageDescriptor, IList<string> path, bool allowJsonName, [NotNullWhen(true)]out List<FieldDescriptor>? fieldDescriptors)
224public static void RecursiveSetValue(IMessage currentValue, List<FieldDescriptor> pathDescriptors, object? values)
388List<HttpRouteVariable> variables,
394var path = variable.FieldPath;
395if (!TryResolveDescriptors(messageDescriptor, path, allowJsonName: false, out var fieldDescriptors))
480var existingParameters = new List<FieldDescriptor>();
508static void RecursiveVisitMessages(Dictionary<string, FieldDescriptor> queryParameters, List<FieldDescriptor> existingParameters, MessageDescriptor messageDescriptor, List<FieldDescriptor> path)
671public List<FieldDescriptor> DescriptorsPath { get; }
678List<FieldDescriptor> descriptorsPath,
Microsoft.AspNetCore.HeaderParsing (4)
Microsoft.AspNetCore.HostFiltering (2)
Microsoft.AspNetCore.Hosting (15)
Internal\HostingMetrics.cs (1)
45public void RequestEnd(string protocol, string scheme, string method, string? route, int statusCode, bool unhandledRequest, Exception? exception, List<KeyValuePair<string, object?>>? customTags, long startTimestamp, long currentTimestamp, bool disableHttpRequestDurationMetric)
Microsoft.AspNetCore.Http (9)
Microsoft.AspNetCore.Http.Abstractions (7)
Microsoft.AspNetCore.Http.Connections (9)
Microsoft.AspNetCore.Http.Connections.Client (1)
Microsoft.AspNetCore.Http.Connections.Common (1)
Microsoft.AspNetCore.Http.Extensions (40)
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Factories\Collections\TypedCollectionConverterFactory.cs (5)
190CreateConverter<IReadOnlyList<TElement>, List<TElement>>(elementTypeConverter),
192CreateConverter<IReadOnlyCollection<TElement>, List<TElement>>(elementTypeConverter),
196CreateConverter<IList<TElement>, List<TElement>>(elementTypeConverter),
198CreateConverter<ICollection<TElement>, List<TElement>>(elementTypeConverter),
202CreateConverter<IEnumerable<TElement>, List<TElement>>(elementTypeConverter),
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (20)
33var parameters = new List<ParameterExpression>() { readerParam, typeParam, optionsParam, resultParam, foundValueParam };
40var variables = new List<ParameterExpression>() { propertyFoundValue, succeeded, localFoundValueVar, exceptionVar };
42var propertyValueLocals = new List<ParameterExpression>();
43var constructorParameterValueLocals = new List<ParameterExpression>();
45var body = new List<Expression>()
112List<ParameterExpression> constructorParameterValueLocals,
114List<ParameterExpression> propsLocals,
115List<ParameterExpression> variables,
190var assignments = new List<Expression>();
226List<ParameterExpression> constructorParameters,
228List<ParameterExpression> properties,
329List<ParameterExpression> variables,
330List<ParameterExpression> propertyValueLocals,
331List<Expression> body)
428List<ParameterExpression> variables,
429List<ParameterExpression> constructorParameterValueLocals,
430List<Expression> body)
560List<ParameterExpression> parameters,
561List<ParameterExpression> variables,
562List<Expression> body)
Microsoft.AspNetCore.Http.Features (1)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (6)
Microsoft.AspNetCore.HttpLogging (10)
Microsoft.AspNetCore.HttpOverrides (3)
Microsoft.AspNetCore.Identity (1)
Microsoft.AspNetCore.Identity.EntityFrameworkCore (7)
Microsoft.AspNetCore.Identity.UI (1)
Microsoft.AspNetCore.InternalTesting (3)
Microsoft.AspNetCore.JsonPatch (12)
Microsoft.AspNetCore.JsonPatch.SystemTextJson (12)
Microsoft.AspNetCore.Localization (3)
Microsoft.AspNetCore.Mvc.Abstractions (3)
Microsoft.AspNetCore.Mvc.ApiExplorer (13)
Microsoft.AspNetCore.Mvc.Core (155)
ApplicationModels\ApplicationModelFactory.cs (19)
54public static List<TResult> Flatten<TResult>(
58var results = new List<TResult>();
60var actionsByMethod = new Dictionary<MethodInfo, List<(ActionModel, SelectorModel)>>();
61var actionsByRouteName = new Dictionary<string, List<(ActionModel, SelectorModel)>>(StringComparer.OrdinalIgnoreCase);
63var routeTemplateErrors = new List<string>();
102var namedRoutedErrors = ValidateNamedAttributeRoutedActions(actionsByRouteName);
122List<string> errors)
174Dictionary<MethodInfo, List<(ActionModel, SelectorModel)>> actionsByMethod,
178if (!actionsByMethod.TryGetValue(action.ActionMethod, out var actions))
188Dictionary<string, List<(ActionModel action, SelectorModel selector)>> actionsByRouteName,
198if (!actionsByRouteName.TryGetValue(routeName, out var actions))
207private static List<string> AddErrorNumbers(IEnumerable<string> namedRoutedErrors)
218private static List<string> ValidateNamedAttributeRoutedActions(
219Dictionary<string, List<(ActionModel action, SelectorModel selector)>> actionsByRouteName)
221var namedRouteErrors = new List<string>();
257List<(ActionModel action, SelectorModel selector)> actions,
292List<(ActionModel action, SelectorModel selector)> actions)
297var actionDescriptions = new List<string>(actions.Count);
339var errorMessages = AddErrorNumbers(individualErrors);
Microsoft.AspNetCore.Mvc.DataAnnotations (3)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
Microsoft.AspNetCore.Mvc.Razor (3)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (4)
Microsoft.AspNetCore.Mvc.RazorPages (16)
Microsoft.AspNetCore.Mvc.TagHelpers (8)
Microsoft.AspNetCore.Mvc.Testing (4)
Microsoft.AspNetCore.Mvc.ViewFeatures (29)
Microsoft.AspNetCore.OpenApi (26)
Microsoft.AspNetCore.OpenApi.SourceGenerators (16)
XmlCommentGenerator.Parser.cs (6)
44internal static List<(string, string)> ParseXmlFile(AdditionalText additionalText, CancellationToken cancellationToken)
61var comments = new List<(string, string)>();
73internal static List<(string, string)> ParseCompilation(Compilation compilation, CancellationToken cancellationToken)
78var comments = new List<(string, string)>();
114(List<(string, string)> RawComments, Compilation Compilation) input,
118var comments = new List<(string, XmlComment?)>();
Microsoft.AspNetCore.OutputCaching (5)
Microsoft.AspNetCore.RateLimiting (1)
Microsoft.AspNetCore.Razor (4)
Microsoft.AspNetCore.Razor.Runtime (5)
Microsoft.AspNetCore.Razor.Utilities.Shared (25)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\ReadOnlyListExtensions.cs (1)
1175case List<T> listOfT:
Microsoft.AspNetCore.ResponseCaching (4)
Microsoft.AspNetCore.Rewrite (7)
Microsoft.AspNetCore.Routing (137)
Matching\DfaMatcherBuilder.cs (27)
18private readonly List<RouteEndpoint> _endpoints = new List<RouteEndpoint>();
29private readonly List<KeyValuePair<string, object>> _slots;
30private readonly List<(string parameterName, int segmentIndex, int slotIndex)> _captures;
31private readonly List<(RoutePatternPathSegment pathSegment, int segmentIndex)> _complexSegments;
32private readonly List<KeyValuePair<string, IRouteConstraint>> _constraints;
72var work = new List<DfaBuilderWorkerWorkItem>(_endpoints.Count);
163private List<DfaBuilderWorkerWorkItem> _previousWork;
164private List<DfaBuilderWorkerWorkItem> _work;
171List<DfaBuilderWorkerWorkItem> work,
192var nextWork = _previousWork;
212List<DfaNode> nextParents;
253List<DfaNode> parents,
254List<DfaNode> nextParents,
372private void AddParentsMatchingComplexSegment(RouteEndpoint endpoint, List<DfaNode> nextParents, RoutePatternPathSegment segment, DfaNode parent, RoutePatternParameterPart parameterPart)
425private void AddParentsWithMatchingLiteralConstraints(List<DfaNode> nextParents, DfaNode parent, RoutePatternParameterPart parameterPart, IReadOnlyList<RoutePatternParameterPolicyReference> parameterPolicyReferences)
473private void AddRequiredLiteralValue(RouteEndpoint endpoint, List<DfaNode> nextParents, DfaNode parent, RoutePatternParameterPart parameterPart, object requiredValue)
495private static void AddLiteralNode(bool includeLabel, List<DfaNode> nextParents, DfaNode parent, string literal)
649List<IEndpointSelectorPolicy> endpointSelectorPolicies = null;
889var work = new List<DfaNode>() { node, };
890List<DfaNode> previousWork = null;
896List<DfaNode> nextWork;
955var nodeBuilderPolicies = new List<INodeBuilderPolicy>();
956var endpointComparerPolicies = new List<IEndpointComparerPolicy>();
957var endpointSelectorPolicies = new List<IEndpointSelectorPolicy>();
996public List<DfaNode> Parents { get; }
998public DfaBuilderWorkerWorkItem(RouteEndpoint endpoint, int precedenceDigit, List<DfaNode> parents)
1005public void Deconstruct(out RouteEndpoint endpoint, out int precedenceDigit, out List<DfaNode> parents)
Microsoft.AspNetCore.Routing.Abstractions (7)
Microsoft.AspNetCore.Server.HttpSys (7)
Microsoft.AspNetCore.Server.IIS (8)
Microsoft.AspNetCore.Server.IntegrationTesting (6)
Microsoft.AspNetCore.Server.Kestrel.Core (71)
Internal\Infrastructure\KestrelMetrics.cs (2)
112public void ConnectionStop(ConnectionMetricsContext metricsContext, Exception? exception, List<KeyValuePair<string, object?>>? customTags, long startTimestamp, long currentTimestamp)
121private void ConnectionStopCore(ConnectionMetricsContext metricsContext, Exception? exception, List<KeyValuePair<string, object?>>? customTags, long startTimestamp, long currentTimestamp)
Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls (4)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (5)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (2)
Microsoft.AspNetCore.SignalR.Client.Core (7)
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (7)
Microsoft.AspNetCore.SignalR.Common (3)
Microsoft.AspNetCore.SignalR.Core (16)
DefaultHubLifetimeManager.cs (5)
101List<Task>? tasks = null;
147private static void SendToGroupConnections(string methodName, object?[] args, ConcurrentDictionary<string, HubConnectionContext> connections, Func<HubConnectionContext, object?, bool>? include, object? state, ref List<Task>? tasks, ref SerializedHubMessage? message, CancellationToken cancellationToken)
211List<Task>? tasks = null;
228List<Task>? tasks = null;
261List<Task>? tasks = null;
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (4)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (4)
Microsoft.AspNetCore.SignalR.Specification.Tests (6)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (13)
Microsoft.AspNetCore.StaticAssets (37)
Microsoft.AspNetCore.Watch.BrowserRefresh (1)
Microsoft.AspNetCore.WebSockets (1)
Microsoft.AspNetCore.WebUtilities (4)
Microsoft.Build (766)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (14)
54List<string> parameterValues = null;
57List<ItemBucket> buckets = null;
87var keepMetadataEvaluated = bucket.Expander.ExpandIntoStringListLeaveEscaped(child.KeepMetadata, ExpanderOptions.ExpandAll, child.KeepMetadataLocation).ToList();
96var removeMetadataEvaluated = bucket.Expander.ExpandIntoStringListLeaveEscaped(child.RemoveMetadata, ExpanderOptions.ExpandAll, child.RemoveMetadataLocation).ToList();
105var matchOnMetadataEvaluated = bucket.Expander.ExpandIntoStringListLeaveEscaped(child.MatchOnMetadata, ExpanderOptions.ExpandAll, child.MatchOnMetadataLocation).ToList();
170List<ProjectItemInstance> itemsToAdd = ExpandItemIntoItems(child, bucket.Expander, keepMetadata, removeMetadata, loggingContext);
261List<ProjectItemInstance> itemsToRemove;
356private void GetBatchableValuesFromBuildItemGroupChild(List<string> parameterValues, ProjectItemGroupTaskItemInstance child)
391private List<ProjectItemInstance> ExpandItemIntoItems(
400List<ProjectItemInstance> items = new List<ProjectItemInstance>();
492List<string> metadataToRemove = null;
586private List<ProjectItemInstance> FindItemsMatchingSpecification(
636List<ProjectItemInstance> itemsRemoved = new List<ProjectItemInstance>();
654private List<ProjectItemInstance> FindItemsMatchingMetadataSpecification(
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (22)
164out List<string> targetOutputItemSpecs);
165List<string> itemVectorsReferencedOnlyInTargetOutputs = null;
183out List<string> itemVectorsReferencedInBothTargetInputsAndOutputs,
184out List<string> itemVectorsReferencedOnlyInTargetInputs,
409out List<string> targetOutputItemSpecs)
520List<string> itemVectorsReferencedOnlyInTargetInputs,
521List<string> targetOutputItemSpecs)
528List<string> discreteTargetInputItemSpecs = GetItemSpecsFromItemVectors(itemVectorTransformsInTargetInputs);
550List<string> inputs = CollectionHelpers.RemoveNulls<string>(discreteTargetInputItemSpecs);
551List<string> outputs = CollectionHelpers.RemoveNulls<string>(targetOutputItemSpecs);
592List<string> itemVectorsReferencedInBothTargetInputsAndOutputs,
621List<ProjectItemInstance> upToDateInputItems = new List<ProjectItemInstance>(inputItems);
739List<string> targetOutputItemSpecs)
741List<string> targetInputItemSpecs = GetItemSpecsFromItemVectors(itemVectorsInTargetInputs);
745List<string> inputs = CollectionHelpers.RemoveNulls<string>(targetInputItemSpecs);
746List<string> outputs = CollectionHelpers.RemoveNulls<string>(targetOutputItemSpecs);
878private static List<string> GetItemSpecsFromItemVectors(ItemVectorPartitionCollection itemVectors)
880List<string> itemSpecs = new();
922private static void DiffHashtables<K, V>(IDictionary<K, V> h1, IDictionary<K, V> h2, out List<K> commonKeys, out List<K> uniqueKeysInH1, out List<K> uniqueKeysInH2) where K : class, IEquatable<K> where V : class
1244private readonly List<DependencyAnalysisLogDetail> _dependencyAnalysisDetail = new List<DependencyAnalysisLogDetail>();
BackEnd\Components\Scheduler\Scheduler.cs (34)
284internal delegate void AssignUnscheduledRequestsDelegate(List<ScheduleResponse> responses, HashSet<int> idleNodes);
351List<ScheduleResponse> responses = new List<ScheduleResponse>();
424List<ScheduleResponse> responses = new List<ScheduleResponse>();
569List<ScheduleResponse> responses = new List<ScheduleResponse>();
669public List<ScheduleResponse> ReleaseCores(int requestId, int coresToRelease)
674List<ScheduleResponse> responses = new List<ScheduleResponse>();
735private void ScheduleUnassignedRequests(List<ScheduleResponse> responses)
854private void AssignUnscheduledRequestsToNodes(List<ScheduleResponse> responses, HashSet<int> idleNodes)
980private void AssignUnscheduledRequestsWithPlanByMostImmediateReferences(List<ScheduleResponse> responses, HashSet<int> idleNodes)
988private void AssignUnscheduledRequestsWithPlanByGreatestPlanTime(List<ScheduleResponse> responses, HashSet<int> idleNodes)
993private void AssignUnscheduledRequestsWithPlan(List<ScheduleResponse> responses, HashSet<int> idleNodes, Func<SchedulingPlan.PlanConfigData, SchedulingPlan.PlanConfigData, bool> comparisonFunction)
1036private void AssignUnscheduledRequestsByTraversalsFirst(List<ScheduleResponse> responses, HashSet<int> idleNodes)
1045private void AssignUnscheduledProxyBuildRequestsToInProcNode(List<ScheduleResponse> responses, HashSet<int> idleNodes)
1050private void AssignUnscheduledRequestsToInProcNode(List<ScheduleResponse> responses, HashSet<int> idleNodes, Func<SchedulableRequest, bool> shouldBeScheduled)
1089private void AssignUnscheduledRequestsWithConfigurationCountLevelling(List<ScheduleResponse> responses, HashSet<int> idleNodes)
1128private void AssignUnscheduledRequestsWithSmallestFileSize(List<ScheduleResponse> responses, HashSet<int> idleNodes)
1170private void AssignUnscheduledRequestsWithLargestFileSize(List<ScheduleResponse> responses, HashSet<int> idleNodes)
1212private void AssignUnscheduledRequestsWithMaxWaitingRequests(List<ScheduleResponse> responses, HashSet<int> idleNodes)
1289private void AssignUnscheduledRequestsWithMaxWaitingRequests2(List<ScheduleResponse> responses, HashSet<int> idleNodes)
1317private void AssignUnscheduledRequestsFIFO(List<ScheduleResponse> responses, HashSet<int> idleNodes)
1349private void AssignUnscheduledRequestsUsingCustomSchedulerForSQL(List<ScheduleResponse> responses, HashSet<int> idleNodes)
1373List<int> nodesByConfigurationCountAscending = new List<int>(_availableNodes.Keys);
1422private void AssignUnscheduledRequestToNode(SchedulableRequest request, int nodeId, List<ScheduleResponse> responses)
1539private bool CreateNewNodeIfPossible(List<ScheduleResponse> responses, IEnumerable<SchedulableRequest> requests)
1725private void HandleRequestBlockedOnResultsTransfer(SchedulableRequest parentRequest, List<ScheduleResponse> responses)
1753private void HandleRequestBlockedByNewRequests(SchedulableRequest parentRequest, BuildRequestBlocker blocker, List<ScheduleResponse> responses)
1891private void ResumeReadyRequestIfAny(int nodeId, List<ScheduleResponse> responses)
1912private void ResolveRequestFromCacheAndResumeIfPossible(SchedulableRequest request, List<ScheduleResponse> responses)
1980private void ResumeRequiredWork(List<ScheduleResponse> responses)
2034private bool CheckIfCacheMissOnReferencedProjectIsAllowedAndErrorIfNot(int nodeForResults, BuildRequest request, List<ScheduleResponse> responses, bool emitNonErrorLogs)
2354private bool TargetsMatch(HashSet<string> firstTargetsSet, List<string> secondTargetsList)
2648List<SchedulableRequest> childRequests = new List<SchedulableRequest>(_schedulingData.GetRequestsByHierarchy(request));
2782List<SchedulableRequest> scheduledRequestsByNode = new List<SchedulableRequest>(_schedulingData.GetScheduledRequestsByNode(nodeId));
2881List<int> configurations = new List<int>(_schedulingData.Configurations);
BackEnd\Components\SdkResolution\SdkResolverLoader.cs (7)
40var resolvers = !string.Equals(IncludeDefaultResolver, "false", StringComparison.OrdinalIgnoreCase) ?
62var resolvers = !string.Equals(IncludeDefaultResolver, "false", StringComparison.OrdinalIgnoreCase) ?
120List<SdkResolverManifest> manifestsList = new List<SdkResolverManifest>();
189private bool TryAddAssemblyManifestFromXml(string pathToManifest, string manifestFolder, List<SdkResolverManifest> manifestsList, ElementLocation location)
226private bool TryAddAssemblyManifestFromDll(string assemblyPath, List<SdkResolverManifest> manifestsList)
297var resolvers = new List<SdkResolver>();
310protected virtual void LoadResolvers(string resolverPath, ElementLocation location, List<SdkResolver> resolvers)
Collections\ItemDictionarySlim.cs (14)
14internal sealed class ItemDictionarySlim : IEnumerable<KeyValuePair<string, List<ProjectItemInstance>>>
16private readonly Dictionary<string, List<ProjectItemInstance>> _itemLists;
19_itemLists = new Dictionary<string, List<ProjectItemInstance>>(MSBuildNameIgnoreCaseComparer.Default);
24public List<ProjectItemInstance>? this[string itemType] =>
25_itemLists.TryGetValue(itemType, out List<ProjectItemInstance>? itemsOfType) ? itemsOfType : null;
37if (!_itemLists.TryGetValue(projectItem.ItemType, out List<ProjectItemInstance>? list))
55foreach (KeyValuePair<string, List<ProjectItemInstance>> kvp in other._itemLists)
58List<ProjectItemInstance> itemsToAdd = kvp.Value;
60if (_itemLists.TryGetValue(itemType, out List<ProjectItemInstance>? list))
78if (!_itemLists.TryGetValue(itemType, out List<ProjectItemInstance>? list))
95if (!_itemLists.TryGetValue(itemType, out List<ProjectItemInstance>? list))
107public Dictionary<string, List<ProjectItemInstance>>.Enumerator GetEnumerator() => _itemLists.GetEnumerator();
109IEnumerator<KeyValuePair<string, List<ProjectItemInstance>>> IEnumerable<KeyValuePair<string, List<ProjectItemInstance>>>.GetEnumerator() => GetEnumerator();
Definition\Project.cs (43)
665public IDictionary<string, List<string>> ConditionedProperties => implementation.ConditionedProperties;
932public List<GlobResult> GetAllGlobs()
944public List<GlobResult> GetAllGlobs(EvaluationContext evaluationContext)
953public List<GlobResult> GetAllGlobs(string itemType)
966public List<GlobResult> GetAllGlobs(string itemType, EvaluationContext evaluationContext)
1015public List<ProvenanceResult> GetItemProvenance(string itemToMatch)
1028public List<ProvenanceResult> GetItemProvenance(string itemToMatch, EvaluationContext evaluationContext)
1038public List<ProvenanceResult> GetItemProvenance(string itemToMatch, string itemType)
1052public List<ProvenanceResult> GetItemProvenance(string itemToMatch, string itemType, EvaluationContext evaluationContext)
1065public List<ProvenanceResult> GetItemProvenance(ProjectItem item)
1082public List<ProvenanceResult> GetItemProvenance(ProjectItem item, EvaluationContext evaluationContext)
1515var loggers = new List<ILogger>(1) { logger };
1702var relevantItems = new List<ProjectItem>();
2217public override IDictionary<string, List<string>> ConditionedProperties
2224return ReadOnlyEmptyDictionary<string, List<string>>.Instance;
2227return new ObjectModel.ReadOnlyDictionary<string, List<string>>(_data.ConditionedProperties);
2291var imports = new List<ResolvedImport>(_data.ImportClosure.Count - 1 /* outer project */);
2314var imports = new List<ResolvedImport>(_data.ImportClosureWithDuplicates.Count - 1 /* outer project */);
2532public override List<GlobResult> GetAllGlobs(EvaluationContext evaluationContext)
2545public override List<GlobResult> GetAllGlobs(string itemType, EvaluationContext evaluationContext)
2555private List<GlobResult> GetAllGlobs(List<ProjectItemElement> projectItemElements)
2568public override List<ProvenanceResult> GetItemProvenance(string itemToMatch, EvaluationContext evaluationContext)
2582public override List<ProvenanceResult> GetItemProvenance(string itemToMatch, string itemType, EvaluationContext evaluationContext)
2599public override List<ProvenanceResult> GetItemProvenance(ProjectItem item, EvaluationContext evaluationContext)
2619private List<ProjectItemElement> GetEvaluatedItemElements(EvaluationContext evaluationContext)
2630private static IEnumerable<ProjectItemElement> GetItemElementsThatMightAffectItem(List<ProjectItemElement> evaluatedItemElements, ProjectItem item)
2649private static List<ProjectItemElement> GetItemElementsByType(IEnumerable<ProjectItemElement> itemElements, string itemType)
2654private List<ProvenanceResult> GetItemProvenance(string itemToMatch, IEnumerable<ProjectItemElement> projectItemElements)
3123var itemsList = new List<ProjectItem>(items);
3281var relevantItems = new List<ProjectItem>();
3409List<ProjectItem> items = Evaluator<ProjectProperty, ProjectItem, ProjectMetadata, ProjectItemDefinition>.CreateItemsFromInclude(
3472private List<ProjectItem> AddItemHelper(ProjectItemElement itemElement, string unevaluatedInclude, IEnumerable<KeyValuePair<string, string>> metadata)
3476List<ProjectItem> items = Evaluator<ProjectProperty, ProjectItem, ProjectMetadata, ProjectItemDefinition>.CreateItemsFromInclude(
3936public List<string> DefaultTargets { get; set; }
3960public List<string> InitialTargets { get; set; }
3965public IDictionary<string, List<TargetSpecification>> BeforeTargets { get; set; }
3970public IDictionary<string, List<TargetSpecification>> AfterTargets { get; set; }
4004public List<ProjectItemElement> EvaluatedItemElements { get; private set; }
4037public Dictionary<string, List<string>> ConditionedProperties { get; private set; }
4120internal List<ResolvedImport> ImportClosure { get; private set; }
4126internal List<ResolvedImport> ImportClosureWithDuplicates { get; private set; }
4153ConditionedProperties = new Dictionary<string, List<string>>(MSBuildNameIgnoreCaseComparer.Default);
Evaluation\Evaluator.cs (39)
81private readonly List<ProjectItemGroupElement> _itemGroupElements;
94private List<ProjectItemElement> _itemGlobElements;
100private readonly List<ProjectItemDefinitionGroupElement> _itemDefinitionGroupElements;
108private readonly List<KeyValuePair<string, ProjectUsingTaskElement>> _usingTaskElements;
114private readonly List<ProjectTargetElement> _targetElements;
126private List<(ProjectRootElement ImportedProject, ProjectImportElement ImportingElement, SdkResult SdkResult)> _resolvedImports;
132private readonly List<string> _initialTargetsList;
217private List<string> _streamImports;
412internal static List<I> CreateItemsFromInclude(string rootDirectory, ProjectItemElement itemElement, IItemFactory<I, I> itemFactory, string unevaluatedIncludeEscaped, Expander<P, I> expander, ILoggingService loggingService, string buildEventFileInfoFullPath, BuildEventContext buildEventContext)
416List<I> items = new List<I>();
475List<ProjectTaskInstanceChild> taskOutputs = new List<ProjectTaskInstanceChild>(taskElement.Count);
517List<ProjectPropertyGroupTaskPropertyInstance> properties = new List<ProjectPropertyGroupTaskPropertyInstance>(propertyGroupElement.Count);
547List<ProjectItemGroupTaskItemInstance> items = new List<ProjectItemGroupTaskItemInstance>(itemGroupElement.Count);
551List<ProjectItemGroupTaskMetadataInstance> metadata = itemElement.Metadata.Count > 0 ? new List<ProjectItemGroupTaskMetadataInstance>() : null;
598List<ProjectTargetInstanceChild> targetChildren = new List<ProjectTargetInstanceChild>(targetElement.Count);
599List<ProjectOnErrorInstance> targetOnErrorChildren = new List<ProjectOnErrorInstance>();
715List<string> initialTargets = new List<string>(_initialTargetsList.Count);
844Dictionary<string, List<TargetSpecification>> targetsWhichRunBeforeByTarget = new Dictionary<string, List<TargetSpecification>>(StringComparer.OrdinalIgnoreCase);
845Dictionary<string, List<TargetSpecification>> targetsWhichRunAfterByTarget = new Dictionary<string, List<TargetSpecification>>(StringComparer.OrdinalIgnoreCase);
915List<P> list = new(dictionary.Count);
969List<ProjectImportElement> implicitImports = currentProjectOrImport.GetImplicitImportNodes(currentProjectOrImport);
1046List<string> temp = new List<string>(expanded.Split(s_splitter, StringSplitOptions.RemoveEmptyEntries));
1143private void AddBeforeAndAfterTargetMappings(ProjectTargetElement targetElement, Dictionary<string, LinkedListNode<ProjectTargetElement>> activeTargets, Dictionary<string, List<TargetSpecification>> targetsWhichRunBeforeByTarget, Dictionary<string, List<TargetSpecification>> targetsWhichRunAfterByTarget)
1154List<TargetSpecification> beforeTargetsForTarget;
1177List<TargetSpecification> afterTargetsForTarget;
1484List<ProjectRootElement> importedProjectRootElements = ExpandAndLoadImports(directoryOfImportingFile, importElement, out var sdkResult);
1594private List<ProjectRootElement> ExpandAndLoadImports(string directoryOfImportingFile, ProjectImportElement importElement, out SdkResult sdkResult)
1603List<ProjectRootElement> projects;
1667var allProjects = new List<ProjectRootElement>();
1704List<ProjectRootElement> projects;
1777out List<ProjectRootElement> projects,
1930List<ProjectRootElement> projectList = null;
1947throwOnFileNotExistsError: true, out var additionalProjects);
2099bool throwOnFileNotExistsError, out List<ProjectRootElement> imports)
2642var onlyFallbackSearchPaths = searchPathMatch.SearchPaths.Select(s => _data.ExpandString(s)).ToList();
2801List<GlobResult> globResults = GlobResultBuilder.BuildGlobResults(_itemGlobElements, _expander);
Evaluation\Expander.ItemExpander.Transforms.cs (37)
86internal static void Count(List<TransformEntry> input, List<TransformEntry> output)
94List<TransformEntry> input,
95List<TransformEntry> output,
150List<TransformEntry> input,
151List<TransformEntry> output,
204List<TransformEntry> input,
205List<TransformEntry> output,
233List<TransformEntry> input,
234List<TransformEntry> output,
316List<TransformEntry> input,
317List<TransformEntry> output,
391List<TransformEntry> input,
392List<TransformEntry> output,
451List<TransformEntry> input,
452List<TransformEntry> output,
463List<TransformEntry> input,
464List<TransformEntry> output,
475List<TransformEntry> input,
476List<TransformEntry> output,
500List<TransformEntry> input,
501List<TransformEntry> output,
518List<TransformEntry> input,
519List<TransformEntry> output,
625List<MetadataMatch> multipleMatches = null;
728List<TransformEntry> input,
729List<TransformEntry> output,
771List<TransformEntry> input,
772List<TransformEntry> output,
794List<TransformEntry> input,
795List<TransformEntry> output,
833List<TransformEntry> input,
834List<TransformEntry> output,
871List<TransformEntry> input,
872List<TransformEntry> output,
909List<TransformEntry> input,
910List<TransformEntry> output,
Evaluation\ExpressionShredder.cs (4)
168List<ItemExpressionCapture> transformExpressions = null;
777public ItemExpressionCapture(int index, int length, string subExpression, string itemType, string separator, int separatorStart, List<ItemExpressionCapture> captures)
786public ItemExpressionCapture(int index, int length, string subExpression, string itemType, string separator, int separatorStart, List<ItemExpressionCapture> captures, string functionName, string functionArguments)
802public List<ItemExpressionCapture> Captures { get; }
Instance\ProjectInstance.cs (37)
95private List<string> _defaultTargets;
97private List<string> _initialTargets;
189private IDictionary<string, List<TargetSpecification>> _beforeTargets;
190private IDictionary<string, List<TargetSpecification>> _afterTargets;
501static List<string> GetImportFullPaths(ObjectModelRemoting.ProjectLink projectLink)
506var paths = new List<string>(imports.Count);
518static List<string> GetImportFullPathsIncludingDuplicates(ObjectModelRemoting.ProjectLink projectLink)
521var paths = new List<string>(imports.Count);
604thisAsIEvaluatorData.AfterTargets = new Dictionary<string, List<TargetSpecification>>();
605thisAsIEvaluatorData.BeforeTargets = new Dictionary<string, List<TargetSpecification>>();
1198/// Gets a <see cref="List{ProjectItemElement}"/> object containing evaluated items.
1200public List<ProjectItemElement> EvaluatedItemElements
1309public List<string> DefaultTargets
1328public List<string> InitialTargets
1546List<string> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.InitialTargets
1564List<string> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.DefaultTargets
1582IDictionary<string, List<TargetSpecification>> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.BeforeTargets
1592IDictionary<string, List<TargetSpecification>> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.AfterTargets
1605Dictionary<string, List<string>> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.ConditionedProperties
1606=> Assumed.Unreachable<Dictionary<string, List<string>>>();
2620translator.TranslateDictionary(ref _beforeTargets, TranslatorForTargetSpecificDictionaryKey, TranslatorForTargetSpecificDictionaryValue, count => new Dictionary<string, List<TargetSpecification>>(count));
2621translator.TranslateDictionary(ref _afterTargets, TranslatorForTargetSpecificDictionaryKey, TranslatorForTargetSpecificDictionaryValue, count => new Dictionary<string, List<TargetSpecification>>(count));
2634private static void TranslatorForTargetSpecificDictionaryValue(ITranslator translator, ref List<TargetSpecification> value)
2913List<TargetSpecification> beforeTargetsForTarget;
2930List<TargetSpecification> afterTargetsForTarget;
3118List<DictionaryEntry> clearedVariables = null;
3384List<string> defaultTargets,
3385List<string> initialTargets,
3386IDictionary<string, List<TargetSpecification>> beforeTargets,
3387IDictionary<string, List<TargetSpecification>> afterTargets)
3395private void InitializeTargetsData(List<string> defaultTargets,
3396List<string> initialTargets,
3397IDictionary<string, List<TargetSpecification>> beforeTargets,
3398IDictionary<string, List<TargetSpecification>> afterTargets)
3411var importPaths = new List<string>(Math.Max(0, importClosure.Count - 1) /* outer project */);
3424var importPathsIncludingDuplicates = new List<string>(Math.Max(0, importClosureWithDuplicates.Count - 1) /* outer project */);
3504List<ProjectItemDefinitionInstance> inheritedItemDefinitions = null;
Instance\TaskRegistry.cs (15)
147private Dictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>> _taskRegistrations;
154private readonly Dictionary<string, List<RegisteredTaskRecord>> _overriddenTasks = new Dictionary<string, List<RegisteredTaskRecord>>();
223internal IDictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>> TaskRegistrations
526if (_overriddenTasks.TryGetValue(taskName, out List<RegisteredTaskRecord> recs))
645if (_taskRegistrations.TryGetValue(taskIdentity, out List<RegisteredTaskRecord> taskAssemblies))
688List<RegisteredTaskRecord> registeredTaskEntries;
713if (_overriddenTasks.TryGetValue(unqualifiedTaskName, out List<RegisteredTaskRecord> recs))
728List<RegisteredTaskRecord> unqualifiedTaskNameMatches = new();
738private static Dictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>> CreateRegisteredTaskDictionary(int? capacity = null)
741? new Dictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>>(capacity.Value, RegisteredTaskIdentity.RegisteredTaskIdentityComparer.Exact)
742: new Dictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>>(RegisteredTaskIdentity.RegisteredTaskIdentityComparer.Exact);
1927IDictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>> copy = _taskRegistrations;
1932_taskRegistrations = (Dictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>>)copy;
1946private void TranslateTaskRegistrationValue(ITranslator translator, ref List<RegisteredTaskRecord> taskRecords)
Microsoft.Build.Framework (86)
Utilities\FileMatcher.cs (31)
940ConcurrentStack<List<string>> listOfFiles,
945Dictionary<string, List<RecursionState>> searchesToExcludeInSubdirs,
1016List<string> files = null;
1065List<RecursionState> newSearchesToExclude = null;
1091if (searchesToExcludeInSubdirs.TryGetValue(subdir, out List<RecursionState> searchesForSubdir))
2067List<string>? excludeSpecsUnescaped = null)
2142List<string> excludes,
2501private string[] CreateArrayWithSingleItemIfNotExcluded(string filespecUnescaped, List<string> excludeSpecsUnescaped)
2530List<string>? excludeSpecsUnescaped,
2556List<string>? excludeSpecs)
2649List<string>? excludeSpecs)
2730static bool HasLiteralExclude(List<string>? excludes)
2757bool HasInvalidWildcardExclude(List<string>? excludes)
2781List<string>? excludeSpecs)
2866List<string>? excludeSpecs)
3003List<string>? excludeSpecsUnescaped,
3059List<OptimizedFileSearch>? excludesToMatch = null;
3097List<string> files = [];
3152List<string> destination,
3239List<string>?[] partitionResults = new List<string>?[subdirectories.Count];
3246List<string> partition = [];
3251foreach (List<string>? partition in partitionResults)
3263List<string> destination)
3481List<OptimizedFileSearch>? excludes)
3749List<string>? excludeSpecsUnescaped)
3777List<RecursionState>? searchesToExclude = null;
3781Dictionary<string, List<RecursionState>>? searchesToExcludeInSubdirs = null;
3859searchesToExcludeInSubdirs = new Dictionary<string, List<RecursionState>>(StringComparer.OrdinalIgnoreCase);
3861List<RecursionState>? listForSubdir;
3946var listOfFiles = new ConcurrentStack<List<string>>();
Microsoft.Build.NuGetSdkResolver (8)
Microsoft.Build.Tasks.CodeAnalysis (17)
Microsoft.Build.Tasks.Core (347)
AssemblyDependency\ReferenceTable.cs (50)
408internal List<string> ListOfExcludedAssemblies { get; private set; }
545List<Exception> exceptions)
1067var dependencies = new List<AssemblyNameExtension>(dependentAssemblies?.Length ?? 0);
1135List<KeyValuePair<AssemblyNameExtension, Reference>> newEntries)
1256internal static void CalculateParentAssemblyDirectories(List<DirectoryWithParentAssembly> parentReferenceFolders, Reference parentReference)
1307var assembliesConsideredAndRejected = new List<ResolutionSearchLocation>();
1312var parentReferenceFolders = new List<DirectoryWithParentAssembly>();
1319var jaggedResolvers = new List<Resolver[]>();
1410var removedReferences = new List<Reference>();
1413var dependencyGraph = new Dictionary<Reference, List<ReferenceAssemblyExtensionPair>>();
1501private static void AddToDependencyGraph(Dictionary<Reference, List<ReferenceAssemblyExtensionPair>> dependencyGraph, AssemblyNameExtension assemblyName, Reference assemblyReference)
1508if (!dependencyGraph.TryGetValue(dependee, out List<ReferenceAssemblyExtensionPair> dependencies))
1521private void RemoveDependencyMarkedForExclusion(LogExclusionReason logExclusionReason, bool removeOnlyNoWarning, string subsetName, Dictionary<AssemblyNameExtension, Reference> goodReferences, List<Reference> removedReferences, AssemblyNameExtension assemblyName, Reference assemblyReference)
1570private static void RemovePrimaryReferenceMarkedForExclusion(LogExclusionReason logExclusionReason, bool removeOnlyNoWarning, string subsetName, List<Reference> removedReferences, AssemblyNameExtension assemblyName, Reference assemblyReference)
1605private static void RemoveDependencies(Reference removedReference, Dictionary<AssemblyNameExtension, Reference> referenceList, Dictionary<Reference, List<ReferenceAssemblyExtensionPair>> dependencyList)
1608if (!dependencyList.TryGetValue(removedReference, out List<ReferenceAssemblyExtensionPair> dependencies))
1655List<Exception> exceptions)
1725var newEntries = new List<KeyValuePair<AssemblyNameExtension, Reference>>();
1838private void ResolveConflictsBetweenReferences(Dictionary<string, List<AssemblyNameReference>> baseNameToReferences)
1841foreach (List<AssemblyNameReference> assemblyReferences in baseNameToReferences.Values)
1847private void ResolveConflictsBetweenReferences(List<AssemblyNameReference> assemblyReferences)
1876out List<DependentAssembly> idealRemappings,
1877out List<AssemblyNameReference> conflictingReferences)
1883Dictionary<string, List<AssemblyNameReference>> baseNameToReferences = BuildSimpleNameTable();
1901foreach (List<AssemblyNameReference> references in baseNameToReferences.Values)
1949var assemblyNamesList = new List<AssemblyNameReference>(conflictingFullNames.Count);
1956var idealRemappingsList = new List<DependentAssembly>(assemblyNamesList.Count);
2080var assemblyTableInfos = new List<AssemblyTableInfo>();
2212private Dictionary<string, List<AssemblyNameReference>> BuildSimpleNameTable()
2216var baseNameToReferences = new Dictionary<string, List<AssemblyNameReference>>(References.Count, StringComparer.OrdinalIgnoreCase);
2229if (!baseNameToReferences.TryGetValue(baseName, out List<AssemblyNameReference> refs))
2242Dictionary<string, List<AssemblyNameReference>> baseNameToReferences)
2244List<string> toRemove = new(baseNameToReferences.Count);
2245foreach (KeyValuePair<string, List<AssemblyNameReference>> kvp in baseNameToReferences)
2620var primaryItems = new List<ITaskItem>();
2621var dependencyItems = new List<ITaskItem>();
2622var relatedItems = new List<ITaskItem>();
2623var satelliteItems = new List<ITaskItem>();
2624var serializationAssemblyItems = new List<ITaskItem>();
2625var scatterItems = new List<ITaskItem>();
2626var copyLocalItems = new List<ITaskItem>();
2702private ITaskItem SetItemMetadata(List<ITaskItem> relatedItems, List<ITaskItem> satelliteItems, List<ITaskItem> serializationAssemblyItems, List<ITaskItem> scatterItems, string fusionName, Reference reference, AssemblyNameExtension assemblyName)
2747List<string> relatedFileExtensions = reference.GetRelatedFileExtensions();
2748List<string> satellites = reference.GetSatelliteFiles();
2749List<string> serializationAssemblyFiles = reference.GetSerializationAssemblyFiles();
2865static void AddRelatedItem(List<ITaskItem> relatedItems, TaskItem relatedItemBase, string relatedFilePath)
2998private static void FindCopyLocalItems(ITaskItem[] items, List<ITaskItem> copyLocalItems)
GenerateResource.cs (28)
171private List<ITaskItem> _satelliteInputs;
573private void LogResgenCommandLine(List<ITaskItem> inputFiles, List<ITaskItem> outputFiles)
675List<ITaskItem> newSources = new List<ITaskItem>();
719List<ITaskItem> inputsToProcess;
720List<ITaskItem> outputsToProcess;
721List<ITaskItem> cachedOutputFiles; // For incremental builds, this is the set of already-existing, up to date files.
885List<ResGenDependencies.PortableLibraryFile> portableLibraryCacheInfo = process.PortableLibraryCacheInfo;
1195private bool GenerateResourcesUsingResGen(List<ITaskItem> inputsToProcess, List<ITaskItem> outputsToProcess)
1447private void GetResourcesToProcess(out List<ITaskItem> inputsToProcess, out List<ITaskItem> outputsToProcess, out List<ITaskItem> cachedOutputFiles)
1521private void AppendCachedOutputTaskItems(ResGenDependencies.PortableLibraryFile library, List<ITaskItem> cachedOutputFiles)
1699private void GetStronglyTypedResourceToProcess(ref List<ITaskItem> inputsToProcess, ref List<ITaskItem> outputsToProcess)
2293private List<ReaderInfo> _readers = new List<ReaderInfo>();
2373private List<ITaskItem> _inFiles;
2385private List<ITaskItem> _outFiles;
2394internal List<ITaskItem> ExtractedResWFiles
2405private List<ITaskItem> _extractedResWFiles;
2410internal List<ResGenDependencies.PortableLibraryFile> PortableLibraryCacheInfo
2414private List<ResGenDependencies.PortableLibraryFile> _portableLibraryCacheInfo;
2461List<ITaskItem> inputs,
2462List<ITaskItem> satelliteInputs,
2463List<ITaskItem> outputs,
2740List<string> resWFilesForThisAssembly = new List<string>();
3952public List<IResource> resources;
GetSDKReferenceFiles.cs (20)
449var resolvedReferenceAssemblies = new List<ITaskItem>();
450var copyLocalReferenceAssemblies = new List<ITaskItem>();
451var redistReferenceItems = new List<ITaskItem>();
570if (info.DirectoryToFileList != null && info.DirectoryToFileList.TryGetValue(FileUtilities.EnsureNoTrailingSlash(path), out List<string> referenceFiles) && referenceFiles != null)
619foreach (KeyValuePair<string, List<string>> directoryToFileList in info.DirectoryToFileList)
624List<string> redistFiles = directoryToFileList.Value;
996var directoryToFileList = new ConcurrentDictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
998var directoriesToHash = new List<string>();
1025private void PopulateReferencesDictionaryFromManifestPaths(ConcurrentDictionary<string, List<string>> referencesByDirectory, ConcurrentDictionary<string, SdkReferenceInfo> references, string[] sdkManifestReferences)
1043private void PopulateReferencesDictionaryFromPaths(ConcurrentDictionary<string, List<string>> referencesByDirectory, ConcurrentDictionary<string, SdkReferenceInfo> references, IEnumerable<string> referenceDirectories)
1050List<string> files = Directory.GetFiles(path, "*", SearchOption.TopDirectoryOnly).ToList();
1060private static void PopulateRedistDictionaryFromPaths(ConcurrentDictionary<string, List<string>> redistFilesByDirectory, IEnumerable<string> redistDirectories)
1067List<string> files = Directory.GetFiles(path, "*", SearchOption.TopDirectoryOnly).ToList();
1080var directoriesToHash = new List<string>();
1220private IDictionary<string, List<string>> _directoryToFileList;
1226_directoryToFileList = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
1235public SDKInfo(IDictionary<string, SdkReferenceInfo> pathToReferenceMetadata, IDictionary<string, List<string>> directoryToFileList, int cacheHash)
1247public IDictionary<string, List<string>> DirectoryToFileList { get { return _directoryToFileList; } }
1273translator.TranslateDictionary(ref _directoryToFileList, (ITranslator t, ref string s) => t.Translate(ref s), (ITranslator t, ref List<string> fileList) =>
1276}, count => new Dictionary<string, List<string>>(count, StringComparer.OrdinalIgnoreCase));
MSBuild.cs (12)
53private readonly List<ITaskItem> _targetOutputs = new List<ITaskItem>();
239List<string[]> targetLists = CreateTargetLists(Targets, RunEachTargetSeparately);
242List<ITaskItem> singleProject = null;
358private bool BuildProjectsInParallel(Dictionary<string, string> propertiesTable, string[] undefinePropertiesArray, List<string[]> targetLists, bool success, bool[] skipProjects)
362var projectsToBuildInParallel = new List<ITaskItem>();
398var expandedProperties = new List<string>();
399var expandedTargets = new List<string>();
438internal static List<string[]> CreateTargetLists(string[] targets, bool runEachTargetSeparately)
444var targetLists = new List<string[]>(runEachTargetSeparately ? targets.Length : 1);
465List<ITaskItem> projects,
468List<string[]> targetLists,
473List<ITaskItem> targetOutputs,
RedistList.cs (15)
94var errors = new List<Exception>();
95var errorFilenames = new List<string>();
96var assemblyList = new List<AssemblyEntry>();
97var remappingEntries = new List<AssemblyRemapping>();
564internal Dictionary<string, string> GenerateDenyList(AssemblyTableInfo[] allowListAssemblyTableInfo, List<Exception> allowListErrors, List<string> allowListErrorFileNames)
588var allowListAssemblies = new List<AssemblyEntry>();
596var allowListAssembliesReadIn = new List<AssemblyEntry>();
690internal static string ReadFile(AssemblyTableInfo assemblyTableInfo, List<AssemblyEntry> assembliesList, List<Exception> errorsList, List<string> errorFilenamesList, List<AssemblyRemapping> remapEntries)
768private static void ParseRemapSection(AssemblyTableInfo assemblyTableInfo, string path, string redistName, XmlReader reader, List<AssemblyRemapping> mapping)
825private static void ParseFileListSection(AssemblyTableInfo assemblyTableInfo, string path, string redistName, XmlReader reader, Dictionary<string, AssemblyEntry> assemblyEntries, List<AssemblyRemapping> remapEntries)
1105var subsetFilesForFrameworkDirectory = new List<string>();
ResolveManifestFiles.cs (18)
184GetPublishInfo(out List<PublishInfo> assemblyPublishInfoList, out List<PublishInfo> filePublishInfoList, out List<PublishInfo> satellitePublishInfoList, out List<PublishInfo> manifestEntryPointList);
397private void GetOutputAssemblies(List<PublishInfo> publishInfos, List<ITaskItem> assemblyList)
511private ITaskItem[] GetOutputAssembliesAndSatellites(List<PublishInfo> assemblyPublishInfos, List<PublishInfo> satellitePublishInfos)
513var assemblyList = new List<ITaskItem>();
519private ITaskItem[] GetOutputFiles(List<PublishInfo> publishInfos, IEnumerable<ITaskItem> outputAssemblies)
521var fileList = new List<ITaskItem>();
619private void GetOutputSatellites(List<PublishInfo> publishInfos, List<ITaskItem> assemblyList)
682private ITaskItem GetOutputEntryPoint(ITaskItem entryPoint, List<PublishInfo> manifestEntryPointList)
720out List<PublishInfo> assemblyPublishInfos,
721out List<PublishInfo> filePublishInfos,
722out List<PublishInfo> satellitePublishInfos,
723out List<PublishInfo> manifestEntryPointPublishInfos)
Microsoft.Build.Tasks.Git (21)
Microsoft.Build.Utilities.Core (58)
ToolLocationHelper.cs (31)
268private static List<string> s_targetFrameworkMonikers = null;
336var assemblyFolders = new List<AssemblyFoldersExInfo>();
662var referenceDirectories = new List<string>(4);
679private static void AddSDKPaths(string sdkRoot, string folderName, string targetConfiguration, string targetArchitecture, List<string> directories)
726var redistDirectories = new List<string>(4);
756var designTimeDirectories = new List<string>(4);
789var filteredTargetPlatformSdkList = new List<TargetPlatformSDK>();
1130var contractWinMDs = new List<string>();
1344var platforms = new List<string>();
1381var availablePlatformVersions = new List<Version>();
2111var referencePaths = new List<string>();
2137var referencePaths = new List<string>();
2161var referencePaths = new List<string>();
2333var referencePaths = new List<string>();
2424private static void AddSDKPath(string sdkRoot, string contentFolderName, string targetConfiguration, string targetArchitecture, List<string> contentDirectories)
2441List<string> sdkDiskRoots = GetTargetPlatformMonikerDiskRoots(diskRoots);
2442List<string> extensionSdkDiskRoots = GetExtensionSdkDiskRoots(extensionDiskRoots);
2579internal static void GatherSDKListFromDirectory(List<string> diskroots, Dictionary<TargetPlatformSDK, TargetPlatformSDK> platformSDKs)
2606SortedDictionary<Version, List<string>> versionsInRoot = VersionUtilities.GatherVersionStrings(null, rootPathWithIdentifier.GetDirectories().Select<DirectoryInfo, string>(directory => directory.Name));
2611foreach (KeyValuePair<Version, List<string>> directoryUnderRoot in versionsInRoot)
2715SortedDictionary<Version, List<string>> sortedVersions = VersionUtilities.GatherVersionStrings(null, versions);
2717foreach (KeyValuePair<Version, List<string>> registryVersions in sortedVersions)
2893private static void GetDefaultSDKDiskRoots(List<string> diskRoots)
2924private static void ExtractSdkDiskRootsFromEnvironment(List<string> diskRoots, string directoryRoots)
2945private static List<string> GetTargetPlatformMonikerDiskRoots(string[] diskRoots)
2947var sdkDiskRoots = new List<string>();
2972private static List<string> GetExtensionSdkDiskRoots(string[] diskRoots)
2974var sdkDiskRoots = new List<string>();
3750var frameworkIdentifiers = new List<string>();
3824var frameworkVersions = new List<string>();
3896var frameworkProfiles = new List<string>();
Microsoft.CodeAnalysis (200)
DocumentationCommentId.cs (45)
22private class ListPool<T> : ObjectPool<List<T>>
28public void ClearAndFree(List<T> list)
35public new void Free(List<T> list)
116var results = s_symbolListPool.Allocate();
132private static bool TryGetSymbolsForDeclarationId(string id, Compilation compilation, List<ISymbol> results)
167var results = s_symbolListPool.Allocate();
194var results = s_symbolListPool.Allocate();
210private static bool TryGetSymbolsForReferenceId(string id, Compilation compilation, List<ISymbol> results)
255var results = s_symbolListPool.Allocate();
730public static bool ParseDeclaredSymbolId(string id, Compilation compilation, List<ISymbol> results)
749public static bool ParseReferencedSymbolId(string id, Compilation compilation, List<ISymbol> results)
762private static void ParseDeclaredId(string id, ref int index, Compilation compilation, List<ISymbol> results)
798var containers = s_namespaceOrTypeListPool.Allocate();
895var results = s_symbolListPool.Allocate();
914private static void ParseTypeSymbol(string id, ref int index, Compilation compilation, ISymbol? typeParameterContext, List<ISymbol> results)
922var contexts = s_symbolListPool.Allocate();
1002private static void ParseTypeParameterSymbol(string id, ref int index, ISymbol? typeParameterContext, List<ISymbol> results)
1039private static void ParseNamedTypeSymbol(string id, ref int index, Compilation compilation, ISymbol? typeParameterContext, List<ISymbol> results)
1041var containers = s_namespaceOrTypeListPool.Allocate();
1051List<ITypeSymbol>? typeArguments = null;
1150private static bool ParseTypeArguments(string id, ref int index, Compilation compilation, ISymbol? typeParameterContext, List<ITypeSymbol> typeArguments)
1184private static void GetMatchingTypes(List<INamespaceOrTypeSymbol> containers, string memberName, int arity, bool isTerminal, List<ISymbol> results)
1196private static void GetMatchingTypes(INamespaceOrTypeSymbol container, string memberName, int arity, bool isTerminal, List<ISymbol> results)
1224private static void GetMatchingNamespaceOrTypes(List<INamespaceOrTypeSymbol> containers, string memberName, List<ISymbol> results)
1232private static void GetMatchingNamespaceOrTypes(INamespaceOrTypeSymbol container, string memberName, List<ISymbol> results)
1247private static void GetMatchingExtensions(INamespaceOrTypeSymbol container, string memberName, int arity, List<ISymbol> results)
1266private static void GetMatchingNamespaces(List<INamespaceOrTypeSymbol> containers, string memberName, List<ISymbol> results)
1274private static void GetMatchingNamespaces(INamespaceOrTypeSymbol container, string memberName, List<ISymbol> results)
1287private static void GetMatchingMethods(string id, ref int index, List<INamespaceOrTypeSymbol> containers, string memberName, int arity, Compilation compilation, List<ISymbol> results)
1289var parameters = s_parameterListPool.Allocate();
1354private static void GetMatchingProperties(string id, ref int index, List<INamespaceOrTypeSymbol> containers, string memberName, Compilation compilation, List<ISymbol> results)
1359List<ParameterInfo>? parameters = null;
1412private static void GetMatchingFields(List<INamespaceOrTypeSymbol> containers, string memberName, List<ISymbol> results)
1428private static void GetMatchingEvents(List<INamespaceOrTypeSymbol> containers, string memberName, List<ISymbol> results)
1444private static bool AllParametersMatch(ImmutableArray<IParameterSymbol> symbolParameters, List<ParameterInfo> expectedParameters)
1518private static bool ParseParameterList(string id, ref int index, Compilation compilation, ISymbol typeParameterContext, List<ParameterInfo> parameters)
1630private static void CopyTo<TSource, TDestination>(List<TSource> source, List<TDestination> destination)
ReferenceManager\CommonReferenceManager.Binding.cs (8)
101[In, Out] Dictionary<string, List<ReferencedAssemblyIdentity>> assemblyReferencesBySimpleName,
218[In, Out] Dictionary<string, List<ReferencedAssemblyIdentity>> assemblyReferencesBySimpleName,
724private static readonly ObjectPool<List<TAssemblySymbol?>> s_candidateReferencedSymbolsPool = new ObjectPool<List<TAssemblySymbol?>>(() => new List<TAssemblySymbol?>(capacity: 1024));
733List<TAssemblySymbol?> candidateReferencedSymbols = s_candidateReferencedSymbolsPool.Allocate();
985private static bool IsSuperseded(AssemblyIdentity identity, IReadOnlyDictionary<string, List<ReferencedAssemblyIdentity>> assemblyReferencesBySimpleName)
992private static int IndexOfCorLibrary(ImmutableArray<AssemblyData> assemblies, IReadOnlyDictionary<string, List<ReferencedAssemblyIdentity>> assemblyReferencesBySimpleName, bool supersedeLowerVersions)
1079protected abstract void GetActualBoundReferencesUsedBy(TAssemblySymbol assemblySymbol, List<TAssemblySymbol?> referencedAssemblySymbols);
Microsoft.CodeAnalysis.Analyzers (164)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (2)
24public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg)
43public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\CompatAbstractFormattingRule.cs (6)
25public sealed override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation)
33public sealed override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation)
41public sealed override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
78public virtual void AddAnchorIndentationOperationsSlow(List<AnchorIndentationOperation> list, SyntaxNode node, ref NextAnchorIndentationOperationAction nextOperation)
84public virtual void AddIndentBlockOperationsSlow(List<IndentBlockOperation> list, SyntaxNode node, ref NextIndentBlockOperationAction nextOperation)
90public virtual void AddAlignTokensOperationsSlow(List<AlignTokensOperation> list, SyntaxNode node, ref NextAlignTokensOperationAction nextOperation)
Microsoft.CodeAnalysis.AnalyzerUtilities (125)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (2)
24public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg)
43public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\CompatAbstractFormattingRule.cs (6)
25public sealed override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation)
33public sealed override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation)
41public sealed override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
78public virtual void AddAnchorIndentationOperationsSlow(List<AnchorIndentationOperation> list, SyntaxNode node, ref NextAnchorIndentationOperationAction nextOperation)
84public virtual void AddIndentBlockOperationsSlow(List<IndentBlockOperation> list, SyntaxNode node, ref NextIndentBlockOperationAction nextOperation)
90public virtual void AddAlignTokensOperationsSlow(List<AlignTokensOperation> list, SyntaxNode node, ref NextAlignTokensOperationAction nextOperation)
Microsoft.CodeAnalysis.CodeStyle (128)
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (14)
157using var _1 = PooledDictionary<string, List<(SyntaxTrivia pragma, bool isDisable)>>.GetInstance(out var idToPragmasMap);
166using var _5 = PooledDictionary<string, List<SyntaxNode>>.GetInstance(out var idToSuppressMessageAttributesMap);
200if (idToPragmasMap.TryGetValue(id, out var pragmas))
208if (idToSuppressMessageAttributesMap.TryGetValue(id, out var attributeNodes))
228PooledDictionary<string, List<(SyntaxTrivia pragma, bool isDisable)>> idToPragmasMap,
268if (!idToPragmasMap.TryGetValue(id, out var pragmasForIdInReverseOrder))
510PooledDictionary<string, List<(SyntaxTrivia pragma, bool isDisable)>> idToPragmasMap,
512PooledDictionary<string, List<SyntaxNode>> idToSuppressMessageAttributesMap,
546PooledDictionary<string, List<(SyntaxTrivia pragma, bool isDisable)>> idToPragmasMap,
549if (!idToPragmasMap.TryGetValue(diagnostic.Id, out var pragmasForIdInReverseOrder))
586PooledDictionary<string, List<SyntaxNode>> idToSuppressMessageAttributesMap,
591!idToSuppressMessageAttributesMap.TryGetValue(diagnostic.Id, out var suppressMessageAttributesForId))
736PooledDictionary<string, List<SyntaxNode>> idToSuppressMessageAttributesMap,
813if (!idToSuppressMessageAttributesMap.TryGetValue(id, out var nodesForId))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (2)
24public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg)
43public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\CompatAbstractFormattingRule.cs (6)
25public sealed override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation)
33public sealed override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation)
41public sealed override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
78public virtual void AddAnchorIndentationOperationsSlow(List<AnchorIndentationOperation> list, SyntaxNode node, ref NextAnchorIndentationOperationAction nextOperation)
84public virtual void AddIndentBlockOperationsSlow(List<IndentBlockOperation> list, SyntaxNode node, ref NextIndentBlockOperationAction nextOperation)
90public virtual void AddAlignTokensOperationsSlow(List<AlignTokensOperation> list, SyntaxNode node, ref NextAlignTokensOperationAction nextOperation)
Microsoft.CodeAnalysis.CodeStyle.Fixes (44)
Microsoft.CodeAnalysis.CSharp (63)
CommandLine\CSharpCommandLineParser.cs (24)
56List<Diagnostic> diagnostics = new List<Diagnostic>();
58List<string>? scriptArgs = IsScriptCommandLineParser ? new List<string>() : null;
59List<string>? responsePaths = IsScriptCommandLineParser ? new List<string>() : null;
103List<CommandLineResource> managedResources = new List<CommandLineResource>();
104List<CommandLineSourceFile> sourceFiles = new List<CommandLineSourceFile>();
105List<CommandLineSourceFile> additionalFiles = new List<CommandLineSourceFile>();
107List<CommandLineSourceFile> embeddedFiles = new List<CommandLineSourceFile>();
114List<CommandLineReference> metadataReferences = new List<CommandLineReference>();
115List<CommandLineAnalyzerReference> analyzers = new List<CommandLineAnalyzerReference>();
116List<string> libPaths = new List<string>();
117List<string> sourcePaths = new List<string>();
118List<string> keyFileSearchPaths = new List<string>();
119List<string> usings = new List<string>();
129List<string> features = new List<string>();
1632private static void ParseAndResolveReferencePaths(string? switchName, ReadOnlyMemory<char>? switchValue, string? baseDirectory, List<string> builder, MessageID origin, List<Diagnostic> diagnostics)
1659private static string? GetWin32Setting(string arg, string? value, List<Diagnostic> diagnostics)
1682List<Diagnostic> diagnostics,
1684List<CommandLineSourceFile> sourceFiles,
1752private ImmutableArray<string> BuildSearchPaths(string? sdkDirectoryOpt, List<string> libPaths, List<string>? responsePathsOpt)
1901private static void ParseAnalyzers(string arg, ReadOnlyMemory<char>? valueMemory, List<CommandLineAnalyzerReference> analyzerReferences, List<Diagnostic> diagnostics)
1928private static void ParseAssemblyReferences(string arg, ReadOnlyMemory<char>? valueMemory, IList<Diagnostic> diagnostics, bool embedInteropTypes, List<CommandLineReference> commandLineReferences)
Microsoft.CodeAnalysis.CSharp.CodeStyle (45)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\BaseFormattingRule.cs (9)
18List<IndentBlockOperation> list,
33List<IndentBlockOperation> list,
46List<IndentBlockOperation> list,
60List<IndentBlockOperation> list,
74List<IndentBlockOperation> list,
89List<IndentBlockOperation> list,
99List<IndentBlockOperation> list,
124protected static void AddAnchorIndentationOperation(List<AnchorIndentationOperation> list, SyntaxToken anchorToken, SyntaxToken endToken)
134protected static void AddAlignIndentationOfTokensToBaseTokenOperation(List<AlignTokensOperation> list, SyntaxNode containingNode, SyntaxToken baseNode, IEnumerable<SyntaxToken> tokens, AlignTokensOption option = AlignTokensOption.AlignIndentationOfTokensToBaseToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (11)
47public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation)
61private static void AddTypeParameterConstraintClauseOperation(List<IndentBlockOperation> list, SyntaxNode node)
70private void AddSwitchIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node)
129private void AddLabelIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node)
145private static void AddAlignmentBlockOperation(List<IndentBlockOperation> list, SyntaxNode node)
200private static void SetAlignmentBlockOperation(List<IndentBlockOperation> list, SyntaxNode baseNode, SyntaxNode body)
211private void AddBlockIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node)
248private static void AddBracketIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node)
289private static void AddParenthesizedPatternIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node)
309private static void AddAlignmentBlockOperationRelativeToFirstTokenOnBaseTokenLine(List<IndentBlockOperation> list, (SyntaxToken openBrace, SyntaxToken closeBrace) bracePair)
315private static void AddEmbeddedStatementsIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
197List<string> paramNames;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (29)
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
222var switchArms = node.Sections
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamespaceGenerator.cs (1)
141var usingDirectives =
Microsoft.CodeAnalysis.CSharp.Features (125)
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
222var switchArms = node.Sections
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (6)
Microsoft.CodeAnalysis.CSharp.Workspaces (85)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\BaseFormattingRule.cs (9)
18List<IndentBlockOperation> list,
33List<IndentBlockOperation> list,
46List<IndentBlockOperation> list,
60List<IndentBlockOperation> list,
74List<IndentBlockOperation> list,
89List<IndentBlockOperation> list,
99List<IndentBlockOperation> list,
124protected static void AddAnchorIndentationOperation(List<AnchorIndentationOperation> list, SyntaxToken anchorToken, SyntaxToken endToken)
134protected static void AddAlignIndentationOfTokensToBaseTokenOperation(List<AlignTokensOperation> list, SyntaxNode containingNode, SyntaxToken baseNode, IEnumerable<SyntaxToken> tokens, AlignTokensOption option = AlignTokensOption.AlignIndentationOfTokensToBaseToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (11)
47public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation)
61private static void AddTypeParameterConstraintClauseOperation(List<IndentBlockOperation> list, SyntaxNode node)
70private void AddSwitchIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node)
129private void AddLabelIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node)
145private static void AddAlignmentBlockOperation(List<IndentBlockOperation> list, SyntaxNode node)
200private static void SetAlignmentBlockOperation(List<IndentBlockOperation> list, SyntaxNode baseNode, SyntaxNode body)
211private void AddBlockIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node)
248private static void AddBracketIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node)
289private static void AddParenthesizedPatternIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node)
309private static void AddAlignmentBlockOperationRelativeToFirstTokenOnBaseTokenLine(List<IndentBlockOperation> list, (SyntaxToken openBrace, SyntaxToken closeBrace) bracePair)
315private static void AddEmbeddedStatementsIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
197List<string> paramNames;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamespaceGenerator.cs (1)
141var usingDirectives =
Microsoft.CodeAnalysis.Extensions.Package (13)
Microsoft.CodeAnalysis.ExternalAccess.HotReload (1)
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
Microsoft.CodeAnalysis.Features (235)
CodeFixes\Service\CodeFixService.cs (14)
125var spanToErrorDiagnostics = new SortedDictionary<TextSpan, List<DiagnosticData>>();
126var spanToOtherDiagnostics = new SortedDictionary<TextSpan, List<DiagnosticData>>();
152SortedDictionary<TextSpan, List<DiagnosticData>> spanToDiagnostics,
260private static SortedDictionary<TextSpan, List<DiagnosticData>> ConvertToMap(
267var spanToDiagnostics = new SortedDictionary<TextSpan, List<DiagnosticData>>();
316var spanToDiagnostics = new SortedDictionary<TextSpan, List<DiagnosticData>>
437SortedDictionary<TextSpan, List<DiagnosticData>> spanToDiagnostics,
457using var _2 = PooledDictionary<CodeFixProvider, List<(TextSpan range, List<DiagnosticData> diagnostics)>>.GetInstance(out var fixerToRangesAndDiagnostics);
588List<DiagnosticData> diagnostics,
590PooledDictionary<CodeFixProvider, List<(TextSpan range, List<DiagnosticData> diagnostics)>> fixerToRangesAndDiagnostics)
739List<DiagnosticData> diagnostics,
774List<DiagnosticData> diagnosticsWithSameSpan,
DocumentationComments\AbstractDocumentationCommentSnippetService.cs (9)
25protected abstract List<string> GetDocumentationCommentStubLines(TMemberNode member, string existingCommentText, DocumentationCommentOptions options);
88var lines = GetDocumentationCommentLines(token, text, options, out var indentText, out var caretOffset, out var spanToReplaceLength);
103private List<string>? GetDocumentationCommentLines(SyntaxToken token, SourceText text, in DocumentationCommentOptions options, out string? indentText, out int caretOffset, out int spanToReplaceLength)
107var lines = GetDocumentationStubLines(token, text, options, out caretOffset, out spanToReplaceLength, out var existingCommentText);
145private List<string>? GetDocumentationStubLines(SyntaxToken token, SourceText text, in DocumentationCommentOptions options, out int caretOffset, out int spanToReplaceLength, out string? existingCommentText)
172var lines = GetDocumentationCommentStubLines(targetMember, existingCommentText, options);
238private static void IndentLines(List<string> lines, string? indentText)
281var lines = GetDocumentationCommentLines(token, text, options, out var indentText, out _, out _);
329var lines = GetDocumentationCommentStubLines(targetMember, string.Empty, options);
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (20)
399protected abstract List<SyntaxNode> GetExceptionHandlingAncestors(SyntaxNode node, SyntaxNode root, bool isNonLeaf);
1038var ancestors = GetExceptionHandlingAncestors(newStatement, newBody.EncompassingAncestor, oldActiveStatements[i].Statement.IsNonLeaf);
1080public readonly List<int>? ActiveNodeIndices;
1086public LambdaInfo(List<int> activeNodeIndices)
1091private LambdaInfo(List<int>? activeNodeIndices, DeclarationBodyMap bodyMap, LambdaBody? newLambdaBody)
1558var oldAncestors = GetExceptionHandlingAncestors(oldStatementSyntax, oldEncompassingAncestor, isNonLeaf);
1559var newAncestors = GetExceptionHandlingAncestors(newStatementSyntax, newEncompassingAncestor, isNonLeaf);
1740private static List<KeyValuePair<SyntaxNode, SyntaxNode>>? GetMatchingActiveNodes(IEnumerable<ActiveNode> activeNodes)
1743List<KeyValuePair<SyntaxNode, SyntaxNode>>? lazyKnownMatches = null;
1762var ancestors = GetExceptionHandlingAncestors(node, root, isNonLeaf);
1766private ActiveStatementExceptionRegions GetExceptionRegions(List<SyntaxNode> exceptionHandlingAncestors, SyntaxTree tree, CancellationToken cancellationToken)
2019var newNodes = GetAncestors(newEncompassingAncestor, newActiveStatement, nodeSelector);
2025var oldNodes = GetAncestors(oldEncompassingAncestor, oldActiveStatement, nodeSelector);
2049private void ReportRudeEditsAndInserts(List<SyntaxNode?>? oldNodes, List<SyntaxNode?> newNodes, RudeEditDiagnosticsBuilder diagnostics)
2075List<SyntaxNode?> oldNodes,
2077List<SyntaxNode?> newNodes,
2172private static int IndexOfEquivalent<TSyntaxNode>(SyntaxNode newNode, List<SyntaxNode?> oldNodes, int startIndex, Func<TSyntaxNode, TSyntaxNode, bool> comparer)
2187private static List<SyntaxNode?>? GetAncestors(SyntaxNode? root, SyntaxNode node, Func<SyntaxNode, bool> nodeSelector)
2189List<SyntaxNode?>? list = null;
ExtractMethod\MethodExtractor.Analyzer.cs (4)
81bestEffort: false, dataFlowAnalysisData, symbolMap, isInPrimaryConstructorBaseType, out var variableInfoMap, out var failedVariables);
89bestEffort: true, dataFlowAnalysisData, symbolMap, isInPrimaryConstructorBaseType, out variableInfoMap, out var unused);
407out List<ISymbol> failedVariables)
757var typeParametersInConstraint = new List<ITypeParameterSymbol>();
Highlighting\Keywords\AbstractKeywordHighlighter.cs (7)
21protected sealed override void AddHighlightsForNode(SyntaxNode node, List<TextSpan> highlights, CancellationToken cancellationToken)
24protected abstract void AddHighlights(TNode node, List<TextSpan> highlights, CancellationToken cancellationToken);
31private static readonly ObjectPool<List<TextSpan>> s_textSpanListPool = new(() => []);
39SyntaxNode root, int position, List<TextSpan> highlights, CancellationToken cancellationToken)
47using var _2 = s_textSpanListPool.GetPooledObject(out var highlightsBuffer);
67private static bool AnyIntersects(int position, List<TextSpan> highlights)
78protected abstract void AddHighlightsForNode(SyntaxNode node, List<TextSpan> highlights, CancellationToken cancellationToken);
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (5)
245? new Dictionary<Document, List<TExpressionSyntax>> { [document] = [] }
300IMethodSymbol methodSymbol, SyntaxNode containingMethod, Dictionary<Document, List<TExpressionSyntax>> methodCallSites, bool allOccurrences, IntroduceParameterCodeActionKind selectedCodeAction,
332protected static async Task<Dictionary<Document, List<TExpressionSyntax>>> FindCallSitesAsync(
335var methodCallSites = new Dictionary<Document, List<TExpressionSyntax>>();
368if (!methodCallSites.TryGetValue(refLocation.Document, out var list))
MetadataAsSource\AbstractMetadataAsSourceService+CompatAbstractMetadataFormattingRule.cs (6)
30public sealed override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation)
38public sealed override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation)
46public sealed override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
83public virtual void AddAnchorIndentationOperationsSlow(List<AnchorIndentationOperation> list, SyntaxNode node, ref NextAnchorIndentationOperationAction nextOperation)
89public virtual void AddIndentBlockOperationsSlow(List<IndentBlockOperation> list, SyntaxNode node, ref NextIndentBlockOperationAction nextOperation)
95public virtual void AddAlignTokensOperationsSlow(List<AlignTokensOperation> list, SyntaxNode node, ref NextAlignTokensOperationAction nextOperation)
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (14)
157using var _1 = PooledDictionary<string, List<(SyntaxTrivia pragma, bool isDisable)>>.GetInstance(out var idToPragmasMap);
166using var _5 = PooledDictionary<string, List<SyntaxNode>>.GetInstance(out var idToSuppressMessageAttributesMap);
200if (idToPragmasMap.TryGetValue(id, out var pragmas))
208if (idToSuppressMessageAttributesMap.TryGetValue(id, out var attributeNodes))
228PooledDictionary<string, List<(SyntaxTrivia pragma, bool isDisable)>> idToPragmasMap,
268if (!idToPragmasMap.TryGetValue(id, out var pragmasForIdInReverseOrder))
510PooledDictionary<string, List<(SyntaxTrivia pragma, bool isDisable)>> idToPragmasMap,
512PooledDictionary<string, List<SyntaxNode>> idToSuppressMessageAttributesMap,
546PooledDictionary<string, List<(SyntaxTrivia pragma, bool isDisable)>> idToPragmasMap,
549if (!idToPragmasMap.TryGetValue(diagnostic.Id, out var pragmasForIdInReverseOrder))
586PooledDictionary<string, List<SyntaxNode>> idToSuppressMessageAttributesMap,
591!idToSuppressMessageAttributesMap.TryGetValue(diagnostic.Id, out var suppressMessageAttributesForId))
736PooledDictionary<string, List<SyntaxNode>> idToSuppressMessageAttributesMap,
813if (!idToSuppressMessageAttributesMap.TryGetValue(id, out var nodesForId))
Microsoft.CodeAnalysis.NetAnalyzers (68)
Microsoft.CodeAnalysis.Razor.Compiler (88)
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (10)
51using var _1 = ListPool<UsingReference>.GetPooledObject(out var usingReferences);
55using var _2 = ListPool<UsingReference>.GetPooledObject(out var importedUsings);
167static bool Contains(List<UsingReference> usingReferences, ReadOnlySpan<char> usingNamespace)
197List<UsingReference> usings)
309protected readonly List<UsingReference> _usings;
319public LoweringVisitor(DocumentIntermediateNode document, IntermediateNodeBuilder builder, List<UsingReference> usings, RazorParserOptions options)
1047public LegacyFileKindVisitor(DocumentIntermediateNode document, IntermediateNodeBuilder builder, List<UsingReference> usings, RazorParserOptions options)
1625List<UsingReference> usings,
2151List<UsingReference> usings,
2257public ImportsVisitor(DocumentIntermediateNode document, IntermediateNodeBuilder builder, List<UsingReference> usings, RazorParserOptions options)
Microsoft.CodeAnalysis.Rebuild (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (117)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (2)
24public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg)
43public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\CompatAbstractFormattingRule.cs (6)
25public sealed override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation)
33public sealed override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation)
41public sealed override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
78public virtual void AddAnchorIndentationOperationsSlow(List<AnchorIndentationOperation> list, SyntaxNode node, ref NextAnchorIndentationOperationAction nextOperation)
84public virtual void AddIndentBlockOperationsSlow(List<IndentBlockOperation> list, SyntaxNode node, ref NextIndentBlockOperationAction nextOperation)
90public virtual void AddAlignTokensOperationsSlow(List<AlignTokensOperation> list, SyntaxNode node, ref NextAlignTokensOperationAction nextOperation)
Microsoft.CodeAnalysis.Scripting (17)
Microsoft.CodeAnalysis.VisualBasic (3)
Microsoft.CodeAnalysis.Workspaces (279)
Diagnostics\DiagnosticAnalysisResultBuilder.cs (10)
23private Dictionary<DocumentId, List<DiagnosticData>>? _lazySyntaxLocals = null;
24private Dictionary<DocumentId, List<DiagnosticData>>? _lazySemanticLocals = null;
25private Dictionary<DocumentId, List<DiagnosticData>>? _lazyNonLocals = null;
27private List<DiagnosticData>? _lazyOthers = null;
48ref Dictionary<DocumentId, List<DiagnosticData>>? lazyLocals, DocumentId documentId, ImmutableArray<Diagnostic> diagnostics)
93private static void AddDocumentDiagnostic(ref Dictionary<DocumentId, List<DiagnosticData>>? map, TextDocument document, Diagnostic diagnostic)
119Dictionary<DocumentId, List<DiagnosticData>>? dummy = null;
127ref Dictionary<DocumentId, List<DiagnosticData>>? lazyLocals, SyntaxTree? tree, Diagnostic diagnostic)
180ref Dictionary<DocumentId, List<DiagnosticData>>? lazyLocals, SyntaxTree? tree, ImmutableArray<Diagnostic> diagnostics)
186private static ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>> Convert(Dictionary<DocumentId, List<DiagnosticData>>? map)
Rename\ConflictEngine\RenamedSpansTracker.cs (12)
25private readonly Dictionary<DocumentId, List<(TextSpan oldSpan, TextSpan newSpan)>> _documentToModifiedSpansMap = [];
26private readonly Dictionary<DocumentId, List<MutableComplexifiedSpan>> _documentToComplexifiedSpansMap = [];
33if (!_documentToModifiedSpansMap.TryGetValue(documentId, out var spans))
42internal void AddComplexifiedSpan(DocumentId documentId, TextSpan oldSpan, TextSpan newSpan, List<(TextSpan oldSpan, TextSpan newSpan)> modifiedSubSpans)
44if (!_documentToComplexifiedSpansMap.TryGetValue(documentId, out var spans))
56var documentReplacementSpans = _documentToModifiedSpansMap.TryGetValue(documentId, out var modifiedSpans)
66var documentComplexifiedSpans = _documentToComplexifiedSpansMap.TryGetValue(documentId, out var complexifiedSpans)
122TextSpan originalSpan, TextSpan newSpan, List<(TextSpan oldSpan, TextSpan newSpan)> modifiedSubSpans)
126public List<(TextSpan oldSpan, TextSpan newSpan)> ModifiedSubSpans = modifiedSubSpans;
172if (_documentToModifiedSpansMap.TryGetValue(documentId, out var modifiedSpans))
177if (_documentToComplexifiedSpansMap.TryGetValue(documentId, out var complexifiedSpans))
197var modifiedSubSpans = new List<(TextSpan oldSpan, TextSpan newSpan)>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (2)
24public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg)
43public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\CompatAbstractFormattingRule.cs (6)
25public sealed override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation)
33public sealed override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation)
41public sealed override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
78public virtual void AddAnchorIndentationOperationsSlow(List<AnchorIndentationOperation> list, SyntaxNode node, ref NextAnchorIndentationOperationAction nextOperation)
84public virtual void AddIndentBlockOperationsSlow(List<IndentBlockOperation> list, SyntaxNode node, ref NextIndentBlockOperationAction nextOperation)
90public virtual void AddAlignTokensOperationsSlow(List<AlignTokensOperation> list, SyntaxNode node, ref NextAlignTokensOperationAction nextOperation)
Workspace\ProjectSystem\ProjectSystemProject.cs (18)
52private readonly List<(string path, MetadataReferenceProperties properties)> _metadataReferencesAddedInBatch = [];
53private readonly List<(string path, MetadataReferenceProperties properties)> _metadataReferencesRemovedInBatch = [];
54private readonly List<ProjectReference> _projectReferencesAddedInBatch = [];
55private readonly List<ProjectReference> _projectReferencesRemovedInBatch = [];
70private readonly List<string> _analyzersAddedInBatch = [];
75private readonly List<string> _analyzersRemovedInBatch = [];
77private readonly List<Func<SolutionChangeAccumulator, ProjectUpdateState, ProjectUpdateState>> _projectPropertyModificationsInBatch = [];
651List<(string path, MetadataReferenceProperties properties)> metadataReferencesRemovedInBatch,
652List<(string path, MetadataReferenceProperties properties)> metadataReferencesAddedInBatch)
689var projectReferencesCreated = new List<ProjectReference>();
723List<ProjectReference> projectReferencesRemovedInBatch,
724List<ProjectReference> projectReferencesAddedInBatch)
742List<string> analyzersRemovedInBatch,
743List<string> analyzersAddedInBatch)
762List<string> analyzersRemoved,
763List<string> analyzersAdded)
1182var newList = projectReferencesInWorkspace.ToList();
1278private static void ClearAndZeroCapacity<T>(List<T> list)
Microsoft.CodeAnalysis.Workspaces.MSBuild (8)
Rpc\RpcClient.cs (4)
122public Task InvokeAsync(int targetObject, string methodName, List<object?> parameters, CancellationToken cancellationToken)
128public async Task<T?> InvokeNullableAsync<T>(int targetObject, string methodName, List<object?> parameters, CancellationToken cancellationToken) where T : class
134public async Task<T> InvokeAsync<T>(int targetObject, string methodName, List<object?> parameters, CancellationToken cancellationToken) where T : notnull
141private async Task<object?> InvokeCoreAsync(int targetObject, string methodName, List<object?> parameters, Type? expectedReturnType, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (9)
Microsoft.CSharp (79)
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (15)
185private bool GetSpecialBinopSignatures(List<BinOpFullSig> prgbofs, BinOpArgInfo info)
202private bool GetStandardAndLiftedBinopSignatures(List<BinOpFullSig> rgbofs, BinOpArgInfo info)
408List<BinOpFullSig> binopSignatures,
513List<BinOpFullSig> binopSignatures = new List<BinOpFullSig>();
710private bool GetDelBinOpSigs(List<BinOpFullSig> prgbofs, BinOpArgInfo info)
824private static void RecordBinOpSigFromArgs(List<BinOpFullSig> prgbofs, BinOpArgInfo info)
861private bool GetEnumBinOpSigs(List<BinOpFullSig> prgbofs, BinOpArgInfo info)
934private bool GetRefEqualSigs(List<BinOpFullSig> prgbofs, BinOpArgInfo info)
1208List<UnaOpFullSig> pSignatures = new List<UnaOpFullSig>();
1322private UnaryOperatorSignatureFindResult PopulateSignatureList(Expr pArgument, UnaOpKind unaryOpKind, UnaOpMask unaryOpMask, ExpressionKind exprKind, EXPRFLAG flags, List<UnaOpFullSig> pSignatures, out Expr ppResult)
1417List<UnaOpFullSig> pSignatures)
2510private bool UserDefinedBinaryOperatorIsApplicable(List<CandidateFunctionMember> candidateList,
2550List<CandidateFunctionMember> candidateList, ExpressionKind ek, AggregateType type,
2571List<CandidateFunctionMember> candidateList, ExpressionKind ek, AggregateType type,
2589List<CandidateFunctionMember> methFirst = new List<CandidateFunctionMember>();
Microsoft.Data.Analysis (64)
DataFrame.cs (15)
200List<DataFrameColumn> newColumns = new List<DataFrameColumn>(Columns.Count);
543List<object> cachedObjectConversions = new List<object>();
624List<object> cachedObjectConversions = new List<object>();
756var idColumnList = idColumns.ToList();
765var valueColumnList = valueColumns?.ToList()
824var outputCols = InitializeIdColumns(idColumnList, totalOutputRows);
836private long CalculateTotalOutputRows(List<string> valueColumnList, bool dropNulls)
861private List<DataFrameColumn> InitializeIdColumns(List<string> idColumnList, long size)
864var outputCols = new List<DataFrameColumn>(idColumnList.Count);
877private DataFrameColumn CreateValueColumn(List<string> valueColumnList, string valueName, long size)
901private void FillMeltedData(List<string> idColumnList, List<string> valueColumnList, List<DataFrameColumn> outputIdCols, StringDataFrameColumn variableColumn, DataFrameColumn valueColumn, bool dropNulls)
952List<DataFrameColumn> newColumns = new List<DataFrameColumn>(Columns.Count);
Microsoft.Data.Analysis.Interactive (8)
Microsoft.Data.Analysis.Interactive.Tests (1)
Microsoft.Data.Analysis.Tests (10)
DataFrameTests.cs (3)
327List<int> verify = new List<int>() { 0, 3, 1, 4, 2, 5 };
349List<int> originalColumnVerify = new List<int>() { 6, 8, 7, 9 };
350List<int> tailColumnVerity = new List<int>() { 1, 2, 4, 5 };
Microsoft.Deployment.DotNet.Releases (8)
Microsoft.Diagnostics.DataContractReader (2)
Microsoft.Diagnostics.DataContractReader.Abstractions (3)
Microsoft.Diagnostics.DataContractReader.Contracts (78)
Contracts\GC\GC_1.cs (22)
50private List<AllocContext>? _allocContexts;
221private List<GCGenerationData> GetGenerationData(TargetPointer generationTableArrayStart)
225List<Data.Generation> generationTable = [];
231List<GCGenerationData> generationDataList = generationTable.Select(gen =>
242private List<TargetPointer> GetFillPointers(Data.CFinalize cFinalize)
246List<TargetPointer> fillPointers = [];
252private List<TargetNUInt> ReadGCHeapDataArray(TargetPointer arrayStart, uint length)
254List<TargetNUInt> arr = [];
330List<HandleData> IGC.GetHandles(HandleType[] types)
332List<HandleType> typesList = types.ToList();
334List<HandleData> handles = new();
476private List<AllocContext> GetAllocContexts()
481List<AllocContext> contexts = new();
543List<HandleType> supportedTypes =
566List<HandleType> handleTypes = new();
609private void GetHandlesForSegment(Data.TableSegment tableSegment, HandleType type, List<HandleData> handles)
625private void GetHandlesForBlock(Data.TableSegment tableSegment, byte uBlock, HandleType type, List<HandleData> handles)
683List<GCMemoryRegionData> regions = new();
738List<GCMemoryRegionData> regions = new();
793List<GCMemoryRegionData> regions = new();
907private void AddFreeList(TargetPointer freeListAddr, FreeRegionKind kind, List<GCMemoryRegionData> regions, int heap = 0)
914private void AddSegmentList(TargetPointer start, FreeRegionKind kind, List<GCMemoryRegionData> regions, int heap = 0)
Microsoft.Diagnostics.DataContractReader.DataGenerator (8)
Microsoft.Diagnostics.DataContractReader.Legacy (87)
Dbi\DacDbiImpl.cs (41)
789List<ulong>? cdacAssemblies = _legacy is not null ? new() : null;
822List<ulong> dacAssemblies = new();
1024List<ulong>? cdacThreads = _legacy is not null ? new() : null;
1054List<ulong> dacThreads = new();
1075((List<ulong>)handle.Target!).Add(value);
1626List<NativeVarInfo> cdacVarInfos = new();
1627List<DbiOffsetMapping> cdacSeqPoints = new();
2379List<Debugger_STRData>? cdacFrames = _legacy is not null ? new() : null;
2431List<Debugger_STRData> dacFrames = new();
2463((List<Debugger_STRData>)handle.Target!).Add(*data);
3126List<FieldData>? cdacFields = null;
3180List<FieldData>? cdacFields = null;
3231List<FieldData>? cdacFields)
3265List<FieldData>? cdacFields)
3352((List<FieldData>)handle.Target!).Add(*data);
3357private static void ValidateEnumerateFieldsAgainstLegacy(string label, nuint cdacObjectSize, List<FieldData>? cdacFields, int hr, LegacyEnumerateFieldsFn legacyEnumerate)
3359List<FieldData> dacFields = new();
3372private static void AssertFieldListsEqual(List<FieldData>? cdacFields, List<FieldData> dacFields, string label)
3734List<DebuggerIPCE_ExpandedTypeData> entries = new();
3858List<DebuggerIPCE_ExpandedTypeData> legacyEntries = DebugExpandedTypeInfo;
4078List<DebuggerIPCE_ExpandedTypeData> entries = new();
4113List<DebuggerIPCE_ExpandedTypeData> legacyEntries = DebugExpandedTypeInfo;
4137private static List<DebuggerIPCE_ExpandedTypeData>? _debugExpandedTypeInfo;
4139private static List<DebuggerIPCE_ExpandedTypeData> DebugExpandedTypeInfo
4239private static List<(ulong VmAppDomain, ulong VmAssembly, ulong Ip, uint MethodDef, Interop.BOOL IsLastForeignExceptionFrame)>? _debugEnumerateStackFramesFromException;
4241private static List<(ulong VmAppDomain, ulong VmAssembly, ulong Ip, uint MethodDef, Interop.BOOL IsLastForeignExceptionFrame)> DebugEnumerateStackFramesFromException
4256List<(ulong VmAppDomain, ulong VmAssembly, ulong Ip, uint MethodDef, Interop.BOOL IsLastForeignExceptionFrame)> frames = new();
4290List<(ulong VmAppDomain, ulong VmAssembly, ulong Ip, uint MethodDef, Interop.BOOL IsLastForeignExceptionFrame)> legacyFrames = DebugEnumerateStackFramesFromException;
4334private static List<ulong>? _debugEnumerateRcwCachedInterfacePointers;
4336private static List<ulong> DebugEnumerateRcwCachedInterfacePointers
4350List<ulong> itfPtrs = new();
4386List<ulong> legacyItfPtrs = DebugEnumerateRcwCachedInterfacePointers;
5067private static List<(ulong Start, ulong End, int Generation, uint Heap)>? _debugEnumerateHeapSegments;
5069private static List<(ulong Start, ulong End, int Generation, uint Heap)> DebugEnumerateHeapSegments
5083List<(ulong Start, ulong End, int Generation, uint Heap)> segments = new();
5143List<(ulong Start, ulong End, int Generation, uint Heap)> legacySegments = DebugEnumerateHeapSegments;
6421private static List<AsyncLocalData>? _debugEnumerateAsyncLocals;
6423private static List<AsyncLocalData> DebugEnumerateAsyncLocals
6439List<AsyncLocalData> locals = new();
6503List<AsyncLocalData> legacyLocals = DebugEnumerateAsyncLocals;
Microsoft.Diagnostics.NETCore.Client (8)
Microsoft.DiaSymReader (2)
Microsoft.DotNet.ApiCompat.Task (6)
Microsoft.DotNet.ApiCompatibility (26)
Mapping\AssemblyMapper.cs (6)
49Dictionary<INamespaceSymbol, List<INamedTypeSymbol>> typeForwards = ResolveTypeForwards(assemblyContainer, side, Settings.SymbolEqualityComparer, setIndex);
56bool hasTypeForwards = typeForwards.TryGetValue(nsSymbol, out List<INamedTypeSymbol>? types);
79foreach (KeyValuePair<INamespaceSymbol, List<INamedTypeSymbol>> kvp in typeForwards)
102Dictionary<INamespaceSymbol, List<INamedTypeSymbol>> ResolveTypeForwards(ElementContainer<IAssemblySymbol> assembly,
107Dictionary<INamespaceSymbol, List<INamedTypeSymbol>> typeForwards = new(comparer);
112if (!typeForwards.TryGetValue(symbol.ContainingNamespace, out List<INamedTypeSymbol>? types))
Rules\RuleContext.cs (4)
13private readonly List<Action<IAssemblySymbol?, IAssemblySymbol?, MetadataInformation, MetadataInformation, bool, IList<CompatDifference>>> _onAssemblySymbolActions = [];
14private readonly List<Action<ITypeSymbol?, ITypeSymbol?, MetadataInformation, MetadataInformation, IList<CompatDifference>>> _onTypeSymbolActions = [];
15private readonly List<Action<ISymbol?, ISymbol?, MetadataInformation, MetadataInformation, IList<CompatDifference>>> _onMemberSymbolActions = [];
16private readonly List<Action<ISymbol?, ISymbol?, ITypeSymbol, ITypeSymbol, MetadataInformation, MetadataInformation, IList<CompatDifference>>> _onMemberSymbolWithContainingTypeActions = [];
Microsoft.DotNet.ApiSymbolExtensions (8)
Microsoft.DotNet.Arcade.Sdk (2)
Microsoft.DotNet.Build.Manifest (6)
Microsoft.DotNet.Build.Tasks.FileCatalog (7)
Microsoft.DotNet.Build.Tasks.Installers (45)
src\RpmBuilder.cs (38)
20private readonly List<(string capability, string version)> _provides = [];
21private readonly List<string> _conflicts = [];
23private readonly List<(string name, string text)> _changelogLines = [];
25private readonly List<(string name, int flags, string version)> _requires = [
41private List<RpmHeader<RpmHeaderTag>.Entry> PackageEntries { get; } = [
155private readonly List<(CpioEntry file, string fileKind, bool isGhost)> _files = [];
173private readonly List<(string script, int senseFlags, IReadOnlyList<string> paths)> _fileTriggers = [];
174private readonly List<(string script, int senseFlags, IReadOnlyList<string> paths)> _transFileTriggers = [];
239List<RpmHeader<RpmHeaderTag>.Entry> entries,
240List<(string script, int senseFlags, IReadOnlyList<string> paths)> triggers,
249List<string> triggerScripts = [];
250List<string> triggerScriptProgs = [];
251List<int> triggerScriptFlags = [];
252List<int> triggerPriorities = [];
253List<string> triggerNames = [];
254List<string> triggerVersions = [];
255List<int> triggerFlags = [];
256List<int> triggerIndices = [];
311List<RpmHeader<RpmHeaderTag>.Entry> entries = [..PackageEntries];
359List<string> fileDigests = [];
360List<string> baseNames = [];
361List<int> directoryNameIndices = [];
362List<string> directories = [];
363List<int> fileClassIndices = [];
364List<string> fileClassDictionary = [];
365List<int> inodes = [];
366List<int> fileSizes = [];
367List<string> fileUserAndGroupNames = [];
368List<short> fileModes = [];
369List<short> deviceFileIds = [];
370List<int> fileTimestamps = [];
371List<int> fileVerifyFlags = [];
372List<int> fileDevices = [];
373List<string> fileLangs = [];
374List<int> fileColors = [];
375List<int> fileFlags = [];
376List<string> fileLinkTos = [];
533List<RpmHeader<RpmSignatureTag>.Entry> signatureEntries = [
Microsoft.DotNet.Build.Tasks.Packaging (47)
Microsoft.DotNet.Build.Tasks.TargetFramework (2)
Microsoft.DotNet.Build.Tasks.Workloads (4)
Microsoft.DotNet.Cli.Definitions (11)
Microsoft.DotNet.Cli.Telemetry (31)
Microsoft.DotNet.Cli.Utils (10)
Microsoft.DotNet.CMake.Sdk (6)
Microsoft.DotNet.GenFacades (2)
Microsoft.DotNet.HotReload.Utils.Generator (5)
Microsoft.DotNet.HotReload.Watch (38)
Microsoft.DotNet.HotReload.WebAssembly.Browser (13)
Microsoft.DotNet.MacOsPkg.Core (1)
Microsoft.DotNet.NativeWrapper (2)
Microsoft.DotNet.NuGetRepack.Tasks (3)
Microsoft.DotNet.PackageTesting (7)
Microsoft.DotNet.SharedFramework.Sdk (6)
Microsoft.DotNet.StrongName (1)
Microsoft.DotNet.TemplateLocator (19)
Microsoft.DotNet.XliffTasks (4)
Microsoft.Extensions.AI (112)
ChatCompletion\FunctionInvokingChatClient.cs (44)
289List<ChatMessage> originalMessages = [.. messages];
292List<ChatMessage>? augmentedHistory = null; // the actual history of messages sent on turns other than the first
294List<ChatMessage>? responseMessages = null; // tracked list of messages, across multiple turns, to be used for the final response
296List<FunctionCallContent>? functionCallContents = null; // function call contents that need responding to in the current turn
309(responseMessages, var notInvokedApprovals, int approvedResultInsertIndex) = ProcessFunctionApprovalResponses(
450List<ChatMessage> originalMessages = [.. messages];
453List<ChatMessage>? augmentedHistory = null; // the actual history of messages sent on turns other than the first
454List<FunctionCallContent>? functionCallContents = null; // function call contents that need responding to in the current turn
455List<ChatMessage>? responseMessages = null; // tracked list of messages, across multiple turns, to be used in fallback cases to reconstitute history
457List<ChatResponseUpdate> updates = []; // updates from the current response
624if (TryReplaceFunctionCallsWithApprovalRequests(updateToYield.Contents, approvalRequiredFunctions, out var updatedContents))
748[NotNull] ref List<ChatMessage>? augmentedHistory,
750List<ChatMessage> allTurnsResponseMessages,
865private static bool HasAnyFunctionApproval(List<ChatMessage> messages) =>
889IList<ChatMessage> messages, [NotNullWhen(true)] ref List<FunctionCallContent>? functionCalls)
903IList<AIContent> content, [NotNullWhen(true)] ref List<FunctionCallContent>? functionCalls)
968private static void MarkServerHandledFunctionCalls(List<ChatResponseUpdate> updates, List<FunctionCallContent>? functionCallContents)
1063List<AITool>? remainingTools = null;
1091private bool ShouldTerminateLoopBasedOnHandleableFunctions(List<FunctionCallContent>? functionCalls, ChatOptions? options)
1163List<ChatMessage> messages, ChatOptions? options,
1164List<FunctionCallContent> functionCallContents, int iteration, int consecutiveErrorCount,
1174var results = await Processor.ProcessFunctionCallsAsync(
1270var contents = new List<AIContent>(results.Length);
1334private (List<ChatMessage>? preDownstreamCallHistory, List<ApprovalResultWithRequestMessage>? approvals, int approvedResultInsertIndex) ProcessFunctionApprovalResponses(
1335List<ChatMessage> originalMessages, bool hasConversationId, string? toolMessageId, string? functionCallContentFallbackMessageId)
1383List<AIContent>? rejectedFunctionCallResults = GenerateRejectedFunctionResults(notInvokedResponses.rejections);
1391List<ChatMessage>? preDownstreamCallHistory = null;
1425private (List<ApprovalResultWithRequestMessage>? approvals, List<ApprovalResultWithRequestMessage>? rejections) ExtractAndRemoveApprovalRequestsAndResponses(
1426List<ChatMessage> messages)
1429List<ToolApprovalResponseContent>? allApprovalResponses = null;
1444List<AIContent>? keptContents = null;
1513List<ApprovalResultWithRequestMessage>? approvedFunctionCalls = null, rejectedFunctionCalls = null;
1527ref List<ApprovalResultWithRequestMessage>? targetList = ref approvalResponse.Approved ? ref approvedFunctionCalls : ref rejectedFunctionCalls;
1549private List<AIContent>? GenerateRejectedFunctionResults(List<ApprovalResultWithRequestMessage>? rejections) =>
1577List<ApprovalResultWithRequestMessage>? resultWithRequestMessages, string? fallbackMessageId)
1662List<FunctionCallContent>? functionCallContents,
1700out List<AIContent>? updatedContent)
1744List<(int MessageIndex, int ContentIndex, bool RequiresConfirmation)>? allFunctionCallContentIndices = null;
1811List<ApprovalResultWithRequestMessage>? notInvokedApprovals,
1812List<ChatMessage> originalMessages,
Microsoft.Extensions.AI.Abstractions (11)
Microsoft.Extensions.AI.Abstractions.Tests (78)
Microsoft.Extensions.AI.Evaluation (2)
Microsoft.Extensions.AI.Evaluation.Console (1)
Microsoft.Extensions.AI.Evaluation.Integration.Tests (9)
Microsoft.Extensions.AI.Evaluation.NLP (9)
Microsoft.Extensions.AI.Evaluation.Quality (33)
Microsoft.Extensions.AI.Evaluation.Reporting (1)
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (3)
Microsoft.Extensions.AI.Evaluation.Safety (17)
Microsoft.Extensions.AI.Integration.Tests (36)
Microsoft.Extensions.AI.OpenAI (45)
Microsoft.Extensions.AI.OpenAI.Tests (121)
Microsoft.Extensions.AI.Stabilization.Tests (14)
Microsoft.Extensions.AI.Templates.Tests (1)
Microsoft.Extensions.AI.Tests (375)
ChatCompletion\FunctionInvokingChatClientApprovalsTests.cs (144)
34List<ChatMessage> input =
39List<ChatMessage> downstreamClientOutput =
44List<ChatMessage> expectedOutput =
70List<ChatMessage> input =
75List<ChatMessage> downstreamClientOutput =
80List<ChatMessage> expectedOutput =
117List<ChatMessage> input =
122List<ChatMessage> downstreamClientOutput =
129List<ChatMessage> expectedOutput =
167List<ChatMessage> input =
172List<ChatMessage> downstreamClientOutput =
180List<ChatMessage> expectedOutput =
212List<ChatMessage> input =
217List<ChatMessage> downstreamClientOutput =
225List<ChatMessage> expectedOutput =
254List<ChatMessage> input =
269List<ChatMessage> expectedDownstreamClientInput =
276List<ChatMessage> downstreamClientOutput =
281List<ChatMessage> output =
306List<ChatMessage> input =
322List<ChatMessage> expectedDownstreamClientInput =
329List<ChatMessage> downstreamClientOutput =
334List<ChatMessage> output =
358List<ChatMessage> input =
379List<ChatMessage> expectedDownstreamClientInput =
387List<ChatMessage> downstreamClientOutput =
392List<ChatMessage> output =
417List<ChatMessage> input =
432List<ChatMessage> expectedDownstreamClientInput =
443List<ChatMessage> downstreamClientOutput =
448List<ChatMessage> output =
476List<ChatMessage> input =
491List<ChatMessage> expectedDownstreamClientInput =
499List<ChatMessage> downstreamClientOutput =
504List<ChatMessage> nonStreamingOutput =
512List<ChatMessage> streamingOutput =
540List<ChatMessage> input =
561List<ChatMessage> expectedDownstreamClientInput =
572List<ChatMessage> downstreamClientOutput =
577List<ChatMessage> output =
606List<ChatMessage> input =
623List<ChatMessage> expectedDownstreamClientInput =
640List<ChatMessage> downstreamClientOutput =
645List<ChatMessage> nonStreamingOutput =
662List<ChatMessage> streamingOutput =
698List<ChatMessage> input =
714List<ChatMessage> expectedDownstreamClientInput =
724List<ChatMessage> downstreamClientOutput =
729List<ChatMessage> output =
756List<ChatMessage> input =
771List<ChatMessage> expectedDownstreamClientInput =
778List<ChatMessage> downstreamClientOutput =
783List<ChatMessage> output =
810List<ChatMessage> input =
835List<ChatMessage> expectedDownstreamClientInput =
844List<ChatMessage> downstreamClientOutput =
849List<ChatMessage> output =
889List<ChatMessage> input =
961List<ChatMessage> input =
1026List<ChatMessage> input =
1031Func<Queue<List<ChatMessage>>> expectedDownstreamClientInput = () => new Queue<List<ChatMessage>>(
1045Func<Queue<List<ChatMessage>>> downstreamClientOutput = () => new Queue<List<ChatMessage>>(
1057List<ChatMessage> output =
1081List<ChatMessage> input =
1111List<ChatMessage> input =
1121List<ChatMessage> expectedDownstreamClientInput =
1128List<ChatMessage> downstreamClientOutput =
1133List<ChatMessage> output =
1158List<ChatMessage> input =
1167List<ChatMessage> expectedDownstreamClientInput =
1172List<ChatMessage> downstreamClientOutput =
1177List<ChatMessage> output =
1202List<ChatMessage> input =
1215List<ChatMessage> expectedDownstreamClientInput =
1221List<ChatMessage> downstreamClientOutput =
1226List<ChatMessage> output =
1252List<ChatMessage> input =
1263List<ChatMessage> expectedDownstreamClientInput =
1269List<ChatMessage> downstreamClientOutput =
1274List<ChatMessage> output =
1297List<ChatMessage> input =
1315List<ChatMessage> expectedDownstreamClientInput =
1323List<ChatMessage> downstreamClientOutput =
1328List<ChatMessage> output =
1352List<ChatMessage> input =
1366List<ChatMessage> expectedDownstreamClientInput =
1374List<ChatMessage> downstreamClientOutput =
1379List<ChatMessage> output =
1410List<ChatMessage> input =
1423List<ChatMessage> expectedOutput =
1467List<ChatMessage> input = [new ChatMessage(ChatRole.User, "hello")];
1543List<ChatMessage> input = [new ChatMessage(ChatRole.User, "hello")];
1641List<ChatMessage> input = [new ChatMessage(ChatRole.User, "hello")];
1645List<ChatMessage> downstreamClientOutput =
1651List<ChatMessage> expectedOutput =
1683List<ChatMessage> input =
1696List<ChatMessage> downstreamClientOutput =
1702List<ChatMessage> expectedOutput =
1709var actualOutput = await InvokeAndAssertAsync(options, input, downstreamClientOutput, expectedOutput);
1734List<ChatMessage> input =
1739List<ChatMessage> downstreamClientOutput =
1748List<ChatMessage> expectedOutput =
1777List<ChatMessage> input =
1792List<ChatMessage> expectedDownstreamClientInput =
1813List<ChatMessage> downstreamClientOutput =
1821List<ChatMessage> output =
1861List<ChatMessage> input =
1876List<ChatMessage> expectedDownstreamClientInput = [
1898List<ChatMessage> downstreamClientOutput =
1908List<ChatMessage> output = [
1931private static Task<List<ChatMessage>> InvokeAndAssertAsync(
1933List<ChatMessage> input,
1934List<ChatMessage> downstreamClientOutput,
1935List<ChatMessage> expectedOutput,
1936List<ChatMessage>? expectedDownstreamClientInput = null,
1942new Queue<List<ChatMessage>>(new[] { downstreamClientOutput }),
1944expectedDownstreamClientInput is null ? null : new Queue<List<ChatMessage>>(new[] { expectedDownstreamClientInput }),
1948private static async Task<List<ChatMessage>> InvokeAndAssertMultiRoundAsync(
1950List<ChatMessage> input,
1951Queue<List<ChatMessage>> downstreamClientOutput,
1952List<ChatMessage> expectedOutput,
1953Queue<List<ChatMessage>>? expectedDownstreamClientInput = null,
1979var output = downstreamClientOutput.Dequeue();
1990var actualOutput = result.Messages as List<ChatMessage> ?? result.Messages.ToList();
2019private static Task<List<ChatMessage>> InvokeAndAssertStreamingAsync(
2021List<ChatMessage> input,
2022List<ChatMessage> downstreamClientOutput,
2023List<ChatMessage> expectedOutput,
2024List<ChatMessage>? expectedDownstreamClientInput = null,
2030new Queue<List<ChatMessage>>(new[] { downstreamClientOutput }),
2032expectedDownstreamClientInput is null ? null : new Queue<List<ChatMessage>>(new[] { expectedDownstreamClientInput }),
2036private static async Task<List<ChatMessage>> InvokeAndAssertStreamingMultiRoundAsync(
2038List<ChatMessage> input,
2039Queue<List<ChatMessage>> downstreamClientOutput,
2040List<ChatMessage> expectedOutput,
2041Queue<List<ChatMessage>>? expectedDownstreamClientInput = null,
2061var output = downstreamClientOutput.Dequeue();
2072var actualOutput = result.Messages as List<ChatMessage> ?? result.Messages.ToList();
2089private static List<ChatMessage> CloneInput(List<ChatMessage> input) =>
Functions\AIFunctionFactoryTest.cs (9)
40Assert.Throws<ArgumentException>("method", () => AIFunctionFactory.Create(typeof(List<>).GetMethod("Add")!, new List<int>()));
1191await ValidateAsync<List<AIContent>>(
1193AIFunctionFactory.Create(() => (List<AIContent>)[new TextContent("text"), new DataContent(new byte[] { 1, 2, 3 }, "application/octet-stream")]),
1194AIFunctionFactory.Create(async () => (List<AIContent>)[new TextContent("text"), new DataContent(new byte[] { 1, 2, 3 }, "application/octet-stream")]),
1195AIFunctionFactory.Create(async ValueTask<List<AIContent>> () => (List<AIContent>)[new TextContent("text"), new DataContent(new byte[] { 1, 2, 3 }, "application/octet-stream")]),
1202AIFunctionFactory.Create(async ValueTask<IList<AIContent>> () => (List<AIContent>)[new TextContent("text"), new DataContent(new byte[] { 1, 2, 3 }, "application/octet-stream")]),
1583List<string> requiredParams = required.EnumerateArray().Select(e => e.GetString()!).ToList();
1645List<string> requiredParams = required.EnumerateArray().Select(e => e.GetString()!).ToList();
Microsoft.Extensions.AmbientMetadata.Application (3)
Microsoft.Extensions.AmbientMetadata.Build (1)
Microsoft.Extensions.AsyncState (17)
Microsoft.Extensions.AsyncState.Tests (4)
Microsoft.Extensions.Caching.Abstractions (4)
Microsoft.Extensions.Caching.Hybrid.Tests (6)
SerializerTests.cs (4)
109List<(int, string)> source = [(1, "a"), (2, "b")];
110var clone = RoundTrip(source, """[{"Item1":1,"Item2":"a"},{"Item1":2,"Item2":"b"}]"""u8, JsonSerializer.FieldEnabled);
125List<Tuple<int, string>> source = [Tuple.Create(1, "a"), Tuple.Create(2, "b")];
126var clone = RoundTrip(source, """[{"Item1":1,"Item2":"a"},{"Item1":2,"Item2":"b"}]"""u8, JsonSerializer.Default);
Microsoft.Extensions.Caching.Memory (16)
Microsoft.Extensions.Compliance.Abstractions (11)
Microsoft.Extensions.Compliance.Redaction (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
110List<string>? temp = null;
Microsoft.Extensions.Compliance.Testing (5)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
105List<string>? temp = null;
Microsoft.Extensions.Configuration (24)
Microsoft.Extensions.Configuration.Binder (9)
Microsoft.Extensions.Configuration.Binder.SourceGeneration (17)
Microsoft.Extensions.Configuration.Xml (5)
Microsoft.Extensions.DataIngestion (19)
Microsoft.Extensions.DataIngestion.Tests (32)
Microsoft.Extensions.DependencyInjection (26)
Microsoft.Extensions.DependencyInjection.Abstractions (1)
Microsoft.Extensions.DependencyModel (43)
Microsoft.Extensions.Diagnostics (13)
Tracing\DefaultActivitySourceFactory.cs (9)
134List<TracingRule> rules = options.Rules;
232public void UpdateRules(List<TracingRule> rules, bool overwrite = true)
340private SourceFilterState ComputeFilterState(List<TracingRule> rules, string sourceName, bool isLocalScope)
371private bool IsOperationEnabled(List<TracingRule> rules, string sourceName, bool isLocalScope, string operationName)
412private static TracingRule? GetMostSpecificRule(List<TracingRule> rules, string sourceName, string? operationName, string? listenerName, bool isLocalScope, bool considerOperationName)
574public ListenerState(List<TracingRule> rules, bool hasOperationNameRules, Dictionary<(string Name, bool IsLocalScope), SourceFilterState> sourceFilterStates)
581public List<TracingRule> Rules { get; }
590public static ListenerState Create(List<TracingRule> rules)
596private static bool ComputeHasOperationNameRules(List<TracingRule> rules)
Microsoft.Extensions.Diagnostics.Abstractions (1)
Microsoft.Extensions.Diagnostics.ExceptionSummarization (1)
Microsoft.Extensions.Diagnostics.ExceptionSummarization.Tests (2)
Microsoft.Extensions.Diagnostics.HealthChecks (5)
Microsoft.Extensions.Diagnostics.HealthChecks.Common (12)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
112List<string>? temp = null;
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (1)
Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization (5)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
205List<string>? temp = null;
Microsoft.Extensions.Diagnostics.Probes (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
187List<string>? temp = null;
Microsoft.Extensions.Diagnostics.ResourceMonitoring (21)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
217List<string>? temp = null;
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Kubernetes.Tests (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (10)
Microsoft.Extensions.Diagnostics.Testing (8)
Microsoft.Extensions.Diagnostics.Testing.Tests (6)
Microsoft.Extensions.DotNetDeltaApplier (13)
Microsoft.Extensions.FileProviders.Composite (3)
Microsoft.Extensions.FileProviders.Embedded (6)
Microsoft.Extensions.FileSystemGlobbing (23)
Microsoft.Extensions.Hosting (22)
Microsoft.Extensions.Hosting.Testing.Tests (2)
Microsoft.Extensions.Http (5)
Microsoft.Extensions.Http.Diagnostics (20)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
112List<string>? temp = null;
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (1)
Microsoft.Extensions.Http.Diagnostics.Tests (39)
Logging\HttpClientLoggerTest.cs (6)
132It.IsAny<List<KeyValuePair<string, string>>>(),
533It.IsAny<List<KeyValuePair<string, string>>>(),
535.Returns((LogRecord a, HttpRequestMessage b, List<KeyValuePair<string, string>> c, CancellationToken d) =>
542It.IsAny<List<KeyValuePair<string, string>>>(),
766var enrichers = new List<IHttpClientLogEnricher> { enricher1.Object, enricher2.Object };
984.Setup(r => r.ReadResponseAsync(It.IsAny<LogRecord>(), It.IsAny<HttpResponseMessage>(), It.IsAny<List<KeyValuePair<string, string>>?>(), It.IsAny<CancellationToken>()))
Logging\HttpHeadersReaderTest.cs (9)
28var buffer = new List<KeyValuePair<string, string>>();
66var buffer = new List<KeyValuePair<string, string>>();
82var requestBuffer = new List<KeyValuePair<string, string>>();
83var responseBuffer = new List<KeyValuePair<string, string>>();
149List<KeyValuePair<string, string>> expectedRequest = [new KeyValuePair<string, string>("Header1", "Value.1")];
150List<KeyValuePair<string, string>> expectedResponse = [new KeyValuePair<string, string>("Header3", "Value.3")];
160List<KeyValuePair<string, string>> requestBuffer = [];
164List<KeyValuePair<string, string>> responseBuffer = [];
175List<KeyValuePair<string, string>>? responseBuffer = null;
Logging\HttpRequestReaderTest.cs (18)
103var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
104var responseHeadersBuffer = new List<KeyValuePair<string, string>>();
162var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
163var responseHeadersBuffer = new List<KeyValuePair<string, string>>();
234var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
235var responseHeadersBuffer = new List<KeyValuePair<string, string>>();
310var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
311var responseHeadersBuffer = new List<KeyValuePair<string, string>>();
371var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
372var responseHeadersBuffer = new List<KeyValuePair<string, string>>();
443var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
444var responseHeadersBuffer = new List<KeyValuePair<string, string>>();
512var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
513var responseHeadersBuffer = new List<KeyValuePair<string, string>>();
582var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
583var responseHeadersBuffer = new List<KeyValuePair<string, string>>();
669var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
909var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
Microsoft.Extensions.Http.Resilience (41)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
590List<string>? temp = null;
Microsoft.Extensions.Http.Resilience.Tests (14)
Microsoft.Extensions.Identity.Core (16)
Microsoft.Extensions.Identity.Stores (1)
Microsoft.Extensions.Localization (1)
Microsoft.Extensions.Logging (16)
Logger.cs (10)
35List<Exception>? exceptions = null;
52static void LoggerLog(LogLevel logLevel, EventId eventId, ILogger logger, Exception? exception, Func<TState, Exception?, string> formatter, ref List<Exception>? exceptions, in TState state)
74List<Exception>? exceptions = null;
97static bool LoggerIsEnabled(LogLevel logLevel, ILogger logger, ref List<Exception>? exceptions)
131List<Exception>? exceptions = null;
155private static void ThrowLoggingError(List<Exception> exceptions)
172public List<LoggerProviderDebugView> Providers
176List<LoggerProviderDebugView> providers = new List<LoggerProviderDebugView>();
209public List<object?>? Scopes
219List<object?> scopes = new List<object?>();
Microsoft.Extensions.Logging.Abstractions (3)
Microsoft.Extensions.Logging.AzureAppServices (1)
Microsoft.Extensions.Logging.Console (2)
Microsoft.Extensions.Logging.EventLog (1)
Microsoft.Extensions.Logging.EventSource (1)
Microsoft.Extensions.Logging.Generators (12)
Microsoft.Extensions.Logging.MSBuild (5)
MSBuildLogger.cs (5)
99var unprocessedKeyValues = ProcessState(state, ref message, out string? originalFormat);
112private static void ProcessScope(object? scope, ref MSBuildMessageParameters message, ref string? originalFormat, List<KeyValuePair<string, object?>>? unprocessedKeyValues)
172private static void ApplyUnprocessedItemsToMessage(List<KeyValuePair<string, object?>>? unprocessedStateItems, string originalFormat, SpanBasedStringBuilder builder)
189private static List<KeyValuePair<string, object?>>? ProcessState<TState>(TState state, ref MSBuildMessageParameters message, out string? originalFormat)
192List<KeyValuePair<string, object?>>? unmappedStateItems = null;
Microsoft.Extensions.Options (9)
Microsoft.Extensions.Options.Contextual (2)
Microsoft.Extensions.Options.Contextual.Tests (81)
ContextualOptionsFactoryTests.cs (81)
23var sut = new ContextualOptionsFactory<List<string>>(
24Enumerable.Empty<ILoadContextualOptions<List<string>>>(),
25Enumerable.Empty<IConfigureOptions<List<string>>>(),
26Enumerable.Empty<IPostConfigureOptions<List<string>>>(),
27Enumerable.Empty<IValidateOptions<List<string>>>());
29var result = await new ContextualOptions<List<string>, IOptionsContext>(sut).GetAsync(Mock.Of<IOptionsContext>(), default);
37var sut = new ContextualOptionsFactory<List<string>>(
38Enumerable.Empty<ILoadContextualOptions<List<string>>>(),
39Enumerable.Empty<IConfigureOptions<List<string>>>(),
40Enumerable.Empty<IPostConfigureOptions<List<string>>>(),
41new[] { new ValidateOptions<List<string>>(null, _ => false, "epic fail") });
50var sut = new ContextualOptionsFactory<List<string>>(
51Enumerable.Empty<ILoadContextualOptions<List<string>>>(),
52Enumerable.Empty<IConfigureOptions<List<string>>>(),
53Enumerable.Empty<IPostConfigureOptions<List<string>>>(),
54new[] { new ValidateOptions<List<string>>("Foo", _ => false, "epic fail") });
65new LoadContextualOptions<List<string>>(
67(context, _) => new ValueTask<IConfigureContextualOptions<List<string>>>(new ConfigureContextualOptions<List<string>>((_, list) => list.Add("configure"), context))),
70var sut = new ContextualOptionsFactory<List<string>>(
72Enumerable.Empty<IConfigureOptions<List<string>>>(),
73new[] { new PostConfigureOptions<List<string>>(string.Empty, (list) => list.Add("post configure")) },
74Enumerable.Empty<IValidateOptions<List<string>>>());
86new LoadContextualOptions<List<string>>(
88(context, _) => new ValueTask<IConfigureContextualOptions<List<string>>>(new ConfigureContextualOptions<List<string>>((_, list) => list.Add("configure"), context)))
91var sut = new ContextualOptions<List<string>, IOptionsContext>(new ContextualOptionsFactory<List<string>>(
93Enumerable.Empty<IConfigureOptions<List<string>>>(),
94Enumerable.Empty<IPostConfigureOptions<List<string>>>(),
95Enumerable.Empty<IValidateOptions<List<string>>>()));
106new LoadContextualOptions<List<string>>(
108(context, _) => new ValueTask<IConfigureContextualOptions<List<string>>>(new ConfigureContextualOptions<List<string>>((_, list) => list.Add("configure"), context))),
111var sut = new ContextualOptionsFactory<List<string>>(
113Enumerable.Empty<IConfigureOptions<List<string>>>(),
114Enumerable.Empty<IPostConfigureOptions<List<string>>>(),
115Enumerable.Empty<IValidateOptions<List<string>>>());
124var sut = new ContextualOptionsFactory<List<string>>(
125Enumerable.Empty<ILoadContextualOptions<List<string>>>(),
126Enumerable.Empty<IConfigureOptions<List<string>>>(),
127new[] { new PostConfigureOptions<List<string>>(null, (list) => list.Add("post configure")) },
128Enumerable.Empty<IValidateOptions<List<string>>>());
137var sut = new ContextualOptionsFactory<List<string>>(
138Enumerable.Empty<ILoadContextualOptions<List<string>>>(),
139Enumerable.Empty<IConfigureOptions<List<string>>>(),
140new[] { new PostConfigureOptions<List<string>>("Foo", (list) => list.Add("post configure")) },
141Enumerable.Empty<IValidateOptions<List<string>>>());
150var sut = new ContextualOptionsFactory<List<string>>(
151Enumerable.Empty<ILoadContextualOptions<List<string>>>(),
152new[] { new ConfigureOptions<List<string>>((list) => list.Add("pre configure")) },
153Enumerable.Empty<IPostConfigureOptions<List<string>>>(),
154Enumerable.Empty<IValidateOptions<List<string>>>());
170var loaders = new LoadContextualOptions<List<string>>[]
175return new ValueTask<IConfigureContextualOptions<List<string>>>(new ConfigureContextualOptions<List<string>>((_, list) => list.Add("1"), context));
180return new ConfigureContextualOptions<List<string>>((_, list) => list.Add("2"), context);
185return new ValueTask<IConfigureContextualOptions<List<string>>>(new ConfigureContextualOptions<List<string>>((_, list) => list.Add("3"), context));
190return new ValueTask<IConfigureContextualOptions<List<string>>>(new ConfigureContextualOptions<List<string>>((_, list) => list.Add("4"), context));
194var sut = new ContextualOptionsFactory<List<string>>(
196Enumerable.Empty<IConfigureOptions<List<string>>>(),
197Enumerable.Empty<IPostConfigureOptions<List<string>>>(),
198Enumerable.Empty<IValidateOptions<List<string>>>());
210var loaders = new LoadContextualOptions<List<string>>[]
212new(string.Empty, (context, _) => new ValueTask<IConfigureContextualOptions<List<string>>>(Mock.Of<IConfigureContextualOptions<List<string>>>(MockBehavior.Strict))),
216var sut = new ContextualOptionsFactory<List<string>>(
218Enumerable.Empty<IConfigureOptions<List<string>>>(),
219Enumerable.Empty<IPostConfigureOptions<List<string>>>(),
220Enumerable.Empty<IValidateOptions<List<string>>>());
233var disposeMock = new Mock<IConfigureContextualOptions<List<string>>>();
235var loaders = new LoadContextualOptions<List<string>>[]
237new(string.Empty, (context, _) => new ValueTask<IConfigureContextualOptions<List<string>>>(Mock.Of<IConfigureContextualOptions<List<string>>>(MockBehavior.Strict))),
238new(string.Empty, (context, _) => new ValueTask<IConfigureContextualOptions<List<string>>>(disposeMock.Object)),
241var sut = new ContextualOptionsFactory<List<string>>(
243Enumerable.Empty<IConfigureOptions<List<string>>>(),
244Enumerable.Empty<IPostConfigureOptions<List<string>>>(),
245Enumerable.Empty<IValidateOptions<List<string>>>());
Microsoft.Extensions.Options.DataAnnotations (9)
Microsoft.Extensions.Options.SourceGeneration (20)
Parser.cs (14)
59var results = new List<ValidatorType>();
81var modelTypes = GetModelTypes(validatorType);
89var modelsValidatorTypeValidates = new List<ValidatedModel>(modelTypes.Count);
142var membersToValidate = GetMembersToValidate(modelType, true, lowerLocationInCompilation, validatorType, generateAsync);
166var parents = new List<string>();
376private List<ValidatedMember> GetMembersToValidate(ITypeSymbol modelType, bool speculate, Location lowerLocationInCompilation, ITypeSymbol validatorType, bool isAsync)
386var members = modelType.GetMembers().ToList();
402var membersToValidate = new List<ValidatedMember>();
451var validationAttrs = new List<ValidationAttributeInfo>();
676var membersToValidate = GetMembersToValidate(memberType, false, location, validatorType, isAsync);
692var membersToValidate = GetMembersToValidate(enumeratedType, false, location, validatorType, isAsync);
831var membersToValidate = GetMembersToValidate(mt, true, location, validatorType, isAsync);
945private List<ITypeSymbol> GetModelTypes(ITypeSymbol validatorType)
947var result = new List<ITypeSymbol>();
Microsoft.Extensions.Primitives (2)
Microsoft.Extensions.Resilience.Tests (1)
Microsoft.Extensions.ServiceDiscovery (9)
Microsoft.Extensions.ServiceDiscovery.Abstractions (2)
Microsoft.Extensions.ServiceDiscovery.Dns (33)
Resolver\DnsResolver.cs (14)
76var results = new List<ServiceResult>(response.Answers.Count);
87List<AddressResult> addresses = new List<AddressResult>();
157List<AddressResult> results = new List<AddressResult>(response.Answers.Count);
221Dictionary<EncodedDomainName, List<AddressResult>> aRecordMap = new();
246if (!aRecordMap.TryGetValue(answer.Name, out List<AddressResult>? addressList))
279aRecordMap.TryGetValue(currentAlias, out List<AddressResult>? finalAddressList);
573if (!TryReadRecords(header.AnswerCount, ref ttl, ref responseReader, out List<DnsResourceRecord>? answers) ||
574!TryReadRecords(header.AuthorityCount, ref ttl, ref responseReader, out List<DnsResourceRecord>? authorities) ||
575!TryReadRecords(header.AdditionalRecordCount, ref ttl, ref responseReader, out List<DnsResourceRecord>? additionals))
600static bool TryReadRecords(int count, ref int ttl, ref DnsDataReader reader, out List<DnsResourceRecord> records)
622internal static bool GetNegativeCacheExpiration(DateTime createdAt, List<DnsResourceRecord> authorities, out DateTime expiration)
649internal static SendQueryError ValidateResponse(QueryResponseCode responseCode, DateTime createdAt, List<DnsResourceRecord> answers, List<DnsResourceRecord> authorities, ref DateTime expiration)
918List<ReadOnlyMemory<byte>> labels = new();
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (13)
Resolver\LoopbackDnsServer.cs (13)
144public List<(string, QueryType, QueryClass)> Questions { get; } = new List<(string, QueryType, QueryClass)>();
145public List<DnsResourceRecord> Answers { get; } = new List<DnsResourceRecord>();
146public List<DnsResourceRecord> Authorities { get; } = new List<DnsResourceRecord>();
147public List<DnsResourceRecord> Additionals { get; } = new List<DnsResourceRecord>();
228var encodedLabels = name.Split('.', StringSplitOptions.RemoveEmptyEntries).Select(label => (ReadOnlyMemory<byte>)Encoding.UTF8.GetBytes(s_idnMapping.GetAscii(label)))
234public static List<DnsResourceRecord> AddAddress(this List<DnsResourceRecord> records, string name, int ttl, IPAddress address)
241public static List<DnsResourceRecord> AddCname(this List<DnsResourceRecord> records, string name, int ttl, string alias)
253public static List<DnsResourceRecord> AddService(this List<DnsResourceRecord> records, string name, int ttl, ushort priority, ushort weight, ushort port, string target)
272public static List<DnsResourceRecord> AddStartOfAuthority(this List<DnsResourceRecord> records, string name, int ttl, string mname, string rname, uint serial, uint refresh, uint retry, uint expire, uint minimum)
Microsoft.Extensions.ServiceDiscovery.Tests (2)
Microsoft.Extensions.ServiceDiscovery.Yarp (5)
Microsoft.Extensions.Telemetry (36)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
422List<string>? temp = null;
Microsoft.Extensions.Telemetry.Abstractions (14)
Microsoft.Extensions.Telemetry.Abstractions.Tests (1)
Microsoft.Extensions.Telemetry.Tests (21)
Microsoft.Extensions.TimeProvider.Testing.Tests (4)
Microsoft.Extensions.Validation (3)
Microsoft.Extensions.Validation.ValidationsGenerator (7)
Microsoft.Extensions.VectorData.Abstractions (7)
Microsoft.Extensions.VectorData.ConformanceTests (56)
Microsoft.Gen.BuildMetadata.Unit.Tests (9)
Microsoft.Gen.ComplianceReports (8)
Microsoft.Gen.ComplianceReports.Unit.Tests (7)
Microsoft.Gen.ContextualOptions (7)
Microsoft.Gen.ContextualOptions.Generated.Tests (1)
Microsoft.Gen.ContextualOptions.Unit.Tests (9)
Microsoft.Gen.Logging (26)
Parser.LogProperties.cs (7)
54var props = GetTypePropertiesToLog(paramTypeSymbol, typesChain, symbols, transitive, ref foundDataClassificationAttributes);
83List<LoggingProperty>? GetTypePropertiesToLog(
90var result = new List<LoggingProperty>();
104var sensitivePropsFromCtor = new Dictionary<string, List<INamedTypeSymbol>>();
113var maybeDataClasses = GetDataClassificationAttributes(parameter, symbols);
172if (sensitivePropsFromCtor.TryGetValue(property.Name, out var dataClassesFromCtor))
279var props = GetTypePropertiesToLog(extractedType, typesChain, symbols, transitive, ref foundDataClassificationAttributes);
Microsoft.Gen.Logging.Generated.Tests (3)
Microsoft.Gen.Logging.Unit.Tests (9)
Microsoft.Gen.MetadataExtractor (20)
Microsoft.Gen.MetadataExtractor.Unit.Tests (7)
Microsoft.Gen.Metrics (17)
Microsoft.Gen.Metrics.Unit.Tests (8)
Microsoft.Gen.MetricsReports (12)
Microsoft.Gen.MetricsReports.Unit.Tests (7)
Microsoft.Interop.ComInterfaceGenerator (16)
Microsoft.Interop.JavaScript.JSImportGenerator (10)
Microsoft.Interop.LibraryImportGenerator (16)
LibraryImportGenerator.cs (5)
84private static List<AttributeSyntax> GenerateSyntaxForForwardedAttributes(AttributeData? suppressGCTransitionAttribute, AttributeData? unmanagedCallConvAttribute, AttributeData? defaultDllImportSearchPathsAttribute, AttributeData? wasmImportLinkageAttribute, AttributeData? stackTraceHiddenAttribute, AttributeData? debuggerHiddenAttribute)
88List<AttributeSyntax> attributes = new();
283List<AttributeSyntax> additionalAttributes = GenerateSyntaxForForwardedAttributes(suppressGCTransitionAttribute, unmanagedCallConvAttribute, defaultDllImportSearchPathsAttribute, wasmImportLinkageAttribute, stackTraceHiddenAttribute, debuggerHiddenAttribute);
391var dllImportArgs = new List<AttributeArgumentSyntax>
444var newAttributeArgs = new List<AttributeArgumentSyntax>
Microsoft.Interop.LibraryImportGenerator.Downlevel (5)
Microsoft.Interop.SourceGeneration (20)
Microsoft.JSInterop (1)
Microsoft.Maui (62)
Microsoft.Maui.Controls (236)
Shapes\GeometryHelper.cs (4)
27 var points = new List<Point>();
232 public static void FlattenCubicBezier(List<Point> points, Point ptStart, Point ptCtrl1, Point ptCtrl2, Point ptEnd, double tolerance)
255 public static void FlattenQuadraticBezier(List<Point> points, Point ptStart, Point ptCtrl, Point ptEnd, double tolerance)
277 public static void FlattenArc(List<Point> points, Point pt1, Point pt2, double radiusX, double radiusY, double angleRotation,
Shell\ShellUriHandler.cs (40)
25 var pages = ShellNavigationManager.BuildFlattenedNavigationStack(shell);
27 List<string> restOfPath = new List<string>();
44 List<string> buildUpPages = new List<string>();
149 var segments = new List<string>(RetrievePaths(pathAndQuery[0]));
185 var possibleRouteMatches = GenerateRoutePaths(shell, request, uri, enableRelativeShellRoutes);
222 internal static List<RouteRequestBuilder> GenerateRoutePaths(Shell shell, Uri request)
228 internal static List<RouteRequestBuilder> GenerateRoutePaths(Shell shell, Uri request, Uri originalRequest, bool enableRelativeShellRoutes)
235 List<RouteRequestBuilder> possibleRoutePaths = new List<RouteRequestBuilder>();
246 var segments = new List<string>(RetrievePaths(localPath));
262 var result = ProcessRelativeRoute(shell, routeKeys, segments, enableRelativeShellRoutes, originalRequest);
270 var bestMatches = GetBestMatches(possibleRoutePaths);
288 var globalRouteMatches =
345 static List<RouteRequestBuilder> ProcessRelativeRoute(
348 List<string> segments,
357 var pureRoutesMatch = new List<RouteRequestBuilder>();
358 var pureGlobalRoutesMatch = new List<RouteRequestBuilder>();
377 var matches = SearchForGlobalRoutes(segments, shell.CurrentState.FullLocation, currentLocation, routeKeys);
428 static List<RouteRequestBuilder> SearchForGlobalRoutes(
429 List<string> segments,
434 List<RouteRequestBuilder> pureGlobalRoutesMatch = new List<RouteRequestBuilder>();
437 var newSegments = CollapsePath(newPath, currentSegments, true);
438 List<string> fullRouteWithNewSegments = new List<string>(currentSegments);
457 var existingGlobalRoutes = routeRequestBuilder.GlobalRouteMatches.ToList();
463 var additionalRouteMatches = routeRequestBuilder.GlobalRouteMatches;
480 internal static List<string> CollapsePath(
486 internal static List<string> CollapsePath(
491 var localRouteStack = currentRouteStack.ToList();
502 var paths = myRoute.ToList();
535 var collapsedRoutes = CollapsePath(routeKey, possibleRoutePath.SegmentsMatched, true);
607 internal static void ExpandOutGlobalRoutes(List<RouteRequestBuilder> possibleRoutePaths, HashSet<string> routeKeys)
618 List<RouteRequestBuilder> pureGlobalRoutesMatch = new List<RouteRequestBuilder>();
640 internal static List<RouteRequestBuilder> GetBestMatches(List<RouteRequestBuilder> possibleRoutePaths)
642 List<RouteRequestBuilder> bestMatches = new List<RouteRequestBuilder>();
678 List<RouteRequestBuilder> betterMatches = new List<RouteRequestBuilder>();
783 List<string> paths = new List<string>();
856 List<string> segments,
857 List<RouteRequestBuilder> possibleRoutePaths,
1005 var segments = RetrievePaths(_path).ToList().Skip(1).ToList();
1033 var segments = RetrievePaths(_path).ToList().Skip(1).ToList();
Microsoft.Maui.Controls.BindingSourceGen (29)
Microsoft.Maui.Controls.Build.Tasks (22)
Microsoft.Maui.Controls.Foldable (2)
Microsoft.Maui.Controls.SourceGen (14)
Microsoft.Maui.Controls.Xaml (18)
Microsoft.Maui.Essentials (13)
Microsoft.Maui.Graphics (34)
PathF.cs (22)
12 private readonly List<float> _arcAngles;
13 private readonly List<bool> _arcClockwise;
14 private readonly List<PointF> _points;
15 private readonly List<PathOperation> _operations;
17 private readonly List<bool> _subPathsClosed;
22 private PathF(List<PointF> points, List<float> arcSizes, List<bool> arcClockwise, List<PathOperation> operations, int subPathCount)
939 public List<PathF> Separate()
941 var paths = new List<PathF>();
989 var points = new List<PointF>(_points);
992 var arcSizes = new List<float>(_arcAngles);
995 var arcClockwise = new List<bool>(_arcClockwise);
998 var operations = new List<PathOperation>(_operations);
1456 List<PointF> flattenedPoints = null;
1457 List<PointF> curvePoints = null;
1525 private void QuadToCubic(int pointIndex, List<PointF> curvePoints)
1540 private void FlattenCubicSegment(int index, double flatness, List<PointF> curvePoints, List<PointF> flattenedPoints)
1591 private Vector2 DeCasteljau(List<PointF> curvePoints, int index, float t)
1604 private Vector2 GetPointAsVector(List<PointF> curvePoints, int index)
Microsoft.Maui.Graphics.Skia (6)
Microsoft.Maui.Graphics.Text.Markdig (1)
Microsoft.Maui.Maps (2)
Microsoft.Maui.Resizetizer (10)
Microsoft.ML.AutoML (72)
Microsoft.ML.AutoML.Interactive (4)
Microsoft.ML.AutoML.SourceGenerator (14)
Microsoft.ML.AutoML.Tests (13)
Microsoft.ML.CodeGenerator (40)
Microsoft.ML.CodeGenerator.Tests (7)
Microsoft.ML.Core (49)
Data\RoleMappedSchema.cs (6)
196private RoleMappedSchema(DataViewSchema schema, Dictionary<string, List<DataViewSchema.Column>> map)
201private static void Add(Dictionary<string, List<DataViewSchema.Column>> map, ColumnRole role, DataViewSchema.Column column)
206if (!map.TryGetValue(role.Value, out var list))
214private static Dictionary<string, List<DataViewSchema.Column>> MapFromNames(DataViewSchema schema, IEnumerable<KeyValuePair<ColumnRole, string>> roles, bool opt = false)
219var map = new Dictionary<string, List<DataViewSchema.Column>>();
311private static Dictionary<string, IReadOnlyList<DataViewSchema.Column>> Copy(Dictionary<string, List<DataViewSchema.Column>> map)
Microsoft.ML.Core.Tests (15)
Microsoft.ML.Data (322)
DataDebuggerPreview.cs (7)
19private static readonly FuncInstanceMethodInfo1<DataDebuggerPreview, DataViewRow, int, Action<RowInfo, List<object>>> _makeSetterMethodInfo
20= FuncInstanceMethodInfo1<DataDebuggerPreview, DataViewRow, int, Action<RowInfo, List<object>>>.Create(target => target.MakeSetter<int>);
39var rows = new List<RowInfo>();
40var columns = new List<object>[n];
46var setters = new Action<RowInfo, List<object>>[n];
68private Action<RowInfo, List<object>> MakeSetter<T>(DataViewRow row, int col)
72Action<RowInfo, List<object>> result = (rowInfo, list) =>
Evaluators\EvaluatorUtils.cs (19)
527var naIndices = new List<int>();
795var overallList = new List<IDataView>();
816var firstDvKeyWithNamesColumns = new List<string>();
818var firstDvVectorKeyColumns = new List<string>();
819var variableSizeVectorColumnNamesList = new List<string>();
820var list = new List<IDataView>();
824var hidden = new List<int>();
991private static List<string> GetMetricNames(IChannel ch, DataViewSchema schema, DataViewRow row, Func<int, bool> ignoreCol,
1003var metricNames = new List<string>();
1056var nonAveragedCols = new List<string>();
1060var idvList = new List<IDataView>() { avgMetrics };
1123List<string> metricNames;
1175private static void UpdateSums(int isWeightedCol, int stratCol, int stratVal, AggregatedMetric[] aggregated, bool hasStdev, List<string> metricNames, bool hasWeighted, bool hasStrats, int colCount, ValueGetter<double>[] getters, ValueGetter<VBuffer<double>>[] vBufferGetters, ref double metricVal, ref VBuffer<double> metricVals)
1215int numFolds, int stratCol, int stratVal, int isWeightedCol, int foldCol, bool hasStdev, List<string> nonAveragedCols = null)
1442var predictedLabelNames = GetPredictedLabelNames(in labelNames, labelIndexToConfIndexMap);
1448private static List<ReadOnlyMemory<char>> GetPredictedLabelNames(in VBuffer<ReadOnlyMemory<char>> labelNames, int[] labelIndexToConfIndexMap)
1450List<ReadOnlyMemory<char>> result = new List<ReadOnlyMemory<char>>();
1541private static string GetOverallMetricsAsString(double[] sumMetrics, double[] sumSqMetrics, int numFolds, bool weighted, bool average, List<string> metricNames)
1703var nonAveragedCols = new List<string>();
Microsoft.ML.DataView (4)
Microsoft.ML.Ensemble (22)
Microsoft.ML.EntryPoints (42)
FeatureCombiner.cs (9)
60var concatNames = new List<KeyValuePair<string, string>>();
61List<TypeConvertingEstimator.ColumnOptions> cvt;
63var ktv = ConvertFeatures(feats.ToArray(), featNames, concatNames, ch, out cvt, out errCount);
87private static IDataView ApplyKeyToVec(List<KeyToVectorMappingEstimator.ColumnOptions> ktv, IDataView viewTrain, IHost host)
142private static IDataView ApplyConvert(List<TypeConvertingEstimator.ColumnOptions> cvt, IDataView viewTrain, IHostEnvironment env)
152private static List<KeyToVectorMappingEstimator.ColumnOptions> ConvertFeatures(IEnumerable<DataViewSchema.Column> feats, HashSet<string> featNames, List<KeyValuePair<string, string>> concatNames, IChannel ch,
153out List<TypeConvertingEstimator.ColumnOptions> cvt, out int errCount)
159List<KeyToVectorMappingEstimator.ColumnOptions> ktv = null;
TrainTestMacro.cs (7)
119var subGraphNodes = EntryPointNode.ValidateNodes(env, subGraphRunContext, input.Nodes, label: input.LabelColumn,
159Dictionary<string, List<ParameterBinding>> inputBindingMap;
168inputBindingMap = new Dictionary<string, List<ParameterBinding>>();
191inputBindingMap = new Dictionary<string, List<ParameterBinding>>();
225inputBindingMap = new Dictionary<string, List<ParameterBinding>>();
248inputBindingMap = new Dictionary<string, List<ParameterBinding>>();
270inputBindingMap = new Dictionary<string, List<ParameterBinding>>();
Microsoft.ML.FastTree (118)
FastTree.cs (41)
75private protected List<Test> Tests;
1012var result = new List<KeyValuePair<int, int>>();
1023List<int> features, int[] binnedValues, int[] lastOn, ValuesList[] instanceList,
1108List<int> features, int[] binnedValues, int[] lastOn, bool categorical)
1287private static int AddColumnIfNeeded(DataViewSchema.Column? info, List<int> toTranspose)
1363var toTranspose = new List<int>();
1461List<FeatureFlockBase> flocks = new List<FeatureFlockBase>();
1480List<int> pending = new List<int>();
1691List<int> minSlots = new List<int>();
1692List<int> maxSlots = new List<int>();
1715List<ulong> qids = new List<ulong>();
1716List<int> boundaries = new List<int>();
1745private readonly List<short> _targetsList;
1746private readonly List<double> _actualTargets;
1747private readonly List<double> _weights;
1748private readonly List<int> _boundaries;
1914List<int> trivialFeatures = new List<int>();
1944private NHotFeatureFlock CreateNHotFlock(IChannel ch, List<int> features)
1956var delta = new List<byte>();
1957var values = new List<int>();
2090List<int> pending = new List<int>();
2192List<int> pending = new List<int>();
2375private List<double> _dense;
2377private List<KeyValuePair<int, double>> _sparse;
2657var sp = values._sparse;
3047var nodesTreeids = new List<long>();
3048var nodesIds = new List<long>();
3049var nodesFeatureIds = new List<long>();
3050var nodeModes = new List<string>();
3051var nodesValues = new List<double>();
3052var nodeHitrates = new List<long>();
3053var missingValueTracksTrue = new List<bool>();
3054var nodesTrueNodeIds = new List<long>();
3055var nodesFalseNodeIds = new List<long>();
3056var nodesBaseValues = new List<float>();
3059var classTreeIds = new List<long>();
3060var classNodeIds = new List<long>();
3061var classIds = new List<long>();
3062var classWeights = new List<double>();
3167List<KeyValuePair<string, object>> results = new List<KeyValuePair<string, object>>();
3272internal int GetLeaf(int treeId, in VBuffer<float> features, ref List<int> path)
Microsoft.ML.GenAI.Core (6)
Microsoft.ML.GenAI.Core.Tests (3)
Microsoft.ML.GenAI.LLaMA (4)
Microsoft.ML.GenAI.LLaMA.Tests (1)
Microsoft.ML.GenAI.Mistral (5)
Microsoft.ML.GenAI.Mistral.Tests (2)
Microsoft.ML.GenAI.Phi (4)
Microsoft.ML.GenAI.Samples (2)
Microsoft.ML.IntegrationTests (2)
Microsoft.ML.InternalCodeAnalyzer (1)
Microsoft.ML.KMeansClustering (1)
Microsoft.ML.LightGbm (15)
Microsoft.ML.Maml (5)
Microsoft.ML.Mkl.Components (2)
Microsoft.ML.OneDal (2)
Microsoft.ML.OnnxConverter (24)
OnnxUtils.cs (17)
22List<long> dims, List<bool> dimsParam)
51List<long> dims, List<bool> dimsParam)
275public readonly List<long> Dims;
276public readonly List<bool> DimParams;
278public ModelArgs(string name, TensorProto.Types.DataType dataType, List<long> dims, List<bool> dimParams)
287public static ModelProto MakeModel(List<NodeProto> nodes, string producerName, string name,
288string domain, string producerVersion, long modelVersion, int opSetVersion, List<ModelArgs> inputs,
289List<ModelArgs> outputs, List<ModelArgs> intermediateValues, List<TensorProto> initializers)
340List<long> dims = null, List<bool> dimsParams = null)
353List<long> dimsLocal = null;
354List<bool> dimsParamLocal = null;
Microsoft.ML.OnnxTransformer (34)
Microsoft.ML.OnnxTransformerTest (12)
Microsoft.ML.Parquet (14)
PartitionedPathParser.cs (8)
285if (!TryParseNames(path, out List<string> names))
306if (!TryParseValues(path, out List<string> values))
319public bool TryParseNames(string path, out List<string> names)
321return TryParseNamesAndValues(path, out names, out List<string> values);
324public bool TryParseValues(string path, out List<string> values)
326return TryParseNamesAndValues(path, out List<string> names, out values);
329public bool TryParseNamesAndValues(string path, out List<string> names, out List<string> values)
Microsoft.ML.PerformanceTests (5)
Microsoft.ML.Predictor.Tests (15)
Microsoft.ML.Recommender (3)
Microsoft.ML.ResultProcessor (29)
ResultProcessor.cs (29)
35public List<ExperimentItemResult> PredictorList;
291public List<string> GetSettings()
293List<string> settings = new List<string>();
380private static bool ValidateMamlOutput(string filename, string[] rawLines, out List<string> lines)
401List<string> lines;
422List<string> fileTimeMemoryResults;
423List<string> fileResults;
566List<string> lines;
573List<string> fileTimeMemoryResults;
574List<string> fileResults;
595private static ExperimentItemResult? GetMetrics(string filename, ResultProcessorArguments cmd, List<string> lines, List<string> fileTimeMemoryResults, List<string> fileResults)
698List<string> lines;
702List<string> fileTimeMemoryResults;
703List<string> fileResults;
710private static bool TryParseFileToLines(string filename, out List<string> lines, string[] rawLines = null)
733private static bool TryParseMamlCommand(List<string> lines, out string commandline)
749private static bool TryParseLines(List<string> lines, ResultProcessorArguments cmd, out List<string> fileResults, out List<string> fileTimeMemoryResult)
788private static Dictionary<string, ResultMetric> ParseResultLines(List<string> fileResults, ResultProcessorArguments cmd, out Double metricValue, string metricName)
847List<ExperimentItemResult?> results = new List<ExperimentItemResult?>();
862public static PredictorResult GetPredictorObject(List<PredictorResult> tempPredictorList, string learnerName, out bool newLearner)
908var foldLines = new List<string>(lines.Where((s, i1) => i1 >= startLineIdx && i1 < endLineIdx));
928List<int> allFoldIndices = new List<int>(foldResults.Keys);
1040List<PredictorResult> predictorResultsList = new List<PredictorResult>();
1060List<string> m = new List<string>();
1067List<KeyValuePair<string, string>> srcFiles = new List<KeyValuePair<string, string>>();
Microsoft.ML.Samples (171)
Microsoft.ML.Samples.OneDal (3)
Microsoft.ML.SamplesUtils (6)
Microsoft.ML.SearchSpace (3)
Microsoft.ML.StandardTrainers (27)
Microsoft.ML.Sweeper (31)
Microsoft.ML.Sweeper.Tests (10)
Microsoft.ML.TensorFlow (1)
Microsoft.ML.TensorFlow.Tests (8)
Microsoft.ML.TestFramework (15)
Microsoft.ML.TestFrameworkCommon (4)
Microsoft.ML.Tests (141)
ImagesTests.cs (4)
233var images = new List<ImageDataPoint>() { new ImageDataPoint(10, 10, red: 0, green: 0, blue: 255), new ImageDataPoint(10, 10, red: 255, green: 0, blue: 0) };
1126public static List<InMemoryImage> LoadFromTsv(MLContext mlContext, string tsvPath, string imageFolder)
1128var inMemoryImages = new List<InMemoryImage>();
1180var dataObjects = InMemoryImage.LoadFromTsv(mlContext, dataFile, imageFolder);
TrainerEstimators\TreeEstimators.cs (8)
438private void LightGbmHelper(bool useSoftmax, double sigmoid, out string modelString, out List<GbmExample> mlnetPredictions, out double[] lgbmRawScores, out double[] lgbmProbabilities, bool unbalancedSets = false)
446var dataList = new List<GbmExample>();
554LightGbmHelper(useSoftmax: false, sigmoid: sigmoidScale, out string modelString, out List<GbmExample> mlnetPredictions, out double[] nativeResult1, out double[] nativeResult0);
589LightGbmHelper(useSoftmax: false, sigmoid: sigmoidScale, out string modelString, out List<GbmExample> mlnetPredictions, out double[] nativeResult1, out double[] nativeResult0);
628LightGbmHelper(useSoftmax: false, sigmoid: firstSigmoidScale, out string firstModelString, out List<GbmExample> firstMlnetPredictions, out double[] firstNativeResult1, out double[] firstNativeResult0);
629LightGbmHelper(useSoftmax: false, sigmoid: secondSigmoidScale, out string secondModelString, out List<GbmExample> secondMlnetPredictions, out double[] secondNativeResult1, out double[] secondNativeResult0);
661LightGbmHelper(useSoftmax: true, sigmoid: .5, out string modelString, out List<GbmExample> mlnetPredictions, out double[] nativeResult1, out double[] nativeResult0);
690LightGbmHelper(useSoftmax: true, sigmoid: .5, out string modelString, out List<GbmExample> mlnetPredictions, out double[] nativeResult1, out double[] nativeResult0, unbalancedSets: true);
Transformers\ValueMappingTests.cs (22)
55var keys = new List<string>() { "foo", "bar", "test", "wahoo" };
56var values = new List<int>() { 1, 2, 3, 4 };
93var keys = new List<ReadOnlyMemory<char>>() { "foo".AsMemory(), "bar".AsMemory(), "test".AsMemory(), "wahoo".AsMemory() };
94var values = new List<int>() { 1, 2, 3, 4 };
139var keyValuePairs = new List<KeyValuePair<string, string>>() {
175List<int[]> values = new List<int[]>() {
264List<string[]> values = new List<string[]>() {
307var keys = new List<string>() { "foo", "bar", "test", "wahoo" };
308var values = new List<int>() { 1, 2, 3, 4 };
345var keys = new List<string>() { "foo", "foo" };
346var values = new List<int>() { 1, 2 };
364var keyValuePairs = new List<KeyValuePair<string, int>>() {
396var keyValuePairs = new List<KeyValuePair<string, string>>() {
430var keyValuePairs = new List<KeyValuePair<string, uint>>() {
471var keyValuePairs = new List<KeyValuePair<string, ulong>>() {
512var keyValuePairs = new List<KeyValuePair<string, string>>() {
552var keyValuePairs = new List<KeyValuePair<string, string>>() {
594var keyValuePairs = new List<KeyValuePair<string, int>>() {
613var keyValuePairs = new List<KeyValuePair<string, int[]>>() {
633var keyValuePairs = new List<KeyValuePair<ReadOnlyMemory<char>, int>>() {
687var keyValuePairs = new List<KeyValuePair<string, int>>() {
784var features = ML.Data.CreateEnumerable<TransformedData>(transformedData, reuseRowObject: false).ToList();
Microsoft.ML.TimeSeries (93)
RootCauseAnalyzer.cs (28)
21private readonly List<RootCause> _preparedCauses;
36public List<RootCause> AnalyzePossibleCauses()
45private List<RootCause> AnalyzeOneLayer(RootCauseLocalizationInput src)
69protected List<TimeSeriesPoint> GetTotalPointsForAnomalyTimestamp(RootCauseLocalizationInput src)
101List<TimeSeriesPoint> totalPoints = GetTotalPointsForAnomalyTimestamp(src);
128protected Dictionary<string, Object> GetSubDim(Dictionary<string, Object> dimension, List<string> keyList)
133private void LocalizeRootCausesByDimension(PointTree anomalyTree, PointTree pointTree, Dictionary<string, Object> anomalyDimension, List<string> aggDims)
158List<TimeSeriesPoint> children = null;
200protected List<TimeSeriesPoint> GetTopAnomaly(List<TimeSeriesPoint> anomalyPoints, TimeSeriesPoint root, List<TimeSeriesPoint> totalPoints, string dimKey, bool isLeaveslevel = false)
222List<TimeSeriesPoint> causeList = new List<TimeSeriesPoint>();
247protected IEnumerable<BestDimension> SelectOrderedDimension(List<TimeSeriesPoint> totalPoints, List<TimeSeriesPoint> anomalyPoints, List<string> aggDim)
290private IEnumerable<BestDimension> SelectOrderedDimensions(Dictionary<string, List<TimeSeriesPoint>> pointChildren, Dictionary<string, List<TimeSeriesPoint>> anomalyChildren, List<string> aggDim)
356List<RootCauseScore> scoreList = new List<RootCauseScore>();
442private void BuildTree(PointTree tree, List<string> aggDims, TimeSeriesPoint point, Object aggSymbol)
480List<KeyValuePair<BestDimension, double>> valueMapAsList = valueMap.ToList();
481List<BestDimension> ordered = new List<BestDimension>();
706private void UpdateDistribution(Dictionary<string, int> distribution, List<TimeSeriesPoint> points, string dimKey)
743internal List<string> DetailDims { get; set; }
744internal List<string> AggDims { get; set; }
756internal Dictionary<string, List<TimeSeriesPoint>> ChildrenNodes;
757internal List<TimeSeriesPoint> Leaves;
762ChildrenNodes = new Dictionary<string, List<TimeSeriesPoint>>();
RootCauseLocalizationType.cs (8)
16public List<RootCauseItem> Items { get; set; }
49public List<MetricSlice> Slices { get; set; }
61public RootCauseLocalizationInput(DateTime anomalyTimestamp, Dictionary<string, Object> anomalyDimension, List<MetricSlice> slices, AggregateType aggregateType, Object aggregateSymbol)
70public RootCauseLocalizationInput(DateTime anomalyTimestamp, Dictionary<string, Object> anomalyDimension, List<MetricSlice> slices, Object aggregateSymbol)
131public List<string> Path;
147public RootCauseItem(Dictionary<string, Object> rootCause, List<string> path)
178public List<TimeSeriesPoint> Points { get; set; }
180public MetricSlice(DateTime timeStamp, List<TimeSeriesPoint> points)
Microsoft.ML.TimeSeries.Tests (49)
TimeSeriesDirectApi.cs (26)
112List<Data> data = new List<Data>(size);
134List<double> expectedValues = new List<double>() { 0, 5, 0.5, 5.1200000000000114E-08, 0, 5, 0.4999999995, 5.1200000046080209E-08, 0, 5, 0.4999999995, 5.1200000092160303E-08,
157List<Data> data = new List<Data>();
187List<double> expectedValues = new List<double>() { 0, -3.31410551071167, 0.5, 5.12000000000001E-08, 0, 1.570083498954773, 5.2001145245395008E-07,
213List<Data> data = new List<Data>();
289List<Data> data = new List<Data>();
359List<Data> data = new List<Data>();
394List<float> expectedForecast = new List<float>() { 0.191492021f, 2.53994060f, 5.26454258f, 7.37313938f };
395List<float> minCnf = new List<float>() { -3.9741986f, -2.36872721f, 0.09407699f, 2.18899393f };
396List<float> maxCnf = new List<float>() { 4.3571825f, 7.4486084f, 10.435008f, 12.5572853f };
422List<Data> data = new List<Data>();
546var data = new List<TimeSeriesData>();
590List<TimeSeriesDataDouble> data;
680List<TimeSeriesDataDouble> data;
727List<TimeSeriesDataDouble> data;
782List<TimeSeriesDataDouble> data;
841List<TimeSeriesDataDouble> data;
898List<TimeSeriesDataDouble> data;
988List<RootCause> preparedCauses = ml.AnomalyDetection.LocalizeRootCauses(rootCauseLocalizationInput);
1031List<MetricSlice> slice = new List<MetricSlice>
1083private static List<TimeSeriesPoint> GetRootCauseLocalizationPoints(object aggSymbol)
1085List<TimeSeriesPoint> points = new List<TimeSeriesPoint>();
1181List<MetricSlice> slice = new List<MetricSlice>
1215List<MetricSlice> slice = new List<MetricSlice>
1227private static List<TimeSeriesPoint> GetRootCauseLocalizationPointsForIntDimValue()
1229List<TimeSeriesPoint> points = new List<TimeSeriesPoint>();
TimeSeriesSimpleApiTests.cs (8)
43var data = new List<Data>(size);
62List<double> expectedValues = new List<double>() { 0, 5, 0.5, 5.1200000000000114E-08, 0, 5, 0.4999999995, 5.1200000046080209E-08, 0, 5, 0.4999999995, 5.1200000092160303E-08,
85var data = new List<Data>();
105List<double> expectedValues = new List<double>() { 0, -3.31410598754883, 0.5, 5.12000000000001E-08, 0, 1.5700820684432983, 5.2001145245395008E-07,
128List<Data> data = new List<Data>(size);
145var expectedValues = new List<double[]>() {
180List<Data> data = new List<Data>(size);
197var expectedValues = new List<double[]>() {
Microsoft.ML.Tokenizers (91)
Model\BPETokenizer.cs (5)
454List<EncodedToken> tokens = new();
513List<int> ids = new();
1305internal void WordToTokens(ref Word word, List<EncodedToken> tokens, int offset, ReadOnlySpan<int> mapping) => word.ToTokens(VocabReverse, tokens, offset, mapping);
1307internal void EncodeWithCache(ReadOnlySpan<char> text, List<EncodedToken> tokens, int offset, ref PriorityQueue<Merge>? priorityQueue)
1416private int EncodeToIdsWithCache(ReadOnlySpan<char> text, List<int>? accumulatedIds, int maxTokens, out int charsConsumed, ref PriorityQueue<Merge>? priorityQueue)
Model\CodeGenTokenizer.cs (16)
34private readonly StringSpanOrdinalKeyCache<List<EncodedToken>> _cache;
130_cache = new StringSpanOrdinalKeyCache<List<EncodedToken>>();
379List<EncodedToken> tokens = new();
425private void EncodeInternal(string? text, scoped ReadOnlySpan<char> textSpan, List<EncodedToken> tokens, bool addPrefixSpace, int offset, PriorityQueue<SymbolPair> agenda)
439if (_cache.TryGetValue(textSpan, out List<EncodedToken>? hit))
464List<EncodedToken> result = EncodeToTokens(token.Slice(0, encodedLength), mapping.Slice(0, encodedLength), textSpan, agenda);
618List<int> ids = new();
1013private int EncodeToIdsResult(List<EncodedToken> tokens, IList<int>? accumulatedIds, int maxTokens, int fullTextLength, out int charsConsumed)
1069private int EncodeToIdsFromEndResult(List<EncodedToken> tokens, IList<int>? accumulatedIds, int maxTokens, int fullTextLength, out int textIndex)
1123if (_cache.TryGetValue(textSpan, out List<EncodedToken>? hit))
1147List<EncodedToken> result = EncodeToTokens(token.Slice(0, encodedLength), mapping.Slice(0, encodedLength), textSpan, agenda);
1187if (_cache.TryGetValue(textSpan, out List<EncodedToken>? hit))
1211List<EncodedToken> result = EncodeToTokens(token.Slice(0, encodedLength), mapping.Slice(0, encodedLength), textSpan, agenda);
1571private static void AppendTokenWithOffsetAdjusting(IReadOnlyList<EncodedToken> tokensToAdd, List<EncodedToken> tokens, int offset, bool addPrefixSpace)
1598private List<EncodedToken> EncodeToTokens(Span<char> text, Span<int> mapping, ReadOnlySpan<char> originalText, PriorityQueue<SymbolPair> agenda)
1659List<EncodedToken> result = new List<EncodedToken>(text.Length);
Model\EnglishRobertaTokenizer.cs (22)
27private readonly StringSpanOrdinalKeyCache<List<EncodedToken>> _cache;
169_cache = new StringSpanOrdinalKeyCache<List<EncodedToken>>();
334List<EncodedToken> tokens = new();
386if (_cache.TryGetValue(text, out List<EncodedToken>? hit))
393List<EncodedToken> result = EncodeToTokens(token.AsSpan().Slice(0, newTokenIndex), indexMapping);
433List<int> ids = new();
588private int EncodeToIdsResult(List<EncodedToken> tokens, IList<int>? accumulatedIds, int maxTokens, int fullTextLength, out int charsConsumed)
625private int EncodeToIdsFromEndResult(List<EncodedToken> tokens, IList<int>? accumulatedIds, int maxTokens, int fullTextLength, out int textIndex)
670if (_cache.TryGetValue(text, out List<EncodedToken>? hit))
699List<EncodedToken> result = EncodeToTokens(token.AsSpan().Slice(0, newTokenIndex), indexMapping);
715if (_cache.TryGetValue(text, out List<EncodedToken>? hit))
744List<EncodedToken> result = EncodeToTokens(token.AsSpan().Slice(0, newTokenIndex), indexMapping);
836List<int> list = new List<int>(ids.Count);
858List<int> list = new List<int>(ids.Count);
880List<int> list = new List<int>(ranks.Count);
921List<EncodedToken> list = new List<EncodedToken>(tokens.Count);
948private List<EncodedToken> EncodeToTokens(Span<char> token, Span<int> indexMapping)
964List<string> word = new(token.Length);
975var newWord = new List<string>();
1036List<string> temp = word;
1045var tokens = new List<EncodedToken>(word.Count);
1106private readonly List<(int Id, int OccurrenceScore)> _symbols;
Model\SentencePieceTokenizer.cs (11)
627List<(string Piece, float Score)> vocab = new List<(string Piece, float Score)>(vocabElement.GetArrayLength());
731out List<(int Id, string Token)> prefixTokens, out List<(int Id, string Token)> suffixTokens);
801out List<(int Id, string Token)> prefixTokens,
802out List<(int Id, string Token)> suffixTokens)
823List<(int Id, string Token)> prefixTokens,
824List<(int Id, string Token)> suffixTokens)
868List<(int Id, string Token)> prefixTokens,
869List<(int Id, string Token)> suffixTokens)
964List<(int Id, string Token)> target,
989List<(int Id, string Token)> target,
Model\SentencePieceUnigramModel.cs (12)
277private void AddPrefixTokens(List<EncodedToken> tokens)
285private void AddSuffixTokens(List<EncodedToken> tokens, int offset)
384List<EncodedToken> tokens = new();
487List<EncodedToken> tokens,
539List<EncodedToken> tokens,
605List<EncodedToken> tokens,
687private void FallbackToByteEncoding(ReadOnlySpan<char> normalizationSpan, List<EncodedToken> tokens, int insertionStartPosition)
845List<int>? ids = new();
921List<int> ids,
993List<int> ids,
1012private void FallbackToByteEncoding(List<int> ids, ReadOnlySpan<byte> normalizationSpan, (int IdsIndex, int Utf8Index, int Utf8Length)[] unknownTokensTracking, int unknownTokensCount)
1049List<int> ids,
Microsoft.ML.Tokenizers.Data.Tests (2)
Microsoft.ML.Tokenizers.Tests (27)
Microsoft.ML.TorchSharp (119)
AutoFormerV2\BasicLayer.cs (2)
69List<int> hSlicesStartAndEnd = new List<int>() { 0, hp - this.windowSize, hp - this.windowSize, hp - this.shiftSize, hp - this.shiftSize, hp };
70List<int> wSlicesStartAndEnd = new List<int>() { 0, wp - this.windowSize, wp - this.windowSize, wp - this.shiftSize, wp - this.shiftSize, wp };
AutoFormerV2\ObjectDetectionMetrics.cs (35)
60private static List<List<ObjectLabel>> ThresholdFilter(List<List<ObjectLabel>> objectLabelListIn, float scoreThreshold)
64List<List<ObjectLabel>> objectLabelListOut = new();
92var labels = labelSet.ToList();
94var expectedData = ActualIdvToObjLabl(dataView, labelCol, actualBoundingBoxColumn);
95var actualData = PredIdvToObjLabl(dataView, predictedLabelCol, predictedBoundingBoxColumn, scoreCol);
99Dictionary<string, List<Tuple<float, float>>> iouDic = new();
118private static float AP50(Dictionary<string, List<Tuple<float, float>>> iouDic, Dictionary<string, int> groundTruthBoxes, float threshold = 0.5f)
136private static float AP50_95(Dictionary<string, List<Tuple<float, float>>> iouDic, Dictionary<string, int> groundTruthBoxes)
179private static void ImageIoU(List<ObjectLabel> objectLabel, List<ObjectLabel> annotation, Dictionary<string, List<Tuple<float, float>>> iouDic, Dictionary<string, int> groundTruthBoxes)
182List<Tuple<int, int, float>> tupleList = new(); // annotaIndex, detectIndex, iouScore
230private static void GenerateIOUDic(List<List<ObjectLabel>> annotations, List<List<ObjectLabel>> objectLabelList, Dictionary<string, List<Tuple<float, float>>> iouDic, Dictionary<string, int> groundTruthBoxes)
235var objectLabels = objectLabelList?[annoIndex];
236var annotation = annotations[annoIndex];
241foreach (var detectionList in iouDic.Values)
247private static float LabelAP(List<Tuple<float, float>> detectionList, int groundTruthBoxesNum, float threshold = 0.5f)
293private static List<List<ObjectLabel>> PredIdvToObjLabl(
299var data = new List<List<ObjectLabel>>();
316var l = new List<ObjectLabel>();
339private static List<List<ObjectLabel>> ActualIdvToObjLabl(
344var data = new List<List<ObjectLabel>>();
358var l = new List<ObjectLabel>();
Microsoft.ML.TorchSharp.Tests (2)
Microsoft.ML.Transforms (123)
Microsoft.ML.Vision (4)
Microsoft.NET.Build.Containers (16)
Microsoft.NET.Build.Extensions.Tasks (6)
Microsoft.NET.Build.Tasks (184)
DependencyContextBuilder.cs (25)
24private Dictionary<string, List<ReferenceInfo>> _compileReferences;
25private Dictionary<string, List<ResolvedFile>> _resolvedNuGetFiles;
27private Dictionary<string, List<RuntimePackAssetInfo>> _runtimePackAssets;
34private readonly Dictionary<string, List<LibraryDependency>> _libraryDependencies;
35private readonly List<string> _mainProjectDependencies;
74_libraryDependencies = new Dictionary<string, List<LibraryDependency>>(StringComparer.OrdinalIgnoreCase);
140_libraryDependencies = new Dictionary<string, List<LibraryDependency>>();
184_compileReferences = new Dictionary<string, List<ReferenceInfo>>(StringComparer.OrdinalIgnoreCase);
195_resolvedNuGetFiles = new Dictionary<string, List<ResolvedFile>>(StringComparer.OrdinalIgnoreCase);
224_runtimePackAssets = new Dictionary<string, List<RuntimePackAssetInfo>>();
270List<ModifiableRuntimeLibrary> runtimeLibraries = new();
409List<CompilationLibrary> compilationLibraries = new();
414var dependencies = GetProjectDependencies();
527var dependencies = GetProjectDependencies();
556private List<Dependency> GetProjectDependencies()
558List<Dependency> dependencies = new();
645List<RuntimeAssetGroup> runtimeAssemblyGroups = new();
646List<RuntimeAssetGroup> nativeLibraryGroups = new();
647List<ResourceAssembly> resourceAssemblies = new();
667if (_resolvedNuGetFiles != null && _resolvedNuGetFiles.TryGetValue(library.Name, out var resolvedNuGetFiles))
691var managedRuntimeTargetsFiles = runtimeIdentifierGroup.Where(f => f.Asset == AssetType.Runtime).ToList();
698var nativeRuntimeTargetsFiles = runtimeIdentifierGroup.Where(f => f.Asset == AssetType.Native).ToList();
736List<string> assemblies = new();
742else if (_compileReferences != null && _compileReferences.TryGetValue(library.Name, out var compileReferences))
774List<LibraryDependency> libraryDependencies;
ProcessFrameworkReferences.cs (24)
191List<ITaskItem> packagesToDownload,
192List<ITaskItem> runtimeFrameworks,
193List<ITaskItem> targetingPacks,
194List<ITaskItem> runtimePacks,
195List<ITaskItem> unavailableRuntimePacks,
196out List<KnownRuntimePack> knownRuntimePacksForTargetFramework
199var knownFrameworkReferencesForTargetFramework =
382List<string>? additionalFrameworkReferencesForRuntimePack = null;
444List<ITaskItem>? packagesToDownload = null;
445List<ITaskItem>? runtimeFrameworks = null;
446List<ITaskItem>? targetingPacks = null;
447List<ITaskItem>? runtimePacks = null;
448List<ITaskItem>? unavailableRuntimePacks = null;
449List<KnownRuntimePack>? knownRuntimePacksForTargetFramework = null;
474List<ITaskItem> implicitPackageReferences = new();
643private KnownRuntimePack? SelectRuntimePack(ITaskItem? frameworkReference, KnownFrameworkReference knownFrameworkReference, List<KnownRuntimePack> knownRuntimePacks)
654var matchingRuntimePacks = knownRuntimePacks.Where(krp => krp.Name.Equals(knownFrameworkReference.RuntimeFrameworkName, StringComparison.OrdinalIgnoreCase))
692List<string>? additionalFrameworkReferencesForRuntimePack,
694List<ITaskItem> unavailableRuntimePacks,
695List<ITaskItem>? runtimePacks,
696List<ITaskItem> packagesToDownload,
804List<ITaskItem> packagesToDownload,
805List<ITaskItem> implicitPackageReferences)
914List<string> aotPackRuntimeIdentifiers = new List<string>();
Microsoft.NET.HostModel (12)
Microsoft.Net.Http.Headers (6)
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (18)
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAsset.cs (8)
292internal static (List<StaticWebAsset> included, HashSet<string> excluded) FilterByGroup(
299var included = new List<StaticWebAsset>(assets.Length);
394internal static void SortByRelatedAssetInPlace(List<StaticWebAsset> assets)
1663internal void ComputeRoutes(List<StaticWebAssetResolvedRoute> routes)
1740internal static Dictionary<string, (StaticWebAsset, List<StaticWebAsset>)> AssetsByTargetPath(ITaskItem[] assets, string source, string assetKind)
1743internal static Dictionary<string, (StaticWebAsset, List<StaticWebAsset>)> AssetsByTargetPath(ITaskItem[] assets, string source, string assetKind, TaskEnvironment env)
1746var result = new Dictionary<string, (StaticWebAsset selected, List<StaticWebAsset> all)>();
1851var result = new List<string>(_defaultPropertyNames.Length + _additionalCustomMetadata.Count);
Microsoft.NET.Sdk.BlazorWebAssembly.Tool (4)
Microsoft.NET.Sdk.Publish.Tasks (38)
Microsoft.NET.Sdk.Razor.Tasks (6)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (156)
ApplyCompressionNegotiation.cs (16)
119if (endpointsByAsset.TryGetValue(endpoint.AssetFile, out var endpointsToSkip))
138if (endpointsByRoute.TryGetValue(route, out var endpoints))
194private static Dictionary<string, List<StaticWebAssetEndpoint>> GetEndpointsByRoute(
195IDictionary<string, List<StaticWebAssetEndpoint>> endpointsByAsset)
197var result = new Dictionary<string, List<StaticWebAssetEndpoint>>(endpointsByAsset.Count);
199foreach (var endpointsList in endpointsByAsset.Values)
203if (!result.TryGetValue(endpoint.Route, out var routeEndpoints))
257var endpointProperties = relatedEndpointCandidate.EndpointProperties.ToList();
287var headers = new List<StaticWebAssetEndpointResponseHeader>(7);
325private (List<StaticWebAssetEndpoint> compressedEndpoints, List<StaticWebAssetEndpoint> relatedAssetEndpoints) ResolveEndpoints(
327IDictionary<string, List<StaticWebAssetEndpoint>> endpointsByAsset,
336if (!endpointsByAsset.TryGetValue(compressedAsset.Identity, out var compressedEndpoints))
342if (!endpointsByAsset.TryGetValue(relatedAsset.Identity, out var relatedAssetEndpoints))
373private void ApplyCompressedEndpointHeaders(List<StaticWebAssetEndpointResponseHeader> headers, StaticWebAssetEndpoint compressedEndpoint, string relatedEndpointCandidateRoute)
391private void ApplyRelatedEndpointCandidateHeaders(List<StaticWebAssetEndpointResponseHeader> headers, StaticWebAssetEndpoint relatedEndpointCandidate, HashSet<string> compressedHeaders)
Data\StaticWebAsset.cs (8)
292internal static (List<StaticWebAsset> included, HashSet<string> excluded) FilterByGroup(
299var included = new List<StaticWebAsset>(assets.Length);
394internal static void SortByRelatedAssetInPlace(List<StaticWebAsset> assets)
1663internal void ComputeRoutes(List<StaticWebAssetResolvedRoute> routes)
1740internal static Dictionary<string, (StaticWebAsset, List<StaticWebAsset>)> AssetsByTargetPath(ITaskItem[] assets, string source, string assetKind)
1743internal static Dictionary<string, (StaticWebAsset, List<StaticWebAsset>)> AssetsByTargetPath(ITaskItem[] assets, string source, string assetKind, TaskEnvironment env)
1746var result = new Dictionary<string, (StaticWebAsset selected, List<StaticWebAsset> all)>();
1851var result = new List<string>(_defaultPropertyNames.Length + _additionalCustomMetadata.Count);
DefineStaticWebAssets.cs (11)
91Dictionary<string, List<GroupDefinition>> groupDefinitions = null;
636Dictionary<string, List<GroupDefinition>> definitionsBySourceId,
639if (!definitionsBySourceId.TryGetValue(asset.SourceId, out var definitions))
660List<string> groupEntries,
671public List<string> GroupEntries { get; }
712private Dictionary<string, List<GroupDefinition>> ParseGroupDefinitions()
714var definitions = new List<GroupDefinition>();
793var result = new Dictionary<string, List<GroupDefinition>>(StringComparer.Ordinal);
796if (!result.TryGetValue(def.SourceId, out var list))
807StaticWebAsset asset, List<GroupDefinition> definitions, StaticWebAssetGlobMatcher.MatchContext matchContext)
811var groupEntries = new List<string>();
Microsoft.NET.Sdk.StaticWebAssets.Tool (4)
Microsoft.NET.Sdk.WorkloadManifestReader (19)
Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver (3)
Microsoft.NET.StringTools (5)
Microsoft.Private.Windows.Core (64)
System\Private\Windows\Nrbf\CoreNrbfSerializer.cs (32)
57{ Types.ToTypeName($"{Types.ListName}[[{Types.BooleanType}]]"), typeof(List<bool>) },
58{ Types.ToTypeName($"{Types.ListName}[[{Types.CharType}]]"), typeof(List<char>) },
59{ Types.ToTypeName($"{Types.ListName}[[{Types.StringType}]]"), typeof(List<string>) },
60{ Types.ToTypeName($"{Types.ListName}[[{Types.SByteType}]]"), typeof(List<sbyte>) },
61{ Types.ToTypeName($"{Types.ListName}[[{Types.ByteType}]]"), typeof(List<byte>) },
62{ Types.ToTypeName($"{Types.ListName}[[{Types.Int16Type}]]"), typeof(List<short>) },
63{ Types.ToTypeName($"{Types.ListName}[[{Types.UInt16Type}]]"), typeof(List<ushort>) },
64{ Types.ToTypeName($"{Types.ListName}[[{Types.Int32Type}]]"), typeof(List<int>) },
65{ Types.ToTypeName($"{Types.ListName}[[{Types.UInt32Type}]]"), typeof(List<uint>) },
66{ Types.ToTypeName($"{Types.ListName}[[{Types.Int64Type}]]"), typeof(List<long>) },
67{ Types.ToTypeName($"{Types.ListName}[[{Types.UInt64Type}]]"), typeof(List<ulong>) },
68{ Types.ToTypeName($"{Types.ListName}[[{Types.SingleType}]]"), typeof(List<float>) },
69{ Types.ToTypeName($"{Types.ListName}[[{Types.DoubleType}]]"), typeof(List<double>) },
70{ Types.ToTypeName($"{Types.ListName}[[{Types.DecimalType}]]"), typeof(List<decimal>) },
71{ Types.ToTypeName($"{Types.ListName}[[{Types.DateTimeType}]]"), typeof(List<DateTime>) },
72{ Types.ToTypeName($"{Types.ListName}[[{Types.TimeSpanType}]]"), typeof(List<TimeSpan>) },
124|| type == typeof(List<byte>)
125|| type == typeof(List<sbyte>)
126|| type == typeof(List<short>)
127|| type == typeof(List<ushort>)
128|| type == typeof(List<int>)
129|| type == typeof(List<uint>)
130|| type == typeof(List<long>)
131|| type == typeof(List<ulong>)
132|| type == typeof(List<float>)
133|| type == typeof(List<double>)
134|| type == typeof(List<char>)
135|| type == typeof(List<bool>)
136|| type == typeof(List<string>)
137|| type == typeof(List<decimal>)
138|| type == typeof(List<DateTime>)
139|| type == typeof(List<TimeSpan>)
Microsoft.SourceLink.AzureDevOpsServer.Git (2)
Microsoft.SourceLink.AzureRepos.Git (2)
Microsoft.SourceLink.Bitbucket.Git (2)
Microsoft.SourceLink.Common (2)
Microsoft.SourceLink.Gitea (2)
Microsoft.SourceLink.Gitee (2)
Microsoft.SourceLink.GitHub (2)
Microsoft.SourceLink.GitLab (2)
Microsoft.SourceLink.GitWeb (2)
Microsoft.SourceLink.Tools.Package (1)
Microsoft.TemplateEngine.Cli (60)
TemplatePackageCoordinator.cs (10)
208List<InstallRequest> installRequests = new();
369Dictionary<IManagedTemplatePackageProvider, List<IManagedTemplatePackage>> sourcesToUninstall;
372foreach (KeyValuePair<IManagedTemplatePackageProvider, List<IManagedTemplatePackage>> providerSourcesToUninstall in sourcesToUninstall)
609private async Task<bool> ValidateInstallationRequestsAsync(InstallCommandArgs args, List<InstallRequest> installRequests, CancellationToken cancellationToken)
655private async Task<(NewCommandStatus, Dictionary<IManagedTemplatePackageProvider, List<IManagedTemplatePackage>>)> DetermineSourcesToUninstallAsync(UninstallCommandArgs commandArgs, CancellationToken cancellationToken)
664var packagesToUninstall = new Dictionary<IManagedTemplatePackageProvider, List<IManagedTemplatePackage>>();
665List<string> notFoundPackages = new();
675if (packagesToUninstall.TryGetValue(templatePackage.ManagedProvider, out List<IManagedTemplatePackage>? packages))
697if (packagesToUninstall.TryGetValue(templatePackage.ManagedProvider, out List<IManagedTemplatePackage>? packages))
885List<PackageSource> customSources = new();
Microsoft.TemplateEngine.Core (34)
Microsoft.TemplateEngine.Edge (60)
BuiltInManagedProvider\GlobalSettingsTemplatePackageProvider.cs (11)
56var list = new List<ITemplatePackage>();
84var tasks = new List<Task<IReadOnlyList<CheckUpdateResult>>>();
91var result = new List<CheckUpdateResult>();
124var packages = new List<TemplatePackageData>(await _globalSettings.GetInstalledTemplatePackagesAsync(cancellationToken).ConfigureAwait(false));
127var installersThatCanInstall = new List<IInstaller>();
169var packagesInSettings = new List<TemplatePackageData>(await _globalSettings.GetInstalledTemplatePackagesAsync(cancellationToken).ConfigureAwait(false));
193var packages = new List<TemplatePackageData>(await _globalSettings.GetInstalledTemplatePackagesAsync(cancellationToken).ConfigureAwait(false));
220var updatedPackages = new List<TemplatePackageData>(templatePackages.Select(tp => ((ISerializableInstaller)tp.Installer).Serialize(tp)));
232private async Task<UpdateResult> UpdateAsync(List<TemplatePackageData> packages, UpdateRequest updateRequest, CancellationToken cancellationToken)
258private async Task<(InstallerErrorCode, string)> EnsureInstallPrerequisites(List<TemplatePackageData> packagesInSettings, string identifier, string? version, IInstaller installer, CancellationToken cancellationToken, bool update = false, bool forceUpdate = false)
305private async Task<InstallResult> InstallAsync(List<TemplatePackageData> packages, InstallRequest installRequest, IInstaller installer, CancellationToken cancellationToken)
Microsoft.TemplateEngine.IDE (2)
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (88)
OperationConfig\ConditionalBlockCommentConfig.cs (9)
14internal static List<IOperationProvider> ConfigureFromJObject(JsonObject rawConfiguration)
43internal static List<IOperationProvider> GenerateConditionalSetup(string startToken, string endToken)
48internal static List<IOperationProvider> GenerateConditionalSetup(string? startToken, string? endToken, ConditionalKeywords keywords, ConditionalOperationOptions options)
66internal static List<IOperationProvider> GenerateConditionalSetup(string? startToken, string? endToken, string? pseudoEndToken)
71internal static List<IOperationProvider> GenerateConditionalSetup(string? startToken, string? endToken, string? pseudoEndToken, ConditionalKeywords keywords, ConditionalOperationOptions options)
75List<ITokenConfig> endIfTokens = new List<ITokenConfig>();
82List<ITokenConfig> actionableIfTokens = new List<ITokenConfig>();
88List<ITokenConfig> actionableElseTokens = new List<ITokenConfig>();
95List<ITokenConfig> actionableElseIfTokens = new List<ITokenConfig>();
Microsoft.TemplateEngine.Utils (19)
Microsoft.TemplateSearch.Common (17)
Microsoft.TestPlatform.AdapterUtilities (1)
Microsoft.TestPlatform.Build (7)
Microsoft.TestPlatform.CommunicationUtilities (83)
Microsoft.TestPlatform.CoreUtilities (1)
Microsoft.TestPlatform.CrossPlatEngine (68)
Microsoft.TestPlatform.Extensions.BlameDataCollector (20)
Microsoft.TestPlatform.Filter.Source (1)
Microsoft.TestPlatform.TestHostRuntimeProvider (2)
Microsoft.TestPlatform.Utilities (12)
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (9)
Microsoft.VisualBasic.Core (59)
Microsoft\VisualBasic\CompilerServices\OverloadResolution.vb (26)
488ByVal candidates As List(Of Method),
723ByVal baseReference As Container) As List(Of Method)
735Dim candidates As List(Of Method) = New List(Of Method)(members.Length)
930ByVal errors As List(Of String),
1237ByVal errors As List(Of String),
1307ByVal errors As List(Of String)) As Boolean
1414ByVal errors As List(Of String)) As Boolean
1669ByVal errors As List(Of String)) As Boolean
1851ByVal errors As List(Of String)) As Boolean
2056ByVal candidates As List(Of Method),
2307ByVal candidates As List(Of Method),
2368ByVal candidates As List(Of Method),
2456ByVal errors As List(Of String),
2472ByVal errors As List(Of String),
2486ByVal errors As List(Of String),
2497Private Shared Sub ReportError(ByVal errors As List(Of String), ByVal resourceID As String)
2508ByVal errors As List(Of String)) As Boolean
2514ByVal candidates As List(Of Method),
2587ByVal errors As List(Of String)) As Boolean
2605ByVal candidates As List(Of Method),
2629ByVal errors As List(Of String)) As Boolean
2647ByVal candidates As List(Of Method),
2670ByVal errors As List(Of String)) As Boolean
2682ByVal candidates As List(Of Method),
2700ByVal candidates As List(Of Method),
2821Dim candidates As List(Of Method) =
Microsoft.VisualStudio.TestPlatform.Client (1)
Microsoft.VisualStudio.TestPlatform.Common (44)
Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger (7)
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (27)
Microsoft.VisualStudio.TestPlatform.ObjectModel (33)
Microsoft.Web.XmlTransform (10)
Microsoft.Win32.Msi (1)
Microsoft.Win32.SystemEvents (6)
MilvusPlayground.ApiService (4)
Mono.Cecil (5)
Mono.Cecil.Mdb (17)
Mono.Cecil.Pdb (4)
Mono.Cecil.Rocks (1)
MSBuild (52)
XMake.cs (27)
905List<DistributedLoggerRecord> distributedLoggerRecords = null;
1550private static readonly List<BuildManager.DeferredBuildMessage> s_globalMessagesToLogInBuildLoggers = new();
1620List<ForwardingLoggerRecord> remoteLoggerRecords = new List<ForwardingLoggerRecord>();
1842List<BuildManager.DeferredBuildMessage> messagesToLogInBuildLoggers = new();
2048private static List<BuildManager.DeferredBuildMessage> GetMessagesToLogInBuildLoggers(string commandLineString)
2050List<BuildManager.DeferredBuildMessage> messages = new(s_globalMessagesToLogInBuildLoggers)
2417ref List<DistributedLoggerRecord> distributedLoggerRecords,
3318internal static ProfilerLogger ProcessProfileEvaluationSwitch(string[] parameters, List<ILogger> loggers, out bool enableProfiler)
3555List<string> actualProjectFiles = new List<string>();
3569List<string> actualSolutionFiles = new List<string>();
3570List<string> solutionFilterFiles = new List<string>();
3803out List<DistributedLoggerRecord> distributedLoggerRecords,
3840var loggers = new List<ILogger>();
3918private static void ProcessFileLoggers(string[][] groupedFileLoggerParameters, List<DistributedLoggerRecord> distributedLoggerRecords, int cpuCount, List<ILogger> loggers)
3973private static void ProcessBinaryLogger(string[] binaryLoggerParameters, List<ILogger> loggers, ref LoggerVerbosity verbosity)
4022List<DistributedLoggerRecord> distributedLoggerRecords,
4025List<ILogger> loggers)
4069List<DistributedLoggerRecord> distributedLoggerRecords,
4072List<ILogger> loggers)
4151List<DistributedLoggerRecord> distributedLoggerRecords)
4299private static void ProcessLoggerSwitch(string[] parameters, List<ILogger> loggers, LoggerVerbosity verbosity)
4318private static List<DistributedLoggerRecord> ProcessDistributedLoggerSwitch(string[] parameters, LoggerVerbosity verbosity)
4320List<DistributedLoggerRecord> distributedLoggers = new List<DistributedLoggerRecord>();
4325var loggerSpec = QuotingUtilities.SplitUnquoted(parameter, 2, true /* keep empty splits */, false /* keep quotes */, out _, '*');
4370var loggerSpec = QuotingUtilities.SplitUnquoted(parameter, 2, true /* keep empty splits */, false /* keep quotes */, out _, ';');
4385var loggerTypeSpec = QuotingUtilities.SplitUnquoted(loggerSpec[0], int.MaxValue, true /* keep empty splits */, false /* keep quotes */, out _, ',');
MSBuild.Coordinator (2)
mscorlib (1)
MyFrontend (2)
netstandard (1)
NuGet.Build.Tasks (21)
NuGet.Build.Tasks.Console (38)
MSBuildStaticGraphRestore.cs (28)
157List<RestoreSummary> restoreSummaries = await BuildTasksUtility.RestoreAsync(
264/// <returns>A <see cref="List{FrameworkDependency}" /> containing the framework references for the specified project.</returns>
268List<IMSBuildItem> frameworkReferenceItems = GetDistinctItemsOrEmpty(project, "FrameworkReference").ToList();
351/// <returns>A <see cref="List{LibraryDependency}" /> containing the package references for the specified project.</returns>
355List<IMSBuildItem> packageReferenceItems = GetDistinctItemsOrEmpty(project, "PackageReference").ToList();
465/// <returns>A <see cref="List{ProjectRestoreReference}" /> containing the project references for the specified project.</returns>
466internal static List<ProjectRestoreReference> GetProjectReferences(IMSBuildProject project)
469var projectReferenceItems = project.GetItems("ProjectReference")
474var projectReferences = new List<ProjectRestoreReference>(projectReferenceItems.Count);
497/// <returns>A <see cref="List{ProjectRestoreMetadataFrameworkInfo}" /> containing the restore metadata framework information for the specified project.</returns>
498internal static List<ProjectRestoreMetadataFrameworkInfo> GetProjectRestoreMetadataFrameworkInfos(List<TargetFrameworkInformation> targetFrameworkInfos, IReadOnlyDictionary<string, IMSBuildProject> projects)
500var projectRestoreMetadataFrameworkInfos = new List<ProjectRestoreMetadataFrameworkInfo>(projects.Count);
653/// <returns>A <see cref="List{PackageSource}" /> object containing the packages sources for the specified project.</returns>
654internal static List<PackageSource> GetSources(IMSBuildProject project, IReadOnlyCollection<IMSBuildProject> innerNodes, ISettings settings)
713private List<ProjectGraphEntryPoint> GetProjectGraphEntryPoints(string entryProjectPath, IDictionary<string, string> globalProperties)
750/// <returns>A <see cref="List{TargetFrameworkInformation}" /> containing the target framework information for the specified project.</returns>
751internal static List<TargetFrameworkInformation> GetTargetFrameworkInfos(IReadOnlyDictionary<string, IMSBuildProject> projectInnerNodes, bool isCpvmEnabled, bool isPruningEnabledGlobally)
753var targetFrameworkInfos = new List<TargetFrameworkInformation>(projectInnerNodes.Count);
768var packageTargetFallback = MSBuildStringUtility.Split(msBuildProjectInstance.GetProperty("PackageTargetFallback")).Select(NuGetFramework.Parse).ToList();
770var assetTargetFallbackEnum = MSBuildStringUtility.Split(msBuildProjectInstance.GetProperty(nameof(TargetFrameworkInformation.AssetTargetFallback))).Select(NuGetFramework.Parse).ToList();
967var entryProjects = GetProjectGraphEntryPoints(entryProjectPath, globalProperties);
1078(ProjectRestoreMetadata restoreMetadata, List<TargetFrameworkInformation> targetFrameworkInfos) = GetProjectRestoreMetadataAndTargetFrameworkInformation(project, projectsByTargetFramework, settings);
1117/// <returns>A <see cref="Tuple" /> containing the <see cref="ProjectRestoreMetadata" /> and <see cref="List{TargetFrameworkInformation}" /> for the specified project.</returns>
1118private (ProjectRestoreMetadata RestoreMetadata, List<TargetFrameworkInformation> TargetFrameworkInfos) GetProjectRestoreMetadataAndTargetFrameworkInformation(IMSBuildProject project, IReadOnlyDictionary<string, IMSBuildProject> projectsByTargetFramework, ISettings settings)
1131List<TargetFrameworkInformation> targetFrameworkInfos = GetTargetFrameworkInfos(projectsByTargetFramework, isCentralPackageManagementEnabled, isPruningEnabledGlobally);
1133List<IMSBuildProject> innerNodes = projectsByTargetFramework.Values.ToList();
1267var loggers = new List<Microsoft.Build.Framework.ILogger>
NuGet.Build.Tasks.Pack (18)
PackTaskLogic.cs (17)
70(Dictionary<string, string> targetAliasToNuGetFramework, Dictionary<string, List<string>> nuGetFrameworkToDuplicateAliases) = BuildAliasFrameworkMappings(assetsFile);
227(Dictionary<string, string> targetAliasToNuGetFramework, Dictionary<string, List<string>> nuGetFrameworkToDuplicateAliases) = BuildAliasFrameworkMappings(assetsFile);
368private static (Dictionary<string, string> targetAliasToNuGetFramework, Dictionary<string, List<string>> duplicateAliases)
372var frameworkToAliases = new Dictionary<string, List<string>>();
380if (!frameworkToAliases.TryGetValue(tfmShortName, out List<string> list))
436Dictionary<string, List<string>> nuGetFrameworkToDuplicateAliases)
458List<string> duplicates = nuGetFrameworkToDuplicateAliases[frameworkShortFolderName];
502private static IEnumerable<OutputLibFile> InitLibFiles(IMSBuildItem[] libFiles, IDictionary<string, string> targetAliasToNuGetFramework, Dictionary<string, List<string>> nuGetFrameworkToDuplicateAliases)
504var assemblies = new List<OutputLibFile>();
594var listOfPackageTypes = new List<PackageType>();
677var existingContentMetadata = new List<ContentMetadata>();
692var targetPaths = contentTargetFolders
715var newTargetPaths = new List<string>();
767var newTargetPaths = new List<string>();
798var totalSetOfTargetPaths = new List<string>();
872Dictionary<string, List<string>> nuGetFrameworkToDuplicateAliases)
878var unsuppressedAliases = duplicates.Value
NuGet.CommandLine.XPlat (228)
_generated\3\PackageSearchJsonContext.PackageSearchResult.g.cs (6)
73var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>>
88AttributeProviderFactory = static () => typeof(global::NuGet.CommandLine.XPlat.PackageSearchResult).GetProperty("Problems", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>), global::System.Array.Empty<global::System.Type>(), null),
91properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>>(options, info1);
93var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::NuGet.Protocol.Core.Types.IPackageSearchMetadata>>
108AttributeProviderFactory = static () => typeof(global::NuGet.CommandLine.XPlat.PackageSearchResult).GetProperty("Packages", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::NuGet.Protocol.Core.Types.IPackageSearchMetadata>), global::System.Array.Empty<global::System.Type>(), null),
111properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Core.Types.IPackageSearchMetadata>>(options, info2);
_generated\4\PackageSearchJsonContext.SearchMainOutput.g.cs (6)
73var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>>
88AttributeProviderFactory = static () => typeof(global::NuGet.CommandLine.XPlat.SearchMainOutput).GetProperty("Problems", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>), global::System.Array.Empty<global::System.Type>(), null),
91properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>>(options, info1);
95var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchResult>>
110AttributeProviderFactory = static () => typeof(global::NuGet.CommandLine.XPlat.SearchMainOutput).GetProperty("SearchResult", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchResult>), global::System.Array.Empty<global::System.Type>(), null),
113properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchResult>>(options, info2);
Commands\Package\Update\PackageUpdateCommandRunner.cs (28)
135private static async Task<(List<PackageUpdateResult> vulnerablePackages, HashSet<string> packagesScanned)> SelectVulnerablePackagesToUpdateAsync(
179var packagesToUpdateResult = new List<PackageUpdateResult>();
192List<(PackageIdentity package, List<string> targetFrameworkAliases)> packagesToUpdate = assetsFile
315private static async Task<(int? exitCode, Dictionary<string, List<PackageUpdateResult>> projectPackageUpdates, int totalPackagesScanned)>
324var projectPackageUpdates = new Dictionary<string, List<PackageUpdateResult>>(StringComparer.OrdinalIgnoreCase);
346(List<PackageUpdateResult> packagesToUpdate, HashSet<string> scannedPackages) =
366(List<PackageUpdateResult>? packagesToUpdate, HashSet<string> scannedPackages) =
388(List<PackageUpdateResult>? packagesToUpdate, HashSet<string> scannedPackages) =
422Dictionary<string, List<PackageUpdateResult>> projectPackageUpdates,
423Func<string, CancellationToken, Task<(List<PackageUpdateResult>? packagesToUpdate, HashSet<string> scannedPackages, int? errorExitCode)>> processProject,
438(List<PackageUpdateResult>? packagesToUpdate, HashSet<string> projectScannedPackages, int? errorExitCode) =
461internal static async Task<(List<PackageUpdateResult>?, HashSet<string> scannedPackages)> SelectSpecificPackagesToUpdateAsync(
474var packagesToUpdate = new List<PackageUpdateResult>();
558private static (VersionRange? version, List<string> targetFrameworks)
562List<string> frameworks = new();
620internal static async Task<(List<PackageUpdateResult>? packagesToUpdate, HashSet<string> scannedPackages)> SelectAllPackagesWithUpdatesAsync(
626var allProjectPackages = GetAllPackagesReferencedByProject(project, logger);
633var packagesToUpdate = new List<PackageUpdateResult>();
682private static List<(PackageWithVersionRange identity, List<string> tfms)>? GetAllPackagesReferencedByProject(PackageSpec project, ILoggerWithColor logger)
684var allPackages = new Dictionary<string, (VersionRange version, List<string> tfms, bool hasError)>(StringComparer.OrdinalIgnoreCase);
714List<string> tfms = [tfm.TargetAlias];
726List<(PackageWithVersionRange package, List<string> tfms)> result = new(allPackages.Count);
736private static DependencyGraphSpec GetUpdatedDependencyGraphSpec(DependencyGraphSpec currentDgSpec, Dictionary<string, List<PackageUpdateResult>> projectPackageUpdates)
743if (projectPackageUpdates.TryGetValue(project.FilePath, out var packagesToUpdate))
791public required List<string> TargetFrameworkAliases { get; init; }
Commands\Package\Update\PackageUpdateIO.cs (10)
148var providers = new List<IPreLoadedRestoreRequestProvider>
183/// <inheritdoc cref="IPackageUpdateIO.UpdatePackageReference(PackageSpec, IPackageUpdateIO.RestoreResult, List{string}, PackageToUpdate, ILogger)"/>
184public void UpdatePackageReference(PackageSpec updatedPackageSpec, IPackageUpdateIO.RestoreResult restorePreviewResult, List<string> packageTfmAliases, PackageToUpdate packageToUpdate, ILogger logger)
231var sources = GetSourcesForPackage(packageId, allowedSources);
266var tasks = new List<Task<GetVulnerabilityInfoResult?>>(auditSources.Count);
282List<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>> allVulnerabilities = new();
310var sources = GetSourcesForPackage(packageId, allowedSources);
341private List<SourceRepository> GetSourcesForPackage(string packageId, IReadOnlyList<string>? allowedSources)
353List<PackageSource> sourceMappedSources = new List<PackageSource>(allowedSources.Count);
362var sources = new List<SourceRepository>(packageSources.Count);
Commands\PackageReferenceCommands\ListPackage\ListPackageCommandRunner.cs (27)
129List<FrameworkPackages> frameworks;
147List<PackageSource> httpSources = HttpSourcesUtility.GetDisallowedInsecureHttpSources(listPackageArgs.PackageSources);
175List<ListPackageReportFrameworkPackage> projectFrameworkPackages = ProjectPackagesPrintUtility.GetPackagesMetadata(frameworks, listPackageArgs, ref hasAutoReference);
191List<FrameworkPackages> frameworks)
193List<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>> vulnerabilities = await GetVulnerabilityData(
218List<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>> vulnerabilities,
219List<ListReportPackage> reportPackages)
223var vuln = GetPackageVulnerabilities(
272private static async Task<List<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>>> GetVulnerabilityData(
279var vulnerabilityInfo = new List<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>>();
300List<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>> vulnerabilityInfo)
406var filteredReferences = new List<InstalledPackageReference>();
424internal async Task<Dictionary<string, List<IPackageSearchMetadata>>> GetPackageMetadataAsync(
425List<FrameworkPackages> targetFrameworks,
428List<string> allPackages = GetAllPackageIdentifiers(targetFrameworks, listPackageArgs.IncludeTransitive);
429var packageMetadataById = new Dictionary<string, List<IPackageSearchMetadata>>(capacity: allPackages.Count);
445static List<string> GetAllPackageIdentifiers(List<FrameworkPackages> frameworks, bool includeTransitive)
452List<string> allPackages = intermediateEnumerable.Select(p => p.Name).Distinct(StringComparer.OrdinalIgnoreCase).ToList();
562List<FrameworkPackages> frameworks,
563Dictionary<string, List<IPackageSearchMetadata>> packageMetadata,
570if (packageMetadata.TryGetValue(topLevelPackage.Name, out List<IPackageSearchMetadata> matchingPackage))
609if (packageMetadata.TryGetValue(transitivePackage.Name, out List<IPackageSearchMetadata> matchingPackage))
673private async Task<KeyValuePair<string, List<IPackageSearchMetadata>>> GetPackageMetadataAsync(
678var results = new List<IPackageSearchMetadata>();
679var sources = listPackageArgs.PackageSources;
687return new KeyValuePair<string, List<IPackageSearchMetadata>>(package, results);
Commands\Why\DependencyGraphPrinter.cs (13)
27public static void PrintAllDependencyGraphs(Dictionary<string, List<DependencyNode>?> dependencyGraphPerFramework, string targetPackage, IAnsiConsole logger, IDotnetVersionChecker dotnetVersionChecker)
33List<List<string>> deduplicatedFrameworks = GetDeduplicatedFrameworks(dependencyGraphPerFramework);
35foreach (var frameworks in deduplicatedFrameworks)
52private static void PrintDependencyGraphPerFramework(List<string> frameworks, List<DependencyNode>? topLevelNodes, string targetPackage, IAnsiConsole logger, IDotnetVersionChecker dotnetVersionChecker)
142private static List<List<string>> GetDeduplicatedFrameworks(Dictionary<string, List<DependencyNode>?> dependencyGraphPerFramework)
144List<string>? frameworksWithoutGraphs = null;
145var dependencyGraphHashes = new Dictionary<int, List<string>>(dependencyGraphPerFramework.Count);
167var deduplicatedFrameworks = dependencyGraphHashes.Values.ToList();
181private static int GetDependencyGraphHashCode(List<DependencyNode>? graph)
ListPackage\ListPackageJsonRenderer.cs (6)
51protected readonly List<ReportProblem> _problems = new();
166private static void WriteProjects(JsonWriter writer, List<ListPackageProjectModel> reportProjects, ListPackageArgs listPackageArgs)
192private static void WriteFrameworkPackage(JsonWriter writer, List<ListPackageReportFrameworkPackage> reportFrameworkPackages, ListPackageArgs listPackageArgs)
209private static void WriteTopLevelPackages(JsonWriter writer, string property, List<ListReportPackage> topLevelPackages, ListPackageArgs listPackageArgs)
256private static void WriteTransitivePackages(JsonWriter writer, string property, List<ListReportPackage> transitivePackages, ListPackageArgs listPackageArgs)
333private static void WriteVulnerabilities(JsonWriter writer, List<PackageVulnerabilityMetadata> vulnerabilities)
ListPackage\ListReportPackage.cs (4)
16public List<PackageVulnerabilityMetadata> Vulnerabilities { get; private set; }
22public ListReportPackage(string packageId, string resolvedVersion, string latestVersion, List<PackageVulnerabilityMetadata> vulnerabilities, PackageDeprecationMetadata deprecationReasons, AlternatePackageMetadata alternativePackage, string requestedVersion, bool autoReference)
87public ListReportPackage(string packageId, string requestedVersion, string resolvedVersion, string latestVersion, List<PackageVulnerabilityMetadata> vulnerabilities)
99public ListReportPackage(string packageId, string requestedVersion, string resolvedVersion, List<PackageVulnerabilityMetadata> vulnerabilities)
NuGet.Commands (313)
RestoreCommand\LockFileBuilderCache.cs (9)
31private readonly ConcurrentDictionary<CriteriaKey, List<(List<SelectionCriteria>, bool)>> _criteriaSets =
46public List<List<SelectionCriteria>> GetSelectionCriteria(RestoreTargetGraph graph, NuGetFramework framework)
52List<(List<SelectionCriteria> selectionCriterias, bool fallbackUsed)> result = _criteriaSets.GetOrAdd(key, _ => LockFileUtils.CreateOrderedCriteriaSets(graph.Conventions, framework, runtimeIdentifier: graph.RuntimeIdentifier));
67internal List<(List<SelectionCriteria>, bool)> GetLabeledSelectionCriteria(RestoreTargetGraph graph, NuGetFramework framework)
109internal (LockFileTargetLibrary, bool, NuGetFramework, NuGetFramework) GetLockFileTargetLibrary(RestoreTargetGraph graph, NuGetFramework framework, LocalPackageInfo localPackageInfo, string aliases, LibraryIncludeFlags libraryIncludeFlags, List<LibraryDependency> dependencies, bool restoreEnableAnalyzerAssets, Func<(LockFileTargetLibrary, bool, NuGetFramework, NuGetFramework)> valueFactory)
RestoreCommand\RestoreCommand.cs (46)
225var localRepositories = new List<NuGetv3LocalRepository>
270(successfulResult, List<RestoreTargetGraph> graphs) = await GenerateRestoreGraphsAsync(telemetry, contextForProject, success, token);
483private void PopulateAnalyzerAssetsTelemetry(TelemetryEvent telemetryEvent, LockFile assetsFile, List<RestoreTargetGraph> graphs, PackageSpec project)
749private async Task<(bool, List<RestoreTargetGraph>)> GenerateRestoreGraphsAsync(TelemetryActivity telemetry, RemoteWalkContext contextForProject, bool success, CancellationToken token)
751List<RestoreTargetGraph> graphs = null;
784var frameworkRuntimePairs = CreateFrameworkRuntimeDefinitions(_request.Project, RequestRuntimeUtility.GetRestoreRuntimes(_request));
796private async Task<(bool, IEnumerable<MSBuildOutputFile>, string, string, LockFile, List<RestoreTargetGraph>, PackagesLockFile, string, CacheFile)> ProcessRestoreResultAsync(TelemetryActivity telemetry,
797List<NuGetv3LocalRepository> localRepositories,
802List<RestoreTargetGraph> graphs,
880var logs = logsEnumerable
952private async Task<bool> PerformAuditAsync(List<RestoreTargetGraph> graphs, TelemetryActivity telemetry, CancellationToken token)
1002void AddPackagesList(TelemetryActivity telemetry, string eventName, List<string> packages)
1004List<TelemetryEvent> result = new List<TelemetryEvent>(packages.Count);
1140Dictionary<string, List<string>> prunedDirectPackages = GetPrunableDirectPackages(project);
1146static Dictionary<string, List<string>> GetPrunableDirectPackages(PackageSpec project)
1148Dictionary<string, List<string>> prunedDirectPackages = null;
1178static void RaiseNU1510WarningsIfNeeded(PackageSpec project, ILogger logger, bool enablePruningWarnings, Dictionary<string, List<string>> prunedDirectPackages, TelemetryEvent telemetry)
1246static bool ContainsPackage(KeyValuePair<string, List<string>> prunedPackage, TargetFrameworkInformation framework)
1301var packagesList = new List<string>(packagesWithoutVersions.Count);
1334List<CentralPackageVersion> packageVersionItemsWithFloatingVersion = null;
1335List<LibraryDependency> implicitPackageReferenceItemsWithPackageVersion = null;
1336List<LibraryDependency> packageReferenceItemsWithNoPackageVersion = null;
1337List<LibraryDependency> packageReferenceItemsWithVersion = null;
1338List<LibraryDependency> packageReferenceItemsWithVersionOverride = null;
1635var libraries = target.Dependencies
1791List<RestoreTargetGraph> graphs,
1914var messages = new List<RestoreLogMessage>();
1979var checkResults = new List<CompatibilityCheckResult>();
2017private async Task<(bool, List<RestoreTargetGraph>)> ExecuteLegacyRestoreAsync(
2046var updatedExternalProjects = GetProjectReferences(_request);
2063var allGraphs = new List<RestoreTargetGraph>();
2065var projectFrameworkRuntimePairs = CreateFrameworkRuntimeDefinitions(_request.Project, runtimeIds);
2075Tuple<bool, List<RestoreTargetGraph>, RuntimeGraph> result = null;
2079List<FrameworkRuntimePair> frameworkRuntimePairs = new();
2158Tuple<bool, List<RestoreTargetGraph>, RuntimeGraph> compatibilityResult = null;
2202private async Task<(bool, List<RestoreTargetGraph>)> ExecuteRestoreAsync(
2237var localRepositories = new List<NuGetv3LocalRepository>();
2246var updatedExternalProjects = GetProjectReferences(_request);
2255List<RestoreTargetGraph> graphs = null;
2263(bool Success, List<RestoreTargetGraph> Graphs, RuntimeGraph Runtimes) result = await dependencyGraphResolver.ResolveAsync(userPackageFolder, fallbackPackageFolders, context, projectRestoreCommand, localRepositories, token);
2409internal static List<ExternalProjectReference> GetProjectReferences(RestoreRequest request)
2412var updatedExternalProjects = new List<ExternalProjectReference>();
2423var rootProjectMatches = request.ExternalProjects.Where(proj =>
2472/// <returns>A <see cref="List{T}" /> containing <see cref="FrameworkRuntimeDefinition" /> objects with the frameworks with empty runtime identifiers followed by frameworks with the specified runtime identifiers.</returns>
2473internal static List<FrameworkRuntimeDefinition> CreateFrameworkRuntimeDefinitions(PackageSpec packageSpec, ISet<string> runtimeIds)
2476List<FrameworkRuntimeDefinition> projectFrameworkRuntimePairs = new(capacity: packageSpec.TargetFrameworks.Count * (runtimeIds.Count + 1));
RestoreCommand\RestoreCommandProvidersCache.cs (10)
102List<NuGetv3LocalRepository> fallbackFolders = GetFallbackFolderRepositories(fallbackPackagesPaths);
103List<IRemoteDependencyProvider> localProviders = CreateLocalProviders(globalPackagesPath, fallbackPackagesPaths, cacheContext, log, environmentVariableReader);
104List<IRemoteDependencyProvider> remoteProviders = CreateRemoteProviders(packageSources, cacheContext, log, environmentVariableReader);
117private List<NuGetv3LocalRepository> GetFallbackFolderRepositories(IReadOnlyList<string> fallbackPackagesPaths)
119var fallbackFolders = new List<NuGetv3LocalRepository>();
130private List<IRemoteDependencyProvider> CreateLocalProviders(string globalPackagesPath, IReadOnlyList<string> fallbackPackagesPaths, SourceCacheContext cacheContext, ILogger log, IEnvironmentVariableReader environmentVariableReader)
150var localProviders = new List<IRemoteDependencyProvider>(fallbackPackagesPaths.Count + 1) { local };
179private List<IRemoteDependencyProvider> CreateRemoteProviders(IReadOnlyList<SourceRepository> sources, SourceCacheContext cacheContext, ILogger log, IEnvironmentVariableReader environmentVariableReader)
181var remoteProviders = new List<IRemoteDependencyProvider>(sources.Count);
214var vulnerabilityInformationProviders = new List<IVulnerabilityInformationProvider>(sources.Count);
RestoreCommand\Utility\AuditUtility.cs (16)
26private readonly List<RestoreTargetGraph> _targetGraphs;
34internal List<string>? DirectPackagesWithAdvisory { get; private set; }
35internal List<string>? PackageDownloadPackagesWithAdvisory { get; private set; }
36internal List<string>? TransitivePackagesWithAdvisory { get; private set; }
65List<RestoreTargetGraph> graphs,
137List<PackageVulnerabilityInfo>? knownVulnerabilitiesForPackage = GetKnownVulnerabilities(downloadDependency.Name, downloadDependency.VersionRange.MaxVersion!, knownVulnerabilities);
169if (!auditInfo.GraphsPerVulnerability.TryGetValue(knownVulnerability, out List<string>? affectedGraphs))
199List<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>>? allVulnerabilityData = await GetAllVulnerabilityDataAsync(cancellationToken);
280List<string> affectedGraphs = kvp2.Value;
330private static List<PackageVulnerabilityInfo>? GetKnownVulnerabilities(
385List<PackageVulnerabilityInfo>? knownVulnerabilitiesForPackage = GetKnownVulnerabilities(package.Name, package.Version, knownVulnerabilities);
419if (!auditInfo.GraphsPerVulnerability.TryGetValue(knownVulnerability, out List<string>? affectedGraphs))
443private async Task<List<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>>?> GetAllVulnerabilityDataAsync(CancellationToken cancellationToken)
458List<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>>? knownVulnerabilities = null;
574public Dictionary<PackageVulnerabilityInfo, List<string>> GraphsPerVulnerability { get; }
587public Dictionary<PackageVulnerabilityInfo, List<string>> GraphsPerVulnerability { get; }
RestoreCommand\Utility\BuildAssetsUtils.cs (15)
88public static List<MSBuildOutputFile> GenerateMultiTargetFailureFiles(
104var files = new List<MSBuildOutputFile>()
315public static XDocument GenerateMSBuildFile(List<MSBuildRestoreItemGroup> groups, ProjectStyle outputType)
453public static List<MSBuildOutputFile> GetMSBuildOutputFiles(PackageSpec project,
501var props = new List<MSBuildRestoreItemGroup>();
502var targets = new List<MSBuildRestoreItemGroup>();
542List<KeyValuePair<LockFileTargetLibrary, Lazy<LocalPackageSourceInfo>>> sortedPackages = new List<KeyValuePair<LockFileTargetLibrary, Lazy<LocalPackageSourceInfo>>>(sortedGraph.Count);
632var lockContentFiles = new List<LockFileContentFile>(pkg.Key.ContentFiles.Count);
643var currentItems = new List<(LockFileTargetLibrary, LockFileContentFile, string)>(lockContentFiles.Count);
677var files = new List<MSBuildOutputFile>(capacity: 2)
689static MSBuildRestoreItemGroup GenerateBuildGroup(string repositoryRoot, List<KeyValuePair<LockFileTargetLibrary, Lazy<LocalPackageSourceInfo>>> sortedPackages, string extension, IEnvironmentVariableReader environmentVariableReader)
712static MSBuildRestoreItemGroup GenerateMultiTargetingGroup(string repositoryRoot, List<KeyValuePair<LockFileTargetLibrary, Lazy<LocalPackageSourceInfo>>> sortedPackages, HashSet<string> multiTargetingImportsAdded, string extension, IEnvironmentVariableReader environmentVariableReader)
773List<ValueTuple<LockFileTargetLibrary, LockFileContentFile, string>> currentItems)
821var newConditions = new List<string>(original.Conditions.Count + 1);
892List<PackageDependency> newDependencies = new List<PackageDependency>(item.Data.Dependencies.Count);
RestoreCommand\Utility\LockFileUtils.cs (40)
70List<LibraryDependency> dependencies,
95List<(List<SelectionCriteria> orderedCriteria, bool fallbackUsed)> orderedCriteriaSets = cache.GetLabeledSelectionCriteria(targetGraph, framework);
98var packageTypes = nuspec.GetPackageTypes().AsList();
144internal static List<(List<SelectionCriteria>, bool)> CreateOrderedCriteriaSets(ManagedCodeConventions codeConventions, NuGetFramework framework, string runtimeIdentifier)
151var orderedCriteriaSets = new List<(List<SelectionCriteria>, bool)>(1);
204List<SelectionCriteria> orderedCriteria,
287List<SelectionCriteria> orderedCriteria,
337List<ContentItemGroup> contentFileGroups = new();
343var contentFileGroupsForFramework = ContentFileUtils.GetContentGroupsForFramework(
372var runtimeTargetItems = new List<LockFileRuntimeTarget>();
439var groups = nuspec.GetReferenceGroups().ToList();
576var orderedCriteria = CreateCriteria(targetGraph.Conventions, targetGraph.Framework, targetGraph.RuntimeIdentifier);
583List<ProjectRestoreMetadataFile> files = (List<ProjectRestoreMetadataFile>)filesObject;
653projectLib.FrameworkAssemblies.AddRange((List<string>)frameworkAssembliesObject);
679private static List<LockFileItem> ConvertToProjectPaths(
684var results = new List<LockFileItem>(items.Count);
701List<SelectionCriteria> criteria,
708List<LockFileItem> result = null;
753List<SelectionCriteria> criteria,
769var lockFileItems = new List<LockFileItem>();
916private static List<SelectionCriteria> CreateCriteria(
921List<SelectionCriteria> managedCriteria;
1022private static List<ContentItemGroup> GetContentGroupsForFramework(
1024List<ContentItemGroup> contentGroups,
1027var groups = new List<ContentItemGroup>();
1030var primaryGroups = new Dictionary<string, List<ContentItemGroup>>(StringComparer.Ordinal);
1039List<ContentItemGroup> index;
1053var groupedItems = primaryGroup.Value;
1080private static List<LockFileRuntimeTarget> GetRuntimeTargetLockFileItems(
1088List<ContentItemGroup> groups = new List<ContentItemGroup>();
1091var groupsForFramework = GetContentGroupsForFramework(
1096var items = GetRuntimeTargetItems(groupsForFramework, assetType);
1111private static List<LockFileRuntimeTarget> GetRuntimeTargetItems(List<ContentItemGroup> groups, string assetType)
1113var results = new List<LockFileRuntimeTarget>();
1221var newBuildAssets = new List<LockFileItem>();
RestoreCommand\Utility\MSBuildRestoreUtility.cs (18)
73var itemsById = new Dictionary<string, List<IMSBuildItem>>(uniqueNameComparer);
89List<IMSBuildItem> idItems;
100var additionalMessages = collectAdditionalMessages ? new List<IAssetsLogMessage>() : null;
103var validProjectSpecs = new List<PackageSpec>();
104foreach (var projectItems in itemsById.Values)
342private static PackageSpec CreateErrorSpecFromItems(IEnumerable<IMSBuildItem> items, string errorDetails, List<IAssetsLogMessage> additionalMessages)
552var packageTargetFallback = MSBuildStringUtility.Split(item.GetProperty("PackageTargetFallback"))
556var assetTargetFallbackList = MSBuildStringUtility.Split(item.GetProperty(AssetTargetFallbackUtility.AssetTargetFallback))
609var runtimes = MSBuildStringUtility.Split(specItem.GetProperty("RuntimeIdentifiers"))
614var supports = MSBuildStringUtility.Split(specItem.GetProperty("RuntimeSupports"))
625var aliasGroups = new Dictionary<string, List<ProjectRestoreReference>>();
642var addToFrameworks = frameworkPair.Item1.Count == 0
648List<ProjectRestoreReference> references;
661foreach (KeyValuePair<string, List<ProjectRestoreReference>> frameworkPair in aliasGroups)
672private static Tuple<List<string>, ProjectRestoreReference> GetProjectRestoreReference(IMSBuildItem item, bool crossTargeting)
674var frameworks = GetFrameworks(item, crossTargeting).ToList();
684return new Tuple<List<string>, ProjectRestoreReference>(frameworks, reference);
798List<IMSBuildItem> targetFrameworkInfos = GetItemByType(items, "TargetFrameworkInformation").ToList();
RestoreCommand\Utility\PackageSpecFactory.cs (23)
47(ProjectRestoreMetadata? restoreMetadata, List<TargetFrameworkInformation>? targetFrameworkInfos) = GetProjectRestoreMetadataAndTargetFrameworkInformation(project, settings);
119/// <returns>A <see cref="Tuple" /> containing the <see cref="ProjectRestoreMetadata" /> and <see cref="List{TargetFrameworkInformation}" /> for the specified project.</returns>
120private static (ProjectRestoreMetadata? RestoreMetadata, List<TargetFrameworkInformation>? TargetFrameworkInfos) GetProjectRestoreMetadataAndTargetFrameworkInformation(IProject project, ISettings settings)
134List<TargetFrameworkInformation> targetFrameworkInfos = GetTargetFrameworkInfos(project, isCentralPackageManagementEnabled, isPruningEnabledGlobally);
220/// <returns>A <see cref="List{TargetFrameworkInformation}" /> containing the target framework information for the specified project.</returns>
221internal static List<TargetFrameworkInformation> GetTargetFrameworkInfos(IProject project, bool isCpvmEnabled, bool isPruningEnabledGlobally)
223var targetFrameworkInfos = new List<TargetFrameworkInformation>(project.TargetFrameworks.Count);
238var packageTargetFallback = MSBuildStringUtility.Split(msBuildProjectInstance.GetProperty("PackageTargetFallback")).Select(NuGetFramework.Parse).ToList();
240var assetTargetFallbackEnum = MSBuildStringUtility.Split(msBuildProjectInstance.GetProperty(nameof(TargetFrameworkInformation.AssetTargetFallback))).Select(NuGetFramework.Parse).ToList();
584/// <returns>A <see cref="List{ProjectRestoreMetadataFrameworkInfo}" /> containing the restore metadata framework information for the specified project.</returns>
585internal static List<ProjectRestoreMetadataFrameworkInfo> GetProjectRestoreMetadataFrameworkInfos(List<TargetFrameworkInformation> targetFrameworkInfos, IReadOnlyDictionary<string, ITargetFramework> projects)
587var projectRestoreMetadataFrameworkInfos = new List<ProjectRestoreMetadataFrameworkInfo>(projects.Count);
606/// <returns>A <see cref="List{ProjectRestoreReference}" /> containing the project references for the specified project.</returns>
607internal static List<ProjectRestoreReference> GetProjectReferences(ITargetFramework project)
610var projectReferenceItems = project.GetItems("ProjectReference")
615var projectReferences = new List<ProjectRestoreReference>(projectReferenceItems.Count);
639/// <returns>A <see cref="List{LibraryDependency}" /> containing the package references for the specified project.</returns>
643List<IItem> packageReferenceItems = GetDistinctItemsOrEmpty(project, "PackageReference").ToList();
746/// <returns>A <see cref="List{FrameworkDependency}" /> containing the framework references for the specified project.</returns>
750List<IItem> frameworkReferenceItems = GetDistinctItemsOrEmpty(project, "FrameworkReference").ToList();
844/// <returns>A <see cref="List{PackageSource}" /> object containing the packages sources for the specified project.</returns>
845internal static List<PackageSource> GetSources(IProject project, ISettings settings)
NuGet.Common (8)
NuGet.Configuration (41)
PackageSource\PackageSourceProvider.cs (11)
106List<PackageSource> defaultSources = new(packageSourceLookup.Count);
114private static List<PackageSource> GetPackageSourceFromSettings(ISettings settings, string sectionName, IEnvironmentVariableReader environmentVariableReader)
126List<PackageSource> packageSources;
304private static List<PackageSource> LoadPackageSources(ISettings settings, string sectionName, IEnumerable<PackageSource> defaultSources, IEnvironmentVariableReader environmentVariableReader)
306List<PackageSource> loadedPackageSources = GetPackageSourceFromSettings(settings, sectionName, environmentVariableReader);
319private static void AddDefaultPackageSources(List<PackageSource> loadedPackageSources, IEnumerable<PackageSource> defaultPackageSources)
321var defaultPackageSourcesToBeAdded = new List<PackageSource>();
513List<PackageSource> packageSources = LoadPackageSources(Settings, ConfigurationConstants.PackageSources, _configurationDefaultSources, environmentVariableReader);
534List<PackageSource> packageSources = LoadPackageSources(Settings, ConfigurationConstants.PackageSources, _configurationDefaultSources, environmentVariableReader);
558List<PackageSource> packageSources = LoadPackageSources(Settings, ConfigurationConstants.PackageSources, _configurationDefaultSources, environmentVariableReader);
1090List<SourceItem>? existingSettings = sourcesSection?.Items.OfType<SourceItem>().Where(
NuGet.Credentials (2)
NuGet.DependencyResolver.Core (40)
NuGet.Frameworks (23)
NuGet.LibraryModel (11)
NuGet.PackageManagement (152)
NuGetPackageManager.cs (53)
169var sources = new List<SourceRepository>();
176var folders = new List<string>(count)
620List<PackageIdentity> packageIdentities,
641List<PackageIdentity> packageIdentities,
680var tasks = new List<Task<IEnumerable<NuGetProjectAction>>>(maxTasks);
681var nugetActions = new List<NuGetProjectAction>();
683var nuGetProjectList = nuGetProjects.ToList();
684var buildIntegratedProjects = nuGetProjectList.OfType<BuildIntegratedNuGetProject>().ToList();
685var nonBuildIntegratedProjects = nuGetProjectList.Except(buildIntegratedProjects).ToList();
700var packagesToUpdateInProject = packageIdentities;
751var packagesToUpdateInProject = packageIdentities;
793private async Task<List<PackageIdentity>> GetPackagesToUpdateInProjectAsync(
795List<PackageIdentity> packages,
806var packagesToUpdateInProject = packages.Where(
813List<Task<IEnumerable<T>>> updateTasks)
842var actions = new List<NuGetProjectAction>();
847var lowLevelActions = new List<NuGetProjectAction>();
941var lowLevelActions = new List<NuGetProjectAction>();
1024var primaryTargetIds = new List<string>();
1025var primaryTargets = new List<PackageIdentity>();
1094var nuGetProjectActions = new List<NuGetProjectAction>();
1111var allSources = new List<SourceRepository>(primarySources);
1389private static List<NuGetProjectAction> GetProjectActionsForUpdate(
1401var nuGetProjectActions = new List<NuGetProjectAction>();
1571var primarySources = new List<SourceRepository> { primarySourceRepository };
1655var results = new List<ResolvedAction>();
1658var buildIntegratedProjectsToUpdate = new List<BuildIntegratedNuGetProject>();
1661var otherTargetProjectsToUpdate = new List<NuGetProject>();
1808var nuGetProjectActions = new List<NuGetProjectAction>();
1845var primaryPackages = new List<PackageIdentity> { packageIdentity };
1912var preferredPackageReferences = new List<PackageReference>(projectInstalledPackageReferences.Where(pr =>
1954var newPackagesToUninstall = new List<PackageIdentity>();
2153var results = new List<NuGetProjectAction>();
2155var buildIntegratedProjectsToUpdate = new List<BuildIntegratedNuGetProject>();
2156var otherTargetProjectsToUpdate = new List<NuGetProject>();
2415var projects = nuGetProjects.ToList();
2418var buildIntegratedProjectsToUpdate = projects.OfType<BuildIntegratedNuGetProject>().ToList();
2421var sortedProjectsToUpdate = projects.Except(buildIntegratedProjectsToUpdate).ToList();
2562var actionsList = nuGetProjectActions.ToList();
2914var result = new List<ResolvedAction>();
3076var unsuccessfulFrameworks = restoreResult
3084List<(NuGetProjectAction, BuildIntegratedInstallationContext)> projectActionsAndInstallationContexts = new(nuGetProjectActions.Length);
3101var successfulFrameworks = firstInstallationAndProjectContext.Item2.SuccessfulFrameworks.AsList();
3189internal static BuildIntegratedInstallationContext CreateInstallationContextForPackageId(string packageIdentityId, PackageSpec packageSpec, PackageSpec originalPackageSpec, List<string> unsuccessfulFrameworks)
3203var successfulFrameworksWithPackage = frameworksWithResultingPackage
3244List<PackagePatternItem> newPatternItems = new()
3250List<PackageSourceMappingSourceItem> newAndExistingPackageSourceMappingItems = mappingProvider.GetPackageSourceMappingItems().ToList();
3436var projects = (await SolutionManager.GetNuGetProjectsAsync()).OfType<BuildIntegratedNuGetProject>().ToList();
3509List<string> filesToBeUpdated = new(3); // We know that we have 3 files.
3834var tasks = new List<Task<ResolvedPackage>>();
3856var tasks = new List<Task<ResolvedPackage>>();
3886var packages = (await dependencyInfoResource.ResolvePackages(packageId, framework, resolutionContext.SourceCacheContext, log, token)).ToList();
3922var effectiveSources = new List<SourceRepository>(count)
NuGet.Packaging (178)
NuGet.ProjectModel (75)
NuGet.Protocol (215)
_generated\112\JsonContext.ServiceIndexModel.g.cs (6)
32ObjectWithParameterizedConstructorCreator = static args => new global::NuGet.Protocol.Model.ServiceIndexModel((string)args[0], (global::System.Collections.Generic.List<global::NuGet.Protocol.Model.ServiceIndexEntryModel>)args[1]),
35ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Model.ServiceIndexModel).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(global::System.Collections.Generic.List<global::NuGet.Protocol.Model.ServiceIndexEntryModel>)}, modifiers: null),
74var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.ServiceIndexEntryModel>>
89AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Model.ServiceIndexModel).GetProperty("Resources", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::NuGet.Protocol.Model.ServiceIndexEntryModel>), global::System.Array.Empty<global::System.Type>(), null),
92properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.ServiceIndexEntryModel>>(options, info1);
112ParameterType = typeof(global::System.Collections.Generic.List<global::NuGet.Protocol.Model.ServiceIndexEntryModel>),
Utility\LocalFolderUtility.cs (9)
206foreach (var directoryList in GetNupkgsFromFlatFolderChunked(rootDirInfo, log, cancellationToken))
729foreach (var directoryList in GetNupkgsFromFlatFolderChunked(rootDirectoryInfo, log, cancellationToken))
857private static IEnumerable<List<FileInfo>> GetNupkgsFromFlatFolderChunked(DirectoryInfo root, ILogger log, CancellationToken cancellationToken)
878var topLevel = GetNupkgsFromDirectory(root, log, cancellationToken);
888var files = GetNupkgsFromDirectory(subDirectory, log, cancellationToken);
1137private static List<DirectoryInfo> GetDirectoriesSafe(DirectoryInfo root, ILogger log, CancellationToken cancellationToken)
1157private static List<DirectoryInfo> GetDirectoriesSafe(DirectoryInfo root, string filter, SearchOption searchOption, ILogger log, CancellationToken cancellationToken)
1180internal static List<FileInfo> GetFilesSafe(DirectoryInfo root, string filter, ILogger log, CancellationToken cancellationToken)
1246private static List<FileInfo> GetNupkgsFromDirectory(DirectoryInfo root, ILogger log, CancellationToken cancellationToken)
NuGet.Resolver (48)
NuGet.Versioning (13)
OracleEndToEnd.ApiService (1)
OrderProcessor (2)
ParameterEndToEnd.ApiService (1)
Pipelines.AppHost (4)
PostgresEndToEnd.ApiService (1)
PresentationBuildTasks (53)
PresentationCore (362)
MS\Internal\FontCache\FontResourceCache.cs (8)
24private static void ConstructFontResourceCache(Assembly entryAssembly, Dictionary<string, List<string>> folderResourceMap)
46internal static List<string> LookupFolder(Uri uri)
76Dictionary<string, List<string>> folderResourceMap;
82folderResourceMap = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
88List<string> ret;
108private static void AddResourceToFolderMap(Dictionary<string, List<string>> folderResourceMap, string resourceFullName)
145private static Dictionary<Assembly, Dictionary<string, List<string>>> _assemblyCaches
146= new Dictionary<Assembly, Dictionary<string, List<string>>>(1);
MS\Internal\Ink\StrokeRenderer.cs (18)
49List<Point> connectingQuadPoints = new List<Point>(iterator.Count * 4);
61List<Point> strokeNodePoints = new List<Point>();
259List<Point> pathFigureABSide = new List<Point>();//don't prealloc. It causes Gen2 collections to rise and doesn't help execution time
260List<Point> pathFigureDCSide = new List<Point>();
261List<Point> polyLinePoints = new List<Point>(4);
743List<Point> pointBuffer1,
744List<Point> pointBuffer2,
745List<Point> pointBuffer3
798private static void ReverseDCPointsRenderAndClear(StreamGeometryContext context, List<Point> abPoints, List<Point> dcPoints, List<Point> polyLinePoints, bool isEllipse, bool clear)
863private static void AddFigureToStreamGeometryContext(StreamGeometryContext context, List<Point> points, bool isBezierFigure)
891private static void AddPolylineFigureToStreamGeometryContext(StreamGeometryContext context, List<Point> abPoints, List<Point> dcPoints)
913private static void AddArcToFigureToStreamGeometryContext(StreamGeometryContext context, List<Point> abPoints, List<Point> dcPoints, List<Point> polyLinePoints)
930List<Point> points = j == 0 ? abPoints : dcPoints;
System\Windows\Input\AccessKeyManager.cs (10)
89List<IInputElement> targets = akm.GetTargetsForScope(scope, key, null, AccessKeyInformation.Empty);
215List<IInputElement> targets = GetTargetsForSender(inputElementSender, key);
223List<IInputElement> targets = GetTargetsForScope(scope, key, null, AccessKeyInformation.Empty);
228private ProcessKeyResult ProcessKey(List<IInputElement> targets, string key, bool existsElsewhere, bool userInitiated)
333private List<IInputElement> GetTargetsForSender(IInputElement sender, string key)
341private List<IInputElement> GetTargetsForScope(object scope, string key, IInputElement sender, AccessKeyInformation senderInfo)
369List<IInputElement> possibleElements;
377List<IInputElement> finalTargets = new List<IInputElement>(1);
582private static List<IInputElement> CopyAndPurgeDead(ArrayList elements)
589List<IInputElement> copy = new List<IInputElement>(elements.Count);
PresentationFramework (1094)
MS\Internal\Documents\TextDocumentView.cs (5)
355List<GlyphRun> glyphRuns = new List<GlyphRun>();
3085private bool GetGlyphRunsFromParagraphs(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end, ReadOnlyCollection<ParagraphResult> paragraphs)
3137private void GetGlyphRunsFromFloatingElements(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end, ReadOnlyCollection<ParagraphResult> floatingElements, out bool success)
3180private void GetGlyphRuns(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end, ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements)
3245List<TextSegment> segments = new List<TextSegment>(1);
MS\Internal\Helper.cs (19)
752List<KeyValuePair<int, object>> itemValues = GetItemValues(owner, item);
774List<KeyValuePair<int, object>> itemValues = EnsureItemValues(owner, item);
805List<KeyValuePair<int, object>> itemValues = GetItemValues(owner, item);
826internal static List<KeyValuePair<int, object>> GetItemValues(DependencyObject owner, object item)
831internal static List<KeyValuePair<int, object>> GetItemValues(DependencyObject owner, object item,
832WeakDictionary<object, List<KeyValuePair<int, object>>> itemValueStorage)
835List<KeyValuePair<int, object>> itemValues = null;
843internal static List<KeyValuePair<int, object>> EnsureItemValues(DependencyObject owner, object item)
845WeakDictionary<object, List<KeyValuePair<int, object>>> itemValueStorage = EnsureItemValueStorage(owner);
846List<KeyValuePair<int, object>> itemValues = GetItemValues(owner, item, itemValueStorage);
858internal static WeakDictionary<object, List<KeyValuePair<int, object>>> EnsureItemValueStorage(DependencyObject owner)
860WeakDictionary<object, List<KeyValuePair<int, object>>> itemValueStorage = ItemValueStorageField.GetValue(owner);
864itemValueStorage = new WeakDictionary<object, List<KeyValuePair<int, object>>>();
879List<KeyValuePair<int, object>> itemValues = GetItemValues(owner, item) ?? new List<KeyValuePair<int, object>>();
1024private static void ClearItemValueStorageRecursive(WeakDictionary<object, List<KeyValuePair<int, object>>> itemValueStorage, int[] dpIndices)
1028foreach (List<KeyValuePair<int, object>> itemValuesList in itemValueStorage.Values)
1035ClearItemValueStorageRecursive((WeakDictionary<object, List<KeyValuePair<int, object>>>)itemValue.Value, dpIndices);
1519private static readonly UncommonField<WeakDictionary<object, List<KeyValuePair<int, object>>>> ItemValueStorageField =
1520new UncommonField<WeakDictionary<object, List<KeyValuePair<int, object>>>>();
MS\Internal\PtsHost\TextParaClient.cs (26)
247internal override List<Rect> GetRectangles(ContentElement e, int start, int length)
249List<Rect> rectangles = new List<Rect>();
382List<ParagraphResult> floaters = null;
420List<ParagraphResult> figures = null;
1104internal void GetGlyphRuns(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end)
1261List<InlineObject> inlineObjects = TextParagraph.InlineObjectsFromRange(lineDesc.dcpFirst, lineDesc.dcpLim);
1295List<InlineObject> inlineObjects = TextParagraph.InlineObjectsFromRange(element.dcpFirst, element.dcpLim);
1525List<LineResult> lines = new List<LineResult>(arrayLineDesc.Length);
1577List<LineResult> lines = new List<LineResult>(arrayLineDesc.Length);
2058private List<Rect> RectanglesFromDcpRangeOfSimpleLine(
2067List<Rect> rectangles = null;
2169private List<Rect> RectanglesFromDcpRangeOfCompositeLineElement(
2180List<Rect> rectangles = null;
3089List<GlyphRun> glyphRuns,
3142List<GlyphRun> glyphRuns,
3855private List<Rect> GetRectanglesInSimpleLines(
3863List<Rect> rectangles = new List<Rect>();
3883List<Rect> lineRectangles = GetRectanglesInSingleLine(lineDesc, e, localStart, length);
3897private List<Rect> GetRectanglesInSingleLine(
3905List<Rect> rectangles = new List<Rect>();
4035private List<Rect> GetRectanglesInCompositeLines(
4043List<Rect> rectangles = new List<Rect>();
4062List<Rect> lineRectangles = GetRectanglesInCompositeLine(lineDesc, e, localStart, length);
4079private List<Rect> GetRectanglesInCompositeLine(
4085List<Rect> rectangles = new List<Rect>();
4139List<Rect> elementRectangles = line.GetRangeBounds(localStart, localEnd - localStart, TextDpi.FromTextDpi(element.urStart), TextDpi.FromTextDpi(lineDesc.vrStart));
MS\Internal\PtsHost\TextParagraph.cs (16)
881private List<TextElement> GetAttachedObjectElements(int dcpFirst, int dcpLast)
883List<TextElement> attachedElements = new List<TextElement>();
922List<TextElement> textElements = GetAttachedObjectElements(dcpFirst, dcpLast);
935internal List<AttachedObject> GetAttachedObjects(int dcpFirst, int dcpLast)
938List<AttachedObject> attachedObjects = new List<AttachedObject>();
939List<TextElement> textElements = GetAttachedObjectElements(dcpFirst, dcpLast);
1020internal void SubmitInlineObjects(int dcpStart, int dcpLim, List<InlineObject> inlineObjects)
1038internal void SubmitAttachedObjects(int dcpStart, int dcpLim, List<AttachedObject> attachedObjects)
1052internal List<InlineObject> InlineObjectsFromRange(int dcpStart, int dcpLast)
1054List<InlineObject> objects = null;
1521private void SubmitEmbeddedObjects<T>(ref List<T> objectsCached, int dcpStart, int dcpLim, List<T> objectsNew) where T : EmbeddedObject
1634ref List<T> objectsCached,
1738private List<AttachedObject> _attachedObjects;
1740internal List<AttachedObject> AttachedObjectDbg { get { return _attachedObjects; } }
1746private List<InlineObject> _inlineObjects;
System\Windows\Controls\DataGridCellsPanel.cs (32)
164List<RealizedColumnsBlock> blockList = RealizedColumnsBlockList;
219List<int> realizedColumnIndices = new List<int>();
220List<int> realizedColumnDisplayIndices = new List<int>();
428List<int> realizedColumnIndices,
429List<int> realizedColumnDisplayIndices,
458private static List<RealizedColumnsBlock> BuildRealizedColumnsBlockList(List<int> indexList)
460List<RealizedColumnsBlock> resultList = new List<RealizedColumnsBlock>();
780private static bool InBlockOrNextBlock(List<RealizedColumnsBlock> blockList, int index, ref int blockIndex, ref RealizedColumnsBlock block, out bool pastLastBlock)
817List<int> realizedColumnIndices,
818List<int> realizedColumnDisplayIndices)
858List<int> realizedColumnIndices,
859List<int> realizedColumnDisplayIndices,
946List<int> realizedColumnIndices,
947List<int> realizedColumnDisplayIndices,
990List<int> realizedColumnIndices,
991List<int> realizedColumnDisplayIndices,
1021private void VirtualizeChildren(List<RealizedColumnsBlock> blockList, IItemContainerGenerator generator)
1320private static void Debug_VerifyRealizedIndexCountVsDisplayIndexCount(List<RealizedColumnsBlock> blockList, List<RealizedColumnsBlock> displayIndexBlockList)
1359List<RealizedColumnsBlock> displayIndexBlockList = RealizedColumnsDisplayIndexBlockList;
1363List<RealizedColumnsBlock> blockList = RealizedColumnsBlockList;
1367List<int> additionalChildIndices = GetRealizedChildrenNotInBlockList(blockList, children);
1532private static RealizedColumnsBlock GetRealizedBlockForColumn(List<RealizedColumnsBlock> blockList, int columnIndex)
1551private List<int> GetRealizedChildrenNotInBlockList(List<RealizedColumnsBlock> blockList, IList children)
1563List<int> additionalChildIndices = new List<int>();
1634List<int> displayIndexMap = columns.DisplayIndexMap;
1635List<RealizedColumnsBlock> blockList = RealizedColumnsBlockList;
1696private List<RealizedColumnsBlock> RealizedColumnsBlockList
1727private List<RealizedColumnsBlock> RealizedColumnsDisplayIndexBlockList
2437private List<UIElement> _realizedChildren;
System\Windows\Controls\ToolBarTray.cs (15)
356List<ToolBar> band = _bands[bandIndex].Band;
420List<ToolBar> band = _bands[bandIndex].Band;
542List<ToolBar> band = _bands[currentBand].Band;
642List<ToolBar> oldBand = _bands[currentBand].Band;
664private void ShrinkToolBars(List<ToolBar> band, int startIndex, int endIndex, double shrinkAmount)
702private double ToolBarsTotalMinimum(List<ToolBar> band, int startIndex, int endIndex)
712private void ExpandToolBars(List<ToolBar> band, int startIndex, int endIndex, double expandAmount)
750private double ToolBarsTotalMaximum(List<ToolBar> band, int startIndex, int endIndex)
765List<ToolBar> newBand = _bands[newBandNumber].Band;
841List<ToolBar> band = _bands[bandIndex].Band;
863List<ToolBar> band = _bands[bandIndex].Band;
915private void InsertToolBar(ToolBar toolBar, List<ToolBar> band)
944public List<ToolBar> Band
955private List<ToolBar> _band = new List<ToolBar>();
965private List<BandInfo> _bands = new List<BandInfo>(0);
System\Windows\Controls\VirtualizedCellInfoCollection.cs (33)
34private VirtualizedCellInfoCollection(DataGrid owner, List<CellRegion> regions)
201List<DataGridCellInfo> list = new List<DataGridCellInfo>();
232public VirtualizedCellInfoCollectionEnumerator(DataGrid owner, List<CellRegion> regions, VirtualizedCellInfoCollection collection)
293private List<CellRegion> _regions;
700public bool Remainder(CellRegion region, out List<CellRegion> remainder)
832List<CellRegion> addList = new List<CellRegion>();
843List<CellRegion> remainder;
893List<CellRegion> removeList = null;
902private void RemoveRegion(int rowIndex, int columnIndex, int rowCount, int columnCount, ref List<CellRegion> removeList)
926List<CellRegion> remainder;
943internal void OnItemsCollectionChanged(NotifyCollectionChangedEventArgs e, List<Tuple<int,int>> ranges)
976List<CellRegion> keepRegions = null;
1004List<CellRegion> keepRegions = null;
1005List<CellRegion> removedRegions = null;
1044List<CellRegion> removedRegions = null;
1060List<CellRegion> slideRegions = null;
1061List<CellRegion> movedRegions = null;
1149List<CellRegion> keepRegions = null;
1192List<CellRegion> keepRegions = null;
1193List<CellRegion> removedRegions = null;
1232List<CellRegion> removedRegions = null;
1251List<CellRegion> slideRegions = null;
1252List<CellRegion> movedRegions = null;
1311internal RemovedCellInfoCollection(DataGrid owner, List<CellRegion> regions, DataGridColumn column)
1317internal RemovedCellInfoCollection(DataGrid owner, List<CellRegion> regions, object item)
1409List<CellRegion> removeList = new List<CellRegion>();
1430internal void RestoreOnlyFullRows(List<Tuple<int,int>> ranges)
1485List<CellRegion> removeList = null;
1527internal bool Intersects(int rowIndex, out List<int> columnIndexRanges)
1577private static void ConvertIndexToIndexes(List<CellRegion> regions, int index, out int rowIndex, out int columnIndex)
1602private DataGridCellInfo GetCellInfoFromIndex(DataGrid owner, List<CellRegion> regions, int index)
1631private void AddRegionToList(CellRegion region, List<DataGridCellInfo> list)
1661private List<CellRegion> _regions;
System\Windows\Documents\TextRangeSerialization.cs (5)
84List<int> ignoreList = new List<int>();
188private static void WriteXamlTextSegment(XmlWriter xmlWriter, ITextPointer rangeStart, ITextPointer rangeEnd, XamlTypeMapper xamlTypeMapper, ref int elementLevel, WpfPayload wpfPayload, bool ignoreWriteHyperlinkEnd, List<int> ignoreList, bool preserveTextElements)
337List<TextSegment> textSegments = range.TextSegments;
343List<int> ignoreList = new List<int>();
414private static int WriteOpeningTags(ITextRange range, ITextPointer thisElement, ITextPointer scope, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool reduceElement, out bool ignoreWriteHyperlinkEnd, ref List<int> ignoreList, bool preserveTextElements)
System\Windows\Shell\JumpList.cs (26)
193public static void ReleaseShellObjects(List<_ShellObjectPair> list)
262private List<JumpItem> _jumpItems;
323public List<JumpItem> JumpItems
456List<JumpItem> successList;
457List<_RejectedJumpItemPair> rejectedList;
460List<List<_ShellObjectPair>> categories = null;
461List<_ShellObjectPair> removedList = null;
500categories = new List<List<_ShellObjectPair>>() { new List<_ShellObjectPair>() };
542foreach (var list in categories)
586foreach (List<_ShellObjectPair> categoryList in categories)
621foreach (List<_ShellObjectPair> list in categories)
643var items = new List<JumpItem>(rejectedList.Count);
644var reasons = new List<JumpItemRejectionReason>(rejectedList.Count);
657var items = new List<JumpItem>(removedList.Count);
674private static bool ListContainsShellObject(List<_ShellObjectPair> removedList, object shellObject)
755private static List<_ShellObjectPair> GenerateJumpItems(IObjectArray shellObjects)
759var retList = new List<_ShellObjectPair>();
787private static void AddCategory(ICustomDestinationList cdl, string category, List<_ShellObjectPair> jumpItems, List<JumpItem> successList, List<_RejectedJumpItemPair> rejectionList)
792private static void AddCategory(ICustomDestinationList cdl, string category, List<_ShellObjectPair> jumpItems, List<JumpItem> successList, List<_RejectedJumpItemPair> rejectionList, bool isHeterogenous)
835var linksOnlyList = new List<_ShellObjectPair>();
1101var reasons = new List<JumpItemRejectionReason>(_jumpItems.Count);
PresentationFramework.Aero (1)
PresentationFramework.Aero2 (1)
PresentationFramework.AeroLite (1)
PresentationFramework.Classic (1)
PresentationFramework.Luna (1)
PresentationFramework.Royale (1)
PresentationUI (18)
Publishers.ApiService (1)
Publishers.AppHost (1)
QuarantineTools.Tests (23)
ReachFramework (86)
AlphaFlattener\Flattener.cs (18)
285List<PrimitiveInfo> commands = _dl.Commands;
537private static void SwitchCommands(List<PrimitiveInfo> commands, int i, PrimitiveInfo pi, int j, PrimitiveInfo pj, bool disconnect)
605private static void PushTransparencyDown(List<PrimitiveInfo> commands, int j)
659private static bool ConvertTransparentOnOpaque(List<PrimitiveInfo> commands, int i)
754private static void ReduceTie(PrimitiveInfo pi, List<PrimitiveInfo> commands, int i)
782private static List<int>[] CopyUnderlay(int count, List<PrimitiveInfo> commands)
784List<int>[] oldUnderlay = new List<int>[count];
788List<int> l = commands[i].underlay;
810private void DisplayListOptimization(List<PrimitiveInfo> commands, int count, bool disjoint)
817List<int> [] oldUnderlay = null;
938List<Cluster> transparentCluster = Cluster.CalculateCluster(commands, count, disjoint, oldUnderlay);
959internal void LogInterestingPrimitives(List<PrimitiveInfo> commands, int count, List<Cluster> transparentCluster)
1006internal void SaveInterestingPrimitives(List<PrimitiveInfo> commands, int count, List<Cluster> transparentCluster)
1090private void AlphaRender(Primitive primitive, List<int> overlapping, int overlapHasTransparency, bool disjoint, string desp)
AlphaFlattener\Optimizer.cs (15)
17private List<int> m_primitives;
42public void Render(List<PrimitiveInfo> commands, IProxyDrawingContext dc)
122public static void CheckForRasterization(List<Cluster> clusters, List<PrimitiveInfo> commands)
140public static List<Cluster> CalculateCluster(List<PrimitiveInfo> commands, int count, bool disjoint, List<int>[] oldUnderlay)
142List<Cluster> transparentCluster = new List<Cluster>();
252List<int>[] underlay,
253List<PrimitiveInfo> commands,
300private bool BetterRasterize(List<PrimitiveInfo> commands)
386List<PrimitiveInfo> commands,
389List<int> [] oldUnderlay,
390List<Cluster> transparentCluster,
469internal List<int> DebugPrimitives
RepoTasks (28)
Roslyn.Diagnostics.Analyzers (141)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (2)
24public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg)
43public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\CompatAbstractFormattingRule.cs (6)
25public sealed override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation)
33public sealed override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation)
41public sealed override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
78public virtual void AddAnchorIndentationOperationsSlow(List<AnchorIndentationOperation> list, SyntaxNode node, ref NextAnchorIndentationOperationAction nextOperation)
84public virtual void AddIndentBlockOperationsSlow(List<IndentBlockOperation> list, SyntaxNode node, ref NextIndentBlockOperationAction nextOperation)
90public virtual void AddAlignTokensOperationsSlow(List<AlignTokensOperation> list, SyntaxNode node, ref NextAlignTokensOperationAction nextOperation)
Roslyn.Diagnostics.CSharp.Analyzers (64)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\BaseFormattingRule.cs (9)
18List<IndentBlockOperation> list,
33List<IndentBlockOperation> list,
46List<IndentBlockOperation> list,
60List<IndentBlockOperation> list,
74List<IndentBlockOperation> list,
89List<IndentBlockOperation> list,
99List<IndentBlockOperation> list,
124protected static void AddAnchorIndentationOperation(List<AnchorIndentationOperation> list, SyntaxToken anchorToken, SyntaxToken endToken)
134protected static void AddAlignIndentationOfTokensToBaseTokenOperation(List<AlignTokensOperation> list, SyntaxNode containingNode, SyntaxToken baseNode, IEnumerable<SyntaxToken> tokens, AlignTokensOption option = AlignTokensOption.AlignIndentationOfTokensToBaseToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (11)
47public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation)
61private static void AddTypeParameterConstraintClauseOperation(List<IndentBlockOperation> list, SyntaxNode node)
70private void AddSwitchIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node)
129private void AddLabelIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node)
145private static void AddAlignmentBlockOperation(List<IndentBlockOperation> list, SyntaxNode node)
200private static void SetAlignmentBlockOperation(List<IndentBlockOperation> list, SyntaxNode baseNode, SyntaxNode body)
211private void AddBlockIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node)
248private static void AddBracketIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node)
289private static void AddParenthesizedPatternIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node)
309private static void AddAlignmentBlockOperationRelativeToFirstTokenOnBaseTokenLine(List<IndentBlockOperation> list, (SyntaxToken openBrace, SyntaxToken closeBrace) bracePair)
315private static void AddEmbeddedStatementsIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
197List<string> paramNames;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamespaceGenerator.cs (1)
141var usingDirectives =
rzc (28)
ScenarioTests.Common.Tests (5)
sdk-tasks (34)
SelectTests (57)
GraphAffectedProjects.cs (10)
190var chain = new List<string>();
234private static Dictionary<string, List<ProjectGraphNode>> BuildNodesByProjectPath(IEnumerable<ProjectGraphNode> graphNodes)
238var nodesByProjectPath = new Dictionary<string, List<ProjectGraphNode>>(s_pathComparer);
242if (!nodesByProjectPath.TryGetValue(projectPath, out var nodes))
311IReadOnlyDictionary<string, List<ProjectGraphNode>> nodesByProjectPath,
369IReadOnlyDictionary<string, List<ProjectGraphNode>> nodesByProjectPath,
379var dependents = new Dictionary<string, List<string>>(s_pathComparer);
393if (!dependents.TryGetValue(target, out var list))
425if (!dependents.TryGetValue(current, out var deps))
503var args = new List<string> { "-c", "core.quotePath=false", "diff", "--name-status", "-M" };
Program.cs (17)
209var excludedFiles = rawChangedFiles
212var changedFiles = rawChangedFiles
423var args = new List<string> { "-c", "core.quotePath=false", "diff", "--name-only", "--no-renames" };
738var tests = result.TestProjects.OrderBy(p => p, StringComparer.Ordinal).ToList();
740var jobs = result.Jobs.OrderBy(j => j, StringComparer.Ordinal).ToList();
823var orderedGroups = groups
846var direct = members.Where(m => m.Value.Kind is CauseKind.Convention or CauseKind.PathRule).Select(m => m.Key).OrderBy(p => p, StringComparer.Ordinal).ToList();
847var graph = members.Where(m => m.Value.Kind is CauseKind.Layer1Graph).OrderBy(m => m.Key, StringComparer.Ordinal).ToList();
848var other = members.Where(m => m.Value.Kind is not (CauseKind.Convention or CauseKind.PathRule or CauseKind.Layer1Graph)).Select(m => m.Key).OrderBy(p => p, StringComparer.Ordinal).ToList();
992var ordered = list.OrderBy(c => CausePriority(c.Kind)).ToList();
997var fileCauses = ordered
1002var otherCauses = ordered
1008var segments = new List<string>();
1082var unmatched = result.UnmatchedFiles.OrderBy(f => f, StringComparer.Ordinal).ToList();
1109var selected = result.TestProjects.OrderBy(p => p, StringComparer.Ordinal).ToList();
1110var skipped = allTestProjects.Except(result.TestProjects, StringComparer.Ordinal)
1113var jobTokens = result.Jobs.OrderBy(j => j, StringComparer.Ordinal).ToList();
TestSelector.cs (14)
164var testCauses = new Dictionary<string, List<Cause>>(StringComparer.Ordinal);
165var jobCauses = new Dictionary<string, List<Cause>>(StringComparer.Ordinal);
274var affectedProductionProjects = layer1Affected
330private static IReadOnlyDictionary<string, IReadOnlyList<Cause>> Freeze(Dictionary<string, List<Cause>> causes) =>
338var path = new List<string>(affectedPath.ProjectChain.Count + 1) { affectedPath.ChangedFile };
345private static void AddCause(Dictionary<string, List<Cause>> causes, string key, Cause cause)
347if (!causes.TryGetValue(key, out var list))
380Dictionary<string, List<Cause>> testCauses,
381Dictionary<string, List<Cause>> jobCauses,
417Dictionary<string, List<Cause>> testCauses,
418Dictionary<string, List<Cause>> jobCauses,
441Dictionary<string, List<Cause>> testCauses,
442Dictionary<string, List<Cause>> jobCauses,
453else if (map.Groups.TryGetValue(target, out var members))
Shared (15)
Shared.Tests (48)
SqlServerEndToEnd.ApiService (2)
Stress.ApiService (3)
Stress.AppHost (13)
Stress.TelemetryService (2)
System.CodeDom (2)
System.Collections (6)
System.Collections.Concurrent (8)
System.Collections.Immutable (8)
System.CommandLine (46)
System.CommandLine.StaticCompletions (8)
shells\FishShellProvider.cs (5)
32var states = new List<(int id, Command cmd)>();
61private static void CollectStates(Command cmd, List<(int id, Command cmd)> states)
90private static void WriteStateWalker(IndentedTextWriter writer, List<(int id, Command cmd)> states, Dictionary<Command, int> stateIdByCommand)
211private static void WriteOptionValueCompletions(IndentedTextWriter writer, List<(int id, Command cmd)> states)
314private static void WriteStateCompletions(IndentedTextWriter writer, List<(int id, Command cmd)> states)
System.ComponentModel.Annotations (31)
System\ComponentModel\DataAnnotations\Validator.cs (29)
226List<ValidationError> errors = GetValidationErrors(value, validationContext, attributes, false);
289List<ValidationError> errors = GetObjectValidationErrors(instance, validationContext, validateAllProperties, false);
319List<ValidationError> errors = GetValidationErrors(value, validationContext, validationAttributes, false);
533List<ValidationError> errors = await GetValidationErrorsAsync(value, validationContext, attributes, false, cancellationToken).ConfigureAwait(false);
600List<ValidationError> errors = await GetObjectValidationErrorsAsync(instance, validationContext, validateAllProperties, false, cancellationToken).ConfigureAwait(false);
627List<ValidationError> errors = await GetValidationErrorsAsync(value, validationContext, validationAttributes, false, cancellationToken).ConfigureAwait(false);
639private static async Task<List<ValidationError>> GetObjectValidationErrorsAsync(
651List<ValidationError> errors = await GetObjectPropertyValidationErrorsAsync(instance, validationContext, validateAllProperties, breakOnFirstError, cancellationToken).ConfigureAwait(false);
709private static async Task<List<ValidationError>> GetObjectPropertyValidationErrorsAsync(
716var properties = GetPropertyValues(instance, validationContext);
717var errors = new List<ValidationError>();
723var tasks = new List<Task<List<ValidationError>>>(properties.Count);
736Task<List<ValidationError>> completed = await Task.WhenAny(tasks).ConfigureAwait(false);
739List<ValidationError> propertyErrors;
769foreach (Task<List<ValidationError>> remaining in tasks)
809private static async Task<List<ValidationError>> GetValidationErrorsAsync(
818var errors = new List<ValidationError>();
819List<AsyncValidationAttribute>? asyncAttributes = null;
867var tasks = new List<Task<(AsyncValidationAttribute Attr, ValidationResult? Result)>>(asyncAttributes.Count);
1012private static List<ValidationError> GetObjectValidationErrors(object instance,
1020List<ValidationError> errors = GetObjectPropertyValidationErrors(instance, validationContext, validateAllProperties, breakOnFirstError);
1070private static List<ValidationError> GetObjectPropertyValidationErrors(object instance,
1073var properties = GetPropertyValues(instance, validationContext);
1074var errors = new List<ValidationError>();
1125private static List<KeyValuePair<ValidationContext, object?>> GetPropertyValues(object instance,
1129var items = new List<KeyValuePair<ValidationContext, object?>>(properties.Count);
1161private static List<ValidationError> GetValidationErrors(object? value,
1166var errors = new List<ValidationError>();
System.ComponentModel.Composition (123)
System\ComponentModel\Composition\Hosting\TypeCatalog.cs (16)
29private List<ComposablePartDefinition>? _parts;
32private readonly Lazy<Dictionary<string, List<ComposablePartDefinition>>> _contractPartIndex;
81_contractPartIndex = new Lazy<Dictionary<string, List<ComposablePartDefinition>>>(CreateIndex, true);
109_contractPartIndex = new Lazy<Dictionary<string, List<ComposablePartDefinition>>>(CreateIndex, true);
138_contractPartIndex = new Lazy<Dictionary<string, List<ComposablePartDefinition>>>(CreateIndex, true);
171_contractPartIndex = new Lazy<Dictionary<string, List<ComposablePartDefinition>>>(CreateIndex, true);
176var typesList = new List<Type>();
266var collection = new List<ComposablePartDefinition>();
299List<ComposablePartDefinition>? nonGenericMatches = GetCandidateParts(contractName);
300List<ComposablePartDefinition>? genericMatches = GetCandidateParts(genericContractName);
305private List<ComposablePartDefinition>? GetCandidateParts(string? contractName)
312_contractPartIndex.Value.TryGetValue(contractName, out List<ComposablePartDefinition>? contractCandidateParts);
316private Dictionary<string, List<ComposablePartDefinition>> CreateIndex()
318Dictionary<string, List<ComposablePartDefinition>> index = new Dictionary<string, List<ComposablePartDefinition>>(StringComparers.ContractName);
324List<ComposablePartDefinition>? contractParts = null;
System.ComponentModel.Composition.Registration (45)
System\ComponentModel\Composition\Registration\PartBuilder.cs (20)
13private static readonly List<Attribute> s_importingConstructorList = new List<Attribute>() { new ImportingConstructorAttribute() };
15private readonly List<ExportBuilder> _typeExportBuilders;
20private List<Tuple<string, object>> _metadataItems;
21private List<Tuple<string, Func<Type, object>>> _metadataItemFuncs;
28private readonly List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ExportBuilder>, Type>> _propertyExports;
29private readonly List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ImportBuilder>, Type>> _propertyImports;
30private readonly List<Tuple<Predicate<Type>, Action<Type, ExportBuilder>>> _interfaceExports;
225var attributes = new List<Attribute>();
335internal bool BuildConstructorAttributes(Type type, ref List<Tuple<object, List<Attribute>>> configuredMembers)
376internal static void BuildDefaultConstructorAttributes(Type type, ref List<Tuple<object, List<Attribute>>> configuredMembers)
386private static void ConfigureConstructorAttributes(ConstructorInfo constructorInfo, ref List<Tuple<object, List<Attribute>>> configuredMembers, Action<ParameterInfo, ImportBuilder> configureConstructorImports)
388configuredMembers ??= new List<Tuple<object, List<Attribute>>>();
410List<Attribute> attributes = null;
417internal void BuildPropertyAttributes(Type type, ref List<Tuple<object, List<Attribute>>> configuredMembers)
423List<Attribute> attributes = null;
503configuredMembers ??= new List<Tuple<object, List<Attribute>>>();
System.ComponentModel.TypeConverter (14)
System.Composition.Convention (52)
System\Composition\Convention\ConventionBuilder.cs (20)
17private readonly List<PartConventionBuilder> _conventions = new List<PartConventionBuilder>();
19private readonly Dictionary<MemberInfo, List<Attribute>> _memberInfos = new Dictionary<MemberInfo, List<Attribute>>();
20private readonly Dictionary<ParameterInfo, List<Attribute>> _parameters = new Dictionary<ParameterInfo, List<Attribute>>();
114private List<Tuple<object, List<Attribute>>> EvaluateThisTypeInfoAgainstTheConvention(TypeInfo typeInfo)
116List<Attribute> attributes = new List<Attribute>();
117var configuredMembers = new List<Tuple<object, List<Attribute>>>();
152List<Attribute> cachedAttributes = null;
174List<Attribute> attributeList;
175foreach (Tuple<object, List<Attribute>> element in EvaluateThisTypeInfoAgainstTheConvention(typeInfo))
185if (!_memberInfos.TryGetValue(mi, out List<Attribute> memberAttributes))
200if (!_parameters.TryGetValue(pi, out List<Attribute> parameterAttributes))
232private List<Attribute> ReadMemberCustomAttributes(Type reflectedType, System.Reflection.MemberInfo member)
234List<Attribute> cachedAttributes = null;
289List<Attribute> cachedAttributes = ReadParameterCustomAttributes(reflectedType, parameter);
293private List<Attribute> ReadParameterCustomAttributes(Type reflectedType, System.Reflection.ParameterInfo parameter)
295List<Attribute> cachedAttributes = null;
System\Composition\Convention\PartConventionBuilder.cs (26)
17private static List<Attribute> s_onImportsSatisfiedAttributeList;
18private static readonly List<Attribute> s_importingConstructorList = new List<Attribute>() { new ImportingConstructorAttribute() };
20private readonly List<ExportConventionBuilder> _typeExportBuilders;
25private List<Tuple<string, object>> _metadataItems;
26private List<Tuple<string, Func<Type, object>>> _metadataItemFuncs;
33private readonly List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ExportConventionBuilder>, Type>> _propertyExports;
34private readonly List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ImportConventionBuilder>>> _propertyImports;
35private readonly List<Tuple<Predicate<Type>, Action<Type, ExportConventionBuilder>>> _interfaceExports;
36private readonly List<Predicate<MethodInfo>> _methodImportsSatisfiedNotifications;
422var attributes = new List<Attribute>();
529internal bool BuildConstructorAttributes(Type type, ref List<Tuple<object, List<Attribute>>> configuredMembers)
567internal static void BuildDefaultConstructorAttributes(Type type, ref List<Tuple<object, List<Attribute>>> configuredMembers)
577private static void ConfigureConstructorAttributes(ConstructorInfo constructorInfo, ref List<Tuple<object, List<Attribute>>> configuredMembers, Action<ParameterInfo, ImportConventionBuilder> configureConstructorImports)
579configuredMembers ??= new List<Tuple<object, List<Attribute>>>();
601List<Attribute> attributes = null;
608internal void BuildOnImportsSatisfiedNotification(Type type, ref List<Tuple<object, List<Attribute>>> configuredMembers)
646var onImportsSatisfiedAttributeList = new List<Attribute>
652configuredMembers.Add(new Tuple<object, List<Attribute>>(mi, s_onImportsSatisfiedAttributeList));
662internal void BuildPropertyAttributes(Type type, ref List<Tuple<object, List<Attribute>>> configuredMembers)
668List<Attribute> attributes = null;
748configuredMembers ??= new List<Tuple<object, List<Attribute>>>();
System.Composition.Hosting (6)
System.Composition.TypedParts (9)
System.Configuration.ConfigurationManager (34)
System.Console (2)
System.Data.Common (86)
System.Data.Odbc (20)
System.Data.OleDb (17)
System.Diagnostics.DiagnosticSource (35)
System.Diagnostics.EventLog (28)
System.Diagnostics.PerformanceCounter (1)
System.Diagnostics.Process (20)
System\Diagnostics\Process.Multiplexing.cs (4)
269List<ProcessOutputLine> lines)
325List<ProcessOutputLine> lines)
344private static void DecodeBytesAndParseLines(Decoder decoder, ReadOnlySpan<byte> byteBuffer, ref char[] charBuffer, ref int charStart, ref int charEnd, bool standardError, List<ProcessOutputLine> lines)
350private static bool FlushDecoderAndEmitRemainingChars(bool preambleChecked, Encoding encoding, Decoder decoder, ReadOnlySpan<byte> unconsumedBytes, ref char[] charBuffer, ref int charStart, ref int charEnd, bool standardError, List<ProcessOutputLine> lines)
System.Diagnostics.TraceSource (9)
System.DirectoryServices (2)
System.DirectoryServices.AccountManagement (79)
System.Drawing.Common (3)
System.Formats.Asn1 (1)
System.Formats.Cbor (20)
System.Formats.Nrbf (14)
System.Formats.Tar (1)
System.IO.Compression (22)
System\IO\Compression\ZipBlocks.Async.cs (4)
24public static async Task WriteAllBlocksAsync(List<ZipGenericExtraField>? fields, ReadOnlyMemory<byte> trailingExtraFieldData, Stream stream, CancellationToken cancellationToken)
42public static async Task WriteAllBlocksExcludingTagAsync(List<ZipGenericExtraField>? fields, ReadOnlyMemory<byte> trailingExtraFieldData, Stream stream, ushort excludeTag, CancellationToken cancellationToken)
132public static async Task<(List<ZipGenericExtraField>, byte[] trailingData)> GetExtraFieldsAsync(Stream stream, CancellationToken cancellationToken)
152List<ZipGenericExtraField> list = GetExtraFieldPostReadWork(extraFieldBuffer.Span, out byte[] trailingData);
System\IO\Compression\ZipBlocks.cs (13)
70public static List<ZipGenericExtraField> ParseExtraField(ReadOnlySpan<byte> extraFieldData, out ReadOnlySpan<byte> trailingExtraFieldData)
72List<ZipGenericExtraField> extraFields = new List<ZipGenericExtraField>();
90public static int TotalSize(List<ZipGenericExtraField>? fields, int trailingDataLength)
104public static void WriteAllBlocks(List<ZipGenericExtraField>? fields, ReadOnlySpan<byte> trailingExtraFieldData, Stream stream)
120public static void WriteAllBlocksExcludingTag(List<ZipGenericExtraField>? fields, ReadOnlySpan<byte> trailingExtraFieldData, Stream stream, ushort excludeTag)
139public static int TotalSizeExcludingTag(List<ZipGenericExtraField>? fields, int trailingDataLength, ushort excludeTag)
372public static Zip64ExtraField GetAndRemoveZip64Block(List<ZipGenericExtraField> extraFields,
407public static void RemoveZip64Blocks(List<ZipGenericExtraField> extraFields)
623private static List<ZipGenericExtraField> GetExtraFieldPostReadWork(Span<byte> extraFieldBuffer, out byte[] trailingData)
625List<ZipGenericExtraField> list = ZipGenericExtraField.ParseExtraField(extraFieldBuffer, out ReadOnlySpan<byte> trailingDataSpan);
631public static unsafe List<ZipGenericExtraField> GetExtraFields(Stream stream, out byte[] trailingData)
744public static bool TryGetFromExtraFields(List<ZipGenericExtraField>? extraFields, out WinZipAesExtraField aesExtraField)
886public List<ZipGenericExtraField>? ExtraFields;
System.IO.FileSystem.AccessControl (1)
System.IO.FileSystem.DriveInfo (2)
System.IO.FileSystem.Watcher (7)
System.IO.Packaging (29)
System\IO\Packaging\ZipPackage.cs (16)
176List<PackagePart> parts = new List<PackagePart>(InitialPartListSize);
538private static void DeleteInterleavedPartOrStream(List<ZipPackagePartPiece> sortedPieceInfoList)
564private void ProcessPieces(SortedSet<ZipPackagePartPiece> pieceSet, List<PackagePart> parts)
580List<ZipPackagePartPiece> pieces = new List<ZipPackagePartPiece>(pieceSet);
679List<ZipPackagePartPiece> pieces,
682List<PackagePart> parts)
1073List<ZipPackagePartPiece>? partPieces = null;
1303private List<ZipPackagePartPiece>? _contentTypeStreamPieces;
1355private readonly Dictionary<string, List<string>> _ignoredItemDictionary;
1360private readonly Dictionary<string, List<string>> _extensionDictionary;
1372_extensionDictionary = new Dictionary<string, List<string>>(_dictionaryInitialSize, s_extensionEqualityComparer);
1373_ignoredItemDictionary = new Dictionary<string, List<string>>(_dictionaryInitialSize, StringComparer.Ordinal);
1408internal void AddItemsForInvalidSequence(string normalizedPrefixNameForThisSequence, List<ZipPackagePartPiece> pieces, int startIndex, int count)
1410if (!_ignoredItemDictionary.TryGetValue(normalizedPrefixNameForThisSequence, out List<string>? zipFileInfoNameList))
1441if (_ignoredItemDictionary.TryGetValue(normalizedPartName, out List<string>? zipFileInfoNames))
1461if (_extensionDictionary.TryGetValue(extension, out List<string>? normalizedPartNames))
System.IO.Pipelines (6)
System.IO.Ports (4)
System.Linq (108)
System\Linq\Shuffle.SpeedOpt.cs (10)
21public override List<TSource> ToList()
23List<TSource> list = _source.ToList();
61List<TSource>? sample = ShuffleTakeIterator<TSource>.SampleToList(_source, 1, out long totalElementCount);
97private List<TSource>? _buffer;
117List<TSource>? buffer = _buffer;
130List<TSource>? buffer = SampleToList(_source, _takeCount, out _);
151public override List<TSource> ToList() => SampleToList(_source, _takeCount, out _) ?? [];
186List<TSource>? sample = SampleToList(_source, 1, out long totalElementCount);
202internal static List<TSource>? SampleToList(IEnumerable<TSource> source, int takeCount, out long totalElementCount)
204List<TSource>? reservoir = null;
System\Linq\Where.SpeedOpt.cs (12)
56public override List<TSource> ToList()
70List<TSource> result = builder.ToList();
217public override List<TSource> ToList() => ToList(_source, _predicate);
219public static List<TSource> ToList(ReadOnlySpan<TSource> source, Func<TSource, bool> predicate)
232List<TSource> result = builder.ToList();
320public override List<TSource> ToList() => ArrayWhereIterator<TSource>.ToList(CollectionsMarshal.AsSpan(_source), _predicate);
450public override List<TResult> ToList() => ToList(_source, _predicate, _selector);
452public static List<TResult> ToList(ReadOnlySpan<TSource> source, Func<TSource, bool> predicate, Func<TSource, TResult> selector)
465List<TResult> result = builder.ToList();
552public override List<TResult> ToList() => ArrayWhereSelectIterator<TSource, TResult>.ToList(CollectionsMarshal.AsSpan(_source), _predicate, _selector);
613public override List<TResult> ToList()
628List<TResult> result = builder.ToList();
System.Linq.AsyncEnumerable (6)
System.Linq.Expressions (56)
System.Linq.Parallel (11)
System.Linq.Queryable (2)
System.Memory (2)
System.Net.Http (56)
System.Net.HttpListener (21)
System.Net.Mail (9)
System.Net.NameResolution (21)
System.Net.NetworkInformation (24)
System.Net.Primitives (4)
System.Net.Quic (6)
System\Net\Quic\Internal\MsQuicConfiguration.Cache.cs (3)
34public readonly List<SslApplicationProtocol> ApplicationProtocols;
37public CacheKey(QUIC_SETTINGS settings, QUIC_CREDENTIAL_FLAGS flags, X509Certificate? certificate, ReadOnlyCollection<X509Certificate2>? intermediates, List<SslApplicationProtocol> alpnProtocols, QUIC_ALLOWED_CIPHER_SUITE_FLAGS allowedCipherSuites)
117private static MsQuicConfigurationSafeHandle GetCachedCredentialOrCreate(QUIC_SETTINGS settings, QUIC_CREDENTIAL_FLAGS flags, X509Certificate? certificate, ReadOnlyCollection<X509Certificate2>? intermediates, List<SslApplicationProtocol> alpnProtocols, QUIC_ALLOWED_CIPHER_SUITE_FLAGS allowedCipherSuites)
System\Net\Quic\Internal\MsQuicConfiguration.cs (2)
124private static MsQuicConfigurationSafeHandle Create(QuicConnectionOptions options, QUIC_CREDENTIAL_FLAGS flags, X509Certificate? certificate, ReadOnlyCollection<X509Certificate2>? intermediates, List<SslApplicationProtocol>? alpnProtocols, CipherSuitesPolicy? cipherSuitesPolicy, EncryptionPolicy encryptionPolicy)
204private static unsafe MsQuicConfigurationSafeHandle CreateInternal(QUIC_SETTINGS settings, QUIC_CREDENTIAL_FLAGS flags, X509Certificate? certificate, ReadOnlyCollection<X509Certificate2>? intermediates, List<SslApplicationProtocol> alpnProtocols, QUIC_ALLOWED_CIPHER_SUITE_FLAGS allowedCipherSuites)
System.Net.Requests (7)
System.Net.Security (15)
System.Net.Sockets (1)
System.Net.WebHeaderCollection (2)
System.Net.WebSockets.Client (4)
System.Numerics.Tensors (3)
System.ObjectModel (5)
System.Private.CoreLib (187)
System.Private.CoreLib.Generators (4)
System.Private.DataContractSerialization (60)
System.Private.Reflection.Execution (1)
System.Private.TypeLoader (3)
System.Private.Windows.Core (65)
System\Private\Windows\Nrbf\CoreNrbfSerializer.cs (32)
57{ Types.ToTypeName($"{Types.ListName}[[{Types.BooleanType}]]"), typeof(List<bool>) },
58{ Types.ToTypeName($"{Types.ListName}[[{Types.CharType}]]"), typeof(List<char>) },
59{ Types.ToTypeName($"{Types.ListName}[[{Types.StringType}]]"), typeof(List<string>) },
60{ Types.ToTypeName($"{Types.ListName}[[{Types.SByteType}]]"), typeof(List<sbyte>) },
61{ Types.ToTypeName($"{Types.ListName}[[{Types.ByteType}]]"), typeof(List<byte>) },
62{ Types.ToTypeName($"{Types.ListName}[[{Types.Int16Type}]]"), typeof(List<short>) },
63{ Types.ToTypeName($"{Types.ListName}[[{Types.UInt16Type}]]"), typeof(List<ushort>) },
64{ Types.ToTypeName($"{Types.ListName}[[{Types.Int32Type}]]"), typeof(List<int>) },
65{ Types.ToTypeName($"{Types.ListName}[[{Types.UInt32Type}]]"), typeof(List<uint>) },
66{ Types.ToTypeName($"{Types.ListName}[[{Types.Int64Type}]]"), typeof(List<long>) },
67{ Types.ToTypeName($"{Types.ListName}[[{Types.UInt64Type}]]"), typeof(List<ulong>) },
68{ Types.ToTypeName($"{Types.ListName}[[{Types.SingleType}]]"), typeof(List<float>) },
69{ Types.ToTypeName($"{Types.ListName}[[{Types.DoubleType}]]"), typeof(List<double>) },
70{ Types.ToTypeName($"{Types.ListName}[[{Types.DecimalType}]]"), typeof(List<decimal>) },
71{ Types.ToTypeName($"{Types.ListName}[[{Types.DateTimeType}]]"), typeof(List<DateTime>) },
72{ Types.ToTypeName($"{Types.ListName}[[{Types.TimeSpanType}]]"), typeof(List<TimeSpan>) },
124|| type == typeof(List<byte>)
125|| type == typeof(List<sbyte>)
126|| type == typeof(List<short>)
127|| type == typeof(List<ushort>)
128|| type == typeof(List<int>)
129|| type == typeof(List<uint>)
130|| type == typeof(List<long>)
131|| type == typeof(List<ulong>)
132|| type == typeof(List<float>)
133|| type == typeof(List<double>)
134|| type == typeof(List<char>)
135|| type == typeof(List<bool>)
136|| type == typeof(List<string>)
137|| type == typeof(List<decimal>)
138|| type == typeof(List<DateTime>)
139|| type == typeof(List<TimeSpan>)
System.Private.Windows.Core.TestUtilities (1)
System.Private.Xml (259)
System.Private.Xml.Linq (7)
System.Reflection.Context (10)
System.Reflection.DispatchProxy (2)
System.Reflection.Emit (67)
System\Reflection\Emit\ModuleBuilderImpl.cs (19)
25private readonly List<TypeBuilderImpl> _typeDefinitions = new();
28private List<CustomAttributeWrapper>? _customAttributes;
138List<GenericTypeParameterBuilderImpl> genericParams = new();
217foreach (List<(MethodInfo ifaceMethod, MethodInfo targetMethod)> mapList in typeBuilder._methodOverrides.Values)
303private void PopulateFieldDefinitionHandles(List<FieldBuilderImpl> fieldDefinitions)
311private void PopulateMethodDefinitionHandles(List<MethodBuilderImpl> methods)
319private void PopulatePropertyDefinitionHandles(List<PropertyBuilderImpl> properties)
327private void PopulateEventDefinitionHandles(List<EventBuilderImpl> eventDefinitions)
351private void WriteMethods(List<MethodBuilderImpl> methods, List<GenericTypeParameterBuilderImpl> genericParams,
423Dictionary<SymbolDocumentWriter, List<SequencePoint>>.Enumerator enumerator = il.DocumentToSequencePoints.GetEnumerator();
447private BlobHandle PopulateMultiDocSequencePointsBlob(Dictionary<SymbolDocumentWriter, List<SequencePoint>>.Enumerator enumerator, StandaloneSignatureHandle localSignature)
453KeyValuePair<SymbolDocumentWriter, List<SequencePoint>> pair = enumerator.Current;
473private static void PopulateSequencePointsBlob(BlobBuilder spBlobBuilder, List<SequencePoint> sequencePoints, ref int previousNonHiddenStartLine, ref int previousNonHiddenStartColumn)
530private LocalVariableHandle GetLocalVariableHandle(List<LocalBuilder>? locals, LocalVariableHandle firstLocalHandleOfLastScope)
553private ImportScopeHandle GetImportScopeHandle(List<string>? importNamespaces, ImportScopeHandle parent)
680internal void WriteCustomAttributes(List<CustomAttributeWrapper>? customAttributes, EntityHandle parent)
1403internal List<TypeBuilderImpl> GetNestedTypeBuilders(TypeBuilderImpl declaringType)
1405List<TypeBuilderImpl> nestedTypes = new List<TypeBuilderImpl>();
System.Reflection.Metadata (57)
System.Reflection.MetadataLoadContext (16)
System.Resources.Extensions (11)
System.Resources.Writer (2)
System.Runtime.Caching (4)
System.Runtime.InteropServices.JavaScript (2)
System.Runtime.Serialization.Formatters (9)
System.Runtime.Serialization.Schema (4)
System.Security.AccessControl (1)
System.Security.Claims (9)
System.Security.Cryptography (47)
System.Security.Cryptography.Cose (5)
System.Security.Cryptography.Pkcs (47)
System.Security.Cryptography.Xml (2)
System.Security.Permissions (1)
System.Security.Principal.Windows (8)
System.ServiceModel.Federation (2)
System.ServiceModel.NetFramingBase (22)
System.ServiceModel.NetNamedPipe (1)
System.ServiceModel.Primitives (122)
System.ServiceModel.Primitives.Tests (26)
System.ServiceModel.Syndication (1)
System.Speech (124)
Internal\Synthesis\ISSmlParser.cs (4)
17object ProcessSpeak(string sVersion, string? sBaseUri, CultureInfo? culture, List<SsmlXmlAttribute> extraNamespace);
30object ProcessVoice(string? name, CultureInfo? culture, VoiceGender gender, VoiceAge age, int variant, bool fNewCulture, List<SsmlXmlAttribute>? extraNamespace);
36void StartProcessUnknownAttributes(object voice, ref FragmentState fragmentState, string? element, List<SsmlXmlAttribute> extraAttributes);
37void EndProcessUnknownAttributes(object voice, ref FragmentState fragmentState, string? element, List<SsmlXmlAttribute> extraAttributes);
Internal\Synthesis\TextFragmentEngine.cs (6)
18internal TextFragmentEngine(SpeakInfo speakInfo, string ssmlText, bool pexml, ResourceLoader resourceLoader, List<LexiconEntry> lexicons)
30public object ProcessSpeak(string sVersion, string? sBaseUri, CultureInfo? culture, List<SsmlXmlAttribute> extraNamespace)
173public object ProcessVoice(string? name, CultureInfo? culture, VoiceGender gender, VoiceAge age, int variant, bool fNewCulture, List<SsmlXmlAttribute>? extraNamespace)
195public void StartProcessUnknownAttributes(object voice, ref FragmentState fragmentState, string? element, List<SsmlXmlAttribute> extraAttributes)
208public void EndProcessUnknownAttributes(object voice, ref FragmentState fragmentState, string? element, List<SsmlXmlAttribute> extraAttributes)
312private List<LexiconEntry> _lexicons;
Internal\Synthesis\TextWriterEngine.cs (4)
28public object ProcessSpeak(string sVersion, string? baseUri, CultureInfo? culture, List<SsmlXmlAttribute> extraNamespace)
208public object ProcessVoice(string? name, CultureInfo? culture, VoiceGender gender, VoiceAge age, int variant, bool fNewCulture, List<SsmlXmlAttribute>? extraNamespace)
271public void StartProcessUnknownAttributes(object? voice, ref FragmentState fragmentState, string? sElement, List<SsmlXmlAttribute> extraAttributes)
280public void EndProcessUnknownAttributes(object? voice, ref FragmentState fragmentState, string? sElement, List<SsmlXmlAttribute> extraAttributes)
Result\RecognizedPhrase.cs (7)
162List<RecognizedWordUnit> wordList = new(countOfElements);
252List<RecognizedPhrase> homophones = new(_recoResult.Alternates.Count);
424List<ResultPropertiesRef> propertyList = BuildRecoPropertyTree(_serializedPhrase, buffer, ruleTree, words, _isSapi53Header);
454private static List<ResultPropertiesRef> BuildRecoPropertyTree(SPSERIALIZEDPHRASE serializedPhrase, IntPtr phraseBuffer, RuleNode ruleTree, IList<RecognizedWordUnit> words, bool isSapi53Header)
456List<ResultPropertiesRef> propertyList = new();
466private static SemanticValue RecursiveBuildSemanticProperties(IList<RecognizedWordUnit> words, List<ResultPropertiesRef> properties, RuleNode ruleTree, GrammarOptions semanticTag, ref Collection<SemanticValue>? dupItems)
543private static void RecursivelyExtractSemanticProperties(List<ResultPropertiesRef> propertyList, int semanticsOffset, IntPtr phraseBuffer, RuleNode ruleTree, IList<RecognizedWordUnit> words, bool isSapi53Header)
System.Text.Json (109)
System\Text\Json\Serialization\JsonUnionTypeStructuralClassifier.cs (15)
93List<PocoObjectCase> pocoObjectCaseList = [];
121Dictionary<byte[], List<PocoPropertyClassifierInfo>> pocoPropertyIndex = new(JsonHelpers.ByteArrayOrdinalComparer.Instance);
122Dictionary<string, List<PocoPropertyClassifierInfo>>? caseInsensitivePocoPropertyIndex = null;
148Dictionary<TKey, List<PocoPropertyClassifierInfo>> index,
153if (!index.TryGetValue(key, out List<PocoPropertyClassifierInfo>? matches))
168List<PocoObjectCase> pocoObjectCases,
256List<PocoPropertyClassifierInfo> properties = new(typeInfo.Properties.Count);
294List<PocoObjectCase> pocoObjectCases)
329private readonly Dictionary<byte[], List<PocoPropertyClassifierInfo>> _pocoPropertyIndex;
330private readonly Dictionary<string, List<PocoPropertyClassifierInfo>>? _caseInsensitivePocoPropertyIndex;
339Dictionary<byte[], List<PocoPropertyClassifierInfo>> pocoPropertyIndex,
340Dictionary<string, List<PocoPropertyClassifierInfo>>? caseInsensitivePocoPropertyIndex,
349List<int>? disallowUnmappedPropertiesPocoCaseIndices = null;
545out List<PocoPropertyClassifierInfo>? propertyMatches))
564out List<PocoPropertyClassifierInfo>? caseInsensitivePropertyMatches))
System.Text.Json.SourceGeneration (60)
JsonSourceGenerator.Parser.cs (42)
62public List<Diagnostic> Diagnostics { get; } = new();
126out List<TypeToGenerate>? rootSerializableTypes,
147if (!TryGetNestedTypeDeclarations(contextClassDeclaration, semanticModel, cancellationToken, out List<string>? classDeclarationList))
190private static bool TryGetNestedTypeDeclarations(ClassDeclarationSyntax contextClassSyntax, SemanticModel semanticModel, CancellationToken cancellationToken, [NotNullWhen(true)] out List<string>? typeDeclarations)
320out List<TypeToGenerate>? rootSerializableTypes,
408List<TypeRef>? converters = null;
409List<TypeRef>? typeClassifiers = null;
693List<PropertyGenerationSpec>? propertySpecs = null;
694List<int>? fastPathPropertyIndices = null;
699List<PropertyInitializerGenerationSpec>? propertyInitializerSpecs = null;
837List<(ITypeSymbol CaseType, bool IsNullable)> unionCaseTypes = GetUnionCaseTypes(namedUnionType);
843var resolvedUnionCaseSpecs = new List<UnionCaseSpec>(unionCaseTypes.Count);
992List<DerivedTypeSpec>? derivedTypes = null;
1179List<ITypeSymbol>? closedDerivedTypes = closedBaseType.GetClosedDerivedTypes();
1232ref List<DerivedTypeSpec>? derivedTypes,
1306List<ITypeSymbol> closedTypeDerivedTypes,
1309ref List<DerivedTypeSpec>? derivedTypes)
1372List<INamedTypeSymbol> matchingBases = derivedDefinition
1385List<ITypeParameterSymbol> requiredParams = derivedDefinition.GetAllTypeParameters();
1620List<(ITypeSymbol CaseType, bool IsNullable)> caseTypes = GetUnionCaseTypes(namedType);
1636private List<(ITypeSymbol CaseType, bool IsNullable)> GetUnionCaseTypes(INamedTypeSymbol namedType)
1640var caseTypes = new List<ITypeSymbol>();
1675List<ITypeSymbol> sorted = SortCaseTypesTopologically(caseTypes);
1676var result = new List<(ITypeSymbol, bool)>(sorted.Count);
1696private static bool[] ComputeUnionSwitchArmRoles(List<(ITypeSymbol CaseType, bool IsNullable)> caseTypes)
1733private List<ITypeSymbol> SortCaseTypesTopologically(List<ITypeSymbol> caseTypes)
1747var sortedCaseTypes = new List<ITypeSymbol>(caseTypes.Count);
1770List<ITypeSymbol>? parentTypes = null;
1784private void EmitUnionAmbiguityDiagnostics(INamedTypeSymbol unionType, List<ITypeSymbol> caseTypes, Location? location)
1787Dictionary<JsonValueType, List<string>> valueTypeToTypes = new();
1802if (!valueTypeToTypes.TryGetValue(valueType, out List<string>? typeNames))
1812foreach (KeyValuePair<JsonValueType, List<string>> kvp in valueTypeToTypes)
2189private List<PropertyGenerationSpec> ParsePropertyGenerationSpecs(
2196out List<int>? fastPathPropertyIndices,
2200List<PropertyGenerationSpec> properties = new();
2308public readonly List<int> Properties = new();
2884private List<PropertyInitializerGenerationSpec>? ParsePropertyInitializers(
2886List<PropertyGenerationSpec>? properties,
2896List<PropertyInitializerGenerationSpec>? propertyInitializers = null;
3072var typeChain = new List<INamedTypeSymbol>();
3259if (namedType.GetAllTypeArgumentsInScope() is List<ITypeSymbol> typeArgsInScope)
System.Text.RegularExpressions (112)
System\Text\RegularExpressions\Regex.Split.cs (2)
299regex.RunAllMatchesWithCallback(input, startat, ref state, static (ref (List<string> results, int prevat, string input, int count) state, Match match) =>
327regex.RunAllMatchesWithCallback(input, startat, ref state, static (ref (List<string> results, int prevat, string input, int count) state, Match match) =>
System\Text\RegularExpressions\RegexCharClass.cs (11)
187private List<(char First, char Last)>? _rangelist;
222private RegexCharClass(bool negate, List<(char First, char Last)>? ranges, StringBuilder? categories, RegexCharClass? subtraction)
274private List<(char First, char Last)> EnsureRangeList() =>
284List<(char First, char Last)> rangeList = EnsureRangeList();
350List<(char First, char Last)>? rangeList = _rangelist;
1466List<(char First, char Last)>? ranges = ComputeRanges(charClass.AsSpan(pos));
1499public static List<(char First, char Last)>? ComputeRanges(ReadOnlySpan<char> set)
1505List<(char First, char Last)>? ranges = null;
1648List<(char First, char Last)>? rangelist = current._rangelist;
1687List<(char First, char Last)>? rangelist = _rangelist;
1868var temp = new List<KeyValuePair<string, string>>(s_definedCategories);
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Automata.cs (5)
407List<int> targetsList = [];
408ForEachNfaState(targetNode, nextCharKind, targetsList, static (int nfaId, List<int> targetsList) =>
433List<(SymbolicRegexNode<TSet> Node, DerivativeEffect[] Effects)>? transition = coreState.NfaNextWithEffects(_builder, minterm, nextCharKind);
436List<(int, DerivativeEffect[])> targetsList = [];
440static (int nfaId, (List<(int, DerivativeEffect[])> Targets, DerivativeEffect[] Effects) args) =>
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Dgml.cs (5)
24Dictionary<(int Source, int Target), (TSet Rule, List<int> NfaTargets)> transitions = GatherTransitions(this);
57foreach (KeyValuePair<(int Source, int Target), (TSet Rule, List<int> NfaTargets)> transition in transitions)
144static Dictionary<(int Source, int Target), (TSet Rule, List<int> NfaTargets)> GatherTransitions(SymbolicRegexMatcher<TSet> matcher)
146Dictionary<(int Source, int Target), (TSet Rule, List<int> NfaTargets)> result = new();
161if (!result.TryGetValue(key, out (TSet Rule, List<int> NfaTargets) entry))
System\Text\RegularExpressions\Symbolic\SymbolicRegexNode.cs (10)
185public List<SymbolicRegexNode<TSet>> ToList(List<SymbolicRegexNode<TSet>>? list = null, SymbolicRegexNodeKind listKind = SymbolicRegexNodeKind.Concat)
192static void AppendToList(SymbolicRegexNode<TSet> concat, List<SymbolicRegexNode<TSet>> list, SymbolicRegexNodeKind listKind)
540List<SymbolicRegexNode<TSet>> elems = left.ToList(listKind: SymbolicRegexNodeKind.Alternate);
840List<SymbolicRegexNode<TSet>> prefixElements = [];
1054internal List<(SymbolicRegexNode<TSet>, DerivativeEffect[])> CreateNfaDerivativeWithEffects(SymbolicRegexBuilder<TSet> builder, TSet elem, uint context)
1056List<(SymbolicRegexNode<TSet>, DerivativeEffect[])> transitions = [];
1408List<SymbolicRegexNode<TSet>> elems = strippedLeft.ToList(listKind: SymbolicRegexNodeKind.Alternate);
1449internal void StripAndMapEffects(SymbolicRegexBuilder<TSet> builder, uint context, List<(SymbolicRegexNode<TSet>, DerivativeEffect[])> alternativesAndEffects,
1450List<DerivativeEffect>? currentEffects = null)
System.Text.RegularExpressions.Generator (67)
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (11)
187private List<(char First, char Last)>? _rangelist;
222private RegexCharClass(bool negate, List<(char First, char Last)>? ranges, StringBuilder? categories, RegexCharClass? subtraction)
274private List<(char First, char Last)> EnsureRangeList() =>
284List<(char First, char Last)> rangeList = EnsureRangeList();
350List<(char First, char Last)>? rangeList = _rangelist;
1466List<(char First, char Last)>? ranges = ComputeRanges(charClass.AsSpan(pos));
1499public static List<(char First, char Last)>? ComputeRanges(ReadOnlySpan<char> set)
1505List<(char First, char Last)>? ranges = null;
1648List<(char First, char Last)>? rangelist = current._rangelist;
1687List<(char First, char Last)>? rangelist = _rangelist;
1868var temp = new List<KeyValuePair<string, string>>(s_definedCategories);
System.Threading.Channels (1)
System.Threading.RateLimiting (9)
System.Threading.Tasks.Dataflow (38)
Blocks\BatchBlock.cs (8)
276internal readonly List<KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>> ReservedSourcesTemp;
527List<Exception>? exceptions = null;
759List<KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>> reserved = _nonGreedyState.ReservedSourcesTemp;
877List<KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>> reserved = _nonGreedyState.ReservedSourcesTemp;
984List<KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>> reserved = _nonGreedyState.ReservedSourcesTemp;
1036List<KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>> reserved = _nonGreedyState.ReservedSourcesTemp;
1086List<Exception>? exceptions = null;
1088List<KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>> reserved = _nonGreedyState.ReservedSourcesTemp;
System.Threading.Tasks.Parallel (1)
System.Windows.Controls.Ribbon (53)
System.Windows.Forms (192)
System.Windows.Forms.Design (258)
System.Windows.Forms.Primitives (6)
System.Windows.Input.Manipulations (3)
System.Xaml (169)
System\Xaml\Context\ObjectWriterContext.cs (17)
24private List<NameScopeInitializationCompleteSubscriber> _nameScopeInitializationCompleteSubscribers;
174List<AmbientPropertyValue> valueList = FindAmbientValues(ceilingTypes, searchLiveStackOnly: false, types: null, properties, true);
180List<object> valueList = FindAmbientValues(types, true);
186List<AmbientPropertyValue> valueList = FindAmbientValues(ceilingTypes, searchLiveStackOnly: false, types: null, properties, stopAfterFirst: false);
192List<object> valueList = FindAmbientValues(types, false);
198List<AmbientPropertyValue> valueList = FindAmbientValues(ceilingTypes, searchLiveStackOnly, types, properties, false);
307private List<AmbientPropertyValue> FindAmbientValues(IEnumerable<XamlType> ceilingTypesEnumerable,
321List<XamlType> ceilingTypes = ceilingTypesEnumerable is not null ? new List<XamlType>(ceilingTypesEnumerable) : null;
323List<AmbientPropertyValue> retList = new List<AmbientPropertyValue>();
426private List<object> FindAmbientValues(XamlType[] types, bool stopAfterFirst)
436List<object> retList = new List<object>();
990List<KeyValuePair<string, object>> allNamesAndValues = new List<KeyValuePair<string, object>>();
1049private List<XAML3.INameScopeDictionary> _nameScopeDictionaryList = new List<XAML3.INameScopeDictionary>();
1056public List<XAML3.INameScopeDictionary> NameScopeDictionaryList
1064private List<XAML3.INameScopeDictionary> _nameScopeDictionaryList;
1066public StackWalkNameResolver(List<XAML3.INameScopeDictionary> nameScopeDictionaryList)
1129List<KeyValuePair<string, object>> allNamesAndValues = new List<KeyValuePair<string, object>>();
System\Xaml\Schema\TypeReflector.cs (44)
465out ICollection<EventInfo> newEvents, out List<XamlMember> knownMembers)
486private IList<PropertyInfo> FilterProperties(PropertyInfo[] propList, List<XamlMember> knownMembers, bool skipKnownNegatives)
536List<PropertyInfo> filteredResult = new List<PropertyInfo>(result.Count);
548private ICollection<EventInfo> FilterEvents(EventInfo[] eventList, List<XamlMember> knownMembers)
590List<EventInfo> filteredResult = new List<EventInfo>(result.Count);
641private void PickAttachablePropertyAccessors(List<MethodInfo> getters,
642List<MethodInfo> setters, out MethodInfo getter, out MethodInfo setter)
644List<KeyValuePair<MethodInfo, MethodInfo>> candidates =
709List<MethodInfo> setters = LookupStaticSetters(name);
710List<MethodInfo> getters = LookupStaticGetters(name);
726List<MethodInfo> adders = LookupStaticAdders(name);
735private void LookupAllStaticAccessors(out Dictionary<string, List<MethodInfo>> getters,
736out Dictionary<string, List<MethodInfo>> setters, out Dictionary<string, List<MethodInfo>> adders)
738getters = new Dictionary<string, List<MethodInfo>>();
739setters = new Dictionary<string, List<MethodInfo>>();
740adders = new Dictionary<string, List<MethodInfo>>();
754private void LookupAllStaticAccessorsHelper(MethodInfo[] allMethods, Dictionary<string, List<MethodInfo>> getters,
755Dictionary<string, List<MethodInfo>> setters, Dictionary<string, List<MethodInfo>> adders, bool isUnderlyingTypePublic)
778private List<MethodInfo> LookupStaticAdders(string name)
782List<MethodInfo> preferredAdders, otherAdders;
787private List<MethodInfo> LookupStaticGetters(string name)
790List<MethodInfo> preferredGetters, otherGetters;
795private List<MethodInfo> LookupStaticSetters(string name)
798List<MethodInfo> preferredSetters, otherSetters;
805private void PrioritizeAccessors(MemberInfo[] accessors, bool isEvent, bool isGetter, out List<MethodInfo> preferredAccessors, out List<MethodInfo> otherAccessors)
866private static void AddToMultiDict(Dictionary<string, List<MethodInfo>> dict, string name, MethodInfo value, bool isUnderlyingTypePublic)
868List<MethodInfo> list;
989List<XamlMember> result = new List<XamlMember>();
991Dictionary<string, List<MethodInfo>> getters;
992Dictionary<string, List<MethodInfo>> setters;
993Dictionary<string, List<MethodInfo>> adders;
1001private void GetOrCreateAttachableProperties(XamlSchemaContext schemaContext, List<XamlMember> result,
1002Dictionary<string, List<MethodInfo>> getters, Dictionary<string, List<MethodInfo>> setters)
1004foreach (KeyValuePair<string, List<MethodInfo>> nameAndSetterList in setters)
1010List<MethodInfo> getterList;
1031foreach (KeyValuePair<string, List<MethodInfo>> nameAndGetterList in getters)
1045List<XamlMember> result, Dictionary<string, List<MethodInfo>> adders)
1047foreach (KeyValuePair<string, List<MethodInfo>> nameAndAdderList in adders)
1189List<K> listOfNulls = null;
TestProject.AppHost (1)
TypeScriptApiCompat (15)
AtsCompatibilityComparer.cs (8)
13var diagnostics = new List<ApiCompatDiagnostic>();
38private static void CompareSurface(AtsSurface baseline, AtsSurface current, List<ApiCompatDiagnostic> diagnostics)
74private static void CompareDtoTypes(AtsSurface baseline, AtsSurface current, List<ApiCompatDiagnostic> diagnostics)
138private static void CompareEnumTypes(AtsSurface baseline, AtsSurface current, List<ApiCompatDiagnostic> diagnostics)
170private static void CompareExportedValues(AtsSurface baseline, AtsSurface current, List<ApiCompatDiagnostic> diagnostics)
207private static void CompareCapabilities(AtsSurface baseline, AtsSurface current, List<ApiCompatDiagnostic> diagnostics)
241List<ApiCompatDiagnostic> diagnostics)
342List<ApiCompatDiagnostic> diagnostics)
UIAutomationClientSideProviders (18)
MS\Internal\AutomationProxies\ClickablePoint.cs (11)
53internal static bool GetPoint(IntPtr hwnd, List<CPRect> listIn, List<CPRect> listOut, ref NativeMethods.Win32Point pt)
136internal static void ExcludeChildren(ProxyFragment fragment, List<CPRect> listIn, List<CPRect> listOut)
231private static bool ClickableInRect(IntPtr hwnd, ref NativeMethods.Win32Point pt, bool fRiAsInsideRect, List<CPRect> listIn, List<CPRect> listOut)
299private static void SplitVertical(ref CPRect ro, ref CPRect ri, int left, int right, List<CPRect> rectList, bool fRiAsInsideRect)
353private static void SplitRect(ref CPRect ro, CPRect ri, List<CPRect> rectList, bool fRiAsInsideRect)
416private static void SplitRect(List<CPRect> listIn, ref CPRect ri, List<CPRect> listOut, bool fRiAsInsideRect)
436private static bool GetClickablePoint(List<CPRect> rectList, out int x, out int y)
UnitTests.Common (5)
vbc (7)
VBCSCompiler (20)
src\roslyn\src\Compilers\Server\VBCSCompiler\CompilationCache.cs (4)
249List<(string Path, string Name)> recentEntries;
671public List<(string DllName, string HashKey, DateTimeOffset Created, DateTimeOffset LastUsed)> HitDetails { get; } = new();
672public List<(string DllName, string HashKey, DateTimeOffset Created, DateTimeOffset LastUsed)> StoreDetails { get; } = new();
695private static void FormatGrouped(StringBuilder sb, string label, List<(string DllName, string HashKey, DateTimeOffset Created, DateTimeOffset LastUsed)> details, int verbosity)
vstest.console (44)
Processors\ListFullyQualifiedTestsArgumentProcessor.cs (20)
111private readonly List<string> _discoveredTests = new();
207private readonly List<string> _discoveredTests;
210public DiscoveryEventsRegistrar(List<string> discoveredTests, CommandLineOptions cmdOptions)
239var discoveredTests = args.DiscoveredTestCases!.ToList();
240var filteredTests = TestCaseFilter.FilterTests(discoveredTests).ToList();
270List<TestCase> filteredList;
309private static List<TestCase> GetFilteredTestCases(IEnumerable<TestCase> testCases)
311var filteredList = new List<TestCase>();
339private static Dictionary<string, List<string>> GetTestPropertiesInTraitDictionary(TestCase testCase)
341var traitDictionary = new Dictionary<string, List<string>>();
358var testPropertyValueList = new List<string>(testPropertyValueArray);
367var multiValue = new List<string> { testPropertyValue.ToString()! };
378private static Dictionary<string, List<string>> GetTraitsInTraitDictionary(Dictionary<string, List<string>> traitDictionary, TraitCollection traits)
382var newTraitValueList = new List<string> { trait.Value };
383if (!traitDictionary.TryGetValue(trait.Name, out List<string>? currentTraitValue))
398List<string> traitValueList = currentTraitValue;
407traitDictionary.TryGetValue(Category, out var categoryValue);
417private static string[]? PropertyValueProvider(string propertyName, Dictionary<string, List<string>> traitDictionary)
419traitDictionary.TryGetValue(propertyName, out List<string>? propertyValueList);
vstest.console.arm64 (44)
src\vstest\src\vstest.console\Processors\ListFullyQualifiedTestsArgumentProcessor.cs (20)
111private readonly List<string> _discoveredTests = new();
207private readonly List<string> _discoveredTests;
210public DiscoveryEventsRegistrar(List<string> discoveredTests, CommandLineOptions cmdOptions)
239var discoveredTests = args.DiscoveredTestCases!.ToList();
240var filteredTests = TestCaseFilter.FilterTests(discoveredTests).ToList();
270List<TestCase> filteredList;
309private static List<TestCase> GetFilteredTestCases(IEnumerable<TestCase> testCases)
311var filteredList = new List<TestCase>();
339private static Dictionary<string, List<string>> GetTestPropertiesInTraitDictionary(TestCase testCase)
341var traitDictionary = new Dictionary<string, List<string>>();
358var testPropertyValueList = new List<string>(testPropertyValueArray);
367var multiValue = new List<string> { testPropertyValue.ToString()! };
378private static Dictionary<string, List<string>> GetTraitsInTraitDictionary(Dictionary<string, List<string>> traitDictionary, TraitCollection traits)
382var newTraitValueList = new List<string> { trait.Value };
383if (!traitDictionary.TryGetValue(trait.Name, out List<string>? currentTraitValue))
398List<string> traitValueList = currentTraitValue;
407traitDictionary.TryGetValue(Category, out var categoryValue);
417private static string[]? PropertyValueProvider(string propertyName, Dictionary<string, List<string>> traitDictionary)
419traitDictionary.TryGetValue(propertyName, out List<string>? propertyValueList);
WaitForSandbox.ApiService (1)
WindowsFormsIntegration (3)