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)
10492 instantiations of List
aspire (126)
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 (1)
Aspire.Cli.Tests (91)
Projects\ProjectUpdaterTests.cs (28)
54var packages = new List<NuGetPackageCli>();
156var packagesAddsExecuted = new List<(FileInfo ProjectFile, string PackageId, string PackageVersion, string? PackageSource, bool NoRestore)>();
165var packages = new List<NuGetPackageCli>();
287var packagesAddsExecuted = new List<(FileInfo ProjectFile, string PackageId, string PackageVersion, string? PackageSource, bool NoRestore)>();
296var packages = new List<NuGetPackageCli>();
440var packagesAddsExecuted = new List<(FileInfo ProjectFile, string PackageId, string PackageVersion, string? PackageSource, bool NoRestore)>();
449var packages = new List<NuGetPackageCli>();
599var updatedFiles = new List<string>();
609var packages = new List<NuGetPackageCli>();
728var packages = new List<NuGetPackageCli>();
830var packages = new List<NuGetPackageCli>();
964var packages = new List<NuGetPackageCli>();
1080var packages = new List<NuGetPackageCli>();
1201var packages = new List<NuGetPackageCli>();
1314var packages = new List<NuGetPackageCli>();
1410var packages = new List<NuGetPackageCli>();
1519var packages = new List<NuGetPackageCli>();
1604var packages = new List<NuGetPackageCli>();
1680var packages = new List<NuGetPackageCli>();
1764var packages = new List<NuGetPackageCli>();
1847var packages = new List<NuGetPackageCli>();
1927var packages = new List<NuGetPackageCli>();
2017var packages = new List<NuGetPackageCli>();
2096var packages = new List<NuGetPackageCli>();
2164var packagesUpdated = new List<string>();
2174var packages = new List<NuGetPackageCli>();
2292var packagesAddsExecuted = new List<(FileInfo ProjectFile, string PackageId, string PackageVersion, string? PackageSource, bool NoRestore)>();
2302var packages = new List<NuGetPackageCli>();
Aspire.Components.Common.TestUtilities (3)
Aspire.Confluent.Kafka.Tests (2)
Aspire.Dashboard (137)
Aspire.Dashboard.Components.Tests (29)
Aspire.Dashboard.Tests (77)
Model\AIAssistant\AIHelpersTests.cs (9)
17var items = new List<int> { 1, 2, 3, 4, 5 };
31var items = new List<int> { 1, 2, 3, 4, 5 };
45var items = new List<int> { 1, 2, 3, 4, 5 };
59var items = new List<string> { "one", "two", "three" };
73var items = new List<string> { "one", "two", "three" };
101var values = new List<string>();
119var values = new List<string>();
137var values = new List<string>();
162var values = new List<string>();
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)
535CreateSpan(traceId: "1", spanId: "1-1", startTime: s_testTime.AddMinutes(1), endTime: s_testTime.AddMinutes(10), events: new List<Span.Types.Event>
612CreateSpan(traceId: "1", spanId: "1-1", startTime: s_testTime.AddMinutes(1), endTime: s_testTime.AddMinutes(10), links: new List<Span.Types.Link>
768var attributes = new List<KeyValuePair<string, string>>();
775var events = new List<Span.Types.Event>();
995CreateSpan(traceId: traceId, spanId: $"{traceId}-2", startTime: startTime.AddMinutes(5), endTime: startTime.AddMinutes(1), parentSpanId: $"{traceId}-1", links: new List<Span.Types.Link>
999CreateSpan(traceId: traceId, spanId: $"{traceId}-1", startTime: startTime.AddMinutes(1), endTime: startTime.AddMinutes(10), links: new List<Span.Types.Link>
Aspire.EndToEnd.Tests (2)
Aspire.Hosting (81)
Aspire.Hosting.Analyzers (1)
Aspire.Hosting.Azure (13)
Aspire.Hosting.Azure.AppContainers (2)
Aspire.Hosting.Azure.AppService (4)
Aspire.Hosting.Azure.CosmosDB (1)
Aspire.Hosting.Azure.Functions (2)
Aspire.Hosting.Azure.Kusto.Tests (1)
Aspire.Hosting.Azure.Network (1)
Aspire.Hosting.Azure.Sql (2)
Aspire.Hosting.Azure.Tests (14)
Aspire.Hosting.Azure.WebPubSub (1)
Aspire.Hosting.CodeGeneration.Go (3)
Aspire.Hosting.CodeGeneration.Java (2)
Aspire.Hosting.CodeGeneration.Python (2)
Aspire.Hosting.CodeGeneration.Rust (2)
Aspire.Hosting.CodeGeneration.TypeScript (20)
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
Aspire.Hosting.DevTunnels (1)
Aspire.Hosting.Docker (6)
Aspire.Hosting.Foundry (1)
Aspire.Hosting.Garnet (1)
Aspire.Hosting.Integration.Analyzers (2)
Aspire.Hosting.JavaScript (2)
Aspire.Hosting.JavaScript.Tests (12)
AddViteAppTests.cs (8)
247var args = new List<object>();
272var args = new List<object>();
308var args = new List<object> { "run", "dev", "--", "--port", "3000", "--config", "vite.config.js" };
368var args = new List<object> { "run", "dev", "--", "--port", "3000" };
419var args = new List<object> { "run", "dev", "--", "--port", "3000" };
472var args = new List<object> { "run", "dev", "--", "--port", "3000" };
531var args = new List<object> { "run", "dev", "--", "--port", "3000" };
606var args = new List<object> { "run", "dev", "--", "--port", "3000" };
Aspire.Hosting.Maui (6)
Aspire.Hosting.Maui.Tests (1)
Aspire.Hosting.Nats (1)
Aspire.Hosting.Nats.Tests (1)
Aspire.Hosting.PostgreSQL (1)
Aspire.Hosting.Redis (2)
Aspire.Hosting.RemoteHost (27)
Aspire.Hosting.RemoteHost.Tests (2)
Aspire.Hosting.Testing.Tests (3)
Aspire.Hosting.Tests (82)
Aspire.Hosting.Valkey (1)
Aspire.Hosting.Yarp (4)
Aspire.Hosting.Yarp.Tests (10)
Aspire.Microsoft.Azure.Cosmos (1)
Aspire.Microsoft.EntityFrameworkCore.Cosmos (1)
Aspire.Oracle.EntityFrameworkCore.Tests (1)
Aspire.Playground.Tests (1)
Aspire.RuntimeIdentifier.Tool (1)
Aspire.StackExchange.Redis (1)
Aspire.Templates.Tests (3)
Aspire.TestUtilities (1)
Aspire.TypeSystem (1)
aspire-managed (7)
AzureAppService.ApiService (1)
AzureContainerApps.ApiService (1)
AzureStorageEndToEnd.ApiService (1)
AzureVirtualNetworkEndToEnd.ApiService (1)
BasketService (3)
BicepSample.ApiService (6)
blazor-gateway (2)
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 (71)
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.xmlserializer (11)
dotnet-svcutil-lib (255)
dotnet-svcutil-lib.Tests (5)
dotnet-user-jwts (17)
dotnet-user-secrets (7)
dotnet-watch (6)
GenerateAnalyzerNuspec (2)
GenerateDocumentationAndConfigFiles (41)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
86var result = new List<ITypeSymbol>
GetDocument.Insider (8)
HelixTestTasks (5)
ILAssembler (23)
ilc (16)
ILCompiler.Build.Tasks (1)
ILCompiler.Compiler (150)
ILCompiler.DependencyAnalysisFramework (6)
ILCompiler.Diagnostics (2)
ILCompiler.MetadataTransform (46)
ILCompiler.ReadyToRun (126)
ILCompiler.RyuJit (15)
ILCompiler.TypeSystem (7)
illink (80)
ILLink.CodeFixProvider (2)
ILLink.RoslynAnalyzer (6)
Infrastructure.Common (7)
Infrastructure.Tests (9)
Microsoft.Analyzers.Extra (8)
Microsoft.Analyzers.Extra.Tests (7)
Microsoft.Analyzers.Local (2)
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.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 (5)
Microsoft.AspNetCore.Components (35)
Microsoft.AspNetCore.Components.Analyzers (7)
Microsoft.AspNetCore.Components.Authorization (1)
Microsoft.AspNetCore.Components.Endpoints (34)
Microsoft.AspNetCore.Components.Forms (4)
Microsoft.AspNetCore.Components.QuickGrid (7)
Microsoft.AspNetCore.Components.SdkAnalyzers (2)
Microsoft.AspNetCore.Components.Server (16)
Microsoft.AspNetCore.Components.Web (5)
Microsoft.AspNetCore.Components.WebAssembly (13)
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.Middleware.Tests (34)
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.Grpc.Swagger (10)
Microsoft.AspNetCore.HeaderParsing (1)
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.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.Api.Analyzers (4)
Microsoft.AspNetCore.Mvc.ApiExplorer (10)
Microsoft.AspNetCore.Mvc.Core (123)
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.Quic (4)
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 (336)
Microsoft.Build.Framework (22)
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)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
86var result = new List<ITypeSymbol>
Microsoft.CodeAnalysis.AnalyzerUtilities (31)
Microsoft.CodeAnalysis.CodeStyle (29)
Microsoft.CodeAnalysis.CodeStyle.Fixes (12)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
86var result = new List<ITypeSymbol>
Microsoft.CodeAnalysis.CSharp (35)
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (10)
Microsoft.CodeAnalysis.CSharp.Features (39)
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (6)
Microsoft.CodeAnalysis.CSharp.Workspaces (24)
Microsoft.CodeAnalysis.Extensions.Package (3)
Microsoft.CodeAnalysis.ExternalAccess.HotReload (1)
Microsoft.CodeAnalysis.Features (44)
Microsoft.CodeAnalysis.Razor.Compiler (23)
Microsoft.CodeAnalysis.Rebuild (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (32)
Microsoft.CodeAnalysis.Scripting (9)
Microsoft.CodeAnalysis.VisualBasic (2)
Microsoft.CodeAnalysis.Workspaces (57)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
86var result = new List<ITypeSymbol>
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 (25)
Microsoft.Diagnostics.DataContractReader.DataGenerator (5)
Microsoft.Diagnostics.DataContractReader.Legacy (34)
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.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.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 (3)
Microsoft.Extensions.AI (4)
Microsoft.Extensions.AI.Abstractions (3)
Microsoft.Extensions.AI.Abstractions.Tests (6)
Microsoft.Extensions.AI.Evaluation (1)
Microsoft.Extensions.AI.Evaluation.Integration.Tests (7)
Microsoft.Extensions.AI.Evaluation.Quality (1)
Microsoft.Extensions.AI.Integration.Tests (22)
Microsoft.Extensions.AI.OpenAI.Tests (25)
Microsoft.Extensions.AI.Tests (49)
Microsoft.Extensions.ApiDescription.Client (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.Configuration (11)
Microsoft.Extensions.Configuration.Binder (4)
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.HealthChecks (2)
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
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.ResourceMonitoring (4)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (18)
Microsoft.Extensions.Diagnostics.Testing (3)
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 (16)
Microsoft.Extensions.Hosting.Testing.Tests (2)
Microsoft.Extensions.Http (5)
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>>();
634var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
663await reader.ReadRequestAsync(logRecord, httpRequestMessage, new List<KeyValuePair<string, string>>(), CancellationToken.None);
693await reader.ReadRequestAsync(logRecord, httpRequestMessage, new List<KeyValuePair<string, string>>(), CancellationToken.None);
729await reader.ReadRequestAsync(logRecord, httpRequestMessage, new List<KeyValuePair<string, string>>(), CancellationToken.None);
818await reader.ReadRequestAsync(logRecord, httpRequestMessage, new List<KeyValuePair<string, string>>(), CancellationToken.None);
874var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
Microsoft.Extensions.Http.Resilience (4)
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 (8)
Microsoft.Extensions.Telemetry.Abstractions (4)
Microsoft.Extensions.Telemetry.Abstractions.Tests (1)
Microsoft.Extensions.Telemetry.Tests (17)
Microsoft.Extensions.TimeProvider.Testing.Tests (4)
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 (5)
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 (1)
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 (38)
Microsoft.ML.Tokenizers.Data.Tests (2)
Microsoft.ML.Tokenizers.Tests (36)
TiktokenTests.cs (13)
148Assert.Equal(new List<int>() { 9906, 4435 }, encoded);
160Assert.Equal(new List<Range> { new Range(0, 5), new Range(5, 11) }, offsets);
201Assert.Equal(new List<int>() { 100264, 9906, 4435, 100265 }, encoded);
214Assert.Equal(new List<(int, int)> { (0, 12), (12, 5), (17, 6), (23, 10) }, offsets);
244Assert.Equal(new List<int>() { 100264, 9906, 100265, 4435 }, encoded);
257Assert.Equal(new List<(int, int)> { (0, 12), (12, 5), (17, 10), (27, 6) }, offsets);
279Assert.Equal(new List<int>() { 100264, 9906, 2928, 99834, 4435, 100265 }, encoded);
287Assert.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());
315Assert.Equal(new List<int>() { 199999, 13225, 161181, 5922, 200018 }, encoded);
324Assert.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());
799Assert.Equal(new List<int>() { 100264, 9906, 100266, 4435, 100265, 100349 }, encoded);
837new List<int> { 199998, 200006, 200008, 13225, 5922, 200007, 199999 },
844Assert.Equal(new List<(int, int)> { (0, 15), (15, 24), (24, 35), (35, 40), (40, 46), (46, 53), (53, 66) },
UnigramTests.cs (4)
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>();
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.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.Utils (17)
Microsoft.TemplateSearch.Common (16)
Microsoft.TestPlatform.AdapterUtilities (1)
Microsoft.TestPlatform.Build (4)
Microsoft.TestPlatform.CommunicationUtilities (11)
Microsoft.TestPlatform.CoreUtilities (1)
Microsoft.TestPlatform.CrossPlatEngine (50)
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 (7)
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)
Nats.ApiService (1)
NuGet.Build.Tasks (16)
NuGet.Build.Tasks.Console (6)
NuGet.Build.Tasks.Pack (8)
NuGet.CommandLine.XPlat (75)
NuGet.Commands (138)
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 (12)
Roslyn.Diagnostics.Analyzers (39)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
86var result = new List<ITypeSymbol>
Roslyn.Diagnostics.CSharp.Analyzers (13)
rzc (14)
sdk-tasks (5)
Shared (1)
Shared.Tests (14)
Stress.ApiService (4)
Stress.AppHost (7)
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 (9)
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 (2)
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 (21)
System.Net.HttpListener (17)
System.Net.Mail (4)
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 (35)
System.Text.Json.SourceGeneration (23)
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)
UIAutomationClientSideProviders (4)
UnitTests.Common (1)
vbc (4)
VBCSCompiler (13)
vstest.console (20)
vstest.console.arm64 (20)
WindowsFormsIntegration (2)
22291 references to List
aspire (401)
Mcp\Docs\LlmsTxtParser.cs (15)
85var docBoundaries = FindDocumentBoundaries(content);
91var documents = new List<LlmsDocument>(docBoundaries.Count);
117private static List<int> FindDocumentBoundaries(string content)
119var boundaries = new List<int>();
196var sections = ParseSections(docSpan);
296private static List<LlmsSection> ParseSections(ReadOnlySpan<char> docSpan)
298var sections = new List<LlmsSection>();
301var codeBlocks = FindCodeBlockRegions(docSpan);
304var sectionStarts = FindSectionHeadings(docSpan, codeBlocks);
338private static List<(int Start, int End)> FindCodeBlockRegions(ReadOnlySpan<char> content)
340var regions = new List<(int Start, int End)>();
380private static bool IsInsideCodeBlock(int position, List<(int Start, int End)> codeBlocks)
406private static List<(int Index, int Level, string Heading)> FindSectionHeadings(
408List<(int Start, int End)> codeBlocks)
410var sectionStarts = new List<(int Index, int Level, string Heading)>();
Projects\GuestAppHostProject.cs (11)
152private async Task<List<IntegrationReference>> GetIntegrationReferencesAsync(
158var integrations = config.GetIntegrationReferences(defaultSdkVersion, directory.FullName).ToList();
229List<IntegrationReference> integrations,
246var integrations = await GetIntegrationReferencesAsync(config, directory, cancellationToken);
365var integrations = await GetIntegrationReferencesAsync(config, directory, cancellationToken);
760var integrations = await GetIntegrationReferencesAsync(config, directory, cancellationToken);
1035var updates = await _interactionService.ShowStatusAsync(
1039var packageUpdates = new List<(string PackageId, string CurrentVersion, string NewVersion)>();
1196var integrationsList = integrations.ToList();
1234private static void SaveGenerationHash(string generatedPath, List<IntegrationReference> integrations)
1246private static string ComputeIntegrationsHash(List<IntegrationReference> integrations)
Projects\ProjectUpdater.cs (28)
44var updateStepsByProject = updateSteps
353var updatedSdks = new List<string>();
922var originalSources = ExtractPackageSources(originalDocument);
923var proposedSources = ExtractPackageSources(proposedDocument);
944private static List<PackageSourceInfo> ExtractPackageSources(XmlDocument? document)
946var sources = new List<PackageSourceInfo>();
973private static Dictionary<string, List<string>> ExtractPackageSourceMappings(XmlDocument? document)
975var mappings = new Dictionary<string, List<string>>();
992var patterns = new List<string>();
1014private static List<MappingChange> AnalyzeMappingChanges(Dictionary<string, List<string>> originalMappings, Dictionary<string, List<string>> proposedMappings)
1016var changes = new List<MappingChange>();
1023var originalPatterns = originalMappings.GetValueOrDefault(source, []);
1024var proposedPatterns = proposedMappings.GetValueOrDefault(source, []);
1026var addedPatterns = proposedPatterns.Except(originalPatterns).ToList();
1027var removedPatterns = originalPatterns.Except(proposedPatterns).ToList();
1049if (changes.ProposedMappings.TryGetValue(feed.Key, out var patterns))
1088if (changes.ProposedMappings.TryGetValue(feed.Key, out var currentPatterns))
1090var addedPatterns = mappingChangesBySource.TryGetValue(feed.Key, out var currentMappingChange) ? currentMappingChange.AddedPatterns : new List<string>();
1108internal record MappingChange(string SourceKey, List<string> AddedPatterns, List<string> RemovedPatterns);
1112public List<PackageSourceInfo> AddedFeeds { get; set; } = [];
1113public List<PackageSourceInfo> RemovedFeeds { get; set; } = [];
1114public List<PackageSourceInfo> RetainedFeeds { get; set; } = [];
1115public List<MappingChange> MappingChanges { get; set; } = [];
1116public Dictionary<string, List<string>> OriginalMappings { get; set; } = new();
1117public Dictionary<string, List<string>> ProposedMappings { get; set; } = new();
src\Shared\DashboardUrls.cs (5)
202public static string TelemetryLogsApiUrl(string baseUrl, List<string>? resources = null, params (string key, string? value)[] additionalParams)
215public static string TelemetrySpansApiUrl(string baseUrl, List<string>? resources = null, params (string key, string? value)[] additionalParams)
228public static string TelemetryTracesApiUrl(string baseUrl, List<string>? resources = null, params (string key, string? value)[] additionalParams)
261List<string>? resources,
264var parts = new List<string>();
Templating\DotNetTemplateFactory.cs (11)
275var extraArgs = new List<string>();
286var extraArgs = new List<string>();
295var extraArgs = new List<string>();
305var extraArgs = new List<string>();
315var extraArgs = new List<string>();
322private async Task PromptForDevLocalhostTldOptionAsync(ParseResult result, List<string> extraArgs, CancellationToken cancellationToken)
342private async Task PromptForRedisCacheOptionAsync(ParseResult result, List<string> extraArgs, CancellationToken cancellationToken)
362private async Task PromptForTestFrameworkOptionsAsync(ParseResult result, List<string> extraArgs, CancellationToken cancellationToken)
403private async Task PromptForXUnitVersionOptionsAsync(ParseResult result, List<string> extraArgs, CancellationToken cancellationToken)
680var packagesFromChannels = await interactionService.ShowStatusAsync(TemplatingStrings.SearchingForAvailableTemplateVersions, async () =>
682var results = new List<(NuGetPackage Package, PackageChannel Channel)>();
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 (2)
Aspire.Cli.Tests (263)
Projects\ProjectLocatorTests.cs (11)
388var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(workspace.WorkspaceRoot.FullName, CancellationToken.None).DefaultTimeout();
413var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(workspace.WorkspaceRoot.FullName, CancellationToken.None).DefaultTimeout();
462var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(workspace.WorkspaceRoot.FullName, CancellationToken.None).DefaultTimeout();
489var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(workspace.WorkspaceRoot.FullName, CancellationToken.None).DefaultTimeout();
526var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(workspace.WorkspaceRoot.FullName, CancellationToken.None).DefaultTimeout();
924var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(workspace.WorkspaceRoot.FullName, CancellationToken.None).DefaultTimeout();
968var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(workspace.WorkspaceRoot.FullName, CancellationToken.None).DefaultTimeout();
997var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(workspace.WorkspaceRoot.FullName, CancellationToken.None).DefaultTimeout();
1020var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(workspace.WorkspaceRoot.FullName, CancellationToken.None).DefaultTimeout();
1041var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(workspace.WorkspaceRoot.FullName, CancellationToken.None).DefaultTimeout();
1066var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(workspace.WorkspaceRoot.FullName, CancellationToken.None).DefaultTimeout();
Projects\ProjectUpdaterTests.cs (30)
54var packages = new List<NuGetPackageCli>();
156var packagesAddsExecuted = new List<(FileInfo ProjectFile, string PackageId, string PackageVersion, string? PackageSource, bool NoRestore)>();
165var packages = new List<NuGetPackageCli>();
287var packagesAddsExecuted = new List<(FileInfo ProjectFile, string PackageId, string PackageVersion, string? PackageSource, bool NoRestore)>();
296var packages = new List<NuGetPackageCli>();
440var packagesAddsExecuted = new List<(FileInfo ProjectFile, string PackageId, string PackageVersion, string? PackageSource, bool NoRestore)>();
449var packages = new List<NuGetPackageCli>();
534var sharedProjectUpdates = packagesAddsExecuted.Where(p => p.ProjectFile.FullName == sharedProjectFile.FullName).ToList();
542var appHostUpdates = packagesAddsExecuted.Where(p => p.ProjectFile.FullName == appHostProjectFile.FullName).ToList();
599var updatedFiles = new List<string>();
609var packages = new List<NuGetPackageCli>();
728var packages = new List<NuGetPackageCli>();
830var packages = new List<NuGetPackageCli>();
964var packages = new List<NuGetPackageCli>();
1080var packages = new List<NuGetPackageCli>();
1201var packages = new List<NuGetPackageCli>();
1314var packages = new List<NuGetPackageCli>();
1410var packages = new List<NuGetPackageCli>();
1519var packages = new List<NuGetPackageCli>();
1604var packages = new List<NuGetPackageCli>();
1680var packages = new List<NuGetPackageCli>();
1764var packages = new List<NuGetPackageCli>();
1847var packages = new List<NuGetPackageCli>();
1927var packages = new List<NuGetPackageCli>();
2017var packages = new List<NuGetPackageCli>();
2096var packages = new List<NuGetPackageCli>();
2164var packagesUpdated = new List<string>();
2174var packages = new List<NuGetPackageCli>();
2292var packagesAddsExecuted = new List<(FileInfo ProjectFile, string PackageId, string PackageVersion, string? PackageSource, bool NoRestore)>();
2302var packages = new List<NuGetPackageCli>();
Aspire.Components.Common.TestUtilities (4)
Aspire.Confluent.Kafka (6)
Aspire.Confluent.Kafka.Tests (5)
Aspire.Dashboard (590)
Components\Controls\Chart\ChartBase.cs (27)
29private List<KeyValuePair<string, string>[]>? _renderedDimensionAttributes;
56public required List<OtlpResource> Resources { get; set; }
93var dimensionAttributes = InstrumentViewModel.MatchedDimensions.Select(d => d.Attributes).ToList();
124private (List<ChartTrace> Y, List<DateTimeOffset> X, List<ChartExemplar> Exemplars) CalculateHistogramValues(List<DimensionScope> dimensions, int pointCount, bool tickUpdate, DateTimeOffset inProgressDataTime, string yLabel)
133var xValues = new List<DateTimeOffset>();
134var exemplars = new List<ChartExemplar>();
216internal bool TryCalculateHistogramPoints(List<DimensionScope> dimensions, DateTimeOffset start, DateTimeOffset end, Dictionary<int, ChartTrace> traces, List<ChartExemplar> exemplars)
286private void AddExemplars(List<ChartExemplar> exemplars, MetricValueBase metric)
377private (List<ChartTrace> Y, List<DateTimeOffset> X, List<ChartExemplar> Exemplars) CalculateChartValues(List<DimensionScope> dimensions, int pointCount, bool tickUpdate, DateTimeOffset inProgressDataTime, string yLabel)
380var yValues = new List<double?>();
381var xValues = new List<DateTimeOffset>();
382var exemplars = new List<ChartExemplar>();
437private bool TryCalculatePoint(List<DimensionScope> dimensions, DateTimeOffset start, DateTimeOffset end, List<ChartExemplar> exemplars, out double pointValue)
497List<ChartTrace> traces;
498List<DateTimeOffset> xValues;
499List<ChartExemplar> exemplars;
529protected abstract Task OnChartUpdatedAsync(List<ChartTrace> traces, List<DateTimeOffset> xValues, List<ChartExemplar> exemplars, bool tickUpdate, DateTimeOffset inProgressDataTime, CancellationToken cancellationToken);
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\Assistant\AIHelpers.cs (6)
48internal static string GetResponseGraphJson(List<ResourceViewModel> resources, DashboardOptions options, bool includeDashboardUrl = false, Func<ResourceViewModel, string>? getResourceName = null, bool includeEnvironmentVariables = false)
54internal static string GetResponseGraphJson(List<ResourceViewModel> resources, string? dashboardBaseUrl, bool includeDashboardUrl = false, Func<ResourceViewModel, string>? getResourceName = null, bool includeEnvironmentVariables = false)
137static JsonArray GetResourceRelationshipsJson(List<ResourceViewModel> allResources, ResourceViewModel resourceViewModel, Func<ResourceViewModel, string>? getResourceName)
143var matches = allResources
296List<ChatMessage> chatMessages,
356var list = new List<ChatMessage>();
Model\Assistant\Prompts\KnownChatMessages.cs (5)
46public static ChatMessage CreateInitialMessage(string promptText, string applicationName, List<ResourceViewModel> resources, DashboardOptions dashboardOptions)
180public static ChatMessage CreateErrorStructuredLogsMessage(List<OtlpLogEntry> errorLogs, DashboardOptions options, Func<IOtlpResource, string> getResourceName)
287public static ChatMessage CreateAnalyzeTraceMessage(OtlpTrace trace, List<OtlpLogEntry> traceLogEntries, IEnumerable<IOutgoingPeerResolver> outgoingPeerResolvers, DashboardOptions options, Func<IOtlpResource, string> getResourceName)
314public static ChatMessage CreateAnalyzeSpanMessage(OtlpSpan span, List<OtlpLogEntry> traceLogEntries, IEnumerable<IOutgoingPeerResolver> outgoingPeerResolvers, DashboardOptions options, Func<IOtlpResource, string> getResourceName)
341public static ChatMessage CreateErrorTracesMessage(List<OtlpTrace> errorTraces, IEnumerable<IOutgoingPeerResolver> outgoingPeerResolvers, DashboardOptions options, Func<IOtlpResource, string> getResourceName)
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();
193private static bool AllMessagesHaveNoContent(List<GenAIItemViewModel> messageViewModels)
292var parts = instructionParts.Select(GenAIItemPartViewModel.CreateMessagePart).ToList();
313var logEntries = GetSpanLogEntries(telemetryRepository, viewModel.Span);
318var parts = DeserializeEventContent(index, type.Value, item.Message);
338var parts = DeserializeEventContent(index, type.Value, content);
360var viewParts = parts.Select(GenAIItemPartViewModel.CreateMessagePart).ToList();
406var parts = new List<GenAIItemPartViewModel>
433var parts = new List<GenAIItemPartViewModel>
488private static GenAIItemViewModel CreateMessage(GenAIVisualizerDialogViewModel viewModel, int currentIndex, GenAIItemType type, List<GenAIItemPartViewModel> parts, long? internalId)
501private static List<GenAIItemPartViewModel> DeserializeEventContent(int index, GenAIItemType type, string message)
503var messagePartViewModels = new List<GenAIItemPartViewModel>();
539static void ProcessAssistantEvent(List<GenAIItemPartViewModel> messagePartViewModels, AssistantEvent assistantEvent)
595private static List<OtlpLogEntry> GetSpanLogEntries(TelemetryRepository telemetryRepository, OtlpSpan span)
617var evaluations = new List<EvaluationResultViewModel>();
620var logEntries = GetSpanLogEntries(telemetryRepository, viewModel.Span);
Model\Otlp\SpanWaterfallViewModel.cs (13)
13public required List<SpanWaterfallViewModel> Children { get; init; }
20public required List<SpanLogEntryViewModel> SpanLogs { get; init; }
36public string GetTooltip(List<OtlpResource> allResources)
121public sealed record TraceDetailState(IOutgoingPeerResolver[] OutgoingPeerResolvers, List<string> CollapsedSpanIds, List<OtlpResource> AllResources);
123public static string GetTitle(OtlpSpan span, List<OtlpResource> allResources)
128public static List<SpanWaterfallViewModel> Create(OtlpTrace trace, List<OtlpLogEntry> logs, TraceDetailState state)
130var orderedSpans = new List<SpanWaterfallViewModel>();
136groupedLogs.TryGetValue(span.SpanId, out var spanLogs);
147static SpanWaterfallViewModel CreateViewModel(OtlpSpan span, int depth, bool hidden, TraceDetailState state, List<OtlpLogEntry>? spanLogs, ref int currentSpanLogIndex)
165var spanLogVms = new List<SpanLogEntryViewModel>();
216private static string? ResolveUninstrumentedPeerName(OtlpSpan span, IOutgoingPeerResolver[] outgoingPeerResolvers, List<OtlpResource> allResources)
Model\ResourceMenuBuilder.cs (10)
74List<MenuButtonItem> menuItems,
176private void AddUrlMenuItems(List<MenuButtonItem> menuItems, ResourceViewModel resource)
178var urls = ResourceUrlHelpers.GetUrls(resource, includeInternalUrls: false, includeNonEndpointUrls: true)
191var urlItems = new List<MenuButtonItem>();
233private void AddTelemetryMenuItems(List<MenuButtonItem> menuItems, ResourceViewModel resource, IDictionary<string, ResourceViewModel> resourceByName)
285private void AddCommandMenuItems(List<MenuButtonItem> menuItems, ResourceViewModel resource, EventCallback<CommandViewModel> commandSelected, Func<ResourceViewModel, CommandViewModel, bool> isCommandExecuting)
287var menuCommands = resource.Commands
296var highlightedMenuCommands = menuCommands.Where(c => c.IsHighlighted).ToList();
297var otherMenuCommands = menuCommands.Where(c => !c.IsHighlighted).ToList();
311var 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)
58var allOtlpResources = _telemetryRepository.GetResources();
61List<ResourceViewModel> resourceDetailsResources = [];
79var structuredLogResources = allOtlpResources
83var traceResources = allOtlpResources
87var metricsResources = allOtlpResources
138var lines = logEntries
146private static void AddResources(ExportArchive exportArchive, List<ResourceViewModel> resources)
156private void AddStructuredLogs(ExportArchive exportArchive, List<OtlpResource> resources)
172private void AddTraces(ExportArchive exportArchive, List<OtlpResource> resources)
188private void AddMetrics(ExportArchive exportArchive, List<OtlpResource> resources)
192var instrumentSummaries = _telemetryRepository.GetInstrumentsSummaries(resource.ResourceKey);
200var instrumentsData = new List<OtlpInstrumentData>();
228internal static OtlpTelemetryDataJson ConvertLogsToOtlpJson(List<OtlpLogEntry> logs)
304var allSpans = traces.SelectMany(t => t.Spans).ToList();
308internal static string ConvertSpanToJson(OtlpSpan span, IOutgoingPeerResolver[] outgoingPeerResolvers, List<OtlpLogEntry>? logs = null, bool indent = true)
333internal static string ConvertTraceToJson(OtlpTrace trace, IOutgoingPeerResolver[] outgoingPeerResolvers, List<OtlpLogEntry>? logs = null)
445private static OtlpResourceLogsJson[]? ConvertLogsToResourceLogs(List<OtlpLogEntry>? logs)
472internal static OtlpTelemetryDataJson ConvertMetricsToOtlpJson(OtlpResource resource, List<OtlpInstrumentData> instruments)
534private static OtlpNumberDataPointJson[] ConvertNumberDataPoints(List<DimensionScope> dimensions)
536var dataPoints = new List<OtlpNumberDataPointJson>();
567private static OtlpHistogramDataPointJson[] ConvertHistogramDataPoints(List<DimensionScope> dimensions)
569var dataPoints = new List<OtlpHistogramDataPointJson>();
599private static OtlpExemplarJson[] ConvertExemplars(List<MetricsExemplar> exemplars)
613var attributes = new List<OtlpKeyValueJson>
701var relationships = new List<ResourceRelationshipJson>();
704var 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 (46)
36private readonly List<Subscription> _resourceSubscriptions = new();
37private readonly List<Subscription> _logSubscriptions = new();
38private readonly List<Subscription> _metricsSubscriptions = new();
39private readonly List<Subscription> _tracesSubscriptions = new();
43private List<SpanWatcher>? _spanWatchers;
44private List<LogWatcher>? _logWatchers;
58private readonly List<OtlpSpanLink> _spanLinks = new();
59private readonly List<IDisposable> _peerResolverSubscriptions = new();
69internal List<OtlpSpanLink> SpanLinks => _spanLinks;
70internal List<Subscription> TracesSubscriptions => _tracesSubscriptions;
104public List<OtlpResource> GetResources(bool includeUninstrumentedPeers = false)
109public List<OtlpResource> GetResourcesByName(string name, bool includeUninstrumentedPeers = false)
114private List<OtlpResource> GetResourcesCore(bool includeUninstrumentedPeers, string? name)
126var resources = results.OrderBy(a => a.ResourceKey).ToList();
154public List<OtlpResource> GetResources(ResourceKey key, bool includeUninstrumentedPeers = false)
200var resources = GetResources(key.Value);
279private Subscription AddSubscription(string name, ResourceKey? resourceKey, SubscriptionType subscriptionType, Func<Task> callback, List<Subscription> subscriptions)
298private void RaiseSubscriptionChanged(List<Subscription> subscriptions)
340List<OtlpLogEntry>? addedLogs = null;
423List<OtlpResource>? resources = null;
485public List<OtlpLogEntry> GetLogsForSpan(string traceId, string spanId)
516public List<OtlpLogEntry> GetLogsForTrace(string traceId)
536public List<string> GetLogPropertyKeys(ResourceKey? resourceKey)
538List<OtlpResource>? resources = null;
563public List<string> GetTracePropertyKeys(ResourceKey? resourceKey)
565List<OtlpResource>? resources = null;
592List<OtlpResource>? resources = null;
624var filters = context.Filters.GetEnabledFilters().ToList();
671private static bool MatchResources(ResourceKey resourceKey, List<OtlpResource> resources)
684private static bool MatchResources(OtlpTrace t, List<OtlpResource> resources)
736var allOtlpResources = GetResources();
782List<OtlpResource>? resources = null;
825List<OtlpResource>? resources = null;
877List<OtlpResource> resources;
1139List<OtlpSpan>? addedSpans = null;
1386var currentSpanLinks = _spanLinks.ToList();
1426var events = new List<OtlpSpanEvent>();
1428var links = new List<OtlpSpanLink>();
1477public List<OtlpInstrumentSummary> GetInstrumentsSummaries(ResourceKey key)
1479var resources = GetResources(key);
1490var allResourceSummaries = resources
1502var resources = GetResources(request.ResourceKey);
1503var instruments = resources
1525var allDimensions = new List<DimensionScope>();
1526var allKnownAttributes = new Dictionary<string, List<string?>>();
1535ref var values = ref CollectionsMarshal.GetValueRefOrAddDefault(allKnownAttributes, knownAttributeValues.Key, out _);
src\Shared\DashboardUrls.cs (5)
202public static string TelemetryLogsApiUrl(string baseUrl, List<string>? resources = null, params (string key, string? value)[] additionalParams)
215public static string TelemetrySpansApiUrl(string baseUrl, List<string>? resources = null, params (string key, string? value)[] additionalParams)
228public static string TelemetryTracesApiUrl(string baseUrl, List<string>? resources = null, params (string key, string? value)[] additionalParams)
261List<string>? resources,
264var parts = new List<string>();
Aspire.Dashboard.Components.Tests (36)
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 (190)
Model\AIAssistant\AIHelpersTests.cs (9)
17var items = new List<int> { 1, 2, 3, 4, 5 };
31var items = new List<int> { 1, 2, 3, 4, 5 };
45var items = new List<int> { 1, 2, 3, 4, 5 };
59var items = new List<string> { "one", "two", "three" };
73var items = new List<string> { "one", "two", "three" };
101var values = new List<string>();
119var values = new List<string>();
137var values = new List<string>();
162var values = new List<string>();
Model\SpanWaterfallViewModelTests.cs (5)
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([], [], []));
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.EndToEnd.Tests (2)
Aspire.Hosting (272)
Dcp\DcpExecutor.cs (39)
76private readonly List<AppResource> _appResources = [];
299var tasks = new List<Task>();
663var logs = new List<LogEntry>();
851List<Service> needAddressAllocated = new(services.Where(s => !s.HasCompleteAddress));
976var tasks = new List<Task>();
1253List<HostResourceWithEndpoints> hostDependencies = containerDependencies.Select(AsHostResourceWithEndpoints).OfType<HostResourceWithEndpoints>().ToList();
1406var executablesList = modelExecutableResources.ToList(); // Materialize to check count
1471var projectArgs = new List<string>();
1586var tasks = new List<Task>();
1587var groups = executables.GroupBy(e => e.ModelResource).ToList();
1595var groupList = group.ToList();
1743if (er.DcpResource.TryGetAnnotationAsObjectList<string>(CustomResource.ResourceProjectArgsAnnotation, out var projectArgs) && projectArgs.Count > 0)
1761var dirs = new List<string> { certificatesOutputPath };
1858var launchArgs = BuildLaunchArgs(er, spec, configuration.Arguments);
1859var executableArgs = launchArgs.Where(a => a.Executable).Select(a => a.Value).ToList();
1860var displayArgs = launchArgs.Where(a => a.Display).ToList();
1906private static List<(string Value, bool IsSensitive, bool Executable, bool Display)> BuildLaunchArgs(RenderedModelResource er, ExecutableSpec spec, IEnumerable<(string Value, bool IsSensitive)> appHostArgs)
1912var launchArgs = new List<(string Value, bool IsSensitive, bool Executable, bool Display)>();
1926var launchProfileArgs = GetLaunchProfileArgs(project.GetEffectiveLaunchProfile()?.LaunchProfile);
1955private static List<string> GetLaunchProfileArgs(LaunchProfile? launchProfile)
2092var tasks = new List<Task>();
2151var bundlePaths = ContainerCertificatePathsAnnotation.DefaultCertificateBundlePaths.ToList();
2152var certificateDirsPaths = ContainerCertificatePathsAnnotation.DefaultCertificateDirectoriesPaths.ToList();
2168var dirs = new List<string> { certificatesDestination + "/certs" };
2194List<ContainerFileSystemEntry> customBundleFiles = new();
2260var createFiles = await BuildCreateFilesAsync(
2285var certificateFiles = new List<ContainerFileSystemEntry>()
2372var dcpBuildArgs = new List<EnvVar>();
2402var dcpBuildSecrets = new List<BuildContextSecret>();
2752private async Task<List<ContainerCreateFileSystem>> BuildCreateFilesAsync(BuildCreateFilesContext context, CancellationToken cancellationToken)
2754var createFiles = new List<ContainerCreateFileSystem>();
2788private async Task<(List<string>, bool)> BuildRunArgsAsync(ILogger resourceLogger, IResource modelResource, CancellationToken cancellationToken)
2791var runArgs = new List<string>();
2972private static List<ContainerPortSpec> BuildContainerPorts(RenderedModelResource cr)
2974var ports = new List<ContainerPortSpec>();
3011private static List<VolumeMount> BuildContainerMounts(IResource container)
3013var volumeMounts = new List<VolumeMount>();
3082List<RenderedModelResource> regular = new();
3083List<RenderedModelResource> tunnelDependent = new();
Pipelines\DistributedApplicationPipeline.cs (31)
26private readonly List<PipelineStep> _steps = [];
27private readonly List<Func<PipelineConfigurationContext, Task>> _configurationCallbacks = [];
30private List<PipelineStep>? _lastResolvedSteps;
116var computeResources = context.Model.Resources
260var stepsToAnalyze = _lastResolvedSteps ?? throw new InvalidOperationException(
362var annotationSteps = await CollectStepsFromAnnotationsAsync(context).ConfigureAwait(false);
363var allSteps = _steps.Concat(annotationSteps).ToList();
394List<PipelineStep> steps,
417private static (List<PipelineStep> StepsToExecute, Dictionary<string, PipelineStep> StepsByName) FilterStepsForExecution(
418List<PipelineStep> allSteps,
440var stepsToExecute = ComputeTransitiveDependencies(targetStep, allStepsByName);
446private static List<PipelineStep> ComputeTransitiveDependencies(
451var result = new List<PipelineStep>();
479private static async Task<List<PipelineStep>> CollectStepsFromAnnotationsAsync(PipelineContext context)
481var steps = new List<PipelineStep>();
510List<PipelineStep> allSteps)
513var callbacks = new List<Func<PipelineConfigurationContext, Task>>();
584List<PipelineStep> steps,
626var failedDeps = step.DependsOnSteps
711var failures = allStepTasks
720var failedStepNames = new List<string>();
780List<PipelineStep> steps,
864List<PipelineStep> allSteps,
888var executionOrder = GetTopologicalOrder(allSteps);
978var orphanedSteps = allSteps.Where(step =>
1023var stepsForTarget = ComputeTransitiveDependencies(targetStep, allStepsByName);
1044var stepsAtLevel = stepsByLevel[level];
1106List<PipelineStep> steps,
1153private static List<PipelineStep> GetTopologicalOrder(List<PipelineStep> steps)
1157var result = new List<PipelineStep>();
Aspire.Hosting.Analyzers (1)
Aspire.Hosting.Azure (41)
Provisioning\Internal\BaseProvisioningContextProvider.cs (14)
201protected async Task<(List<KeyValuePair<string, string>>? tenantOptions, bool fetchSucceeded)> TryGetTenantsAsync(CancellationToken cancellationToken)
203List<KeyValuePair<string, string>>? tenantOptions = null;
211var tenantList = availableTenants.ToList();
250protected async Task<(List<KeyValuePair<string, string>>? subscriptionOptions, bool fetchSucceeded)> TryGetSubscriptionsAsync(string? tenantId, CancellationToken cancellationToken)
252List<KeyValuePair<string, string>>? subscriptionOptions = null;
260var subscriptionList = availableSubscriptions.ToList();
278protected async Task<(List<KeyValuePair<string, string>>? subscriptionOptions, bool fetchSucceeded)> TryGetSubscriptionsAsync(CancellationToken cancellationToken)
283protected async Task<(List<(string Name, string Location)>? resourceGroupOptions, bool fetchSucceeded)> TryGetResourceGroupsWithLocationAsync(string subscriptionId, CancellationToken cancellationToken)
285List<(string Name, string Location)>? resourceGroupOptions = null;
295var resourceGroupList = availableResourceGroups.ToList();
316protected async Task<(List<KeyValuePair<string, string>> locationOptions, bool fetchSucceeded)> TryGetLocationsAsync(string subscriptionId, CancellationToken cancellationToken)
318List<KeyValuePair<string, string>>? locationOptions = null;
329var locationList = availableLocations.ToList();
356private static List<KeyValuePair<string, string>> GetStaticAzureLocations()
Aspire.Hosting.Azure.AppContainers (6)
Aspire.Hosting.Azure.AppService (6)
Aspire.Hosting.Azure.CognitiveServices (2)
Aspire.Hosting.Azure.ContainerRegistry (2)
Aspire.Hosting.Azure.CosmosDB (5)
Aspire.Hosting.Azure.EventHubs (2)
Aspire.Hosting.Azure.Functions (5)
Aspire.Hosting.Azure.KeyVault (1)
Aspire.Hosting.Azure.Kusto (1)
Aspire.Hosting.Azure.Kusto.Tests (7)
Aspire.Hosting.Azure.Network (4)
Aspire.Hosting.Azure.ServiceBus (4)
Aspire.Hosting.Azure.SignalR (1)
Aspire.Hosting.Azure.Sql (4)
Aspire.Hosting.Azure.Storage (3)
Aspire.Hosting.Azure.Tests (57)
Aspire.Hosting.Azure.WebPubSub (1)
Aspire.Hosting.CodeGeneration.Go (10)
Aspire.Hosting.CodeGeneration.Go.Tests (18)
Aspire.Hosting.CodeGeneration.Java (7)
Aspire.Hosting.CodeGeneration.Java.Tests (18)
Aspire.Hosting.CodeGeneration.Python (8)
Aspire.Hosting.CodeGeneration.Python.Tests (18)
Aspire.Hosting.CodeGeneration.Rust (7)
Aspire.Hosting.CodeGeneration.Rust.Tests (18)
Aspire.Hosting.CodeGeneration.TypeScript (73)
AtsTypeScriptCodeGenerator.cs (73)
18public required List<AtsCapabilityInfo> Capabilities { get; init; }
115private readonly Dictionary<string, List<AtsParameterInfo>> _optionsInterfacesToGenerate = new(StringComparer.Ordinal);
413var allBuilders = CreateBuilderModels(capabilities);
414var entryPoints = GetEntryPointCapabilities(capabilities);
417var builders = allBuilders;
420var clientMethods = entryPoints
483var resourceBuilders = builders.Where(b => b.TargetType?.IsResourceBuilder == true).ToList();
484var typeClasses = builders.Where(b => b.TargetType?.IsResourceBuilder != true).ToList();
724private static (List<AtsParameterInfo> Required, List<AtsParameterInfo> Optional) SeparateParameters(
727var required = new List<AtsParameterInfo>();
728var optional = new List<AtsParameterInfo>();
751private void RegisterOptionsInterface(string capabilityId, string methodName, List<AtsParameterInfo> optionalParams)
761if (_optionsInterfacesToGenerate.TryGetValue(baseInterfaceName, out var existingParams))
782if (!_optionsInterfacesToGenerate.TryGetValue(suffixedName, out var suffixedParams))
820private static bool AreOptionsCompatible(List<AtsParameterInfo> existing, List<AtsParameterInfo> candidate)
941var getters = builder.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertyGetter).ToList();
942var setters = builder.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertySetter).ToList();
945var properties = GroupPropertiesByName(getters, setters);
980var publicParamDefs = new List<string>();
993var internalParamDefs = new List<string>();
1048var callbackParams2 = capability.Parameters.Where(p => p.IsCallback).ToList();
1085var callbackParams = capability.Parameters.Where(p => p.IsCallback).ToList();
1144List<AtsParameterInfo> requiredParams,
1145List<AtsParameterInfo> optionalParams)
1148var requiredArgs = new List<string> { $"{targetParamName}: this._handle" };
1201var publicParamDefs = new List<string>();
1214var forwardArgs = new List<string>();
1276private void GenerateAspireClient(List<AtsCapabilityInfo> entryPoints)
1300var paramDefs = new List<string> { "client: AspireClientRpc" };
1334var requiredArgs = requiredParams
1359var requiredArgs = requiredParams
1397var paramList = new List<string>();
1508var callArgs = new List<string>();
1663private void GenerateHandleWrapperRegistrations(List<BuilderModel> typeClasses, List<BuilderModel> resourceBuilders)
1708var getters = model.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertyGetter).ToList();
1709var setters = model.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertySetter).ToList();
1710var contextMethods = model.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.InstanceMethod).ToList();
1711var otherMethods = model.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.Method).ToList();
1714var allMethods = contextMethods.Concat(otherMethods).ToList();
1727var properties = GroupPropertiesByName(getters, setters);
1769private static List<(string PropertyName, AtsCapabilityInfo? Getter, AtsCapabilityInfo? Setter)> GroupPropertiesByName(
1770List<AtsCapabilityInfo> getters, List<AtsCapabilityInfo> setters)
1772var result = new List<(string PropertyName, AtsCapabilityInfo? Getter, AtsCapabilityInfo? Setter)>();
2046var userParams = method.Parameters.Where(p => p.Name != targetParamName).ToList();
2054var paramDefs = new List<string>();
2089var requiredArgs = new List<string> { $"{targetParamName}: this._handle" };
2137var userParams = capability.Parameters.Where(p => p.Name != firstParamName).ToList();
2145var paramDefs = new List<string>();
2178var requiredArgs = new List<string> { $"{firstParamName}: this._handle" };
2222var userParams = capability.Parameters.Where(p => p.Name != targetParamName).ToList();
2230var publicParamDefs = new List<string>();
2243var internalParamDefs = new List<string>();
2277var callbackParams = userParams.Where(p => p.IsCallback).ToList();
2320var callbackParams = userParams.Where(p => p.IsCallback).ToList();
2367var callbackParams = userParams.Where(p => p.IsCallback).ToList();
2399private void GenerateTypeClassThenableWrapper(BuilderModel model, List<AtsCapabilityInfo> methods)
2428var userParams = capability.Parameters.Where(p => p.Name != targetParamName).ToList();
2436var publicParamDefs = new List<string>();
2449var forwardArgs = new List<string>();
2519private static List<BuilderModel> CreateBuilderModels(IReadOnlyList<AtsCapabilityInfo> capabilities)
2524var capabilitiesByTypeId = new Dictionary<string, List<AtsCapabilityInfo>>();
2530var interfaceCapabilities = new Dictionary<string, List<AtsCapabilityInfo>>();
2562if (!capabilitiesByTypeId.TryGetValue(expandedType.TypeId, out var list))
2575if (!interfaceCapabilities.TryGetValue(targetTypeId, out var interfaceList))
2588if (!capabilitiesByTypeId.TryGetValue(targetTypeId, out var list))
2600var builders = new List<BuilderModel>();
2609var uniqueCapabilities = typeCapabilities
2642var uniqueCapabilities = caps
2773private static List<AtsCapabilityInfo> GetEntryPointCapabilities(IReadOnlyList<AtsCapabilityInfo> capabilities)
Aspire.Hosting.CodeGeneration.TypeScript.Tests (49)
Aspire.Hosting.Containers.Tests (8)
Aspire.Hosting.DevTunnels (9)
Aspire.Hosting.Docker (40)
Aspire.Hosting.Docker.Tests (17)
Aspire.Hosting.DotnetTool.Tests (10)
Aspire.Hosting.Foundry (6)
Aspire.Hosting.Foundry.Tests (1)
Aspire.Hosting.Garnet (1)
Aspire.Hosting.Garnet.Tests (1)
Aspire.Hosting.GitHub.Models.Tests (1)
Aspire.Hosting.Integration.Analyzers (2)
Aspire.Hosting.JavaScript (3)
Aspire.Hosting.JavaScript.Tests (20)
AddViteAppTests.cs (8)
247var args = new List<object>();
272var args = new List<object>();
308var args = new List<object> { "run", "dev", "--", "--port", "3000", "--config", "vite.config.js" };
368var args = new List<object> { "run", "dev", "--", "--port", "3000" };
419var args = new List<object> { "run", "dev", "--", "--port", "3000" };
472var args = new List<object> { "run", "dev", "--", "--port", "3000" };
531var args = new List<object> { "run", "dev", "--", "--port", "3000" };
606var args = new List<object> { "run", "dev", "--", "--port", "3000" };
Aspire.Hosting.Kubernetes (100)
Aspire.Hosting.Maui (6)
Aspire.Hosting.Maui.Tests (2)
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)
173var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(pythonProjectResource, TestServiceProvider.Instance);
212var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(pythonProjectResource, TestServiceProvider.Instance);
255var 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);
1002var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(pythonProjectResource, TestServiceProvider.Instance);
1035var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(pythonProjectResource, TestServiceProvider.Instance);
1069var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(pythonProjectResource, TestServiceProvider.Instance);
1089var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(resource, TestServiceProvider.Instance);
1113var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(resource, TestServiceProvider.Instance);
1135var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(resource, TestServiceProvider.Instance);
1167var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(resource, TestServiceProvider.Instance);
1412var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(resource, app.Services);
1450var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(resource, app.Services);
1490var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(resource, app.Services);
1527var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(resource, app.Services);
1560var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(resource, TestServiceProvider.Instance);
2354var waitAnnotations = pythonAppResource.Annotations.OfType<WaitAnnotation>().ToList();
2387var waitAnnotations = pythonAppResource.Annotations.OfType<WaitAnnotation>().ToList();
Aspire.Hosting.RabbitMQ (1)
Aspire.Hosting.Redis (2)
Aspire.Hosting.Redis.Tests (3)
Aspire.Hosting.RemoteHost (87)
AtsCapabilityScanner.cs (63)
23public required List<AtsCapabilityInfo> Capabilities { get; init; }
26public required List<AtsTypeInfo> HandleTypes { get; init; }
29public List<AtsDtoTypeInfo> DtoTypes { get; init; } = [];
32public List<AtsEnumTypeInfo> EnumTypes { get; init; } = [];
35public List<AtsDiagnostic> Diagnostics { get; init; } = [];
90var values = Enum.GetNames(enumType).ToList();
101public List<AtsEnumTypeInfo> GetEnumTypes() => [.. _enums.Values];
122var allCapabilities = new List<AtsCapabilityInfo>();
123var allTypeInfos = new List<AtsTypeInfo>();
124var allDtoTypes = new List<AtsDtoTypeInfo>();
125var allEnumTypes = new List<AtsEnumTypeInfo>();
126var allDiagnostics = new List<AtsDiagnostic>();
262var capabilities = new List<AtsCapabilityInfo>();
263var typeInfos = new List<AtsTypeInfo>();
264var dtoTypes = new List<AtsDtoTypeInfo>();
265var diagnostics = new List<AtsDiagnostic>();
442var implementedInterfaces = !isInterface
445var baseTypeHierarchy = !isInterface
465var enumTypes = CollectEnumTypes(capabilities, dtoTypes);
484private static List<AtsEnumTypeInfo> CollectEnumTypes(
485List<AtsCapabilityInfo> capabilities,
486List<AtsDtoTypeInfo> dtoTypes)
519var result = new List<AtsEnumTypeInfo>();
565List<AtsCapabilityInfo> capabilities,
628List<AtsCapabilityInfo> capabilities,
629List<AtsDiagnostic> diagnostics)
736List<AtsCapabilityInfo> capabilities,
737List<AtsTypeInfo> typeInfos)
755if (typeToCompatibleTypes.TryGetValue(originalTarget, out var compatibleTypes))
779private static Dictionary<string, List<AtsTypeRef>> BuildTypeCompatibilityMap(
780List<AtsTypeInfo> typeInfos)
782var typeToCompatibleTypes = new Dictionary<string, List<AtsTypeRef>>();
824Dictionary<string, List<AtsTypeRef>> map,
828if (!map.TryGetValue(key, out var list))
842private static void FilterMethodNameCollisions(List<AtsCapabilityInfo> capabilities, List<AtsDiagnostic> diagnostics)
844var capabilitiesWithTargets = capabilities
849var collisionGroups = capabilitiesWithTargets
860var collidingMethodNames = new Dictionary<string, List<string>>();
865var capIds = g.Select(x => x.Capability.CapabilityId).Distinct().ToList();
867if (!collidingMethodNames.TryGetValue(methodName, out var existingIds))
907public static List<AtsCapabilityInfo> ScanCapabilities(
924var implementedInterfaces = !type.IsInterface
930var baseTypeHierarchy = !type.IsInterface
961var properties = new List<AtsDtoPropertyInfo>();
1006public required List<AtsCapabilityInfo> Capabilities { get; init; }
1011public List<AtsDiagnostic> Diagnostics { get; init; } = [];
1029var capabilities = new List<AtsCapabilityInfo>();
1030var diagnostics = new List<AtsDiagnostic>();
1325var paramInfos = new List<AtsParameterInfo>
1437var parameters = method.GetParameters().ToList();
1466var paramInfos = new List<AtsParameterInfo>();
1602var parameters = new List<AtsCallbackParameterInfo>();
1663var genericArgs = delegateType.GetGenericArguments().ToList();
1674var parameters = new List<AtsCallbackParameterInfo>();
1695var parameters = new List<AtsCallbackParameterInfo>();
1834if (genericDef == typeof(List<>) || genericDef == typeof(IList<>))
2132if (genericDef == typeof(List<>) || genericDef == typeof(IList<>))
2328private static List<AtsTypeRef> CollectAllInterfaces(Type type)
2330var allInterfaces = new List<AtsTypeRef>();
2352private static List<AtsTypeRef> CollectBaseTypeHierarchy(Type type)
2354var baseTypes = new List<AtsTypeRef>();
2617var unionTypes = new List<AtsTypeRef>();
Aspire.Hosting.RemoteHost.Tests (9)
Aspire.Hosting.SqlServer (1)
Aspire.Hosting.SqlServer.Tests (1)
Aspire.Hosting.Testing.Tests (7)
Aspire.Hosting.Tests (258)
Dcp\DcpExecutorTests.cs (51)
68var startingEvents = new List<OnResourceStartingContext>();
90var executables = kubernetesService.CreatedResources.OfType<Executable>().ToList();
158var executables = kubernetesService.CreatedResources.OfType<Executable>().ToList();
162var callArgs = executionType == ExecutionType.IDE ? exe.Spec.Args : exe.Spec.Args![^(expectedArgs?.Length ?? 0)..];
165Assert.True(exe.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var argAnnotations));
193var executables = kubernetesService.CreatedResources.OfType<Executable>().ToList();
201Assert.True(exe.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var argAnnotations));
236var executables = kubernetesService.CreatedResources.OfType<Executable>().ToList();
244Assert.True(exe1.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var argAnnotations1));
262Assert.True(exe2.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var argAnnotations2));
281Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
313Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
345Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
378Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
435Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
469Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
503Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
589var executables = kubernetesService.CreatedResources.OfType<Executable>().ToList();
902var exes = kubernetesService.CreatedResources.OfType<Executable>().ToList();
907Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
947var exes = kubernetesService.CreatedResources.OfType<Executable>().ToList();
952Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
985Assert.True(dcpCtr.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
1020Assert.True(dcpCtr.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
1101Assert.True(dcpCtr.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
1137Assert.True(dcpCtr.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
1174Assert.True(dcpCtr.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
1211Assert.True(dcpCtr.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList));
1384var serviceProducers = JsonSerializer.Deserialize<List<ServiceProducerAnnotation>>(annotations[CustomResource.ServiceProducerAnnotation]);
1718List<Executable> dcpExes = [];
1729Assert.True(debuggableExe.TryGetAnnotationAsObjectList<ExecutableLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs1));
1768var dcpExes = kubernetesService.CreatedResources.OfType<Executable>().ToList();
1805var dcpExes = kubernetesService.CreatedResources.OfType<Executable>().ToList();
1846var dcpExes = kubernetesService.CreatedResources.OfType<Executable>().ToList();
1882var dcpExes = kubernetesService.CreatedResources.OfType<Executable>().ToList();
1924var dcpExes = kubernetesService.CreatedResources.OfType<Executable>().ToList();
1966var dcpExes = kubernetesService.CreatedResources.OfType<Executable>().ToList();
2008var dcpExes = kubernetesService.CreatedResources.OfType<Executable>().ToList();
2045var dcpExes = kubernetesService.CreatedResources.OfType<Executable>().ToList();
2082var dcpExes = kubernetesService.CreatedResources.OfType<Executable>().ToList();
2125var dcpExes = kubernetesService.CreatedResources.OfType<Executable>().ToList();
2205var dcpExes = kubernetesService.CreatedResources.OfType<Executable>().ToList();
2266var svcs = kubernetesService.CreatedResources
2328var commandAnnotations = resource.Annotations.OfType<ResourceCommandAnnotation>().ToList();
2337var commandAnnotations = resource.Annotations.OfType<ResourceCommandAnnotation>().ToList();
2375List<Executable> dcpExes = [];
2424List<Executable> dcpExes = [];
2437Assert.True(exe.TryGetAnnotationAsObjectList<ExecutableLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs));
2479List<Executable> dcpExes = [];
2528List<Executable> dcpExes = [];
Aspire.Hosting.Valkey (1)
Aspire.Hosting.Valkey.Tests (1)
Aspire.Hosting.Yarp (7)
Aspire.Hosting.Yarp.Tests (2)
Aspire.Microsoft.Azure.Cosmos (3)
Aspire.Microsoft.Azure.StackExchangeRedis.Tests (1)
Aspire.Microsoft.EntityFrameworkCore.Cosmos (3)
Aspire.NATS.Net.Tests (1)
Aspire.Oracle.EntityFrameworkCore.Tests (1)
Aspire.Playground.Tests (13)
Aspire.RabbitMQ.Client (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.TestUtilities (1)
Aspire.TypeSystem (3)
aspire-managed (19)
AzureAppService.ApiService (1)
AzureContainerApps.ApiService (1)
AzureSearch.ApiService (2)
AzureStorageEndToEnd.ApiService (2)
AzureVirtualNetworkEndToEnd.ApiService (2)
BasketService (3)
BicepSample.ApiService (8)
blazor-gateway (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 (301)
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)
149List<PackInfo> packsToInstall = [];
190var tempDirsToDelete = new List<string>();
418Dictionary<(string workloadSetVersion, SdkFeatureBand workloadSetFeatureBand), List<SdkFeatureBand>> workloadSetInstallRecords = GetAllWorkloadSetInstallRecords();
424List<SdkFeatureBand> referencingFeatureBands;
430List<SdkFeatureBand> featureBandsToRemove = [];
466Dictionary<(ManifestId manifestId, ManifestVersion manifestVersion, SdkFeatureBand manifestFeatureBand), List<SdkFeatureBand>> manifestInstallRecords = GetAllManifestInstallRecords();
469var referencingFeatureBands = manifestInstallRecords[(manifestId, manifestVersion, manifestFeatureBand)];
470List<SdkFeatureBand> featureBandsToRemove = [];
503Dictionary<(WorkloadPackId packId, string packVersion), List<SdkFeatureBand>> packInstallRecords = GetAllPackInstallRecords();
506var referencingFeatureBands = packInstallRecords[(packId, packVersion)];
507List<SdkFeatureBand> featureBandsToRemove = [];
745private Dictionary<(string workloadSetVersion, SdkFeatureBand workloadSetFeatureBand), List<SdkFeatureBand>> GetAllWorkloadSetInstallRecords()
747Dictionary<(string workloadSetVersion, SdkFeatureBand workloadSetFeatureBand), List<SdkFeatureBand>> records = [];
765if (!records.TryGetValue((workloadSetVersion, workloadSetFeatureBand), out var referencingFeatureBands))
796private Dictionary<(ManifestId manifestId, ManifestVersion manifestVersion, SdkFeatureBand manifestFeatureBand), List<SdkFeatureBand>> GetAllManifestInstallRecords()
798Dictionary<(ManifestId manifestId, ManifestVersion manifestVersion, SdkFeatureBand manifestFeatureBand), List<SdkFeatureBand>> records = [];
820if (!records.TryGetValue((manifestId, manifestVersion, manifestFeatureBand), out var referencingFeatureBands))
838private Dictionary<(WorkloadPackId packId, string packVersion), List<SdkFeatureBand>> GetAllPackInstallRecords()
840Dictionary<(WorkloadPackId packId, string packVersion), List<SdkFeatureBand>> records = [];
859if (!records.TryGetValue((packId, packVersion), out var referencingFeatureBands))
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.10.0-1.26359.119\contentFiles\cs\net11.0\BuildServerConnection.cs (1)
72List<string> arguments,
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.xmlserializer (17)
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-user-jwts (30)
dotnet-user-secrets (12)
dotnet-watch (13)
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)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
86var result = new List<ITypeSymbol>
GetDocument.Insider (11)
HelixTestTasks (5)
ILAssembler (31)
ilc (18)
ILCompiler.Build.Tasks (1)
ILCompiler.Compiler (358)
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<InterfaceDispatchCellNode> _interfaceDispatchCells = new List<InterfaceDispatchCellNode>();
88private List<(DehydratableObjectNode Node, ObjectNode.ObjectData Data)> _dehydratableData = new List<(DehydratableObjectNode Node, ObjectNode.ObjectData data)>();
587public virtual void GetConditionalDependenciesDueToEETypePresence(ref CombinedDependencyList dependencies, NodeFactory factory, TypeDesc type, bool allocated)
628public virtual void GetDependenciesDueToDelegateCreation(ref CombinedDependencyList dependencies, NodeFactory factory, TypeDesc delegateType, MethodDesc target)
637public virtual void GetDependenciesForOverridingMethod(ref CombinedDependencyList dependencies, NodeFactory factory, MethodDesc decl, MethodDesc impl)
657public virtual void GetConditionalDependenciesDueToMethodCodePresence(ref CombinedDependencyList dependencies, NodeFactory factory, MethodDesc method)
721out List<MetadataMapping<MetadataType>> typeMappings,
722out List<MetadataMapping<MethodDesc>> methodMappings,
724out List<MetadataMapping<FieldDesc>> fieldMappings,
726out List<StackTraceMapping> stackTraceMapping,
727out List<ReflectionStackTraceMapping> reflectionStackTraceMapping);
733out List<MetadataMapping<MetadataType>> typeMappings,
734out List<MetadataMapping<MethodDesc>> methodMappings,
736out List<MetadataMapping<FieldDesc>> fieldMappings,
738out List<StackTraceMapping> stackTraceMapping,
739out List<ReflectionStackTraceMapping> reflectionBasedStackTraceMapping) where TPolicy : struct, IMetadataPolicy
758var stackTraceRecords = new List<StackTraceRecordData>();
947List<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)
580public override void GetDependenciesDueToDelegateCreation(ref CombinedDependencyList dependencies, NodeFactory factory, TypeDesc delegateType, MethodDesc target)
632public override void GetDependenciesForOverridingMethod(ref CombinedDependencyList dependencies, NodeFactory factory, MethodDesc decl, MethodDesc impl)
699public 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 (248)
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\WasmObjectWriter.cs (14)
249private List<WasmSection> _sections = new();
637List<ushort> entries = kv.Value;
700if (_resolvableRelocations.TryGetValue(index, out List<SymbolicRelocation> relocations) &&
740if (_resolvableRelocations.TryGetValue(section.Index, out List<SymbolicRelocation> relocations))
776Dictionary<int, List<SymbolicRelocation>> _resolvableRelocations = new();
777SortedDictionary<uint, List<ushort>> _baseRelocMap = new();
784private readonly List<PendingBaseReloc> _pendingBaseRelocs = new();
786private protected override void EmitRelocations(int sectionIndex, List<SymbolicRelocation> relocationList)
790if (!_resolvableRelocations.TryGetValue(sectionIndex, out List<SymbolicRelocation> resolvable))
833if (!_baseRelocMap.TryGetValue(pageRva, out List<ushort> list))
850private unsafe void ResolveRelocations(int sectionIndex, MemoryStream sectionStream, List<SymbolicRelocation> relocs, long sectionStart = 0)
1267private List<WasmDataSegment> _segments;
1268public List<WasmDataSegment> Segments => _segments;
1270public WasmDataSection(List<WasmDataSegment> segments, Utf8String name, int contentAlign = 1)
ILCompiler.RyuJit (43)
ILCompiler.TypeSystem (12)
illink (193)
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);
1624var skippedItems = new List<AttributeProviderPair>();
1689var skippedItems = new List<(AttributeProviderPair, DependencyInfo, MessageOrigin)>();
2611var ifaces = Annotations.GetRecursiveInterfaces(type);
2624protected virtual bool ShouldMarkInterfaceImplementationList(TypeDefinition type, List<InterfaceImplementation> ifaces, TypeReference ifaceType)
2685var base_list = Annotations.GetBaseMethods(method);
3092var list = Annotations.GetPreservedMethods(type);
3102var list = Annotations.GetPreservedMethods(method);
3573var ifaces = Annotations.GetRecursiveInterfaces(method.DeclaringType);
3655var base_methods = Annotations.GetBaseMethods(method);
4092void MarkInterfaceImplementationList(List<InterfaceImplementation> ifaces, MessageOrigin origin, DependencyInfo? reason = null)
4131if (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 (16)
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!;
31Dictionary<TypeReference, List<CustomAttributeWithOrigin>> _pendingAssemblyTargets = null!;
66if (_pendingExternalTypeMapEntries.Remove(typeMapGroup, out List<CustomAttributeWithOrigin>? pendingEntries))
73if (_pendingAssemblyTargets.Remove(typeMapGroup, out List<CustomAttributeWithOrigin>? assemblyTargets))
87if (_pendingProxyTypeMapEntries.Remove(typeMapGroup, out List<CustomAttributeWithOrigin>? pendingEntries))
94if (_pendingAssemblyTargets.Remove(typeMapGroup, out List<CustomAttributeWithOrigin>? assemblyTargets))
123Dictionary<TypeDefinition, Dictionary<TypeReference, List<CustomAttributeWithOrigin>>> unmarkedTypeMapAttributes,
125Dictionary<TypeReference, List<CustomAttributeWithOrigin>> typeMapAttributesPendingUniverseMarking)
127if (!unmarkedTypeMapAttributes.Remove(targetType, out Dictionary<TypeReference, List<CustomAttributeWithOrigin>>? entries))
139else if (!typeMapAttributesPendingUniverseMarking.TryGetValue(typeMapGroup, out List<CustomAttributeWithOrigin>? value))
213void RecordTypeMapEntry(CustomAttributeWithOrigin attr, TypeReference group, TypeReference? dependencySource, Dictionary<TypeDefinition, Dictionary<TypeReference, List<CustomAttributeWithOrigin>>> pendingDependencySourceMarking, HashSet<TypeReference> seenTypeGroups, Dictionary<TypeReference, List<CustomAttributeWithOrigin>> pendingTypeMapGroupMarking)
250if (!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 (2)
ILLink.RoslynAnalyzer (12)
Infrastructure.Common (9)
Infrastructure.Tests (10)
installer.tasks (2)
Keycloak.Web (1)
Microsoft.Agents.AI.ProjectTemplates.Tests (1)
Microsoft.Analyzers.Extra (28)
Microsoft.Analyzers.Extra.Tests (10)
Microsoft.Analyzers.Local (27)
CallAnalysis\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.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 (1)
Microsoft.AspNetCore.Components (81)
Microsoft.AspNetCore.Components.Analyzers (9)
Microsoft.AspNetCore.Components.Authorization (1)
Microsoft.AspNetCore.Components.Endpoints (94)
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)
20internal static List<RenderTreeNode> SerializeFrames(
25var result = new List<RenderTreeNode>();
39List<RenderTreeNode> target,
222internal static RenderFragment Deserialize(List<RenderTreeNode> nodes, JsonSerializerOptions jsonOptions, ComponentParametersTypeCache typeCache)
228private static void DeserializeNodes(RenderTreeBuilder builder, List<RenderTreeNode> nodes, JsonSerializerOptions? jsonOptions, ComponentParametersTypeCache typeCache)
278private static void DeserializeAttributes(RenderTreeBuilder builder, List<RenderTreeAttribute>? attributes, JsonSerializerOptions? jsonOptions, ComponentParametersTypeCache typeCache)
294private static void DeserializeComponentParameters(RenderTreeBuilder builder, List<RenderTreeAttribute>? parameters, JsonSerializerOptions? jsonOptions, ComponentParametersTypeCache typeCache)
372public List<RenderTreeNode> Nodes { get; init; } = [];
383public List<RenderTreeAttribute>? Attributes { get; set; }
404public List<RenderTreeAttribute>? ComponentParameters { get; set; }
407public 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)
20internal static List<RenderTreeNode> SerializeFrames(
25var result = new List<RenderTreeNode>();
39List<RenderTreeNode> target,
222internal static RenderFragment Deserialize(List<RenderTreeNode> nodes, JsonSerializerOptions jsonOptions, ComponentParametersTypeCache typeCache)
228private static void DeserializeNodes(RenderTreeBuilder builder, List<RenderTreeNode> nodes, JsonSerializerOptions? jsonOptions, ComponentParametersTypeCache typeCache)
278private static void DeserializeAttributes(RenderTreeBuilder builder, List<RenderTreeAttribute>? attributes, JsonSerializerOptions? jsonOptions, ComponentParametersTypeCache typeCache)
294private static void DeserializeComponentParameters(RenderTreeBuilder builder, List<RenderTreeAttribute>? parameters, JsonSerializerOptions? jsonOptions, ComponentParametersTypeCache typeCache)
372public List<RenderTreeNode> Nodes { get; init; } = [];
383public List<RenderTreeAttribute>? Attributes { get; set; }
404public List<RenderTreeAttribute>? ComponentParameters { get; set; }
407public List<RenderTreeNode>? Children { get; set; }
Microsoft.AspNetCore.Components.Testing (1)
Microsoft.AspNetCore.Components.Web (33)
_generated\3\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 (25)
src\aspnetcore\src\Components\Shared\src\RenderFragmentSerializer.cs (11)
20internal static List<RenderTreeNode> SerializeFrames(
25var result = new List<RenderTreeNode>();
39List<RenderTreeNode> target,
222internal static RenderFragment Deserialize(List<RenderTreeNode> nodes, JsonSerializerOptions jsonOptions, ComponentParametersTypeCache typeCache)
228private static void DeserializeNodes(RenderTreeBuilder builder, List<RenderTreeNode> nodes, JsonSerializerOptions? jsonOptions, ComponentParametersTypeCache typeCache)
278private static void DeserializeAttributes(RenderTreeBuilder builder, List<RenderTreeAttribute>? attributes, JsonSerializerOptions? jsonOptions, ComponentParametersTypeCache typeCache)
294private static void DeserializeComponentParameters(RenderTreeBuilder builder, List<RenderTreeAttribute>? parameters, JsonSerializerOptions? jsonOptions, ComponentParametersTypeCache typeCache)
372public List<RenderTreeNode> Nodes { get; init; } = [];
383public List<RenderTreeAttribute>? Attributes { get; set; }
404public List<RenderTreeAttribute>? ComponentParameters { get; set; }
407public 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.HealthChecks (1)
Microsoft.AspNetCore.Diagnostics.Middleware (4)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (22)
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.Grpc.Swagger (21)
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 (1)
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.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.Api.Analyzers (4)
Microsoft.AspNetCore.Mvc.ApiExplorer (13)
Microsoft.AspNetCore.Mvc.Core (154)
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.Quic (5)
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 (760)
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)
39var resolvers = !string.Equals(IncludeDefaultResolver, "false", StringComparison.OrdinalIgnoreCase) ?
48var resolvers = !string.Equals(IncludeDefaultResolver, "false", StringComparison.OrdinalIgnoreCase) ?
106List<SdkResolverManifest> manifestsList = new List<SdkResolverManifest>();
175private bool TryAddAssemblyManifestFromXml(string pathToManifest, string manifestFolder, List<SdkResolverManifest> manifestsList, ElementLocation location)
212private bool TryAddAssemblyManifestFromDll(string assemblyPath, List<SdkResolverManifest> manifestsList)
282var resolvers = new List<SdkResolver>();
294protected virtual void LoadResolvers(string resolverPath, ElementLocation location, List<SdkResolver> resolvers)
BuildCheck\Infrastructure\BuildCheckCentralContext.cs (15)
21Action<List<CheckWrapper>?, ICheckContext> removeCheck)
28List<(CheckWrapper, Action<BuildCheckDataContext<EvaluatedPropertiesCheckData>>)> EvaluatedPropertiesActions,
30List<(CheckWrapper, Action<BuildCheckDataContext<ParsedItemsCheckData>>)> ParsedItemsActions,
32List<(CheckWrapper, Action<BuildCheckDataContext<EvaluatedItemsCheckData>>)> EvaluatedItemsActions,
33List<(CheckWrapper, Action<BuildCheckDataContext<TaskInvocationCheckData>>)> TaskInvocationActions,
34List<(CheckWrapper, Action<BuildCheckDataContext<PropertyReadData>>)> PropertyReadActions,
35List<(CheckWrapper, Action<BuildCheckDataContext<PropertyWriteData>>)> PropertyWriteActions,
36List<(CheckWrapper, Action<BuildCheckDataContext<ProjectRequestProcessingDoneData>>)> ProjectRequestProcessingDoneActions,
37List<(CheckWrapper, Action<BuildCheckDataContext<BuildFinishedCheckData>>)> BuildFinishedActions,
38List<(CheckWrapper, Action<BuildCheckDataContext<EnvironmentVariableCheckData>>)> EnvironmentVariableCheckDataActions,
39List<(CheckWrapper, Action<BuildCheckDataContext<ProjectImportedCheckData>>)> ProjectImportedCheckDataActions)
60private readonly Action<List<CheckWrapper>?, ICheckContext> _removeChecks;
114List<(CheckWrapper, Action<BuildCheckDataContext<T>>)> handlersRegistry)
208List<(CheckWrapper, Action<BuildCheckDataContext<T>>)> registeredCallbacks,
215List<CheckWrapper>? checksToRemove = null;
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 (45)
659public IDictionary<string, List<string>> ConditionedProperties => implementation.ConditionedProperties;
926public List<GlobResult> GetAllGlobs()
938public List<GlobResult> GetAllGlobs(EvaluationContext evaluationContext)
947public List<GlobResult> GetAllGlobs(string itemType)
960public List<GlobResult> GetAllGlobs(string itemType, EvaluationContext evaluationContext)
1009public List<ProvenanceResult> GetItemProvenance(string itemToMatch)
1022public List<ProvenanceResult> GetItemProvenance(string itemToMatch, EvaluationContext evaluationContext)
1032public List<ProvenanceResult> GetItemProvenance(string itemToMatch, string itemType)
1046public List<ProvenanceResult> GetItemProvenance(string itemToMatch, string itemType, EvaluationContext evaluationContext)
1059public List<ProvenanceResult> GetItemProvenance(ProjectItem item)
1076public List<ProvenanceResult> GetItemProvenance(ProjectItem item, EvaluationContext evaluationContext)
1507var loggers = new List<ILogger>(1) { logger };
1685var relevantItems = new List<ProjectItem>();
2200public override IDictionary<string, List<string>> ConditionedProperties
2207return ReadOnlyEmptyDictionary<string, List<string>>.Instance;
2210return new ObjectModel.ReadOnlyDictionary<string, List<string>>(_data.ConditionedProperties);
2262var imports = new List<ResolvedImport>(_data.ImportClosure.Count - 1 /* outer project */);
2285var imports = new List<ResolvedImport>(_data.ImportClosureWithDuplicates.Count - 1 /* outer project */);
2503public override List<GlobResult> GetAllGlobs(EvaluationContext evaluationContext)
2516public override List<GlobResult> GetAllGlobs(string itemType, EvaluationContext evaluationContext)
2558private List<GlobResult> GetAllGlobs(List<ProjectItemElement> projectItemElements)
2586var globResults = new List<GlobResult>(projectItemElements.Count);
2616List<ItemSpecFragment> includeGlobFragmentsList = null;
2697public override List<ProvenanceResult> GetItemProvenance(string itemToMatch, EvaluationContext evaluationContext)
2711public override List<ProvenanceResult> GetItemProvenance(string itemToMatch, string itemType, EvaluationContext evaluationContext)
2728public override List<ProvenanceResult> GetItemProvenance(ProjectItem item, EvaluationContext evaluationContext)
2748private List<ProjectItemElement> GetEvaluatedItemElements(EvaluationContext evaluationContext)
2759private static IEnumerable<ProjectItemElement> GetItemElementsThatMightAffectItem(List<ProjectItemElement> evaluatedItemElements, ProjectItem item)
2778private static List<ProjectItemElement> GetItemElementsByType(IEnumerable<ProjectItemElement> itemElements, string itemType)
2783private List<ProvenanceResult> GetItemProvenance(string itemToMatch, IEnumerable<ProjectItemElement> projectItemElements)
3252var itemsList = new List<ProjectItem>(items);
3409var relevantItems = new List<ProjectItem>();
3537List<ProjectItem> items = Evaluator<ProjectProperty, ProjectItem, ProjectMetadata, ProjectItemDefinition>.CreateItemsFromInclude(
3600private List<ProjectItem> AddItemHelper(ProjectItemElement itemElement, string unevaluatedInclude, IEnumerable<KeyValuePair<string, string>> metadata)
3604List<ProjectItem> items = Evaluator<ProjectProperty, ProjectItem, ProjectMetadata, ProjectItemDefinition>.CreateItemsFromInclude(
4064public List<string> DefaultTargets { get; set; }
4088public List<string> InitialTargets { get; set; }
4093public IDictionary<string, List<TargetSpecification>> BeforeTargets { get; set; }
4098public IDictionary<string, List<TargetSpecification>> AfterTargets { get; set; }
4132public List<ProjectItemElement> EvaluatedItemElements { get; private set; }
4165public Dictionary<string, List<string>> ConditionedProperties { get; private set; }
4248internal List<ResolvedImport> ImportClosure { get; private set; }
4254internal List<ResolvedImport> ImportClosureWithDuplicates { get; private set; }
4281ConditionedProperties = new Dictionary<string, List<string>>(MSBuildNameIgnoreCaseComparer.Default);
Evaluation\Evaluator.cs (37)
81private readonly List<ProjectItemGroupElement> _itemGroupElements;
87private readonly List<ProjectItemDefinitionGroupElement> _itemDefinitionGroupElements;
95private readonly List<KeyValuePair<string, ProjectUsingTaskElement>> _usingTaskElements;
101private readonly List<ProjectTargetElement> _targetElements;
113private List<(ProjectRootElement ImportedProject, ProjectImportElement ImportingElement, SdkResult SdkResult)> _resolvedImports;
119private readonly List<string> _initialTargetsList;
199private List<string> _streamImports;
383internal static List<I> CreateItemsFromInclude(string rootDirectory, ProjectItemElement itemElement, IItemFactory<I, I> itemFactory, string unevaluatedIncludeEscaped, Expander<P, I> expander, ILoggingService loggingService, string buildEventFileInfoFullPath, BuildEventContext buildEventContext)
387List<I> items = new List<I>();
446List<ProjectTaskInstanceChild> taskOutputs = new List<ProjectTaskInstanceChild>(taskElement.Count);
488List<ProjectPropertyGroupTaskPropertyInstance> properties = new List<ProjectPropertyGroupTaskPropertyInstance>(propertyGroupElement.Count);
518List<ProjectItemGroupTaskItemInstance> items = new List<ProjectItemGroupTaskItemInstance>(itemGroupElement.Count);
522List<ProjectItemGroupTaskMetadataInstance> metadata = itemElement.Metadata.Count > 0 ? new List<ProjectItemGroupTaskMetadataInstance>() : null;
569List<ProjectTargetInstanceChild> targetChildren = new List<ProjectTargetInstanceChild>(targetElement.Count);
570List<ProjectOnErrorInstance> targetOnErrorChildren = new List<ProjectOnErrorInstance>();
680List<string> initialTargets = new List<string>(_initialTargetsList.Count);
777Dictionary<string, List<TargetSpecification>> targetsWhichRunBeforeByTarget = new Dictionary<string, List<TargetSpecification>>(StringComparer.OrdinalIgnoreCase);
778Dictionary<string, List<TargetSpecification>> targetsWhichRunAfterByTarget = new Dictionary<string, List<TargetSpecification>>(StringComparer.OrdinalIgnoreCase);
849List<P> list = new(dictionary.Count);
903List<ProjectImportElement> implicitImports = currentProjectOrImport.GetImplicitImportNodes(currentProjectOrImport);
980List<string> temp = new List<string>(expanded.Split(s_splitter, StringSplitOptions.RemoveEmptyEntries));
1077private void AddBeforeAndAfterTargetMappings(ProjectTargetElement targetElement, Dictionary<string, LinkedListNode<ProjectTargetElement>> activeTargets, Dictionary<string, List<TargetSpecification>> targetsWhichRunBeforeByTarget, Dictionary<string, List<TargetSpecification>> targetsWhichRunAfterByTarget)
1088List<TargetSpecification> beforeTargetsForTarget;
1111List<TargetSpecification> afterTargetsForTarget;
1418List<ProjectRootElement> importedProjectRootElements = ExpandAndLoadImports(directoryOfImportingFile, importElement, out var sdkResult);
1528private List<ProjectRootElement> ExpandAndLoadImports(string directoryOfImportingFile, ProjectImportElement importElement, out SdkResult sdkResult)
1537List<ProjectRootElement> projects;
1601var allProjects = new List<ProjectRootElement>();
1638List<ProjectRootElement> projects;
1711out List<ProjectRootElement> projects,
1864List<ProjectRootElement> projectList = null;
1881throwOnFileNotExistsError: true, out var additionalProjects);
2033bool throwOnFileNotExistsError, out List<ProjectRootElement> imports)
2571var onlyFallbackSearchPaths = searchPathMatch.SearchPaths.Select(s => _data.ExpandString(s)).ToList();
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;
492static List<string> GetImportFullPaths(ObjectModelRemoting.ProjectLink projectLink)
497var paths = new List<string>(imports.Count);
509static List<string> GetImportFullPathsIncludingDuplicates(ObjectModelRemoting.ProjectLink projectLink)
512var paths = new List<string>(imports.Count);
593thisAsIEvaluatorData.AfterTargets = new Dictionary<string, List<TargetSpecification>>();
594thisAsIEvaluatorData.BeforeTargets = new Dictionary<string, List<TargetSpecification>>();
1184/// Gets a <see cref="List{ProjectItemElement}"/> object containing evaluated items.
1186public List<ProjectItemElement> EvaluatedItemElements
1269public List<string> DefaultTargets
1280public List<string> InitialTargets
1495List<string> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.InitialTargets
1513List<string> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.DefaultTargets
1531IDictionary<string, List<TargetSpecification>> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.BeforeTargets
1541IDictionary<string, List<TargetSpecification>> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.AfterTargets
1554Dictionary<string, List<string>> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.ConditionedProperties
1555=> Assumed.Unreachable<Dictionary<string, List<string>>>();
2558translator.TranslateDictionary(ref _beforeTargets, TranslatorForTargetSpecificDictionaryKey, TranslatorForTargetSpecificDictionaryValue, count => new Dictionary<string, List<TargetSpecification>>(count));
2559translator.TranslateDictionary(ref _afterTargets, TranslatorForTargetSpecificDictionaryKey, TranslatorForTargetSpecificDictionaryValue, count => new Dictionary<string, List<TargetSpecification>>(count));
2572private static void TranslatorForTargetSpecificDictionaryValue(ITranslator translator, ref List<TargetSpecification> value)
2847List<TargetSpecification> beforeTargetsForTarget;
2864List<TargetSpecification> afterTargetsForTarget;
3050List<DictionaryEntry> clearedVariables = null;
3312List<string> defaultTargets,
3313List<string> initialTargets,
3314IDictionary<string, List<TargetSpecification>> beforeTargets,
3315IDictionary<string, List<TargetSpecification>> afterTargets)
3323private void InitializeTargetsData(List<string> defaultTargets,
3324List<string> initialTargets,
3325IDictionary<string, List<TargetSpecification>> beforeTargets,
3326IDictionary<string, List<TargetSpecification>> afterTargets)
3339var importPaths = new List<string>(Math.Max(0, importClosure.Count - 1) /* outer project */);
3352var importPathsIncludingDuplicates = new List<string>(Math.Max(0, importClosureWithDuplicates.Count - 1) /* outer project */);
3432List<ProjectItemDefinitionInstance> inheritedItemDefinitions = null;
Instance\TaskRegistry.cs (15)
146private Dictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>> _taskRegistrations;
153private readonly Dictionary<string, List<RegisteredTaskRecord>> _overriddenTasks = new Dictionary<string, List<RegisteredTaskRecord>>();
222internal IDictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>> TaskRegistrations
523if (_overriddenTasks.TryGetValue(taskName, out List<RegisteredTaskRecord> recs))
652if (_taskRegistrations.TryGetValue(taskIdentity, out List<RegisteredTaskRecord> taskAssemblies))
695List<RegisteredTaskRecord> registeredTaskEntries;
720if (_overriddenTasks.TryGetValue(unqualifiedTaskName, out List<RegisteredTaskRecord> recs))
735List<RegisteredTaskRecord> unqualifiedTaskNameMatches = new();
745private static Dictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>> CreateRegisteredTaskDictionary(int? capacity = null)
748? new Dictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>>(capacity.Value, RegisteredTaskIdentity.RegisteredTaskIdentityComparer.Exact)
749: new Dictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>>(RegisteredTaskIdentity.RegisteredTaskIdentityComparer.Exact);
1895IDictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>> copy = _taskRegistrations;
1900_taskRegistrations = (Dictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>>)copy;
1914private void TranslateTaskRegistrationValue(ITranslator translator, ref List<RegisteredTaskRecord> taskRecords)
Microsoft.Build.Framework (67)
Microsoft.Build.NuGetSdkResolver (8)
Microsoft.Build.Tasks.CodeAnalysis (17)
Microsoft.Build.Tasks.Core (344)
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)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
86var result = new List<ITypeSymbol>
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)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
86var result = new List<ITypeSymbol>
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 (7)
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 (234)
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);
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.Razor.Compiler (85)
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)
1038public LegacyFileKindVisitor(DocumentIntermediateNode document, IntermediateNodeBuilder builder, List<UsingReference> usings, RazorParserOptions options)
1614List<UsingReference> usings,
2102List<UsingReference> usings,
2184public 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)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
86var result = new List<ITypeSymbol>
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 = [];
653List<(string path, MetadataReferenceProperties properties)> metadataReferencesRemovedInBatch,
654List<(string path, MetadataReferenceProperties properties)> metadataReferencesAddedInBatch)
691var projectReferencesCreated = new List<ProjectReference>();
725List<ProjectReference> projectReferencesRemovedInBatch,
726List<ProjectReference> projectReferencesAddedInBatch)
744List<string> analyzersRemovedInBatch,
745List<string> analyzersAddedInBatch)
764List<string> analyzersRemoved,
765List<string> analyzersAdded)
1184var newList = projectReferencesInWorkspace.ToList();
1280private static void ClearAndZeroCapacity<T>(List<T> list)
Microsoft.CodeAnalysis.Workspaces.MSBuild (8)
Rpc\RpcClient.cs (4)
121public Task InvokeAsync(int targetObject, string methodName, List<object?> parameters, CancellationToken cancellationToken)
127public async Task<T?> InvokeNullableAsync<T>(int targetObject, string methodName, List<object?> parameters, CancellationToken cancellationToken) where T : class
133public async Task<T> InvokeAsync<T>(int targetObject, string methodName, List<object?> parameters, CancellationToken cancellationToken) where T : notnull
140private 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 (64)
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)
685List<GCMemoryRegionData> regions = new();
740List<GCMemoryRegionData> regions = new();
795List<GCMemoryRegionData> regions = new();
911private void AddFreeList(TargetPointer freeListAddr, FreeRegionKind kind, List<GCMemoryRegionData> regions, int heap = 0)
918private void AddSegmentList(TargetPointer start, FreeRegionKind kind, List<GCMemoryRegionData> regions, int heap = 0)
Microsoft.Diagnostics.DataContractReader.DataGenerator (5)
Microsoft.Diagnostics.DataContractReader.Legacy (72)
Dbi\DacDbiImpl.cs (39)
537List<ulong>? cdacAssemblies = _legacy is not null ? new() : null;
570List<ulong> dacAssemblies = new();
766List<ulong>? cdacThreads = _legacy is not null ? new() : null;
796List<ulong> dacThreads = new();
817((List<ulong>)handle.Target!).Add(value);
1761List<Debugger_STRData>? cdacFrames = _legacy is not null ? new() : null;
1813List<Debugger_STRData> dacFrames = new();
1845((List<Debugger_STRData>)handle.Target!).Add(*data);
2312List<FieldData>? cdacFields = null;
2368List<FieldData>? cdacFields = null;
2419List<FieldData>? cdacFields)
2453List<FieldData>? cdacFields)
2540((List<FieldData>)handle.Target!).Add(*data);
2545private static void ValidateEnumerateFieldsAgainstLegacy(string label, nuint cdacObjectSize, List<FieldData>? cdacFields, int hr, LegacyEnumerateFieldsFn legacyEnumerate)
2547List<FieldData> dacFields = new();
2560private static void AssertFieldListsEqual(List<FieldData>? cdacFields, List<FieldData> dacFields, string label)
2913List<DebuggerIPCE_ExpandedTypeData> entries = new();
3037List<DebuggerIPCE_ExpandedTypeData> legacyEntries = DebugExpandedTypeInfo;
3251List<DebuggerIPCE_ExpandedTypeData> entries = new();
3286List<DebuggerIPCE_ExpandedTypeData> legacyEntries = DebugExpandedTypeInfo;
3310private static List<DebuggerIPCE_ExpandedTypeData>? _debugExpandedTypeInfo;
3312private static List<DebuggerIPCE_ExpandedTypeData> DebugExpandedTypeInfo
3415private static List<(ulong VmAppDomain, ulong VmAssembly, ulong Ip, uint MethodDef, Interop.BOOL IsLastForeignExceptionFrame)>? _debugEnumerateStackFramesFromException;
3417private static List<(ulong VmAppDomain, ulong VmAssembly, ulong Ip, uint MethodDef, Interop.BOOL IsLastForeignExceptionFrame)> DebugEnumerateStackFramesFromException
3431List<(ulong VmAppDomain, ulong VmAssembly, ulong Ip, uint MethodDef, Interop.BOOL IsLastForeignExceptionFrame)> frames = new();
3465List<(ulong VmAppDomain, ulong VmAssembly, ulong Ip, uint MethodDef, Interop.BOOL IsLastForeignExceptionFrame)> legacyFrames = DebugEnumerateStackFramesFromException;
3508private static List<ulong>? _debugEnumerateRcwCachedInterfacePointers;
3510private static List<ulong> DebugEnumerateRcwCachedInterfacePointers
3523List<ulong> itfPtrs = new();
3559List<ulong> legacyItfPtrs = DebugEnumerateRcwCachedInterfacePointers;
4191private static List<(ulong Start, ulong End, int Generation, uint Heap)>? _debugEnumerateHeapSegments;
4193private static List<(ulong Start, ulong End, int Generation, uint Heap)> DebugEnumerateHeapSegments
4206List<(ulong Start, ulong End, int Generation, uint Heap)> segments = new();
4266List<(ulong Start, ulong End, int Generation, uint Heap)> legacySegments = DebugEnumerateHeapSegments;
5482private static List<AsyncLocalData>? _debugEnumerateAsyncLocals;
5484private static List<AsyncLocalData> DebugEnumerateAsyncLocals
5499List<AsyncLocalData> locals = new();
5563List<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.Installers (33)
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.Utils (10)
Microsoft.DotNet.CMake.Sdk (6)
Microsoft.DotNet.GenFacades (2)
Microsoft.DotNet.HotReload.Utils.Generator (5)
Microsoft.DotNet.HotReload.Watch (37)
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 (3)
Microsoft.Extensions.AI (78)
ChatCompletion\FunctionInvokingChatClient.cs (46)
279List<ChatMessage> originalMessages = [.. messages];
282List<ChatMessage>? augmentedHistory = null; // the actual history of messages sent on turns other than the first
284List<ChatMessage>? responseMessages = null; // tracked list of messages, across multiple turns, to be used for the final response
286List<FunctionCallContent>? functionCallContents = null; // function call contents that need responding to in the current turn
297(responseMessages, var notInvokedApprovals) = ProcessFunctionApprovalResponses(
432List<ChatMessage> originalMessages = [.. messages];
435List<ChatMessage>? augmentedHistory = null; // the actual history of messages sent on turns other than the first
436List<FunctionCallContent>? functionCallContents = null; // function call contents that need responding to in the current turn
437List<ChatMessage>? responseMessages = null; // tracked list of messages, across multiple turns, to be used in fallback cases to reconstitute history
439List<ChatResponseUpdate> updates = []; // updates from the current response
604if (TryReplaceFunctionCallsWithApprovalRequests(updateToYield.Contents, out var updatedContents))
728[NotNull] ref List<ChatMessage>? augmentedHistory,
730List<ChatMessage> allTurnsResponseMessages,
844private static bool HasAnyApprovalContent(List<ChatMessage> messages) =>
849IList<ChatMessage> messages, [NotNullWhen(true)] ref List<FunctionCallContent>? functionCalls)
863IList<AIContent> content, [NotNullWhen(true)] ref List<FunctionCallContent>? functionCalls)
928private static void MarkServerHandledFunctionCalls(List<ChatResponseUpdate> updates, List<FunctionCallContent>? functionCallContents)
1023List<AITool>? remainingTools = null;
1051private bool ShouldTerminateLoopBasedOnHandleableFunctions(List<FunctionCallContent>? functionCalls, ChatOptions? options)
1119List<ChatMessage> messages, ChatOptions? options,
1120List<FunctionCallContent> functionCallContents, int iteration, int consecutiveErrorCount,
1146List<FunctionInvocationResult> results = [];
1248List<ChatMessage> messages, ChatOptions? options,
1249List<FunctionCallContent> callContents,
1325var contents = new List<AIContent>(results.Length);
1515private (List<ChatMessage>? preDownstreamCallHistory, List<ApprovalResultWithRequestMessage>? approvals) ProcessFunctionApprovalResponses(
1516List<ChatMessage> originalMessages, bool hasConversationId, string? toolMessageId, string? functionCallContentFallbackMessageId)
1528List<AIContent>? rejectedFunctionCallResults = GenerateRejectedFunctionResults(notInvokedResponses.rejections);
1536List<ChatMessage>? preDownstreamCallHistory = null;
1566private (List<ApprovalResultWithRequestMessage>? approvals, List<ApprovalResultWithRequestMessage>? rejections) ExtractAndRemoveApprovalRequestsAndResponses(
1567List<ChatMessage> messages)
1570List<FunctionApprovalResponseContent>? allApprovalResponses = null;
1585List<AIContent>? keptContents = null;
1654List<ApprovalResultWithRequestMessage>? approvedFunctionCalls = null, rejectedFunctionCalls = null;
1668ref List<ApprovalResultWithRequestMessage>? targetList = ref approvalResponse.Approved ? ref approvedFunctionCalls : ref rejectedFunctionCalls;
1685private List<AIContent>? GenerateRejectedFunctionResults(List<ApprovalResultWithRequestMessage>? rejections) =>
1709List<ApprovalResultWithRequestMessage>? resultWithRequestMessages, string? fallbackMessageId)
1794List<FunctionCallContent>? functionCallContents,
1829private static bool TryReplaceFunctionCallsWithApprovalRequests(IList<AIContent> content, out List<AIContent>? updatedContent)
1859List<(int, int)>? allFunctionCallContentIndices = null;
1917List<ApprovalResultWithRequestMessage>? notInvokedApprovals,
1918List<ChatMessage> originalMessages,
Microsoft.Extensions.AI.Abstractions (11)
Microsoft.Extensions.AI.Abstractions.Tests (37)
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 (72)
ToolReductionTests.cs (30)
28var tools = CreateTools("Weather", "Math");
48var tools = CreateTools("Req", "Opt1", "Opt2");
62var tools = CreateTools("Weather", "Translate", "Math", "Jokes");
70var reduced = (await strategy.SelectToolsForRequestAsync(messages, options)).ToList();
86var tools = CreateTools("Math", "Translate", "Weather");
87var reduced = (await strategy.SelectToolsForRequestAsync(
102var tools = CreateTools("Weather", "Math", "Jokes");
144var reduced = (await strategy.SelectToolsForRequestAsync(
159var tools = CreateTools("T1", "T2", "T3", "T4");
160var reduced = (await strategy.SelectToolsForRequestAsync(
223var tools = CreateTools("Weather", "Math", "Translate");
234var reduced = (await strategy.SelectToolsForRequestAsync(
248var tools = CreateTools("Weather", "Math");
269var tools = CreateTools("Weather", "Math");
304var tools = CreateTools("Alpha", "Beta");
332var tools = CreateTools("Core", "Weather", "Math");
333var reduced = (await strategy.SelectToolsForRequestAsync(
351var tools = CreateTools("R1", "R2", "R3", "Weather", "Math");
352var reduced = (await strategy.SelectToolsForRequestAsync(
365var tools = CreateTools("Weather", "Math", "Translate", "Jokes");
395var tools = CreateTools("Weather", "Math");
429var tools = CreateTools("ToolA", "ToolB", "ToolC");
453var tools = CreateTools("Req", "Optional1", "Optional2");
476var tools = CreateTools("One", "Two");
490private static List<AITool> CreateTools(params string[] names) =>
536var list = new List<Embedding<float>>();
571public List<string> Inputs { get; } = new();
578var list = new List<Embedding<float>>();
602var list = new List<Embedding<float>>();
628var list = new List<Embedding<float>>();
Microsoft.Extensions.AI.OpenAI (20)
Microsoft.Extensions.AI.OpenAI.Tests (91)
Microsoft.Extensions.AI.Templates.Tests (1)
Microsoft.Extensions.AI.Tests (263)
ChatCompletion\FunctionInvokingChatClientApprovalsTests.cs (105)
34List<ChatMessage> input =
39List<ChatMessage> downstreamClientOutput =
44List<ChatMessage> expectedOutput =
70List<ChatMessage> input =
75List<ChatMessage> downstreamClientOutput =
80List<ChatMessage> expectedOutput =
114List<ChatMessage> input =
119List<ChatMessage> downstreamClientOutput =
124List<ChatMessage> expectedOutput =
150List<ChatMessage> input =
165List<ChatMessage> expectedDownstreamClientInput =
172List<ChatMessage> downstreamClientOutput =
177List<ChatMessage> output =
202List<ChatMessage> input =
218List<ChatMessage> expectedDownstreamClientInput =
225List<ChatMessage> downstreamClientOutput =
230List<ChatMessage> output =
254List<ChatMessage> input =
275List<ChatMessage> expectedDownstreamClientInput =
283List<ChatMessage> downstreamClientOutput =
288List<ChatMessage> output =
313List<ChatMessage> input =
328List<ChatMessage> expectedDownstreamClientInput =
339List<ChatMessage> downstreamClientOutput =
344List<ChatMessage> output =
372List<ChatMessage> input =
387List<ChatMessage> expectedDownstreamClientInput =
395List<ChatMessage> downstreamClientOutput =
400List<ChatMessage> nonStreamingOutput =
408List<ChatMessage> streamingOutput =
436List<ChatMessage> input =
457List<ChatMessage> expectedDownstreamClientInput =
468List<ChatMessage> downstreamClientOutput =
473List<ChatMessage> output =
502List<ChatMessage> input =
519List<ChatMessage> expectedDownstreamClientInput =
536List<ChatMessage> downstreamClientOutput =
541List<ChatMessage> nonStreamingOutput =
558List<ChatMessage> streamingOutput =
594List<ChatMessage> input =
610List<ChatMessage> expectedDownstreamClientInput =
620List<ChatMessage> downstreamClientOutput =
625List<ChatMessage> output =
652List<ChatMessage> input =
667List<ChatMessage> expectedDownstreamClientInput =
674List<ChatMessage> downstreamClientOutput =
679List<ChatMessage> output =
706List<ChatMessage> input =
731List<ChatMessage> expectedDownstreamClientInput =
740List<ChatMessage> downstreamClientOutput =
745List<ChatMessage> output =
777List<ChatMessage> input =
782Func<Queue<List<ChatMessage>>> expectedDownstreamClientInput = () => new Queue<List<ChatMessage>>(
796Func<Queue<List<ChatMessage>>> downstreamClientOutput = () => new Queue<List<ChatMessage>>(
808List<ChatMessage> output =
832List<ChatMessage> input =
862List<ChatMessage> input =
872List<ChatMessage> expectedDownstreamClientInput =
879List<ChatMessage> downstreamClientOutput =
884List<ChatMessage> output =
909List<ChatMessage> input =
918List<ChatMessage> expectedDownstreamClientInput =
923List<ChatMessage> downstreamClientOutput =
928List<ChatMessage> output =
957List<ChatMessage> input = [new ChatMessage(ChatRole.User, "hello")];
1033List<ChatMessage> input = [new ChatMessage(ChatRole.User, "hello")];
1131List<ChatMessage> input = [new ChatMessage(ChatRole.User, "hello")];
1135List<ChatMessage> downstreamClientOutput =
1141List<ChatMessage> expectedOutput =
1173List<ChatMessage> input =
1186List<ChatMessage> downstreamClientOutput =
1192List<ChatMessage> expectedOutput =
1199var actualOutput = await InvokeAndAssertAsync(options, input, downstreamClientOutput, expectedOutput);
1208private static Task<List<ChatMessage>> InvokeAndAssertAsync(
1210List<ChatMessage> input,
1211List<ChatMessage> downstreamClientOutput,
1212List<ChatMessage> expectedOutput,
1213List<ChatMessage>? expectedDownstreamClientInput = null,
1219new Queue<List<ChatMessage>>(new[] { downstreamClientOutput }),
1221expectedDownstreamClientInput is null ? null : new Queue<List<ChatMessage>>(new[] { expectedDownstreamClientInput }),
1225private static async Task<List<ChatMessage>> InvokeAndAssertMultiRoundAsync(
1227List<ChatMessage> input,
1228Queue<List<ChatMessage>> downstreamClientOutput,
1229List<ChatMessage> expectedOutput,
1230Queue<List<ChatMessage>>? expectedDownstreamClientInput = null,
1256var output = downstreamClientOutput.Dequeue();
1267var actualOutput = result.Messages as List<ChatMessage> ?? result.Messages.ToList();
1296private static Task<List<ChatMessage>> InvokeAndAssertStreamingAsync(
1298List<ChatMessage> input,
1299List<ChatMessage> downstreamClientOutput,
1300List<ChatMessage> expectedOutput,
1301List<ChatMessage>? expectedDownstreamClientInput = null,
1307new Queue<List<ChatMessage>>(new[] { downstreamClientOutput }),
1309expectedDownstreamClientInput is null ? null : new Queue<List<ChatMessage>>(new[] { expectedDownstreamClientInput }),
1313private static async Task<List<ChatMessage>> InvokeAndAssertStreamingMultiRoundAsync(
1315List<ChatMessage> input,
1316Queue<List<ChatMessage>> downstreamClientOutput,
1317List<ChatMessage> expectedOutput,
1318Queue<List<ChatMessage>>? expectedDownstreamClientInput = null,
1338var output = downstreamClientOutput.Dequeue();
1349var actualOutput = result.Messages as List<ChatMessage> ?? result.Messages.ToList();
Functions\AIFunctionFactoryTest.cs (9)
38Assert.Throws<ArgumentException>("method", () => AIFunctionFactory.Create(typeof(List<>).GetMethod("Add")!, new List<int>()));
961await ValidateAsync<List<AIContent>>(
963AIFunctionFactory.Create(() => (List<AIContent>)[new TextContent("text"), new DataContent(new byte[] { 1, 2, 3 }, "application/octet-stream")]),
964AIFunctionFactory.Create(async () => (List<AIContent>)[new TextContent("text"), new DataContent(new byte[] { 1, 2, 3 }, "application/octet-stream")]),
965AIFunctionFactory.Create(async ValueTask<List<AIContent>> () => (List<AIContent>)[new TextContent("text"), new DataContent(new byte[] { 1, 2, 3 }, "application/octet-stream")]),
972AIFunctionFactory.Create(async ValueTask<IList<AIContent>> () => (List<AIContent>)[new TextContent("text"), new DataContent(new byte[] { 1, 2, 3 }, "application/octet-stream")]),
1353List<string> requiredParams = required.EnumerateArray().Select(e => e.GetString()!).ToList();
1415List<string> requiredParams = required.EnumerateArray().Select(e => e.GetString()!).ToList();
Microsoft.Extensions.ApiDescription.Client (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.Testing (2)
Microsoft.Extensions.Configuration (24)
Microsoft.Extensions.Configuration.Binder (9)
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.HealthChecks (5)
Microsoft.Extensions.Diagnostics.HealthChecks.Common (11)
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (24)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (10)
Microsoft.Extensions.Diagnostics.Testing (7)
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 (21)
Microsoft.Extensions.Hosting.Testing.Tests (2)
Microsoft.Extensions.Http (4)
Microsoft.Extensions.Http.Diagnostics (17)
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>>();
634var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
874var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
Microsoft.Extensions.Http.Resilience (14)
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 (8)
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 (19)
Parser.cs (14)
48var results = new List<ValidatorType>();
70var modelTypes = GetModelTypes(validatorType);
78var modelsValidatorTypeValidates = new List<ValidatedModel>(modelTypes.Count);
105var membersToValidate = GetMembersToValidate(modelType, true, lowerLocationInCompilation, validatorType);
125var parents = new List<string>();
266private List<ValidatedMember> GetMembersToValidate(ITypeSymbol modelType, bool speculate, Location lowerLocationInCompilation, ITypeSymbol validatorType)
276var members = modelType.GetMembers().ToList();
292var membersToValidate = new List<ValidatedMember>();
341var validationAttrs = new List<ValidationAttributeInfo>();
554var membersToValidate = GetMembersToValidate(memberType, false, location, validatorType);
570var membersToValidate = GetMembersToValidate(enumeratedType, false, location, validatorType);
699var membersToValidate = GetMembersToValidate(mt, true, location, validatorType);
747private List<ITypeSymbol> GetModelTypes(ITypeSymbol validatorType)
749var 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)
70var results = new List<ServiceResult>(response.Answers.Count);
81List<AddressResult> addresses = new List<AddressResult>();
176List<AddressResult> results = new List<AddressResult>(response.Answers.Count);
240Dictionary<EncodedDomainName, List<AddressResult>> aRecordMap = new();
265if (!aRecordMap.TryGetValue(answer.Name, out List<AddressResult>? addressList))
298aRecordMap.TryGetValue(currentAlias, out List<AddressResult>? finalAddressList);
557if (!TryReadRecords(header.AnswerCount, ref ttl, ref responseReader, out List<DnsResourceRecord>? answers) ||
558!TryReadRecords(header.AuthorityCount, ref ttl, ref responseReader, out List<DnsResourceRecord>? authorities) ||
559!TryReadRecords(header.AdditionalRecordCount, ref ttl, ref responseReader, out List<DnsResourceRecord>? additionals))
584static bool TryReadRecords(int count, ref int ttl, ref DnsDataReader reader, out List<DnsResourceRecord> records)
606internal static bool GetNegativeCacheExpiration(DateTime createdAt, List<DnsResourceRecord> authorities, out DateTime expiration)
633internal static SendQueryError ValidateResponse(QueryResponseCode responseCode, DateTime createdAt, List<DnsResourceRecord> answers, List<DnsResourceRecord> authorities, ref DateTime expiration)
902List<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 (29)
Microsoft.Extensions.Telemetry.Abstractions (12)
Microsoft.Extensions.Telemetry.Abstractions.Tests (1)
Microsoft.Extensions.Telemetry.Tests (27)
Microsoft.Extensions.TimeProvider.Testing.Tests (4)
Microsoft.Extensions.Validation (7)
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 (24)
Parsing\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)
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.McpServer.ProjectTemplates.Tests (1)
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) =>