5730 references to ToArray
AnalyzerRunner (2)
CodeRefactoringRunner.cs (2)
104var projectChanges = changes.GetProjectChanges().ToArray(); 110var documentChanges = projectChanges[0].GetChangedDocuments().ToArray();
ApiExplorerWebSite (1)
ApiExplorerDataFilter.cs (1)
77ConstraintTypes = parameter.RouteInfo.Constraints?.Select(c => c.GetType().Name).ToArray(),
ApplicationModelWebSite (1)
Conventions\MultipleAreasAttribute.cs (1)
11AreaNames = new string[] { area1, area2 }.Concat(areaNames).ToArray();
Aspire.Dashboard (5)
DashboardWebApplication.cs (1)
303builder.WithOrigins(_frontendEndPointAccessor.Select(accessor => accessor().GetResolvedAddress()).ToArray());
Otlp\Model\MetricValues\DimensionScope.cs (3)
100: h.ExplicitBounds.ToArray(); 104explicitBounds = h.ExplicitBounds.ToArray(); 106_lastValue = new HistogramValue(h.BucketCounts.ToArray(), h.Sum, h.Count, start, end, explicitBounds);
src\Shared\IConfigurationExtensions.cs (1)
113.ToArray();
Aspire.Dashboard.Tests (1)
AssemblyExtensionsTests.cs (1)
91return _customAttributes.Where(a => a.GetType() == attributeType).ToArray();
Aspire.Hosting (5)
ApplicationModel\ResourceExtensions.cs (1)
43var matchingTypeAnnotations = resource.Annotations.OfType<T>().ToArray();
Dashboard\ResourceSnapshot.cs (2)
62IEnumerable<string> list => Value.ForList(list.Select(Value.ForString).ToArray()), 63IEnumerable<int> list => Value.ForList(list.Select(i => Value.ForNumber(i)).ToArray()),
Publishing\ManifestPublishingContext.cs (1)
558if (buildArgs?.ToArray() is { Length: > 0 } args)
src\Shared\IConfigurationExtensions.cs (1)
113.ToArray();
Aspire.Hosting.Analyzers (3)
AppHostAnalyzer.cs (3)
86.ToArray(); 90parameterData = candidateParameters.Select(p => (p.Symbol, p.ModelTypes)).ToArray(); 115return modelTypes.Where(m => m is not null).Select(m => m.Value).ToArray();
Aspire.Hosting.Azure (1)
Provisioning\Provisioners\BicepProvisioner.cs (1)
499IEnumerable<string> s => new JsonArray(s.Select(s => JsonValue.Create(s)).ToArray()),
Aspire.Hosting.Azure.AppContainers (5)
AzureContainerAppsInfrastructure.cs (5)
261var unsupportedEndpoints = endpoints.Where(e => e.UriScheme is not ("tcp" or "http" or "https")).ToArray(); 349Endpoints = g.ToArray(), 353UniqueSchemes = g.Select(e => e.UriScheme).Distinct().ToArray(), 383var httpOnlyEndpoints = endpointsByTargetPort.Where(g => g.IsHttpOnly).OrderBy(g => g.Index).ToArray(); 391var externalHttp = httpOnlyEndpoints.Where(g => g.External).ToArray();
Aspire.Hosting.PostgreSQL.Tests (1)
AddPostgresTests.cs (1)
518var bookMarkFiles = Directory.GetFiles(volume.Source!).OrderBy(f => f).ToArray();
Aspire.Hosting.Tests (1)
WithEndpointTests.cs (1)
218var endpoints = resource.Annotations.OfType<EndpointAnnotation>().ToArray();
Aspire.Playground.Tests (1)
AppHostTests.cs (1)
48var tasks = testEndpoints.WaitForTexts.Select(x => app.WaitForTextAsync(log => new Regex(x.Pattern).IsMatch(log), x.ResourceName)).ToArray();
Aspire.Workload.Tests (2)
StarterTemplateRunTestsBase.cs (1)
125.ToArray();
WorkloadTestsBase.cs (1)
228string[] matchedEndpoints = expectedEndpoints.Where(e => Regex.IsMatch(endpointFound, e)).ToArray();
AuthSamples.FunctionalTests (1)
TestAssert.cs (1)
41.ToArray();
AzureSearch.ApiService (1)
Program.cs (1)
156var batchActions = hotels.Select(h => IndexDocumentsAction.Upload(h)).ToArray();
BasicWebSite (1)
Controllers\HomeController.cs (1)
135.ToArray();
BlazorServerApp (1)
Data\WeatherForecastService.cs (1)
20}).ToArray());
BlazorUnitedApp (1)
Data\WeatherForecastService.cs (1)
20}).ToArray());
BoundTreeGenerator (2)
BoundNodeClassWriter.cs (2)
1242var allFields = AllFields(node).ToArray(); 1315var allFields = AllFields(node).ToArray();
BuildActionTelemetryTable (3)
Program.cs (1)
458.ToArray();
src\Workspaces\Core\Portable\Shared\Extensions\TelemetryExtensions.cs (1)
28var suffixBytes = BitConverter.GetBytes(suffix).Concat(new byte[4]).ToArray();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
264descriptor.Description, descriptor.HelpLinkUri, descriptor.CustomTags.ToArray());
BuildBoss (1)
StructuredLoggerCheckerUtil.cs (1)
34var doubleWrites = DoubleWritesAnalyzer.GetDoubleWrites(build).ToArray();
BuildValidator (1)
Program.cs (1)
224return map.Values.OrderBy(x => x.FileName, FileNameEqualityComparer.StringComparer).ToArray();
ClientSample (1)
Program.cs (1)
20args = args.Except(new[] { "--debug" }).ToArray();
CodeGenerator (13)
HttpProtocolFeatureCollection.cs (1)
64.ToArray();
HttpUtilities\HttpUtilities.cs (1)
40var methodsAsciiStringAsLong = methodsInfo.Select(m => m.AsciiStringAsLong).ToArray();
src\Servers\Kestrel\shared\KnownHeaders.cs (11)
41.ToArray(); 80.ToArray(); 85.ToArray(); 195.ToArray(); 267.ToArray(); 286.ToArray(); 784.Select(h => h.Identifier).Distinct().OrderBy(n => n, StringComparer.InvariantCulture).ToArray(); 800Bytes = responseHeaders.SelectMany(header => header.Bytes).ToArray() 807Bytes = responseTrailers.SelectMany(header => header.Bytes).ToArray() 1509QPackStaticTableFields = g.ToArray() 1530HPackStaticTableIndexes = g.Select(h => h.Index).ToArray()
ConfigurationSchemaGenerator (1)
RuntimeSource\SourceGenerators\ImmutableEquatableArray.cs (1)
25=> _values = values.ToArray();
ConfigurationSchemaGenerator.Tests (1)
GeneratorTests.cs (1)
1593.ToArray();
csc (1)
src\Compilers\Shared\BuildClient.cs (1)
129var args = originalArguments.Select(arg => arg.Trim()).ToArray();
DaprServiceB (1)
Program.cs (1)
33.ToArray();
DnnAnalyzer (1)
DnnAnalyzer.cs (1)
52.ToArray();
dotnet-dev-certs (3)
ReporterEventListener.cs (1)
33var message = string.Format(CultureInfo.InvariantCulture, eventData.Message ?? "", eventData.Payload?.ToArray() ?? Array.Empty<object>());
src\Shared\CertificateGeneration\CertificateManager.cs (1)
112.ToArray();
src\Tools\Shared\CommandLine\DebugHelper.cs (1)
21args = args.Skip(1).ToArray();
dotnet-getdocument (1)
src\Tools\Shared\CommandLine\DebugHelper.cs (1)
21args = args.Skip(1).ToArray();
dotnet-openapi (3)
DebugMode.cs (1)
17args = args.Skip(1).ToArray();
Internal\OpenapiDependencyAttribute.cs (1)
18CodeGenerators = codeGenerators.Split(';', StringSplitOptions.RemoveEmptyEntries).Select(Enum.Parse<CodeGenerator>).ToArray();
src\Tools\Shared\CommandLine\DebugHelper.cs (1)
21args = args.Skip(1).ToArray();
dotnet-sql-cache (1)
src\Tools\Shared\CommandLine\DebugHelper.cs (1)
21args = args.Skip(1).ToArray();
dotnet-svcutil-lib (26)
CommandLineParser.cs (1)
127cmd = cmd.Where(c => !c.ToLowerInvariant().Contains("additionalprobingpath")).ToArray();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ClassDataContract.cs (2)
950object[] memberAttributes = member.GetCustomAttributes(typeof(DataMemberAttribute), false).ToArray(); 1015object[] memberAttributes = member.GetCustomAttributes(typeof(IgnoreDataMemberAttribute), false).ToArray();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (5)
1539.ToArray(); 1580object[] collectionContractAttributes = type.GetTypeInfo().GetCustomAttributes(Globals.TypeOfCollectionDataContractAttribute, false).ToArray(); 1723string ns = GetGlobalDataContractNamespace(clrNs, type.GetTypeInfo().Module.GetCustomAttributes(typeof(ContractNamespaceAttribute)).ToArray()); 1725ns = GetGlobalDataContractNamespace(clrNs, type.GetTypeInfo().Assembly.GetCustomAttributes(typeof(ContractNamespaceAttribute)).ToArray()); 2076object[] knownTypeAttributes = type.GetTypeInfo().GetCustomAttributes(Globals.TypeOfKnownTypeAttribute, false).ToArray();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\EnumDataContract.cs (2)
285object[] memberAttributes = field.GetCustomAttributes(Globals.TypeOfEnumMemberAttribute, false).ToArray(); 305object[] dataMemberAttributes = field.GetCustomAttributes(Globals.TypeOfDataMemberAttribute, false).ToArray();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\Globals.cs (3)
1025matchedMethods = matchedMethods.Where(method => TypeSequenceEqual(method.GetParameters().Select(param => param.ParameterType).ToArray(), parameterTypes)); 1032var constructorInfo = FilterMethodBases(constructorInfos.Cast<MethodBase>().ToArray(), parameterTypes, ".ctor"); 1039var methodInfo = FilterMethodBases(methodInfos.Cast<MethodBase>().ToArray(), parameterTypes, methodName);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaExporter.cs (1)
36object[] attrs = clrType.GetTypeInfo().GetCustomAttributes(Globals.TypeOfXmlSchemaProviderAttribute, false).ToArray();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlDataContract.cs (1)
248object[] xmlRootAttributes = (UnderlyingType == null) ? null : UnderlyingType.GetTypeInfo().GetCustomAttributes(Globals.TypeOfXmlRootAttribute, false).ToArray();
FrameworkFork\System.ServiceModel\Extensions\ReflectionExtensions.cs (1)
40return Enumerable.ToArray(type.GetTypeInfo().ImplementedInterfaces);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageContent.cs (1)
96var actionParams = (from p in Headers.ContentType.Parameters where p.Name == "action" select p).ToArray();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\CustomAttributeProvider.cs (8)
65return this.Type.GetTypeInfo().GetCustomAttributes(inherit).ToArray(); 67return this.MethodInfo.GetCustomAttributes(inherit).ToArray(); 69return this.MemberInfo.GetCustomAttributes(inherit).ToArray(); 71return this.ParameterInfo.GetCustomAttributes(inherit).ToArray(); 82return this.Type.GetTypeInfo().GetCustomAttributes(attributeType, inherit).ToArray(); 84return this.MethodInfo.GetCustomAttributes(attributeType, inherit).ToArray(); 86return this.MemberInfo.GetCustomAttributes(attributeType, inherit).ToArray(); 90return customAttributes == null ? null : customAttributes.ToArray();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (1)
790MethodInfo[] endMethods = beginMethod.DeclaringType.GetTypeInfo().GetDeclaredMethods(endMethodName).ToArray();
dotnet-user-jwts (2)
Helpers\JwtAuthenticationSchemeSettings.cs (1)
24[nameof(TokenValidationParameters.ValidAudiences)] = new JsonArray(Audiences.Select(aud => JsonValue.Create(aud)).ToArray()),
src\Tools\Shared\CommandLine\DebugHelper.cs (1)
21args = args.Skip(1).ToArray();
dotnet-user-secrets (1)
src\Tools\Shared\CommandLine\DebugHelper.cs (1)
21args = args.Skip(1).ToArray();
GetDocument.Insider (2)
.packages\microsoft.extensions.hostfactoryresolver.sources\10.0.0-alpha.1.24572.1\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (1)
168args = args.Concat(new[] { "--applicationName", assemblyName }).ToArray();
src\Tools\Shared\CommandLine\DebugHelper.cs (1)
21args = args.Skip(1).ToArray();
HostedBlazorWebassemblyApp.Server (1)
Data\WeatherForecastService.cs (1)
26}).ToArray());
HtmlGenerationWebSite (1)
ProductsService.cs (1)
52_products[category] = products.ToArray();
HttpStress (4)
Program.cs (4)
371clientOperations = opIndices.Select(i => clientOperations[i]).ToArray(); 443new StringValues(Enumerable.Range(0, i).Select(id => "value" + id).ToArray())); 452new StringValues(Enumerable.Range(0, i).Select(id => "value" + id).ToArray())); 614})).ToArray());
IdeCoreBenchmarks (3)
Program.cs (3)
25AddLogger(DefaultConfig.Instance.GetLoggers().ToArray()); 26AddExporter(DefaultConfig.Instance.GetExporters().ToArray()); 27AddColumnProvider(DefaultConfig.Instance.GetColumnProviders().ToArray());
Identity.ExternalClaims (1)
Pages\Account\Manage\GenerateRecoveryCodes.cshtml.cs (1)
45RecoveryCodes = recoveryCodes.ToArray();
IIS.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (1)
71matchedEntries = entries.Where(entry => expectedRegex.IsMatch(entry.Message)).ToArray();
src\Servers\IIS\IIS\test\IIS.Shared.FunctionalTests\ApplicationInitializationTests.cs (1)
72var matchedEntries = entries.Where(entry => expectedRegex.IsMatch(entry.Message)).ToArray();
IIS.LongTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (1)
71matchedEntries = entries.Where(entry => expectedRegex.IsMatch(entry.Message)).ToArray();
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
1517var matchedEntries = entries.Where(entry => expectedRegex.IsMatch(entry.Message)).ToArray();
IIS.NewHandler.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (1)
71matchedEntries = entries.Where(entry => expectedRegex.IsMatch(entry.Message)).ToArray();
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
1517var matchedEntries = entries.Where(entry => expectedRegex.IsMatch(entry.Message)).ToArray();
IIS.NewShim.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (1)
71matchedEntries = entries.Where(entry => expectedRegex.IsMatch(entry.Message)).ToArray();
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
1517var matchedEntries = entries.Where(entry => expectedRegex.IsMatch(entry.Message)).ToArray();
IIS.ShadowCopy.Tests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (1)
71matchedEntries = entries.Where(entry => expectedRegex.IsMatch(entry.Message)).ToArray();
IISExpress.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (1)
71matchedEntries = entries.Where(entry => expectedRegex.IsMatch(entry.Message)).ToArray();
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
1517var matchedEntries = entries.Where(entry => expectedRegex.IsMatch(entry.Message)).ToArray();
illink (13)
ILLink.RoslynAnalyzer (4)
src\tools\illink\src\ILLink.Shared\Annotations.cs (1)
83 return values.ToArray ();
src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (1)
701 _annotations.GetMethodParameterValue (new (calledMethod, (ParameterIndex) 1), DynamicallyAccessedMemberTypes.None).GetDiagnosticArgumentsForAnnotationMismatch ().ToArray ());
src\tools\illink\src\ILLink.Shared\TrimAnalysis\RequireDynamicallyAccessedMembersAction.cs (1)
67 _diagnosticContext.AddDiagnostic (diagnosticId, targetValue.GetDiagnosticArgumentsForAnnotationMismatch ().ToArray ());
TrimAnalysis\TrimAnalysisVisitor.cs (1)
110 var elements = operation.Initializer?.ElementValues.Select (val => Visit (val, state)).ToArray () ?? System.Array.Empty<MultiValue> ();
ILLink.Tasks (1)
ComputeManagedAssemblies.cs (1)
30 .ToArray ();
Infrastructure.Common (3)
xunit\WcfTestCase.cs (1)
78etwOutput.AppendLine(string.Format(DisplayName + ": " + item.Message, item.Payload.ToArray()));
xunit\WcfTestDiscoverer.cs (2)
33IssueAttribute[] issues = testMethodInfo.GetCustomAttributes<IssueAttribute>().ToArray(); 60ConditionAttribute[] conditions = testMethodInfo.GetCustomAttributes<ConditionAttribute>().ToArray();
InMemory.FunctionalTests (15)
BadHttpRequestTests.cs (1)
576await connection.ReceiveEnd(lines.Where(f => f != null).ToArray());
ChunkedRequestTests.cs (3)
342var fullRequest = sendSequence.ToArray(); 473var fullRequest = sendSequence.ToArray(); 647var fullRequest = sendSequence.ToArray();
ConnectionLimitTests.cs (1)
145var actions = Enumerable.Repeat(AssertCounter, i + 1).ToArray();
Http2\Http2ConnectionTests.cs (4)
4852.ToArray(); 6032var headerBlock = headerBlockStart.Concat(bytes).Concat(headerBlockEnd).ToArray(); 6139data.Add(new byte[] { 0x01, 0x09 }.Concat(Encoding.ASCII.GetBytes("127.0.0.1")).ToArray(), CoreStrings.HttpErrorTrailersContainPseudoHeaderField); 6145.ToArray(), CoreStrings.HttpErrorTrailerNameUppercase);
Http2\Http2TestBase.cs (1)
985.ToDictionary(g => g.Key, g => new StringValues(g.Select(values => values.Value).ToArray()));
RequestTests.cs (2)
1449await connection.Send(requestData.ToArray()); 1451await connection.ReceiveEnd(responseData.ToArray());
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (1)
715.ToDictionary(g => g.Key, g => new StringValues(g.Select(values => values.Value).ToArray()));
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (2)
116MemoryPoolThrowHelper.ThrowInvalidOperationException_DisposingPoolWithActiveBlocks(_totalBlocks - _blocks.Count, _totalBlocks, _blocks.ToArray()); 158MemoryPoolThrowHelper.ThrowInvalidOperationException_BlocksWereNotReturnedInTime(_totalBlocks - _blocks.Count, _totalBlocks, _blocks.ToArray());
installer.tasks (12)
GenerateFileVersionProps.cs (1)
111.ToArray();
RegenerateDownloadTable.cs (5)
70.ToArray(); 72string[] rows = Platforms.Select(p => CreateRow(p, links)).ToArray(); 83}).ToArray(); 91.ToArray(); 96.ToArray();
StaticFileRegeneration\RegenerateThirdPartyNotices.cs (2)
145.ToArray(); 151.ToArray();
StaticFileRegeneration\TpnDocument.cs (2)
14var headers = TpnSectionHeader.ParseAll(lines).ToArray(); 43.ToArray();
StaticFileRegeneration\TpnSectionHeader.cs (2)
98.ToArray(); 137.ToArray();
Interop.FunctionalTests (1)
Http2\Http2RequestTests.cs (1)
233var randomBytes = Enumerable.Range(1, DataLength).Select(i => (byte)((i % 10) + 48)).ToArray();
Keycloak.ApiService (1)
Program.cs (1)
37.ToArray();
KeyManagementSimulator (1)
Program.cs (1)
107var startOffsetsMs = Enumerable.Range(0, instanceCount).ToArray();
Microsoft.Analyzers.Extra (1)
CallAnalysis\Fixers\LegacyLoggingFixer.FixDetails.cs (1)
45var children = op.ChildOperations.ToArray();
Microsoft.Analyzers.Extra.Tests (1)
Resources\AnalyzerOptionsFactory.cs (1)
16var files = fileNames.Select(name => (AdditionalText)new FileVisibleToAnalyzer(name)).ToArray();
Microsoft.Analyzers.Local (2)
ApiLifecycle\Utils.cs (2)
28? substrings[1].Split(_comma).Select(x => x.Trim()).ToArray() 29: substrings[2].Split(_comma).Select(x => x.Trim()).ToArray();
Microsoft.Analyzers.Local.Tests (1)
Resources\AnalyzerOptionsFactory.cs (1)
16var files = fileNames.Select(name => (AdditionalText)new FileVisibleToAnalyzer(name)).ToArray();
Microsoft.Arcade.Common (2)
MSBuildTaskBase.cs (2)
70return GetType().GetMethod(ExecuteMethodName).GetParameters().Select(p => p.ParameterType).ToArray(); 81return GetExecuteParameterTypes().Select(t => serviceProvider.GetRequiredService(t)).ToArray();
Microsoft.AspNetCore.Analyzer.Testing (3)
DiagnosticAnalyzerRunner.cs (1)
113return diagnostics.OrderBy(d => d.Location.SourceSpan.Start).ToArray();
DiagnosticVerifier.cs (2)
131return diagnostics.OrderBy(d => d.Location.SourceSpan.Start).ToArray(); 142var documents = project.Documents.ToArray();
Microsoft.AspNetCore.Analyzers.Test (1)
ConfigureMethodVisitorTest.cs (1)
88.ToArray();
Microsoft.AspNetCore.Antiforgery.Test (2)
DefaultAntiforgeryTokenSerializerTest.cs (1)
171return data.Take(data.Length - 1).ToArray();
DefaultClaimUidExtractorTest.cs (1)
65.ToArray();
Microsoft.AspNetCore.App.Analyzers.Test (5)
Infrastructure\AmbiguousRoutePatternComparerTests.cs (1)
82var token = parsedStatement.DescendantTokens().ToArray()[3];
Infrastructure\WellKnownTypesTests.cs (1)
64Stream assemblyStream = GetInMemoryAssemblyStreamForCode(referenceSource, assemblyName, project.MetadataReferences.ToArray());
RouteEmbeddedLanguage\RoutePatternClassifierTests.cs (1)
33var actualFormatted = actualOrdered.Select(a => new FormattedClassification(rewrittenCode.Substring(a.TextSpan.Start, a.TextSpan.Length), a.ClassificationType)).ToArray();
RouteEmbeddedLanguage\RoutePatternParserTests.cs (1)
36var token = parsedStatement.DescendantTokens().ToArray()[3];
TestDiagnosticAnalyzer.cs (1)
36return result.ToArray();
Microsoft.AspNetCore.Authentication.Core (2)
AuthenticationSchemeProvider.cs (2)
155_schemesCopy = _schemes.Values.ToArray(); 200_schemesCopy = _schemes.Values.ToArray();
Microsoft.AspNetCore.Authorization.Policy (1)
AuthorizationEndpointConventionBuilderExtensions.cs (1)
46return builder.RequireAuthorization(policyNames.Select(n => new AuthorizeAttribute(n)).ToArray());
Microsoft.AspNetCore.BrowserTesting (3)
BrowserManager.cs (1)
177result.Add(item.Cast<object>().Prepend(browser).ToArray());
BrowserManagerConfiguration.cs (2)
210argsMap => argsMap.SelectMany(argNameValue => argNameValue.Value.Prepend(argNameValue.Key)).ToArray()), 299true => configuration.Get<Dictionary<string, bool>>().Where(kvp => kvp.Value == true).Select(kvp => kvp.Key).ToArray()
Microsoft.AspNetCore.Components (4)
RenderTree\Renderer.cs (1)
95: serviceProvider.GetServices<ICascadingValueSupplier>().ToArray();
src\Http\Routing\src\Patterns\RoutePatternFactory.cs (2)
470var updatedSegments = segments.ToArray(); 555updatedParts = segment.Parts.ToArray();
src\Http\Routing\src\Tree\TreeRouteBuilder.cs (1)
292trees.Values.OrderBy(tree => tree.Order).ToArray(),
Microsoft.AspNetCore.Components.Analyzers.Tests (6)
Helpers\CodeFixVerifier.Helper.cs (2)
43var oldArray = diagnostics.OrderBy(d => d.Location.SourceSpan.Start).ToArray(); 44var newArray = newDiagnostics.OrderBy(d => d.Location.SourceSpan.Start).ToArray();
Helpers\DiagnosticVerifier.Helper.cs (2)
97return diagnostics.OrderBy(d => d.Location.SourceSpan.Start).ToArray(); 117var documents = project.Documents.ToArray();
Verifiers\DiagnosticVerifier.cs (2)
113string diagnosticsOutput = actualResults.Any() ? FormatDiagnostics(analyzer, actualResults.ToArray()) : " NONE."; 136var additionalLocations = actual.AdditionalLocations.ToArray();
Microsoft.AspNetCore.Components.Authorization.Tests (2)
src\Components\Shared\test\CapturedBatch.cs (1)
35cloneBuilder.Append(diff.Edits.ToArray(), 0, diff.Edits.Count);
src\Components\Shared\test\TestRenderer.cs (1)
125capturedBatch.ReferenceFrames = renderBatch.ReferenceFrames.AsEnumerable().ToArray();
Microsoft.AspNetCore.Components.Endpoints (1)
Builder\RazorComponentEndpointDataSource.cs (1)
51_renderModeEndpointProviders = renderModeEndpointProviders.ToArray();
Microsoft.AspNetCore.Components.Endpoints.Tests (9)
Binding\FormDataMapperTests.cs (8)
953Assert.Equal(expected.OrderBy(o => o.Key).ToArray(), dictionary.OrderBy(o => o.Key).ToArray()); 1007Assert.Equal(expected.OrderBy(o => o.Key).ToArray(), dictionary.OrderBy(o => o.Key).ToArray()); 1037Assert.Equal(expected.OrderBy(o => o.Key).ToArray(), dictionary.OrderBy(o => o.Key).ToArray()); 1248Assert.Equal(expected.OrderBy(o => o.Key).ToArray(), dictionary.OrderBy(o => o.Key).ToArray());
RazorComponentsServiceCollectionExtensionsTest.cs (1)
127.ToArray();
Microsoft.AspNetCore.Components.Forms.Tests (2)
src\Components\Shared\test\CapturedBatch.cs (1)
35cloneBuilder.Append(diff.Edits.ToArray(), 0, diff.Edits.Count);
src\Components\Shared\test\TestRenderer.cs (1)
125capturedBatch.ReferenceFrames = renderBatch.ReferenceFrames.AsEnumerable().ToArray();
Microsoft.AspNetCore.Components.QuickGrid (1)
QuickGrid.razor.cs (1)
384var resultArray = _asyncQueryExecutor is null ? result.ToArray() : await _asyncQueryExecutor.ToArrayAsync(result);
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (6)
Helpers\CodeFixVerifier.Helper.cs (2)
43var oldArray = diagnostics.OrderBy(d => d.Location.SourceSpan.Start).ToArray(); 44var newArray = newDiagnostics.OrderBy(d => d.Location.SourceSpan.Start).ToArray();
Helpers\DiagnosticVerifier.Helper.cs (2)
97return diagnostics.OrderBy(d => d.Location.SourceSpan.Start).ToArray(); 117var documents = project.Documents.ToArray();
Verifiers\DiagnosticVerifier.cs (2)
113string diagnosticsOutput = actualResults.Any() ? FormatDiagnostics(analyzer, actualResults.ToArray()) : " NONE."; 136var additionalLocations = actual.AdditionalLocations.ToArray();
Microsoft.AspNetCore.Components.Server (1)
Circuits\CircuitFactory.cs (1)
95.ToArray();
Microsoft.AspNetCore.Components.Server.Tests (7)
Circuits\ServerComponentDeserializerTest.cs (4)
159var markers = SerializeMarkers(Enumerable.Reverse(CreateMarkers(typeof(TestComponent), typeof(TestComponent))).ToArray()); 173var markers = SerializeMarkers(firstChain.Concat(secondChain).ToArray()); 185var markers = SerializeMarkers(CreateMarkers(typeof(TestComponent), typeof(TestComponent)).Skip(1).ToArray()); 199.ToArray();
ComponentEndpointRouteBuilderExtensionsTest.cs (1)
113populatedMetadata = b.Metadata.OfType<string>().ToArray();
src\SignalR\common\SignalR.Common\test\Internal\Protocol\TestBinder.cs (2)
21_paramTypes = i.Arguments?.Select(a => a?.GetType() ?? typeof(object))?.ToArray(); 24_paramTypes = i.Arguments?.Select(a => a?.GetType() ?? typeof(object))?.ToArray();
Microsoft.AspNetCore.Components.Tests (30)
CascadingParameterTest.cs (1)
845var components = Enumerable.Range(0, numSubscribers).Select(_ => new SimpleSubscriberComponent()).ToArray();
Lifetime\ComponentStatePersistenceManagerTest.cs (1)
100Assert.Equal(data, JsonSerializer.Deserialize<byte[]>(persisted.ToArray()));
RendererTest.cs (16)
265var logForParent = log.Where(l => l.id == 0).ToArray(); 266var logForChild = log.Where(l => l.id == 1).ToArray(); 424var logForParent = log.Where(l => l.id == 0).ToArray(); 425var logForChild = log.Where(l => l.id == 1).ToArray(); 468var logForParent = log.Where(l => l.id == 0).ToArray(); 469var logForChild = log.Where(l => l.id == 1).ToArray(); 528var logForParent = log.Where(l => l.id == 0).ToArray(); 529var logForFirstChild = log.Where(l => l.id == 1).ToArray(); 530var logForSecondChild = log.Where(l => l.id == 2).ToArray(); 531var logForThirdChild = log.Where(l => l.id == 3).ToArray(); 3424.ToArray(); 4355Assert.Collection(batch2.DiffsInOrder.Single().Edits.ToArray(), edit => 4407Assert.Collection(latestBatch.DiffsInOrder.Single().Edits.ToArray(), edit => 4627.Select(f => (TestErrorBoundary)f.Component).ToArray(); 5654var parametersSetEvent = logStream.Where(le => le == (expectedId, NestedAsyncComponent.EventType.OnParametersSet)).ToArray(); 5661.ToArray();
Rendering\ArrayBuilderTest.cs (4)
68var array = Enumerable.Repeat(8, 5).ToArray(); 83var array = Enumerable.Repeat(8, 5).ToArray(); 98var array = Enumerable.Repeat(8, 5).ToArray(); 118var array = Enumerable.Repeat(17, size).ToArray();
Rendering\RenderTreeBuilderTest.cs (4)
269var frames = builder.GetFrames().AsEnumerable().ToArray(); 308var frames = builder.GetFrames().AsEnumerable().ToArray(); 342var frames = builder.GetFrames().AsEnumerable().ToArray(); 418var frames = builder.GetFrames().AsEnumerable().ToArray();
RenderTreeDiffBuilderTest.cs (1)
2405return (diffsInBatch.Array[0], batch.ReferenceFrames.AsEnumerable().ToArray(), batch);
Routing\RouteTableFactoryTests.cs (1)
1143.ToDictionary(group => group.Key, group => group.Select(g => g.Template).ToArray());
src\Components\Shared\test\CapturedBatch.cs (1)
35cloneBuilder.Append(diff.Edits.ToArray(), 0, diff.Edits.Count);
src\Components\Shared\test\TestRenderer.cs (1)
125capturedBatch.ReferenceFrames = renderBatch.ReferenceFrames.AsEnumerable().ToArray();
Microsoft.AspNetCore.Components.Web.Tests (2)
src\Components\Shared\test\CapturedBatch.cs (1)
35cloneBuilder.Append(diff.Edits.ToArray(), 0, diff.Edits.Count);
src\Components\Shared\test\TestRenderer.cs (1)
125capturedBatch.ReferenceFrames = renderBatch.ReferenceFrames.AsEnumerable().ToArray();
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
TargetPickerUi.cs (1)
54var bytesWithHeader = Encoding.UTF8.GetBytes($"{bytes.Length}:").Concat(bytes).ToArray();
Microsoft.AspNetCore.Components.WebAssembly.Tests (3)
PullFromJSDataStreamTest.cs (3)
130return ValueTask.FromResult((TValue)(object)_data.Skip((int)offset).Take(bytesToRead).ToArray()); 149return ValueTask.FromResult((TValue)(object)_data.Skip((int)offset).Take(bytesToRead - 1).ToArray()); 163return ValueTask.FromResult((TValue)(object)_data.Skip((int)offset).Take(bytesToRead + 1).ToArray());
Microsoft.AspNetCore.Components.WebViewE2E.Test (1)
BasicBlazorHybridTest.cs (1)
31var thisAppFiles = Directory.GetFiles(thisProgramDir, "*", SearchOption.AllDirectories).ToArray();
Microsoft.AspNetCore.Cors (7)
Infrastructure\CorsPolicyBuilder.cs (4)
247WithOrigins(policy.Origins.ToArray()); 248WithHeaders(policy.Headers.ToArray()); 249WithExposedHeaders(policy.ExposedHeaders.ToArray()); 250WithMethods(policy.Methods.ToArray());
Infrastructure\CorsService.cs (3)
180headers.SetCommaSeparatedValues(CorsConstants.AccessControlAllowHeaders, result.AllowedHeaders.ToArray()); 185headers.SetCommaSeparatedValues(CorsConstants.AccessControlAllowMethods, result.AllowedMethods.ToArray()); 199headers.SetCommaSeparatedValues(CorsConstants.AccessControlExposeHeaders, result.AllowedExposedHeaders.ToArray());
Microsoft.AspNetCore.Cryptography.Internal.Tests (1)
Cng\BCryptUtilTests.cs (1)
44Guid newGuid = new Guid(bytes.Skip(3).Take(sizeof(Guid)).ToArray());
Microsoft.AspNetCore.DataProtection (2)
KeyManagement\XmlKeyManager.cs (2)
432var deletableElementsArray = deletableElements.ToArray(); 434var allElements = deletableElements.Select(d => d.Element).ToArray();
Microsoft.AspNetCore.DataProtection.Tests (13)
Cng\CbcAuthenticatedEncryptorTests.cs (1)
68byte[] invalidCiphertext_tooLong = validCiphertext.Concat(new byte[] { 0 }).ToArray();
Cng\GcmAuthenticatedEncryptorTests.cs (1)
62byte[] invalidCiphertext_tooLong = validCiphertext.Concat(new byte[] { 0 }).ToArray();
KeyManagement\KeyRingBasedDataProtectorTests.cs (3)
150badProtectedPayload = badProtectedPayload.Take(badProtectedPayload.Length - 1).ToArray(); // chop off the last byte 636return expectedAad.ToArray(); 643.Concat(ciphertext).ToArray();
KeyManagement\XmlKeyManagerTests.cs (7)
368var keys = RunGetAllKeysCore(xml, mockActivator.Object).ToArray(); 445var keys = RunGetAllKeysCore(xml, mockActivator.Object).ToArray(); 483var keys = RunGetAllKeysCore(xml, mockActivator.Object).ToArray(); 522var keys = RunGetAllKeysCore(xml, mockActivator.Object).ToArray(); 548RunGetAllKeysCore(xml, new Mock<IActivator>().Object, loggerFactory).ToArray(); 572RunGetAllKeysCore(xml, new Mock<IActivator>().Object, loggerFactory).ToArray(); 599mockXmlRepository.Setup(o => o.GetAllElements()).Returns(XElement.Parse(xml).Elements().ToArray());
Managed\ManagedAuthenticatedEncryptorTests.cs (1)
63byte[] invalidCiphertext_tooLong = validCiphertext.Concat(new byte[] { 0 }).ToArray();
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
112.ToArray();
Microsoft.AspNetCore.Diagnostics (4)
src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (4)
154.ToArray(); 160frame.PreContextCode = codeBlock.Take(errorStartLineNumberInArray).ToArray(); 164.ToArray(); 167.ToArray();
Microsoft.AspNetCore.Diagnostics.Middleware (4)
Latency\RequestLatencyTelemetryMiddleware.cs (1)
42_latencyDataExporters = latencyDataExporters.ToArray();
Logging\HeaderReader.cs (1)
25_headers = headersToLog.Count == 0 ? [] : headersToLog.ToArray();
Logging\HttpLoggingRedactionInterceptor.cs (2)
48_enrichers = httpLogEnrichers.ToArray(); 61_excludePathStartsWith = optionsValue.ExcludePathStartsWith.ToArray();
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Latency\ChecpointAcceptanceTests.cs (1)
129var timeHeaders = response.Headers.GetValues("Server-Timing").ToArray();
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (3)
UnaryServerCallHandlerTests.cs (3)
936var details = responseJson.RootElement.GetProperty("details").EnumerateArray().ToArray(); 1014var details = responseJson.RootElement.GetProperty("details").EnumerateArray().ToArray(); 1795["field_mask_value.paths"] = new StringValues(fieldmask.Paths.ToArray()),
Microsoft.AspNetCore.Hosting (5)
Internal\StartupLoader.cs (1)
177.ToArray();
src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (4)
154.ToArray(); 160frame.PreContextCode = codeBlock.Take(errorStartLineNumberInArray).ToArray(); 164.ToArray(); 167.ToArray();
Microsoft.AspNetCore.Hosting.Tests (5)
HostingApplicationDiagnosticsTests.cs (1)
869Assert.Equal(expectedBaggage, Activity.Current.Baggage.ToArray());
StaticWebAssets\ManifestStaticWebAssetsFileProviderTests.cs (4)
439Assert.Equal(new[] { (true, "_content") }, contents.Select(e => (e.IsDirectory, e.Name)).OrderBy(e => e.Name).ToArray()); 472contents.Select(e => (e.IsDirectory, e.Name)).OrderBy(e => e.Name).ToArray()); 490contents.Select(e => (e.IsDirectory, e.Name)).OrderBy(e => e.Name).ToArray()); 606contents.Select(e => (e.IsDirectory, e.Name)).OrderBy(e => e.Name).ToArray());
Microsoft.AspNetCore.Http (1)
Internal\RequestCookieCollection.cs (1)
235public DictionaryItemDebugView<string, string>[] Items => _collection.Select(pair => new DictionaryItemDebugView<string, string>(pair)).ToArray();
Microsoft.AspNetCore.Http.Abstractions (1)
Routing\EndpointMetadataCollection.cs (1)
40_items = items.ToArray();
Microsoft.AspNetCore.Http.Connections.Tests (3)
MapConnectionHandlerTests.cs (1)
390Assert.Equal(new[] { "protocol1", "protocol2" }, subprotocols.ToArray());
WebSocketsTests.cs (2)
365Assert.Equal(providedSubProtocols, protocols.ToArray()); 374context.Request.Headers.Add(HeaderNames.WebSocketSubProtocols, providedSubProtocols.ToArray());
Microsoft.AspNetCore.Http.Extensions (1)
ProblemDetailsService.cs (1)
15_writers = writers.ToArray();
Microsoft.AspNetCore.Http.Extensions.Tests (3)
RequestDelegateFactoryTests.cs (2)
835return ExplicitFromBodyActions.Concat(ImplicitFromBodyActions).ToArray(); 1111return ImplicitFromServiceActions.Concat(ExplicitFromServiceActions).ToArray();
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
170var endpoints = dataSource.Endpoints.ToArray();
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
170var endpoints = dataSource.Endpoints.ToArray();
Microsoft.AspNetCore.Http.Results (3)
ChallengeHttpResult.cs (1)
99ChallengeResultExecuting(logger, authenticationSchemes.ToArray());
ForbidHttpResult.cs (1)
110ForbidResultExecuting(logger, authenticationSchemes.ToArray());
SignOutHttpResult.cs (1)
99SignOutResultExecuting(logger, authenticationSchemes.ToArray());
Microsoft.AspNetCore.Http.Results.Tests (3)
src\Shared\ResultsTests\FileStreamResultTestBase.cs (2)
378.Select(b => (byte)(b % 20)).ToArray(); 403.Select(b => (byte)(b % 20)).ToArray();
TypedResultsTests.cs (1)
1397Assert.Equal(content, result.ResponseContent.ToArray());
Microsoft.AspNetCore.HttpLogging (1)
HttpLoggingMiddleware.cs (1)
39_interceptors = interceptors.ToArray();
Microsoft.AspNetCore.HttpLogging.Tests (7)
FileLoggerProcessorTests.cs (7)
189.ToArray(); 244.ToArray().Length); 312.ToArray(); 336.ToArray(); 396.ToArray(); 462.ToArray(); 532.ToArray();
Microsoft.AspNetCore.Identity (1)
IdentityApiEndpointRouteBuilderExtensions.cs (1)
306recoveryCodes = recoveryCodesEnumerable?.ToArray();
Microsoft.AspNetCore.Identity.FunctionalTests (6)
Extensions\HtmlAssert.cs (1)
29.ToArray();
MapIdentityApiTests.cs (4)
747var recoveryCodes = enable2faContent.GetProperty("recoveryCodes").EnumerateArray().Select(e => e.GetString()).ToArray(); 844var recoveryCodes = enable2faContent.GetProperty("recoveryCodes").EnumerateArray().Select(e => e.GetString()).ToArray(); 875var resetRecoveryCodes = resetRecoveryContent.GetProperty("recoveryCodes").EnumerateArray().Select(e => e.GetString()).ToArray(); 1353public static object[][] AddIdentityModes => AddIdentityActions.Keys.Select(key => new object[] { key }).ToArray();
Pages\Account\Manage\ShowRecoveryCodes.cs (1)
17Context.RecoveryCodes = Codes.ToArray();
Microsoft.AspNetCore.Identity.UI (5)
Areas\Identity\Pages\V4\Account\Manage\EnableAuthenticator.cshtml.cs (1)
152RecoveryCodes = recoveryCodes!.ToArray();
Areas\Identity\Pages\V4\Account\Manage\GenerateRecoveryCodes.cshtml.cs (1)
90RecoveryCodes = recoveryCodes!.ToArray();
Areas\Identity\Pages\V5\Account\Manage\EnableAuthenticator.cshtml.cs (1)
152RecoveryCodes = recoveryCodes!.ToArray();
Areas\Identity\Pages\V5\Account\Manage\GenerateRecoveryCodes.cshtml.cs (1)
90RecoveryCodes = recoveryCodes!.ToArray();
IdentityBuilderUIExtensions.cs (1)
71var environment = builder.Services.Where(d => d.ServiceType == typeof(IWebHostEnvironment)).ToArray();
Microsoft.AspNetCore.InternalTesting (3)
Tracing\EventAssert.cs (3)
30asserts.Select(a => a.CreateAsserter()).ToArray()); 59Assert.Collection(evt.PayloadNames, _payloadAsserters.Select(CreateNameAsserter).ToArray()); 60Assert.Collection(evt.Payload, _payloadAsserters.Select(t => t.asserter).ToArray());
Microsoft.AspNetCore.Mvc.Abstractions (2)
ModelBinding\BindingInfo.cs (1)
149var propertyFilterProviders = attributes.OfType<IPropertyFilterProvider>().ToArray();
ModelBinding\ModelStateDictionary.cs (1)
1264public DictionaryItemDebugView<string, ModelStateEntry?>[] Items => _dictionary.Select(pair => new DictionaryItemDebugView<string, ModelStateEntry?>(pair)).ToArray();
Microsoft.AspNetCore.Mvc.Api.Analyzers (2)
SymbolApiResponseMetadataProvider.cs (2)
163var attributes = method.ContainingType.GetAttributes(symbolCache.ApiConventionTypeAttribute, inherit: true).ToArray(); 166attributes = method.ContainingAssembly.GetAttributes(symbolCache.ApiConventionTypeAttribute).ToArray();
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
ApiDescriptionGroupCollectionProvider.cs (2)
79.Select(g => new ApiDescriptionGroup(g.Key, g.ToArray())) 80.ToArray();
DefaultApiDescriptionProvider.cs (1)
496.ToArray();
Microsoft.AspNetCore.Mvc.Core (67)
ActionConstraints\ActionConstraintCache.cs (1)
25_actionConstraintProviders = actionConstraintProviders.OrderBy(item => item.Order).ToArray();
ApiConventionMethodAttribute.cs (1)
51.ToArray();
ApiConventionTypeAttribute.cs (1)
65.ToArray();
ApiExplorer\ApiConventionResult.cs (1)
46.ToArray();
ApplicationModels\ApiConventionApplicationModelConvention.cs (2)
63var apiConventionAttributes = controller.Attributes.OfType<ApiConventionTypeAttribute>().ToArray(); 67apiConventionAttributes = controllerAssembly.GetCustomAttributes<ApiConventionTypeAttribute>().ToArray();
ApplicationModels\ApplicationModelConventions.cs (7)
32var controllers = applicationModel.Controllers.ToArray(); 41.ToArray(); 48var actions = controller.Actions.ToArray(); 56.ToArray(); 63var parameters = action.Parameters.ToArray(); 71.ToArray(); 86var properties = controller.ControllerProperties.ToArray();
ApplicationModels\ApplicationModelFactory.cs (1)
29_applicationModelProviders = applicationModelProviders.OrderBy(p => p.Order).ToArray();
ApplicationModels\AuthorizationApplicationModelProvider.cs (2)
44var controllerModelAuthData = controllerModel.Attributes.OfType<IAuthorizeData>().ToArray(); 56var actionModelAuthData = actionModel.Attributes.OfType<IAuthorizeData>().ToArray();
ApplicationModels\DefaultApplicationModelProvider.cs (3)
126.ToArray(); 316.ToArray(); 636.ToArray();
ApplicationParts\RelatedAssemblyAttribute.cs (1)
62var attributes = assembly.GetCustomAttributes<RelatedAssemblyAttribute>().ToArray();
Authorization\AuthorizeFilter.cs (2)
189context.Result = new ChallengeResult(effectivePolicy.AuthenticationSchemes.ToArray()); 193context.Result = new ForbidResult(effectivePolicy.AuthenticationSchemes.ToArray());
ChallengeResult.cs (1)
119ChallengeResultExecuting(logger, schemes.ToArray());
Controllers\ControllerBinderDelegateProvider.cs (2)
41_ => actionDescriptor.Parameters.ToArray() 47_ => actionDescriptor.BoundProperties.ToArray()
Controllers\ControllerFactoryProvider.cs (1)
35_propertyActivators = propertyActivators.ToArray();
Controllers\DefaultControllerFactory.cs (1)
35_propertyActivators = propertyActivators.ToArray();
Controllers\DefaultControllerPropertyActivator.cs (1)
72return activators.ToArray();
DependencyInjection\ApplicationModelConventionExtensions.cs (6)
131var controllers = application.Controllers.ToArray(); 134var actions = controller.Actions.ToArray(); 137var parameters = action.Parameters.ToArray(); 189var controllers = application.Controllers.ToArray(); 192var actions = controller.Actions.ToArray(); 217var controllers = application.Controllers.ToArray();
ForbidResult.cs (1)
120ForbidResultExecuting(logger, authenticationSchemes.ToArray());
Infrastructure\ActionInvokerFactory.cs (1)
17_actionInvokerProviders = actionInvokerProviders.OrderBy(item => item.Order).ToArray();
Infrastructure\ActionSelectionTable.cs (1)
159return new ActionSelectionTable<T>(version, routeKeys.ToArray(), ordinalEntries, ordinalIgnoreCaseEntries);
Infrastructure\ControllerActionInvokerCache.cs (1)
35_filterProviders = filterProviders.OrderBy(item => item.Order).ToArray();
Infrastructure\ControllerActionInvokerProvider.cs (1)
47_valueProviderFactories = optionsAccessor.Value.ValueProviderFactories.ToArray();
Infrastructure\CopyOnWriteList.cs (1)
124public T[] Items => _collection.ToArray();
Infrastructure\DefaultActionDescriptorCollectionProvider.cs (2)
35.ToArray(); 37_actionDescriptorChangeProviders = actionDescriptorChangeProviders.ToArray();
ModelBinding\Binders\ArrayModelBinder.cs (1)
105return collection?.ToArray();
ModelBinding\DefaultPropertyFilterProvider.cs (1)
50var expression = ModelBindingHelper.GetPropertyFilterExpression(includeExpressions.ToArray());
ModelBinding\Metadata\DefaultBindingMetadataProvider.cs (1)
52var propertyFilterProviders = context.Attributes.OfType<IPropertyFilterProvider>().ToArray();
ModelBinding\Metadata\HasValidatorsValidationMetadataProvider.cs (1)
21_validatorProviders = modelValidatorProviders.Cast<IMetadataBasedModelValidatorProvider>().ToArray();
ModelBinding\Metadata\ModelAttributes.cs (7)
52PropertyAttributes = propertyAttributes.ToArray(); 53TypeAttributes = typeAttributes.ToArray(); 54Attributes = PropertyAttributes.Concat(TypeAttributes).ToArray(); 61ParameterAttributes = parameterAttributes.ToArray(); 62TypeAttributes = typeAttributes.ToArray(); 63Attributes = ParameterAttributes.Concat(TypeAttributes).ToArray(); 67Attributes = TypeAttributes = typeAttributes.ToArray();
ModelBinding\ModelBinderFactory.cs (1)
41_providers = options.Value.ModelBinderProviders.ToArray();
MvcCoreLoggerExtensions.cs (1)
95.ToArray();
Routing\ActionConstraintMatcherPolicy.cs (1)
196Candidates = items.Select(i => i.candidate).ToArray()
Routing\ActionEndpointFactory.cs (2)
34_requestDelegateFactories = requestDelegateFactories.ToArray(); 426builder.Metadata.Add(new AcceptsMetadata(consumesAttribute.ContentTypes.ToArray()));
Routing\AttributeRoute.cs (1)
113var handler = _handlerFactory(group.ToArray());
Routing\ControllerRequestDelegateFactory.cs (1)
49_valueProviderFactories = optionsAccessor.Value.ValueProviderFactories.ToArray();
Routing\EndpointRoutingUrlHelper.cs (1)
96public Endpoint[] Items => _helper._endpointDataSource.Endpoints.ToArray();
Routing\KnownRouteValueConstraint.cs (1)
110valuesCollection = new RouteValuesCollection(version, values.ToArray());
SerializableError.cs (1)
48}).ToArray();
SignOutResult.cs (1)
136SignOutResultExecuting(logger, authenticationSchemes.ToArray());
src\Shared\PropertyActivator\PropertyActivator.cs (2)
60return properties.Select(createActivateInfo).ToArray(); 77}).ToArray();
TypeFilterAttribute.cs (1)
66var argumentTypes = Arguments?.Select(a => a.GetType())?.ToArray();
Microsoft.AspNetCore.Mvc.Core.Test (53)
ApplicationModels\ControllerActionDescriptorProviderTests.cs (5)
358typeof(RouteValueController).GetTypeInfo()).ToArray(); 1403.ToArray(); 1407.ToArray(); 1418.ToArray(); 1424.ToArray();
ApplicationModels\DefaultApplicationModelProviderTest.cs (1)
39Assert.Equal(options.Filters.ToArray(), context.Result.Filters);
ApplicationParts\ApplicationPartManagerTest.cs (3)
34Assert.Equal(expectedResults, feature.Values.ToArray()); 55Assert.Equal(expectedResults, feature.Values.ToArray()); 73Assert.Empty(feature.Values.ToArray());
ConsumesAttributeTests.cs (4)
42var contentTypes = content.Split(',').Select(contentType => contentType.Trim()).ToArray(); 46() => new ConsumesAttribute(contentTypes[0], contentTypes.Skip(1).ToArray())); 62var contentTypes = content.Split(',').Select(contentType => contentType.Trim()).ToArray(); 66() => new ConsumesAttribute(contentTypes[0], contentTypes.Skip(1).ToArray()));
DependencyInjection\MvcBuilderExtensionsTest.cs (1)
88}.Select(t => t.GetTypeInfo()).ToArray();
DependencyInjection\MvcCoreServiceCollectionExtensionsTest.cs (1)
361.ToArray();
Infrastructure\ActionSelectionTableTest.cs (4)
164Assert.Equal(actions.ToArray(), matches.ToArray()); 199Assert.Equal(actions.ToArray(), matches.Select(e => e.Metadata.GetMetadata<ActionDescriptor>()).ToArray()); 334var expected = actions.Take(2).ToArray(); 383var expected = actions.Take(2).ToArray();
Infrastructure\ActionSelectorTest.cs (4)
143Assert.Equal(actions.ToArray(), candidates.ToArray()); 254var expected = actions.Take(2).ToArray(); 306var expected = actions.Take(2).ToArray();
Infrastructure\JsonResultExecutorTestBase.cs (1)
272var model = Enumerable.Range(0, 1000).Select(p => new TestModel { Property = new string('a', 5000) }).ToArray();
ModelBinding\Binders\CollectionModelBinderTest.cs (2)
87Assert.Equal(new[] { 42, 100, 200 }, list.ToArray()); 144Assert.Equal(new[] { 42, 100, 200 }, list.ToArray());
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (1)
1092var factory = TestModelBinderFactory.Create(options.Value.ModelBinderProviders.ToArray());
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (1)
1256var factory = TestModelBinderFactory.Create(options.Value.ModelBinderProviders.ToArray());
ModelBinding\Binders\HeaderModelBinderTests.cs (1)
307var headerValues = headerValue.Split(',').Select(s => s.Trim()).ToArray();
ModelBinding\CompositeValueProviderTest.cs (2)
20var originalProviders = ((CompositeValueProvider)provider).ToArray(); 166var originalProviders = provider.ToArray();
ModelBinding\Metadata\DefaultModelMetadataProviderTest.cs (6)
67var metadata = provider.GetMetadataForProperties(modelType).ToArray(); 93var metadata = provider.GetMetadataForProperties(typeof(ModelType)).ToArray(); 108var metadata = provider.GetMetadataForProperties(typeof(ModelTypeWithIndexer)).ToArray(); 122var properties1 = provider.GetMetadataForProperties(typeof(ModelType)).Cast<DefaultModelMetadata>().ToArray(); 123var properties2 = provider.GetMetadataForProperties(typeof(ModelType)).Cast<DefaultModelMetadata>().ToArray(); 163var attributes = defaultMetadata.Attributes.Attributes.ToArray();
ModelBinding\Metadata\DefaultModelMetadataTest.cs (4)
568Assert.Equal(expectedNames.ToArray(), properties.Select(p => p.PropertyName).ToArray()); 680Assert.Equal(expectedNames.ToArray(), properties.Select(p => p.PropertyName).ToArray());
ModelBinding\Metadata\ModelAttributesTest.cs (2)
40var rangeAttributes = attributes.Attributes.OfType<RangeAttribute>().ToArray(); 49rangeAttributes = attributes.PropertyAttributes.OfType<RangeAttribute>().ToArray();
ModelBinding\Validation\CompositeModelValidatorProviderTest.cs (1)
44validatorProviderContext.Results.ToArray());
ModelBinding\Validation\DefaultObjectValidatorTests.cs (1)
1199var validator = CreateValidator(providers: options.ModelMetadataDetailsProviders.ToArray());
ProducesAttributeTests.cs (4)
97var contentTypes = content.Split(',').Select(contentType => contentType.Trim()).ToArray(); 101() => new ProducesAttribute(contentTypes[0], contentTypes.Skip(1).ToArray())); 119var contentTypes = content.Split(',').Select(contentType => contentType.Trim()).ToArray(); 123() => new ProducesAttribute(contentTypes[0], contentTypes.Skip(1).ToArray()));
ProducesResponseTypeAttributeTests.cs (2)
38var contentTypes = content.Split(',').Select(contentType => contentType.Trim()).ToArray(); 42() => new ProducesResponseTypeAttribute(typeof(void), StatusCodes.Status200OK, contentTypes[0], contentTypes.Skip(1).ToArray()));
src\Shared\ResultsTests\FileStreamResultTestBase.cs (2)
378.Select(b => (byte)(b % 20)).ToArray(); 403.Select(b => (byte)(b % 20)).ToArray();
Microsoft.AspNetCore.Mvc.Cors.Test (3)
CorsAuthorizationFilterTest.cs (3)
204headers.Add(CorsConstants.AccessControlAllowHeaders, result1.AllowedHeaders.ToArray()); 205headers.Add(CorsConstants.AccessControlAllowMethods, result1.AllowedMethods.ToArray()); 206headers.Add(CorsConstants.AccessControlExposeHeaders, result1.AllowedExposedHeaders.ToArray());
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (1)
ModelMetadataProviderTest.cs (1)
1067_attributes.Concat(entry.ModelAttributes.TypeAttributes).ToArray(),
Microsoft.AspNetCore.Mvc.FunctionalTests (33)
AntiforgeryTestHelper.cs (1)
24var setCookieArray = response.Headers.GetValues("Set-Cookie").ToArray();
AntiforgeryTests.cs (6)
41var setCookieHeader = response.Headers.GetValues("Set-Cookie").ToArray(); 48var pragmaValue = Assert.Single(response.Headers.Pragma.ToArray()); 96var setCookieHeader = response.Headers.GetValues("Set-Cookie").ToArray(); 100var pragmaValue = Assert.Single(response.Headers.Pragma.ToArray()); 175var setCookieHeader = response.Headers.GetValues("Set-Cookie").ToArray(); 182var pragmaValue = Assert.Single(response.Headers.Pragma.ToArray());
ApiExplorerTest.cs (8)
629responseType.ResponseFormats.Select(responseFormat => responseFormat.MediaType).OrderBy(o => o).ToArray()); 635responseType.ResponseFormats.Select(responseFormat => responseFormat.MediaType).OrderBy(o => o).ToArray()); 661responseType.ResponseFormats.Select(responseFormat => responseFormat.MediaType).ToArray()); 667responseType.ResponseFormats.Select(responseFormat => responseFormat.MediaType).ToArray()); 693responseType.ResponseFormats.Select(responseFormat => responseFormat.MediaType).OrderBy(o => o).ToArray()); 699responseType.ResponseFormats.Select(responseFormat => responseFormat.MediaType).OrderBy(o => o).ToArray()); 725responseType.ResponseFormats.Select(responseFormat => responseFormat.MediaType).ToArray()); 731responseType.ResponseFormats.Select(responseFormat => responseFormat.MediaType).ToArray());
CorsTestsBase.cs (15)
57Assert.Equal(new[] { "*" }, header.Value.ToArray()); 170responseHeaders.GetValues(CorsConstants.AccessControlAllowOrigin).ToArray()); 173responseHeaders.GetValues(CorsConstants.AccessControlAllowCredentials).ToArray()); 176responseHeaders.GetValues(CorsConstants.AccessControlExposeHeaders).ToArray()); 203responseHeaders.GetValues(CorsConstants.AccessControlAllowOrigin).ToArray()); 206responseHeaders.GetValues(CorsConstants.AccessControlAllowCredentials).ToArray()); 209responseHeaders.GetValues(CorsConstants.AccessControlAllowHeaders).ToArray()); 212responseHeaders.GetValues(CorsConstants.AccessControlAllowMethods).ToArray()); 313responseHeaders.GetValues(CorsConstants.AccessControlAllowOrigin).ToArray()); 316responseHeaders.GetValues(CorsConstants.AccessControlAllowHeaders).ToArray()); 319responseHeaders.GetValues(CorsConstants.AccessControlAllowMethods).ToArray()); 345responseHeaders.GetValues(CorsConstants.AccessControlAllowOrigin).ToArray()); 348responseHeaders.GetValues(CorsConstants.AccessControlAllowCredentials).ToArray()); 351responseHeaders.GetValues(CorsConstants.AccessControlAllowHeaders).ToArray()); 354responseHeaders.GetValues(CorsConstants.AccessControlAllowMethods).ToArray());
RazorPagesTest.cs (1)
1513var setCookie = response.Headers.GetValues("Set-Cookie").ToArray();
TestingInfrastructureInheritanceTests.cs (2)
27Assert.Equal(new[] { "ConfigureWebHost", "Customization", "FurtherCustomization" }, factory.ConfigureWebHostCalled.ToArray()); 47Assert.Equal(new[] { "ConfigureWebHost", "Customization", "FurtherCustomization" }, factory.ConfigureWebHostCalled.ToArray());
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
HeaderModelBinderIntegrationTest.cs (1)
261expectedRawValue = value.Split(',').Select(v => v.Trim()).ToArray();
SimpleTypeModelBinderIntegrationTest.cs (1)
696Assert.Equal(new[] { "Address.Lines", "Address.Zip", "Name" }, modelState.Keys.OrderBy(p => p).ToArray());
Microsoft.AspNetCore.Mvc.Localization.Test (1)
MvcLocalizationServiceCollectionExtensionsTest.cs (1)
60.ToArray();
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
BsonTempDataSerializer.cs (1)
224return array.Values<TVal>().ToArray();
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (1)
src\Mvc\Mvc.Core\test\Infrastructure\JsonResultExecutorTestBase.cs (1)
272var model = Enumerable.Range(0, 1000).Select(p => new TestModel { Property = new string('a', 5000) }).ToArray();
Microsoft.AspNetCore.Mvc.Razor (3)
RazorPage.cs (2)
221sectionsNotIgnored = sectionsNotRendered.Except(_ignoredSections, StringComparer.OrdinalIgnoreCase).ToArray(); 225sectionsNotIgnored = sectionsNotRendered.ToArray();
TagHelpers\TagHelperComponentTagHelper.cs (1)
39_components = manager.Components.OrderBy(p => p.Order).ToArray();
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (3)
PageActionDescriptorChangeProvider.cs (2)
50var importFeatures = projectEngine.ProjectFeatures.OfType<IImportProjectFeature>().ToArray(); 83.ToArray();
RuntimeViewCompiler.cs (1)
299var importFeature = _projectEngine.ProjectFeatures.OfType<IImportProjectFeature>().ToArray();
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
PageLoaderMatcherPolicyTest.cs (1)
105actions.Select(CreateEndpoint).ToArray(),
Microsoft.AspNetCore.Mvc.RazorPages (13)
ApplicationModels\AuthorizationPageApplicationModelProvider.cs (1)
39var authorizeData = pageModel.HandlerTypeAttributes.OfType<IAuthorizeData>().ToArray();
ApplicationModels\CompiledPageActionDescriptorBuilder.cs (1)
30.ToArray();
ApplicationModels\DefaultPageApplicationModelProvider.cs (1)
98handlerTypeAttributes = modelTypeInfo.GetCustomAttributes(inherit: true).Concat(pageTypeAttributes).ToArray();
Infrastructure\CompiledPageActionDescriptorFactory.cs (4)
28_applicationModelProviders = applicationModelProviders.OrderBy(a => a.Order).ToArray(); 66var handlers = pageApplicationModel.HandlerMethods.ToArray(); 75var parameterModels = handlerModel.Parameters.ToArray(); 86var properties = pageApplicationModel.HandlerProperties.ToArray();
Infrastructure\ExecutorFactory.cs (1)
25var parameters = handlerDescriptor.Parameters.ToArray();
Infrastructure\PageActionDescriptorProvider.cs (2)
33_routeModelProviders = pageRouteModelProviders.OrderBy(p => p.Order).ToArray(); 38.ToArray();
Infrastructure\PageActionInvokerCache.cs (1)
36_filterProviders = filterProviders.ToArray();
Infrastructure\PageActionInvokerProvider.cs (1)
45_valueProviderFactories = mvcOptions.Value.ValueProviderFactories.ToArray();
Infrastructure\PageRequestDelegateFactory.cs (1)
59_valueProviderFactories = mvcOptions.Value.ValueProviderFactories.ToArray();
Microsoft.AspNetCore.Mvc.RazorPages.Test (6)
Infrastructure\ExecutorFactoryTest.cs (2)
186return parameters.Select(s => GetDefaultValue(s)).ToArray(); 214}).ToArray();
Infrastructure\PageViewLocationExpanderTest.cs (4)
108Assert.Equal(expected, actual.ToArray()); 139Assert.Equal(expected, actual.ToArray()); 160Assert.Equal(expected, actual.ToArray()); 198Assert.Equal(expected, actual.ToArray());
Microsoft.AspNetCore.Mvc.TagHelpers (4)
TagHelperOutputExtensions.cs (4)
124foreach (var attribute in attributes.ToArray()) 149var encodedSpaceChars = SpaceChars.Where(x => !x.Equals('\u0020')).Select(x => htmlEncoder.Encode(x.ToString())).ToArray(); 173.ToArray(); 203var encodedSpaceChars = SpaceChars.Where(x => !x.Equals('\u0020')).Select(x => htmlEncoder.Encode(x.ToString())).ToArray();
Microsoft.AspNetCore.Mvc.TagHelpers.Test (2)
GlobbingUrlBuilderTest.cs (1)
219Assert.Collection(urlList, collectionAssertions.ToArray());
ProtectedPrerenderComponentApplicationStateTest.cs (1)
53expectedState.ToDictionary(kvp => kvp.Key, kvp => kvp.Value.ToArray()),
Microsoft.AspNetCore.Mvc.Test (5)
MvcServiceCollectionExtensionsTest.cs (1)
638.ToArray();
Routing\ActionConstraintMatcherPolicyTest.cs (4)
357var endpoints = actions.Select(CreateEndpoint).ToArray(); 396var endpoints = actions.Select(CreateEndpoint).ToArray(); 425var endpoints = actions.Select(CreateEndpoint).ToArray(); 494actions.Select(CreateEndpoint).ToArray(),
Microsoft.AspNetCore.Mvc.Testing (3)
.packages\microsoft.extensions.hostfactoryresolver.sources\10.0.0-alpha.1.24572.1\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (1)
168args = args.Concat(new[] { "--applicationName", assemblyName }).ToArray();
WebApplicationFactory.cs (1)
311.ToArray();
WebApplicationFactoryClientOptions.cs (1)
66return CreateHandlersCore().ToArray();
Microsoft.AspNetCore.Mvc.ViewFeatures (7)
ExpressionHelper.cs (1)
224var parameters = parentExpression.Parameters.ToArray();
ModelStateDictionaryExtensions.cs (2)
129var entries = modelState.FindKeysWithPrefix(childKey).ToArray(); 138var entries = modelState.FindKeysWithPrefix(modelKey).ToArray();
RemoteAttributeBase.cs (1)
66.ToArray();
ViewComponents\DefaultViewComponentDescriptorCollectionProvider.cs (1)
42return new ViewComponentDescriptorCollection(descriptors.ToArray(), version: 0);
ViewComponents\DefaultViewComponentDescriptorProvider.cs (1)
70.ToArray();
ViewEngines\CompositeViewEngine.cs (1)
21ViewEngines = optionsAccessor.Value.ViewEngines.ToArray();
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (13)
Buffers\PagedCharBufferTest.cs (1)
299var charsToAppend = Enumerable.Repeat(ch, 2 * length).ToArray();
ModelExplorerTest.cs (2)
46var properties = modelExplorer.Properties.ToArray(); 70var properties = modelExplorer.Properties.ToArray();
SessionStateTempDataProviderTest.cs (1)
131_innerDictionary[key] = value.ToArray();
TemplateRendererTest.cs (1)
58Assert.Collection(typeNames, collectionAssertions.ToArray());
ViewComponents\DefaultViewComponentDescriptorProviderTest.cs (5)
22var ex = Assert.Throws<InvalidOperationException>(() => provider.GetViewComponents().ToArray()); 38var ex = Assert.Throws<InvalidOperationException>(() => provider.GetViewComponents().ToArray()); 53var ex = Assert.Throws<InvalidOperationException>(() => provider.GetViewComponents().ToArray()); 67var ex = Assert.Throws<InvalidOperationException>(() => provider.GetViewComponents().ToArray()); 80var ex = Assert.Throws<InvalidOperationException>(() => provider.GetViewComponents().ToArray());
ViewComponents\ViewComponentFeatureProviderTest.cs (2)
27Assert.Equal(new[] { typeof(ConventionsViewComponent).GetTypeInfo() }, feature.ViewComponents.ToArray()); 44Assert.Equal(new[] { typeof(AttributeViewComponent).GetTypeInfo() }, feature.ViewComponents.ToArray());
ViewComponentTests.cs (1)
298_innerDictionary[key] = value.ToArray();
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiGeneratorTests.cs (1)
65var operation = GetOpenApiOperation(() => { }, additionalMetadata: testBuilder.Metadata.ToArray());
Microsoft.AspNetCore.OutputCaching (2)
OutputCacheEntryFormatter.cs (1)
58string[] tagsArr = tags is { Count: > 0 } ? tags.ToArray() : Array.Empty<string>();
OutputCacheKeyProvider.cs (1)
347var newArray = dictionary.Keys.ToArray();
Microsoft.AspNetCore.OutputCaching.Tests (1)
CachedResponseBodyTests.cs (1)
86Assert.Equal(new byte[] { 1, 2, 3 }, receivedSegments.SelectMany(x => x).ToArray());
Microsoft.AspNetCore.Razor.Runtime (1)
Hosting\RazorCompiledItemExtensions.cs (1)
22return item.Metadata.OfType<IRazorSourceChecksumMetadata>().ToArray();
Microsoft.AspNetCore.Razor.Runtime.Test (1)
Runtime\TagHelpers\TagHelperExecutionContextTest.cs (1)
577var tagHelpers = executionContext.TagHelpers.ToArray();
Microsoft.AspNetCore.Razor.Test (1)
TagHelpers\TagHelperAttributeListTest.cs (1)
366attributes.ToArray().CopyTo(attributeDestination, 0);
Microsoft.AspNetCore.ResponseCaching (1)
ResponseCachingKeyProvider.cs (1)
135var queryArray = context.HttpContext.Request.Query.ToArray();
Microsoft.AspNetCore.ResponseCaching.Tests (1)
CachedResponseBodyTests.cs (1)
92Assert.Equal(new byte[] { 1, 2, 3 }, receivedSegments.SelectMany(x => x).ToArray());
Microsoft.AspNetCore.ResponseCompression (1)
ResponseCompressionProvider.cs (1)
37_providers = responseCompressionOptions.Providers.ToArray();
Microsoft.AspNetCore.Routing (20)
DefaultLinkGenerator.cs (1)
334public Endpoint[] Items => _generator.Endpoints.ToArray();
HostAttribute.cs (1)
41Hosts = hosts.ToArray();
HttpMethodMetadata.cs (1)
41HttpMethods = httpMethods.Select(GetCanonicalizedValue).ToArray();
Matching\CandidateSet.cs (1)
277var buffer = endpoints.ToArray();
Matching\EndpointMetadataComparer.cs (1)
41.ToArray();
Matching\ILEmitTrieFactory.cs (6)
106var groups = entries.GroupBy(e => e.text.Length).ToArray(); 146EmitTable(il, group.ToArray(), 0, group.Key, locals, labels, methods); 331var groups = entries.GroupBy(e => GetUInt64Key(e.text, index)).ToArray(); 361EmitTable(il, group.ToArray(), index + 4, length, locals, labels, methods); 449var groups = entries.GroupBy(e => GetUInt16Key(e.text, index)).ToArray(); 493EmitTable(il, group.ToArray(), index + 1, length, locals, labels, methods);
Patterns\RoutePatternFactory.cs (4)
470var updatedSegments = segments.ToArray(); 555updatedParts = segment.Parts.ToArray(); 700return SegmentCore(parts.ToArray()); 873parameterPolicies: parameterPolicies.ToArray());
Template\TemplateBinder.cs (4)
79_requiredKeys = requiredKeys?.ToArray() ?? Array.Empty<string>(); 88_filters = filters.ToArray(); 111_requiredKeys = pattern.RequiredValues.Keys.ToArray(); 120_filters = filters.ToArray();
Tree\TreeRouteBuilder.cs (1)
283trees.Values.OrderBy(tree => tree.Order).ToArray(),
Microsoft.AspNetCore.Routing.Abstractions (1)
RouteData.cs (1)
193public DictionaryItemDebugView<string, object?>[] Items => _routeData.Values.Select(pair => new DictionaryItemDebugView<string, object>(pair)).ToArray();
Microsoft.AspNetCore.Routing.Microbenchmarks (3)
src\Http\Routing\test\UnitTests\Matching\BarebonesMatcherBuilder.cs (1)
26.ToArray();
src\Http\Routing\test\UnitTests\Matching\RouteMatcherBuilder.cs (1)
43var candidates = group.ToArray();
src\Http\Routing\test\UnitTests\Matching\TreeRouterMatcherBuilder.cs (1)
50var candidates = group.ToArray();
Microsoft.AspNetCore.Routing.Tests (64)
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (1)
80var metadataArray = endpoint.Metadata.OfType<IHttpMethodMetadata>().ToArray();
Builder\RoutingEndpointConventionBuilderExtensionsTest.cs (1)
222var metadata = endpoint.Metadata.OfType<string>().ToArray();
InlineRouteParameterParserTests.cs (1)
280var parameters = template.Parameters.ToArray();
Matching\AcceptsMatcherPolicyTest.cs (13)
182Assert.Equal(new[] { endpoints[1], endpoints[4], }, e.Endpoints.ToArray()); 187Assert.Equal(new[] { endpoints[1], endpoints[4], }, e.Endpoints.ToArray()); 192Assert.Equal(new[] { endpoints[1], endpoints[3], endpoints[4], }, e.Endpoints.ToArray()); 197Assert.Equal(new[] { endpoints[0], endpoints[1], endpoints[3], endpoints[4], }, e.Endpoints.ToArray()); 202Assert.Equal(new[] { endpoints[1], endpoints[2], endpoints[3], endpoints[4], }, e.Endpoints.ToArray()); 207Assert.Equal(new[] { endpoints[0], endpoints[1], endpoints[3], endpoints[4], }, e.Endpoints.ToArray()); 212Assert.Equal(new[] { endpoints[1], endpoints[2], endpoints[3], endpoints[4], }, e.Endpoints.ToArray()); 240Assert.Equal(new[] { endpoints[0], endpoints[1], endpoints[2], }, e.Endpoints.ToArray()); 250Assert.Equal(new[] { endpoints[2], }, e.Endpoints.ToArray()); 255Assert.Equal(new[] { endpoints[0], endpoints[2], }, e.Endpoints.ToArray()); 260Assert.Equal(new[] { endpoints[1], endpoints[2], }, e.Endpoints.ToArray()); 265Assert.Equal(new[] { endpoints[0], endpoints[2], }, e.Endpoints.ToArray()); 270Assert.Equal(new[] { endpoints[1], endpoints[2], }, e.Endpoints.ToArray());
Matching\BarebonesMatcherBuilder.cs (1)
26.ToArray();
Matching\CandidateSetTest.cs (1)
353var candidateSet = new CandidateSet(endpoints, values, Enumerable.Range(0, count).ToArray());
Matching\ContentEncodingNegotiationMatcherPolicyTest.cs (3)
625var table = policy.BuildJumpTable(-100, edges.Select((e, i) => new PolicyJumpTableEdge(e.State, i + 1)).ToArray()); 631endpoints.Select(e => new RouteValueDictionary()).ToArray(), 632endpoints.Select(e => 1).ToArray());
Matching\DfaMatcherBuilderTest.cs (6)
2915var comparer = new EndpointComparer(policies.OrderBy(p => p.Order).OfType<IEndpointComparerPolicy>().ToArray()); 3606.Select(g => new PolicyNodeEdge(g.Key, g.ToArray())) 3607.ToArray(); 3648.Select(g => new PolicyNodeEdge(g.Key, g.ToArray())) 3649.ToArray(); 3673.Select(g => new PolicyNodeEdge(g.Key, g.ToArray()))
Matching\FullFeaturedMatcherConformanceTest.cs (1)
428var endpoints = templates.Select((t) => CreateEndpoint(t)).ToArray();
Matching\HostMatcherPolicyTest.cs (7)
224Assert.Equal(new[] { endpoints[1], endpoints[2], endpoints[7], }, e.Endpoints.ToArray()); 229Assert.Equal(new[] { endpoints[0], endpoints[1], endpoints[2], }, e.Endpoints.ToArray()); 234Assert.Equal(new[] { endpoints[0], endpoints[1], endpoints[2], }, e.Endpoints.ToArray()); 239Assert.Equal(new[] { endpoints[1], endpoints[2], endpoints[3], endpoints[4], }, e.Endpoints.ToArray()); 244Assert.Equal(new[] { endpoints[1], endpoints[2], endpoints[4], }, e.Endpoints.ToArray()); 249Assert.Equal(new[] { endpoints[1], endpoints[2], endpoints[5], }, e.Endpoints.ToArray()); 254Assert.Equal(new[] { endpoints[1], endpoints[2], endpoints[6], }, e.Endpoints.ToArray());
Matching\HttpMethodMatcherPolicyTest.cs (22)
167var candidates = new CandidateSet(endpoints, new RouteValueDictionary[endpoints.Length], Enumerable.Repeat<int>(-1, candidateNum).ToArray()); 202Assert.Equal(new[] { endpoints[1], endpoints[4], }, e.Endpoints.ToArray()); 207Assert.Equal(new[] { endpoints[0], endpoints[1], endpoints[2], endpoints[4], }, e.Endpoints.ToArray()); 212Assert.Equal(new[] { endpoints[1], endpoints[2], endpoints[3], endpoints[4], }, e.Endpoints.ToArray()); 217Assert.Equal(new[] { endpoints[1], endpoints[2], endpoints[3], endpoints[4], }, e.Endpoints.ToArray()); 247Assert.Equal(new[] { endpoints[1], endpoints[4], }, e.Endpoints.ToArray()); 252Assert.Equal(new[] { endpoints[4], }, e.Endpoints.ToArray()); 257Assert.Equal(new[] { endpoints[0], endpoints[1], endpoints[2], endpoints[4], }, e.Endpoints.ToArray()); 262Assert.Equal(new[] { endpoints[2], endpoints[4], }, e.Endpoints.ToArray()); 267Assert.Equal(new[] { endpoints[1], endpoints[2], endpoints[3], endpoints[4], }, e.Endpoints.ToArray()); 272Assert.Equal(new[] { endpoints[2], endpoints[4], }, e.Endpoints.ToArray()); 277Assert.Equal(new[] { endpoints[1], endpoints[2], endpoints[3], endpoints[4], }, e.Endpoints.ToArray()); 282Assert.Equal(new[] { endpoints[2], endpoints[4], }, e.Endpoints.ToArray()); 315Assert.Equal(new[] { endpoints[0], endpoints[1], }, e.Endpoints.ToArray()); 320Assert.Equal(new[] { endpoints[1], endpoints[2], }, e.Endpoints.ToArray()); 325Assert.Equal(new[] { endpoints[1], endpoints[2], }, e.Endpoints.ToArray()); 359Assert.Equal(new[] { endpoints[0], endpoints[1], }, e.Endpoints.ToArray()); 364Assert.Equal(new[] { endpoints[1], }, e.Endpoints.ToArray()); 369Assert.Equal(new[] { endpoints[1], endpoints[2], }, e.Endpoints.ToArray()); 374Assert.Equal(new[] { endpoints[1], }, e.Endpoints.ToArray()); 379Assert.Equal(new[] { endpoints[1], endpoints[2], }, e.Endpoints.ToArray()); 384Assert.Equal(new[] { endpoints[1], }, e.Endpoints.ToArray());
Matching\ILEmitTrieJumpTableTest.cs (1)
235var entries = segments.Select((e, i) => (e, i + 1)).ToArray();
Matching\RouteMatcherBuilder.cs (1)
43var candidates = group.ToArray();
Matching\TreeRouterMatcherBuilder.cs (1)
50var candidates = group.ToArray();
Patterns\InlineRouteParameterParserTest.cs (1)
272var parameters = routePattern.Parameters.ToArray();
Patterns\RoutePatternFactoryTest.cs (1)
633var policies = routePatternParameterPart.ParameterPolicies.ToArray();
RouteCollectionTest.cs (2)
509var first = routeNames.Take(index).ToArray(); 510var second = routeNames.Skip(index).ToArray();
Microsoft.AspNetCore.Server.HttpSys (6)
AuthenticationManager.cs (1)
186= StringValues.Concat(context.Response.Headers[HeaderNames.WWWAuthenticate], challenges.ToArray());
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (2)
116MemoryPoolThrowHelper.ThrowInvalidOperationException_DisposingPoolWithActiveBlocks(_totalBlocks - _blocks.Count, _totalBlocks, _blocks.ToArray()); 158MemoryPoolThrowHelper.ThrowInvalidOperationException_BlocksWereNotReturnedInTime(_totalBlocks - _blocks.Count, _totalBlocks, _blocks.ToArray());
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
300public KeyValuePair<string, string>[] Items => _collection.Select(pair => new KeyValuePair<string, string>(pair.Key, pair.Value.ToString())).ToArray();
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (2)
112get { return PropertiesValues().Concat(Extra.Values).ToArray(); } 166PropertiesEnumerable().Concat(Extra).ToArray().CopyTo(array, arrayIndex);
Microsoft.AspNetCore.Server.IIS (9)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (2)
116MemoryPoolThrowHelper.ThrowInvalidOperationException_DisposingPoolWithActiveBlocks(_totalBlocks - _blocks.Count, _totalBlocks, _blocks.ToArray()); 158MemoryPoolThrowHelper.ThrowInvalidOperationException_BlocksWereNotReturnedInTime(_totalBlocks - _blocks.Count, _totalBlocks, _blocks.ToArray());
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
300public KeyValuePair<string, string>[] Items => _collection.Select(pair => new KeyValuePair<string, string>(pair.Key, pair.Value.ToString())).ToArray();
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (2)
112get { return PropertiesValues().Concat(Extra.Values).ToArray(); } 166PropertiesEnumerable().Concat(Extra).ToArray().CopyTo(array, arrayIndex);
src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (4)
154.ToArray(); 160frame.PreContextCode = codeBlock.Take(errorStartLineNumberInArray).ToArray(); 164.ToArray(); 167.ToArray();
Microsoft.AspNetCore.Server.Kestrel.Core (5)
Internal\AddressBinder.cs (1)
23context.Addresses.ToArray(),
Internal\ConfigurationReader.cs (1)
190var childrenSections = sslProtocols.GetChildren().ToArray();
Internal\ServerAddressesCollection.cs (1)
178public string[] Items => _collection.ToArray();
Internal\ServerAddressesFeature.cs (1)
26public string[] Items => _feature.InternalCollection.ToArray();
src\Shared\CertificateGeneration\CertificateManager.cs (1)
112.ToArray();
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (107)
AsciiDecoding.cs (7)
26.ToArray(); 61var byteRange = Enumerable.Range(1, length).Select(x => (byte)x).ToArray(); 72var byteRange = Enumerable.Range(0, 16384 + 64).Select(x => (byte)((x & 0x7f) | 0x01)).ToArray(); 73var expectedByteRange = byteRange.Concat(byteRange).ToArray(); 92var byteRange = Enumerable.Range(0, 4096).Select(x => (byte)((x & 0x7f) | 0x01)).ToArray(); 93var expectedByteRange = byteRange.Concat(byteRange).ToArray(); 123.ToArray();
BufferWriterTests.cs (2)
87Assert.Equal(array.Skip(offset).Take(length).ToArray(), Read()); 138byte[] expectedBytes = source.Concat(source).Concat(source).ToArray();
ConnectionDispatcherTests.cs (1)
113var errors = TestSink.Writes.Where(e => e.LogLevel >= LogLevel.Error).ToArray();
Http2\Http2HPackEncoderTests.cs (1)
664.ToDictionary(g => g.Key, g => new StringValues(g.Select(gg => gg.Value).ToArray()));
Http3\Http3FrameWriterTests.cs (3)
49Assert.Equal(new byte[] { 0x04, 0x00 }, payload.ToArray()); 68Assert.Equal(new byte[] { 0x04, 0x05, 0x06, 0x80, 0x00 }, payload.ToArray()); 86Assert.Equal(new byte[] { 0x04, 0x08, 0x01, 0x44, 0xD2, 0x06, 0x80, 0x08, 0xAA, 0x52 }, payload.ToArray());
HttpParserTests.cs (2)
827var pairs = requestHandler.Headers.ToArray(); 845var parsedHeaders = requestHandler.Headers.ToArray();
src\Servers\Kestrel\shared\KnownHeaders.cs (9)
41.ToArray(); 80.ToArray(); 85.ToArray(); 195.ToArray(); 267.ToArray(); 286.ToArray(); 784.Select(h => h.Identifier).Distinct().OrderBy(n => n, StringComparer.InvariantCulture).ToArray(); 800Bytes = responseHeaders.SelectMany(header => header.Bytes).ToArray() 807Bytes = responseTrailers.SelectMany(header => header.Bytes).ToArray()
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (2)
116MemoryPoolThrowHelper.ThrowInvalidOperationException_DisposingPoolWithActiveBlocks(_totalBlocks - _blocks.Count, _totalBlocks, _blocks.ToArray()); 158MemoryPoolThrowHelper.ThrowInvalidOperationException_BlocksWereNotReturnedInTime(_totalBlocks - _blocks.Count, _totalBlocks, _blocks.ToArray());
src\Shared\test\Shared.Tests\runtime\Http2\HPackDecoderTest.cs (56)
70.ToArray(); 76.ToArray(); 80.ToArray(); 84.ToArray(); 88.ToArray(); 134.ToArray(); 166.ToArray(); 188.ToArray(); 199.ToArray(); 210.ToArray(); 221.ToArray(); 231.ToArray(); 241.ToArray(); 264.ToArray(); 275.ToArray(); 288.ToArray(); 299.ToArray(); 312.ToArray(); 323.ToArray(); 336.ToArray(); 347.ToArray(); 358.ToArray(); 369.ToArray(); 381.ToArray(); 391.ToArray(); 414.ToArray(); 425.ToArray(); 427encoded = encoded.Concat(encoded).ToArray(); 438.ToArray(); 449.ToArray(); 460.ToArray(); 473.ToArray(); 486.ToArray(); 509.ToArray(); 524.ToArray(); 540.ToArray(); 556.ToArray(); 572.ToArray(); 588.ToArray(); 620byte[] data = _indexedHeaderStatic.Concat(new byte[] { 0x3e }).ToArray(); 674.ToArray(); 692.ToArray(); 725.ToArray(); 745.ToArray(); 876_literalHeaderFieldWithIndexingNewName.Concat(_huffmanLongPadding).ToArray(), 877_literalHeaderFieldWithIndexingNewName.Concat(_huffmanEos).ToArray(), 879_literalHeaderFieldWithoutIndexingNewName.Concat(_huffmanLongPadding).ToArray(), 880_literalHeaderFieldWithoutIndexingNewName.Concat(_huffmanEos).ToArray(), 882_literalHeaderFieldNeverIndexedNewName.Concat(_huffmanLongPadding).ToArray(), 883_literalHeaderFieldNeverIndexedNewName.Concat(_huffmanEos).ToArray(), 887_literalHeaderFieldWithIndexingIndexedName.Concat(_huffmanLongPadding).ToArray(), 888_literalHeaderFieldWithIndexingIndexedName.Concat(_huffmanEos).ToArray(), 890_literalHeaderFieldWithoutIndexingIndexedName.Concat(_huffmanLongPadding).ToArray(), 891_literalHeaderFieldWithoutIndexingIndexedName.Concat(_huffmanEos).ToArray(), 893_literalHeaderFieldNeverIndexedIndexedName.Concat(_huffmanLongPadding).ToArray(), 894_literalHeaderFieldNeverIndexedIndexedName.Concat(_huffmanEos).ToArray()
src\Shared\test\Shared.Tests\runtime\Http2\HuffmanDecodingTests.cs (10)
119currentPrefix = currentPrefix.Concat(s_offsetByOneBit).ToArray(); 127yield return currentPrefix.Concat(new byte[] { (byte)i }.Concat(currentPrefix)).ToArray(); 148yield return destination.Take(encodedByteCount - 1).ToArray(); 151yield return destination.Take(encodedByteCount - 2).ToArray(); 154yield return destination.Take(encodedByteCount - 3).ToArray(); 170yield return destination.Take(encodedByteCount).Concat(pad1).ToArray(); 171yield return destination.Take(encodedByteCount).Concat(pad2).ToArray(); 172yield return destination.Take(encodedByteCount).Concat(pad3).ToArray(); 173yield return destination.Take(encodedByteCount).Concat(pad4).ToArray(); 186yield return destination.Take(encodedByteCount).ToArray();
src\Shared\test\Shared.Tests\runtime\Http3\QPackDecoderTest.cs (13)
49.ToArray(); 53.ToArray(); 57.ToArray(); 88.ToArray(); 103.ToArray(); 146.ToArray(); 156.ToArray(); 186.ToArray(); 201.ToArray(); 217.ToArray(); 233.ToArray(); 249.ToArray(); 265.ToArray();
UTF8Decoding.cs (1)
36var byteRange = Enumerable.Range(1, length).Select(x => (byte)x).ToArray();
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (9)
Http2\HPackDecoderBenchmark.cs (6)
24.ToArray(); 32.ToArray(); 37.ToArray(); 52.ToArray(); 59.ToArray(); 66.ToArray();
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (1)
715.ToDictionary(g => g.Key, g => new StringValues(g.Select(values => values.Value).ToArray()));
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (2)
116MemoryPoolThrowHelper.ThrowInvalidOperationException_DisposingPoolWithActiveBlocks(_totalBlocks - _blocks.Count, _totalBlocks, _blocks.ToArray()); 158MemoryPoolThrowHelper.ThrowInvalidOperationException_BlocksWereNotReturnedInTime(_totalBlocks - _blocks.Count, _totalBlocks, _blocks.ToArray());
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (2)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (2)
116MemoryPoolThrowHelper.ThrowInvalidOperationException_DisposingPoolWithActiveBlocks(_totalBlocks - _blocks.Count, _totalBlocks, _blocks.ToArray()); 158MemoryPoolThrowHelper.ThrowInvalidOperationException_BlocksWereNotReturnedInTime(_totalBlocks - _blocks.Count, _totalBlocks, _blocks.ToArray());
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (2)
116MemoryPoolThrowHelper.ThrowInvalidOperationException_DisposingPoolWithActiveBlocks(_totalBlocks - _blocks.Count, _totalBlocks, _blocks.ToArray()); 158MemoryPoolThrowHelper.ThrowInvalidOperationException_BlocksWereNotReturnedInTime(_totalBlocks - _blocks.Count, _totalBlocks, _blocks.ToArray());
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (2)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (2)
116MemoryPoolThrowHelper.ThrowInvalidOperationException_DisposingPoolWithActiveBlocks(_totalBlocks - _blocks.Count, _totalBlocks, _blocks.ToArray()); 158MemoryPoolThrowHelper.ThrowInvalidOperationException_BlocksWereNotReturnedInTime(_totalBlocks - _blocks.Count, _totalBlocks, _blocks.ToArray());
Microsoft.AspNetCore.Shared.Tests (110)
CopyOnWriteDictionaryHolderTest.cs (2)
28Assert.Equal(new string[] { "test-key", "key2" }, holder.Keys.ToArray()); 29Assert.Equal(new object[] { "test-value", "key2-value" }, holder.Values.ToArray());
PropertyHelperTest.cs (10)
232var helpers = PropertyHelper.GetProperties(derived.GetType().GetTypeInfo()).ToArray(); 252var helpers = PropertyHelper.GetProperties(derived.GetType().GetTypeInfo()).ToArray(); 272var helpers = PropertyHelper.GetProperties(derived.GetType().GetTypeInfo()).ToArray(); 326var result = PropertyHelper.GetProperties(type).ToArray(); 342var result = PropertyHelper.GetVisibleProperties(type).ToArray(); 357var result = PropertyHelper.GetVisibleProperties(type).ToArray(); 374var result = PropertyHelper.GetVisibleProperties(type).ToArray(); 391var result = PropertyHelper.GetVisibleProperties(type.GetTypeInfo()).ToArray(); 406var result = PropertyHelper.GetVisibleProperties(type.GetTypeInfo()).ToArray(); 423var result = PropertyHelper.GetVisibleProperties(type.GetTypeInfo()).ToArray();
runtime\Http2\HPackDecoderTest.cs (56)
70.ToArray(); 76.ToArray(); 80.ToArray(); 84.ToArray(); 88.ToArray(); 134.ToArray(); 166.ToArray(); 188.ToArray(); 199.ToArray(); 210.ToArray(); 221.ToArray(); 231.ToArray(); 241.ToArray(); 264.ToArray(); 275.ToArray(); 288.ToArray(); 299.ToArray(); 312.ToArray(); 323.ToArray(); 336.ToArray(); 347.ToArray(); 358.ToArray(); 369.ToArray(); 381.ToArray(); 391.ToArray(); 414.ToArray(); 425.ToArray(); 427encoded = encoded.Concat(encoded).ToArray(); 438.ToArray(); 449.ToArray(); 460.ToArray(); 473.ToArray(); 486.ToArray(); 509.ToArray(); 524.ToArray(); 540.ToArray(); 556.ToArray(); 572.ToArray(); 588.ToArray(); 620byte[] data = _indexedHeaderStatic.Concat(new byte[] { 0x3e }).ToArray(); 674.ToArray(); 692.ToArray(); 725.ToArray(); 745.ToArray(); 876_literalHeaderFieldWithIndexingNewName.Concat(_huffmanLongPadding).ToArray(), 877_literalHeaderFieldWithIndexingNewName.Concat(_huffmanEos).ToArray(), 879_literalHeaderFieldWithoutIndexingNewName.Concat(_huffmanLongPadding).ToArray(), 880_literalHeaderFieldWithoutIndexingNewName.Concat(_huffmanEos).ToArray(), 882_literalHeaderFieldNeverIndexedNewName.Concat(_huffmanLongPadding).ToArray(), 883_literalHeaderFieldNeverIndexedNewName.Concat(_huffmanEos).ToArray(), 887_literalHeaderFieldWithIndexingIndexedName.Concat(_huffmanLongPadding).ToArray(), 888_literalHeaderFieldWithIndexingIndexedName.Concat(_huffmanEos).ToArray(), 890_literalHeaderFieldWithoutIndexingIndexedName.Concat(_huffmanLongPadding).ToArray(), 891_literalHeaderFieldWithoutIndexingIndexedName.Concat(_huffmanEos).ToArray(), 893_literalHeaderFieldNeverIndexedIndexedName.Concat(_huffmanLongPadding).ToArray(), 894_literalHeaderFieldNeverIndexedIndexedName.Concat(_huffmanEos).ToArray()
runtime\Http2\HuffmanDecodingTests.cs (10)
119currentPrefix = currentPrefix.Concat(s_offsetByOneBit).ToArray(); 127yield return currentPrefix.Concat(new byte[] { (byte)i }.Concat(currentPrefix)).ToArray(); 148yield return destination.Take(encodedByteCount - 1).ToArray(); 151yield return destination.Take(encodedByteCount - 2).ToArray(); 154yield return destination.Take(encodedByteCount - 3).ToArray(); 170yield return destination.Take(encodedByteCount).Concat(pad1).ToArray(); 171yield return destination.Take(encodedByteCount).Concat(pad2).ToArray(); 172yield return destination.Take(encodedByteCount).Concat(pad3).ToArray(); 173yield return destination.Take(encodedByteCount).Concat(pad4).ToArray(); 186yield return destination.Take(encodedByteCount).ToArray();
runtime\Http3\QPackDecoderTest.cs (13)
49.ToArray(); 53.ToArray(); 57.ToArray(); 88.ToArray(); 103.ToArray(); 146.ToArray(); 156.ToArray(); 186.ToArray(); 201.ToArray(); 217.ToArray(); 233.ToArray(); 249.ToArray(); 265.ToArray();
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
300public KeyValuePair<string, string>[] Items => _collection.Select(pair => new KeyValuePair<string, string>(pair.Key, pair.Value.ToString())).ToArray();
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (2)
112get { return PropertiesValues().Concat(Extra.Values).ToArray(); } 166PropertiesEnumerable().Concat(Extra).ToArray().CopyTo(array, arrayIndex);
src\Shared\PropertyActivator\PropertyActivator.cs (2)
60return properties.Select(createActivateInfo).ToArray(); 77}).ToArray();
StackTraceHelperTest.cs (12)
61var methods = stackFrames.Select(frame => frame.MethodDisplayInfo.ToString()).ToArray(); 75var methods = stackFrames.Select(frame => frame.MethodDisplayInfo.ToString()).ToArray(); 89var methods = stackFrames.Select(frame => frame.MethodDisplayInfo.ToString()).ToArray(); 104var methods = stackFrames.Select(frame => frame.MethodDisplayInfo.ToString()).ToArray(); 119var methods = stackFrames.Select(frame => frame.MethodDisplayInfo.ToString()).ToArray(); 134var methods = stackFrames.Select(frame => frame.MethodDisplayInfo.ToString()).ToArray(); 148var methods = stackFrames.Select(frame => frame.MethodDisplayInfo.ToString()).ToArray(); 179var methodNames = stackFrames.Select(stackFrame => stackFrame.MethodDisplayInfo.ToString()).ToArray(); 195var methods = stackFrames.Select(frame => frame.MethodDisplayInfo.ToString()).ToArray(); 210var methods = stackFrames.Select(frame => frame.MethodDisplayInfo.ToString()).ToArray(); 225var methods = stackFrames.Select(frame => frame.MethodDisplayInfo.ToString()).ToArray(); 240var frames = StackTraceHelper.GetFrames(exception, out _).ToArray();
WebEncodersTests.cs (2)
47byte[] input = new byte[3].Concat(Convert.FromBase64String(base64Input)).Concat(new byte[2]).ToArray(); 68var input = new byte[3].Concat(Convert.FromBase64String(base64Input)).Concat(new byte[2]).ToArray();
Microsoft.AspNetCore.SignalR.Common.Tests (17)
Internal\Formatters\BinaryMessageFormatterTests.cs (1)
152Enumerable.Range(0, size).Select(n => (byte)(n & 0xff)).ToArray();
Internal\Protocol\CompositeTestBinder.cs (1)
18_hubMessages = hubMessages.Where(IsBindableMessage).ToArray();
Internal\Protocol\MemoryBufferWriterTests.cs (12)
82var input = Enumerable.Range(0, inputSize).Select(i => (byte)i).ToArray(); 101var input = Enumerable.Range(0, inputSize).Select(i => (byte)i).ToArray(); 165var input = Enumerable.Range(0, inputSize).Select(i => (byte)i).ToArray(); 181var input = Enumerable.Range(0, inputSize).Select(i => (byte)i).ToArray(); 199var input = Enumerable.Range(0, inputSize).Select(i => (byte)i).ToArray(); 215var input = Enumerable.Range(0, inputSize).Select(i => (byte)i).ToArray(); 232var input = Enumerable.Range(0, inputSize).Select(i => (byte)i).ToArray(); 251var input = Enumerable.Range(0, inputSize).Select(i => (byte)i).ToArray(); 269var input = Enumerable.Range(0, inputSize).Select(i => (byte)i).ToArray(); 289var input = Enumerable.Range(0, inputSize).Select(i => (byte)i).ToArray(); 316var input = Enumerable.Range(0, inputSize).Select(i => (byte)i).ToArray(); 336var input = Enumerable.Range(0, inputSize).Select(i => (byte)i).ToArray();
Internal\Protocol\TestBinder.cs (2)
21_paramTypes = i.Arguments?.Select(a => a?.GetType() ?? typeof(object))?.ToArray(); 24_paramTypes = i.Arguments?.Select(a => a?.GetType() ?? typeof(object))?.ToArray();
Internal\Protocol\Utf8BufferTextWriterTests.cs (1)
281var allSegments = bufferWriter.GetSegments().Select(s => s.ToArray()).ToArray();
Microsoft.AspNetCore.SignalR.Core (7)
Internal\DefaultHubDispatcher.cs (1)
57var arguments = invocationContext.HubMethodArguments as object?[] ?? invocationContext.HubMethodArguments.ToArray();
Internal\HubMethodDescriptor.cs (3)
137}).Select(p => p.ParameterType).ToArray(); 141OriginalParameterTypes = methodExecutor.MethodParameters.Select(p => p.ParameterType).ToArray(); 144Policies = policies.ToArray();
Internal\TypedClientBuilder.cs (3)
123var paramTypes = parameters.Select(param => param.ParameterType).ToArray(); 149paramTypes.Where(p => p.IsGenericParameter).Select(p => p.Name).Distinct().ToArray(); 161paramTypes = paramTypes.Take(paramTypes.Length - 1).ToArray();
Microsoft.AspNetCore.SignalR.Microbenchmarks (4)
HubConnectionReceiveBenchmark.cs (1)
88_hubConnection.On(MethodName, arguments.Select(v => v.GetType()).ToArray(), OnInvoke);
RedisHubLifetimeManagerBenchmark.cs (1)
39var protocols = GenerateProtocols(ProtocolCount).ToArray();
TestBinder.cs (2)
18_paramTypes = i.Arguments?.Select(a => a?.GetType() ?? typeof(object))?.ToArray(); 21_paramTypes = i.Arguments?.Select(a => a?.GetType() ?? typeof(object))?.ToArray();
Microsoft.AspNetCore.SignalR.StackExchangeRedis (1)
RedisHubLifetimeManager.cs (1)
136foreach (var group in groupNames.ToArray())
Microsoft.AspNetCore.SignalR.Tests (5)
HubConnectionHandlerTests.Activity.cs (1)
499var tags = activity.Tags.ToArray();
HubConnectionHandlerTests.cs (3)
1430var values = ((JArray)invocation.Arguments[0]).Select(t => t.Value<int>()).ToArray(); 3659var result = ((JArray)response.Result).ToArray<object>(); 3754var result = ((JArray)response.Result).ToArray<object>();
SerializedHubMessageTests.cs (1)
84Assert.Collection(message.GetAllSerializations().Skip(numberOfSerializationsToPreCache).ToArray(),
Microsoft.AspNetCore.SpaServices.Extensions (2)
Proxying\SpaProxy.cs (2)
175context.Response.Headers[header.Key] = header.Value.ToArray(); 180context.Response.Headers[header.Key] = header.Value.ToArray();
Microsoft.AspNetCore.TestHost (4)
.packages\microsoft.extensions.hostfactoryresolver.sources\10.0.0-alpha.1.24572.1\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (1)
168args = args.Concat(new[] { "--applicationName", assemblyName }).ToArray();
ClientHandler.cs (2)
147req.Headers.Append(header.Key, header.Value.ToArray()); 166req.Headers.Append(header.Key, header.Value.ToArray());
WebSocketClient.cs (1)
85request.Headers.Add(HeaderNames.SecWebSocketProtocol, SubProtocols.ToArray());
Microsoft.AspNetCore.Tests (6)
WebApplicationTests.cs (5)
1562var hostLifetimes0 = app.Services.GetServices<IHostLifetime>().ToArray(); 1563var hostLifetimes1 = childServiceProvider.GetServices<IHostLifetime>().ToArray(); 1634var events = listener.EventData.ToArray(); 1654var events = listener.EventData.ToArray(); 1990var displayNames = ds.Endpoints.Select(e => e.DisplayName).ToArray();
WebHostTests.cs (1)
108var events = listener.EventData.ToArray();
Microsoft.AspNetCore.WebSockets.ConformanceTests (3)
Autobahn\AutobahnSpec.cs (3)
54new JProperty("servers", new JArray(Servers.Select(s => s.GetJson()).ToArray())), 55new JProperty("cases", new JArray(Cases.ToArray())), 56new JProperty("exclude-cases", new JArray(ExcludedCases.ToArray())),
Microsoft.AspNetCore.WebSockets.Tests (2)
SendReceiveTests.cs (2)
57Assert.Equal(sendBuffer, receiveBuffer.Take(result.Count).ToArray()); 72Assert.Equal(sendBuffer, receiveBuffer.Take(result.Count).ToArray());
Microsoft.AspNetCore.WebUtilities.Tests (20)
FileBufferingReadStreamTests.cs (8)
467var data = Enumerable.Range(0, bufferSize * mostExpectedWrites).Select(b => (byte)b).ToArray(); 491var data = Enumerable.Reverse(Enumerable.Range(0, bufferSize * mostExpectedWrites).Select(b => (byte)b)).ToArray(); 512var data = Enumerable.Range(0, 1024).Select(b => (byte)b).ToArray(); 529var data = Enumerable.Range(0, 1024).Select(b => (byte)b).ToArray(); 547var data = Enumerable.Range(0, 1024).Select(b => (byte)b).ToArray(); 560Assert.Equal(data.ToArray(), withoutBufferMs.ToArray()); 566var data = Enumerable.Range(0, 1024).Select(b => (byte)b).ToArray(); 586var data = Enumerable.Range(0, 1024).Select(b => (byte)b).ToArray();
FileBufferingWriteStreamTests.cs (1)
356var input = Enumerable.Repeat((byte)0xca, 30).ToArray();
PagedByteBufferTest.cs (11)
43Assert.Equal(Enumerable.Concat(input1, input2).ToArray(), ReadBufferedContent(buffer)); 66var input1 = Enumerable.Repeat((byte)0xba, PagedByteBuffer.PageSize - 1).ToArray(); 77Assert.Equal(Enumerable.Concat(input1, input2).ToArray(), ReadBufferedContent(buffer)); 84var input = Enumerable.Repeat((byte)0xba, PagedByteBuffer.PageSize + 10).ToArray(); 93Assert.Equal(input.ToArray(), ReadBufferedContent(buffer)); 100var input = Enumerable.Repeat((byte)0xba, PagedByteBuffer.PageSize * 3 + 10).ToArray(); 112var newInput = Enumerable.Repeat((byte)0xcb, PagedByteBuffer.PageSize * 2 + 13).ToArray(); 125var input = Enumerable.Repeat((byte)0xba, PagedByteBuffer.PageSize * 3 + 10).ToArray(); 137var newInput = Enumerable.Repeat((byte)0xcb, PagedByteBuffer.PageSize * 2 + 13).ToArray(); 149var input = Enumerable.Repeat((byte)0xba, PagedByteBuffer.PageSize * 3 + 10).ToArray(); 221var input = Enumerable.Repeat((byte)0xba, PagedByteBuffer.PageSize * 3 + 10).ToArray();
Microsoft.Build (24)
BackEnd\BuildManager\BuildManager.cs (1)
2029targetList.ToArray(),
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (1)
293return RequestConfiguration.ActivelyBuildingTargets.Keys.ToArray();
BackEnd\Components\ProjectCache\CacheResult.cs (1)
117pluginTargetResult.TaskItems.Select(ti => CreateTaskItem(ti)).ToArray(),
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
457cacheRequest.Submission.BuildRequestData?.TargetNames.ToArray() ?? []);
BackEnd\Components\RequestBuilder\TargetBuilder.cs (1)
188BuildResult resultsToReport = new BuildResult(_buildResult, targetNames.Select(target => target.name).ToArray());
BackEnd\Components\RequestBuilder\TargetEntry.cs (2)
653targetOutputItems = new HashSet<TaskItem>(batchingBuckets[0].Expander.ExpandIntoTaskItemsLeaveEscaped(targetReturns, ExpanderOptions.ExpandAll, targetReturnsLocation)).ToArray(); 664targetOutputItems = addedItems.ToArray();
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (2)
374_uniqueTargetInputs.Keys.ToArray(), 385_uniqueTargetOutputs.Keys.ToArray(),
BackEnd\Components\SdkResolution\SdkResolverLoader.cs (1)
156return overrideFolders.ToArray();
BuildCheck\Acquisition\BuildCheckAcquisitionModule.cs (1)
44IList<Type> checkTypes = availableTypes.Where(t => typeof(Check).IsAssignableFrom(t)).ToArray();
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (1)
205instance.SupportedRules.Select(r => r.Id).ToArray(),
Construction\Solution\SolutionProjectGenerator.cs (1)
982string[] dummyTargetsForEvaluationTime = _defaultTargetNames.Union(_targetNames).ToArray();
CopyOnWriteDictionary.cs (1)
387KeyValuePair<string, V>[] array = snapshot.ToArray();
Definition\Project.cs (1)
59private static readonly char[] s_invalidGlobChars = FileUtilities.InvalidFileNameChars.Where(c => c != '*' && c != '?' && c != '/' && c != '\\' && c != ':').ToArray();
Evaluation\LazyItemEvaluator.UpdateOperation.cs (2)
118var itemReferenceFragments = _itemSpec.Fragments.OfType<ItemSpec<P, I>.ItemExpressionFragment>().ToArray(); 119var nonItemReferenceFragments = _itemSpec.Fragments.Where(f => !(f is ItemSpec<P, I>.ItemExpressionFragment)).ToArray();
FileMatcher.cs (3)
1956var filesToReturn = files.ToArray(); 2611? listOfFiles.SelectMany(list => list).Where(f => !resultsToExclude.Contains(f)).ToArray() 2612: listOfFiles.SelectMany(list => list).ToArray();
Graph\GraphBuilder.cs (1)
229}).ToArray();
Graph\ProjectInterpretation.cs (1)
509.Select(t => new TargetSpecification(t, skipNonexistentTargets)).ToArray();
PrintLineDebuggerWriters.cs (1)
55var argsArray = args as string[] ?? args.ToArray();
Utilities\Utilities.cs (1)
626return enumerator.ToEnumerable().ToArray();
Microsoft.Build.BuildCheck.UnitTests (1)
BuildCheckManagerProviderTests.cs (1)
47_logger.AllBuildEvents.Where(be => be.GetType() == typeof(BuildMessageEventArgs)).Select(be => be.Message).ToArray()
Microsoft.Build.CommandLine.UnitTests (1)
XMake_Tests.cs (1)
1551string[] aggregateArguments = arguments.Union(new[] { " /nr:false /v:diag " }).ToArray();
Microsoft.Build.Engine.OM.UnitTests (4)
Construction\ConstructionEditing_Tests.cs (1)
3254splits = splits.Select(s => s.Trim()).ToArray();
Definition\ProjectItem_Tests.cs (2)
763expectedInclude = expectedInclude.Select(p => setSlashes(p, Path.DirectorySeparatorChar)).ToArray(); 3383var items = ObjectModelHelpers.GetItemsFromFragment(content, true).Where(i => i.ItemType.Equals("to")).ToArray();
PrintLineDebuggerWriters.cs (1)
55var argsArray = args as string[] ?? args.ToArray();
Microsoft.Build.Engine.UnitTests (50)
BackEnd\BuildManager_Tests.cs (2)
1004var deferredMessages = logger.BuildMessageEvents.Where(e => e.Message.StartsWith("deferred")).ToArray(); 1406var data2 = new BuildRequestData(data.ProjectInstance, data.TargetNames.ToArray(), data.HostServices);
BackEnd\TargetBuilder_Tests.cs (1)
1562return new BuildRequest(1 /* submissionId */, _nodeRequestId++, configurationId, targets.Select(t => t.name).ToArray(), null, BuildEventContext.Invalid, null, flags);
BackEnd\TranslationHelpers.cs (2)
72T[] leftArray = left.ToArray(); 73T[] rightArray = right.ToArray();
BuildEventArgsSerialization_Tests.cs (1)
1103binaryWriter.Write(Enumerable.Repeat(byte.MaxValue, eventSize).ToArray());
Definition\ProjectEvaluationContext_Tests.cs (5)
466.ToArray(); 522.ToArray(); 585.ToArray(); 592.ToArray(); 653.ToArray();
Evaluation\Expander_Tests.cs (1)
3974.ToArray();
Evaluation\ProjectSdkImplicitImport_Tests.cs (1)
488ProjectImportedEventArgs[] events = logger.BuildMessageEvents.OfType<ProjectImportedEventArgs>().ToArray();
FileMatcher_Tests.cs (16)
129.ToArray() 153Verify(info.Include, info.Excludes?.Select(o => o.Replace('\\', '/')).ToArray(), customMessage: "Excludes directory separator was changed to forward slash"); 162Verify(info.Include, info.Excludes?.Select(o => o.ToUpperInvariant()).ToArray(), false, "Excludes were changed to uppercase"); 1447strings = FileMatcher.RemoveProjectDirectory(strings, NativeMethodsShared.IsWindows ? "c:\\" : "/").ToArray(); 1451strings = FileMatcher.RemoveProjectDirectory(strings, NativeMethodsShared.IsWindows ? "c:\\" : "/").ToArray(); 1455strings = FileMatcher.RemoveProjectDirectory(strings, NativeMethodsShared.IsWindows ? "c:\\directory" : "/directory").ToArray(); 1459strings = FileMatcher.RemoveProjectDirectory(strings, NativeMethodsShared.IsWindows ? "c:\\directory" : "/directory").ToArray(); 1463strings = FileMatcher.RemoveProjectDirectory(strings, NativeMethodsShared.IsWindows ? "c:\\directory" : "/directory").ToArray(); 1469strings = FileMatcher.RemoveProjectDirectory(strings, "\\Machine").ToArray(); 1473strings = FileMatcher.RemoveProjectDirectory(strings, "\\Machine").ToArray(); 1477strings = FileMatcher.RemoveProjectDirectory(strings, "\\Machine\\directory").ToArray(); 1481strings = FileMatcher.RemoveProjectDirectory(strings, "\\Machine\\directory").ToArray(); 1485strings = FileMatcher.RemoveProjectDirectory(strings, "\\Machine\\directory").ToArray(); 2386var forwardSlashExcludeSpecs = excludeFilespecs.Select(Helpers.ToForwardSlash).ToArray(); 2406Func<string[], string[]> normalizeAllFunc = (paths => normalizeAllPaths ? paths.Select(MockFileSystem.Normalize).ToArray() : paths); 2407Func<string[], string[]> normalizeMatching = (paths => normalizeExpectedMatchingFiles ? paths.Select(MockFileSystem.Normalize).ToArray() : paths);
Globbing\CompositeGlob_Tests.cs (1)
131var leafGlobs = composite.GetParsedGlobs().ToArray();
Graph\GraphLoadedFromSolution_tests.cs (1)
499solutionDependencies: solutionDependencies.Select(dependency => (dependency.Item1.ToString(), dependency.Item2.ToString())).ToArray())
Graph\GraphTestingUtilities.cs (2)
69.ToArray(); 158.ToArray();
Graph\IsolateProjects_Tests.cs (1)
328ProjectGraphNode[] topoSortedProjectGraphNodes = projectGraph.ProjectNodesTopologicallySorted.ToArray();
Graph\ProjectGraph_Tests.cs (2)
1196var innerBuilds = GetInnerBuilds(projectGraph, 2).ToArray(); 1813var toposort = projectGraph.ProjectNodesTopologicallySorted.ToArray();
Graph\ResultCacheBasedBuilds_Tests.cs (8)
60.ToArray())).Path; 295.ProjectNodesTopologicallySorted.ToArray(); 330(node, localExpectedOutput) => localExpectedOutput[node].Skip(1).ToArray()); 342.ProjectNodesTopologicallySorted.ToArray(); 363rootNodeBuildResult.ResultsByTarget["Build"].Items.Select(i => i.ItemSpec).ToArray().ShouldBe(expectedOutput[rootNode]); 380.ProjectNodesTopologicallySorted.ToArray(); 452var cacheFilesForReferences = node.ProjectReferences.Where(r => outputCaches.ContainsKey(r)).Select(r => outputCaches[r]).ToArray(); 482var actualOutput = result.ResultsByTarget["Build"].Items.Select(i => i.ItemSpec).ToArray();
ProjectCache\ProjectCacheTests.cs (4)
663var referenceNumbers = Enumerable.Range(2, NativeMethodsShared.GetLogicalCoreCount()).ToArray(); 1452var referenceNumbers = Enumerable.Range(2, NativeMethodsShared.GetLogicalCoreCount() * 2).ToArray(); 1515var referenceNumbers = Enumerable.Range(2, NativeMethodsShared.GetLogicalCoreCount() * 2).ToArray(); 1581.ToArray();
TestComparers\ProjectInstanceModelTestComparers.cs (2)
32Assert.Equal(x.Items.ToArray(), y.Items.ToArray(), ProjectItemInstance.ProjectItemInstanceEqualityComparer.Default);
Microsoft.Build.Framework (1)
Sdk\SdkReference.cs (1)
87var parts = sdk.Split(MSBuildConstants.ForwardSlash).Select(i => i.Trim()).ToArray();
Microsoft.Build.Tasks.CodeAnalysis (1)
ManagedCompiler.cs (1)
708var combinedMessage = string.Join(", ", analyzerResponse.ErrorMessages.ToArray());
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (3)
TargetTests.cs (2)
561var noneItems = instance.GetItems("None").ToArray(); 1018_props = parameterGroup.Values.ToArray();
TestUtilities\MSBuildUtil.cs (1)
19return fileNames.Select(CreateTaskItem).ToArray();
Microsoft.Build.Tasks.Core (21)
AssemblyDependency\ResolveAssemblyReference.cs (1)
3212(p, searchPattern) => FileSystems.Default.EnumerateDirectories(p, searchPattern).ToArray(),
BootstrapperUtil\BootstrapperBuilder.cs (1)
474return folders.ToArray();
CopyOnWriteDictionary.cs (1)
387KeyValuePair<string, V>[] array = snapshot.ToArray();
FileMatcher.cs (3)
1956var filesToReturn = files.ToArray(); 2611? listOfFiles.SelectMany(list => list).Where(f => !resultsToExclude.Contains(f)).ToArray() 2612: listOfFiles.SelectMany(list => list).ToArray();
ManifestUtil\Util.cs (1)
454return list.Values.ToArray();
NativeMethods.cs (1)
1413.Select(x => Convert.ToByte(value.Substring(x, 2), 16)).ToArray());
PrintLineDebuggerWriters.cs (1)
55var argsArray = args as string[] ?? args.ToArray();
RedistList.cs (2)
132internal Exception[] Errors => _errors.ToArray(); 137internal string[] ErrorFileNames => _errorFilenames.ToArray();
ResolveSDKReference.cs (3)
465ResolvedSDKReferences = sdkReferenceItems.Where(x => x.Resolved).Select(x => x.ResolvedItem).ToArray(); 537.ToArray(); 1350string[] appxComponents = appxLocation.Key.Split(s_appxSplitChar, StringSplitOptions.RemoveEmptyEntries).Select(x => x.Trim()).ToArray();
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (4)
156_parameters = parameterGroup.Values.ToArray(); 194.ToArray(); 247codeNamespace.Imports.AddRange(DefaultNamespaces.Union(taskInfo.Namespaces, StringComparer.OrdinalIgnoreCase).Select(i => new CodeNamespaceImport(i)).ToArray()); 586items = hasInvalidReference ? null : resolvedAssemblyReferences.Select(i => (ITaskItem)new TaskItem(i)).ToArray();
SetRidAgnosticValueForProjects.cs (1)
56.ToArray();
WriteCodeFragment.cs (2)
481.Select(c => c.GetParameters().Select(p => p.ParameterType).ToArray()) 525return positionalParameters.Select(x => default(Type)).ToArray();
Microsoft.Build.Tasks.UnitTests (4)
ResourceManagement_Tests.cs (3)
27var filteredMessages = messages.Where(m => m.Message.StartsWith("Number of cores acquired: ")).ToArray(); 42var filteredMessages = messages.Where(m => m.Message.StartsWith("Number of cores acquired: ")).ToArray(); 69var filteredMessages = messages.Where(m => m.Message.StartsWith("Number of cores acquired: ")).ToArray();
RoslynCodeTaskFactory_Tests.cs (1)
211.ToArray();
Microsoft.Build.UnitTests.Shared (10)
EngineTestEnvironment.cs (4)
210var expectedLoggers = expectedLoggerPairs.Select(l => l.logger).ToArray(); 228var actualLoggerPairs = GetLoggers().Where(l => l.logger is not BinaryLogger).ToArray(); 229expectedLoggerPairs = expectedLoggerPairs.Where(l => l.logger is not BinaryLogger).ToArray(); 231PlaybackBinlog(binaryLoggerFilePath, actualLoggerPairs.Select(k => k.logger).ToArray());
ObjectModelHelpers.cs (5)
108ProjectItem[] items = p.GetItems(type).ToArray(); 148expectedInclude = expectedInclude.Select(i => Path.Combine(testProject.TestRoot, i)).ToArray(); 1430targetsToBuild?.ToArray() ?? Array.Empty<string>(), 1666var fullPath = Path.Combine(pathFragments.ToArray()); 2082: actualBuildParameters.Loggers.Concat(loggers).ToArray();
TestEnvironment.cs (1)
497return files.Distinct(StringComparer.InvariantCultureIgnoreCase).ToArray();
Microsoft.Build.Utilities.Core (6)
CopyOnWriteDictionary.cs (1)
387KeyValuePair<string, V>[] array = snapshot.ToArray();
FileMatcher.cs (3)
1956var filesToReturn = files.ToArray(); 2611? listOfFiles.SelectMany(list => list).Where(f => !resultsToExclude.Contains(f)).ToArray() 2612: listOfFiles.SelectMany(list => list).ToArray();
PrintLineDebuggerWriters.cs (1)
55var argsArray = args as string[] ?? args.ToArray();
ToolLocationHelper.cs (1)
1426vsInstallFolders = vsInstancePaths.ToArray();
Microsoft.Cci.Extensions (8)
Dgml\DgmlExtensions.cs (2)
15var materializedAssemblies = assemblies.ToArray(); 18var assemblyNames = definedNames.Concat(referencedNames).Distinct(StringComparer.OrdinalIgnoreCase).ToArray();
Differs\ElementDifferenceFactory.cs (1)
49_diffRules = rules.Select(r => r.CreateExport().Value).ToArray();
Differs\ListMerger.cs (2)
16T[] array0 = list0 == null ? new T[0] : list0.ToArray(); 17T[] array1 = list1 == null ? new T[0] : list1.ToArray();
Extensions\AssemblyIdentityHelpers.cs (1)
18name.SetPublicKeyToken(assemblyIdentity.PublicKeyToken.ToArray());
HostEnvironment.cs (1)
228IAssembly[] loadedAssemblies = this.LoadedUnits.OfType<IAssembly>().ToArray();
Writers\CSharp\CSDeclarationWriter.Generics.cs (1)
44Action[] constraints = GetConstraints(param, methodNullableContextValue).ToArray();
Microsoft.CodeAnalysis (17)
Binding\AbstractLookupSymbolsInfo.cs (1)
36_arities = arities.ToArray();
DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (1)
95return _loadContextByDirectory.Values.OrderBy(v => v.Directory).ToArray();
DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
394.ToArray();
DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
648typeSymbol = typeSymbol.Construct(typeArguments.Select(t => t.Type).ToArray());
FileSystem\PathUtilities.cs (1)
637pathParts = pathParts.Where(s => s != ThisDirectory).ToArray();
InternalUtilities\EnumerableExtensions.cs (2)
352=> source as T[] ?? source.ToArray(); 711return TransposeInternal(data).ToArray();
InternalUtilities\XmlUtilities.cs (1)
78return xpathResult?.ToArray();
Syntax\AnnotationExtensions.cs (1)
66return node.WithoutAnnotations<TNode>(node.GetAnnotations(annotationKind).ToArray());
Syntax\ChildSyntaxList.cs (1)
363return this.ToArray();
Syntax\SeparatedSyntaxList.cs (2)
591get { return this.ToArray(); } 596get { return _list.ToArray(); }
Syntax\SyntaxList`1.cs (1)
427get { return this.ToArray(); }
Syntax\SyntaxNodeOrTokenList.cs (1)
434get { return this.ToArray(); }
Syntax\SyntaxTokenList.cs (1)
443private SyntaxToken[] Nodes => this.ToArray();
Syntax\SyntaxTriviaList.cs (1)
425private SyntaxTrivia[] Nodes => this.ToArray();
TreeDumper.cs (1)
220return string.Format("{{{0}}}", string.Join(", ", seq.Cast<object>().Select(DumperString).ToArray()));
Microsoft.CodeAnalysis.CodeStyle (17)
src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
648typeSymbol = typeSymbol.Construct(typeArguments.Select(t => t.Type).ToArray());
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
637pathParts = pathParts.Where(s => s != ThisDirectory).ToArray();
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (2)
352=> source as T[] ?? source.ToArray(); 711return TransposeInternal(data).ToArray();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
264descriptor.Description, descriptor.HelpLinkUri, descriptor.CustomTags.ToArray());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
508return delegateType.TryConstruct(types.ToArray());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (1)
92return _typeGenerator.Construct(symbol.OriginalDefinition, substitutedArguments.ToArray()).WithNullableAnnotation(symbol.NullableAnnotation);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeOrTokenExtensions.cs (1)
54=> nodesOrTokens.SelectMany(nodeOrToken => nodeOrToken.GetLeadingTrivia().Concat(nodeOrToken.GetTrailingTrivia())).ToArray();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTokenExtensions.cs (1)
162=> tokens.SelectMany(token => SyntaxNodeOrTokenExtensions.GetTrivia(token)).ToArray();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.AnalysisData.cs (1)
237foreach (var symbol in SymbolsWriteBuilder.Keys.Select(d => d.symbol).ToArray())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
226foreach (var (symbol, write) in SymbolsWriteBuilder.Where(kvp => !kvp.Value).Select(kvp => kvp.Key).ToArray())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (1)
155.ToArray());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AnnotationTable.cs (4)
76=> node.WithAdditionalAnnotations(this.GetOrCreateRealAnnotations(annotations).ToArray()); 79=> token.WithAdditionalAnnotations(this.GetOrCreateRealAnnotations(annotations).ToArray()); 82=> trivia.WithAdditionalAnnotations(this.GetOrCreateRealAnnotations(annotations).ToArray()); 85=> nodeOrToken.WithAdditionalAnnotations(this.GetOrCreateRealAnnotations(annotations).ToArray());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
97var distinctValues = values.Where(v => v.Length > 0).Distinct(CaseInsensitiveComparison.Comparer).ToArray();
Microsoft.CodeAnalysis.CodeStyle.Fixes (5)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AbstractAddImportsService.cs (5)
143var filteredImports = newImports.Where(i => !HasExistingImport(i, containers, globalImports)).ToArray(); 145var externAliases = filteredImports.OfType<TExternSyntax>().ToArray(); 146var usingDirectives = filteredImports.OfType<TUsingOrAliasSyntax>().Where(IsSimpleUsing).ToArray(); 147var staticUsingDirectives = filteredImports.OfType<TUsingOrAliasSyntax>().Where(IsStaticUsing).ToArray(); 148var aliasDirectives = filteredImports.OfType<TUsingOrAliasSyntax>().Where(IsAlias).ToArray();
Microsoft.CodeAnalysis.CSharp (5)
CodeGen\Optimizer.cs (1)
98foreach (var local in info.Keys.ToArray())
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (1)
206XNode[] rewritten = RewriteMany(oldNodes.ToArray(), currentXmlFilePath, originatingSyntax);
FlowAnalysis\DefiniteAssignment.cs (1)
739protected IEnumerable<Symbol> GetUnsafeAddressTaken() => _unsafeAddressTakenVariables.Keys.ToArray();
Syntax\SyntaxNodeRemover.cs (2)
27var nodeArray = nodes.ToArray(); 34var remover = new SyntaxRemover(nodes.ToArray(), options);
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (2)
470var originalSwitchLabels = originalSwitchStatement.Sections.SelectMany(section => section.Labels).ToArray(); 471var newSwitchLabels = newSwitchStatement.Sections.SelectMany(section => section.Labels).ToArray();
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (7)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (7)
328var attributeSyntaxList = AttributeGenerator.GenerateAttributeLists(attributes.ToImmutableArray(), info, target).ToArray(); 347return Cast<TDeclarationNode>(enumDeclaration.AddMembers(members.Cast<EnumMemberDeclarationSyntax>().ToArray())); 351return Cast<TDeclarationNode>(typeDeclaration.AddMembers(members.Cast<MemberDeclarationSyntax>().ToArray())); 355return Cast<TDeclarationNode>(namespaceDeclaration.AddMembers(members.Cast<MemberDeclarationSyntax>().ToArray())); 360.AddMembers(members.Cast<MemberDeclarationSyntax>().ToArray())); 510var wrappedStatements = StatementGenerator.GenerateStatements(statements).Select(GlobalStatement).ToArray(); 545var newStatements = statements.OfType<StatementSyntax>().ToArray();
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (22)
CommandLineTests.cs (20)
510string[] resolvedSourceFiles = args.SourceFiles.Select(f => f.Path).ToArray(); 511string[] references = args.MetadataReferences.Select(r => r.Reference).ToArray(); 606string[] resolvedSourceFiles = args.SourceFiles.Select(f => f.Path).ToArray(); 715resolvedSourceFiles = args.SourceFiles.Select(f => f.Path).ToArray(); 720resolvedSourceFiles = args.SourceFiles.Select(f => f.Path).ToArray(); 725resolvedSourceFiles = args.SourceFiles.Select(f => f.Path).ToArray(); 2539foreach ((var dirPath, var fileMap) in expectedFilesMap.ToArray()) 7079var csc = CreateCSharpCompiler(null, dir.Path, commandLineArguments.Concat(new[] { inputName1, inputName2 }).ToArray()); 7199var csc = CreateCSharpCompiler(null, dir.Path, commandLineArguments.Concat(new[] { fileName }).ToArray()); 9377var allCommandLineArgs = new[] { "/nologo", "/preferreduilang:en", "/t:library" }.Concat(commandLineArgs).ToArray(); 11623var args = defaultArgs.Concat(extraArgs).ToArray(); 12224references = references.Concat(NetStandard13.References.All).ToArray(); 13521additionalArgs = additionalArgs.Append("/analyzerconfig:" + analyzerConfig.Path).ToArray(); 13571additionalArgs = additionalArgs.Append("/ruleset:" + rulesetFile.Path).ToArray(); 13888additionalFlags = additionalFlags.Append($"/analyzerconfig:{analyzerConfig.Path}").ToArray(); 13893additionalFlags = additionalFlags.Append($"/warnaserror-:{diagnosticId}").ToArray(); 14249VerifyOutput(dir, src, includeCurrentAssemblyAsAnalyzerReference: false, additionalFlags: new[] { "/generatedfilesout:" + generatedDir.Path, "/analyzer:" + gen1, "/analyzer:" + gen2 }.ToArray()); 15146additionalFlags = additionalFlags.Append("/analyzerconfig:" + globalConfig.Path).ToArray(); 15158additionalFlags = additionalFlags.Append("/ruleset:Rules.ruleset").ToArray(); 15304additionalArgs = additionalArgs.Append("/analyzerconfig:" + analyzerConfig.Path).ToArray();
GeneratorDriverCacheTests.cs (1)
101private static GeneratorDriver[] GetDrivers(int count) => Enumerable.Range(0, count).Select(i => CSharpGeneratorDriver.Create(Array.Empty<ISourceGenerator>())).ToArray();
SarifV2ErrorLoggerTests.cs (1)
433}.Concat(additionalArguments).ToArray();
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (12)
Completion\ArgumentProviders\ArgumentProviderOrderTests.cs (1)
31var actualOrder = orderedCSharpArgumentProviders.Select(x => x.Value.GetType()).ToArray();
Completion\CompletionProviders\CompletionProviderOrderTests.cs (1)
32var actualOrder = orderedCSharpCompletionProviders.Select(x => x.Value.GetType()).ToArray();
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (1)
803diagnostics.Verify(expectedDiagnostics.Select(d => d.diagnostic).ToArray());
Intents\IntentTestsBase.cs (1)
59var documentSet = additionalDocuments.Prepend(priorDocumentText).ToArray();
PdbSourceDocument\AbstractPdbSourceDocumentTests.cs (1)
290embeddedTexts = sources.Select((s, i) => EmbeddedText.FromSource(sourceCodePaths[i], s)).ToArray();
QuickInfo\DiagnosticAnalyzerQuickInfoSourceTests.cs (1)
186info.RelatedSpans.Select(actualSpan => new Action<TextSpan>(expectedSpan => Assert.Equal(expectedSpan, actualSpan))).ToArray());
QuickInfo\SemanticQuickInfoSourceTests.cs (1)
8370item.Sections.First(section => section.Kind == QuickInfoSectionKinds.DocumentationComments).TaggedParts.Select(p => p.Tag).ToArray(),
SymbolKey\SymbolKeyCompilationsTests.cs (4)
287var originalSymbols = GetSourceSymbols(originalComp, SymbolCategory.DeclaredType | SymbolCategory.DeclaredNamespace).OrderBy(s => s.Name).ToArray(); 288var newSymbols = GetSourceSymbols(newComp, SymbolCategory.DeclaredType | SymbolCategory.DeclaredNamespace).OrderBy(s => s.Name).ToArray(); 308var originalSymbols = GetSourceSymbols(originalComp, SymbolCategory.DeclaredType | SymbolCategory.DeclaredNamespace).OrderBy(s => s.Name).ToArray(); 309var newSymbols = GetSourceSymbols(newComp, SymbolCategory.DeclaredType | SymbolCategory.DeclaredNamespace).OrderBy(s => s.Name).ToArray();
SymbolKey\SymbolKeyTests.cs (1)
83var members = compilation.GlobalNamespace.GetMembers("C").ToArray();
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (2)
EmbeddedLanguages\Json\CSharpJsonParserTests.cs (1)
36var token = parsedStatement.DescendantTokens().ToArray()[3];
EmbeddedLanguages\RegularExpressions\CSharpRegexParserTests.cs (1)
34var token = parsedStatement.DescendantTokens().ToArray()[3];
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (30)
CodeGen\CodeGenAsyncMethodBuilderOverrideTests.cs (2)
895var lambdas = tree.GetRoot().DescendantNodes().OfType<LambdaExpressionSyntax>().ToArray(); 947var lambdas = tree.GetRoot().DescendantNodes().OfType<LambdaExpressionSyntax>().ToArray();
CodeGen\CodeGenDeconstructTests.cs (6)
3655var nameRef = GetReferences(tree, name).ToArray(); 6031var discards = GetDiscardIdentifiers(tree).ToArray(); 6084var discards = GetDiscardIdentifiers(tree).ToArray(); 6133var discards = GetDiscardIdentifiers(tree).ToArray(); 7438VerifyModelForLocal(model, x1, LocalDeclarationKind.OutVariable, x1Ref.ToArray()); 7439VerifyModelForLocal(model, x2, LocalDeclarationKind.PatternVariable, x2Ref.ToArray());
CodeGen\CodeGenFunctionPointersTests.cs (9)
3062var addressOfs = syntaxTree.GetRoot().DescendantNodes().OfType<PrefixUnaryExpressionSyntax>().ToArray(); 3339var declarators = syntaxTree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().Where(d => d.Initializer!.Value.IsKind(SyntaxKind.AddressOfExpression)).ToArray(); 3340var addressOfs = declarators.Select(d => d.Initializer!.Value).ToArray(); 3568var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 3620var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 3671var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 3710var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 7517var functionPointerSyntaxes = tree.GetRoot().DescendantNodes().OfType<FunctionPointerTypeSyntax>().ToArray(); 10804var lambdas = tree.GetRoot().DescendantNodes().OfType<LambdaExpressionSyntax>().ToArray();
CodeGen\CodeGenInterpolatedString.cs (1)
37var interpolatedStrings = tree.GetRoot().DescendantNodes().OfType<InterpolatedStringExpressionSyntax>().ToArray();
CodeGen\CodeGenReadOnlySpanConstructionTest.cs (1)
2689string[] actual = Regex.Matches(il, @"\.class nested assembly explicit ansi sealed '([^']*?)'").Cast<Match>().Select(m => m.Groups[1].Value).ToArray();
CodeGen\CodeGenTupleTest.cs (4)
13981var typeofNodes = tree.GetRoot().DescendantNodes().OfType<TypeOfExpressionSyntax>().ToArray(); 23502var comp = CompileAndVerifyWithMscorlib40(source, expectedOutput: "42qq", references: s_valueTupleRefs.Concat(new[] { libCompRef }).ToArray(), options: TestOptions.DebugExe, verify: Verification.Fails); 23846var comp = CreateCompilationWithMscorlib461AndCSharp(source, references: (new[] { libCompRef }).Concat(s_valueTupleRefs).ToArray(), options: TestOptions.DebugExe); 24180var nodes = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "elem2").ToArray();
CodeGen\IndexAndRangeTests.cs (1)
3857var receivers = tree.GetRoot().DescendantNodes().OfType<ElementAccessExpressionSyntax>().Select(e => e.Expression).ToArray();
CodeGen\PatternTests.cs (3)
5004var switchExpressions = tree.GetRoot().DescendantNodes().OfType<SwitchExpressionSyntax>().ToArray(); 5130var attributeArguments = tree.GetRoot().DescendantNodes().OfType<AttributeArgumentSyntax>().ToArray(); 5279var attributeArguments = tree.GetRoot().DescendantNodes().OfType<AttributeArgumentSyntax>().ToArray();
Emit\CovariantReturnTests.cs (1)
243references.ToArray().Prepend(CorelibraryWithCovariantReturnSupport);
Emit\DeterministicTests.cs (1)
438var trees = cv.Compilation.SyntaxTrees.ToArray();
Emit\EmitErrorTests.cs (1)
249}).ToArray());
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (5)
Emit\EditAndContinue\EditAndContinueTestBase.cs (2)
40new MetadataVisualizer(new[] { baseline.MetadataReader }.Concat(deltas.Select(d => d.Reader)).ToArray(), result).VisualizeAllGenerations(); 240=> new MetadataAggregator(readers[0], readers.Skip(1).ToArray());
Emit\NumericIntPtrTests.cs (2)
10547var returnStatements = tree.GetRoot().DescendantNodes().OfType<ReturnStatementSyntax>().ToArray(); 10686var methods = tree.GetRoot().DescendantNodes().OfType<MethodDeclarationSyntax>().ToArray();
PDB\TypeDefinitionDocumentTests.cs (1)
463var trees = sources.Select((s, i) => SyntaxFactory.ParseSyntaxTree(s, path: $"{i + 1}.cs", encoding: Encoding.UTF8)).ToArray();
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2196)
Attributes\AttributeTests_Assembly.cs (4)
2127var list = GetAssemblyDescriptionAttributes(m.ContainingAssembly).ToArray(); 2159var list = GetAssemblyDescriptionAttributes(m.ContainingAssembly).ToArray(); 2189var list = GetAssemblyDescriptionAttributes(m.ContainingAssembly).ToArray(); 2221var list = GetAssemblyDescriptionAttributes(m.ContainingAssembly).ToArray();
Attributes\AttributeTests_NativeInteger.cs (1)
1614var actualNames = handles.Select(h => GetAttributeConstructorName(reader, h)).ToArray();
Attributes\AttributeTests_Nullable.cs (3)
4749var fieldDefs = typeDef.GetFields().Select(f => reader.GetFieldDefinition(f)).ToArray(); 4875var parameters = method.GetParameters().Select(p => reader.GetParameter(p)).ToArray(); 5423var actualNames = handles.Select(h => GetAttributeConstructorName(reader, h)).ToArray();
Attributes\AttributeTests_WellKnownAttributes.cs (2)
2717MethodDefinitionHandle[] methodDefs = metadataReader.MethodDefinitions.AsEnumerable().ToArray(); 9907references: WinRtRefs.Append(CreateEmptyCompilation(new[] { libSrc }, WinRtRefs, TestOptions.ReleaseDll).EmitToImageReference()).ToArray(),
Diagnostics\DiagnosticAnalyzerTests.cs (11)
323var effectiveDiags = comp.GetEffectiveDiagnostics(diags).ToArray(); 339effectiveDiags = comp.GetEffectiveDiagnostics(diags).ToArray(); 351effectiveDiags = comp.GetEffectiveDiagnostics(diags).ToArray(); 401var effectiveDiags = comp.GetEffectiveDiagnostics(diags).ToArray(); 406effectiveDiags = comp.GetEffectiveDiagnostics(diags).ToArray(); 412effectiveDiags = comp.GetEffectiveDiagnostics(diags).ToArray(); 419effectiveDiags = comp.GetEffectiveDiagnostics(diags).ToArray(); 426effectiveDiags = comp.GetEffectiveDiagnostics(diags).ToArray(); 433effectiveDiags = comp.GetEffectiveDiagnostics(diags).ToArray(); 453var effectiveDiags = comp.GetEffectiveDiagnostics(diags).ToArray(); 464effectiveDiags = comp.GetEffectiveDiagnostics(diags).ToArray();
FieldKeywordTests.cs (2)
1275var attributeArguments = tree.GetRoot().DescendantNodes().OfType<AttributeArgumentSyntax>().Select(arg => arg.Expression).ToArray(); 1333var attributeArguments = tree.GetRoot().DescendantNodes().OfType<AttributeArgumentSyntax>().Select(arg => arg.Expression).ToArray();
OverloadResolutionPriorityTests.cs (2)
760var accesses = tree.GetRoot().DescendantNodes().OfType<ElementAccessExpressionSyntax>().ToArray(); 2494.ToArray();
RefReadonlyParameterTests.cs (1)
4748verifier.VerifyDiagnostics(fromMetadata ? warnings2 : warnings1.Concat(warnings2).ToArray());
RefStructInterfacesTests.cs (2)
21244var localFunctions = tree.GetRoot().DescendantNodes().OfType<LocalFunctionStatementSyntax>().ToArray(); 21707var lambdas = tree.GetRoot().DescendantNodes().OfType<ParenthesizedLambdaExpressionSyntax>().ToArray();
Semantics\CollectionExpressionTests.cs (13)
201var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray(); 236var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray(); 15080var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray(); 28620var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray(); 28664var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray(); 28710var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray(); 28754var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray(); 28797var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray(); 28946var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray(); 28999var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray(); 29065var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray(); 29126var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray(); 29245var collections = tree.GetRoot().DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
Semantics\ExperimentalAttributeTests.cs (1)
2336? CreateCompilation(libsSrc.Append(src).ToArray())
Semantics\InlineArrayTests.cs (1)
15208var f = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(m => m.Identifier.ValueText == "F").ToArray();
Semantics\OutVarTests.cs (1068)
826var nameRef = GetReferences(tree, name).ToArray(); 1886var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 1887var x1Ref = GetReferences(tree, "x1").ToArray(); 2015var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 2021var x6Decl = GetOutVarDeclarations(tree, "x6").ToArray(); 2022var x6Ref = GetReferences(tree, "x6").ToArray(); 2029var x7Ref = GetReferences(tree, "x7").ToArray(); 2125var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 2131var x6Decl = GetOutVarDeclarations(tree, "x6").ToArray(); 2132var x6Ref = GetReferences(tree, "x6").ToArray(); 2139var x7Ref = GetReferences(tree, "x7").ToArray(); 2236var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 2242var x6Decl = GetOutVarDeclarations(tree, "x6").ToArray(); 2243var x6Ref = GetReferences(tree, "x6").ToArray(); 2250var x7Ref = GetReferences(tree, "x7").ToArray(); 2346var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 2352var x6Decl = GetOutVarDeclarations(tree, "x6").ToArray(); 2353var x6Ref = GetReferences(tree, "x6").ToArray(); 2360var x7Ref = GetReferences(tree, "x7").ToArray(); 2641var x1Ref = GetReferences(tree, "x1").ToArray(); 2646var x4Ref = GetReferences(tree, "x4").ToArray(); 2652var x6Ref = GetReferences(tree, "x6").ToArray(); 2657var x7Ref = GetReferences(tree, "x7").ToArray(); 2663var x8Ref = GetReferences(tree, "x8").ToArray(); 2668var x9Decl = GetOutVarDeclarations(tree, "x9").ToArray(); 2669var x9Ref = GetReferences(tree, "x9").ToArray(); 2675var y10Ref = GetReferences(tree, "y10").ToArray(); 2680var x14Decl = GetOutVarDeclarations(tree, "x14").ToArray(); 2681var x14Ref = GetReferences(tree, "x14").ToArray(); 2688var x15Ref = GetReferences(tree, "x15").ToArray(); 2858var x1Ref = GetReferences(tree, "x1").ToArray(); 2863var x4Ref = GetReferences(tree, "x4").ToArray(); 2869var x6Ref = GetReferences(tree, "x6").ToArray(); 2874var x7Ref = GetReferences(tree, "x7").ToArray(); 2880var x8Ref = GetReferences(tree, "x8").ToArray(); 2885var x9Decl = GetOutVarDeclarations(tree, "x9").ToArray(); 2886var x9Ref = GetReferences(tree, "x9").ToArray(); 2892var y10Ref = GetReferences(tree, "y10").ToArray(); 2897var x14Decl = GetOutVarDeclarations(tree, "x14").ToArray(); 2898var x14Ref = GetReferences(tree, "x14").ToArray(); 2905var x15Ref = GetReferences(tree, "x15").ToArray(); 2953var x1Ref = GetReferences(tree, "x1").ToArray(); 3212var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 3218var x6Decl = GetOutVarDeclarations(tree, "x6").ToArray(); 3219var x6Ref = GetReferences(tree, "x6").ToArray(); 3226var x7Ref = GetReferences(tree, "x7").ToArray(); 3314var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 3320var x6Decl = GetOutVarDeclarations(tree, "x6").ToArray(); 3321var x6Ref = GetReferences(tree, "x6").ToArray(); 3328var x7Ref = GetReferences(tree, "x7").ToArray(); 3379var x1Ref = GetReferences(tree, "x1").ToArray(); 3431var x1Ref = GetReferences(tree, "x1").ToArray(); 3654var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 3868var x1Ref = GetReferences(tree, "x1").ToArray(); 3873var x2Ref = GetReferences(tree, "x2").ToArray(); 3878var x4Ref = GetReferences(tree, "x4").ToArray(); 3884var x6Ref = GetReferences(tree, "x6").ToArray(); 3889var x7Ref = GetReferences(tree, "x7").ToArray(); 3895var x8Ref = GetReferences(tree, "x8").ToArray(); 3900var x9Decl = GetOutVarDeclarations(tree, "x9").ToArray(); 3901var x9Ref = GetReferences(tree, "x9").ToArray(); 3907var y10Ref = GetReferences(tree, "y10").ToArray(); 3915var x14Decl = GetOutVarDeclarations(tree, "x14").ToArray(); 3916var x14Ref = GetReferences(tree, "x14").ToArray(); 4010var x1Ref = GetReferences(tree, "x1").ToArray(); 4055var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 4056var x1Ref = GetReferences(tree, "x1").ToArray(); 4100var x1Ref = GetReferences(tree, "x1").ToArray(); 4150var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 4151var x1Ref = GetReferences(tree, "x1").ToArray(); 4210var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 4211var x1Ref = GetReferences(tree, "x1").ToArray(); 4284var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 4290var x6Decl = GetOutVarDeclarations(tree, "x6").ToArray(); 4291var x6Ref = GetReferences(tree, "x6").ToArray(); 4298var x7Ref = GetReferences(tree, "x7").ToArray(); 4510var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 4516var x6Decl = GetOutVarDeclarations(tree, "x6").ToArray(); 4517var x6Ref = GetReferences(tree, "x6").ToArray(); 4524var x7Ref = GetReferences(tree, "x7").ToArray(); 4531var x11Ref = GetReferences(tree, "x11").ToArray(); 4537var x12Ref = GetReferences(tree, "x12").ToArray(); 4686var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 4692var x6Decl = GetOutVarDeclarations(tree, "x6").ToArray(); 4693var x6Ref = GetReferences(tree, "x6").ToArray(); 4700var x7Ref = GetReferences(tree, "x7").ToArray(); 4919var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 4920var x1Ref = GetReferences(tree, "x1").ToArray(); 4936var x4Ref = GetReferences(tree, "x4").ToArray(); 4943var x5Ref = GetReferences(tree, "x5").ToArray(); 4947var x8Decl = GetOutVarDeclarations(tree, "x8").ToArray(); 4948var x8Ref = GetReferences(tree, "x8").ToArray(); 4966var x11Ref = GetReferences(tree, "x11").ToArray(); 4971var x12Ref = GetReferences(tree, "x12").ToArray(); 5021var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 5022var x1Ref = GetReferences(tree, "x1").ToArray(); 5068var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 5069var x1Ref = GetReferences(tree, "x1").ToArray(); 5116var x1Ref = GetReferences(tree, "x1").ToArray(); 5191var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 5197var x6Decl = GetOutVarDeclarations(tree, "x6").ToArray(); 5198var x6Ref = GetReferences(tree, "x6").ToArray(); 5205var x7Ref = GetReferences(tree, "x7").ToArray(); 5294var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 5300var x6Decl = GetOutVarDeclarations(tree, "x6").ToArray(); 5301var x6Ref = GetReferences(tree, "x6").ToArray(); 5308var x7Ref = GetReferences(tree, "x7").ToArray(); 5421var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 5427var x6Decl = GetOutVarDeclarations(tree, "x6").ToArray(); 5428var x6Ref = GetReferences(tree, "x6").ToArray(); 5435var x7Ref = GetReferences(tree, "x7").ToArray(); 5524var x5Ref = GetReferences(tree, "x5").ToArray(); 5752var x1Ref = GetReferences(tree, "x1").ToArray(); 5913var x1Ref = GetReferences(tree, "x1").ToArray(); 5918var x2Ref = GetReferences(tree, "x2").ToArray(); 5923var x4Ref = GetReferences(tree, "x4").ToArray(); 5929var x6Ref = GetReferences(tree, "x6").ToArray(); 5934var x7Ref = GetReferences(tree, "x7").ToArray(); 5940var x8Ref = GetReferences(tree, "x8").ToArray(); 5945var x9Decl = GetOutVarDeclarations(tree, "x9").ToArray(); 5946var x9Ref = GetReferences(tree, "x9").ToArray(); 5952var y10Ref = GetReferences(tree, "y10").ToArray(); 5960var x14Decl = GetOutVarDeclarations(tree, "x14").ToArray(); 5961var x14Ref = GetReferences(tree, "x14").ToArray(); 6054var x1Ref = GetReferences(tree, "x1").ToArray(); 6061var x2Ref = GetReferences(tree, "x2").ToArray(); 6066var x3Ref = GetReferences(tree, "x3").ToArray(); 6072var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 6073var x4Ref = GetReferences(tree, "x4").ToArray(); 6331var x1Ref = GetReferences(tree, "x1").ToArray(); 6336var x2Ref = GetReferences(tree, "x2").ToArray(); 6341var x4Ref = GetReferences(tree, "x4").ToArray(); 6347var x6Ref = GetReferences(tree, "x6").ToArray(); 6352var x7Ref = GetReferences(tree, "x7").ToArray(); 6358var x8Ref = GetReferences(tree, "x8").ToArray(); 6363var x9Decl = GetOutVarDeclarations(tree, "x9").ToArray(); 6364var x9Ref = GetReferences(tree, "x9").ToArray(); 6370var y10Ref = GetReferences(tree, "y10").ToArray(); 6378var x14Decl = GetOutVarDeclarations(tree, "x14").ToArray(); 6379var x14Ref = GetReferences(tree, "x14").ToArray(); 6566var x1Ref = GetReferences(tree, "x1").ToArray(); 6571var x2Ref = GetReferences(tree, "x2").ToArray(); 6576var x4Ref = GetReferences(tree, "x4").ToArray(); 6582var x6Ref = GetReferences(tree, "x6").ToArray(); 6587var x7Ref = GetReferences(tree, "x7").ToArray(); 6593var x8Ref = GetReferences(tree, "x8").ToArray(); 6598var x9Decl = GetOutVarDeclarations(tree, "x9").ToArray(); 6599var x9Ref = GetReferences(tree, "x9").ToArray(); 6605var y10Ref = GetReferences(tree, "y10").ToArray(); 6613var x14Decl = GetOutVarDeclarations(tree, "x14").ToArray(); 6614var x14Ref = GetReferences(tree, "x14").ToArray(); 6822var x1Ref = GetReferences(tree, "x1").ToArray(); 6828var x2Ref = GetReferences(tree, "x2").ToArray(); 6834var x4Ref = GetReferences(tree, "x4").ToArray(); 6841var x6Ref = GetReferences(tree, "x6").ToArray(); 6847var x7Ref = GetReferences(tree, "x7").ToArray(); 6853var x8Ref = GetReferences(tree, "x8").ToArray(); 6859var x9Decl = GetOutVarDeclarations(tree, "x9").ToArray(); 6860var x9Ref = GetReferences(tree, "x9").ToArray(); 6868var y10Ref = GetReferences(tree, "y10").ToArray(); 6876var x14Decl = GetOutVarDeclarations(tree, "x14").ToArray(); 6877var x14Ref = GetReferences(tree, "x14").ToArray(); 7068var x1Ref = GetReferences(tree, "x1").ToArray(); 7073var x2Ref = GetReferences(tree, "x2").ToArray(); 7078var x4Ref = GetReferences(tree, "x4").ToArray(); 7084var x6Ref = GetReferences(tree, "x6").ToArray(); 7089var x7Ref = GetReferences(tree, "x7").ToArray(); 7095var x8Ref = GetReferences(tree, "x8").ToArray(); 7100var x9Decl = GetOutVarDeclarations(tree, "x9").ToArray(); 7101var x9Ref = GetReferences(tree, "x9").ToArray(); 7107var y10Ref = GetReferences(tree, "y10").ToArray(); 7115var x14Decl = GetOutVarDeclarations(tree, "x14").ToArray(); 7116var x14Ref = GetReferences(tree, "x14").ToArray(); 7306var x1Ref = GetReferences(tree, "x1").ToArray(); 7311var x2Ref = GetReferences(tree, "x2").ToArray(); 7316var x4Ref = GetReferences(tree, "x4").ToArray(); 7322var x6Ref = GetReferences(tree, "x6").ToArray(); 7327var x7Ref = GetReferences(tree, "x7").ToArray(); 7333var x8Ref = GetReferences(tree, "x8").ToArray(); 7338var x9Decl = GetOutVarDeclarations(tree, "x9").ToArray(); 7339var x9Ref = GetReferences(tree, "x9").ToArray(); 7345var y10Ref = GetReferences(tree, "y10").ToArray(); 7353var x14Decl = GetOutVarDeclarations(tree, "x14").ToArray(); 7354var x14Ref = GetReferences(tree, "x14").ToArray(); 7658var x8Decl = GetOutVarDeclarations(tree, "x8").ToArray(); 7659var x8Ref = GetReferences(tree, "x8").ToArray(); 7667var x9Decl = GetOutVarDeclarations(tree, "x9").ToArray(); 7668var x9Ref = GetReferences(tree, "x9").ToArray(); 7675var x10Decl = GetOutVarDeclarations(tree, "x10").ToArray(); 7676var x10Ref = GetReferences(tree, "x10").ToArray(); 7684var x11Decl = GetOutVarDeclarations(tree, "x11").ToArray(); 7685var x11Ref = GetReferences(tree, "x11").ToArray(); 7693var x12Decl = GetOutVarDeclarations(tree, "x12").ToArray(); 7694var x12Ref = GetReferences(tree, "x12").ToArray(); 7701var x13Decl = GetOutVarDeclarations(tree, "x13").ToArray(); 7702var x13Ref = GetReferences(tree, "x13").ToArray(); 7710var x14Decl = GetOutVarDeclarations(tree, "x14").ToArray(); 7711var x14Ref = GetReferences(tree, "x14").ToArray(); 7720var x15Ref = GetReferences(tree, "x15").ToArray(); 7777var x1Ref = GetReferences(tree, "x1").ToArray(); 7781var x2Decl = GetOutVarDeclarations(tree, "x2").ToArray(); 7782var x2Ref = GetReferences(tree, "x2").ToArray(); 7837var x0Ref = GetReferences(tree, "x0").ToArray(); 7842var x1Ref = GetReferences(tree, "x1").ToArray(); 7847var x2Ref = GetReferences(tree, "x2").ToArray(); 7899var x0Ref = GetReferences(tree, "x0").ToArray(); 7904var x1Ref = GetReferences(tree, "x1").ToArray(); 7909var x2Ref = GetReferences(tree, "x2").ToArray(); 7964var x0Decl = GetOutVarDeclarations(tree, "x0").ToArray(); 7965var x0Ref = GetReferences(tree, "x0").ToArray(); 7970var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 7971var x1Ref = GetReferences(tree, "x1").ToArray(); 8028var x0Decl = GetOutVarDeclarations(tree, "x0").ToArray(); 8029var x0Ref = GetReferences(tree, "x0").ToArray(); 8034var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 8035var x1Ref = GetReferences(tree, "x1").ToArray(); 8095var x0Decl = GetOutVarDeclarations(tree, "x0").ToArray(); 8096var x0Ref = GetReferences(tree, "x0").ToArray(); 8101var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 8102var x1Ref = GetReferences(tree, "x1").ToArray(); 8157var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 8158var x1Ref = GetReferences(tree, "x1").ToArray(); 8212var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 8213var x1Ref = GetReferences(tree, "x1").ToArray(); 8391var x1Ref = GetReferences(tree, "x1").ToArray(); 8396var x2Ref = GetReferences(tree, "x2").ToArray(); 8401var x4Ref = GetReferences(tree, "x4").ToArray(); 8407var x6Ref = GetReferences(tree, "x6").ToArray(); 8412var x7Ref = GetReferences(tree, "x7").ToArray(); 8418var x8Ref = GetReferences(tree, "x8").ToArray(); 8423var x9Decl = GetOutVarDeclarations(tree, "x9").ToArray(); 8424var x9Ref = GetReferences(tree, "x9").ToArray(); 8430var y10Ref = GetReferences(tree, "y10").ToArray(); 8438var x14Decl = GetOutVarDeclarations(tree, "x14").ToArray(); 8439var x14Ref = GetReferences(tree, "x14").ToArray(); 8446var x15Ref = GetReferences(tree, "x15").ToArray(); 8491var x1Ref = GetReferences(tree, "x1").ToArray(); 8663var x1Ref = GetReferences(tree, "x1").ToArray(); 8668var x2Ref = GetReferences(tree, "x2").ToArray(); 8673var x3Ref = GetReferences(tree, "x3").ToArray(); 8679var x4Ref = GetReferences(tree, "x4").ToArray(); 8690var x6Ref = GetReferences(tree, "x6").ToArray(); 8695var x7Ref = GetReferences(tree, "x7").ToArray(); 8701var x8Ref = GetReferences(tree, "x8").ToArray(); 8705var x9Decl = GetOutVarDeclarations(tree, "x9").ToArray(); 8706var x9Ref = GetReferences(tree, "x9").ToArray(); 8712var y10Ref = GetReferences(tree, "y10").ToArray(); 8810var x1Ref = GetReferences(tree, "x1").ToArray(); 8872var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 8873var x1Ref = GetReferences(tree, "x1").ToArray(); 8922var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 8923var x1Ref = GetReferences(tree, "x1").ToArray(); 9172var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 9178var x6Decl = GetOutVarDeclarations(tree, "x6").ToArray(); 9179var x6Ref = GetReferences(tree, "x6").ToArray(); 9186var x7Ref = GetReferences(tree, "x7").ToArray(); 9195var x8Ref = GetReferences(tree, "x8").ToArray(); 9199var x9Decl = GetOutVarDeclarations(tree, "x9").ToArray(); 9200var x9Ref = GetReferences(tree, "x9").ToArray(); 9206var x10Decl = GetOutVarDeclarations(tree, "x10").ToArray(); 9207var x10Ref = GetReferences(tree, "x10").ToArray(); 9214var x11Ref = GetReferences(tree, "x11").ToArray(); 9221var x12Ref = GetReferences(tree, "x12").ToArray(); 9342var x4Ref = GetReferences(tree, "x4").ToArray(); 9353var x8Ref = GetReferences(tree, "x8").ToArray(); 9357var x14Decl = GetOutVarDeclarations(tree, "x14").ToArray(); 9435var x4Ref = GetReferences(tree, "x4").ToArray(); 9446var x8Ref = GetReferences(tree, "x8").ToArray(); 9450var x14Decl = GetOutVarDeclarations(tree, "x14").ToArray(); 9511var x1Ref = GetReferences(tree, "x1").ToArray(); 9518var x2Ref = GetReferences(tree, "x2").ToArray(); 9587var x1Ref = GetReferences(tree, "x1").ToArray(); 9591var x2Decl = GetOutVarDeclarations(tree, "x2").ToArray(); 9592var x2Ref = GetReferences(tree, "x2").ToArray(); 9599var x3Ref = GetReferences(tree, "x3").ToArray(); 9604var x4Ref = GetReferences(tree, "x4").ToArray(); 9649var x1Ref = GetReferences(tree, "x1").ToArray(); 9697var x1Ref = GetReferences(tree, "x1").ToArray(); 9761var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 9762var x1Ref = GetReferences(tree, "x1").ToArray(); 9818var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 9819var x1Ref = GetReferences(tree, "x1").ToArray(); 9898var x4Ref = GetReferences(tree, "x4").ToArray(); 9909var x8Ref = GetReferences(tree, "x8").ToArray(); 9913var x14Decl = GetOutVarDeclarations(tree, "x14").ToArray(); 9993var x4Ref = GetReferences(tree, "x4").ToArray(); 10004var x8Ref = GetReferences(tree, "x8").ToArray(); 10008var x14Decl = GetOutVarDeclarations(tree, "x14").ToArray(); 10071var x1Ref = GetReferences(tree, "x1").ToArray(); 10078var x2Ref = GetReferences(tree, "x2").ToArray(); 10152var x1Ref = GetReferences(tree, "x1").ToArray(); 10159var x2Decl = GetOutVarDeclarations(tree, "x2").ToArray(); 10160var x2Ref = GetReferences(tree, "x2").ToArray(); 10167var x3Ref = GetReferences(tree, "x3").ToArray(); 10172var x4Ref = GetReferences(tree, "x4").ToArray(); 10217var x1Ref = GetReferences(tree, "x1").ToArray(); 10264var x1Ref = GetReferences(tree, "x1").ToArray(); 10330var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 10331var x1Ref = GetReferences(tree, "x1").ToArray(); 10389var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 10390var x1Ref = GetReferences(tree, "x1").ToArray(); 10461var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 10462var x1Ref = GetReferences(tree, "x1").ToArray(); 10467var x2Decl = GetOutVarDeclarations(tree, "x2").ToArray(); 10468var x2Ref = GetReferences(tree, "x2").ToArray(); 10473var x3Decl = GetOutVarDeclarations(tree, "x3").ToArray(); 10474var x3Ref = GetReferences(tree, "x3").ToArray(); 10545var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 10546var x1Ref = GetReferences(tree, "x1").ToArray(); 10551var x2Decl = GetOutVarDeclarations(tree, "x2").ToArray(); 10552var x2Ref = GetReferences(tree, "x2").ToArray(); 10557var x3Decl = GetOutVarDeclarations(tree, "x3").ToArray(); 10558var x3Ref = GetReferences(tree, "x3").ToArray(); 10724var x1Ref = GetReferences(tree, "x1").ToArray(); 10729var x2Ref = GetReferences(tree, "x2").ToArray(); 10734var x4Ref = GetReferences(tree, "x4").ToArray(); 10742var x6Ref = GetReferences(tree, "x6").ToArray(); 10747var x7Ref = GetReferences(tree, "x7").ToArray(); 10753var x8Ref = GetReferences(tree, "x8").ToArray(); 10757var x9Decl = GetOutVarDeclarations(tree, "x9").ToArray(); 10758var x9Ref = GetReferences(tree, "x9").ToArray(); 10764var y10Ref = GetReferences(tree, "y10").ToArray(); 10772var x14Decl = GetOutVarDeclarations(tree, "x14").ToArray(); 10773var x14Ref = GetReferences(tree, "x14").ToArray(); 10866var x1Ref = GetReferences(tree, "x1").ToArray(); 10911var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 10912var x1Ref = GetReferences(tree, "x1").ToArray(); 10961var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 10962var x1Ref = GetReferences(tree, "x1").ToArray(); 11057var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 11063var x6Decl = GetOutVarDeclarations(tree, "x6").ToArray(); 11064var x6Ref = GetReferences(tree, "x6").ToArray(); 11071var x7Ref = GetReferences(tree, "x7").ToArray(); 11194var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 11200var x6Decl = GetOutVarDeclarations(tree, "x6").ToArray(); 11201var x6Ref = GetReferences(tree, "x6").ToArray(); 11208var x7Ref = GetReferences(tree, "x7").ToArray(); 11276var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 11282var x6Decl = GetOutVarDeclarations(tree, "x6").ToArray(); 11283var x6Ref = GetReferences(tree, "x6").ToArray(); 11290var x7Ref = GetReferences(tree, "x7").ToArray(); 11471var x1Ref = GetReferences(tree, "x1").ToArray(); 11719var y1Ref = GetReferences(tree, "y1").ToArray(); 11724var y2Ref = GetReferences(tree, "y2").ToArray(); 11729var z2Ref = GetReferences(tree, "z2").ToArray(); 11736var y3Ref = GetReferences(tree, "y3").ToArray(); 11741var z3Ref = GetReferences(tree, "z3").ToArray(); 11748var y4Ref = GetReferences(tree, "y4").ToArray(); 11753var z4Ref = GetReferences(tree, "z4").ToArray(); 11758var u4Ref = GetReferences(tree, "u4").ToArray(); 11766var v4Ref = GetReferences(tree, "v4").ToArray(); 11774var y5Ref = GetReferences(tree, "y5").ToArray(); 11779var z5Ref = GetReferences(tree, "z5").ToArray(); 11784var u5Ref = GetReferences(tree, "u5").ToArray(); 11792var v5Ref = GetReferences(tree, "v5").ToArray(); 11800var y6Ref = GetReferences(tree, "y6").ToArray(); 11805var z6Ref = GetReferences(tree, "z6").ToArray(); 11812var y7Ref = GetReferences(tree, "y7").ToArray(); 11817var z7Ref = GetReferences(tree, "z7").ToArray(); 11825var u7Ref = GetReferences(tree, "u7").ToArray(); 11833var y8Ref = GetReferences(tree, "y8").ToArray(); 11838var z8Ref = GetReferences(tree, "z8").ToArray(); 11844var y9Ref = GetReferences(tree, "y9").ToArray(); 11849var z9Ref = GetReferences(tree, "z9").ToArray(); 11856var u9Ref = GetReferences(tree, "u9").ToArray(); 11863var y10Ref = GetReferences(tree, "y10").ToArray(); 11869var y11Ref = GetReferences(tree, "y11").ToArray(); 11976var y4Ref = GetReferences(tree, "y4").ToArray(); 11981var z4Ref = GetReferences(tree, "z4").ToArray(); 11986var u4Ref = GetReferences(tree, "u4").ToArray(); 11994var v4Ref = GetReferences(tree, "v4").ToArray(); 12002var y5Ref = GetReferences(tree, "y5").ToArray(); 12007var z5Ref = GetReferences(tree, "z5").ToArray(); 12012var u5Ref = GetReferences(tree, "u5").ToArray(); 12020var v5Ref = GetReferences(tree, "v5").ToArray(); 12131var yRef = GetReferences(tree, id).ToArray(); 12280var yDecl = GetOutVarDeclarations(tree, id).ToArray(); 12281var yRef = GetReferences(tree, id).ToArray(); 12355var yDecl = GetOutVarDeclarations(tree, id).ToArray(); 12356var yRef = GetReferences(tree, id).ToArray(); 12665var yRef = GetReferences(tree, id).ToArray(); 12781var y1Decl = GetOutVarDeclarations(tree, "y1").ToArray(); 12787var y2Decl = GetOutVarDeclarations(tree, "y2").ToArray(); 13021var x1Ref = GetReferences(tree, "x1").ToArray(); 13204var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 13205var x1Ref = GetReferences(tree, "x1").ToArray(); 13221var x4Ref = GetReferences(tree, "x4").ToArray(); 13228var x5Ref = GetReferences(tree, "x5").ToArray(); 13232var x8Decl = GetOutVarDeclarations(tree, "x8").ToArray(); 13233var x8Ref = GetReferences(tree, "x8").ToArray(); 13248var x11Ref = GetReferences(tree, "x11").ToArray(); 13253var x12Ref = GetReferences(tree, "x12").ToArray(); 13298var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 13299var x1Ref = GetReferences(tree, "x1").ToArray(); 13346var x1Ref = GetReferences(tree, "x1").ToArray(); 13388var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 13389var x1Ref = GetReferences(tree, "x1").ToArray(); 13442var x2Decl = GetOutVarDeclarations(tree, "x2").ToArray(); 13443var x2Ref = GetReferences(tree, "x2").ToArray(); 13609var x1Ref = GetReferences(tree, "x1").ToArray(); 13614var x4Ref = GetReferences(tree, "x4").ToArray(); 13622var x5Ref = GetReferences(tree, "x5").ToArray(); 13627var x6Ref = GetReferences(tree, "x6").ToArray(); 13632var x7Ref = GetReferences(tree, "x7").ToArray(); 13637var x9Decl = GetOutVarDeclarations(tree, "x9").ToArray(); 13638var x9Ref = GetReferences(tree, "x9").ToArray(); 13644var y10Ref = GetReferences(tree, "y10").ToArray(); 13649var x14Decl = GetOutVarDeclarations(tree, "x14").ToArray(); 13650var x14Ref = GetReferences(tree, "x14").ToArray(); 13745var x1Ref = GetReferences(tree, "x1").ToArray(); 13799var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 13800var x1Ref = GetReferences(tree, "x1").ToArray(); 13849var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 13850var x1Ref = GetReferences(tree, "x1").ToArray(); 14130var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 14131var x1Ref = GetReferences(tree, "x1").ToArray(); 14140var x2Ref = GetReferences(tree, "x2").ToArray(); 14145var x3Ref = GetReferences(tree, "x3").ToArray(); 14150var x4Ref = GetReferences(tree, "x4").ToArray(); 14157var x5Ref = GetReferences(tree, "x5").ToArray(); 14162var x8Decl = GetOutVarDeclarations(tree, "x8").ToArray(); 14163var x8Ref = GetReferences(tree, "x8").ToArray(); 14173var x9Ref = GetReferences(tree, "x9").ToArray(); 14182var x11Ref = GetReferences(tree, "x11").ToArray(); 14190var x12Ref = GetReferences(tree, "x12").ToArray(); 14197var x13Decl = GetOutVarDeclarations(tree, "x13").ToArray(); 14198var x13Ref = GetReferences(tree, "x13").ToArray(); 14204var x14Decl = GetOutVarDeclarations(tree, "x14").ToArray(); 14205var x14Ref = GetReferences(tree, "x14").ToArray(); 14211var x15Decl = GetOutVarDeclarations(tree, "x15").ToArray(); 14212var x15Ref = GetReferences(tree, "x15").ToArray(); 14946var x8Ref = GetReferences(tree, "x8").ToArray(); 14955var x13Ref = GetReferences(tree, "x13").ToArray(); 14962var x14Ref = GetReferences(tree, "x14").ToArray(); 14971var x16Ref = GetReferences(tree, "x16").ToArray(); 14980var x17Ref = GetReferences(tree, "x17").ToArray(); 15125var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 15126var x1Ref = GetReferences(tree, "x1").ToArray(); 15142var x4Ref = GetReferences(tree, "x4").ToArray(); 15149var x5Ref = GetReferences(tree, "x5").ToArray(); 15153var x8Decl = GetOutVarDeclarations(tree, "x8").ToArray(); 15154var x8Ref = GetReferences(tree, "x8").ToArray(); 15169var x11Ref = GetReferences(tree, "x11").ToArray(); 15174var x12Ref = GetReferences(tree, "x12").ToArray(); 15218var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 15219var x1Ref = GetReferences(tree, "x1").ToArray(); 15266var x1Ref = GetReferences(tree, "x1").ToArray(); 15314var x2Decl = GetOutVarDeclarations(tree, "x2").ToArray(); 15315var x2Ref = GetReferences(tree, "x2").ToArray(); 15372var x2Decl = GetOutVarDeclarations(tree, "x2").ToArray(); 15373var x2Ref = GetReferences(tree, "x2").ToArray(); 15534var x1Ref = GetReferences(tree, "x1").ToArray(); 15539var x2Ref = GetReferences(tree, "x2").ToArray(); 15544var x4Ref = GetReferences(tree, "x4").ToArray(); 15550var x6Ref = GetReferences(tree, "x6").ToArray(); 15555var x7Ref = GetReferences(tree, "x7").ToArray(); 15561var x8Ref = GetReferences(tree, "x8").ToArray(); 15566var x9Decl = GetOutVarDeclarations(tree, "x9").ToArray(); 15567var x9Ref = GetReferences(tree, "x9").ToArray(); 15577var y10Ref = GetReferences(tree, "y10").ToArray(); 15585var x14Decl = GetOutVarDeclarations(tree, "x14").ToArray(); 15586var x14Ref = GetReferences(tree, "x14").ToArray(); 15747var x1Ref = GetReferences(tree, "x1").ToArray(); 15752var x2Ref = GetReferences(tree, "x2").ToArray(); 15757var x4Ref = GetReferences(tree, "x4").ToArray(); 15763var x6Ref = GetReferences(tree, "x6").ToArray(); 15768var x7Ref = GetReferences(tree, "x7").ToArray(); 15774var x8Ref = GetReferences(tree, "x8").ToArray(); 15779var x9Decl = GetOutVarDeclarations(tree, "x9").ToArray(); 15780var x9Ref = GetReferences(tree, "x9").ToArray(); 15790var y10Ref = GetReferences(tree, "y10").ToArray(); 15798var x14Decl = GetOutVarDeclarations(tree, "x14").ToArray(); 15799var x14Ref = GetReferences(tree, "x14").ToArray(); 15960var x1Ref = GetReferences(tree, "x1").ToArray(); 15965var x2Ref = GetReferences(tree, "x2").ToArray(); 15970var x4Ref = GetReferences(tree, "x4").ToArray(); 15976var x6Ref = GetReferences(tree, "x6").ToArray(); 15981var x7Ref = GetReferences(tree, "x7").ToArray(); 15987var x8Ref = GetReferences(tree, "x8").ToArray(); 15992var x9Decl = GetOutVarDeclarations(tree, "x9").ToArray(); 15993var x9Ref = GetReferences(tree, "x9").ToArray(); 16003var y10Ref = GetReferences(tree, "y10").ToArray(); 16011var x14Decl = GetOutVarDeclarations(tree, "x14").ToArray(); 16012var x14Ref = GetReferences(tree, "x14").ToArray(); 16075var x1Ref = GetReferences(tree, "x1").ToArray(); 16082var x2Ref = GetReferences(tree, "x2").ToArray(); 16162var x1Ref = GetReferences(tree, "x1").ToArray(); 16166var x2Decl = GetOutVarDeclarations(tree, "x2").ToArray(); 16167var x2Ref = GetReferences(tree, "x2").ToArray(); 16174var x3Ref = GetReferences(tree, "x3").ToArray(); 16179var x4Ref = GetReferences(tree, "x4").ToArray(); 16403var x1Ref = GetReferences(tree, "x1").ToArray(); 16408var x2Ref = GetReferences(tree, "x2").ToArray(); 16413var x4Ref = GetReferences(tree, "x4").ToArray(); 16419var x6Ref = GetReferences(tree, "x6").ToArray(); 16424var x7Ref = GetReferences(tree, "x7").ToArray(); 16430var x8Ref = GetReferences(tree, "x8").ToArray(); 16435var x9Decl = GetOutVarDeclarations(tree, "x9").ToArray(); 16436var x9Ref = GetReferences(tree, "x9").ToArray(); 16442var y10Ref = GetReferences(tree, "y10").ToArray(); 16450var x14Decl = GetOutVarDeclarations(tree, "x14").ToArray(); 16451var x14Ref = GetReferences(tree, "x14").ToArray(); 16544var x1Ref = GetReferences(tree, "x1").ToArray(); 16591var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 16592var x1Ref = GetReferences(tree, "x1").ToArray(); 16645var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 16646var x1Ref = GetReferences(tree, "x1").ToArray(); 16705var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 16706var x1Ref = GetReferences(tree, "x1").ToArray(); 16765var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 16766var x1Ref = GetReferences(tree, "x1").ToArray(); 16828var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 16829var x1Ref = GetReferences(tree, "x1").ToArray(); 16962var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 16963var x1Ref = GetReferences(tree, "x1").ToArray(); 16979var x4Ref = GetReferences(tree, "x4").ToArray(); 16986var x5Ref = GetReferences(tree, "x5").ToArray(); 16990var x8Decl = GetOutVarDeclarations(tree, "x8").ToArray(); 16991var x8Ref = GetReferences(tree, "x8").ToArray(); 17005var x11Ref = GetReferences(tree, "x11").ToArray(); 17010var x12Ref = GetReferences(tree, "x12").ToArray(); 17103var x1Ref = GetReferences(tree, "x1").ToArray(); 17151var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 17152var x1Ref = GetReferences(tree, "x1").ToArray(); 17205var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 17206var x1Ref = GetReferences(tree, "x1").ToArray(); 17389var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 17390var x1Ref = GetReferences(tree, "x1").ToArray(); 17406var x4Ref = GetReferences(tree, "x4").ToArray(); 17413var x5Ref = GetReferences(tree, "x5").ToArray(); 17417var x8Decl = GetOutVarDeclarations(tree, "x8").ToArray(); 17418var x8Ref = GetReferences(tree, "x8").ToArray(); 17436var x11Ref = GetReferences(tree, "x11").ToArray(); 17441var x12Ref = GetReferences(tree, "x12").ToArray(); 17491var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 17492var x1Ref = GetReferences(tree, "x1").ToArray(); 17539var x1Ref = GetReferences(tree, "x1").ToArray(); 17592var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 17593var x1Ref = GetReferences(tree, "x1").ToArray(); 17645var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 17646var x1Ref = GetReferences(tree, "x1").ToArray(); 18783var x1Ref = GetReferences(tree, "x1").ToArray(); 18827var x1Ref = GetReferences(tree, "x1").ToArray(); 19015var x1Ref = GetReferences(tree, "x1").ToArray(); 19060var x1Ref = GetReferences(tree, "x1").ToArray(); 19103var x1Ref = GetReferences(tree, "x1").ToArray(); 19157var x1Ref = GetReferences(tree, "x1").ToArray(); 19206var x1Ref = GetReferences(tree, "x1").ToArray(); 19253var x1Ref = GetReferences(tree, "x1").ToArray(); 20018VerifyModelForOutVar(model, yDecl, GetReferences(tree, "y").ToArray()); 20050var yRef = GetReferences(tree, "y").ToArray(); 20360var x1Ref = GetReferences(tree, "x1").ToArray(); 20366var x2Ref = GetReferences(tree, "x2").ToArray(); 20372var x3Ref = GetReferences(tree, "x3").ToArray(); 20378var x4Ref = GetReferences(tree, "x4").ToArray(); 20926var x4Ref = GetReferences(tree, "x4").ToArray(); 20939var x8Ref = GetReferences(tree, "x8").ToArray(); 20944var x14Decl = GetOutVarDeclarations(tree, "x14").ToArray(); 21040var x1Ref = GetReferences(tree, "x1").ToArray(); 21048var x2Ref = GetReferences(tree, "x2").ToArray(); 21056var x3Ref = GetReferences(tree, "x3").ToArray(); 21135var x1Ref = GetReferences(tree, "x1").ToArray(); 21140var x2Decl = GetOutVarDeclarations(tree, "x2").ToArray(); 21141var x2Ref = GetReferences(tree, "x2").ToArray(); 21149var x3Ref = GetReferences(tree, "x3").ToArray(); 21155var x4Ref = GetReferences(tree, "x4").ToArray(); 21239var x1Ref = GetReferences(tree, "x1").ToArray(); 21244var x2Decl = GetOutVarDeclarations(tree, "x2").ToArray(); 21245var x2Ref = GetReferences(tree, "x2").ToArray(); 21253var x3Ref = GetReferences(tree, "x3").ToArray(); 21259var x4Ref = GetReferences(tree, "x4").ToArray(); 21305var x1Ref = GetReferences(tree, "x1").ToArray(); 21364var x1Ref = GetReferences(tree, "x1").ToArray(); 21648var x1Ref = GetReferences(tree, "x1").ToArray(); 21654var x2Ref = GetReferences(tree, "x2").ToArray(); 21660var x4Ref = GetReferences(tree, "x4").ToArray(); 21667var x6Ref = GetReferences(tree, "x6").ToArray(); 21673var x7Ref = GetReferences(tree, "x7").ToArray(); 21680var x8Ref = GetReferences(tree, "x8").ToArray(); 21686var x9Decl = GetOutVarDeclarations(tree, "x9").ToArray(); 21687var x9Ref = GetReferences(tree, "x9").ToArray(); 21694var y10Ref = GetReferences(tree, "y10").ToArray(); 21702var x14Decl = GetOutVarDeclarations(tree, "x14").ToArray(); 21703var x14Ref = GetReferences(tree, "x14").ToArray(); 21821var x4Ref = GetReferences(tree, "x4").ToArray(); 21830var x8Decl = GetOutVarDeclarations(tree, "x8").ToArray(); 21831var x8Ref = GetReferences(tree, "x8").ToArray(); 21841var x9Decl = GetOutVarDeclarations(tree, "x9").ToArray(); 21842var x9Ref = GetReferences(tree, "x9").ToArray(); 22015var x1Ref = GetReferences(tree, "x1").ToArray(); 22021var x2Ref = GetReferences(tree, "x2").ToArray(); 22027var x4Ref = GetReferences(tree, "x4").ToArray(); 22034var x6Ref = GetReferences(tree, "x6").ToArray(); 22040var x7Ref = GetReferences(tree, "x7").ToArray(); 22047var x8Ref = GetReferences(tree, "x8").ToArray(); 22053var x9Decl = GetOutVarDeclarations(tree, "x9").ToArray(); 22054var x9Ref = GetReferences(tree, "x9").ToArray(); 22066var y10Ref = GetReferences(tree, "y10").ToArray(); 22074var x14Decl = GetOutVarDeclarations(tree, "x14").ToArray(); 22075var x14Ref = GetReferences(tree, "x14").ToArray(); 22142var x1Ref = GetReferences(tree, "x1").ToArray(); 22150var x2Ref = GetReferences(tree, "x2").ToArray(); 22240var x1Ref = GetReferences(tree, "x1").ToArray(); 22245var x2Decl = GetOutVarDeclarations(tree, "x2").ToArray(); 22246var x2Ref = GetReferences(tree, "x2").ToArray(); 22254var x3Ref = GetReferences(tree, "x3").ToArray(); 22260var x4Ref = GetReferences(tree, "x4").ToArray(); 22428var x1Ref = GetReferences(tree, "x1").ToArray(); 22434var x2Ref = GetReferences(tree, "x2").ToArray(); 22440var x4Ref = GetReferences(tree, "x4").ToArray(); 22447var x6Ref = GetReferences(tree, "x6").ToArray(); 22453var x7Ref = GetReferences(tree, "x7").ToArray(); 22460var x8Ref = GetReferences(tree, "x8").ToArray(); 22466var x9Decl = GetOutVarDeclarations(tree, "x9").ToArray(); 22467var x9Ref = GetReferences(tree, "x9").ToArray(); 22474var y10Ref = GetReferences(tree, "y10").ToArray(); 22482var x14Decl = GetOutVarDeclarations(tree, "x14").ToArray(); 22483var x14Ref = GetReferences(tree, "x14").ToArray(); 22583var x1Ref = GetReferences(tree, "x1").ToArray(); 22591var x2Ref = GetReferences(tree, "x2").ToArray(); 22597var x3Ref = GetReferences(tree, "x3").ToArray(); 22604var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 22605var x4Ref = GetReferences(tree, "x4").ToArray(); 22671var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 22678var x6Decl = GetOutVarDeclarations(tree, "x6").ToArray(); 22679var x6Ref = GetReferences(tree, "x6").ToArray(); 22687var x7Ref = GetReferences(tree, "x7").ToArray(); 22794var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 22801var x6Decl = GetOutVarDeclarations(tree, "x6").ToArray(); 22802var x6Ref = GetReferences(tree, "x6").ToArray(); 22810var x7Ref = GetReferences(tree, "x7").ToArray(); 22876var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 22883var x6Decl = GetOutVarDeclarations(tree, "x6").ToArray(); 22884var x6Ref = GetReferences(tree, "x6").ToArray(); 22892var x7Ref = GetReferences(tree, "x7").ToArray(); 22960var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 22967var x6Decl = GetOutVarDeclarations(tree, "x6").ToArray(); 22968var x6Ref = GetReferences(tree, "x6").ToArray(); 22976var x7Ref = GetReferences(tree, "x7").ToArray(); 23213var x1Ref = GetReferences(tree, "x1").ToArray(); 23218var x4Ref = GetReferences(tree, "x4").ToArray(); 23224var x6Ref = GetReferences(tree, "x6").ToArray(); 23229var x7Ref = GetReferences(tree, "x7").ToArray(); 23235var x8Ref = GetReferences(tree, "x8").ToArray(); 23240var x9Decl = GetOutVarDeclarations(tree, "x9").ToArray(); 23241var x9Ref = GetReferences(tree, "x9").ToArray(); 23247var y10Ref = GetReferences(tree, "y10").ToArray(); 23252var x14Decl = GetOutVarDeclarations(tree, "x14").ToArray(); 23253var x14Ref = GetReferences(tree, "x14").ToArray(); 23260var x15Ref = GetReferences(tree, "x15").ToArray(); 23307var x1Ref = GetReferences(tree, "x1").ToArray(); 23312var x4Ref = GetReferences(tree, "x4").ToArray(); 23318var x6Ref = GetReferences(tree, "x6").ToArray(); 23323var x7Ref = GetReferences(tree, "x7").ToArray(); 23329var x8Ref = GetReferences(tree, "x8").ToArray(); 23334var x9Decl = GetOutVarDeclarations(tree, "x9").ToArray(); 23335var x9Ref = GetReferences(tree, "x9").ToArray(); 23341var y10Ref = GetReferences(tree, "y10").ToArray(); 23346var x14Decl = GetOutVarDeclarations(tree, "x14").ToArray(); 23347var x14Ref = GetReferences(tree, "x14").ToArray(); 23354var x15Ref = GetReferences(tree, "x15").ToArray(); 23397var x1Ref = GetReferences(tree, "x1").ToArray(); 23445var x1Ref = GetReferences(tree, "x1").ToArray(); 23478var x1Ref = GetReferences(tree, "x1").ToArray(); 23529var x1Ref = GetReferences(tree, "x1").ToArray(); 23673var x1Ref = GetReferences(tree, "x1").ToArray(); 23678var x2Ref = GetReferences(tree, "x2").ToArray(); 23683var x4Ref = GetReferences(tree, "x4").ToArray(); 23689var x6Ref = GetReferences(tree, "x6").ToArray(); 23694var x7Ref = GetReferences(tree, "x7").ToArray(); 23700var x8Ref = GetReferences(tree, "x8").ToArray(); 23705var x9Decl = GetOutVarDeclarations(tree, "x9").ToArray(); 23706var x9Ref = GetReferences(tree, "x9").ToArray(); 23712var y10Ref = GetReferences(tree, "y10").ToArray(); 23720var x14Decl = GetOutVarDeclarations(tree, "x14").ToArray(); 23721var x14Ref = GetReferences(tree, "x14").ToArray(); 23771var x1Ref = GetReferences(tree, "x1").ToArray(); 23776var x2Ref = GetReferences(tree, "x2").ToArray(); 23781var x4Ref = GetReferences(tree, "x4").ToArray(); 23787var x6Ref = GetReferences(tree, "x6").ToArray(); 23792var x7Ref = GetReferences(tree, "x7").ToArray(); 23798var x8Ref = GetReferences(tree, "x8").ToArray(); 23803var x9Decl = GetOutVarDeclarations(tree, "x9").ToArray(); 23804var x9Ref = GetReferences(tree, "x9").ToArray(); 23810var y10Ref = GetReferences(tree, "y10").ToArray(); 23818var x14Decl = GetOutVarDeclarations(tree, "x14").ToArray(); 23819var x14Ref = GetReferences(tree, "x14").ToArray(); 23869var x0Ref = GetReferences(tree, "x0").ToArray(); 23874var x1Ref = GetReferences(tree, "x1").ToArray(); 23879var x2Ref = GetReferences(tree, "x2").ToArray(); 24011var x1Ref = GetReferences(tree, "x1").ToArray(); 24016var x2Ref = GetReferences(tree, "x2").ToArray(); 24021var x4Ref = GetReferences(tree, "x4").ToArray(); 24027var x6Ref = GetReferences(tree, "x6").ToArray(); 24032var x7Ref = GetReferences(tree, "x7").ToArray(); 24038var x8Ref = GetReferences(tree, "x8").ToArray(); 24043var x9Decl = GetOutVarDeclarations(tree, "x9").ToArray(); 24044var x9Ref = GetReferences(tree, "x9").ToArray(); 24050var y10Ref = GetReferences(tree, "y10").ToArray(); 24058var x14Decl = GetOutVarDeclarations(tree, "x14").ToArray(); 24059var x14Ref = GetReferences(tree, "x14").ToArray(); 24066var x15Ref = GetReferences(tree, "x15").ToArray(); 24115var x1Ref = GetReferences(tree, "x1").ToArray(); 24120var x2Ref = GetReferences(tree, "x2").ToArray(); 24125var x4Ref = GetReferences(tree, "x4").ToArray(); 24131var x6Ref = GetReferences(tree, "x6").ToArray(); 24136var x7Ref = GetReferences(tree, "x7").ToArray(); 24142var x8Ref = GetReferences(tree, "x8").ToArray(); 24147var x9Decl = GetOutVarDeclarations(tree, "x9").ToArray(); 24148var x9Ref = GetReferences(tree, "x9").ToArray(); 24154var y10Ref = GetReferences(tree, "y10").ToArray(); 24162var x14Decl = GetOutVarDeclarations(tree, "x14").ToArray(); 24163var x14Ref = GetReferences(tree, "x14").ToArray(); 24170var x15Ref = GetReferences(tree, "x15").ToArray(); 24210var x1Ref = GetReferences(tree, "x1").ToArray(); 24305var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 24311var x6Decl = GetOutVarDeclarations(tree, "x6").ToArray(); 24312var x6Ref = GetReferences(tree, "x6").ToArray(); 24319var x7Ref = GetReferences(tree, "x7").ToArray(); 24328var x8Ref = GetReferences(tree, "x8").ToArray(); 24332var x9Decl = GetOutVarDeclarations(tree, "x9").ToArray(); 24333var x9Ref = GetReferences(tree, "x9").ToArray(); 24339var x10Decl = GetOutVarDeclarations(tree, "x10").ToArray(); 24340var x10Ref = GetReferences(tree, "x10").ToArray(); 24347var x11Ref = GetReferences(tree, "x11").ToArray(); 24354var x12Ref = GetReferences(tree, "x12").ToArray(); 24411var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 24417var x6Decl = GetOutVarDeclarations(tree, "x6").ToArray(); 24418var x6Ref = GetReferences(tree, "x6").ToArray(); 24425var x7Ref = GetReferences(tree, "x7").ToArray(); 24434var x8Ref = GetReferences(tree, "x8").ToArray(); 24438var x9Decl = GetOutVarDeclarations(tree, "x9").ToArray(); 24439var x9Ref = GetReferences(tree, "x9").ToArray(); 24445var x10Decl = GetOutVarDeclarations(tree, "x10").ToArray(); 24446var x10Ref = GetReferences(tree, "x10").ToArray(); 24453var x11Ref = GetReferences(tree, "x11").ToArray(); 24460var x12Ref = GetReferences(tree, "x12").ToArray(); 24730var y1Ref = GetReferences(tree, "y1").ToArray(); 24735var y2Ref = GetReferences(tree, "y2").ToArray(); 24740var z2Ref = GetReferences(tree, "z2").ToArray(); 24747var y3Ref = GetReferences(tree, "y3").ToArray(); 24752var z3Ref = GetReferences(tree, "z3").ToArray(); 24759var y4Ref = GetReferences(tree, "y4").ToArray(); 24764var z4Ref = GetReferences(tree, "z4").ToArray(); 24769var u4Ref = GetReferences(tree, "u4").ToArray(); 24777var v4Ref = GetReferences(tree, "v4").ToArray(); 24785var y5Ref = GetReferences(tree, "y5").ToArray(); 24790var z5Ref = GetReferences(tree, "z5").ToArray(); 24795var u5Ref = GetReferences(tree, "u5").ToArray(); 24803var v5Ref = GetReferences(tree, "v5").ToArray(); 24811var y6Ref = GetReferences(tree, "y6").ToArray(); 24816var z6Ref = GetReferences(tree, "z6").ToArray(); 24823var y7Ref = GetReferences(tree, "y7").ToArray(); 24828var z7Ref = GetReferences(tree, "z7").ToArray(); 24836var u7Ref = GetReferences(tree, "u7").ToArray(); 24844var y8Ref = GetReferences(tree, "y8").ToArray(); 24849var z8Ref = GetReferences(tree, "z8").ToArray(); 24855var y9Ref = GetReferences(tree, "y9").ToArray(); 24860var z9Ref = GetReferences(tree, "z9").ToArray(); 24867var u9Ref = GetReferences(tree, "u9").ToArray(); 24874var y10Ref = GetReferences(tree, "y10").ToArray(); 24880var y11Ref = GetReferences(tree, "y11").ToArray(); 24989var y1Ref = GetReferences(tree, "y1").ToArray(); 24994var y2Ref = GetReferences(tree, "y2").ToArray(); 24999var z2Ref = GetReferences(tree, "z2").ToArray(); 25006var y3Ref = GetReferences(tree, "y3").ToArray(); 25011var z3Ref = GetReferences(tree, "z3").ToArray(); 25018var y4Ref = GetReferences(tree, "y4").ToArray(); 25023var z4Ref = GetReferences(tree, "z4").ToArray(); 25028var u4Ref = GetReferences(tree, "u4").ToArray(); 25036var v4Ref = GetReferences(tree, "v4").ToArray(); 25044var y5Ref = GetReferences(tree, "y5").ToArray(); 25049var z5Ref = GetReferences(tree, "z5").ToArray(); 25054var u5Ref = GetReferences(tree, "u5").ToArray(); 25062var v5Ref = GetReferences(tree, "v5").ToArray(); 25070var y6Ref = GetReferences(tree, "y6").ToArray(); 25075var z6Ref = GetReferences(tree, "z6").ToArray(); 25082var y7Ref = GetReferences(tree, "y7").ToArray(); 25087var z7Ref = GetReferences(tree, "z7").ToArray(); 25095var u7Ref = GetReferences(tree, "u7").ToArray(); 25103var y8Ref = GetReferences(tree, "y8").ToArray(); 25108var z8Ref = GetReferences(tree, "z8").ToArray(); 25114var y9Ref = GetReferences(tree, "y9").ToArray(); 25119var z9Ref = GetReferences(tree, "z9").ToArray(); 25126var u9Ref = GetReferences(tree, "u9").ToArray(); 25133var y10Ref = GetReferences(tree, "y10").ToArray(); 25139var y11Ref = GetReferences(tree, "y11").ToArray(); 25293var x1Ref = GetReferences(tree, "x1").ToArray(); 25298var x2Ref = GetReferences(tree, "x2").ToArray(); 25303var x4Ref = GetReferences(tree, "x4").ToArray(); 25309var x6Ref = GetReferences(tree, "x6").ToArray(); 25314var x7Ref = GetReferences(tree, "x7").ToArray(); 25320var x8Ref = GetReferences(tree, "x8").ToArray(); 25325var x9Decl = GetOutVarDeclarations(tree, "x9").ToArray(); 25326var x9Ref = GetReferences(tree, "x9").ToArray(); 25336var y10Ref = GetReferences(tree, "y10").ToArray(); 25344var x14Decl = GetOutVarDeclarations(tree, "x14").ToArray(); 25345var x14Ref = GetReferences(tree, "x14").ToArray(); 25392var x1Ref = GetReferences(tree, "x1").ToArray(); 25397var x2Ref = GetReferences(tree, "x2").ToArray(); 25402var x4Ref = GetReferences(tree, "x4").ToArray(); 25408var x6Ref = GetReferences(tree, "x6").ToArray(); 25413var x7Ref = GetReferences(tree, "x7").ToArray(); 25419var x8Ref = GetReferences(tree, "x8").ToArray(); 25424var x9Decl = GetOutVarDeclarations(tree, "x9").ToArray(); 25425var x9Ref = GetReferences(tree, "x9").ToArray(); 25435var y10Ref = GetReferences(tree, "y10").ToArray(); 25443var x14Decl = GetOutVarDeclarations(tree, "x14").ToArray(); 25444var x14Ref = GetReferences(tree, "x14").ToArray(); 25571var x1Ref = GetReferences(tree, "x1").ToArray(); 25583var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 25615var x1Ref = GetReferences(tree, "x1").ToArray(); 25628var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 25696var x1Ref = GetReferences(tree, "x1").ToArray(); 25708var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 25740var x1Ref = GetReferences(tree, "x1").ToArray(); 25753var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 25795var x1Ref = GetReferences(tree, "x1").ToArray(); 25876var x1Ref = GetReferences(tree, "x1").ToArray(); 25888var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 25894var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 25895var x5Ref = GetReferences(tree, "x5").ToArray(); 25936var x1Ref = GetReferences(tree, "x1").ToArray(); 25949var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 25955var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 25956var x5Ref = GetReferences(tree, "x5").ToArray(); 26033var x1Ref = GetReferences(tree, "x1").ToArray(); 26045var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 26051var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 26052var x5Ref = GetReferences(tree, "x5").ToArray(); 26090var x1Ref = GetReferences(tree, "x1").ToArray(); 26103var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 26109var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 26110var x5Ref = GetReferences(tree, "x5").ToArray(); 26156var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 26157var x1Ref = GetReferences(tree, "x1").ToArray(); 26204var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 26205var x1Ref = GetReferences(tree, "x1").ToArray(); 26286var x1Ref = GetReferences(tree, "x1").ToArray(); 26298var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 26333var x1Ref = GetReferences(tree, "x1").ToArray(); 26346var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 26428var x1Ref = GetReferences(tree, "x1").ToArray(); 26441var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 26476var x1Ref = GetReferences(tree, "x1").ToArray(); 26489var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 26560var x1Ref = GetReferences(tree, "x1").ToArray(); 26572var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 26620var x1Ref = GetReferences(tree, "x1").ToArray(); 26633var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 26704var x1Ref = GetReferences(tree, "x1").ToArray(); 26716var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 26764var x1Ref = GetReferences(tree, "x1").ToArray(); 26777var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 26825var x1Ref = GetReferences(tree, "x1").ToArray(); 26895var x1Ref = GetReferences(tree, "x1").ToArray(); 26907var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 26939var x1Ref = GetReferences(tree, "x1").ToArray(); 26952var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 27025var x1Ref = GetReferences(tree, "x1").ToArray(); 27038var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 27070var x1Ref = GetReferences(tree, "x1").ToArray(); 27083var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 27162var x1Ref = GetReferences(tree, "x1").ToArray(); 27174var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 27180var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 27181var x5Ref = GetReferences(tree, "x5").ToArray(); 27216var x1Ref = GetReferences(tree, "x1").ToArray(); 27229var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 27235var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 27236var x5Ref = GetReferences(tree, "x5").ToArray(); 27315var x1Ref = GetReferences(tree, "x1").ToArray(); 27327var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 27333var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 27334var x5Ref = GetReferences(tree, "x5").ToArray(); 27369var x1Ref = GetReferences(tree, "x1").ToArray(); 27382var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 27388var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 27389var x5Ref = GetReferences(tree, "x5").ToArray(); 27437var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 27438var x1Ref = GetReferences(tree, "x1").ToArray(); 27515var x1Ref = GetReferences(tree, "x1").ToArray(); 27531var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 27538var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 27539var x5Ref = GetReferences(tree, "x5").ToArray(); 27588var x1Ref = GetReferences(tree, "x1").ToArray(); 27604var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 27611var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 27612var x5Ref = GetReferences(tree, "x5").ToArray(); 27692var x1Ref = GetReferences(tree, "x1").ToArray(); 27708var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 27715var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 27716var x5Ref = GetReferences(tree, "x5").ToArray(); 27765var x1Ref = GetReferences(tree, "x1").ToArray(); 27781var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 27788var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 27789var x5Ref = GetReferences(tree, "x5").ToArray(); 27827var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 27828var x1Ref = GetReferences(tree, "x1").ToArray(); 27905var x1Ref = GetReferences(tree, "x1").ToArray(); 27921var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 27928var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 27929var x5Ref = GetReferences(tree, "x5").ToArray(); 27978var x1Ref = GetReferences(tree, "x1").ToArray(); 27994var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 28001var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 28002var x5Ref = GetReferences(tree, "x5").ToArray(); 28083var x1Ref = GetReferences(tree, "x1").ToArray(); 28099var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 28106var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 28107var x5Ref = GetReferences(tree, "x5").ToArray(); 28156var x1Ref = GetReferences(tree, "x1").ToArray(); 28172var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 28179var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 28180var x5Ref = GetReferences(tree, "x5").ToArray(); 28228var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 28229var x1Ref = GetReferences(tree, "x1").ToArray(); 28304var x1Ref = GetReferences(tree, "x1").ToArray(); 28316var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 28322var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 28323var x5Ref = GetReferences(tree, "x5").ToArray(); 28358var x1Ref = GetReferences(tree, "x1").ToArray(); 28371var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 28377var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 28378var x5Ref = GetReferences(tree, "x5").ToArray(); 28455var x1Ref = GetReferences(tree, "x1").ToArray(); 28467var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 28473var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 28474var x5Ref = GetReferences(tree, "x5").ToArray(); 28509var x1Ref = GetReferences(tree, "x1").ToArray(); 28522var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 28528var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 28529var x5Ref = GetReferences(tree, "x5").ToArray(); 28575var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 28576var x1Ref = GetReferences(tree, "x1").ToArray(); 28623var x1Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 28624var x1Ref = GetReferences(tree, "x1").ToArray(); 28708var x1Ref = GetReferences(tree, "x1").ToArray(); 28720var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 28727var x5Ref = GetReferences(tree, "x5").ToArray(); 28732var x6Ref = GetReferences(tree, "x6").ToArray(); 28769var x1Ref = GetReferences(tree, "x1").ToArray(); 28782var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 28789var x5Ref = GetReferences(tree, "x5").ToArray(); 28795var x6Ref = GetReferences(tree, "x6").ToArray(); 28876var x1Ref = GetReferences(tree, "x1").ToArray(); 28888var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 28932var x1Ref = GetReferences(tree, "x1").ToArray(); 28945var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 29027var x1Ref = GetReferences(tree, "x1").ToArray(); 29039var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 29083var x1Ref = GetReferences(tree, "x1").ToArray(); 29096var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 29148var x1Ref = GetReferences(tree, "x1").ToArray(); 29234var x1Ref = GetReferences(tree, "x1").ToArray(); 29246var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 29253var x5Ref = GetReferences(tree, "x5").ToArray(); 29301var x1Ref = GetReferences(tree, "x1").ToArray(); 29314var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 29321var x5Ref = GetReferences(tree, "x5").ToArray(); 29410var x1Ref = GetReferences(tree, "x1").ToArray(); 29422var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 29429var x5Ref = GetReferences(tree, "x5").ToArray(); 29477var x1Ref = GetReferences(tree, "x1").ToArray(); 29490var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 29497var x5Ref = GetReferences(tree, "x5").ToArray(); 29550var x1Ref = GetReferences(tree, "x1").ToArray(); 29697var x1Ref = GetReferences(tree, "x1").ToArray(); 29709var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 29716var x5Ref = GetReferences(tree, "x5").ToArray(); 29721var x6Ref = GetReferences(tree, "x6").ToArray(); 29773var x1Ref = GetReferences(tree, "x1").ToArray(); 29786var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 29898var x1Ref = GetReferences(tree, "x1").ToArray(); 29910var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 29917var x5Ref = GetReferences(tree, "x5").ToArray(); 29922var x6Ref = GetReferences(tree, "x6").ToArray(); 29974var x1Ref = GetReferences(tree, "x1").ToArray(); 29987var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 30052var x1Ref = GetReferences(tree, "x1").ToArray(); 30138var x1Ref = GetReferences(tree, "x1").ToArray(); 30150var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 30199var x1Ref = GetReferences(tree, "x1").ToArray(); 30212var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 30310var x1Ref = GetReferences(tree, "x1").ToArray(); 30322var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 30371var x1Ref = GetReferences(tree, "x1").ToArray(); 30384var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 30435var x1Ref = GetReferences(tree, "x1").ToArray(); 30490var x1Ref = GetReferences(tree, "x1").ToArray(); 30534var x1Ref = GetReferences(tree, "x1").ToArray(); 30578var x1Ref = GetReferences(tree, "x1").ToArray(); 30699var x1Ref = GetReferences(tree, "x1").ToArray(); 30711var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 30768var x1Ref = GetReferences(tree, "x1").ToArray(); 30784var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 30870var x1Ref = GetReferences(tree, "x1").ToArray(); 30882var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 30939var x1Ref = GetReferences(tree, "x1").ToArray(); 30955var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 31003var x1Ref = GetReferences(tree, "x1").ToArray(); 31058var x1Ref = GetReferences(tree, "x1").ToArray(); 31102var x1Ref = GetReferences(tree, "x1").ToArray(); 31146var x1Ref = GetReferences(tree, "x1").ToArray(); 31230var x1Ref = GetReferences(tree, "x1").ToArray(); 31242var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 31289var x1Ref = GetReferences(tree, "x1").ToArray(); 31305var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 31403var x1Ref = GetReferences(tree, "x1").ToArray(); 31415var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 31462var x1Ref = GetReferences(tree, "x1").ToArray(); 31478var x4Decl = GetOutVarDeclarations(tree, "x4").ToArray(); 31531var x1Ref = GetReferences(tree, "x1").ToArray(); 31586var x1Ref = GetReferences(tree, "x1").ToArray(); 31630var x1Ref = GetReferences(tree, "x1").ToArray(); 31674var x1Ref = GetReferences(tree, "x1").ToArray(); 31769var x1Ref = GetReferences(tree, "x1").ToArray(); 31803var x1Ref = GetReferences(tree, "x1").ToArray(); 31856var x1Ref = GetReferences(tree, "x1").ToArray(); 31896var x1Ref = GetReferences(tree, "x1").ToArray(); 31946var x1Ref = GetReferences(tree, "x1").ToArray(); 31980var x1Ref = GetReferences(tree, "x1").ToArray(); 32036var x1Ref = GetReferences(tree, "x1").ToArray(); 32076var x1Ref = GetReferences(tree, "x1").ToArray(); 32199var x1Ref = GetReferences(tree, "x1").ToArray(); 32485var x1Ref = GetReferences(tree, "x1").ToArray(); 33547var x6Decl = GetOutVarDeclarations(tree, "x1").ToArray(); 33548var x6Ref = GetReferences(tree, "x1").ToArray(); 33615var refs = GetReferences(tree, name).ToArray(); 33701var refs = GetReferences(tree, name).ToArray(); 33790var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 33796var x6Decl = GetOutVarDeclarations(tree, "x6").ToArray(); 33797var x6Ref = GetReferences(tree, "x6").ToArray(); 33804var x7Ref = GetReferences(tree, "x7").ToArray(); 33888var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 33894var x6Decl = GetOutVarDeclarations(tree, "x6").ToArray(); 33895var x6Ref = GetReferences(tree, "x6").ToArray(); 33902var x7Ref = GetReferences(tree, "x7").ToArray(); 33987var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 33993var x6Decl = GetOutVarDeclarations(tree, "x6").ToArray(); 33994var x6Ref = GetReferences(tree, "x6").ToArray(); 34001var x7Ref = GetReferences(tree, "x7").ToArray(); 34085var x5Decl = GetOutVarDeclarations(tree, "x5").ToArray(); 34091var x6Decl = GetOutVarDeclarations(tree, "x6").ToArray(); 34092var x6Ref = GetReferences(tree, "x6").ToArray(); 34099var x7Ref = GetReferences(tree, "x7").ToArray(); 34154var x2Decl = GetOutVarDeclarations(tree, "x2").ToArray(); 34155var x2Ref = GetReferences(tree, "x2").ToArray(); 34210var x2Decl = GetOutVarDeclarations(tree, "x2").ToArray(); 34211var x2Ref = GetReferences(tree, "x2").ToArray(); 34400var x1Ref = GetReferences(tree, "x1").ToArray(); 34405var x2Ref = GetReferences(tree, "x2").ToArray(); 34410var x3Ref = GetReferences(tree, "x3").ToArray(); 34491var x1Ref = GetReferences(tree, "x1").ToArray(); 34496var x2Ref = GetReferences(tree, "x2").ToArray(); 34598var x1Ref = GetReferences(tree, "x1").ToArray(); 34603var x2Ref = GetReferences(tree, "x2").ToArray(); 34719var x1Ref = GetReferences(tree, "x1").ToArray(); 34724var x2Ref = GetReferences(tree, "x2").ToArray(); 34729var x3Ref = GetReferences(tree, "x3").ToArray(); 34760var refs = GetReferences(tree, name).ToArray(); 34838var refs = GetReferences(tree, name).ToArray(); 34893var refs = GetReferences(tree, name).ToArray(); 34947var refs = GetReferences(tree, name).ToArray(); 35005var refs = GetReferences(tree, name).ToArray(); 35055var refs = GetReferences(tree, name).ToArray(); 35109var refs = GetReferences(tree, name).ToArray(); 35147var refs = GetReferences(tree, name).ToArray();
Semantics\ParamsCollectionTests.cs (8)
119var nodes = tree.GetRoot().DescendantNodes().OfType<InvocationExpressionSyntax>().Take(3).ToArray(); 218var nodes = tree.GetRoot().DescendantNodes().OfType<LiteralExpressionSyntax>().ToArray(); 334var nodes = tree.GetRoot().DescendantNodes().OfType<LiteralExpressionSyntax>().ToArray(); 517var nodes = tree.GetRoot().DescendantNodes().OfType<LiteralExpressionSyntax>().ToArray(); 662var nodes = tree.GetRoot().DescendantNodes().OfType<LiteralExpressionSyntax>().ToArray(); 1406var nodes = tree.GetRoot().DescendantNodes().OfType<LiteralExpressionSyntax>().ToArray(); 2530var nodes = tree.GetRoot().DescendantNodes().OfType<LiteralExpressionSyntax>().ToArray(); 2666var nodes = tree.GetRoot().DescendantNodes().OfType<LiteralExpressionSyntax>().ToArray();
Semantics\PatternMatchingTests.cs (95)
695var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 696var x1Ref = GetReferences(tree, "x1").ToArray(); 739var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 740var x1Ref = GetReferences(tree, "x1").ToArray(); 1154var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 1155var x1Ref = GetReferences(tree, "x1").ToArray(); 1223var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 1224var x1Ref = GetReferences(tree, "x1").ToArray(); 1273var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 1274var x1Ref = GetReferences(tree, "x1").ToArray(); 1317var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 1318var x1Ref = GetReferences(tree, "x1").ToArray(); 1432var x1Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x1").ToArray(); 1433var x1Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x1").ToArray(); 1482var x1Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x1").ToArray(); 1483var x1Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x1").ToArray(); 1539var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 1540var x1Ref = GetReferences(tree, "x1").ToArray(); 1591var x1Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x1").ToArray(); 1592var x1Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x1").ToArray(); 1656var x1Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x1").ToArray(); 1657var x1Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x1").ToArray(); 1662var x2Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x2").ToArray(); 1663var x2Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x2").ToArray(); 1668var x3Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x3").ToArray(); 1669var x3Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x3").ToArray(); 1733var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 1734var x1Ref = GetReferences(tree, "x1").ToArray(); 1739var x2Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x2").ToArray(); 1740var x2Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x2").ToArray(); 1745var x3Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x3").ToArray(); 1746var x3Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x3").ToArray(); 1786var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 1787var x1Ref = GetReferences(tree, "x1").ToArray(); 1830var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 1831var x1Ref = GetReferences(tree, "x1").ToArray(); 1884var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 1885var x1Ref = GetReferences(tree, "x1").ToArray(); 1938var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 1939var x1Ref = GetReferences(tree, "x1").ToArray(); 1995var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 1996var x1Ref = GetReferences(tree, "x1").ToArray(); 2033var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 2034var x1Ref = GetReferences(tree, "x1").ToArray(); 2079var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 2080var x1Ref = GetReferences(tree, "x1").ToArray(); 2133var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 2134var x1Ref = GetReferences(tree, "x1").ToArray(); 2182var x0Ref = GetReferences(tree, "x0").ToArray(); 2187var x1Ref = GetReferences(tree, "x1").ToArray(); 2192var x2Ref = GetReferences(tree, "x2").ToArray(); 2238var x0Ref = GetReferences(tree, "x0").ToArray(); 2243var x1Ref = GetReferences(tree, "x1").ToArray(); 2248var x2Ref = GetReferences(tree, "x2").ToArray(); 2297var x0Decl = GetPatternDeclarations(tree, "x0").ToArray(); 2298var x0Ref = GetReferences(tree, "x0").ToArray(); 2303var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 2304var x1Ref = GetReferences(tree, "x1").ToArray(); 2355var x0Decl = GetPatternDeclarations(tree, "x0").ToArray(); 2356var x0Ref = GetReferences(tree, "x0").ToArray(); 2361var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 2362var x1Ref = GetReferences(tree, "x1").ToArray(); 2416var x0Decl = GetPatternDeclarations(tree, "x0").ToArray(); 2417var x0Ref = GetReferences(tree, "x0").ToArray(); 2422var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 2423var x1Ref = GetReferences(tree, "x1").ToArray(); 2462var x1Ref = GetReferences(tree, "x1").ToArray(); 2500var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 2501var x1Ref = GetReferences(tree, "x1").ToArray(); 2544var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 2545var x1Ref = GetReferences(tree, "x1").ToArray(); 2616var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 2617var x1Ref = GetReferences(tree, "x1").ToArray(); 2664var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 2665var x1Ref = GetReferences(tree, "x1").ToArray(); 2702var x1Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x1").ToArray(); 2703var x1Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x1").ToArray(); 2747var x1Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x1").ToArray(); 2748var x1Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x1").ToArray(); 2791var x1Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x1").ToArray(); 2792var x1Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x1").ToArray(); 2843var x1Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x1").ToArray(); 2844var x1Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x1").ToArray(); 2886var x1Ref = GetReferences(tree, "x1").ToArray(); 3040var x1Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x1").ToArray(); 3041var x1Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x1").ToArray(); 3087var x1Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x1").ToArray(); 3088var x1Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x1").ToArray(); 4792var colorDecl = GetPatternDeclarations(tree, "Color").ToArray(); 4793var colorRef = GetReferences(tree, "Color").ToArray(); 4830var x3Decl = GetPatternDeclarations(tree, "x3").ToArray(); 4831var x3Ref = GetReferences(tree, "x3").ToArray(); 4930Task.WaitAll(tasks.ToArray()); 11365var exprs = tree.GetRoot().DescendantNodes().OfType<LiteralExpressionSyntax>().ToArray(); 11389var locals = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().ToArray();
Semantics\PatternMatchingTests_Global.cs (385)
80var x1Ref = GetReferences(tree, "x1").ToArray(); 92var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 124var x1Ref = GetReferences(tree, "x1").ToArray(); 137var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 202var x1Ref = GetReferences(tree, "x1").ToArray(); 214var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 246var x1Ref = GetReferences(tree, "x1").ToArray(); 259var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 296var x1Ref = GetReferences(tree, "x1").ToArray(); 372var x1Ref = GetReferences(tree, "x1").ToArray(); 384var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 390var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 391var x5Ref = GetReferences(tree, "x5").ToArray(); 432var x1Ref = GetReferences(tree, "x1").ToArray(); 445var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 451var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 452var x5Ref = GetReferences(tree, "x5").ToArray(); 524var x1Ref = GetReferences(tree, "x1").ToArray(); 536var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 542var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 543var x5Ref = GetReferences(tree, "x5").ToArray(); 581var x1Ref = GetReferences(tree, "x1").ToArray(); 594var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 600var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 601var x5Ref = GetReferences(tree, "x5").ToArray(); 642var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 643var x1Ref = GetReferences(tree, "x1").ToArray(); 684var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 685var x1Ref = GetReferences(tree, "x1").ToArray(); 761var x1Ref = GetReferences(tree, "x1").ToArray(); 773var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 808var x1Ref = GetReferences(tree, "x1").ToArray(); 821var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 898var x1Ref = GetReferences(tree, "x1").ToArray(); 911var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 946var x1Ref = GetReferences(tree, "x1").ToArray(); 959var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 1025var x1Ref = GetReferences(tree, "x1").ToArray(); 1037var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 1078var x1Ref = GetReferences(tree, "x1").ToArray(); 1091var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 1157var x1Ref = GetReferences(tree, "x1").ToArray(); 1169var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 1210var x1Ref = GetReferences(tree, "x1").ToArray(); 1223var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 1266var x1Ref = GetReferences(tree, "x1").ToArray(); 1331var x1Ref = GetReferences(tree, "x1").ToArray(); 1343var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 1375var x1Ref = GetReferences(tree, "x1").ToArray(); 1388var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 1456var x1Ref = GetReferences(tree, "x1").ToArray(); 1469var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 1501var x1Ref = GetReferences(tree, "x1").ToArray(); 1514var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 1588var x1Ref = GetReferences(tree, "x1").ToArray(); 1600var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 1606var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 1607var x5Ref = GetReferences(tree, "x5").ToArray(); 1642var x1Ref = GetReferences(tree, "x1").ToArray(); 1655var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 1661var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 1662var x5Ref = GetReferences(tree, "x5").ToArray(); 1736var x1Ref = GetReferences(tree, "x1").ToArray(); 1748var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 1754var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 1755var x5Ref = GetReferences(tree, "x5").ToArray(); 1790var x1Ref = GetReferences(tree, "x1").ToArray(); 1803var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 1809var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 1810var x5Ref = GetReferences(tree, "x5").ToArray(); 1853var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 1854var x1Ref = GetReferences(tree, "x1").ToArray(); 1928var x1Ref = GetReferences(tree, "x1").ToArray(); 1944var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 1951var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 1952var x5Ref = GetReferences(tree, "x5").ToArray(); 1998var x1Ref = GetReferences(tree, "x1").ToArray(); 2014var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 2021var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 2022var x5Ref = GetReferences(tree, "x5").ToArray(); 2099var x1Ref = GetReferences(tree, "x1").ToArray(); 2115var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 2122var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 2123var x5Ref = GetReferences(tree, "x5").ToArray(); 2169var x1Ref = GetReferences(tree, "x1").ToArray(); 2185var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 2192var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 2193var x5Ref = GetReferences(tree, "x5").ToArray(); 2227var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 2228var x1Ref = GetReferences(tree, "x1").ToArray(); 2302var x1Ref = GetReferences(tree, "x1").ToArray(); 2318var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 2325var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 2326var x5Ref = GetReferences(tree, "x5").ToArray(); 2372var x1Ref = GetReferences(tree, "x1").ToArray(); 2388var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 2395var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 2396var x5Ref = GetReferences(tree, "x5").ToArray(); 2474var x1Ref = GetReferences(tree, "x1").ToArray(); 2490var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 2497var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 2498var x5Ref = GetReferences(tree, "x5").ToArray(); 2544var x1Ref = GetReferences(tree, "x1").ToArray(); 2560var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 2567var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 2568var x5Ref = GetReferences(tree, "x5").ToArray(); 2612var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 2613var x1Ref = GetReferences(tree, "x1").ToArray(); 2683var x1Ref = GetReferences(tree, "x1").ToArray(); 2695var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 2701var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 2702var x5Ref = GetReferences(tree, "x5").ToArray(); 2737var x1Ref = GetReferences(tree, "x1").ToArray(); 2750var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 2756var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 2757var x5Ref = GetReferences(tree, "x5").ToArray(); 2829var x1Ref = GetReferences(tree, "x1").ToArray(); 2841var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 2847var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 2848var x5Ref = GetReferences(tree, "x5").ToArray(); 2883var x1Ref = GetReferences(tree, "x1").ToArray(); 2896var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 2902var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 2903var x5Ref = GetReferences(tree, "x5").ToArray(); 2944var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 2945var x1Ref = GetReferences(tree, "x1").ToArray(); 2990var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 2991var x1Ref = GetReferences(tree, "x1").ToArray(); 3072var x1Ref = GetReferences(tree, "x1").ToArray(); 3084var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 3131var x1Ref = GetReferences(tree, "x1").ToArray(); 3144var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 3231var x1Ref = GetReferences(tree, "x1").ToArray(); 3243var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 3287var x1Ref = GetReferences(tree, "x1").ToArray(); 3300var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 3377var x1Ref = GetReferences(tree, "x1").ToArray(); 3389var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 3433var x1Ref = GetReferences(tree, "x1").ToArray(); 3446var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 3493var x1Ref = GetReferences(tree, "x1").ToArray(); 3574var x1Ref = GetReferences(tree, "x1").ToArray(); 3586var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 3593var x5Ref = GetReferences(tree, "x5").ToArray(); 3641var x1Ref = GetReferences(tree, "x1").ToArray(); 3654var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 3661var x5Ref = GetReferences(tree, "x5").ToArray(); 3745var x1Ref = GetReferences(tree, "x1").ToArray(); 3757var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 3764var x5Ref = GetReferences(tree, "x5").ToArray(); 3812var x1Ref = GetReferences(tree, "x1").ToArray(); 3825var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 3832var x5Ref = GetReferences(tree, "x5").ToArray(); 3876var x1Ref = GetReferences(tree, "x1").ToArray(); 3970var x1Ref = GetReferences(tree, "x1").ToArray(); 3982var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 3989var x5Ref = GetReferences(tree, "x5").ToArray(); 3994var x6Ref = GetReferences(tree, "x6").ToArray(); 4046var x1Ref = GetReferences(tree, "x1").ToArray(); 4059var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 4066var x5Ref = GetReferences(tree, "x5").ToArray(); 4072var x6Ref = GetReferences(tree, "x6").ToArray(); 4168var x1Ref = GetReferences(tree, "x1").ToArray(); 4180var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 4187var x5Ref = GetReferences(tree, "x5").ToArray(); 4192var x6Ref = GetReferences(tree, "x6").ToArray(); 4244var x1Ref = GetReferences(tree, "x1").ToArray(); 4257var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 4264var x5Ref = GetReferences(tree, "x5").ToArray(); 4270var x6Ref = GetReferences(tree, "x6").ToArray(); 4315var x1Ref = GetReferences(tree, "x1").ToArray(); 4396var x1Ref = GetReferences(tree, "x1").ToArray(); 4408var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 4457var x1Ref = GetReferences(tree, "x1").ToArray(); 4470var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 4563var x1Ref = GetReferences(tree, "x1").ToArray(); 4575var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 4624var x1Ref = GetReferences(tree, "x1").ToArray(); 4637var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 4679var x1Ref = GetReferences(tree, "x1").ToArray(); 4725var x1Ref = GetReferences(tree, "x1").ToArray(); 4764var x1Ref = GetReferences(tree, "x1").ToArray(); 4803var x1Ref = GetReferences(tree, "x1").ToArray(); 4910var x1Ref = GetReferences(tree, "x1").ToArray(); 4922var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 4979var x1Ref = GetReferences(tree, "x1").ToArray(); 4995var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 5076var x1Ref = GetReferences(tree, "x1").ToArray(); 5088var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 5145var x1Ref = GetReferences(tree, "x1").ToArray(); 5161var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 5200var x1Ref = GetReferences(tree, "x1").ToArray(); 5246var x1Ref = GetReferences(tree, "x1").ToArray(); 5285var x1Ref = GetReferences(tree, "x1").ToArray(); 5324var x1Ref = GetReferences(tree, "x1").ToArray(); 5403var x1Ref = GetReferences(tree, "x1").ToArray(); 5415var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 5479var x1Ref = GetReferences(tree, "x1").ToArray(); 5495var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 5588var x1Ref = GetReferences(tree, "x1").ToArray(); 5600var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 5664var x1Ref = GetReferences(tree, "x1").ToArray(); 5680var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 5729var x1Ref = GetReferences(tree, "x1").ToArray(); 5780var x1Ref = GetReferences(tree, "x1").ToArray(); 5819var x1Ref = GetReferences(tree, "x1").ToArray(); 5858var x1Ref = GetReferences(tree, "x1").ToArray(); 5941var x1Ref = GetReferences(tree, "x1").ToArray(); 5979var x1Ref = GetReferences(tree, "x1").ToArray(); 6029var x1Ref = GetReferences(tree, "x1").ToArray(); 6066var x1Ref = GetReferences(tree, "x1").ToArray(); 6113var x1Ref = GetReferences(tree, "x1").ToArray(); 6145var x1Ref = GetReferences(tree, "x1").ToArray(); 6199var x1Ref = GetReferences(tree, "x1").ToArray(); 6237var x1Ref = GetReferences(tree, "x1").ToArray(); 6516var x1Ref = GetReferences(tree, "x1").ToArray(); 6521var x4Ref = GetReferences(tree, "x4").ToArray(); 6527var x6Ref = GetReferences(tree, "x6").ToArray(); 6532var x7Ref = GetReferences(tree, "x7").ToArray(); 6538var x8Ref = GetReferences(tree, "x8").ToArray(); 6543var x9Decl = GetPatternDeclarations(tree, "x9").ToArray(); 6544var x9Ref = GetReferences(tree, "x9").ToArray(); 6550var y10Ref = GetReferences(tree, "y10").ToArray(); 6555var x14Decl = GetPatternDeclarations(tree, "x14").ToArray(); 6556var x14Ref = GetReferences(tree, "x14").ToArray(); 6563var x15Ref = GetReferences(tree, "x15").ToArray(); 6604var x1Ref = GetReferences(tree, "x1").ToArray(); 6609var x4Ref = GetReferences(tree, "x4").ToArray(); 6615var x6Ref = GetReferences(tree, "x6").ToArray(); 6620var x7Ref = GetReferences(tree, "x7").ToArray(); 6626var x8Ref = GetReferences(tree, "x8").ToArray(); 6631var x9Decl = GetPatternDeclarations(tree, "x9").ToArray(); 6632var x9Ref = GetReferences(tree, "x9").ToArray(); 6638var y10Ref = GetReferences(tree, "y10").ToArray(); 6643var x14Decl = GetPatternDeclarations(tree, "x14").ToArray(); 6644var x14Ref = GetReferences(tree, "x14").ToArray(); 6651var x15Ref = GetReferences(tree, "x15").ToArray(); 6688var x1Ref = GetReferences(tree, "x1").ToArray(); 6731var x1Ref = GetReferences(tree, "x1").ToArray(); 6764var x1Ref = GetReferences(tree, "x1").ToArray(); 6806var x1Ref = GetReferences(tree, "x1").ToArray(); 6944var x1Ref = GetReferences(tree, "x1").ToArray(); 6949var x2Ref = GetReferences(tree, "x2").ToArray(); 6954var x4Ref = GetReferences(tree, "x4").ToArray(); 6960var x6Ref = GetReferences(tree, "x6").ToArray(); 6965var x7Ref = GetReferences(tree, "x7").ToArray(); 6971var x8Ref = GetReferences(tree, "x8").ToArray(); 6976var x9Decl = GetPatternDeclarations(tree, "x9").ToArray(); 6977var x9Ref = GetReferences(tree, "x9").ToArray(); 6983var y10Ref = GetReferences(tree, "y10").ToArray(); 6991var x14Decl = GetPatternDeclarations(tree, "x14").ToArray(); 6992var x14Ref = GetReferences(tree, "x14").ToArray(); 7042var x1Ref = GetReferences(tree, "x1").ToArray(); 7047var x2Ref = GetReferences(tree, "x2").ToArray(); 7052var x4Ref = GetReferences(tree, "x4").ToArray(); 7058var x6Ref = GetReferences(tree, "x6").ToArray(); 7063var x7Ref = GetReferences(tree, "x7").ToArray(); 7069var x8Ref = GetReferences(tree, "x8").ToArray(); 7074var x9Decl = GetPatternDeclarations(tree, "x9").ToArray(); 7075var x9Ref = GetReferences(tree, "x9").ToArray(); 7081var y10Ref = GetReferences(tree, "y10").ToArray(); 7089var x14Decl = GetPatternDeclarations(tree, "x14").ToArray(); 7090var x14Ref = GetReferences(tree, "x14").ToArray(); 7134var x0Ref = GetReferences(tree, "x0").ToArray(); 7139var x1Ref = GetReferences(tree, "x1").ToArray(); 7144var x2Ref = GetReferences(tree, "x2").ToArray(); 7261var x1Ref = GetReferences(tree, "x1").ToArray(); 7266var x2Ref = GetReferences(tree, "x2").ToArray(); 7271var x4Ref = GetReferences(tree, "x4").ToArray(); 7277var x6Ref = GetReferences(tree, "x6").ToArray(); 7282var x7Ref = GetReferences(tree, "x7").ToArray(); 7288var x8Ref = GetReferences(tree, "x8").ToArray(); 7293var x9Decl = GetPatternDeclarations(tree, "x9").ToArray(); 7294var x9Ref = GetReferences(tree, "x9").ToArray(); 7300var y10Ref = GetReferences(tree, "y10").ToArray(); 7308var x14Decl = GetPatternDeclarations(tree, "x14").ToArray(); 7309var x14Ref = GetReferences(tree, "x14").ToArray(); 7316var x15Ref = GetReferences(tree, "x15").ToArray(); 7365var x1Ref = GetReferences(tree, "x1").ToArray(); 7370var x2Ref = GetReferences(tree, "x2").ToArray(); 7375var x4Ref = GetReferences(tree, "x4").ToArray(); 7381var x6Ref = GetReferences(tree, "x6").ToArray(); 7386var x7Ref = GetReferences(tree, "x7").ToArray(); 7392var x8Ref = GetReferences(tree, "x8").ToArray(); 7397var x9Decl = GetPatternDeclarations(tree, "x9").ToArray(); 7398var x9Ref = GetReferences(tree, "x9").ToArray(); 7404var y10Ref = GetReferences(tree, "y10").ToArray(); 7412var x14Decl = GetPatternDeclarations(tree, "x14").ToArray(); 7413var x14Ref = GetReferences(tree, "x14").ToArray(); 7420var x15Ref = GetReferences(tree, "x15").ToArray(); 7454var x1Ref = GetReferences(tree, "x1").ToArray(); 7537var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 7543var x6Decl = GetPatternDeclarations(tree, "x6").ToArray(); 7544var x6Ref = GetReferences(tree, "x6").ToArray(); 7551var x7Ref = GetReferences(tree, "x7").ToArray(); 7560var x8Ref = GetReferences(tree, "x8").ToArray(); 7564var x9Decl = GetPatternDeclarations(tree, "x9").ToArray(); 7565var x9Ref = GetReferences(tree, "x9").ToArray(); 7571var x10Decl = GetPatternDeclarations(tree, "x10").ToArray(); 7572var x10Ref = GetReferences(tree, "x10").ToArray(); 7579var x11Ref = GetReferences(tree, "x11").ToArray(); 7586var x12Ref = GetReferences(tree, "x12").ToArray(); 7631var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 7637var x6Decl = GetPatternDeclarations(tree, "x6").ToArray(); 7638var x6Ref = GetReferences(tree, "x6").ToArray(); 7645var x7Ref = GetReferences(tree, "x7").ToArray(); 7654var x8Ref = GetReferences(tree, "x8").ToArray(); 7658var x9Decl = GetPatternDeclarations(tree, "x9").ToArray(); 7659var x9Ref = GetReferences(tree, "x9").ToArray(); 7665var x10Decl = GetPatternDeclarations(tree, "x10").ToArray(); 7666var x10Ref = GetReferences(tree, "x10").ToArray(); 7673var x11Ref = GetReferences(tree, "x11").ToArray(); 7680var x12Ref = GetReferences(tree, "x12").ToArray(); 7932var y1Ref = GetReferences(tree, "y1").ToArray(); 7937var y2Ref = GetReferences(tree, "y2").ToArray(); 7942var z2Ref = GetReferences(tree, "z2").ToArray(); 7949var y3Ref = GetReferences(tree, "y3").ToArray(); 7954var z3Ref = GetReferences(tree, "z3").ToArray(); 7961var y4Ref = GetReferences(tree, "y4").ToArray(); 7966var z4Ref = GetReferences(tree, "z4").ToArray(); 7971var u4Ref = GetReferences(tree, "u4").ToArray(); 7979var v4Ref = GetReferences(tree, "v4").ToArray(); 7987var y5Ref = GetReferences(tree, "y5").ToArray(); 7992var z5Ref = GetReferences(tree, "z5").ToArray(); 7997var u5Ref = GetReferences(tree, "u5").ToArray(); 8005var v5Ref = GetReferences(tree, "v5").ToArray(); 8013var y6Ref = GetReferences(tree, "y6").ToArray(); 8018var z6Ref = GetReferences(tree, "z6").ToArray(); 8025var y7Ref = GetReferences(tree, "y7").ToArray(); 8030var z7Ref = GetReferences(tree, "z7").ToArray(); 8038var u7Ref = GetReferences(tree, "u7").ToArray(); 8046var y8Ref = GetReferences(tree, "y8").ToArray(); 8051var z8Ref = GetReferences(tree, "z8").ToArray(); 8057var y9Ref = GetReferences(tree, "y9").ToArray(); 8062var z9Ref = GetReferences(tree, "z9").ToArray(); 8069var u9Ref = GetReferences(tree, "u9").ToArray(); 8076var y10Ref = GetReferences(tree, "y10").ToArray(); 8082var y11Ref = GetReferences(tree, "y11").ToArray(); 8191var y1Ref = GetReferences(tree, "y1").ToArray(); 8196var y2Ref = GetReferences(tree, "y2").ToArray(); 8201var z2Ref = GetReferences(tree, "z2").ToArray(); 8208var y3Ref = GetReferences(tree, "y3").ToArray(); 8213var z3Ref = GetReferences(tree, "z3").ToArray(); 8220var y4Ref = GetReferences(tree, "y4").ToArray(); 8225var z4Ref = GetReferences(tree, "z4").ToArray(); 8230var u4Ref = GetReferences(tree, "u4").ToArray(); 8238var v4Ref = GetReferences(tree, "v4").ToArray(); 8246var y5Ref = GetReferences(tree, "y5").ToArray(); 8251var z5Ref = GetReferences(tree, "z5").ToArray(); 8256var u5Ref = GetReferences(tree, "u5").ToArray(); 8264var v5Ref = GetReferences(tree, "v5").ToArray(); 8272var y6Ref = GetReferences(tree, "y6").ToArray(); 8277var z6Ref = GetReferences(tree, "z6").ToArray(); 8284var y7Ref = GetReferences(tree, "y7").ToArray(); 8289var z7Ref = GetReferences(tree, "z7").ToArray(); 8297var u7Ref = GetReferences(tree, "u7").ToArray(); 8305var y8Ref = GetReferences(tree, "y8").ToArray(); 8310var z8Ref = GetReferences(tree, "z8").ToArray(); 8316var y9Ref = GetReferences(tree, "y9").ToArray(); 8321var z9Ref = GetReferences(tree, "z9").ToArray(); 8328var u9Ref = GetReferences(tree, "u9").ToArray(); 8335var y10Ref = GetReferences(tree, "y10").ToArray(); 8341var y11Ref = GetReferences(tree, "y11").ToArray(); 8483var x1Ref = GetReferences(tree, "x1").ToArray(); 8488var x2Ref = GetReferences(tree, "x2").ToArray(); 8493var x4Ref = GetReferences(tree, "x4").ToArray(); 8499var x6Ref = GetReferences(tree, "x6").ToArray(); 8504var x7Ref = GetReferences(tree, "x7").ToArray(); 8510var x8Ref = GetReferences(tree, "x8").ToArray(); 8515var x9Decl = GetPatternDeclarations(tree, "x9").ToArray(); 8516var x9Ref = GetReferences(tree, "x9").ToArray(); 8526var y10Ref = GetReferences(tree, "y10").ToArray(); 8534var x14Decl = GetPatternDeclarations(tree, "x14").ToArray(); 8535var x14Ref = GetReferences(tree, "x14").ToArray(); 8582var x1Ref = GetReferences(tree, "x1").ToArray(); 8587var x2Ref = GetReferences(tree, "x2").ToArray(); 8592var x4Ref = GetReferences(tree, "x4").ToArray(); 8598var x6Ref = GetReferences(tree, "x6").ToArray(); 8603var x7Ref = GetReferences(tree, "x7").ToArray(); 8609var x8Ref = GetReferences(tree, "x8").ToArray(); 8614var x9Decl = GetPatternDeclarations(tree, "x9").ToArray(); 8615var x9Ref = GetReferences(tree, "x9").ToArray(); 8625var y10Ref = GetReferences(tree, "y10").ToArray(); 8633var x14Decl = GetPatternDeclarations(tree, "x14").ToArray(); 8634var x14Ref = GetReferences(tree, "x14").ToArray();
Semantics\PatternMatchingTests_ListPatterns.cs (8)
3319var declarations = tree.GetRoot().DescendantNodes().OfType<VarPatternSyntax>().ToArray(); 3324var localDeclarations = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 3720var designations = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().ToArray(); 4085var declarations = tree.GetRoot().DescendantNodes().OfType<VarPatternSyntax>().ToArray(); 4172var declarations = tree.GetRoot().DescendantNodes().OfType<VarPatternSyntax>().ToArray(); 4249var declarations = tree.GetRoot().DescendantNodes().OfType<VarPatternSyntax>().ToArray(); 4363var declarations = tree.GetRoot().DescendantNodes().OfType<VarPatternSyntax>().ToArray(); 4556var declarations = tree.GetRoot().DescendantNodes().OfType<VarPatternSyntax>().ToArray();
Semantics\PatternMatchingTests_Scope.cs (541)
205var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 206var x1Ref = GetReferences(tree, "x1").ToArray(); 222var x4Ref = GetReferences(tree, "x4").ToArray(); 229var x5Ref = GetReferences(tree, "x5").ToArray(); 233var x8Decl = GetPatternDeclarations(tree, "x8").ToArray(); 234var x8Ref = GetReferences(tree, "x8").ToArray(); 252var x11Ref = GetReferences(tree, "x11").ToArray(); 257var x12Ref = GetReferences(tree, "x12").ToArray(); 286var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 287var x1Ref = GetReferences(tree, "x1").ToArray(); 332var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 333var x1Ref = GetReferences(tree, "x1").ToArray(); 415var x1Ref = GetReferences(tree, "x1").ToArray(); 590var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 591var x1Ref = GetReferences(tree, "x1").ToArray(); 607var x4Ref = GetReferences(tree, "x4").ToArray(); 614var x5Ref = GetReferences(tree, "x5").ToArray(); 618var x8Decl = GetPatternDeclarations(tree, "x8").ToArray(); 619var x8Ref = GetReferences(tree, "x8").ToArray(); 634var x11Ref = GetReferences(tree, "x11").ToArray(); 639var x12Ref = GetReferences(tree, "x12").ToArray(); 720var x1Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x1").ToArray(); 860var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 861var x1Ref = GetReferences(tree, "x1").ToArray(); 877var x4Ref = GetReferences(tree, "x4").ToArray(); 884var x5Ref = GetReferences(tree, "x5").ToArray(); 888var x8Decl = GetPatternDeclarations(tree, "x8").ToArray(); 889var x8Ref = GetReferences(tree, "x8").ToArray(); 904var x11Ref = GetReferences(tree, "x11").ToArray(); 909var x12Ref = GetReferences(tree, "x12").ToArray(); 989var x1Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x1").ToArray(); 1159var x1Ref = GetReferences(tree, "x1").ToArray(); 1164var x2Ref = GetReferences(tree, "x2").ToArray(); 1169var x3Ref = GetReferences(tree, "x3").ToArray(); 1175var x4Ref = GetReferences(tree, "x4").ToArray(); 1186var x6Ref = GetReferences(tree, "x6").ToArray(); 1191var x7Ref = GetReferences(tree, "x7").ToArray(); 1197var x8Ref = GetReferences(tree, "x8").ToArray(); 1201var x9Decl = GetPatternDeclarations(tree, "x9").ToArray(); 1202var x9Ref = GetReferences(tree, "x9").ToArray(); 1208var y10Ref = GetReferences(tree, "y10").ToArray(); 1293var x1Ref = GetReferences(tree, "x1").ToArray(); 1529var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 1535var x6Decl = GetPatternDeclarations(tree, "x6").ToArray(); 1536var x6Ref = GetReferences(tree, "x6").ToArray(); 1543var x7Ref = GetReferences(tree, "x7").ToArray(); 1552var x8Ref = GetReferences(tree, "x8").ToArray(); 1556var x9Decl = GetPatternDeclarations(tree, "x9").ToArray(); 1557var x9Ref = GetReferences(tree, "x9").ToArray(); 1563var x10Decl = GetPatternDeclarations(tree, "x10").ToArray(); 1564var x10Ref = GetReferences(tree, "x10").ToArray(); 1571var x11Ref = GetReferences(tree, "x11").ToArray(); 1578var x12Ref = GetReferences(tree, "x12").ToArray(); 1822var y1Ref = GetReferences(tree, "y1").ToArray(); 1827var y2Ref = GetReferences(tree, "y2").ToArray(); 1832var z2Ref = GetReferences(tree, "z2").ToArray(); 1839var y3Ref = GetReferences(tree, "y3").ToArray(); 1844var z3Ref = GetReferences(tree, "z3").ToArray(); 1851var y4Ref = GetReferences(tree, "y4").ToArray(); 1856var z4Ref = GetReferences(tree, "z4").ToArray(); 1861var u4Ref = GetReferences(tree, "u4").ToArray(); 1869var v4Ref = GetReferences(tree, "v4").ToArray(); 1877var y5Ref = GetReferences(tree, "y5").ToArray(); 1882var z5Ref = GetReferences(tree, "z5").ToArray(); 1887var u5Ref = GetReferences(tree, "u5").ToArray(); 1895var v5Ref = GetReferences(tree, "v5").ToArray(); 1903var y6Ref = GetReferences(tree, "y6").ToArray(); 1908var z6Ref = GetReferences(tree, "z6").ToArray(); 1915var y7Ref = GetReferences(tree, "y7").ToArray(); 1920var z7Ref = GetReferences(tree, "z7").ToArray(); 1928var u7Ref = GetReferences(tree, "u7").ToArray(); 1936var y8Ref = GetReferences(tree, "y8").ToArray(); 1941var z8Ref = GetReferences(tree, "z8").ToArray(); 1947var y9Ref = GetReferences(tree, "y9").ToArray(); 1952var z9Ref = GetReferences(tree, "z9").ToArray(); 1959var u9Ref = GetReferences(tree, "u9").ToArray(); 1966var y10Ref = GetReferences(tree, "y10").ToArray(); 1972var y11Ref = GetReferences(tree, "y11").ToArray(); 2073var y4Ref = GetReferences(tree, "y4").ToArray(); 2078var z4Ref = GetReferences(tree, "z4").ToArray(); 2083var u4Ref = GetReferences(tree, "u4").ToArray(); 2091var v4Ref = GetReferences(tree, "v4").ToArray(); 2099var y5Ref = GetReferences(tree, "y5").ToArray(); 2104var z5Ref = GetReferences(tree, "z5").ToArray(); 2109var u5Ref = GetReferences(tree, "u5").ToArray(); 2117var v5Ref = GetReferences(tree, "v5").ToArray(); 2222var yRef = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(name => name.Identifier.ValueText == id).ToArray(); 2357var yDecl = GetPatternDeclarations(tree, id).ToArray(); 2358var yRef = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(name => name.Identifier.ValueText == id).ToArray(); 2420var yDecl = GetPatternDeclarations(tree, id).ToArray(); 2421var yRef = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(name => name.Identifier.ValueText == id).ToArray(); 2712var yRef = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(name => name.Identifier.ValueText == id).ToArray(); 2791var y1Decl = GetPatternDeclarations(tree, "y1").ToArray(); 2796var y2Decl = GetPatternDeclarations(tree, "y2").ToArray(); 2995var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 3001var x6Decl = GetPatternDeclarations(tree, "x6").ToArray(); 3002var x6Ref = GetReferences(tree, "x6").ToArray(); 3009var x7Ref = GetReferences(tree, "x7").ToArray(); 3016var x11Ref = GetReferences(tree, "x11").ToArray(); 3022var x12Ref = GetReferences(tree, "x12").ToArray(); 3164var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 3170var x6Decl = GetPatternDeclarations(tree, "x6").ToArray(); 3171var x6Ref = GetReferences(tree, "x6").ToArray(); 3178var x7Ref = GetReferences(tree, "x7").ToArray(); 3279var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 3285var x6Decl = GetPatternDeclarations(tree, "x6").ToArray(); 3286var x6Ref = GetReferences(tree, "x6").ToArray(); 3293var x7Ref = GetReferences(tree, "x7").ToArray(); 3368var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 3374var x6Decl = GetPatternDeclarations(tree, "x6").ToArray(); 3375var x6Ref = GetReferences(tree, "x6").ToArray(); 3382var x7Ref = GetReferences(tree, "x7").ToArray(); 3456var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 3462var x6Decl = GetPatternDeclarations(tree, "x6").ToArray(); 3463var x6Ref = GetReferences(tree, "x6").ToArray(); 3470var x7Ref = GetReferences(tree, "x7").ToArray(); 3543var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 3549var x6Decl = GetPatternDeclarations(tree, "x6").ToArray(); 3550var x6Ref = GetReferences(tree, "x6").ToArray(); 3557var x7Ref = GetReferences(tree, "x7").ToArray(); 3619var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 3625var x6Decl = GetPatternDeclarations(tree, "x6").ToArray(); 3626var x6Ref = GetReferences(tree, "x6").ToArray(); 3633var x7Ref = GetReferences(tree, "x7").ToArray(); 3716var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 3722var x6Decl = GetPatternDeclarations(tree, "x6").ToArray(); 3723var x6Ref = GetReferences(tree, "x6").ToArray(); 3730var x7Ref = GetReferences(tree, "x7").ToArray(); 3807var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 3813var x6Decl = GetPatternDeclarations(tree, "x6").ToArray(); 3814var x6Ref = GetReferences(tree, "x6").ToArray(); 3821var x7Ref = GetReferences(tree, "x7").ToArray(); 3897var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 3903var x6Decl = GetPatternDeclarations(tree, "x6").ToArray(); 3904var x6Ref = GetReferences(tree, "x6").ToArray(); 3911var x7Ref = GetReferences(tree, "x7").ToArray(); 3989var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 3995var x6Decl = GetPatternDeclarations(tree, "x6").ToArray(); 3996var x6Ref = GetReferences(tree, "x6").ToArray(); 4003var x7Ref = GetReferences(tree, "x7").ToArray(); 4085var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 4091var x6Decl = GetPatternDeclarations(tree, "x6").ToArray(); 4092var x6Ref = GetReferences(tree, "x6").ToArray(); 4099var x7Ref = GetReferences(tree, "x7").ToArray(); 4231var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 4505var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 4506var x1Ref = GetReferences(tree, "x1").ToArray(); 4515var x2Ref = GetReferences(tree, "x2").ToArray(); 4520var x3Ref = GetReferences(tree, "x3").ToArray(); 4525var x4Ref = GetReferences(tree, "x4").ToArray(); 4532var x5Ref = GetReferences(tree, "x5").ToArray(); 4537var x8Decl = GetPatternDeclarations(tree, "x8").ToArray(); 4538var x8Ref = GetReferences(tree, "x8").ToArray(); 4548var x9Ref = GetReferences(tree, "x9").ToArray(); 4557var x11Ref = GetReferences(tree, "x11").ToArray(); 4565var x12Ref = GetReferences(tree, "x12").ToArray(); 4572var x13Decl = GetPatternDeclarations(tree, "x13").ToArray(); 4573var x13Ref = GetReferences(tree, "x13").ToArray(); 4579var x14Decl = GetPatternDeclarations(tree, "x14").ToArray(); 4580var x14Ref = GetReferences(tree, "x14").ToArray(); 4586var x15Decl = GetPatternDeclarations(tree, "x15").ToArray(); 4587var x15Ref = GetReferences(tree, "x15").ToArray(); 4905var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 4906var x1Ref = GetReferences(tree, "x1").ToArray(); 4915var x2Ref = GetReferences(tree, "x2").ToArray(); 4920var x3Ref = GetReferences(tree, "x3").ToArray(); 4925var x4Ref = GetReferences(tree, "x4").ToArray(); 4932var x5Ref = GetReferences(tree, "x5").ToArray(); 4937var x8Decl = GetPatternDeclarations(tree, "x8").ToArray(); 4938var x8Ref = GetReferences(tree, "x8").ToArray(); 4948var x9Ref = GetReferences(tree, "x9").ToArray(); 4957var x11Ref = GetReferences(tree, "x11").ToArray(); 4965var x12Ref = GetReferences(tree, "x12").ToArray(); 4972var x13Decl = GetPatternDeclarations(tree, "x13").ToArray(); 4973var x13Ref = GetReferences(tree, "x13").ToArray(); 4979var x14Decl = GetPatternDeclarations(tree, "x14").ToArray(); 4980var x14Ref = GetReferences(tree, "x14").ToArray(); 4986var x15Decl = GetPatternDeclarations(tree, "x15").ToArray(); 4987var x15Ref = GetReferences(tree, "x15").ToArray(); 4996var x16Decl = GetPatternDeclarations(tree, "x16").ToArray(); 4997var x16Ref = GetReferences(tree, "x16").ToArray(); 5006var x17Decl = GetPatternDeclarations(tree, "x17").ToArray(); 5007var x17Ref = GetReferences(tree, "x17").ToArray(); 5215var x1Ref = GetReferences(tree, "x1").ToArray(); 5220var x4Ref = GetReferences(tree, "x4").ToArray(); 5228var x5Ref = GetReferences(tree, "x5").ToArray(); 5233var x6Ref = GetReferences(tree, "x6").ToArray(); 5238var x7Ref = GetReferences(tree, "x7").ToArray(); 5243var x9Decl = GetPatternDeclarations(tree, "x9").ToArray(); 5244var x9Ref = GetReferences(tree, "x9").ToArray(); 5250var y10Ref = GetReferences(tree, "y10").ToArray(); 5257var x14Decl = GetPatternDeclarations(tree, "x14").ToArray(); 5258var x14Ref = GetReferences(tree, "x14").ToArray(); 5264var y15Ref = GetReferences(tree, "y15").ToArray(); 5349var x1Ref = GetReferences(tree, "x1").ToArray(); 5503var x1Ref = GetReferences(tree, "x1").ToArray(); 5508var x2Ref = GetReferences(tree, "x2").ToArray(); 5513var x4Ref = GetReferences(tree, "x4").ToArray(); 5519var x6Ref = GetReferences(tree, "x6").ToArray(); 5524var x7Ref = GetReferences(tree, "x7").ToArray(); 5530var x8Ref = GetReferences(tree, "x8").ToArray(); 5535var x9Decl = GetPatternDeclarations(tree, "x9").ToArray(); 5536var x9Ref = GetReferences(tree, "x9").ToArray(); 5546var y10Ref = GetReferences(tree, "y10").ToArray(); 5554var x14Decl = GetPatternDeclarations(tree, "x14").ToArray(); 5555var x14Ref = GetReferences(tree, "x14").ToArray(); 5710var x1Ref = GetReferences(tree, "x1").ToArray(); 5715var x2Ref = GetReferences(tree, "x2").ToArray(); 5720var x4Ref = GetReferences(tree, "x4").ToArray(); 5726var x6Ref = GetReferences(tree, "x6").ToArray(); 5731var x7Ref = GetReferences(tree, "x7").ToArray(); 5737var x8Ref = GetReferences(tree, "x8").ToArray(); 5742var x9Decl = GetPatternDeclarations(tree, "x9").ToArray(); 5743var x9Ref = GetReferences(tree, "x9").ToArray(); 5753var y10Ref = GetReferences(tree, "y10").ToArray(); 5761var x14Decl = GetPatternDeclarations(tree, "x14").ToArray(); 5762var x14Ref = GetReferences(tree, "x14").ToArray(); 5917var x1Ref = GetReferences(tree, "x1").ToArray(); 5922var x2Ref = GetReferences(tree, "x2").ToArray(); 5927var x4Ref = GetReferences(tree, "x4").ToArray(); 5933var x6Ref = GetReferences(tree, "x6").ToArray(); 5938var x7Ref = GetReferences(tree, "x7").ToArray(); 5944var x8Ref = GetReferences(tree, "x8").ToArray(); 5949var x9Decl = GetPatternDeclarations(tree, "x9").ToArray(); 5950var x9Ref = GetReferences(tree, "x9").ToArray(); 5960var y10Ref = GetReferences(tree, "y10").ToArray(); 5968var x14Decl = GetPatternDeclarations(tree, "x14").ToArray(); 5969var x14Ref = GetReferences(tree, "x14").ToArray(); 6026var x1Ref = GetReferences(tree, "x1").ToArray(); 6033var x2Ref = GetReferences(tree, "x2").ToArray(); 6107var x1Ref = GetReferences(tree, "x1").ToArray(); 6111var x2Decl = GetPatternDeclarations(tree, "x2").ToArray(); 6112var x2Ref = GetReferences(tree, "x2").ToArray(); 6119var x3Ref = GetReferences(tree, "x3").ToArray(); 6124var x4Ref = GetReferences(tree, "x4").ToArray(); 6194var x4Ref = GetReferences(tree, "x4").ToArray(); 6205var x8Ref = GetReferences(tree, "x8").ToArray(); 6209var x14Decl = GetPatternDeclarations(tree, "x14").ToArray(); 6281var x4Ref = GetReferences(tree, "x4").ToArray(); 6292var x8Ref = GetReferences(tree, "x8").ToArray(); 6296var x14Decl = GetPatternDeclarations(tree, "x14").ToArray(); 6351var x1Ref = GetReferences(tree, "x1").ToArray(); 6358var x2Ref = GetReferences(tree, "x2").ToArray(); 6421var x1Ref = GetReferences(tree, "x1").ToArray(); 6425var x2Decl = GetPatternDeclarations(tree, "x2").ToArray(); 6426var x2Ref = GetReferences(tree, "x2").ToArray(); 6433var x3Ref = GetReferences(tree, "x3").ToArray(); 6438var x4Ref = GetReferences(tree, "x4").ToArray(); 6479var x1Ref = GetReferences(tree, "x1").ToArray(); 6595var x4Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x4").ToArray(); 6606var x8Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x8").ToArray(); 6610var x14Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x14").ToArray(); 6684var x4Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x4").ToArray(); 6695var x8Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x8").ToArray(); 6699var x14Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x14").ToArray(); 6756var x1Ref = GetReferences(tree, "x1").ToArray(); 6763var x2Ref = GetReferences(tree, "x2").ToArray(); 6831var x1Ref = GetReferences(tree, "x1").ToArray(); 6838var x2Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x2").ToArray(); 6839var x2Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x2").ToArray(); 6846var x3Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x3").ToArray(); 6851var x4Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x4").ToArray(); 6890var x1Ref = GetReferences(tree, "x1").ToArray(); 6931var x1Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x1").ToArray(); 7088var x1Ref = GetReferences(tree, "x1").ToArray(); 7093var x2Ref = GetReferences(tree, "x2").ToArray(); 7098var x4Ref = GetReferences(tree, "x4").ToArray(); 7104var x6Ref = GetReferences(tree, "x6").ToArray(); 7109var x7Ref = GetReferences(tree, "x7").ToArray(); 7115var x8Ref = GetReferences(tree, "x8").ToArray(); 7120var x9Decl = GetPatternDeclarations(tree, "x9").ToArray(); 7121var x9Ref = GetReferences(tree, "x9").ToArray(); 7127var y10Ref = GetReferences(tree, "y10").ToArray(); 7135var x14Decl = GetPatternDeclarations(tree, "x14").ToArray(); 7136var x14Ref = GetReferences(tree, "x14").ToArray(); 7219var x1Ref = GetReferences(tree, "x1").ToArray(); 7410var x1Ref = GetReferences(tree, "x1").ToArray(); 7415var x2Ref = GetReferences(tree, "x2").ToArray(); 7420var x4Ref = GetReferences(tree, "x4").ToArray(); 7426var x6Ref = GetReferences(tree, "x6").ToArray(); 7431var x7Ref = GetReferences(tree, "x7").ToArray(); 7437var x8Ref = GetReferences(tree, "x8").ToArray(); 7442var x9Decl = GetPatternDeclarations(tree, "x9").ToArray(); 7443var x9Ref = GetReferences(tree, "x9").ToArray(); 7449var y10Ref = GetReferences(tree, "y10").ToArray(); 7457var x14Decl = GetPatternDeclarations(tree, "x14").ToArray(); 7458var x14Ref = GetReferences(tree, "x14").ToArray(); 7542var x1Ref = GetReferences(tree, "x1").ToArray(); 7725var x1Ref = GetReferences(tree, "x1").ToArray(); 7730var x2Ref = GetReferences(tree, "x2").ToArray(); 7735var x4Ref = GetReferences(tree, "x4").ToArray(); 7741var x6Ref = GetReferences(tree, "x6").ToArray(); 7746var x7Ref = GetReferences(tree, "x7").ToArray(); 7752var x8Ref = GetReferences(tree, "x8").ToArray(); 7757var x9Decl = GetPatternDeclarations(tree, "x9").ToArray(); 7758var x9Ref = GetReferences(tree, "x9").ToArray(); 7764var y10Ref = GetReferences(tree, "y10").ToArray(); 7772var x14Decl = GetPatternDeclarations(tree, "x14").ToArray(); 7773var x14Ref = GetReferences(tree, "x14").ToArray(); 7954var x1Ref = GetReferences(tree, "x1").ToArray(); 7959var x2Ref = GetReferences(tree, "x2").ToArray(); 7964var x4Ref = GetReferences(tree, "x4").ToArray(); 7970var x6Ref = GetReferences(tree, "x6").ToArray(); 7975var x7Ref = GetReferences(tree, "x7").ToArray(); 7981var x8Ref = GetReferences(tree, "x8").ToArray(); 7986var x9Decl = GetPatternDeclarations(tree, "x9").ToArray(); 7987var x9Ref = GetReferences(tree, "x9").ToArray(); 7993var y10Ref = GetReferences(tree, "y10").ToArray(); 8001var x14Decl = GetPatternDeclarations(tree, "x14").ToArray(); 8002var x14Ref = GetReferences(tree, "x14").ToArray(); 8204var x1Ref = GetReferences(tree, "x1").ToArray(); 8210var x2Ref = GetReferences(tree, "x2").ToArray(); 8216var x4Ref = GetReferences(tree, "x4").ToArray(); 8223var x6Ref = GetReferences(tree, "x6").ToArray(); 8229var x7Ref = GetReferences(tree, "x7").ToArray(); 8235var x8Ref = GetReferences(tree, "x8").ToArray(); 8241var x9Decl = GetPatternDeclarations(tree, "x9").ToArray(); 8242var x9Ref = GetReferences(tree, "x9").ToArray(); 8250var y10Ref = GetReferences(tree, "y10").ToArray(); 8258var x14Decl = GetPatternDeclarations(tree, "x14").ToArray(); 8259var x14Ref = GetReferences(tree, "x14").ToArray(); 8444var x1Ref = GetReferences(tree, "x1").ToArray(); 8449var x2Ref = GetReferences(tree, "x2").ToArray(); 8454var x4Ref = GetReferences(tree, "x4").ToArray(); 8460var x6Ref = GetReferences(tree, "x6").ToArray(); 8465var x7Ref = GetReferences(tree, "x7").ToArray(); 8471var x8Ref = GetReferences(tree, "x8").ToArray(); 8476var x9Decl = GetPatternDeclarations(tree, "x9").ToArray(); 8477var x9Ref = GetReferences(tree, "x9").ToArray(); 8483var y10Ref = GetReferences(tree, "y10").ToArray(); 8491var x14Decl = GetPatternDeclarations(tree, "x14").ToArray(); 8492var x14Ref = GetReferences(tree, "x14").ToArray(); 8676var x1Ref = GetReferences(tree, "x1").ToArray(); 8681var x2Ref = GetReferences(tree, "x2").ToArray(); 8686var x4Ref = GetReferences(tree, "x4").ToArray(); 8692var x6Ref = GetReferences(tree, "x6").ToArray(); 8697var x7Ref = GetReferences(tree, "x7").ToArray(); 8703var x8Ref = GetReferences(tree, "x8").ToArray(); 8708var x9Decl = GetPatternDeclarations(tree, "x9").ToArray(); 8709var x9Ref = GetReferences(tree, "x9").ToArray(); 8715var y10Ref = GetReferences(tree, "y10").ToArray(); 8723var x14Decl = GetPatternDeclarations(tree, "x14").ToArray(); 8724var x14Ref = GetReferences(tree, "x14").ToArray(); 9022var x8Decl = GetPatternDeclarations(tree, "x8").ToArray(); 9023var x8Ref = GetReferences(tree, "x8").ToArray(); 9031var x9Decl = GetPatternDeclarations(tree, "x9").ToArray(); 9032var x9Ref = GetReferences(tree, "x9").ToArray(); 9039var x10Decl = GetPatternDeclarations(tree, "x10").ToArray(); 9040var x10Ref = GetReferences(tree, "x10").ToArray(); 9048var x11Decl = GetPatternDeclarations(tree, "x11").ToArray(); 9049var x11Ref = GetReferences(tree, "x11").ToArray(); 9057var x12Decl = GetPatternDeclarations(tree, "x12").ToArray(); 9058var x12Ref = GetReferences(tree, "x12").ToArray(); 9065var x13Decl = GetPatternDeclarations(tree, "x13").ToArray(); 9066var x13Ref = GetReferences(tree, "x13").ToArray(); 9074var x14Decl = GetPatternDeclarations(tree, "x14").ToArray(); 9075var x14Ref = GetReferences(tree, "x14").ToArray(); 9084var x15Ref = GetReferences(tree, "x15").ToArray(); 9135var x1Ref = GetReferences(tree, "x1").ToArray(); 9139var x2Decl = GetPatternDeclarations(tree, "x2").ToArray(); 9140var x2Ref = GetReferences(tree, "x2").ToArray(); 9307var x1Ref = GetReferences(tree, "x1").ToArray(); 9312var x2Ref = GetReferences(tree, "x2").ToArray(); 9317var x4Ref = GetReferences(tree, "x4").ToArray(); 9323var x6Ref = GetReferences(tree, "x6").ToArray(); 9328var x7Ref = GetReferences(tree, "x7").ToArray(); 9334var x8Ref = GetReferences(tree, "x8").ToArray(); 9339var x9Decl = GetPatternDeclarations(tree, "x9").ToArray(); 9340var x9Ref = GetReferences(tree, "x9").ToArray(); 9346var y10Ref = GetReferences(tree, "y10").ToArray(); 9354var x14Decl = GetPatternDeclarations(tree, "x14").ToArray(); 9355var x14Ref = GetReferences(tree, "x14").ToArray(); 9362var x15Ref = GetReferences(tree, "x15").ToArray(); 9516var x1Ref = GetReferences(tree, "x1").ToArray(); 9521var x2Ref = GetReferences(tree, "x2").ToArray(); 9526var x4Ref = GetReferences(tree, "x4").ToArray(); 9534var x6Ref = GetReferences(tree, "x6").ToArray(); 9539var x7Ref = GetReferences(tree, "x7").ToArray(); 9545var x8Ref = GetReferences(tree, "x8").ToArray(); 9549var x9Decl = GetPatternDeclarations(tree, "x9").ToArray(); 9550var x9Ref = GetReferences(tree, "x9").ToArray(); 9556var y10Ref = GetReferences(tree, "y10").ToArray(); 9564var x14Decl = GetPatternDeclarations(tree, "x14").ToArray(); 9565var x14Ref = GetReferences(tree, "x14").ToArray(); 9648var x1Ref = GetReferences(tree, "x1").ToArray(); 9802var x1Ref = GetReferences(tree, "x1").ToArray(); 9807var x2Ref = GetReferences(tree, "x2").ToArray(); 9812var x4Ref = GetReferences(tree, "x4").ToArray(); 9818var x6Ref = GetReferences(tree, "x6").ToArray(); 9823var x7Ref = GetReferences(tree, "x7").ToArray(); 9829var x8Ref = GetReferences(tree, "x8").ToArray(); 9834var x9Decl = GetPatternDeclarations(tree, "x9").ToArray(); 9835var x9Ref = GetReferences(tree, "x9").ToArray(); 9841var y10Ref = GetReferences(tree, "y10").ToArray(); 9849var x14Decl = GetPatternDeclarations(tree, "x14").ToArray(); 9850var x14Ref = GetReferences(tree, "x14").ToArray(); 9931var x1Ref = GetReferences(tree, "x1").ToArray(); 9938var x2Ref = GetReferences(tree, "x2").ToArray(); 9943var x3Ref = GetReferences(tree, "x3").ToArray(); 9949var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 9950var x4Ref = GetReferences(tree, "x4").ToArray(); 10078var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 10079var x1Ref = GetReferences(tree, "x1").ToArray(); 10095var x4Ref = GetReferences(tree, "x4").ToArray(); 10102var x5Ref = GetReferences(tree, "x5").ToArray(); 10106var x8Decl = GetPatternDeclarations(tree, "x8").ToArray(); 10107var x8Ref = GetReferences(tree, "x8").ToArray(); 10121var x11Ref = GetReferences(tree, "x11").ToArray(); 10126var x12Ref = GetReferences(tree, "x12").ToArray(); 10211var x1Ref = GetReferences(tree, "x1").ToArray(); 10369var x1Ref = GetReferences(tree, "x1").ToArray(); 10374var x4Ref = GetReferences(tree, "x4").ToArray(); 10380var x6Ref = GetReferences(tree, "x6").ToArray(); 10385var x7Ref = GetReferences(tree, "x7").ToArray(); 10391var x8Ref = GetReferences(tree, "x8").ToArray(); 10396var x9Decl = GetPatternDeclarations(tree, "x9").ToArray(); 10397var x9Ref = GetReferences(tree, "x9").ToArray(); 10403var y10Ref = GetReferences(tree, "y10").ToArray(); 10408var x14Decl = GetPatternDeclarations(tree, "x14").ToArray(); 10409var x14Ref = GetReferences(tree, "x14").ToArray(); 10416var x15Ref = GetReferences(tree, "x15").ToArray(); 10589var x1Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x1").ToArray(); 10590var x1Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x1").ToArray(); 10606var x4Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x4").ToArray(); 10613var x5Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x5").ToArray(); 10617var x8Decl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(p => p.Identifier.ValueText == "x8").ToArray(); 10618var x8Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x8").ToArray(); 10636var x11Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x11").ToArray(); 10641var x12Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x12").ToArray(); 10727var x1Ref = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x1").ToArray(); 11002var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 11003var x1Ref = GetReferences(tree, "x1").ToArray(); 11012var x2Ref = GetReferences(tree, "x2").ToArray(); 11017var x3Ref = GetReferences(tree, "x3").ToArray(); 11022var x4Ref = GetReferences(tree, "x4").ToArray(); 11029var x5Ref = GetReferences(tree, "x5").ToArray(); 11034var x8Decl = GetPatternDeclarations(tree, "x8").ToArray(); 11035var x8Ref = GetReferences(tree, "x8").ToArray(); 11045var x9Ref = GetReferences(tree, "x9").ToArray(); 11054var x11Ref = GetReferences(tree, "x11").ToArray(); 11062var x12Ref = GetReferences(tree, "x12").ToArray(); 11069var x13Decl = GetPatternDeclarations(tree, "x13").ToArray(); 11070var x13Ref = GetReferences(tree, "x13").ToArray(); 11076var x14Decl = GetPatternDeclarations(tree, "x14").ToArray(); 11077var x14Ref = GetReferences(tree, "x14").ToArray(); 11083var x15Decl = GetPatternDeclarations(tree, "x15").ToArray(); 11084var x15Ref = GetReferences(tree, "x15").ToArray(); 11813var x4Ref = GetReferences(tree, "x4").ToArray(); 11826var x8Ref = GetReferences(tree, "x8").ToArray(); 11831var x14Decl = GetPatternDeclarations(tree, "x14").ToArray(); 11905var x1Ref = GetReferences(tree, "x1").ToArray(); 11913var x2Ref = GetReferences(tree, "x2").ToArray(); 11921var x3Ref = GetReferences(tree, "x3").ToArray(); 11994var x1Ref = GetReferences(tree, "x1").ToArray(); 11999var x2Decl = GetPatternDeclarations(tree, "x2").ToArray(); 12000var x2Ref = GetReferences(tree, "x2").ToArray(); 12008var x3Ref = GetReferences(tree, "x3").ToArray(); 12014var x4Ref = GetReferences(tree, "x4").ToArray(); 12092var x1Ref = GetReferences(tree, "x1").ToArray(); 12097var x2Decl = GetPatternDeclarations(tree, "x2").ToArray(); 12098var x2Ref = GetReferences(tree, "x2").ToArray(); 12106var x3Ref = GetReferences(tree, "x3").ToArray(); 12112var x4Ref = GetReferences(tree, "x4").ToArray(); 12152var x1Ref = GetReferences(tree, "x1").ToArray(); 12205var x1Ref = GetReferences(tree, "x1").ToArray(); 12478var x1Ref = GetReferences(tree, "x1").ToArray(); 12484var x2Ref = GetReferences(tree, "x2").ToArray(); 12490var x4Ref = GetReferences(tree, "x4").ToArray(); 12497var x6Ref = GetReferences(tree, "x6").ToArray(); 12503var x7Ref = GetReferences(tree, "x7").ToArray(); 12510var x8Ref = GetReferences(tree, "x8").ToArray(); 12516var x9Decl = GetPatternDeclarations(tree, "x9").ToArray(); 12517var x9Ref = GetReferences(tree, "x9").ToArray(); 12524var y10Ref = GetReferences(tree, "y10").ToArray(); 12532var x14Decl = GetPatternDeclarations(tree, "x14").ToArray(); 12533var x14Ref = GetReferences(tree, "x14").ToArray(); 12645var x4Ref = GetReferences(tree, "x4").ToArray(); 12657var x8Decl = GetPatternDeclarations(tree, "x8").ToArray(); 12658var x8Ref = GetReferences(tree, "x8").ToArray(); 12668var x9Decl = GetPatternDeclarations(tree, "x9").ToArray(); 12669var x9Ref = GetReferences(tree, "x9").ToArray(); 12836var x1Ref = GetReferences(tree, "x1").ToArray(); 12842var x2Ref = GetReferences(tree, "x2").ToArray(); 12848var x4Ref = GetReferences(tree, "x4").ToArray(); 12855var x6Ref = GetReferences(tree, "x6").ToArray(); 12861var x7Ref = GetReferences(tree, "x7").ToArray(); 12868var x8Ref = GetReferences(tree, "x8").ToArray(); 12874var x9Decl = GetPatternDeclarations(tree, "x9").ToArray(); 12875var x9Ref = GetReferences(tree, "x9").ToArray(); 12887var y10Ref = GetReferences(tree, "y10").ToArray(); 12895var x14Decl = GetPatternDeclarations(tree, "x14").ToArray(); 12896var x14Ref = GetReferences(tree, "x14").ToArray(); 12957var x1Ref = GetReferences(tree, "x1").ToArray(); 12965var x2Ref = GetReferences(tree, "x2").ToArray(); 13049var x1Ref = GetReferences(tree, "x1").ToArray(); 13054var x2Decl = GetPatternDeclarations(tree, "x2").ToArray(); 13055var x2Ref = GetReferences(tree, "x2").ToArray(); 13063var x3Ref = GetReferences(tree, "x3").ToArray(); 13069var x4Ref = GetReferences(tree, "x4").ToArray(); 13231var x1Ref = GetReferences(tree, "x1").ToArray(); 13237var x2Ref = GetReferences(tree, "x2").ToArray(); 13243var x4Ref = GetReferences(tree, "x4").ToArray(); 13250var x6Ref = GetReferences(tree, "x6").ToArray(); 13256var x7Ref = GetReferences(tree, "x7").ToArray(); 13263var x8Ref = GetReferences(tree, "x8").ToArray(); 13269var x9Decl = GetPatternDeclarations(tree, "x9").ToArray(); 13270var x9Ref = GetReferences(tree, "x9").ToArray(); 13277var y10Ref = GetReferences(tree, "y10").ToArray(); 13285var x14Decl = GetPatternDeclarations(tree, "x14").ToArray(); 13286var x14Ref = GetReferences(tree, "x14").ToArray(); 13374var x1Ref = GetReferences(tree, "x1").ToArray(); 13382var x2Ref = GetReferences(tree, "x2").ToArray(); 13388var x3Ref = GetReferences(tree, "x3").ToArray(); 13395var x4Decl = GetPatternDeclarations(tree, "x4").ToArray(); 13396var x4Ref = GetReferences(tree, "x4").ToArray(); 13457var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 13464var x6Decl = GetPatternDeclarations(tree, "x6").ToArray(); 13465var x6Ref = GetReferences(tree, "x6").ToArray(); 13473var x7Ref = GetReferences(tree, "x7").ToArray(); 13545var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 13552var x6Decl = GetPatternDeclarations(tree, "x6").ToArray(); 13553var x6Ref = GetReferences(tree, "x6").ToArray(); 13561var x7Ref = GetReferences(tree, "x7").ToArray(); 13622var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 13629var x6Decl = GetPatternDeclarations(tree, "x6").ToArray(); 13630var x6Ref = GetReferences(tree, "x6").ToArray(); 13638var x7Ref = GetReferences(tree, "x7").ToArray(); 13701var x5Decl = GetPatternDeclarations(tree, "x5").ToArray(); 13708var x6Decl = GetPatternDeclarations(tree, "x6").ToArray(); 13709var x6Ref = GetReferences(tree, "x6").ToArray(); 13717var x7Ref = GetReferences(tree, "x7").ToArray(); 13823var refs = GetReferences(tree, "x1").ToArray(); 14020var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 14021var x1Ref = GetReferences(tree, "x1").ToArray(); 14037var x4Ref = GetReferences(tree, "x4").ToArray(); 14044var x5Ref = GetReferences(tree, "x5").ToArray(); 14048var x6Decl = GetPatternDeclarations(tree, "x6").ToArray(); 14049var x6Ref = GetReferences(tree, "x6").ToArray(); 14067var x9Ref = GetReferences(tree, "x9").ToArray(); 14072var x10Ref = GetReferences(tree, "x10").ToArray(); 14077var x11Ref = GetReferences(tree, "x11").ToArray();
Semantics\PatternMatchingTests2.cs (4)
2251var patterns = tree.GetRoot().DescendantNodesAndSelf().OfType<PatternSyntax>().ToArray(); 2295var patterns = tree.GetRoot().DescendantNodesAndSelf().OfType<PatternSyntax>().ToArray(); 2341var patterns = tree.GetRoot().DescendantNodesAndSelf().OfType<PatternSyntax>().ToArray(); 2881var switches = tree.GetRoot().DescendantNodes().OfType<SwitchExpressionSyntax>().ToArray();
Semantics\PatternMatchingTests3.cs (15)
49var subpatterns = tree.GetRoot().DescendantNodes().OfType<SubpatternSyntax>().ToArray(); 109var subpatterns = tree.GetRoot().DescendantNodes().OfType<SubpatternSyntax>().ToArray(); 160var subpatterns = tree.GetRoot().DescendantNodes().OfType<SubpatternSyntax>().ToArray(); 205var subpatterns = tree.GetRoot().DescendantNodes().OfType<SubpatternSyntax>().ToArray(); 256var subpatterns = tree.GetRoot().DescendantNodes().OfType<SubpatternSyntax>().ToArray(); 299var subpatterns = tree.GetRoot().DescendantNodes().OfType<SubpatternSyntax>().ToArray(); 346var subpatterns = tree.GetRoot().DescendantNodes().OfType<SubpatternSyntax>().ToArray(); 1889var strDecl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(s => s.Identifier.ValueText == "str").ToArray(); 1893var arrDecl = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().Where(s => s.Identifier.ValueText == "arr").ToArray(); 1937var x1Decl = GetPatternDeclarations(tree, "x1").ToArray(); 1938var x1Ref = GetReferences(tree, "x1").ToArray(); 1943var x2Decl = GetPatternDeclarations(tree, "x2").ToArray(); 1944var x2Ref = GetReferences(tree, "x2").ToArray(); 4107var patterns = tree.GetRoot().DescendantNodes().OfType<PatternSyntax>().ToArray(); 4334var patterns = tree.GetRoot().DescendantNodes().OfType<PatternSyntax>().ToArray();
Semantics\PatternMatchingTests4.cs (1)
1010var dpcss = tree.GetRoot().DescendantNodes().OfType<PositionalPatternClauseSyntax>().ToArray();
Semantics\PatternMatchingTests5.cs (4)
1106var subpatterns = tree.GetRoot().DescendantNodes().OfType<SubpatternSyntax>().ToArray(); 1186var subpatterns = tree.GetRoot().DescendantNodes().OfType<SubpatternSyntax>().ToArray(); 1237var subpatterns = tree.GetRoot().DescendantNodes().OfType<SubpatternSyntax>().ToArray(); 1289var subpatterns = tree.GetRoot().DescendantNodes().OfType<SubpatternSyntax>().ToArray();
Semantics\PrimaryConstructorTests.cs (15)
420var parameters = tree.GetRoot().DescendantNodes().OfType<ParameterSyntax>().ToArray(); 1003var xs = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "X").ToArray(); 1295var yRef = OutVarTests.GetReferences(tree, "y").ToArray(); 1422var classDeclarations = tree.GetRoot().DescendantNodes().OfType<ClassDeclarationSyntax>().Skip(1).ToArray(); 1467var xs = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "X").ToArray(); 1483var classDeclarations = tree.GetRoot().DescendantNodes().OfType<ClassDeclarationSyntax>().Skip(1).ToArray(); 1526var xs = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "X").ToArray(); 1551var classDeclarations = tree.GetRoot().DescendantNodes().OfType<ClassDeclarationSyntax>().Skip(1).ToArray(); 1615var xs = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "X").ToArray(); 1640var classDeclarations = tree.GetRoot().DescendantNodes().OfType<ClassDeclarationSyntax>().Skip(1).ToArray(); 2187var xxRef = OutVarTests.GetReferences(speculativePrimaryInitializer.SyntaxTree, "xx").ToArray(); 8756var p1s = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "p1").ToArray(); 9162var p1s = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "p1").ToArray(); 13393).ToArray(); 13486).ToArray();
Semantics\RecordTests.cs (9)
21369var yRef = OutVarTests.GetReferences(tree, "y").ToArray(); 21496var recordDeclarations = tree.GetRoot().DescendantNodes().OfType<RecordDeclarationSyntax>().Skip(1).ToArray(); 21541var xs = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "X").ToArray(); 21557var recordDeclarations = tree.GetRoot().DescendantNodes().OfType<RecordDeclarationSyntax>().Skip(1).ToArray(); 21600var xs = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "X").ToArray(); 21625var recordDeclarations = tree.GetRoot().DescendantNodes().OfType<RecordDeclarationSyntax>().Skip(1).ToArray(); 21689var xs = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "X").ToArray(); 21714var recordDeclarations = tree.GetRoot().DescendantNodes().OfType<RecordDeclarationSyntax>().Skip(1).ToArray(); 22299var xxRef = OutVarTests.GetReferences(speculativePrimaryInitializer.SyntaxTree, "xx").ToArray();
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
EndToEndTests.cs (1)
612var literals = tree.GetRoot().DescendantNodes().OfType<LiteralExpressionSyntax>().ToArray();
Microsoft.CodeAnalysis.CSharp.Features (9)
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (1)
594var nodes = editor.OriginalRoot.DescendantNodes().Where(IsFixableNode).ToArray();
ConvertLinq\ConvertForEachToLinqQuery\CSharpConvertForEachToLinqQueryProvider.cs (4)
64var array = block.Statements.ToArray(); 82statementsCannotBeConverted = array.Skip(i).ToArray(); 189var separators = localDeclarationStatement.Declaration.Variables.GetSeparators().ToArray(); 299.Where(statement => statement.Kind() != SyntaxKind.LocalFunctionStatement).ToArray();
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (2)
3065=> DeclareSameIdentifiers(oldVariables.Select(v => v.Identifier).ToArray(), newVariables.Select(v => v.Identifier).ToArray());
InvertIf\CSharpInvertIfCodeRefactoringProvider.cs (1)
119var statementArray = statements.ToArray();
UsePatternMatching\CSharpIsAndCastCheckWithoutNameDiagnosticAnalyzer.cs (1)
157foreach (var castExpression in matches.ToArray())
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
EditAndContinue\BreakpointSpansTests.cs (1)
79var actualSpans = GetBreakpointSequence(declarationNode, position).ToArray();
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (3)
IOperation\IOperationTests.cs (2)
413var nodes = tree.GetRoot().DescendantNodes().OfType<InvocationExpressionSyntax>().ToArray(); 463var assignments = tree.GetRoot().DescendantNodes().OfType<AssignmentExpressionSyntax>().ToArray();
IOperation\IOperationTests_ISymbolInitializer.cs (1)
33var nodes = tree.GetRoot().DescendantNodes().Where(n => n is VariableDeclarationSyntax || n is PropertyDeclarationSyntax).ToArray();
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
ScriptTests.cs (1)
1082byte[] bytes = Enumerable.Repeat((byte)'Q', text.Length + padding).ToArray();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (262)
Semantics\BetterCandidates.cs (4)
1087var invocations = compilation.SyntaxTrees[0].GetRoot().DescendantNodes().OfType<InvocationExpressionSyntax>().ToArray(); 1164var invocations = compilation.SyntaxTrees[0].GetRoot().DescendantNodes().OfType<InvocationExpressionSyntax>().ToArray(); 1212var invocations = compilation.SyntaxTrees[0].GetRoot().DescendantNodes().OfType<InvocationExpressionSyntax>().ToArray(); 1265var invocations = compilation.SyntaxTrees[0].GetRoot().DescendantNodes().OfType<InvocationExpressionSyntax>().ToArray();
Semantics\BindingAwaitTests.cs (1)
1899var calls = actualIL.Split(new[] { '\n', '\r' }, System.StringSplitOptions.RemoveEmptyEntries).Where(s => s.Contains("OnCompleted")).ToArray();
Semantics\BindingTests.cs (3)
2782.Where(x => x.Identifier.ValueText.Equals("MyMethod")).ToArray(); 3985var ids = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().ToArray(); 4026var ids = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().ToArray();
Semantics\DeconstructionTests.cs (22)
4169var designations = tree.GetCompilationUnitRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().ToArray(); 4237var designations = tree.GetCompilationUnitRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().ToArray(); 4256var declarations = tree.GetCompilationUnitRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().ToArray(); 4372var designations = tree.GetCompilationUnitRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().ToArray(); 4391var declarations = tree.GetCompilationUnitRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().ToArray(); 4515var declarations = tree.GetCompilationUnitRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().ToArray(); 4665var declarations = tree.GetCompilationUnitRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().ToArray(); 4759var declarations = tree.GetCompilationUnitRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().ToArray(); 4837var declarations = tree.GetCompilationUnitRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().ToArray(); 5186var designations = tree.GetCompilationUnitRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().ToArray(); 5205var declarations = tree.GetCompilationUnitRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().ToArray(); 5259var tuples = tree.GetCompilationUnitRoot().DescendantNodes().OfType<TupleExpressionSyntax>().ToArray(); 5330var designations = tree.GetCompilationUnitRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().ToArray(); 5349var declarations = tree.GetCompilationUnitRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().ToArray(); 5403var tuples = tree.GetCompilationUnitRoot().DescendantNodes().OfType<TupleExpressionSyntax>().ToArray(); 5486var declarations = tree.GetCompilationUnitRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().ToArray(); 5546var tuples = tree.GetCompilationUnitRoot().DescendantNodes().OfType<TupleExpressionSyntax>().ToArray(); 5654var designations = tree.GetCompilationUnitRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().ToArray(); 5673var declarations = tree.GetCompilationUnitRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().ToArray(); 5764var designations = tree.GetCompilationUnitRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().ToArray(); 5783var declarations = tree.GetCompilationUnitRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().ToArray(); 5886var declarations = tree.GetCompilationUnitRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().ToArray();
Semantics\DelegateTypeTests.cs (4)
3603var exprs = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().Select(d => d.Initializer!.Value).ToArray(); 11086var variables = nodes.OfType<VariableDeclaratorSyntax>().Where(v => v.Identifier.Text == "d").ToArray(); 11092var identifiers = nodes.OfType<InvocationExpressionSyntax>().Where(i => i.Expression is IdentifierNameSyntax id && id.Identifier.Text == "Report").Select(i => i.ArgumentList.Arguments[0].Expression).ToArray(); 11170var variables = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().Where(v => v.Identifier.Text == "d").ToArray();
Semantics\ExpressionBodiedMemberTests.cs (1)
1021var nodes = tree.GetRoot().DescendantNodes().OfType<LiteralExpressionSyntax>().ToArray();
Semantics\ForEachTests.cs (1)
2181var loopSyntaxes = tree.GetRoot().DescendantNodes().OfType<ForEachStatementSyntax>().ToArray();
Semantics\FunctionPointerTests.cs (11)
978var variableDeclaratorSyntaxes = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 1046var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 1126var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 1271var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 1366var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 1507var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 1564var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 3376var isPatterns = syntaxTree.GetRoot().DescendantNodes().OfType<IsPatternExpressionSyntax>().ToArray(); 3528var binaryExpressions = syntaxTree.GetRoot().DescendantNodes().OfType<BinaryExpressionSyntax>().ToArray(); 3680.ToArray(); 3953.ToArray();
Semantics\GlobalUsingDirectiveTests.cs (35)
3842var ext = tree.GetRoot().DescendantNodes().OfType<ExternAliasDirectiveSyntax>().ToArray(); 3844var aliases = tree.GetRoot().DescendantNodes().OfType<UsingDirectiveSyntax>().ToArray(); 3868ext = tree.GetRoot().DescendantNodes().OfType<ExternAliasDirectiveSyntax>().ToArray(); 3870aliases = tree.GetRoot().DescendantNodes().OfType<UsingDirectiveSyntax>().ToArray(); 3890aliases = tree.GetRoot().DescendantNodes().OfType<UsingDirectiveSyntax>().ToArray(); 3899ext = tree.GetRoot().DescendantNodes().OfType<ExternAliasDirectiveSyntax>().ToArray(); 3901aliases = tree.GetRoot().DescendantNodes().OfType<UsingDirectiveSyntax>().ToArray(); 3918aliases = tree.GetRoot().DescendantNodes().OfType<UsingDirectiveSyntax>().ToArray(); 3932ext = tree.GetRoot().DescendantNodes().OfType<ExternAliasDirectiveSyntax>().ToArray(); 3934aliases = tree.GetRoot().DescendantNodes().OfType<UsingDirectiveSyntax>().ToArray(); 3952ext = tree.GetRoot().DescendantNodes().OfType<ExternAliasDirectiveSyntax>().ToArray(); 3954aliases = tree.GetRoot().DescendantNodes().OfType<UsingDirectiveSyntax>().ToArray(); 3968aliases = tree.GetRoot().DescendantNodes().OfType<UsingDirectiveSyntax>().ToArray(); 3977ext = tree.GetRoot().DescendantNodes().OfType<ExternAliasDirectiveSyntax>().ToArray(); 3979aliases = tree.GetRoot().DescendantNodes().OfType<UsingDirectiveSyntax>().ToArray(); 3990aliases = tree.GetRoot().DescendantNodes().OfType<UsingDirectiveSyntax>().ToArray(); 4004ext = tree.GetRoot().DescendantNodes().OfType<ExternAliasDirectiveSyntax>().ToArray(); 4006aliases = tree.GetRoot().DescendantNodes().OfType<UsingDirectiveSyntax>().ToArray(); 4024ext = tree.GetRoot().DescendantNodes().OfType<ExternAliasDirectiveSyntax>().ToArray(); 4026aliases = tree.GetRoot().DescendantNodes().OfType<UsingDirectiveSyntax>().ToArray(); 4040aliases = tree.GetRoot().DescendantNodes().OfType<UsingDirectiveSyntax>().ToArray(); 4049ext = tree.GetRoot().DescendantNodes().OfType<ExternAliasDirectiveSyntax>().ToArray(); 4051aliases = tree.GetRoot().DescendantNodes().OfType<UsingDirectiveSyntax>().ToArray(); 4062aliases = tree.GetRoot().DescendantNodes().OfType<UsingDirectiveSyntax>().ToArray(); 4076ext = tree.GetRoot().DescendantNodes().OfType<ExternAliasDirectiveSyntax>().ToArray(); 4078aliases = tree.GetRoot().DescendantNodes().OfType<UsingDirectiveSyntax>().ToArray(); 4090ext = tree.GetRoot().DescendantNodes().OfType<ExternAliasDirectiveSyntax>().ToArray(); 4092aliases = tree.GetRoot().DescendantNodes().OfType<UsingDirectiveSyntax>().ToArray(); 4100aliases = tree.GetRoot().DescendantNodes().OfType<UsingDirectiveSyntax>().ToArray(); 4111ext = tree.GetRoot().DescendantNodes().OfType<ExternAliasDirectiveSyntax>().ToArray(); 4113aliases = tree.GetRoot().DescendantNodes().OfType<UsingDirectiveSyntax>().ToArray(); 4133ext = tree.GetRoot().DescendantNodes().OfType<ExternAliasDirectiveSyntax>().ToArray(); 4135aliases = tree.GetRoot().DescendantNodes().OfType<UsingDirectiveSyntax>().ToArray(); 4149ext = tree.GetRoot().DescendantNodes().OfType<ExternAliasDirectiveSyntax>().ToArray(); 4151aliases = tree.GetRoot().DescendantNodes().OfType<UsingDirectiveSyntax>().ToArray();
Semantics\ImplicitObjectCreationTests.cs (9)
56var nodes = tree.GetCompilationUnitRoot().DescendantNodes().OfType<ImplicitObjectCreationExpressionSyntax>().ToArray(); 131var nodes = tree.GetCompilationUnitRoot().DescendantNodes().OfType<ImplicitObjectCreationExpressionSyntax>().ToArray(); 178var nodes = tree.GetCompilationUnitRoot().DescendantNodes().OfType<ImplicitObjectCreationExpressionSyntax>().ToArray(); 228var nodes = tree.GetCompilationUnitRoot().DescendantNodes().OfType<ImplicitObjectCreationExpressionSyntax>().ToArray(); 842var nodes = tree.GetCompilationUnitRoot().DescendantNodes().OfType<ImplicitObjectCreationExpressionSyntax>().ToArray(); 883var nodes = tree.GetCompilationUnitRoot().DescendantNodes().OfType<ImplicitObjectCreationExpressionSyntax>().ToArray(); 1706var nodes = tree.GetCompilationUnitRoot().DescendantNodes().OfType<InvocationExpressionSyntax>().ToArray(); 2125var nodes = tree.GetCompilationUnitRoot().DescendantNodes().OfType<ImplicitObjectCreationExpressionSyntax>().ToArray(); 2922var nodes = tree.GetCompilationUnitRoot().DescendantNodes().OfType<ImplicitObjectCreationExpressionSyntax>().ToArray();
Semantics\ImportsTests.cs (1)
142var trees = sources.Select(source => Parse(source)).ToArray();
Semantics\IndexAndRangeTests.cs (3)
1122var expressions = tree.GetRoot().DescendantNodes().OfType<RangeExpressionSyntax>().ToArray(); 1341var expressions = tree.GetRoot().DescendantNodes().OfType<RangeExpressionSyntax>().ToArray(); 1384var expressions = tree.GetRoot().DescendantNodes().OfType<RangeExpressionSyntax>().ToArray();
Semantics\LambdaDiscardParametersTests.cs (6)
68var underscores = tree.GetRoot().DescendantNodes().OfType<ParameterSyntax>().Where(p => p.Identifier.ToString() == "_").ToArray(); 387var lambdas = exprs.Select(e => (IMethodSymbol)model.GetSymbolInfo(e).Symbol).ToArray(); 417var underscoreParameters = tree.GetRoot().DescendantNodes().OfType<ParameterSyntax>().Where(p => p.ToString() == "_").ToArray(); 448var underscores = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(p => p.ToString() == "_").ToArray(); 513var underscores = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(p => p.ToString() == "_").ToArray(); 566var underscoreParameters = tree.GetRoot().DescendantNodes().OfType<ParameterSyntax>().Where(p => p.ToString() == "_").ToArray();
Semantics\LambdaTests.cs (4)
2662var lambdas = tree.GetRoot().DescendantNodes().OfType<ParenthesizedLambdaExpressionSyntax>().ToArray(); 3613var pairs = exprs.Select(e => (e, model.GetSymbolInfo(e).Symbol)).ToArray(); 6512.ToArray(); 7108var lambdas = root.DescendantNodes().OfType<LambdaExpressionSyntax>().ToArray();
Semantics\LocalFunctionTests.cs (5)
3735baseExpected.Concat(extra).ToArray()); 4694var refs = descendents.OfType<IdentifierNameSyntax>().Where(n => n.Identifier.ValueText == name).ToArray(); 4735var refs = descendents.OfType<IdentifierNameSyntax>().Where(n => n.Identifier.ValueText == name).ToArray(); 7642.ToArray(); 8687.ToArray();
Semantics\LookupPositionTests.cs (7)
1216}.Concat(s_commonDelegateTypeMembers).ToArray(); 1222}.Concat(s_commonDelegateTypeMembers).ToArray(); 1228}.Concat(s_commonDelegateTypeMembers).ToArray(); 1234}.Concat(s_commonDelegateTypeMembers).ToArray(); 1238}.Concat(s_commonEnumTypeMembers).ToArray(); 3166string[] curr = prev.Concat(added).ToArray(); 3177string[] curr = prev.Where(x => !removed.Contains(x)).ToArray();
Semantics\LookupTests.cs (1)
1725var syntaxes = tree.GetRoot().DescendantNodes().OfType<MemberAccessExpressionSyntax>().ToArray();
Semantics\NativeIntegerTests.cs (2)
3634var nodes = tree.GetRoot().DescendantNodes().ToArray(); 4118var nodes = tree.GetRoot().DescendantNodes().OfType<ObjectCreationExpressionSyntax>().ToArray();
Semantics\NullableContextTests.cs (7)
731var methodDeclarations = tree.GetRoot().DescendantNodes().OfType<MethodDeclarationSyntax>().ToArray(); 1771var returnStatements = syntaxTree.GetRoot().DescendantNodes().OfType<ReturnStatementSyntax>().ToArray(); 1878var attributeArguments = syntaxTree.GetRoot().DescendantNodes().OfType<AttributeArgumentSyntax>().ToArray(); 1927var attributeArguments = syntaxTree.GetRoot().DescendantNodes().OfType<AttributeArgumentSyntax>().ToArray(); 1969var equalsValueClauses = syntaxTree.GetRoot().DescendantNodes().OfType<EqualsValueClauseSyntax>().ToArray(); 2009var declarations = syntaxTree.GetRoot().DescendantNodes().OfType<FieldDeclarationSyntax>().Select(f => f.Declaration.Variables[0]).ToArray(); 2048var declarations = syntaxTree.GetRoot().DescendantNodes().OfType<PropertyDeclarationSyntax>().ToArray();
Semantics\NullableReferenceTypesTests.cs (25)
1867var suppressions = tree.GetRoot().DescendantNodes().OfType<PostfixUnaryExpressionSyntax>().ToArray(); 1892var suppressions = tree.GetRoot().DescendantNodes().OfType<PostfixUnaryExpressionSyntax>().ToArray(); 10534var foreachSyntax = tree.GetRoot().DescendantNodes().OfType<ForEachStatementSyntax>().ToArray(); 59356var declarators = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 71252var declarators = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 71288var declarators = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 71329var declarators = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 71366var declarators = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 71403var declarators = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 71438var declarators = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 71471var declarators = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 71508var declarators = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 71780var discards = tree.GetRoot().DescendantNodes().OfType<AssignmentExpressionSyntax>().Select(a => a.Left).ToArray(); 71960var discardPatterns = tree.GetRoot().DescendantNodes().OfType<DiscardPatternSyntax>().ToArray(); 97757var localSyntaxes = tree.GetRoot().DescendantNodes().OfType<LocalFunctionStatementSyntax>().ToArray(); 97853}).ToArray() 99086var localSyntaxes = tree.GetRoot().DescendantNodes().OfType<LocalFunctionStatementSyntax>().ToArray(); 99139}).ToArray() 100434}).ToArray() 113192var arrays = tree.GetRoot().DescendantNodes().OfType<ArrayTypeSyntax>().ToArray(); 154801var locals = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 154869var locals = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 155997var identifiers = tree.GetRoot().DescendantNodes().Where(n => n.ToString() == "global::Program").ToArray(); 157581var declarators = tree.GetRoot().DescendantNodes().OfType<EqualsValueClauseSyntax>().ToArray(); 157631var invocations = tree.GetRoot().DescendantNodes().OfType<InvocationExpressionSyntax>().ToArray();
Semantics\ObjectAndCollectionInitializerTests.cs (4)
3814var literals = syntax.GetRoot().DescendantNodes().OfType<LiteralExpressionSyntax>().ToArray(); 3837var literals = syntax.GetRoot().DescendantNodes().OfType<LiteralExpressionSyntax>().ToArray(); 3861var literals = syntax.GetRoot().DescendantNodes().OfType<LiteralExpressionSyntax>().ToArray(); 4017var nodes = tree.GetRoot().DescendantNodes().OfType<GenericNameSyntax>().ToArray();
Semantics\OperatorTests.cs (20)
47var orNodes = tree.GetRoot().DescendantNodes().OfType<BinaryExpressionSyntax>().ToArray(); 3209.ToArray()); 3215.ToArray()); 7490Where(node => (object)node != null).ToArray(); 7706Where(node => (object)node != null).ToArray(); 7710var symbols1 = (from node1 in nodes select (IMethodSymbol)semanticModel.GetSymbolInfo(node1).Symbol).ToArray(); 7719var symbols2 = (from node2 in nodes select (IMethodSymbol)semanticModel.GetSymbolInfo(node2).Symbol).ToArray(); 7875Where(node => (object)node != null).ToArray(); 8035Where(node => (object)node != null).ToArray(); 8556Where(node => (object)node != null).ToArray(); 8589var nodes = tree.GetRoot().DescendantNodes().Where(node => node is BinaryExpressionSyntax || node is AssignmentExpressionSyntax).ToArray(); 8593var symbols1 = (from node1 in nodes select (IMethodSymbol)semanticModel.GetSymbolInfo(node1).Symbol).ToArray(); 8602var symbols2 = (from node2 in nodes select (IMethodSymbol)semanticModel.GetSymbolInfo(node2).Symbol).ToArray(); 8635Where(node => (object)node != null).ToArray(); 8639var symbols1 = (from node1 in nodes select (IMethodSymbol)semanticModel.GetSymbolInfo(node1).Symbol).ToArray(); 8650var symbols2 = (from node2 in nodes select (IMethodSymbol)semanticModel.GetSymbolInfo(node2).Symbol).ToArray(); 8685Where(node => node is not null).ToArray(); 8689var symbols1 = (from node1 in nodes select (IMethodSymbol)semanticModel.GetSymbolInfo(node1).Symbol).ToArray(); 8700var symbols2 = (from node2 in nodes select (IMethodSymbol)semanticModel.GetSymbolInfo(node2).Symbol).ToArray(); 8759Where(node => (object)node != null).ToArray();
Semantics\OverloadResolutionTestBase.cs (1)
51.ToArray());
Semantics\RefFieldTests.cs (50)
11025var decls = tree.GetRoot().DescendantNodes().OfType<LocalFunctionStatementSyntax>().ToArray(); 11099var delegateTypesAndLambdas = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().Select(d => getDelegateTypeAndLambda(model, d)).ToArray(); 11221var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 12061var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 12130var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 12198var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 12382Select(d => d.Designation).ToArray(); 12419var discard = tree.GetRoot().DescendantNodes().OfType<DiscardDesignationSyntax>().ToArray(); 12569Select(d => d.Designation).ToArray(); 12599var discard = tree.GetRoot().DescendantNodes().OfType<DiscardDesignationSyntax>().ToArray(); 12793var decls = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().ToArray(); 12830var discard = tree.GetRoot().DescendantNodes().OfType<DiscardDesignationSyntax>().ToArray(); 12976var decls = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().ToArray(); 13006var discard = tree.GetRoot().DescendantNodes().OfType<DiscardDesignationSyntax>().ToArray(); 13151var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 13206var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 13265var decls = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().ToArray(); 13308var decls = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().ToArray(); 13337var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 13362var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 13382var decls = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().ToArray(); 13404var decls = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().ToArray(); 13439var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 13503var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 13579var decls = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().ToArray(); 13650var decls = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().ToArray(); 13714var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 14355var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 14397var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 14522var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 14598var decls = tree.GetRoot().DescendantNodes().OfType<ForEachStatementSyntax>().ToArray(); 14843var decls = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().ToArray(); 14874var discard = tree.GetRoot().DescendantNodes().OfType<DiscardDesignationSyntax>().ToArray(); 15051var decls = tree.GetRoot().DescendantNodes().OfType<ForEachStatementSyntax>().ToArray(); 15077var decls = tree.GetRoot().DescendantNodes().OfType<ForEachStatementSyntax>().ToArray(); 15132var decls = tree.GetRoot().DescendantNodes().OfType<ForEachStatementSyntax>().ToArray(); 16550var invocations = tree.GetRoot().DescendantNodes().OfType<InvocationExpressionSyntax>().ToArray(); 16726var lambdas = tree.GetRoot().DescendantNodes().OfType<ParenthesizedLambdaExpressionSyntax>().ToArray(); 17946var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().Where(v => v.Identifier.Text == "f").ToArray(); 22831var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().Where(v => v.Identifier.Text is "r1" or "r2").ToArray(); 22899var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().Where(v => v.Identifier.Text is "r1" or "r2").ToArray(); 24741var delegateTypesAndLambdas = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().Select(d => getDelegateTypeAndLambda(model, d)).ToArray(); 27047var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 27137var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 27257var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 27358var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 27403var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 27463var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 27693var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 27741var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray();
Semantics\RefLocalsAndReturnsTests.cs (3)
5210var decls = tree.GetRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().ToArray(); 5254var decls = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().ToArray(); 5293var decls = tree.GetRoot().DescendantNodes().OfType<SingleVariableDesignationSyntax>().ToArray();
Semantics\ScriptSemanticsTests.cs (2)
522var statements = root.ChildNodes().Select(n => ((GlobalStatementSyntax)n).Statement).ToArray(); 538var declarations = root.ChildNodes().Select(n => ((FieldDeclarationSyntax)n).Declaration.Variables[0]).ToArray();
Semantics\StackAllocInitializerTests.cs (6)
367var expressions = tree.GetCompilationUnitRoot().DescendantNodes().OfType<ImplicitStackAllocArrayCreationExpressionSyntax>().ToArray(); 443var expressions = tree.GetCompilationUnitRoot().DescendantNodes().OfType<ImplicitStackAllocArrayCreationExpressionSyntax>().ToArray(); 2359var expressions = tree.GetCompilationUnitRoot().DescendantNodes().OfType<StackAllocArrayCreationExpressionSyntax>().ToArray(); 2465var expressions = tree.GetCompilationUnitRoot().DescendantNodes().OfType<ImplicitStackAllocArrayCreationExpressionSyntax>().ToArray(); 2565var expressions = tree.GetCompilationUnitRoot().DescendantNodes().OfType<StackAllocArrayCreationExpressionSyntax>().ToArray(); 2649var expressions = tree.GetCompilationUnitRoot().DescendantNodes().OfType<ImplicitStackAllocArrayCreationExpressionSyntax>().ToArray();
Semantics\TargetTypedDefaultTests.cs (2)
3673var defaultLiterals = nodes.OfType<LiteralExpressionSyntax>().ToArray(); 3713var parameters = nodes.OfType<ParameterSyntax>().ToArray();
Semantics\TopLevelStatementsTests.cs (12)
540var localRefs = tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "i").ToArray(); 1706var nameRefs = tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "Test").ToArray(); 1882var nameRefs = tree2.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "Test").ToArray(); 2100var nameRefs = tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "Test").ToArray(); 2266var nameRefs = tree2.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "Test").ToArray(); 2446var nameRefs = tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "Test").ToArray(); 3941var nameRefs = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "args").ToArray(); 4090var nameRefs = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "args").ToArray(); 6034var localRefs = tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "i").ToArray(); 8578var invocations = tree.GetRoot().DescendantNodes().OfType<InvocationExpressionSyntax>().ToArray(); 8799var nodes1 = tree.GetRoot().DescendantNodesAndTokensAndSelf(descendIntoTrivia: true).ToArray(); 8800var nodes2 = fullParseTree.GetRoot().DescendantNodesAndTokensAndSelf(descendIntoTrivia: true).ToArray();
Semantics\UnsafeTests.cs (9)
10177var declarators = tree.GetCompilationUnitRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().Reverse().Take(3).Reverse().ToArray(); 10178var declaredSymbols = declarators.Select(syntax => (ILocalSymbol)model.GetDeclaredSymbol(syntax)).ToArray(); 10223var declarators = tree.GetCompilationUnitRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().Reverse().Take(numSymbols).Reverse().ToArray(); 10224var dereferences = tree.GetCompilationUnitRoot().DescendantNodes().Where(syntax => syntax.IsKind(SyntaxKind.PointerIndirectionExpression)).ToArray(); 10227var declaredSymbols = declarators.Select(syntax => (ILocalSymbol)model.GetDeclaredSymbol(syntax)).ToArray(); 10229var initializerSummaries = declarators.Select(syntax => model.GetSemanticInfoSummary(syntax.Initializer.Value)).ToArray(); 10255var accessSymbolInfos = dereferences.Select(syntax => model.GetSymbolInfo(((PrefixUnaryExpressionSyntax)syntax).Operand)).ToArray(); 10297var declarators = tree.GetCompilationUnitRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().Reverse().Take(numSymbols).Reverse().ToArray(); 10298var initializerSummaries = declarators.Select(syntax => model.GetSemanticInfoSummary(syntax.Initializer.Value)).ToArray();
SourceGeneration\GeneratorDriverTests.cs (1)
535var filePaths = outputCompilation.SyntaxTrees.Skip(1).Select(t => t.FilePath).ToArray();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (136)
Compilation\GetSemanticInfoTests.cs (2)
4589var memberAccesses = tree.GetRoot().DescendantNodes().OfType<MemberAccessExpressionSyntax>().ToArray(); 6045var typeParameters = tree.GetRoot().DescendantNodes().OfType<TypeParameterSyntax>().ToArray();
Compilation\ReferenceManagerTests.cs (1)
946var mods = compilation.Assembly.Modules.ToArray();
Compilation\SemanticModelAPITests.cs (10)
404var nsArray = tree.GetCompilationUnitRoot().DescendantNodes().Where(node => node.IsKind(SyntaxKind.NamespaceDeclaration)).ToArray(); 425var nsArray = tree.GetCompilationUnitRoot().DescendantNodes().Where(node => node.IsKind(SyntaxKind.FileScopedNamespaceDeclaration)).ToArray(); 925var exprs = root.DescendantNodes().OfType<LiteralExpressionSyntax>().ToArray(); 4107var actual = tree.GetRoot().DescendantNodes().OfType<InterpolatedStringExpressionSyntax>().ToArray(); 4144var actual = tree.GetRoot().DescendantNodes().OfType<InterpolatedStringExpressionSyntax>().ToArray(); 4187var actual = tree.GetRoot().DescendantNodes().OfType<InterpolatedStringExpressionSyntax>().ToArray(); 4211var actual = tree.GetRoot().DescendantNodes().OfType<LiteralExpressionSyntax>().ToArray(); 4239var actual = tree.GetRoot().DescendantNodes().OfType<LiteralExpressionSyntax>().ToArray(); 4277var actual = tree.GetRoot().DescendantNodes().OfType<InterpolatedStringExpressionSyntax>().ToArray(); 4625var nodes = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(ident => ident.Identifier.Text == "global").ToArray();
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (10)
3922var usingDirectives = tree.GetCompilationUnitRoot().DescendantNodes().OfType<UsingDirectiveSyntax>().ToArray(); 5222var decls = tree.GetCompilationUnitRoot().DescendantNodes().OfType<ParameterSyntax>().ToArray(); 5243var decls = tree.GetCompilationUnitRoot().DescendantNodes().OfType<ParameterSyntax>().ToArray(); 5264var decls = tree.GetCompilationUnitRoot().DescendantNodes().OfType<ParameterSyntax>().ToArray(); 5308.ToArray(); 5403.ToArray(); 5451.ToArray(); 5494.ToArray(); 5589.ToArray(); 5637.ToArray();
Compilation\SemanticModelGetSemanticInfoTests.cs (5)
14791Where(node => (object)node != null).ToArray(); 14887Where(node => (object)node != null).ToArray(); 14998Where(node => (object)node != null).ToArray(); 15121var sortedCandidates = semanticInfo.CandidateSymbols.AsEnumerable().OrderBy(s => s.ToDisplayString(), StringComparer.Ordinal).ToArray(); 15128var sortedMethodGroup = semanticInfo.MethodGroup.AsEnumerable().OrderBy(s => s.ToDisplayString(), StringComparer.Ordinal).ToArray();
DocumentationComments\CrefTests.cs (12)
3047var actualParameterTypes = nameMemberSyntax.Parameters.Parameters.Select(syntax => model.GetSymbolInfo(syntax.Type).Symbol).ToArray(); 4701var symbols = crefSyntaxes.Select(cref => model.GetSymbolInfo(cref).Symbol).ToArray(); 4757var symbols = crefSyntaxes.Select(cref => model.GetSymbolInfo(cref).Symbol).ToArray(); 4978var crefs = GetCrefSyntaxes(compilation).ToArray(); 5010var crefs = GetCrefSyntaxes(compilation).ToArray(); 5139var crefs = GetCrefSyntaxes(compilation).ToArray(); 5241var crefs = GetCrefSyntaxes(compilation).ToArray(); 5401var crefSyntaxes = GetCrefSyntaxes(compilation).ToArray(); 5793var crefs = GetCrefSyntaxes(compilation).ToArray(); 6497var crefs = GetCrefSyntaxes(compilation).ToArray(); 6532var crefs = GetCrefSyntaxes(compilation).ToArray(); 6647return crefs.Select(syntax => model.GetSymbolInfo(syntax).Symbol).Select(symbol => (object)symbol == null ? null : symbol.OriginalDefinition).ToArray();
DocumentationComments\DocumentationCommentCompilerTests.cs (1)
4656string[] includeElements = Enumerable.Range(0, 4).Select(i => string.Format(includeElementTemplate, xmlFilePath, i)).ToArray();
DocumentationComments\DocumentationModeTests.cs (2)
354var comp = CreateCompilation(trees.ToArray(), assemblyName: "Test"); 384trees.ToArray(),
DocumentationComments\ParameterTests.cs (3)
691var nameSyntaxes = GetNameAttributeValues(compilation).ToArray(); 741var names = GetNameAttributeValues(compilation).ToArray(); 788var names = GetNameAttributeValues(compilation).ToArray();
SymbolDisplay\SymbolDisplayTests.cs (5)
7039var declarations = semanticModel.SyntaxTree.GetRoot().DescendantNodes().Where(n => n.Kind() == SyntaxKind.StructDeclaration).Cast<BaseTypeDeclarationSyntax>().ToArray(); 7077var declarations = semanticModel.SyntaxTree.GetRoot().DescendantNodes().Where(n => n.Kind() == SyntaxKind.StructDeclaration).Cast<BaseTypeDeclarationSyntax>().ToArray(); 7115var declarations = semanticModel.SyntaxTree.GetRoot().DescendantNodes().Where(n => n.Kind() == SyntaxKind.StructDeclaration).Cast<BaseTypeDeclarationSyntax>().ToArray(); 8875var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 8876var locals = decls.Select(d => model.GetDeclaredSymbol(d)).ToArray();
Symbols\AnonymousTypesSemanticsTests.cs (1)
1406var properties = (from m in info0.Type.GetMembers() where m.Kind == SymbolKind.Property select m).ToArray();
Symbols\AnonymousTypesSymbolTests.cs (1)
257var args = attrs[0].ConstructorArguments.ToArray();
Symbols\CompilationCreationTests.cs (3)
55var types = expectedSyntaxTrees.Select(tree => compilation.GetSemanticModel(tree).GetDeclaredSymbol(tree.GetCompilationUnitRoot().Members.Single())).ToArray(); 2902CheckCompilationSyntaxTrees(compilation2, treeList1.Concat(treeList2).ToArray()); 2911CheckCompilationSyntaxTrees(compilation4, treeList3.Concat(treeList4).ToArray());
Symbols\CovariantReturnTests.cs (26)
404references = references?.Prepend(CorelibraryWithCovariantReturnSupport1).ToArray() ?? new[] { CorelibraryWithCovariantReturnSupport1 }; 423references = references?.Prepend(CorelibraryWithoutCovariantReturnSupport1).ToArray() ?? new[] { CorelibraryWithoutCovariantReturnSupport1 }; 464references = references.Prepend(coreLibrary).ToArray(); 486references = references.Prepend(coreLibrary).ToArray(); 508references = references.Prepend(alternateCorlib).ToArray(); 3838).ToArray(); 3847).ToArray(); 3858).ToArray(); 3961).ToArray(); 3970).ToArray(); 3981).ToArray(); 4081).ToArray(); 4090).ToArray(); 4101).ToArray(); 4196).ToArray(); 4205).ToArray(); 4216).ToArray(); 4315).ToArray(); 4324).ToArray(); 4424).ToArray(); 4439).ToArray(); 4458).ToArray(); 4467).ToArray(); 4480).ToArray(); 4488).ToArray(); 4523).ToArray();
Symbols\ExtensionMethodTests.cs (1)
3784var symbols = model.LookupSymbols(member.Expression.EndPosition, type, includeReducedExtensionMethods: true).Select(s => s.Name).ToArray();
Symbols\FunctionPointerTypeSymbolTests.cs (12)
128.ToArray(); 208.ToArray(); 339var functionPointers = syntaxTree.GetRoot().DescendantNodes().OfType<FunctionPointerTypeSyntax>().ToArray(); 409.ToArray(); 489.ToArray(); 606.ToArray(); 1430.ToArray(); 1796var methodDecls = syntaxTree.GetRoot().DescendantNodes().OfType<MethodDeclarationSyntax>().ToArray(); 1800.ToArray(); 1820var decls = m2DeclSyntax.DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray(); 1841var invocations = m2DeclSyntax.DescendantNodes().OfType<InvocationExpressionSyntax>().ToArray(); 1926var decls = syntaxTree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().ToArray();
Symbols\IndexerTests.cs (2)
200CheckParameters(setter.Parameters, expectedParameterTypes.Concat(new[] { expectedType }).ToArray()); 2719var receiverSyntaxes = elementAccessSyntaxes.Select(access => access.Expression).ToArray();
Symbols\LocalFunctionTests.cs (1)
100var localsSyntax = tree.GetCompilationUnitRoot().DescendantNodes().OfType<LocalFunctionStatementSyntax>().ToArray();
Symbols\MethodEqualityTests.cs (1)
218}).ToArray();
Symbols\MissingSpecialMember.cs (2)
596}.Concat(WinRtRefs).ToArray(); 937}.Concat(WinRtRefs).ToArray();
Symbols\Source\EnumTests.cs (1)
979var decls = tree.GetCompilationUnitRoot().DescendantNodes().OfType<EnumDeclarationSyntax>().ToArray();
Symbols\Source\ExternAliasTests.cs (2)
402var comp3 = CreateCompilation(Enumerable.Range(1, numFiles).Select(x => "extern alias X;").ToArray(), new[] { ref1, ref2 }, assemblyName: "A3.dll"); 428var comp3 = CreateCompilation(Enumerable.Range(1, numFiles).Select(x => "extern alias X;").ToArray(), assemblyName: "A3.dll");
Symbols\Source\MethodTests.cs (2)
2540var methods = syntax.GetRoot().DescendantNodes().OfType<MethodDeclarationSyntax>().ToArray(); 2572var methods = syntax.GetRoot().DescendantNodes().OfType<MethodDeclarationSyntax>().ToArray();
Symbols\Source\NullablePublicAPITests.cs (24)
147return c.GetMembers().OfType<IFieldSymbol>().ToArray(); 214return c.GetMembers().OfType<IPropertySymbol>().ToArray(); 288return c.GetMembers().OfType<IMethodSymbol>().Where(m => m.Name.StartsWith("M")).ToArray(); 480var members = c.GetMembers().OfType<IMethodSymbol>().Where(m => m.Name.StartsWith("M")).ToArray(); 488members = e.GetMembers().OfType<IMethodSymbol>().Where(m => m.Name.StartsWith("M")).Select(m => m.ReduceExtensionMethod(m.Parameters[0].Type)).ToArray(); 570return syntaxTree.GetRoot().DescendantNodes().OfType<CSharp.Syntax.LocalFunctionStatementSyntax>().Select(func => semanticModel.GetDeclaredSymbol(func)).Cast<IMethodSymbol>().ToArray(); 637return c.GetMembers().OfType<IEventSymbol>().ToArray(); 693comp => ((INamedTypeSymbol)((Compilation)comp).GetMember("I")).GetMembers().OfType<IMethodSymbol>().Where(m => m.Name.StartsWith("F")).ToArray(), 757comp => ((INamedTypeSymbol)((Compilation)comp).GetMember("I")).GetMembers().OfType<IMethodSymbol>().Where(m => m.Name.StartsWith("F")).ToArray(), 822comp => ((INamedTypeSymbol)((Compilation)comp).GetMember("I")).GetMembers().OfType<IMethodSymbol>().Where(m => m.Name.StartsWith("F")).ToArray(), 889comp => ((INamedTypeSymbol)((Compilation)comp).GetMember("IB")).GetMembers().OfType<IMethodSymbol>().Where(m => m.Name.StartsWith("F")).ToArray(), 952}).ToArray(); 1009}).ToArray(); 1851var invocations = root.DescendantNodes().OfType<InvocationExpressionSyntax>().ToArray(); 1894var invocations = root.DescendantNodes().OfType<InvocationExpressionSyntax>().ToArray(); 3258var indexers = root.DescendantNodes().OfType<ElementAccessExpressionSyntax>().ToArray().AsSpan(); 3310var elementAccesses = root.DescendantNodes().OfType<ElementAccessExpressionSyntax>().ToArray().AsSpan(); 3359var elementAccesses = root.DescendantNodes().OfType<ElementAccessExpressionSyntax>().ToArray(); 4335var exprs = tree.GetRoot().DescendantNodes().OfType<DefaultExpressionSyntax>().ToArray(); 4781var actualAnnotations = invocations.Select(inv => (((IMethodSymbol)model.GetSymbolInfo(inv).Symbol)).TypeArguments[0].NullableAnnotation).ToArray(); 4816var memberAccesses = tree.GetRoot().DescendantNodes().OfType<MemberAccessExpressionSyntax>().ToArray(); 5052var assignmentsInLambda = constructor.DescendantNodes().OfType<AssignmentExpressionSyntax>().ToArray(); 5400var collectionExprs = root.DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray(); 5457var collectionExprs = root.DescendantNodes().OfType<CollectionExpressionSyntax>().ToArray();
Symbols\StaticAbstractMembersInInterfacesTests.cs (4)
18489).ToArray(); 18508).ToArray(); 18681).ToArray(); 18700).ToArray();
Symbols\TypeTests.cs (2)
1681var locals = localvars.OrderBy(s => s.Name).Select(s => s).ToArray(); 2631var nestedTypes = typeMembers.OfType<TypeSymbol>().ToArray();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (29)
LexicalAndXml\LexicalTests.cs (18)
113var trivia = token.LeadingTrivia.ToArray(); 132var trivia = token.LeadingTrivia.ToArray(); 151var trivia = token.LeadingTrivia.ToArray(); 191var trivia = token.GetLeadingTrivia().ToArray(); 213var trivia = token.GetLeadingTrivia().ToArray(); 235var trivia = token.GetLeadingTrivia().ToArray(); 253var trivia = token.GetLeadingTrivia().ToArray(); 275var trivia = token.GetLeadingTrivia().ToArray(); 299var trivia = token.GetLeadingTrivia().ToArray(); 323var trivia = token.GetLeadingTrivia().ToArray(); 345var trivia = token.GetLeadingTrivia().ToArray(); 367var trivia = token.GetLeadingTrivia().ToArray(); 389var trivia = token.GetLeadingTrivia().ToArray(); 409var trivia = token.GetLeadingTrivia().ToArray(); 437var trivia = token.GetLeadingTrivia().ToArray(); 544var trivia = token.GetLeadingTrivia().ToArray(); 561var tokens = Lex(text).ToArray(); 601var trivia = token.LeadingTrivia.ToArray();
Parsing\ParserErrorMessageTests.cs (4)
6520var actualErrors = parsedTree.GetDiagnostics().ToArray(); 6553var actualErrors = parsedTree.GetDiagnostics().ToArray(); 6580var actualErrors = expr.GetDiagnostics().ToArray(); 6607var actualErrors = stmt.GetDiagnostics().ToArray();
Parsing\ParsingErrorRecoveryTests.cs (3)
7673diags.ToArray(); 7895tree.GetDiagnostics().ToArray(); 7909tree.GetDiagnostics().ToArray();
Parsing\ScriptParsingTests.cs (1)
9650var leading = eof.GetLeadingTrivia().ToArray();
Parsing\StatementParsingTests.cs (3)
3415var tokens1 = root.DescendantTokens(descendIntoTrivia: false).ToArray(); 3416var tokens2 = root.DescendantTokens(descendIntoTrivia: true).ToArray(); 3442var tokens = root.DescendantTokens(descendIntoTrivia: true).ToArray();
Microsoft.CodeAnalysis.CSharp.Test.Utilities (14)
AttributeValidation.cs (1)
30var isUnmanagedTypeAttributes = attributeType.GetAttributes().OrderBy(attribute => attribute.AttributeClass.Name).ToArray();
CompilationTestUtils.cs (2)
34string[] symbolDescriptions = (from s in symbols select s.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat)).ToArray(); 464var annotationsByMethod = allAnnotations.GroupBy(annotation => annotation.Expression.Ancestors().OfType<BaseMethodDeclarationSyntax>().First()).ToArray();
CSharpTestBase.cs (3)
1091return Parse(options, sources.ToArray()); 1101return sources.Select((src, index) => Parse(src, filename: $"{index}.cs", options: options)).ToArray(); 1377Select(d => new DiagnosticDescription(d, errorCodeOnly: false, includeDefaultSeverity: false, includeEffectiveSeverity: false)).ToArray());
CSharpTestSource.cs (2)
60return sources.Select(source => Parse(source.Source, source.FileName, parseOptions)).ToArray(); 70return testSources.SelectMany(s => s.GetSyntaxTrees(parseOptions, sourceFileName)).ToArray();
EmitMetadataTestBase.cs (1)
110var actualPermissionSet = new string(actualPermissionSetBytes.Select(b => (char)b).ToArray());
Extensions.cs (1)
797return definition.Construct(typeArguments.Select(s => s.GetPublicSymbol()).ToArray());
MetadataTestHelpers.cs (2)
39mrefs: mrefs.Concat(compilations.Select(c => c.ToMetadataReference())).ToArray()); 73return (from @ref in refs select tc1.GetReferencedAssemblySymbol(@ref)).ToArray();
SymbolUtilities.cs (2)
113return types.Select(t => t.ToTestDisplayString()).ToArray(); 124return symbols.Select(s => s.ToDisplayString(format)).ToArray();
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (2)
PdbTests.cs (2)
98AssertEx.Equal(new byte[] { 0x12, (byte)'M', (byte)'i', (byte)'c', (byte)'r', (byte)'o' }, pdbStream.GetBuffer().Take(6).ToArray()); 99AssertEx.Equal(new byte[] { 0x12, (byte)'M', (byte)'Z' }, peStream.GetBuffer().Take(3).ToArray());
Microsoft.CodeAnalysis.CSharp.Workspaces (11)
Simplification\CSharpSimplificationService.Expander.cs (2)
173var parameters = parameterList.Parameters.ToArray(); 179.ToArray();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (2)
470var originalSwitchLabels = originalSwitchStatement.Sections.SelectMany(section => section.Labels).ToArray(); 471var newSwitchLabels = newSwitchStatement.Sections.SelectMany(section => section.Labels).ToArray();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (7)
328var attributeSyntaxList = AttributeGenerator.GenerateAttributeLists(attributes.ToImmutableArray(), info, target).ToArray(); 347return Cast<TDeclarationNode>(enumDeclaration.AddMembers(members.Cast<EnumMemberDeclarationSyntax>().ToArray())); 351return Cast<TDeclarationNode>(typeDeclaration.AddMembers(members.Cast<MemberDeclarationSyntax>().ToArray())); 355return Cast<TDeclarationNode>(namespaceDeclaration.AddMembers(members.Cast<MemberDeclarationSyntax>().ToArray())); 360.AddMembers(members.Cast<MemberDeclarationSyntax>().ToArray())); 510var wrappedStatements = StatementGenerator.GenerateStatements(statements).Select(GlobalStatement).ToArray(); 545var newStatements = statements.OfType<StatementSyntax>().ToArray();
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
2607var actualNames = actualNodes.Select(n => Generator.GetName(n)).ToArray();
Microsoft.CodeAnalysis.EditorFeatures (3)
EditorConfigSettings\DataProvider\NamingStyles\NamingStyleSettingsProvider.cs (1)
32var allStyles = RoslynEnumerableExtensions.DistinctBy(namingPreferences.NamingStyles, s => s.Name).ToArray();
EditorConfigSettings\Updater\NamingStyles\NamingStyleSettingsUpdater.cs (1)
56var allDistinctStyles = RoslynEnumerableExtensions.DistinctBy(allCurrentStyles.Select(x => x.style), x => x.Name).ToArray();
Shared\Tagging\EventSources\TaggerEventSources.cs (1)
26=> new CompositionEventSource(eventSources.ToArray());
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (6)
CompleteStatement\AbstractCompleteStatementTests.cs (1)
54Contract.ThrowIfFalse(spans.Keys.ToArray() is [""]);
LanguageServer\AbstractLanguageServerProtocolTests.cs (1)
293item.CommitCharacters = commitCharacters.Value.Select(c => c.ToString()).ToArray();
QuickInfo\ToolTipAssert.cs (2)
132var elements = container.Elements.ToArray(); 158var runs = classifiedTextElement.Runs.ToArray();
Rename\RenamerTests.cs (1)
119return splitPath.Take(splitPath.Length - 1).ToArray();
Structure\AbstractSyntaxStructureProviderTests.cs (1)
49var expectedRegions = expectedRegionData.Select(data => CreateBlockSpan(data, hostDocument.AnnotatedSpans)).ToArray();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (12)
CodeActions\CodeChangeProviderMetadataTests.cs (2)
30var exportedProviders = FindComposedPartsWithExport(configuration, providerType.FullName).ToArray(); 94var exportedProviders = FindComposedPartsWithExport(configuration, providerType.FullName).ToArray();
CodeFixes\ExtensionOrderingTests.cs (3)
43var actualOrder = ExtensionOrderer.Order(csharpProviders).ToArray(); 79var actualOrder = ExtensionOrderer.Order(providers).ToArray(); 103var actualOrder = ExtensionOrderer.Order(csharpProviders).ToArray();
Structure\StructureTaggerTests.cs (1)
324var hints = tags.Select(x => x.GetCollapsedHintForm()).Cast<ViewHostingControl>().ToArray();
Tagging\TagSpanIntervalTreeTests.cs (5)
83var (tree, buffer) = CreateTree(new string('c', 100), Enumerable.Range(50, count: 50).Select(s => new Span(s, 1)).ToArray()); 97var (tree, buffer) = CreateTree(new string('c', 100), Enumerable.Range(0, count: 100).Select(s => new Span(s, 1)).ToArray()); 112var (tree, buffer) = CreateTree(new string('c', 100), Enumerable.Range(0, count: 100).Select(s => new Span(s, 1)).ToArray()); 126var (tree, buffer) = CreateTree(new string('c', 100), Enumerable.Range(0, count: 100).Select(s => new Span(s, 1)).ToArray()); 140var (tree, buffer) = CreateTree(new string('c', 100), Enumerable.Range(0, count: 100).Select(s => new Span(s, 1)).ToArray());
Utilities\BloomFilterTests.cs (1)
234var allCounts = allHashSets.Select(_ => new double[2]).ToArray();
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (19)
Debugger\Engine\DkmClrModuleInstance.cs (1)
58var typeArgs = typeArguments.Select(t => ((TypeImpl)t.GetLmrType()).Type).ToArray();
Debugger\Engine\DkmClrRuntimeInstance.cs (2)
50this.Modules = assemblies.Select(a => getModule(this, a)).Where(m => m != null).ToArray(); 91result = result.MakeGenericType(typeArguments.Select(this.GetType).ToArray());
Debugger\Engine\DkmClrType.cs (2)
84_lmrType.MakeGenericType(genericArguments.Select(t => t._lmrType).ToArray()), 130: new ReadOnlyCollection<DkmClrType>(typeArgs.Select(t => DkmClrType.Create(AppDomain, t)).ToArray());
Debugger\MemberInfo\FieldInfoImpl.cs (1)
89return this.Field.GetCustomAttributesData().Select(a => new CustomAttributeDataImpl(a)).ToArray();
Debugger\MemberInfo\PropertyInfoImpl.cs (3)
87return this.Property.GetAccessors(nonPublic).Select(a => new MethodInfoImpl(a)).ToArray(); 107return this.Property.GetCustomAttributesData().Select(a => new CustomAttributeDataImpl(a)).ToArray(); 118return this.Property.GetIndexParameters().Select(p => new ParameterInfoImpl(p)).ToArray();
Debugger\MemberInfo\TypeImpl.cs (10)
133return Type.GetConstructors((System.Reflection.BindingFlags)bindingAttr).Select(c => new ConstructorInfoImpl(c)).ToArray(); 148return Type.GetCustomAttributesData().Select(a => new CustomAttributeDataImpl(a)).ToArray(); 174return Type.GetFields((System.Reflection.BindingFlags)flags).Select(f => new FieldInfoImpl(f)).ToArray(); 184return Type.GetGenericArguments().Select(t => new TypeImpl(t)).ToArray(); 194return Type.GetInterfaces().Select(i => new TypeImpl(i)).ToArray(); 204return Type.GetMember(name, (System.Reflection.BindingFlags)bindingAttr).Select(GetMember).ToArray(); 209return Type.GetMembers((System.Reflection.BindingFlags)bindingAttr).Select(GetMember).ToArray(); 235return this.Type.GetMethods((System.Reflection.BindingFlags)flags).Select(m => new MethodInfoImpl(m)).ToArray(); 307return infos.Where(i => i != null).ToArray(); 343return (TypeImpl)this.Type.MakeGenericType(argTypes.Select(t => ((TypeImpl)t).Type).ToArray());
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp.UnitTests (2)
EnumTests.cs (2)
28var internalValues = Enum.GetValues(internalType).Cast<int>().ToArray(); 30var externalValues = Enum.GetValues(externalType).Cast<int>().ToArray();
Microsoft.CodeAnalysis.Features (10)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.cs (1)
194var ifStatements = editor.OriginalRoot.DescendantNodes().OfType<TIfStatementSyntax>().ToArray();
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
958var activeStatementIndices = oldMemberBody?.GetOverlappingActiveStatementIndices(oldActiveStatements)?.ToArray() ?? [];
ExtractMethod\MethodExtractor.cs (2)
196var tokenMap = annotations.GroupBy(p => p.Item1, p => p.Item2).ToDictionary(g => g.Key, g => g.ToArray()); 293var startingWithLetter = originalName.ToCharArray().SkipWhile(c => !char.IsLetter(c)).ToArray();
ExtractMethod\SelectionResult.cs (2)
217var tokenMap = pairs.GroupBy(p => p.Item1, p => p.Item2).ToDictionary(g => g.Key, g => g.ToArray()); 230var tokenMap = pairs.GroupBy(p => p.Item1, p => p.Item2).ToDictionary(g => g.Key, g => g.ToArray());
InvertIf\AbstractInvertIfCodeRefactoringProvider.cs (1)
481var newTrailing = UnwrapBlock(ifBody).ToArray();
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AnonymousTypes.cs (1)
38foreach (var (group, parts) in _groupMap.ToArray())
Shared\Extensions\ISymbolExtensions_Sorting.cs (1)
137.ToArray();
src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
648typeSymbol = typeSymbol.Construct(typeArguments.Select(t => t.Type).ToArray());
Microsoft.CodeAnalysis.Features.Test.Utilities (6)
EditAndContinue\ActiveStatementsDescription.cs (2)
51var newActiveStatementMarkers = SourceMarkers.GetActiveSpans(newMarkedSource).ToArray(); 99var activeStatementMarkers = SourceMarkers.GetActiveSpans(markedSource).ToArray();
EditAndContinue\EditAndContinueTestVerifier.cs (2)
118var oldDocuments = oldProject.Documents.ToArray(); 119var newDocuments = newProject.Documents.ToArray();
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (1)
279Compilation compilation = CSharpTestBase.CreateCompilation(trees.ToArray(), options: TestOptions.DebugDll, targetFramework: DefaultTargetFramework, assemblyName: assemblyName);
EditAndContinue\SourceMarkers.cs (1)
38=> sources.Select(Clear).ToArray();
Microsoft.CodeAnalysis.InteractiveHost (2)
Interactive\Core\InteractiveHost.Service.cs (1)
731var directories = attemptedFilePaths.Select(path => Path.GetDirectoryName(path)).ToArray();
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
637pathParts = pathParts.Where(s => s != ThisDirectory).ToArray();
Microsoft.CodeAnalysis.LanguageServer (1)
LanguageServer\Handler\Restore\RestorableProjectsHandler.cs (1)
47return Task.FromResult(projects.ToArray());
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Handler\CodeActions\CodeActionResolveHelper.cs (1)
289var edits = textChanges.Select(tc => new LSP.SumType<LSP.TextEdit, LSP.AnnotatedTextEdit>(ProtocolConversions.TextChangeToTextEdit(tc, oldText))).ToArray();
Handler\Diagnostics\Public\PublicWorkspacePullDiagnosticsHandler.cs (1)
85? progressValues.SelectMany(report => report.Match(r => r.Items, partial => partial.Items)).ToArray()
Handler\InlineCompletions\XmlSnippetParser.CodeSnippet.cs (1)
48_snippetTypes = snippetTypes.Elements().Select(e => e.Value.Trim()).ToArray();
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (5)
Completion\CompletionFeaturesTests.cs (3)
414var defaultCharArray = CompletionRules.Default.DefaultCommitCharacters.Select(c => c.ToString()).ToArray(); 462var defaultCharArray = CompletionRules.Default.DefaultCommitCharacters.Select(c => c.ToString()).ToArray(); 805var defaultCharArray = CompletionRules.Default.DefaultCommitCharacters.Select(c => c.ToString()).ToArray();
References\FindAllReferencesHandlerTests.cs (2)
322results = UnwrapProgress<LSP.VSInternalReferenceItem>(progress.Value).ToArray(); 339results = UnwrapProgress<LSP.Location>(progress.Value).ToArray();
Microsoft.CodeAnalysis.Rebuild (3)
CompilationOptionsReader.cs (1)
282}).ToArray();
MetadataCompilationOptions.cs (2)
39var optionValues = _options.Where(pair => pair.optionName == optionName).ToArray(); 51var optionValues = _options.Where(pair => pair.optionName == optionName).ToArray();
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
OptionRoundTripTests.cs (1)
33public static readonly object[][] Platforms = ((Platform[])Enum.GetValues(typeof(Platform))).Select(p => new[] { (object)p }).ToArray();
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (11)
GlobalAssemblyCacheTests.cs (11)
26names = gac.GetAssemblyIdentities(new AssemblyName("mscorlib")).ToArray(); 33names = gac.GetAssemblyIdentities(new AssemblyName("mscorlib"), ImmutableArray.Create(ProcessorArchitecture.MSIL, ProcessorArchitecture.X86)).ToArray(); 40names = gac.GetAssemblyIdentities("mscorlib").ToArray(); 47names = gac.GetAssemblyIdentities("System.Core, Version=4.0.0.0").ToArray(); 56names = gac.GetAssemblyIdentities("System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089").ToArray(); 66names = gac.GetAssemblyIdentities(n).ToArray(); 74names = gac.GetAssemblyIdentities("x\u0002").ToArray(); 77names = gac.GetAssemblyIdentities("\0").ToArray(); 80names = gac.GetAssemblyIdentities("xxxx\0xxxxx").ToArray(); 84names = gac.GetAssemblyIdentities("nonexistingassemblyname" + Guid.NewGuid().ToString()).ToArray(); 96names = gac.GetAssemblyIdentities(new AssemblyName("netstandard")).ToArray();
Microsoft.CodeAnalysis.Scripting.TestUtilities (1)
CSharpScriptTestBase.cs (1)
49args?.Where(a => a != null).ToArray() ?? s_defaultArgs,
Microsoft.CodeAnalysis.Test.Utilities (22)
Assert\AssertXml.cs (1)
163XElement[] children1 = pair.Item1.Elements().ToArray();
Compilation\ControlFlowGraphVerifier.cs (1)
522IFlowCaptureReferenceOperation[] referencesAfter = getFlowCaptureReferenceOperationsInRegion(region, block.Ordinal + 1).Where(r => r.Id.Equals(id)).ToArray();
Compilation\OperationTreeVerifier.cs (1)
164var lines = text.Split(new[] { Environment.NewLine, "\r", "\n" }, StringSplitOptions.RemoveEmptyEntries).Select(l => l.Trim()).ToArray();
Compilation\TestOperationVisitor.cs (2)
1390var children = operation.ChildOperations.ToArray(); 1765IOperation[] children = operation.ChildOperations.ToArray();
CompilationVerifier.cs (1)
445var x = errorArguments.Select(a => printErrorArgument(a)).ToArray();
Metadata\AggregatedMetadataReader.cs (1)
31_aggregator = new MetadataAggregator(readers.First(), readers.Skip(1).ToArray());
Metadata\MetadataReaderUtils.cs (11)
104return handles.Select(handle => readers.GetString(handle)).ToArray(); 114return reader.AssemblyReferences.Select(handle => reader.GetAssemblyReference(handle).Name).ToArray(); 119return reader.TypeDefinitions.Select(handle => reader.GetTypeDefinition(handle).Name).ToArray(); 128}).ToArray(); 133return reader.TypeReferences.Select(handle => reader.GetTypeReference(handle).Name).ToArray(); 138return reader.EventDefinitions.Select(handle => reader.GetEventDefinition(handle).Name).ToArray(); 143return reader.FieldDefinitions.Select(handle => reader.GetFieldDefinition(handle).Name).ToArray(); 148return reader.MethodDefinitions.Select(handle => reader.GetMethodDefinition(handle).Name).ToArray(); 153return reader.MemberReferences.Select(handle => reader.GetMemberReference(handle).Name).ToArray(); 158return reader.GetParameters().Select(handle => reader.GetParameter(handle).Name).ToArray(); 163return reader.PropertyDefinitions.Select(handle => reader.GetPropertyDefinition(handle).Name).ToArray();
Platform\Desktop\DesktopRuntimeEnvironment.cs (1)
115allModules = allModules.ToArray();
Syntax\NodeHelpers.cs (3)
155select GetFieldInfo(p, node)).ToArray()); 166select GetFieldInfo(p, token)).ToArray()); 177select GetFieldInfo(p, trivia)).ToArray());
Microsoft.CodeAnalysis.UnitTests (91)
AnalyzerAssemblyLoaderTests.cs (3)
415.ToArray(), 418.ToArray()); 473.ToArray();
Analyzers\AnalyzerConfigTests.cs (17)
967}, options.Select(o => o.TreeOptions).ToArray()); 1017}, options.Select(o => o.TreeOptions).ToArray()); 1044}, options.Select(o => o.TreeOptions).ToArray()); 1066}, options.Select(o => o.TreeOptions).ToArray()); 1088}, options.Select(o => o.TreeOptions).ToArray()); 1112}, options.Select(o => o.TreeOptions).ToArray()); 1145}, options.Select(o => o.TreeOptions).ToArray()); 1167}, options.Select(o => o.TreeOptions).ToArray()); 1198}, options.Select(o => o.TreeOptions).ToArray()); 1218}, options.Select(o => o.TreeOptions).ToArray()); 1228return filePaths.Select(f => set.GetOptionsForSourcePath(f)).ToArray(); 1511}, options.Select(o => o.TreeOptions).ToArray()); 1541}, options.Select(o => o.TreeOptions).ToArray()); 1575}, options.Select(o => o.TreeOptions).ToArray()); 2057}, options.Select(o => o.TreeOptions).ToArray()); 2073var options = new[] { "/test.cs", "/path/to/file.cs" }.Select(f => set.GetOptionsForSourcePath(f)).ToArray(); 2134}, options.Select(o => o.TreeOptions).ToArray());
Analyzers\AnalyzerFileReferenceTests.cs (6)
519var csharpAnalyzers = reference.GetAnalyzers(LanguageNames.CSharp).Select(a => a.GetType().FullName).ToArray(); 526var vbAnalyzers = reference.GetAnalyzers(LanguageNames.VisualBasic).Select(a => a.GetType().FullName).ToArray(); 534var allAnalyzers = reference.GetAnalyzersForAllLanguages().Select(a => a.GetType().FullName).ToArray(); 552var csharpGenerators = reference.GetGenerators(LanguageNames.CSharp).Select(g => g.GetGeneratorType().FullName).ToArray(); 565var vbGenerators = reference.GetGenerators(LanguageNames.VisualBasic).Select(g => g.GetGeneratorType().FullName).ToArray(); 574var allGenerators = reference.GetGeneratorsForAllLanguages().Select(g => g.GetGeneratorType().FullName).ToArray();
CachingLookupTests.cs (1)
66select n).ToArray().AsImmutableOrNull();
Collections\DebuggerAttributes.cs (2)
107.ToArray(); 135.ToArray();
Collections\HashSet\SegmentedHashSet_Generic_Tests`1.cs (1)
100SegmentedHashSet<T> hashSetFromDuplicates = new SegmentedHashSet<T>(Enumerable.Range(0, 40).SelectMany(i => items).ToArray());
Collections\ImmutableArrayExtensionsTests.cs (1)
48var aa = e.ToArray();
Collections\ImmutableDictionaryBuilderTestBase.cs (4)
132CollectionAssertAreEquivalent(new[] { "five", "six" }, ((IReadOnlyDictionary<string, int>)builder).Keys.ToArray()); 141CollectionAssertAreEquivalent(new[] { 5, 6 }, ((IReadOnlyDictionary<string, int>)builder).Values.ToArray()); 182Assert.Equal(new[] { "a" }, dictionary.Keys.Cast<string>().ToArray()); 183Assert.Equal(new[] { 1 }, dictionary.Values.Cast<int>().ToArray());
Collections\ImmutableDictionaryTestBase.cs (2)
178Assert.Equal(new[] { "c" }, dictionary.Keys.Cast<string>().ToArray()); 179Assert.Equal(new[] { 3 }, dictionary.Values.Cast<int>().ToArray());
Collections\ImmutableDictionaryTestBase.nonnetstandard.cs (1)
303Assert.Equal(array.Skip(1), nonGeneric.Cast<T>().ToArray());
Collections\ImmutableSegmentedHashSetBuilderTest.cs (7)
82CollectionAssertAreEquivalent(Enumerable.Range(1, 10).ToArray(), builder.ToArray()); 89CollectionAssertAreEquivalent(Enumerable.Range(1, 11).ToArray(), builder.ToArray()); 97CollectionAssertAreEquivalent(Enumerable.Range(1, 11).ToArray(), builder.ToArray()); 287CollectionAssertAreEquivalent(new[] { "a", "b" }, builder.ToArray()); // tests enumerator
Collections\ImmutableSegmentedListBuilderTest.cs (1)
323Assert.Equal(new[] { 9, 8 }, list.Cast<int>().ToArray());
Collections\ImmutableSegmentedListTest.cs (5)
61int[] values = Enumerable.Range(0, inputLength).Select(i => random.Next()).ToArray(); 75values = Enumerable.Range(0, inputLength).Select(i => random.Next()).ToArray(); 140Assert.Equal<int>(list.ToArray(), bulkList.ToArray()); 259var actualList = list.ToArray();
Collections\ImmutableSetTest.cs (3)
34var arrayWithDuplicates = Enumerable.Range(1, 100).Concat(Enumerable.Range(1, 100)).ToArray(); 375var actualFunc = operation(this.SetWith(scenario.Item1.ToArray())); 377Assert.Equal(scenario.Item3, actualFunc(this.SetWith(scenario.Item2.ToArray()))); //, message, args);
Collections\ImmutableSetTest.nonnetstandard.cs (3)
31SymmetricExceptTestHelper(Empty<int>().Add(1).Add(3).Add(5).Add(7), Enumerable.Range(0, 9).ToArray()); 32SymmetricExceptTestHelper(Empty<int>().Add(1).Add(3).Add(5).Add(7), Enumerable.Range(0, 5).ToArray()); 58UnionTestHelper(this.Empty<int>().Union(new[] { 2 }), Enumerable.Range(0, 1000).ToArray());
Collections\List\IEnumerable.Generic.Tests.cs (1)
135T[] items = enumerable.ToArray();
Collections\RopeTests.cs (2)
31private static readonly Rope[] someRopes = shortRopes.Concat(longRopes).ToArray(); 32private static readonly string[] someStrings = shortStrings.Concat(longStrings).ToArray();
Collections\SimpleElementImmutablesTestBase.cs (1)
22return GetEnumerableOf(contents.ToArray());
Collections\TemporaryArrayTests.cs (1)
215foreach (var permutation in permute(Enumerable.Range(0, i).ToArray()))
Collections\TopologicalSortTests.cs (4)
138var possibleSort = Enumerable.Range(0, numberOfNodes).ToArray(); 150var wasAcyclic = TopologicalSort.TryIterativeSort(Enumerable.Range(0, numberOfNodes).ToArray(), succF, out var sorted); 162successors[possibleSort[0]] = successors[possibleSort[0]].Concat(new int[] { possibleSort[numberOfNodes - 1] }).ToArray(); 164wasAcyclic = TopologicalSort.TryIterativeSort(Enumerable.Range(0, numberOfNodes).ToArray(), succF, out sorted);
CommonCommandLineParserTests.cs (1)
22var actual = CommandLineParser.SplitCommandLineIntoArguments(commandLine, removeHashComments).ToArray();
CryptoBlobParserTests.cs (16)
36var expectedModulus = key.Skip(HEADER_LEN).Take(MOD_LEN).ToArray(); 40var expectedP = key.Skip(HEADER_LEN + MOD_LEN).Take(HALF_LEN).ToArray(); 44var expectedQ = key.Skip(HEADER_LEN + MOD_LEN + HALF_LEN).Take(HALF_LEN).ToArray(); 48var expectedDP = key.Skip(HEADER_LEN + MOD_LEN + HALF_LEN * 2).Take(HALF_LEN).ToArray(); 52var expectedDQ = key.Skip(HEADER_LEN + MOD_LEN + HALF_LEN * 3).Take(HALF_LEN).ToArray(); 56var expectedInverseQ = key.Skip(HEADER_LEN + MOD_LEN + HALF_LEN * 4).Take(HALF_LEN).ToArray(); 60var expectedD = key.Skip(HEADER_LEN + MOD_LEN + HALF_LEN * 5).Take(MOD_LEN).ToArray(); 64Assert.True(key.Skip(HEADER_LEN + MOD_LEN * 2 + HALF_LEN * 5).ToArray().Length == 0); 79var expectedModulus = key.Skip(HEADER_LEN).Take(MOD_LEN).ToArray(); 83var expectedP = key.Skip(HEADER_LEN + MOD_LEN).Take(HALF_LEN).ToArray(); 87var expectedQ = key.Skip(HEADER_LEN + MOD_LEN + HALF_LEN).Take(HALF_LEN).ToArray(); 91var expectedDP = key.Skip(HEADER_LEN + MOD_LEN + HALF_LEN * 2).Take(HALF_LEN).ToArray(); 95var expectedDQ = key.Skip(HEADER_LEN + MOD_LEN + HALF_LEN * 3).Take(HALF_LEN).ToArray(); 99var expectedInverseQ = key.Skip(HEADER_LEN + MOD_LEN + HALF_LEN * 4).Take(HALF_LEN).ToArray(); 103var expectedD = key.Skip(HEADER_LEN + MOD_LEN + HALF_LEN * 5).Take(MOD_LEN).ToArray(); 107Assert.True(key.Skip(HEADER_LEN + MOD_LEN * 2 + HALF_LEN * 5).ToArray().Length == 0);
EmbeddedTextTests.cs (3)
131var paddedBytes = new byte[] { 0 }.Concat(bytes).Concat(new byte[] { 0 }).ToArray(); 173var paddedBytes = new byte[] { 0 }.Concat(bytes).Concat(new byte[] { 0 }).ToArray(); 263using (var source = new DeflateStream(new MemoryStream(bytes.ToArray()), CompressionMode.Decompress))
LineMappingTests.cs (1)
32var equalityUnits = lineMappings.SelectMany((left, leftIndex) => lineMappings.Select((right, rightIndex) => CreateEqualityUnit(left, leftIndex, right, rightIndex))).ToArray();
MetadataReferences\MetadataHelpersTests.cs (1)
453var array = nestedNamespaces.ToArray();
Text\SourceTextTests.cs (1)
73var bytes = utf8BOM.GetPreamble().Concat(utf8BOM.GetBytes("abc")).ToArray();
Text\TextChangeTests.cs (2)
574var chunk1 = "this is the large text".ToArray(); 611var chunk1 = "this is the large text".ToArray();
Microsoft.CodeAnalysis.VisualBasic (3)
Declarations\MergedTypeDeclaration.vb (1)
153Return MakeMergedTypes(allSingleTypeDecls).ToArray()
Syntax\SyntaxNodeRemover.vb (2)
17Dim nodesToRemove As SyntaxNode() = nodes.ToArray() 23Dim remover = New SyntaxRemover(nodes.ToArray(), options)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (13)
FlowAnalysis\FlowTestBase.vb (13)
228AssertEx.Equal(If(alwaysAssigned, {}), analysis.AlwaysAssigned.Select(Function(s) s.Name).ToArray()) 229AssertEx.Equal(If(captured, {}), analysis.Captured.Select(Function(s) s.Name).ToArray()) 230AssertEx.Equal(If(dataFlowsIn, {}), analysis.DataFlowsIn.Select(Function(s) s.Name).ToArray()) 231AssertEx.Equal(If(dataFlowsOut, {}), analysis.DataFlowsOut.Select(Function(s) s.Name).ToArray()) 232AssertEx.Equal(If(definitelyAssignedOnEntry, {}), analysis.DefinitelyAssignedOnEntry.Select(Function(s) s.Name).ToArray()) 233AssertEx.Equal(If(definitelyAssignedOnExit, {}), analysis.DefinitelyAssignedOnExit.Select(Function(s) s.Name).ToArray()) 234AssertEx.Equal(If(readInside, {}), analysis.ReadInside.Select(Function(s) s.Name).ToArray()) 235AssertEx.Equal(If(readOutside, {}), analysis.ReadOutside.Select(Function(s) s.Name).ToArray()) 236AssertEx.Equal(If(variablesDeclared, {}), analysis.VariablesDeclared.Select(Function(s) s.Name).ToArray()) 237AssertEx.Equal(If(writtenInside, {}), analysis.WrittenInside.Select(Function(s) s.Name).ToArray()) 238AssertEx.Equal(If(writtenOutside, {}), analysis.WrittenOutside.Select(Function(s) s.Name).ToArray()) 239AssertEx.Equal(If(capturedInside, {}), analysis.CapturedInside.Select(Function(s) s.Name).ToArray()) 240AssertEx.Equal(If(capturedOutside, {}), analysis.CapturedOutside.Select(Function(s) s.Name).ToArray())
Microsoft.CodeAnalysis.Workspaces (30)
CodeCleanup\AbstractCodeCleanerService.cs (1)
670var types = annotation.Data.Split(s_separators).Select(s => (SpanMarkerType)Enum.Parse(typeof(SpanMarkerType), s)).ToArray();
FindSymbols\FindReferences\DependentTypeFinder.cs (1)
72projects ??= ImmutableHashSet.Create(solution.Projects.ToArray());
FindSymbols\SymbolTree\SymbolTreeInfoCacheService.cs (1)
138var removedProjectIds = _projectIdToInfo.Keys.Except(solution.ProjectIds).ToArray();
Shared\Extensions\ISymbolExtensions.cs (3)
244element.ReplaceNodes(RewriteMany(symbol, visitedSymbols, compilation, element.Nodes().ToArray(), cancellationToken)); 327var rewritten = RewriteMany(symbol, visitedSymbols, compilation, oldNodes.ToArray(), cancellationToken); 622return xpathResult?.Cast<XNode>().ToArray();
Shared\Extensions\TelemetryExtensions.cs (1)
28var suffixBytes = BitConverter.GetBytes(suffix).Concat(new byte[4]).ToArray();
src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
394.ToArray();
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
637pathParts = pathParts.Where(s => s != ThisDirectory).ToArray();
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (2)
352=> source as T[] ?? source.ToArray(); 711return TransposeInternal(data).ToArray();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
264descriptor.Description, descriptor.HelpLinkUri, descriptor.CustomTags.ToArray());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
508return delegateType.TryConstruct(types.ToArray());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (1)
92return _typeGenerator.Construct(symbol.OriginalDefinition, substitutedArguments.ToArray()).WithNullableAnnotation(symbol.NullableAnnotation);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeOrTokenExtensions.cs (1)
54=> nodesOrTokens.SelectMany(nodeOrToken => nodeOrToken.GetLeadingTrivia().Concat(nodeOrToken.GetTrailingTrivia())).ToArray();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTokenExtensions.cs (1)
162=> tokens.SelectMany(token => SyntaxNodeOrTokenExtensions.GetTrivia(token)).ToArray();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.AnalysisData.cs (1)
237foreach (var symbol in SymbolsWriteBuilder.Keys.Select(d => d.symbol).ToArray())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
226foreach (var (symbol, write) in SymbolsWriteBuilder.Where(kvp => !kvp.Value).Select(kvp => kvp.Key).ToArray())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (1)
155.ToArray());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AnnotationTable.cs (4)
76=> node.WithAdditionalAnnotations(this.GetOrCreateRealAnnotations(annotations).ToArray()); 79=> token.WithAdditionalAnnotations(this.GetOrCreateRealAnnotations(annotations).ToArray()); 82=> trivia.WithAdditionalAnnotations(this.GetOrCreateRealAnnotations(annotations).ToArray()); 85=> nodeOrToken.WithAdditionalAnnotations(this.GetOrCreateRealAnnotations(annotations).ToArray());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
97var distinctValues = values.Where(v => v.Length > 0).Distinct(CaseInsensitiveComparison.Comparer).ToArray();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AbstractAddImportsService.cs (5)
143var filteredImports = newImports.Where(i => !HasExistingImport(i, containers, globalImports)).ToArray(); 145var externAliases = filteredImports.OfType<TExternSyntax>().ToArray(); 146var usingDirectives = filteredImports.OfType<TUsingOrAliasSyntax>().Where(IsSimpleUsing).ToArray(); 147var staticUsingDirectives = filteredImports.OfType<TUsingOrAliasSyntax>().Where(IsStaticUsing).ToArray(); 148var aliasDirectives = filteredImports.OfType<TUsingOrAliasSyntax>().Where(IsAlias).ToArray();
Workspace\Host\PersistentStorage\IPersistentStorageConfiguration.cs (1)
96val = new string(val.Where(c => !s_invalidPathChars.Contains(c)).ToArray());
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
637pathParts = pathParts.Where(s => s != ThisDirectory).ToArray();
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (2)
352=> source as T[] ?? source.ToArray(); 711return TransposeInternal(data).ToArray();
src\Compilers\Core\Portable\InternalUtilities\XmlUtilities.cs (1)
78return xpathResult?.ToArray();
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (3)
NetCoreTests.cs (1)
384var projects = solution.Projects.ToArray();
VisualStudioMSBuildWorkspaceTests.cs (2)
221var projects = solution.Projects.ToArray(); 376.ToArray();
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
FindReferencesTests.cs (2)
496var refsFromVirtualSorted = refsFromVirtual.Select(r => r.Definition).OrderBy(r => r.ContainingType.Name).ToArray(); 497var refsFromOverrideSorted = refsFromOverride.Select(r => r.Definition).OrderBy(r => r.ContainingType.Name).ToArray();
SolutionTests\SolutionTests.cs (1)
2924var projectIds = Enumerable.Range(0, 5).Select(i => ProjectId.CreateNewId()).ToArray();
UtilityTest\EditDistanceTests.cs (1)
267var top = Top1000.Take(50).ToArray();
UtilityTest\NameGeneratorTests.cs (1)
76var isFixed = Enumerable.Repeat(true, names.Length).ToArray();
Microsoft.CodeAnalysis.XunitHook (1)
XunitDisposeHook.cs (1)
21var xunitUtilities = AppDomain.CurrentDomain.GetAssemblies().Where(static assembly => assembly.GetName().Name.StartsWith("xunit.runner.utility")).ToArray();
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\BinderHelper.cs (1)
334internal static T[] ToArray<T>(IEnumerable<T> source) => source == null ? Array.Empty<T>() : source.ToArray();
Microsoft.Data.Analysis (4)
DataFrame.cs (1)
345int[] shuffleArray = Enumerable.Range(0, shuffleUpperLimit).ToArray();
DataFrame.Join.cs (3)
210var shrinkedRetainedIndices = occurrences.Keys.ToArray(); 285var retainJoinColumns = retainedJoinColumnNames.Select(name => retainedDataFrame.Columns[name]).ToArray(); 390var columns = supplementaryJoinColumns.Select(name => supplementaryDataFrame.Columns[name]).ToArray();
Microsoft.Data.Analysis.Interactive.Tests (1)
DataFrameInteractiveTests.cs (1)
92Assert.Equal(dataFrame.Columns.Select(c => c.Name).ToArray(), new[] { "TrueOrFalse", "Integer", "Double", "Text" });
Microsoft.Data.Analysis.PerformanceTests (2)
PerformanceTests.cs (2)
33var values = Enumerable.Range(1, ItemsCount).ToArray(); 38var shortValues = values.Select(v => (short)(v % short.MaxValue + 1)).ToArray();
Microsoft.Data.Analysis.Tests (7)
DataFrame.IOTests.cs (5)
1185var resColumns = table.Columns.Cast<DataColumn>().Select(column => (column.ColumnName, column.DataType)).ToArray(); 1188var resVals = table.Rows.Cast<DataRow>().Select(row => row.ItemArray).ToArray(); 1222var resColumns = dataFrame.Columns.Select(column => (column.Name, column.DataType)).ToArray(); 1224var resVals = dataFrame.Rows.Select(row => row.ToArray()).ToArray();
DataFrameTests.Utils.cs (1)
79var buffers = Enumerable.Repeat(new VBuffer<int>(5, new[] { 0, 1, 2, 3, 4 }), length).ToArray();
VBufferColumnTests.cs (1)
22var buffers = Enumerable.Repeat(new VBuffer<int>(5, new[] { 0, 1, 2, 3, 4 }), 10).ToArray();
Microsoft.DotNet.Arcade.Sdk (6)
src\GetLicenseFilePath.cs (1)
64select path).ToArray();
src\GroupItemsBy.cs (1)
79select mergeItems(itemsWithEqualKey)).ToArray();
src\SourceBuild\AddSourceMappingToNugetConfig.cs (1)
53.ToArray();
src\SourceBuild\ReadSourceBuildIntermediateNupkgDependencies.cs (1)
120.ToArray();
src\ValidateLicense.cs (2)
54var normalizedActual = normalize(actual).ToArray(); 55var normalizedExpected = normalize(expected).ToArray();
Microsoft.DotNet.AsmDiff (17)
AssemblySet.cs (9)
31.ToArray(); 44.ToArray(); 103var allPaths = paths.SelectMany(HostEnvironment.SplitPaths).ToArray(); 105var assemblyArray = environment.LoadAssemblies(allPaths).ToArray(); 130var snapshot = assemblies.ToArray(); 131var assemblyPaths = Assemblies.Except(snapshot).Select(a => a.Location).ToArray(); 132var dependencyPaths = Dependencies.Except(snapshot).Select(a => a.Location).ToArray(); 141var assembliesSnapshot = assemblies.ToArray(); 183.ToArray();
DiffConfigurationExtensions.cs (1)
56var totalAssemblyPaths = existingAssemblyPaths.Concat(addedPaths).ToArray();
DiffCSharpWriter.cs (3)
233var commentSet = _diffComments.Where((c) => c.DocId == docId).Reverse().ToArray(); 345SyntaxToken[] t1 = GetTokenList(def1).ToArray(); 346SyntaxToken[] t2 = GetTokenList(def2).ToArray();
DiffDocument.cs (2)
21Lines = new ReadOnlyCollection<DiffLine>(lines.ToArray()); 22ApiDefinitions = new ReadOnlyCollection<DiffApiDefinition>(apiDefinitions.ToArray());
DiffEngine.cs (1)
55var diffColumns = DiffCsvColumn.CreateStandardColumns(configuration).Where(c => c.IsVisible).ToArray();
DiffLine.cs (1)
18Tokens = new ReadOnlyCollection<DiffToken>(tokens.ToArray());
Microsoft.DotNet.Build.Tasks.Feed (6)
src\PublishArtifactsInManifest.cs (1)
261.ToArray();
src\PublishArtifactsInManifestBase.cs (2)
729string[] symbolPackagesAssetNames = buildAssets?.Keys.Where(x => IsSymbolPackage(x)).Distinct().ToArray() ?? []; 1603.ToArray();
src\PushToBuildStorage.cs (3)
171.ToArray(); 186.ToArray(); 190.ToArray();
Microsoft.DotNet.Build.Tasks.Feed.Tests (1)
BuildModelFactoryTests.cs (1)
424modelFromItems.Identity.Attributes.Select(kv => $"{kv.Key}={kv.Value}").ToArray(),
Microsoft.DotNet.Build.Tasks.Installers (1)
src\StabilizeWixFileId.cs (1)
74.ToArray();
Microsoft.DotNet.Build.Tasks.Packaging (39)
CreateTrimDependencyGroups.cs (3)
75.ToArray(); 78PackageItem[] packageItems = Files.Select(f => new PackageItem(f)).ToArray(); 95var filteredDependencies = nearestDependencyGroup.Packages.Where(d => !index.IsInbox(d.Id, supportedInboxFramework, d.AssemblyVersion)).ToArray();
Extensions.cs (1)
101return metadataValue.Split(';').Where(v => !String.IsNullOrEmpty(v.Trim())).ToArray();
FilterUnknownPackages.cs (1)
54).ToArray();
GenerateNuSpec.cs (2)
401return aggregate.Union(next).ToArray(); 412return aggregate.Intersect(next).ToArray();
GeneratePackageReport.cs (6)
114CompileAssets = compileAssets.Select(c => GetPackageAssetFromTargetPath(c)).ToArray() 144CompileAssets = compileAssets.Select(c => GetPackageAssetFromTargetPath(c)).ToArray(), 145RuntimeAssets = runtimeAssets.Select(r => GetPackageAssetFromTargetPath(r)).ToArray(), 146NativeAssets = nativeAssets.Select(n => GetPackageAssetFromTargetPath(n)).ToArray() 175report.UnusedAssets = _unusedTargetPaths.Select(tp => GetPackageAssetFromTargetPath(tp)).ToArray(); 249foreach(var framework in _frameworks.Keys.ToArray())
GetApplicableAssetsFromPackageReports.cs (1)
94BuildProjects = buildProjects.Distinct().Select(bp => bp.ToItem()).ToArray();
GetApplicableAssetsFromPackages.cs (5)
82NuGetFramework[] compileFxs = TargetMonikers.Select(fx => NuGetFramework.Parse(fx)).ToArray(); 87runtimeFxs = RuntimeTargetMonikers.Select(fx => NuGetFramework.Parse(fx)).ToArray(); 106CompileAssets = compileItems.Select(ci => PackageItemAsResolvedAsset(ci)).ToArray(); 130RuntimeAssets = runtimeItems.SelectMany(ri => PackageItemAndSymbolsAsResolvedAsset(ri)).ToArray(); 142BuildProjects = buildProjects.Distinct().Select(bp => bp.ToItem()).ToArray();
GetInboxFrameworks.cs (1)
59InboxFrameworks = index.GetInboxFrameworks(AssemblyName, AssemblyVersion).Select(fx => fx.GetShortFolderName()).ToArray();
GetLastStablePackage.cs (1)
125LastStablePackages = lastStablePackages.Select(p => CreateItem(originalItems[p.Key], p.Value)).ToArray();
GetSupportedPackagesFromPackageReports.cs (1)
37var rids = fxRIDGrouping.ToArray();
HarvestPackage.cs (1)
464UpdatedFiles = Files.Except(removeFiles).ToArray();
NuGetPack.cs (1)
191return nuspecProperties == null ? null : NuspecPropertyStringProvider.GetNuspecPropertyProviderFunction(nuspecProperties.Select(p => p.ItemSpec).ToArray());
PackageIndex.cs (1)
258return Packages.Values.SelectMany(info => info.InboxOn.GetInboxFrameworks()).Distinct().ToArray();
PromoteDependencies.cs (5)
46var dependencies = Dependencies.Select(d => new Dependency(d)).ToArray(); 48var refSets = dependencies.Where(d => d.Id != "_._").Where(d => d.IsReference).GroupBy(d => NuGetFramework.Parse(d.TargetFramework)).ToDictionary(g => g.Key, g => g.ToArray()); 49var refFxs = refSets.Keys.ToArray(); 53var libSets = dependencies.Where(d => !d.IsReference).GroupBy(d => NuGetFramework.Parse(d.TargetFramework)).ToDictionary(g => g.Key, g => g.ToArray()); 54var libFxs = libSets.Keys.ToArray();
SplitDependenciesBySupport.cs (3)
29var dependencies = OriginalDependencies.Select(od => new Dependency(od)).ToArray(); 36var unspecDeps = dependencies.Where(d => d.TargetFramework == null).ToArray(); 47.ToArray();
SplitReferences.cs (2)
88FrameworkReferences = assemblyReferences.Values.ToArray(); 98PackageReferences = packageReferences.Values.ToArray();
UpdatePackageIndex.cs (3)
255}).ToArray(); 257dllNames = dlls.Select(f => Path.GetFileNameWithoutExtension(f)).Distinct().ToArray(); 322foreach (var orphanedAssemblyVersion in orphanedAssemblyVersions.ToArray())
ValidatePackage.cs (1)
363AllSupportedFrameworks = _frameworks.Values.Where(fx => fx.SupportedVersion != null).Select(fx => fx.ToItem()).OrderBy(i => i.ItemSpec).ToArray();
Microsoft.DotNet.Build.Tasks.TargetFramework (1)
TargetFrameworkResolver.cs (1)
57contentCollection.Load(frameworks.Select(f => f + '/').ToArray());
Microsoft.DotNet.Build.Tasks.VisualStudio (4)
OptProf\GenerateTrainingInputFiles.cs (3)
84var ibcEntries = IbcEntry.GetEntriesFromVsixJsonManifest(jsonManifest).ToArray(); 92var assemblyEntries = IbcEntry.GetEntriesFromAssembly(assembly).ToArray(); 130var filteredIbcEntries = ibcEntries.Where(ibc => ibc.EntryName == filteredTestCase.FileName).ToArray();
Vsix\GetPkgDefAssemblyDependencyGuid.cs (1)
62byte[] reducedHash = fullHash.Take(targetBlockSize).Zip(fullHash.Skip(targetBlockSize), (b1, b2) => (byte)(b1 ^ b2)).ToArray();
Microsoft.DotNet.Build.Tasks.Workloads (4)
Wix\CompilerToolTask.cs (2)
76CommandLineBuilder.AppendArrayIfNotNull("-d", PreprocessorDefinitions.ToArray()); 77CommandLineBuilder.AppendArrayIfNotNull("-ext ", Extensions.ToArray());
Wix\LinkerToolTask.cs (2)
78CommandLineBuilder.AppendArrayIfNotNull("-ext ", Extensions.ToArray()); 80CommandLineBuilder.AppendFileNamesIfNotNull(SourceFiles.ToArray(), " ");
Microsoft.DotNet.GenFacades (5)
GenPartialFacadeSource.cs (2)
43ReferencePaths?.Select(item => item.ItemSpec).ToArray(), 45CompileFiles?.Select(item => item.ItemSpec).ToArray(),
GenPartialFacadeSourceGenerator.cs (3)
37string[] distinctSeeds = seeds.Select(seed => Path.GetFullPath(seed)).Distinct().ToArray(); 38string[] seedNames = distinctSeeds.Select(seed => Path.GetFileName(seed)).ToArray(); 61return defineConstants?.Split(';', ',').Where(t => !string.IsNullOrEmpty(t)).ToArray();
Microsoft.DotNet.Helix.JobSender (1)
JobDefinition.cs (1)
107CorrelationPayloads.Add(new AdhocPayload(files.ToArray()), destination);
Microsoft.DotNet.Helix.Sdk (4)
CreateXHarnessAndroidWorkItems.cs (1)
62WorkItems = Task.WhenAll(tasks).GetAwaiter().GetResult().Where(wi => wi != null).ToArray();
CreateXHarnessAppleWorkItems.cs (1)
84WorkItems = Task.WhenAll(tasks).GetAwaiter().GetResult().Where(wi => wi != null).ToArray();
CreateXUnitWorkItems.cs (1)
80XUnitWorkItems = (await Task.WhenAll(XUnitProjects.Select(PrepareWorkItem))).Where(wi => wi != null).ToArray();
GetHelixWorkItems.cs (1)
34WorkItems = (await Task.WhenAll(Jobs.Select(j => GetWorkItemsAsync(j, cancellationToken))).ConfigureAwait(false)).SelectMany(r => r).ToArray();
Microsoft.DotNet.Internal.DependencyInjection.Testing (1)
DependencyInjectionValidation.cs (1)
99.ToArray();
Microsoft.DotNet.MacOsPkg.Tests (1)
UnpackPackTests.cs (1)
250.ToArray();
Microsoft.DotNet.NuGetRepack.Tasks (1)
src\NuGetVersionUpdater.cs (1)
384throw new AggregateException(exceptions.ToArray());
Microsoft.DotNet.NuGetRepack.Tests (1)
VersionUpdaterTests.cs (1)
33}).ToArray();
Microsoft.DotNet.PackageTesting (4)
GetCompatiblePackageTargetFrameworks.cs (1)
49TestProjects = testProjects.Where(tfm => tfm.ItemSpec != "").ToArray();
NupkgParser.cs (1)
24.ToArray();
VerifyClosure.cs (2)
304var cycle = depStack.Reverse().ToArray(); 466return references.ToArray();
Microsoft.DotNet.SharedFramework.Sdk (6)
src\CreateFrameworkListFile.cs (1)
65.ToArray();
src\GeneratePlatformManifestEntriesFromFileList.cs (1)
42}).ToArray();
src\GeneratePlatformManifestEntriesFromTemplate.cs (1)
97}).ToArray();
src\Microsoft.DotNet.PackageTesting\VerifyClosure.cs (2)
304var cycle = depStack.Reverse().ToArray(); 466return references.ToArray();
src\ValidateFileVersions.cs (1)
80.ToArray();
Microsoft.DotNet.SignCheck (1)
SignCheckTask.cs (1)
114foreach (var checkFile in InputFiles.Select(s => s.ItemSpec).ToArray())
Microsoft.DotNet.SignCheckLibrary (2)
Interop\PortableExecutable\PortableExecutableHeader.cs (1)
293var sections = ImageSectionHeaders.ToArray();
Verification\Exclusions.cs (1)
122IEnumerable<Exclusion> doNotSignExclusions = _exclusions.Where(e => e.Comment.Contains("DO-NOT-SIGN")).ToArray();
Microsoft.DotNet.SignTool (5)
src\BatchSignUtil.cs (2)
126var filesToSign = files.Where(fileInfo => fileInfo.SignInfo.ShouldSign).ToArray(); 155Path.GetExtension(fileInfo.FullPath) == ".exe").ToArray();
src\SignToolTask.cs (3)
255ItemsToSign.OrderBy(i => i.GetMetadata(SignToolConstants.CollisionPriorityId)).ToArray(), 280ItemsToSkipStrongNameCheck?.Select(i => i.ItemSpec).ToArray(), 311.ToArray();
Microsoft.DotNet.SourceBuild.Tasks (33)
src\ReadNuGetPackageInfos.cs (1)
40.ToArray();
src\UsageReport\UsageData.cs (4)
50.ToArray(), 54.ToArray(), 58.ToArray(), 62.ToArray()
src\UsageReport\ValidateUsageAgainstBaseline.cs (9)
128used.Usages = used.Usages.Distinct().ToArray(); 162.ToArray(); 172.ToArray(); 174actual.Usages = actual.Usages.Except(ignoredUsages).ToArray(); 179return new Comparison<T>(actual.ToArray(), baseline.ToArray()); 192Added = actual.Except(baseline).ToArray(); 193Removed = baseline.Except(actual).ToArray(); 194Unchanged = actual.Intersect(baseline).ToArray();
src\UsageReport\WritePackageUsageData.cs (12)
91.ToArray(); 105.ToArray(); 112.ToArray(); 117.ToArray(); 122.ToArray(); 127.ToArray(); 136.ToArray(); 144.ToArray(); 206.ToArray(); 240.ToArray(); 251.ToArray() 280.ToArray();
src\UsageReport\WriteUsageReports.cs (5)
155.ToArray(); 213.ToArray(); 219Built = pvp.PackageVersionProp.Except(prev.PackageVersionProp).ToArray() 221.ToArray(); 255.ToArray();
src\WriteBuildOutputProps.cs (2)
65.ToArray(); 73}).ToArray();
Microsoft.DotNet.SourceBuild.Tasks.Tests (3)
ValidateUsageAgainstBaselineTests.cs (3)
28Usages = ids.Select(SimpleUsage).ToArray() 86baseline.Usages.Skip(1).Select(u => u.PackageIdentity).ToArray(), 87data.ActualUsageData.Usages.Select(u => u.PackageIdentity).ToArray());
Microsoft.DotNet.VersionTools (26)
Automation\DependencyUpdateResults.cs (1)
26var orderedInfos = UsedInfos.OrderBy(info => info.SimpleName).ToArray();
Automation\DependencyUpdateUtils.cs (1)
32.ToArray();
Automation\GitHubVersionsRepoUpdater.cs (1)
68NupkgInfo[] packages = CreatePackageInfos(packagePaths).ToArray();
Automation\LocalVersionsRepoUpdater.cs (1)
47NupkgInfo[] packages = CreatePackageInfos(packagePaths).ToArray();
Automation\PullRequestCreator.cs (2)
186.ToArray(); 196.ToArray());
Automation\VstsApi\VstsAdapterClient.cs (1)
225.ToArray();
BuildManifest\BuildManifestClient.cs (5)
98.ToArray(); 147string[] changedSemaphorePaths = change.SemaphorePaths.ToArray(); 165.ToArray(); 234.ToArray(); 276.ToArray();
BuildManifest\Model\OrchestratedBuildModel.cs (1)
30EndpointModel[] feeds = Endpoints.Where(e => e.IsOrchestratedBlobFeed).ToArray();
BuildManifest\Model\PackageArtifactModel.cs (1)
23}).ToArray();
BuildManifest\Model\XElementParsingExtensions.cs (2)
38.ToArray(); 45var missing = requiredAttributes?.Where(r => !attributes.ContainsKey(r)).ToArray();
Dependencies\BuildManifest\OrchestratedBuildIdentityMatch.cs (1)
22.ToArray();
Dependencies\BuildOutput\BuildDependencyInfo.cs (1)
47.ToArray();
Dependencies\BuildOutput\OrchestratedBuild\FileOrchestratedBuildCustomUpdater.cs (1)
21.ToArray());
Dependencies\BuildOutput\OrchestratedBuild\FileRegexOrchestratedBuildCustomUpdater.cs (1)
24.ToArray());
Dependencies\BuildOutput\ProjectJsonUpdater.cs (2)
29.ToArray(); 74.ToArray();
Dependencies\BuildOutput\ToolVersionsUpdater.cs (1)
21.ToArray();
Dependencies\Submodule\LatestCommitSubmoduleUpdater.cs (1)
48.ToArray();
Dependencies\Submodule\SubmoduleDependencyInfo.cs (1)
27.ToArray();
Util\GitCommand.cs (1)
106CommandResult result = Create(new[] { "-C", path, "rev-parse" }.Concat(args).ToArray())
Microsoft.DotNet.VersionTools.Tasks (8)
TraceListenerCollectionExtensions.cs (1)
33.ToArray();
UpdateDependencies.cs (2)
14CreateUpdaters().ToArray(), 15CreateLocalDependencyInfos().ToArray());
UpdateToRemoteDependencies.cs (2)
68CreateUpdaters().ToArray(), 69CreateDependencyInfos(true, versionsCommitHash).ToArray());
VerifyDependencies.cs (3)
17CreateUpdaters().ToArray(), 18CreateLocalDependencyInfos().ToArray()) 19.ToArray();
Microsoft.DotNet.XUnitAssert.Tests (2)
MemoryAssertsTests.cs (1)
405 var ex = Record.Exception(() => Assert.DoesNotContain(Memory<int>.Empty, data.ToArray().Memoryify()));
SpanAssertsTests.cs (1)
405 var ex = Record.Exception(() => Assert.DoesNotContain(Span<int>.Empty, data.ToArray().Spanify()));
Microsoft.DotNet.XUnitExtensions (6)
Discoverers\ConditionalClassDiscoverer.cs (1)
38object[] conditionArguments = traitAttribute.GetConstructorArguments().ToArray();
Discoverers\ConditionalFactDiscoverer.cs (1)
18if (ConditionalTestDiscoverer.TryEvaluateSkipConditions(discoveryOptions, DiagnosticMessageSink, testMethod, factAttribute.GetConstructorArguments().ToArray(), out string skipReason, out ExecutionErrorTestCase errorTestCase))
Discoverers\ConditionalTheoryDiscoverer.cs (2)
22if (ConditionalTestDiscoverer.TryEvaluateSkipConditions(discoveryOptions, DiagnosticMessageSink, testMethod, theoryAttribute.GetConstructorArguments().ToArray(), out string skipReason, out ExecutionErrorTestCase errorTestCase)) 39if (!ConditionalTestDiscoverer.TryEvaluateSkipConditions(discoveryOptions, DiagnosticMessageSink, testMethod, theoryAttribute.GetConstructorArguments().ToArray(), out skipReason, out ExecutionErrorTestCase errorTestCase))
XunitParallelTheoryTestCaseRunner.cs (2)
99methodToRun = methodToRun.MakeGenericMethod(resolvedTypes.Select(t => ((IReflectionTypeInfo)t).Type).ToArray()); 102Type[] parameterTypes = methodToRun.GetParameters().Select(p => p.ParameterType).ToArray();
Microsoft.Extensions.Caching.Hybrid (1)
Internal\DefaultHybridCache.cs (1)
88var factories = services.GetServices<IHybridCacheSerializerFactory>().ToArray();
Microsoft.Extensions.Caching.Hybrid.Tests (1)
SizeTests.cs (1)
27string expected = new("simple value".ToArray());
Microsoft.Extensions.Compliance.Abstractions (1)
Classification\DataClassificationSet.cs (1)
114var a = _classifications.ToArray();
Microsoft.Extensions.DependencyModel (17)
CompilationLibrary.cs (1)
37Assemblies = assemblies.ToArray();
CompilationOptions.cs (1)
65Defines = defines.ToArray();
DependencyContext.cs (3)
33CompileLibraries = compileLibraries.ToArray(); 34RuntimeLibraries = runtimeLibraries.ToArray(); 35RuntimeGraph = runtimeGraph.ToArray();
DependencyContextJsonReader.cs (4)
209CreateLibraries(compileTarget?.Libraries, false, libraryStubs).Cast<CompilationLibrary>().ToArray(), 210CreateLibraries(runtimeTarget.Libraries, true, libraryStubs).Cast<RuntimeLibrary>().ToArray(), 790.ToArray(); 802.ToArray();
DependencyContextPaths.cs (1)
54.ToArray();
Library.cs (1)
61Dependencies = dependencies.ToArray();
RuntimeAssetGroup.cs (4)
19_assetPaths = assetPaths.ToArray(); 25_runtimeFiles = runtimeFiles.ToArray(); 45return _runtimeFiles!.Select(file => file.Path).ToArray(); 61return _assetPaths!.Select(path => new RuntimeFile(path, null, null)).ToArray();
RuntimeFallbacks.cs (1)
25Fallbacks = fallbacks.ToArray();
RuntimeLibrary.cs (1)
113ResourceAssemblies = resourceAssemblies.ToArray();
Microsoft.Extensions.Diagnostics.HealthChecks (2)
DefaultHealthCheckService.cs (1)
45registrations = registrations.Where(predicate).ToArray();
HealthCheckPublisherHostedService.cs (1)
48_publishers = publishers.ToArray();
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (3)
HealthCheckPublisherHostedServiceTest.cs (3)
386var entries = publisher.Entries.SelectMany(e => e.report.Entries.Select(e2 => e2.Key)).OrderBy(k => k).ToArray(); 641var entries = publishers[i].Entries.SelectMany(e => e.report.Entries.Select(e2 => e2.Key)).OrderBy(k => k).ToArray(); 657var entries = publishers[i].Entries.SelectMany(e => e.report.Entries.Select(e2 => e2.Key)).OrderBy(k => k).ToArray();
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
Linux\OSFileSystem.cs (1)
31.ToArray();
ResourceMonitorService.cs (1)
78_publishers = publishers.ToArray();
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (2)
Linux\Resources\HardcodedValueFileSystem.cs (1)
42.ToArray();
ResourceMonitoringExtensionsTests.cs (1)
196var trackers = host.Services.GetServices<IResourceMonitor>().ToArray();
Microsoft.Extensions.Diagnostics.Testing (1)
Metrics\MetricCollector.cs (1)
112var str = string.Join(", ", _supportedTs.Select(t => t.Name).ToArray());
Microsoft.Extensions.FileProviders.Composite (1)
CompositeFileProvider.cs (1)
36_fileProviders = fileProviders.ToArray();
Microsoft.Extensions.FileProviders.Embedded (3)
EmbeddedFileProvider.cs (1)
25.Where(c => c != '/' && c != '\\').ToArray();
Manifest\EmbeddedFilesManifest.cs (1)
16.Where(c => c != Path.DirectorySeparatorChar && c != Path.AltDirectorySeparatorChar).ToArray();
Manifest\ManifestDirectoryInfo.cs (1)
51IEnumerable<IFileInfo> EnsureEntries() => _entries ??= ResolveEntries().ToArray();
Microsoft.Extensions.FileProviders.Embedded.Tests (7)
Manifest\TestEntry.cs (3)
34var files = Children.Where(c => c.IsFile).ToArray(); 35var otherFiles = Children.Where(c => !c.IsFile).SelectMany(d => d.GetFiles()).ToArray(); 37return files.Concat(otherFiles).ToArray();
ManifestEmbeddedFileProviderTests.cs (3)
261var contents = provider.GetDirectoryContents("wwwroot").ToArray(); 286var contents = provider.GetDirectoryContents(".").ToArray(); 310var contents = provider.GetDirectoryContents(".").ToArray();
TestAssembly.cs (1)
45Files = entry.GetFiles().Select(f => f.ResourcePath).ToArray();
Microsoft.Extensions.FileProviders.Physical (2)
Internal\PathUtils.cs (2)
15.Where(c => c != Path.DirectorySeparatorChar && c != Path.AltDirectorySeparatorChar).ToArray(); 18.Where(c => c != '*' && c != '|' && c != '?').ToArray();
Microsoft.Extensions.FileSystemGlobbing (2)
Internal\MatcherContext.cs (2)
42_includePatternContexts = includePatterns.Select(pattern => pattern.CreatePatternContextForInclude()).ToArray(); 43_excludePatternContexts = excludePatterns.Select(pattern => pattern.CreatePatternContextForExclude()).ToArray();
Microsoft.Extensions.Http (2)
DefaultHttpClientFactory.cs (1)
76_filters = filters.ToArray();
HttpMessageHandlerBuilder.cs (1)
89IReadOnlyList<DelegatingHandler> additionalHandlersList = additionalHandlers as IReadOnlyList<DelegatingHandler> ?? additionalHandlers.ToArray();
Microsoft.Extensions.Http.Diagnostics (1)
Logging\Internal\HttpClientLogger.cs (1)
61_enrichers = enrichers.Where(static x => x is not null).ToArray();
Microsoft.Extensions.Http.Diagnostics.Tests (2)
Logging\HttpClientLoggingTagNamesTest.cs (1)
29.ToArray();
Logging\Internal\RandomStringGenerator.cs (1)
20.Select(s => s[_random.Next(s.Length)]).ToArray());
Microsoft.Extensions.Http.Resilience.PerformanceTests (2)
HttpClientFactory.cs (2)
98}).ToArray(); 121}).ToArray();
Microsoft.Extensions.Http.Resilience.Tests (4)
Routing\OrderedRoutingStrategyTest.cs (1)
109return CreateGroup(endpoints.Select(v => new WeightedUriEndpoint { Uri = new Uri(v) }).ToArray());
Routing\RoutingStrategyTest.cs (2)
62var routes = ConfigureMinRoutes(Builder).ToArray(); 64var urls = CollectUrls(CreateStrategy()).ToArray();
Routing\WeightedRoutingStrategyTest.cs (1)
169return CreateGroup(endpoints.Select(v => new WeightedUriEndpoint { Uri = new Uri(v) }).ToArray());
Microsoft.Extensions.Localization.Tests (2)
LocalizationServiceCollectionExtensionsTest.cs (1)
51.ToArray();
ResourceManagerStringLocalizerTest.cs (1)
198localizer.GetAllStrings(includeParentCultures).ToArray();
Microsoft.Extensions.Options.Contextual (4)
Internal\ContextualOptionsFactory.cs (4)
43_loaders = loaders.ToArray(); 44_setups = setups as IConfigureOptions<TOptions>[] ?? setups.ToArray(); 45_postConfigures = postConfigures as IPostConfigureOptions<TOptions>[] ?? postConfigures.ToArray(); 46_validations = validations as IValidateOptions<TOptions>[] ?? validations.ToArray();
Microsoft.Extensions.Options.SourceGeneration (3)
Emitter.cs (3)
159.ToArray(); 620var attributesData = _optionsSourceGenContext.AttributesToGenerate.OrderBy(static kvp => kvp.Key, StringComparer.Ordinal).ToArray(); 784.ToArray();
Microsoft.Extensions.ServiceDiscovery (2)
ServiceDiscoveryOptions.cs (2)
44return schemes.ToArray(); 64return allowedSchemes.ToArray();
Microsoft.Extensions.Telemetry (2)
Latency\Internal\LatencyContextRegistrySet.cs (1)
61return keys.ToArray();
Logging\ExtendedLoggerFactory.cs (1)
76_enrichers = enrichers.Select<ILogEnricher, Action<IEnrichmentTagCollector>>(e => e.Enrich).ToArray();
Microsoft.Extensions.Telemetry.Abstractions.Tests (2)
Logging\LoggerMessageStateTests.cs (2)
144Assert.Equal(lms.TagArray.ToArray(), list.ToArray());
Microsoft.Extensions.Telemetry.Tests (2)
Enrichment\ApplicationEnricherTagTests.cs (1)
30.ToArray();
Enrichment\ProcessEnricherDimensionsTests.cs (1)
29.ToArray();
Microsoft.Gen.MetricsReports (2)
MetricsReportsGenerator.cs (2)
113.ToArray())); 115return reportedMetrics.ToArray();
Microsoft.Interop.JavaScript.JSImportGenerator (4)
JSGeneratorFactory.cs (1)
89return Create(info, context, isToJs, function.KnownType, function.ArgsTypeInfo.Select(a => a.KnownType).ToArray(), jsMarshalingInfo.JSType, jsMarshalingInfo.JSTypeArguments, fail);
JSManagedTypeInfo.cs (2)
149.ToArray(); 160.ToArray();
Marshaling\FuncJSGenerator.cs (1)
46.ToArray();
Microsoft.Interop.SourceGeneration (1)
ManualTypeMarshallingHelper.cs (1)
155var attrs = entryPointType.GetAttributes().Where(attr => attr.AttributeClass.ToDisplayString() == TypeNames.CustomMarshallerAttribute).ToArray();
Microsoft.ML.AutoML (54)
API\AutoCatalog.cs (7)
824&& !(data.Schema[c.ColumnIndex].Type is VectorDataViewType vt && vt.ItemType == BooleanDataViewType.Instance)).ToArray(); 828var textFeatureColumnNames = textFeatures.Select(c => data.Schema[c.ColumnIndex].Name).ToArray(); 829var numericFeatureColumnNames = numericFeatures.Select(c => data.Schema[c.ColumnIndex].Name).ToArray(); 830var catalogFeatureColumnNames = catalogFeatures.Select(c => data.Schema[c.ColumnIndex].Name).ToArray(); 831var imagePathColumnNames = imagePathFeatures.Select(c => data.Schema[c.ColumnIndex].Name).ToArray(); 832var booleanFeatureColumnNames = booleanFeatures.Select(c => data.Schema[c.ColumnIndex].Name).ToArray(); 862InputColumnNames = textFeatureColumnNames.Concat(numericFeatureColumnNames).Concat(catalogFeatureColumnNames).Concat(imagePathColumnNames).Concat(booleanFeatureColumnNames).ToArray(),
AutoMLExperiment\ITrialResultManager.cs (1)
173var feature = parameter.DenseValues().ToArray();
ColumnInference\ColumnGroupingInference.cs (1)
78var ranges = GetRanges(g.Select(t => t.Item1.ColumnIndex).ToArray());
ColumnInference\ColumnInferenceApi.cs (1)
91Columns = columnResults.ToArray(),
ColumnInference\ColumnTypeInference.cs (3)
317cols[i] = new IntermediateColumn(data.Select(x => x[i]).ToArray(), i); 368var outCols = cols.Select(x => new Column(x.ColumnId, x.Name, x.SuggestedType)).ToArray(); 370return InferenceResult.Success(outCols, args.HasHeader, cols.Select(col => col.RawData).ToArray());
ColumnInference\PurposeInference.cs (1)
279return allColumns.Select(c => c.GetColumn()).ToArray();
ColumnInference\TextFileSample.cs (1)
145.ToArray();
Experiment\Runners\CrossValSummaryRunner.cs (1)
127perClassLogLoss: (metricsClosestToAvg as MulticlassClassificationMetrics).PerClassLogLoss.ToArray(),
PipelineSuggesters\PipelineSuggester.cs (1)
143Values = dp.Options.Select(o => o.ToString()).ToArray()
SweepableEstimator\MultiModelPipeline.cs (1)
40internal string[] PipelineIds { get => Schema.ToTerms().Select(t => t.ToString()).ToArray(); }
SweepableEstimator\SweepablePipeline.cs (1)
39var schemaOptions = _schema.ToTerms().Select(t => t.ToString()).ToArray();
Sweepers\ISweeper.cs (2)
145return string.Join(" ", _parameterValues.Select(kvp => string.Format("{0}={1}", kvp.Value.Name, kvp.Value.ValueText)).ToArray()); 246_metricDistribution = metricDistribution.ToArray();
Sweepers\SmacSweeper.cs (1)
212return retainedConfigs.Take(numOfCandidates).ToArray();
Sweepers\SweeperBase.cs (2)
40SweepParameters = args.SweptParameters.ToArray(); 68return result.ToArray();
TransformInference\TransformInference.cs (4)
363var indicatorColNames = GetNewColumnNames(columnsArr.Select(c => $"{c}_MissingIndicator"), columns).ToArray(); 399.ToArray(); 404SuggestedTransform[] suggestions = expert.Apply(intermediateCols, task).ToArray(); 472return ColumnConcatenatingExtension.CreateSuggestedTransform(context, concatColNames.Distinct().ToArray(), DefaultColumnNames.Features);
Tuner\EciCfoTuner.cs (1)
31var pipelineSchemas = sweepablePipeline.Schema.ToTerms().Select(t => t.ToString()).ToArray();
Tuner\Flow2.cs (1)
153}).ToArray();
Tuner\PipelineProposer.cs (3)
86_pipelineSchemas = _sweepablePipeline.Schema.ToTerms().Select(t => t.ToString()).ToArray(); 102var probabilities = _pipelineSchemas.Select(id => _eci[id]).ToArray(); 110probabilities = probabilities.Select(p => p + double.Epsilon).ToArray();
Tuner\SmacTuner.cs (6)
128features[i] = _searchSpace.MappingToFeatureSpace(r.TrialSettings.Parameter).Select(f => Convert.ToSingle(f)).ToArray(); 182return eiChallengers.Concat(randomChallengers).ToArray(); 219return retainedConfigs.Take(numOfCandidates).ToArray(); 239var eis = neighborhood.Select(p => EvaluateConfigurationsByEI(forest, bestLoss, p)).ToArray(); 264var newFeatures = features.Select(x => x).ToArray(); 322var transformedParams = _searchSpace.MappingToFeatureSpace(parameter).Select(p => Convert.ToSingle(p)).ToArray();
Utils\ArrayMath.cs (14)
15return xArray.Select(x => x + y).ToArray(); 36return Enumerable.Range(0, array.Length).OrderBy(index => array[index]).ToArray(); 42return xArray.Select(x => Math.Min(Math.Max(x, min), max)).ToArray(); 48return xArray.Select(x => x / y).ToArray(); 54return indices.Select(index => array[index]).ToArray(); 82return xArray.Select(x => x * y).ToArray(); 88return xArray.Select(x => Math.Log(x)).ToArray(); 94return Enumerable.Zip(xArray, yArray, (x, y) => x * y).ToArray(); 107return Enumerable.Zip(xArray, yArray, (x, y) => x + y).ToArray(); 117return array.Select(v => 1 / v).ToArray(); 123return array.Select(v => v / sum).ToArray(); 133var diff = Enumerable.Range(0, truth.Length).Select(i => truth[i] - pred[i]).ToArray(); 148var diff = Enumerable.Range(0, truth.Length).Select(i => truth[i] - pred[i]).ToArray(); 162var diff = Enumerable.Range(0, truth.Length).Select(i => Math.Abs(truth[i] - pred[i])).ToArray();
Utils\SplitUtil.cs (1)
67return context.Transforms.DropColumns(columnsToDrop.ToArray()).Fit(data).Transform(data);
Microsoft.ML.AutoML.Samples (2)
AutoMLExperiment.cs (1)
1020.1f).ToArray()
Sweepable\SweepableLightGBMBinaryExperiment.cs (1)
1290.1f).ToArray()
Microsoft.ML.AutoML.SourceGenerator (6)
EstimatorTypeGenerator.cs (2)
38.ToArray(); 43.ToArray();
SearchSpaceGenerator.cs (1)
34.ToArray();
SweepableEstimatorFactoryGenerator.cs (2)
35.ToArray(); 40.ToArray();
SweepableEstimatorGenerator.cs (1)
33.ToArray();
Microsoft.ML.AutoML.Tests (3)
SweepableExtensionTest.cs (3)
149.Append(context.Auto().MultiClassification().Estimators.Select(kv => kv.Value).ToArray()); 162.Append(context.Auto().MultiClassification().Estimators.Select(kv => kv.Value).ToArray()); 175.Append(context.Auto().MultiClassification().Estimators.Select(kv => kv.Value).ToArray());
Microsoft.ML.CodeGenerator (1)
CodeGenerator\CSharp\CSharpSolution.cs (1)
29Utilities.Utils.AddProjectsToSolution(solutionPath, this.Select((project) => project.Name).ToArray());
Microsoft.ML.Core (13)
CommandLine\ArgumentAttribute.cs (1)
95return _shortName.Split(',').Select(name => name.Trim()).ToArray();
CommandLine\CmdParser.cs (1)
1542settings = values.Select(x => (string)x.Value).ToArray();
ComponentModel\ComponentCatalog.cs (6)
383return kindAttr.Kinds.Concat(baseKinds).ToArray(); 742.ToArray(); 752return _signatures.Select(kvp => kvp.Key).ToArray(); 785.ToArray(); 794.ToArray(); 804.ToArray();
Data\IEstimator.cs (1)
132_columns = columns.ToArray();
Data\ProgressReporter.cs (2)
183foreach (var subChannel in _subChannels.Values.ToArray().OrderBy(x => x.Level)) 450unseen = _infos.Where(x => !seen.Contains(x.Index)).ToArray();
EntryPoints\ModuleArgs.cs (1)
60Aliases = parts.Select(x => x.Trim()).ToArray();
Utilities\Utils.cs (1)
844invMap = Enumerable.Repeat(-1, lim).ToArray<int>();
Microsoft.ML.Core.Tests (31)
UnitTests\TestEntryPoints.cs (1)
6886var ndcgArray = ndcgBuffer.DenseValues().ToArray();
UnitTests\TestUtilities.cs (12)
27int[] x = Enumerable.Range(0, 10).ToArray(); 88double[] x = Enumerable.Range(0, 1000000).Select(i => (double)i).ToArray(); 122int[] x = Enumerable.Range(0, 10).ToArray(); 164int[] x = Enumerable.Range(0, 10).ToArray(); 165int[] y = Enumerable.Range(0, 10).ToArray(); 187int[] xOfDifferentLength = Enumerable.Range(0, 9).ToArray(); 236float[] x = Enumerable.Range(0, 10).Select(i => (float)i).ToArray(); 237float[] y = Enumerable.Range(0, 10).Select(i => (float)i).ToArray(); 259float[] xOfDifferentLength = Enumerable.Range(0, 9).Select(i => (float)i).ToArray(); 272double[] x = Enumerable.Range(0, 10).Select(i => (double)i).ToArray(); 273double[] y = Enumerable.Range(0, 10).Select(i => (double)i).ToArray(); 295double[] xOfDifferentLength = Enumerable.Range(0, 9).Select(i => (double)i).ToArray();
UnitTests\TestVBuffer.cs (18)
140var values = Enumerable.Range(0, length).Select(x => x + 0.1f).ToArray(); 141var indicies = Enumerable.Range(0, 15).Where(x => x % 2 == 0).ToArray(); 143float[] aDense = a.DenseValues().ToArray(); 144float[] a2Values = aDense.Select(x => x + 1).ToArray(); 163var values = Enumerable.Range(0, length).Select(x => x + 0.1f).ToArray(); 164var indicies = Enumerable.Range(0, 15).Where(x => x % 2 == 0).ToArray(); 166float[] aDense = a.DenseValues().ToArray(); 167float[] a2Values = aDense.Select(x => x + 1).ToArray(); 183float[] aDense = a.DenseValues().ToArray(); 184float[] a2Values = aDense.Select(x => x + 1).ToArray(); 202float[] aDense = a.DenseValues().ToArray(); 226float[] aDense = a.DenseValues().ToArray(); 227float[] a2Values = aDense.Select(x => x).ToArray(); 284float[] values = Enumerable.Range(startRange, 10).Select(i => (float)i).ToArray(); 308float[] values = Enumerable.Range(1, 10).Select(i => (float)i).ToArray(); 327int[] indices = aIndices.Union(b.Items().Select(iv => iv.Key)).OrderBy(i => i).ToArray(); 372int[] indices = a.Items().Select(iv => iv.Key).Union(b.Items().Select(iv => iv.Key)).OrderBy(i => i).ToArray(); 504.Union(b.Items().Select(iv => iv.Key)).Distinct().OrderBy(x => x).ToArray();
Microsoft.ML.Data (132)
Commands\CrossValidationCommand.cs (5)
175}).ToArray(); 216if (!TryGetOverallMetrics(tasks.Select(t => t.Result.Metrics).ToArray(), out var overallList)) 221eval.PrintAdditionalMetrics(ch, tasks.Select(t => t.Result.Metrics).ToArray()); 222Dictionary<string, IDataView>[] metricValues = tasks.Select(t => t.Result.Metrics).ToArray(); 229ImplOptions.OutputExampleFoldIndex, tasks.Select(t => t.Result.PerInstanceResults).ToArray(), out var variableSizeVectorColumnNames);
Commands\SaveDataCommand.cs (1)
135.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries).ToArray();
Commands\TypeInfoCommand.cs (1)
87var kinds = Enum.GetValues(typeof(InternalDataKind)).Cast<InternalDataKind>().Distinct().OrderBy(k => k).ToArray();
Data\SchemaDefinition.cs (3)
162.ToArray(); 169var cursorChannelAttrMembers = (cursorChannelAttrFields as IEnumerable<MemberInfo>).Concat(cursorChannelAttrProperties).ToArray(); 345return (fieldInfos as IEnumerable<MemberInfo>).Concat(propertyInfos).ToArray();
DataLoadSave\Binary\BinaryLoader.cs (2)
992int[] toSave = cols.Where(x => x.isSavable).Select(x => x.col).ToArray(); 993unsavableColIndices = cols.Where(x => !x.isSavable).Select(x => x.col).ToArray();
DataLoadSave\Database\DatabaseLoader.cs (3)
113var memberInfos = (fieldInfos as IEnumerable<MemberInfo>).Concat(propertyInfos).ToArray(); 138column.Source = indexMappingAttr.Sources.Select((source) => Range.FromTextLoaderRange(source)).ToArray(); 142column.Source = nameMappingAttr.Sources.Select((source) => new Range(source)).ToArray();
DataLoadSave\EstimatorChain.cs (1)
121bool[] newNeedCache = _needCacheAfter.ToArray();
DataLoadSave\LegacyCompositeDataLoader.cs (2)
142.ToArray(); 534.ToArray();
DataLoadSave\Text\TextLoader.cs (3)
1217_separators = separators.ToArray(); 1235_separators = separators.ToArray(); 1581var memberInfos = (fieldInfos as IEnumerable<MemberInfo>).Concat(propertyInfos).ToArray();
DataLoadSave\TransformerChain.cs (5)
89_transformers = transformers?.ToArray() ?? new ITransformer[0]; 90_scopes = scopes?.ToArray() ?? new TransformerScope[0]; 114_transformers = transformers.ToArray(); 115_scopes = transformers.Select(x => TransformerScope.Everything).ToArray(); 297var roleMappings = roles.ToArray();
DataView\CacheDataView.cs (1)
663int[] actives = Enumerable.Range(0, _parent.Schema.Count).Where(pred).ToArray();
DataView\CompositeRowToRowMapper.cs (1)
58var activeIndices = activeColumns.Select(c => c.Index).ToArray();
DataView\InternalSchemaDefinition.cs (2)
111var parameterInfos = Generator.GetMethodInfo().GetParameters().ToArray(); 112var parameterTypes = (from pInfo in parameterInfos select pInfo.ParameterType).ToArray();
DataView\Transposer.cs (1)
104columns = columnSet.ToArray();
DataView\TypedCursor.cs (1)
217.ToArray();
DataView\ZipDataView.cs (3)
38var srcArray = sources.ToArray(); 52_zipBinding = new ZipBinding(_sources.Select(x => x.Schema).ToArray()); 88.Select((dv, i) => srcPredicates[i] == null ? GetMinimumCursor(dv) : dv.GetRowCursor(dv.Schema.Where(x => srcPredicates[i](x.Index)), null)).ToArray();
Dirty\ChooseColumnsByIndexTransform.cs (1)
89sources = Enumerable.Range(0, sourceSchema.Count).Except(selectedColumnIndexes).ToArray();
EntryPoints\EntryPointNode.cs (3)
111_values = variables.Select(v => v.VarName).ToArray(); 345.ToArray(); 498var missing = _inputBuilder.GetMissingValues().Except(_inputBindingMap.Keys).ToArray();
EntryPoints\InputBuilder.cs (2)
510var missing = inputBuilder.GetMissingValues().ToArray(); 571var missing = inputBuilder.GetMissingValues().ToArray();
EntryPoints\PredictorModelImpl.cs (2)
53_roleMappings = roles.ToArray(); 132return keyValues.DenseValues().Select(v => v.ToString()).ToArray();
Evaluators\AucAggregator.cs (1)
419var sample = Reservoir.GetSample().ToArray();
Evaluators\EvaluatorBase.cs (1)
311warnings.Select(s => s.AsMemory()).ToArray());
Evaluators\EvaluatorUtils.cs (14)
494var reconciledSlotNames = new VBuffer<ReadOnlyMemory<char>>(slotNames.Count, slotNames.Keys.Select(k => k.AsMemory()).ToArray()); 613var keyValueMappers = Utils.MarshalInvoke(MapKeys<int>, keyValueType.RawType, views.Select(view => view.Schema).ToArray(), columnName, false, indices, keyNames); 615var keyNamesVBuffer = new VBuffer<ReadOnlyMemory<char>>(keyNames.Count, keyNames.Keys.ToArray()); 681var keyValueMappers = Utils.MarshalInvoke(MapKeys<int>, keyValueType.RawType, views.Select(view => view.Schema).ToArray(), columnName, true, columnIndices, keyNames); 683var keyNamesVBuffer = new VBuffer<ReadOnlyMemory<char>>(keyNames.Count, keyNames.Keys.ToArray()); 771var foldDataViews = perInstance.Select(getPerInstance).ToArray(); 780return foldDataViews.ToArray(); 913idv = new ChooseColumnsByIndexTransform(env, new ChooseColumnsByIndexTransform.Options() { Drop = true, Indices = hidden.ToArray() }, idv); 918idv = new ChooseColumnsByIndexTransform(env, new ChooseColumnsByIndexTransform.Options() { Drop = true, Indices = hidden.ToArray() }, idv); 942return AppendRowsDataView.Create(env, null, views.Select(keyToValue).Select(selectDropNonVarLenthCol).ToArray()); 1705sb.Append(GetOverallMetricsAsString(weightedAgg.Select(x => x.Sum).ToArray(), weightedAgg.Select(x => x.SumSq).ToArray(), numFolds, true, true, weightedAgg.Select(x => x.Name).ToList())); 1706sb.Append(GetOverallMetricsAsString(agg.Select(x => x.Sum).ToArray(), agg.Select(x => x.SumSq).ToArray(), numFolds, false, true, agg.Select(x => x.Name).ToList()));
Evaluators\MulticlassClassificationEvaluator.cs (3)
115names = Enumerable.Range(0, numClasses).Select(i => i.ToString().AsMemory()).ToArray(); 226dst = new VBuffer<ReadOnlyMemory<char>>(allTopK.First().Length, Enumerable.Range(1, allTopK.First().Length).Select(i => new ReadOnlyMemory<char>(i.ToString().ToCharArray())).ToArray()); 312public double[] AllTopKAccuracy => CumulativeSum(_seenRanks.Take(OutputTopKAcc ?? 0).Select(l => l / _numInstances)).ToArray();
TrainCatalog.cs (6)
256EvaluateNonCalibrated(x.Scores, labelColumnName), x.Scores, x.Fold)).ToArray(); 281Evaluate(x.Scores, labelColumnName), x.Scores, x.Fold)).ToArray(); 479Evaluate(x.Scores, labelColumnName: labelColumnName, featureColumnName: featuresColumnName), x.Scores, x.Fold)).ToArray(); 560Evaluate(x.Scores, labelColumnName), x.Scores, x.Fold)).ToArray(); 630Evaluate(x.Scores, labelColumnName), x.Scores, x.Fold)).ToArray(); 721Evaluate(x.Scores, labelColumnName, rowGroupColumnName), x.Scores, x.Fold)).ToArray();
Transforms\ColumnConcatenatingTransformer.cs (10)
89taggedColumn.Source = res.Source.Select(s => new KeyValuePair<string, string>(null, s)).ToArray(); 100column.Source = Source.Select(kvp => kvp.Value).ToArray(); 172_sources = inputColumnNames.ToArray(); 224=> _columns.Select(col => (outputColumnName: col.Name, inputColumnNames: col.Sources.Select(source => source.name).ToArray())).ToArray().AsReadOnly(); 243_columns = columns.ToArray(); 381.ToArray(); 401.ToArray(); 553_srcTypes = sources.Select(c => inputSchema[c].Type).ToArray(); 871protected override DataViewSchema.DetachedColumn[] GetOutputColumnsCore() => _columns.Select(x => x.MakeSchemaColumn()).ToArray();
Transforms\ColumnCopying.cs (1)
152var transformer = new ColumnCopyingTransformer(env, options.Columns.Select(x => (x.Name, x.Source)).ToArray());
Transforms\ColumnSelecting.cs (3)
291keepColumns = names.ToArray(); 293dropColumns = names.ToArray(); 367return new ColumnSelectingTransformer(env, names.ToArray(), null, keepHidden);
Transforms\ConversionsExtensionsCatalog.cs (4)
106var columnOptions = columns.Select(x => new TypeConvertingEstimator.ColumnOptions(x.OutputColumnName, outputKind, x.InputColumnName)).ToArray(); 163return new KeyToValueMappingEstimator(env, columns.Select(x => (x.OutputColumnName, x.InputColumnName)).ToArray()); 217var columnOptions = columns.Select(x => new KeyToVectorMappingEstimator.ColumnOptions(x.OutputColumnName, x.InputColumnName, outputCountVector)).ToArray(); 291var columnOptions = columns.Select(x => new ValueToKeyMappingEstimator.ColumnOptions(x.OutputColumnName, x.InputColumnName, maximumNumberOfKeys, keyOrdinality, addKeyValueAnnotationsAsText)).ToArray();
Transforms\ExtensionsCatalog.cs (1)
45infos.Select(info => (info.OutputColumnName, info.InputColumnName)).ToArray();
Transforms\Hashing.cs (1)
158return columns.Select(x => (x.Name, x.InputColumnName)).ToArray();
Transforms\KeyToValue.cs (2)
109var transformer = new KeyToValueMappingTransformer(env, options.Columns.Select(c => (c.Name, c.Source ?? c.Name)).ToArray()); 528var keys = Array.ConvertAll<int, long>(Enumerable.Range(1, _values.Length).ToArray(), item => Convert.ToInt64(item));
Transforms\KeyToVector.cs (2)
104return columns.Select(x => (x.Name, x.InputColumnName)).ToArray(); 125_columns = columns.ToArray();
Transforms\MetadataDispatcher.cs (1)
53_getters = getters != null ? getters.ToArray() : new GetterInfo[0];
Transforms\NormalizeColumn.cs (5)
319.ToArray(); 337.ToArray(); 357.ToArray(); 378.ToArray(); 400.ToArray();
Transforms\NormalizeColumnDbl.cs (4)
442get { return _m2.Select((m2, i) => Math.Sqrt(m2 / _cnz[i])).ToArray(); } 447get { return _m2.Select((m2, i) => Math.Sqrt(m2 / Math.Max(0, _cnz[i] - 1))).ToArray(); } 452get { return _m2.Select((m2, i) => m2 / _cnz[i]).ToArray(); } 457get { return _m2.Select((m2, i) => m2 / Math.Max(0, _cnz[i] - 1)).ToArray(); }
Transforms\NormalizeColumnSng.cs (4)
443get { return _m2.Select((m2, i) => Math.Sqrt(m2 / _cnz[i])).ToArray(); } 448get { return _m2.Select((m2, i) => Math.Sqrt(m2 / Math.Max(0, _cnz[i] - 1))).ToArray(); } 453get { return _m2.Select((m2, i) => m2 / _cnz[i]).ToArray(); } 458get { return _m2.Select((m2, i) => m2 / Math.Max(0, _cnz[i] - 1)).ToArray(); }
Transforms\Normalizer.cs (3)
314_columns = columns.Select(x => ColumnOptionsBase.Create(x.outputColumnName, x.inputColumnName, mode)).ToArray(); 328_columns = columns.ToArray(); 525: base(env.Register(nameof(NormalizingTransformer)), columns.Select(x => (x.Name, x.InputColumnName)).ToArray())
Transforms\SlotsDroppingTransformer.cs (3)
229Slots = column.Slots.Select(range => (range.Min, range.Max)).ToArray(); 316var columns = options.Columns.Select(column => new ColumnOptions(column)).ToArray(); 418=> columns.Select(c => (c.Name, c.InputColumnName ?? c.Name)).ToArray();
Transforms\TransformBase.cs (1)
556.ToArray();
Transforms\TypeConverting.cs (2)
181return columns.Select(x => (x.Name, x.InputColumnName)).ToArray(); 203_columns = columns.ToArray();
Transforms\ValueMapping.cs (13)
229builder.AddColumn(columnName, values.Select(x => x.ToString()).ToArray()); 245convertedValues.Add(converted.ToArray()); 266AddColumnWrapper(dataViewBuilder, keyColumnName, keyType, keys.ToArray()); 267AddColumnWrapper(dataViewBuilder, valueColumnName, valueType, values.ToArray()); 285AddColumnWrapper(dataViewBuilder, keyColumnName, keyType, keys.ToArray()); 299var metaKeys = valueSet.ToArray(); 306uint[] indices = values.Select((x) => Convert.ToUInt32(x)).ToArray(); 311ulong[] indices = values.Select((x) => Convert.ToUInt64(x)).ToArray(); 340AddColumnWrapper(dataViewBuilder, valueColumnName, valueType, values.ToArray()); 688(string outputColumnName, string inputColumnName)[] columns = options.Columns.Select(x => (x.Name, x.Source)).ToArray(); 971return _mapping.Keys.Cast<T>().ToArray(); 975return _mapping.Values.Cast<T>().ToArray(); 1004view = ColumnSelectingTransformer.CreateKeep(host, view, cols.Select(x => x.outputColumnName).ToArray());
Transforms\ValueToKeyMappingTransformer.cs (1)
215return columns.Select(x => (x.OutputColumnName, x.InputColumnName)).ToArray();
Utilities\StreamUtils.cs (3)
102var files = Directory.GetFiles(dir, right).OrderBy(f => f).ToArray(); 112var subs = Directory.GetDirectories(dir).OrderBy(f => f).ToArray(); 133var files = Directory.GetFiles(path, Path.GetFileName(currentPattern)).OrderBy(f => f).ToArray();
Microsoft.ML.DataView (2)
DataViewSchema.cs (1)
358return new Annotations(builder.ToSchema(), _items.Select(x => x.Getter).ToArray());
SchemaDebuggerProxy.cs (1)
22Columns = Enumerable.Range(0, schema.Count).Select(x => schema[x]).ToArray();
Microsoft.ML.Ensemble (10)
EntryPoints\CreateEnsemble.cs (2)
334var entries = zip.Entries.OrderBy(e => e.FullName).ToArray(); 382var entries = zip.Entries.OrderBy(e => e.FullName).ToArray();
PipelineEnsemble.cs (1)
429_inputCols = inputCols.ToArray();
Selector\SubModelSelector\BaseBestPerformanceSelector.cs (1)
35var sortedModels = models.ToArray();
Selector\SubModelSelector\BaseSubModelSelector.cs (1)
98model.Metrics = metrics.ToArray();
Trainer\Binary\EnsembleTrainer.cs (2)
100models.Select(k => new FeatureSubsetModel<float>((TDistPredictor)k)).ToArray(), combiner); 105models.Select(k => new FeatureSubsetModel<float>((TScalarPredictor)k)).ToArray(), combiner);
Trainer\EnsembleDistributionModelParameters.cs (1)
241averagedWeights = Models.SelectMany(model => model.Metrics).Where(m => m.Key == metric.Key).Select(m => (Single)m.Value).ToArray();
Trainer\Multiclass\MulticlassDataPartitionEnsembleTrainer.cs (1)
102models.Select(k => new FeatureSubsetModel<VBuffer<float>>((TVectorPredictor)k)).ToArray(),
Trainer\Regression\RegressionEnsembleTrainer.cs (1)
92models.Select(k => new FeatureSubsetModel<float>((TScalarPredictor)k)).ToArray(), combiner);
Microsoft.ML.EntryPoints (4)
FeatureCombiner.cs (1)
63var ktv = ConvertFeatures(feats.ToArray(), featNames, concatNames, ch, out cvt, out errCount);
JsonUtils\JsonManifestUtils.cs (2)
276return new JArray(inputs.OrderBy(x => x.Key).Select(x => x.Value).ToArray()); 304return new JArray(outputs.OrderBy(x => x.Key).Select(x => x.Value).ToArray());
ScoreColumnSelector.cs (1)
105var dropColumn = ColumnSelectingTransformer.CreateDrop(env, copyColumn, copyCols.Select(c => c.source).ToArray());
Microsoft.ML.Fairlearn (4)
Metrics\FairlearnMetricCatalog.cs (3)
78var truths = _eval.GetColumn<bool>(_labelColumn).ToArray(); 79var predicted = _eval.GetColumn<bool>(_predictedColumn).ToArray(); 80var scores = _eval.GetColumn<float>(_scoreColumn).ToArray();
Reductions\GridSearchTrialRunner.cs (1)
83var predictedLabel = eval.GetColumn<bool>("PredictedLabel").Select(b => b ? 1f : 0f).ToArray();
Microsoft.ML.FastTree (52)
Dataset\Dataset.cs (14)
294int[] queryIndices = docIndices.Select(d => DocToQuery[d]).ToArray(); 295ulong[] uniqueQueryIds = queryIndices.Distinct().Select(q => QueryIds[q]).ToArray(); 309DatasetSkeleton datasetSkeleton = new DatasetSkeleton(docIndices.Select(d => Ratings[d]).ToArray(), 312docIndices.Select(d => DocIds[d]).ToArray()); 333filteredDupeIds = docIndices.Select(i => dupeIds[i]).ToArray(); 341newAuxData[pair.Key] = pair.Value.GetSubset(pair.Value.IsQueryLevel ? queryIndices.Distinct().ToArray() : docIndices); 392var truncatedActiveFeatures = Enumerable.Repeat(true, NumFeatures).ToArray(); 635p => queries[p].SelectMany(q => Enumerable.Range(Boundaries[q], Boundaries[q + 1] - Boundaries[q])).ToArray() 663ratings[p] = assignment[p].Select(d => Ratings[d]).ToArray(); 664queryIds[p] = queries[p].Select(q => QueryIds[q]).ToArray(); 665docIds[p] = assignment[p].Select(d => DocIds[d]).ToArray(); 815int[] docLengths = parts.Select(x => x.NumDocs).ToArray(); 816int[] queryLengths = parts.Select(x => x.NumQueries).ToArray(); 828Array concatArray = ConcatArrays(partsDatas.Select(pd => pd.Data).ToArray(), isQuery ? queryLengths : docLengths, name);
Dataset\DatasetUtils.cs (1)
37uint[] valueMap = Enumerable.Range(0, ((int)maxLab) + 1).Select(x => (uint)x + 5).ToArray();
Dataset\Feature.cs (2)
275.Select(bins => new TsvFeature(bins, _valueMap, _name)).ToArray(); 306uint[] concatValueMap = Algorithms.MergeSortedUniqued(parts.Select(x => x.ValueMap).ToArray());
Dataset\OneHotFeatureFlock.cs (1)
26.ToArray();
Dataset\RepeatIntArray.cs (1)
202}).ToArray();
Dataset\SegmentIntArray.cs (1)
309}).ToArray();
Dataset\SingletonFeatureFlock.cs (1)
63.Select(bins => new SingletonFeatureFlock(bins, _binUpperBounds)).ToArray();
FastTree.cs (4)
1575FeatureMap = Enumerable.Range(0, NumFeatures).Where(f => BinUpperBounds[f].Length > 1).ToArray(); 1938FeatureFlockBase[] flocks = CreateFlocks(ch, pch).ToArray(); 2040FeatureMap = Enumerable.Range(0, NumFeatures).Where(f => BinUpperBounds[f].Length > 1).ToArray(); 3257return TrainedEnsemble.Trees.Select(k => new Tree(k)).ToArray();
FastTreeClassification.cs (2)
271GetClassificationLabelsFromRatings(ValidSet).ToArray(), _sigmoidParameter); 281bool[] labels = GetClassificationLabelsFromRatings(TestSets[t]).ToArray();
GamModelParameters.cs (5)
450var splitFeatures = Enumerable.Repeat(featureIndex, numInternalNodes).ToArray(); 482var binIndices = Enumerable.Range(0, numInternalNodes).ToArray(); 494thresholds: internalNodeIndices.Select(x => (float)binThresholds[binIndices[x]]).ToArray(), 536gtChild: gtChild.ToArray(), 726return new MetricsInfo(_version, EvaluateUtils.GetMetrics(metricsView).ToArray());
GamTrainer.cs (1)
430var finalResult = PruningTest.ComputeTests().ToArray()[PruningLossIndex];
Training\DocumentPartitioning.cs (3)
86.ToArray(); 104.ToArray(); 107_leafBegin = Enumerable.Range(0, 1).Concat(cumulativeLength).ToArray();
Training\OptimizationAlgorithms\GradientDescent.cs (1)
50Enumerable.Range(0, numberOfTrees).Where(t => (DropoutRng.NextDouble() < DropoutRate)).ToArray();
Training\Test.cs (2)
223var results = SimpleTest.ComputeTests().ToArray(); 246yield return SimpleTest.ComputeTests(scores).ToArray()[LossIndex];
TreeEnsemble\InternalRegressionTree.cs (1)
108CategoricalSplit = categoricalSplitAsBytes.Select(b => b > 0).ToArray();
Utils\PseudorandomFunction.cs (2)
22_data = _periodics.Select(x => Enumerable.Range(0, x).Select(y => rand.Next(-1, int.MaxValue) + 1).ToArray()).ToArray();
Utils\RegressionTreeBaseUtils.cs (9)
84var categoricalSplitFeaturesArray = trees[i].GetCategoricalSplitFeaturesAt(j).ToArray(); 86var len = trees[i].GetCategoricalSplitFeaturesAt(j).ToArray().Length; 89var categoricalCategoricalSplitFeatureRangeArray = trees[i].GetCategoricalCategoricalSplitFeatureRangeAt(j).ToArray(); 91len = trees[i].GetCategoricalCategoricalSplitFeatureRangeAt(j).ToArray().Length; 99builder.AddColumn("Bias", NumberDataViewType.Double, Enumerable.Repeat(bias, numberOfRows).ToArray()); 128var leafSamplesArray = quantileTrees[i].GetLeafSamplesAt(j).ToArray(); 130var len = quantileTrees[i].GetLeafSamplesAt(j).ToArray().Length; 132var leafSampleWeightsArray = quantileTrees[i].GetLeafSampleWeightsAt(j).ToArray(); 134len = quantileTrees[i].GetLeafSampleWeightsAt(j).ToArray().Length;
Utils\ThreadTaskManager.cs (1)
41_actions = actions.ToArray();
Microsoft.ML.GenAI.Core (2)
CausalLMPipelineChatClient.cs (2)
46stopSequences: stopSequences.ToArray()) ?? throw new InvalidOperationException("Failed to generate a reply."); 70stopSequences: stopSequences.ToArray()))
Microsoft.ML.GenAI.Mistral (1)
MistralCausalLMAgent.cs (1)
164.Select(s => s[random.Next(s.Length)]).ToArray());
Microsoft.ML.GenAI.Phi (3)
Module\Phi2Model.cs (1)
44this.layers = new ModuleList<Phi2DecoderLayer>(Enumerable.Range(0, config.NumHiddenLayers).Select(i => new Phi2DecoderLayer(config)).ToArray());
Module\Phi3SuScaledRotaryEmbedding.cs (2)
30this._shortFactor = shortFactorElement.EnumerateArray().Select(e => e.GetDouble()).ToArray(); 31this._longFactor = longFactorDocument.EnumerateArray().Select(e => e.GetDouble()).ToArray();
Microsoft.ML.ImageAnalytics (10)
ImagePixelExtractor.cs (3)
184_columns = columns.ToArray(); 190return columns.Select(x => (x.Name, x.InputColumnName)).ToArray(); 292=> _parent._columns.Select((x, idx) => new DataViewSchema.DetachedColumn(x.Name, _types[idx], null)).ToArray();
ImageResizer.cs (3)
141_columns = columns.ToArray(); 147return columns.Select(x => (x.Name, x.InputColumnName)).ToArray(); 270=> _parent._columns.Select(x => new DataViewSchema.DetachedColumn(x.Name, x.Type, null)).ToArray();
VectorToImageTransform.cs (4)
183_columns = columns.ToArray(); 294return columns.Select(x => (x.Name, x.InputColumnName)).ToArray(); 323=> _parent._columns.Select((x, idx) => new DataViewSchema.DetachedColumn(x.Name, _types[idx], null)).ToArray(); 425return columns.Select(c => new ImageDataViewType(c.ImageHeight, c.ImageWidth)).ToArray();
Microsoft.ML.IntegrationTests (28)
Training.cs (28)
116Common.AssertEqual(firstModelWeights.ToArray(), firstModelWeightsPrime.ToArray()); 118Common.AssertNotEqual(firstModelWeights.ToArray(), secondModelWeights.ToArray()); 204Common.AssertEqual(firstModelWeights.ToArray(), firstModelWeightsPrime.ToArray()); 206Common.AssertNotEqual(firstModelWeights.ToArray(), secondModelWeights.ToArray()); 248Common.AssertEqual(firstModelWeights.ToArray(), firstModelWeightsPrime.ToArray()); 250Common.AssertNotEqual(firstModelWeights.ToArray(), secondModelWeights.ToArray()); 296Common.AssertEqual(firstModelWeights[i].DenseValues().ToArray(), firstModelWeightsPrime[i].DenseValues().ToArray()); 300Common.AssertNotEqual(firstModelWeights[i].DenseValues().ToArray(), secondModelWeights[i].DenseValues().ToArray()); 342Common.AssertEqual(firstModelWeights.ToArray(), firstModelWeightsPrime.ToArray()); 344Common.AssertNotEqual(firstModelWeights.ToArray(), secondModelWeights.ToArray()); 386Common.AssertEqual(firstModelWeights.ToArray(), firstModelWeightsPrime.ToArray()); 388Common.AssertNotEqual(firstModelWeights.ToArray(), secondModelWeights.ToArray()); 434Common.AssertEqual(firstModelWeights.ToArray(), firstModelWeightsPrime.ToArray()); 436Common.AssertNotEqual(firstModelWeights.ToArray(), secondModelWeights.ToArray());
Microsoft.ML.LightGbm (8)
LightGbmTrainerBase.cs (4)
429var catBoundaries = !String.IsNullOrEmpty(modelParameters["categorical_feature"]) ? modelParameters["categorical_feature"].Split(',').Select(x => int.Parse(x, CultureInfo.InvariantCulture)).ToArray() : null; 606catMetaData.CatIndices = catIndices.Select(int.Parse).ToArray(); 895indices = sortedIVPair.Keys.ToArray(); 896featureValues = sortedIVPair.Values.ToArray();
WrappedLightGbmBooster.cs (4)
122return str.Split(delimiter).Select(x => int.Parse(x, CultureInfo.InvariantCulture)).ToArray(); 127return str.Split(delimiter).Select(x => UInt32.Parse(x, CultureInfo.InvariantCulture)).ToArray(); 292threshold.Select(x => (float)(x)).ToArray(), defaultValue.Select(x => (float)(x)).ToArray(), leftChild, rightChild, leafOutput,
Microsoft.ML.Mkl.Components (2)
VectorWhitening.cs (2)
195var infos = options.Columns.Select(colPair => new VectorWhiteningEstimator.ColumnOptions(colPair, options)).ToArray(); 209=> columns.Select(c => (c.Name, c.InputColumnName ?? c.Name)).ToArray();
Microsoft.ML.OnnxTransformer (10)
OnnxTransform.cs (5)
321CustomShapeInfos = shapeDictionary?.Select(pair => new CustomShapeInfo(pair.Key, pair.Value)).ToArray(), 347CustomShapeInfos = shapeDictionary?.Select(pair => new CustomShapeInfo(pair.Key, pair.Value)).ToArray(), 377CustomShapeInfos = shapeDictionary?.Select(pair => new CustomShapeInfo(pair.Key, pair.Value)).ToArray(), 409CustomShapeInfos = shapeDictionary?.Select(pair => new CustomShapeInfo(pair.Key, pair.Value)).ToArray(), 622var activeOutputColNames = _parent.Outputs.Where((x, i) => activeOutput(i)).ToArray();
OnnxTypeParser.cs (1)
239return new VectorDataViewType((PrimitiveDataViewType)GetScalarDataViewType(typeProto.TensorType.ElemType), shape.ToArray());
OnnxUtils.cs (4)
63InputsInfo = inputsInfo.ToArray(); 65OutputsInfo = outputsInfo.ToArray(); 67InitializersInfo = initializersInfo.ToArray(); 559var dimensions = shape.Select(x => (int)x).ToArray();
Microsoft.ML.OnnxTransformerTest (2)
OnnxTransformTests.cs (2)
539var predictions = mlContext.Data.CreateEnumerable<PredictionUnknownDimensions>(transformedValues, reuseRowObject: false).ToArray(); 565var predictions = mlContext.Data.CreateEnumerable<PredictionNoneDimension>(transformedValues, reuseRowObject: false).ToArray();
Microsoft.ML.Parquet (8)
ParquetLoader.cs (2)
427var allColumns = Enumerable.Range(0, Schema.Count).ToArray(); 464Columns = _loader._columnsLoaded.Select(i => i.Name).ToArray()
PartitionedFileLoader.cs (6)
191var columns = ParseColumns(relativePath).ToArray(); 203columns = columns.Concat(new[] { pathCol }).ToArray(); 206_srcDirIndex = columns.Select(c => c.Source).ToArray(); 278var allColumns = Enumerable.Range(0, Schema.Count).ToArray(); 398_subActive = _active.Take(SubColumnCount).ToArray(); 766return _pathParser.ParseColumns(path).ToArray();
Microsoft.ML.PCA (2)
PcaTransformer.cs (2)
297return columns.Select(x => (x.Name, x.InputColumnName)).ToArray(); 404bool[] center = Enumerable.Range(0, mean.Length).Select(i => mean[i] != null).ToArray();
Microsoft.ML.PerformanceTests (1)
HashBench.cs (1)
199var tokens = "Hello my friend, stay awhile and listen! ".Split().Select(token => token.AsMemory()).ToArray();
Microsoft.ML.Predictor.Tests (2)
TestGamPublicInterfaces.cs (2)
51Utils.AreEqual(binUpperBounds[i], gam.GetBinUpperBounds(i).ToArray()); 56Utils.AreEqual(binEffects[i], gam.GetBinEffects(i).ToArray());
Microsoft.ML.Samples (118)
Dynamic\TensorFlow\ImageClassification.cs (2)
102x => (float)x / inputSize).ToArray(); 105x => (float)(x + 10000) / inputSize).ToArray();
Dynamic\Trainers\BinaryClassification\AveragedPerceptron.cs (1)
1010.1f).ToArray()
Dynamic\Trainers\BinaryClassification\AveragedPerceptronWithOptions.cs (1)
1120.1f).ToArray()
Dynamic\Trainers\BinaryClassification\FactorizationMachine.cs (1)
1090.1f).ToArray()
Dynamic\Trainers\BinaryClassification\FastForest.cs (1)
1040.03f).ToArray()
Dynamic\Trainers\BinaryClassification\FastForestWithOptions.cs (1)
1160.03f).ToArray()
Dynamic\Trainers\BinaryClassification\FastTree.cs (1)
1070.03f).ToArray()
Dynamic\Trainers\BinaryClassification\FastTreeWithOptions.cs (1)
1190.03f).ToArray()
Dynamic\Trainers\BinaryClassification\LbfgsLogisticRegression.cs (1)
1040.1f).ToArray()
Dynamic\Trainers\BinaryClassification\LbfgsLogisticRegressionWithOptions.cs (1)
1130.1f).ToArray()
Dynamic\Trainers\BinaryClassification\LdSvm.cs (1)
1010.1f).ToArray()
Dynamic\Trainers\BinaryClassification\LdSvmWithOptions.cs (1)
1100.1f).ToArray()
Dynamic\Trainers\BinaryClassification\LightGbm.cs (1)
1040.03f).ToArray()
Dynamic\Trainers\BinaryClassification\LightGbmWithOptions.cs (1)
1150.03f).ToArray()
Dynamic\Trainers\BinaryClassification\LinearSvm.cs (1)
1010.1f).ToArray()
Dynamic\Trainers\BinaryClassification\LinearSvmWithOptions.cs (1)
1100.1f).ToArray()
Dynamic\Trainers\BinaryClassification\PermutationFeatureImportance.cs (1)
58var auc = permutationMetrics.Select(x => x.AreaUnderRocCurve).ToArray();
Dynamic\Trainers\BinaryClassification\PermutationFeatureImportanceLoadFromDisk.cs (1)
57var auc = permutationMetrics.Select(x => x.AreaUnderRocCurve).ToArray();
Dynamic\Trainers\BinaryClassification\PriorTrainer.cs (1)
1010.3f).ToArray()
Dynamic\Trainers\BinaryClassification\SdcaLogisticRegression.cs (1)
1090.03f).ToArray()
Dynamic\Trainers\BinaryClassification\SdcaLogisticRegressionWithOptions.cs (1)
1210.03f).ToArray()
Dynamic\Trainers\BinaryClassification\SdcaNonCalibrated.cs (1)
1080.03f).ToArray()
Dynamic\Trainers\BinaryClassification\SdcaNonCalibratedWithOptions.cs (1)
1230.03f).ToArray()
Dynamic\Trainers\BinaryClassification\SgdCalibrated.cs (1)
1010.03f).ToArray()
Dynamic\Trainers\BinaryClassification\SgdCalibratedWithOptions.cs (1)
1130.03f).ToArray()
Dynamic\Trainers\BinaryClassification\SgdNonCalibrated.cs (1)
1010.03f).ToArray()
Dynamic\Trainers\BinaryClassification\SgdNonCalibratedWithOptions.cs (1)
1100.03f).ToArray()
Dynamic\Trainers\BinaryClassification\SymbolicSgdLogisticRegression.cs (1)
1040.1f).ToArray()
Dynamic\Trainers\BinaryClassification\SymbolicSgdLogisticRegressionWithOptions.cs (1)
1130.1f).ToArray()
Dynamic\Trainers\Clustering\KMeans.cs (1)
108randomFloat() - 0.1f).ToArray()
Dynamic\Trainers\Clustering\KMeansWithOptions.cs (1)
116randomFloat() - 0.1f).ToArray()
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (1)
138keys.DenseValues().ToArray());
Dynamic\Trainers\MulticlassClassification\LbfgsMaximumEntropy.cs (1)
105.Select(x => randomFloat() + label * 0.2f).ToArray()
Dynamic\Trainers\MulticlassClassification\LbfgsMaximumEntropyWithOptions.cs (1)
113.Select(x => randomFloat() + label * 0.2f).ToArray()
Dynamic\Trainers\MulticlassClassification\LightGbm.cs (1)
108.Select(x => randomFloat() + label * 0.2f).ToArray()
Dynamic\Trainers\MulticlassClassification\LightGbmWithOptions.cs (1)
118.Select(x => randomFloat() + label * 0.2f).ToArray()
Dynamic\Trainers\MulticlassClassification\LogLossPerClass.cs (2)
53var originalLabels = keys.DenseValues().ToArray(); 88.Select(x => randomFloat() + label * 0.2f).ToArray()
Dynamic\Trainers\MulticlassClassification\NaiveBayes.cs (1)
113.Select(x => randomFloat() + label * 0.2f).ToArray()
Dynamic\Trainers\MulticlassClassification\OneVersusAll.cs (1)
106.Select(x => randomFloat() + label * 0.2f).ToArray()
Dynamic\Trainers\MulticlassClassification\PairwiseCoupling.cs (1)
106.Select(x => randomFloat() + label * 0.2f).ToArray()
Dynamic\Trainers\MulticlassClassification\PermutationFeatureImportance.cs (1)
62.ToArray();
Dynamic\Trainers\MulticlassClassification\PermutationFeatureImportanceLoadFromDisk.cs (1)
70.ToArray();
Dynamic\Trainers\MulticlassClassification\SdcaMaximumEntropy.cs (1)
112.Select(x => randomFloat() + label * 0.2f).ToArray()
Dynamic\Trainers\MulticlassClassification\SdcaMaximumEntropyWithOptions.cs (1)
122.Select(x => randomFloat() + label * 0.2f).ToArray()
Dynamic\Trainers\MulticlassClassification\SdcaNonCalibrated.cs (1)
113.Select(x => randomFloat() + label * 0.2f).ToArray()
Dynamic\Trainers\MulticlassClassification\SdcaNonCalibratedWithOptions.cs (1)
122.Select(x => randomFloat() + label * 0.2f).ToArray()
Dynamic\Trainers\Ranking\FastTree.cs (3)
87x => randomFloat() + x * 0.1f).ToArray() 118(d, i) => (i + 1) + ":" + d + ":F2").ToArray())); 122(d, i) => (i + 1) + ":" + d + ":F2").ToArray()));
Dynamic\Trainers\Ranking\FastTreeWithOptions.cs (3)
101x => randomFloat() + x * 0.1f).ToArray() 132(d, i) => (i + 1) + ":" + d + ":F2").ToArray())); 135(d, i) => (i + 1) + ":" + d + ":F2").ToArray()));
Dynamic\Trainers\Ranking\LightGbm.cs (3)
87x => randomFloat() + x * 0.1f).ToArray() 118(d, i) => (i + 1) + ":" + d + ":F2").ToArray())); 121(d, i) => (i + 1) + ":" + d + ":F2").ToArray()));
Dynamic\Trainers\Ranking\LightGbmWithOptions.cs (3)
102x => randomFloat() + x * 0.1f).ToArray() 133(d, i) => (i + 1) + ":" + d + ":F2").ToArray())); 136(d, i) => (i + 1) + ":" + d + ":F2").ToArray()));
Dynamic\Trainers\Ranking\PermutationFeatureImportance.cs (1)
64x => x.NormalizedDiscountedCumulativeGains).ToArray();
Dynamic\Trainers\Ranking\PermutationFeatureImportanceLoadFromDisk.cs (1)
71x => x.NormalizedDiscountedCumulativeGains).ToArray();
Dynamic\Trainers\Regression\FastForest.cs (1)
84x => x + (float)random.NextDouble()).ToArray()
Dynamic\Trainers\Regression\FastForestWithOptions.cs (1)
97x => x + (float)random.NextDouble()).ToArray()
Dynamic\Trainers\Regression\FastTree.cs (1)
84x => x + (float)random.NextDouble()).ToArray()
Dynamic\Trainers\Regression\FastTreeTweedie.cs (1)
84x => x + (float)random.NextDouble()).ToArray()
Dynamic\Trainers\Regression\FastTreeTweedieWithOptions.cs (1)
99x => x + (float)random.NextDouble()).ToArray()
Dynamic\Trainers\Regression\FastTreeWithOptions.cs (1)
100x => x + (float)random.NextDouble()).ToArray()
Dynamic\Trainers\Regression\Gam.cs (1)
84x => x + (float)random.NextDouble()).ToArray()
Dynamic\Trainers\Regression\GamWithOptions.cs (1)
95x => x + (float)random.NextDouble()).ToArray()
Dynamic\Trainers\Regression\LbfgsPoissonRegression.cs (1)
82x => x + (float)random.NextDouble()).ToArray()
Dynamic\Trainers\Regression\LbfgsPoissonRegressionWithOptions.cs (1)
96x => x + (float)random.NextDouble()).ToArray()
Dynamic\Trainers\Regression\LightGbm.cs (1)
85x => x + (float)random.NextDouble()).ToArray()
Dynamic\Trainers\Regression\LightGbmAdvanced.cs (2)
38.ToArray(); 54var weightsValues = weights.DenseValues().ToArray();
Dynamic\Trainers\Regression\LightGbmWithOptions.cs (1)
104x => x + (float)random.NextDouble()).ToArray()
Dynamic\Trainers\Regression\LightGbmWithOptionsAdvanced.cs (2)
39.ToArray(); 63var weightsValues = weights.DenseValues().ToArray();
Dynamic\Trainers\Regression\OnlineGradientDescent.cs (1)
73x => x + (float)random.NextDouble()).ToArray()
Dynamic\Trainers\Regression\OnlineGradientDescentWithOptions.cs (1)
89x => x + (float)random.NextDouble()).ToArray()
Dynamic\Trainers\Regression\OrdinaryLeastSquares.cs (1)
81x => x + (float)random.NextDouble()).ToArray()
Dynamic\Trainers\Regression\OrdinaryLeastSquaresWithOptions.cs (1)
93x => x + (float)random.NextDouble()).ToArray()
Dynamic\Trainers\Regression\PermutationFeatureImportance.cs (1)
67.ToArray();
Dynamic\Trainers\Regression\PermutationFeatureImportanceLoadFromDisk.cs (1)
74.ToArray();
Dynamic\Trainers\Regression\Sdca.cs (1)
81x => x + (float)random.NextDouble()).ToArray()
Dynamic\Trainers\Regression\SdcaWithOptions.cs (1)
97x => x + (float)random.NextDouble()).ToArray()
Dynamic\Transforms\ApplyOnnxModel.cs (2)
74inputSize).ToArray(); 7710000) / inputSize).ToArray();
Dynamic\Transforms\ApproximatedKernelMap.cs (1)
41var column = transformedData.GetColumn<float[]>("Features").ToArray();
Dynamic\Transforms\ImageAnalytics\ConvertToImage.cs (1)
103inputSize).Select(x => (float)random.Next(0, 256)).ToArray()
Dynamic\Transforms\ImageAnalytics\DnnFeaturizeImage.cs (1)
59"FeaturizedImage").ToArray();
Dynamic\Transforms\NormalizeBinning.cs (2)
49var column = transformedData.GetColumn<float[]>("Features").ToArray(); 60.ToArray();
Dynamic\Transforms\NormalizeBinningMulticolumn.cs (2)
48var column = transformedData.GetColumn<float[]>("Features").ToArray(); 49var column2 = transformedData.GetColumn<float>("Features2").ToArray();
Dynamic\Transforms\NormalizeGlobalContrast.cs (1)
36var column = transformedData.GetColumn<float[]>("Features").ToArray();
Dynamic\Transforms\NormalizeLogMeanVariance.cs (2)
47var column = transformedData.GetColumn<float[]>("Features").ToArray(); 57var columnFixZero = noCdfData.GetColumn<float[]>("Features").ToArray();
Dynamic\Transforms\NormalizeLogMeanVarianceFixZero.cs (2)
40var column = transformedData.GetColumn<float[]>("Features").ToArray(); 49var columnFixZero = noCdfData.GetColumn<float[]>("Features").ToArray();
Dynamic\Transforms\NormalizeLpNorm.cs (1)
37var column = transformedData.GetColumn<float[]>("Features").ToArray();
Dynamic\Transforms\NormalizeMeanVariance.cs (2)
46var column = transformedData.GetColumn<float[]>("Features").ToArray(); 57var columnFixZero = noCdfData.GetColumn<float[]>("Features").ToArray();
Dynamic\Transforms\NormalizeMinMax.cs (2)
45var column = transformedData.GetColumn<float[]>("Features").ToArray(); 56.ToArray();
Dynamic\Transforms\NormalizeMinMaxMulticolumn.cs (4)
69var column = transformedData.GetColumn<float[]>("Features").ToArray(); 70var column2 = transformedData.GetColumn<float[]>("Features2").ToArray(); 84var columnFixZero = fixZeroData.GetColumn<float[]>("Features").ToArray(); 85var column2FixZero = fixZeroData.GetColumn<float[]>("Features2").ToArray();
Dynamic\Transforms\NormalizeSupervisedBinning.cs (2)
63var column = transformedData.GetColumn<float[]>("Features").ToArray(); 75.ToArray();
Dynamic\Transforms\TreeFeaturization\FastForestBinaryFeaturizationWithOptions.cs (1)
137randomFloat() : randomFloat() + 0.03f).ToArray()
Dynamic\Transforms\TreeFeaturization\FastForestRegressionFeaturizationWithOptions.cs (1)
135(float)random.NextDouble()).ToArray()
Dynamic\Transforms\TreeFeaturization\FastTreeBinaryFeaturizationWithOptions.cs (1)
139randomFloat() : randomFloat() + 0.03f).ToArray()
Dynamic\Transforms\TreeFeaturization\FastTreeRankingFeaturizationWithOptions.cs (1)
136+ x * 0.1f).ToArray()
Dynamic\Transforms\TreeFeaturization\FastTreeRegressionFeaturizationWithOptions.cs (1)
135(float)random.NextDouble()).ToArray()
Dynamic\Transforms\TreeFeaturization\FastTreeTweedieFeaturizationWithOptions.cs (1)
135(float)random.NextDouble()).ToArray()
Dynamic\Transforms\TreeFeaturization\PretrainedTreeEnsembleFeaturizationWithOptions.cs (1)
146randomFloat() : randomFloat() + 0.2f).ToArray()
Microsoft.ML.Samples.GPU (3)
docs\samples\Microsoft.ML.Samples\Dynamic\TensorFlow\ImageClassification.cs (2)
102x => (float)x / inputSize).ToArray(); 105x => (float)(x + 10000) / inputSize).ToArray();
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (1)
138keys.DenseValues().ToArray());
Microsoft.ML.SearchSpace (14)
Converter\ParameterConverter.cs (1)
20var array = JsonSerializer.Deserialize<Dictionary<string, Parameter>>(ref reader, options).ToArray();
Option\ChoiceOption.cs (2)
32Choices = distinctChoices.Select(o => Parameter.FromObject(o)).ToArray(); 34Default = Enumerable.Repeat(0.0, FeatureSpaceDim).ToArray();
Option\NestOption.cs (3)
33.ToArray(); 44.ToArray(); 56var feature = values.Skip(startIndex).Take(dim).ToArray();
Option\UniformNumericOption.cs (1)
32Default = Enumerable.Repeat(0.0, FeatureSpaceDim).ToArray();
SearchSpace.cs (4)
61.ToArray(); 101.ToArray(); 118var input = feature.Skip(cur).Take(option.FeatureSpaceDim).ToArray(); 155var featureSpace = Enumerable.Repeat(0.5, FeatureSpaceDim).ToArray();
Tuner\GridSearchTuner.cs (2)
24.Select(x => Enumerable.Range(0, x).Select(i => i * 1.0 / x).ToArray()); 46yield return new[] { i }.Concat(i_s).ToArray();
Tuner\RandomTuner.cs (1)
34var featureVec = Enumerable.Repeat(0, d).Select(i => _rnd.NextDouble()).ToArray();
Microsoft.ML.SearchSpace.Tests (2)
UniformNumericOptionTests.cs (2)
66var sampleOutputs = sampleInputs.Select(i => option.MappingToFeatureSpace(i)[0]).ToArray(); 117var sampleOutputs = sampleInputs.Select(i => option.MappingToFeatureSpace(i)).ToArray();
Microsoft.ML.StandardTrainers (5)
FactorizationMachine\FactorizationMachineTrainer.cs (1)
611return new FieldAwareFactorizationMachinePredictionTransformer(_host, model, trainData.Schema, FeatureColumns.Select(x => x.Name).ToArray());
FactorizationMachine\FieldAwareFactorizationMachineUtils.cs (2)
84_columns = schema.GetColumns(RoleMappedSchema.ColumnRole.Feature).ToArray(); 108var activeIndices = activeColumns.Select(c => c.Index).ToArray();
Standard\LogisticRegression\MulticlassLogisticRegression.cs (1)
1105bldr.AddColumn("ClassNames", Enumerable.Range(0, NumberOfClasses).Select(i => GetLabelName(i)).ToArray());
Standard\ModelStatistics.cs (1)
468return order.ToArray();
Microsoft.ML.Sweeper (20)
Algorithms\Grid.cs (4)
53SweepParameters = options.SweptParameters.Select(p => p.CreateComponent(Host)).ToArray(); 87return result.ToArray(); 173return result.ToArray(); 179return result.ToArray();
Algorithms\KdoSweeper.cs (6)
101_sweepParameters = options.SweptParameters.Select(p => p.CreateComponent(_host)).ToArray(); 112var prevRuns = previousRuns?.ToArray() ?? new IRunResult[0]; 138var viableRuns = prevRuns.Cast<RunResult>().Where(run => run != null && run.HasMetricValue).Cast<IRunResult>().ToArray(); 251double[] stddevs = Enumerable.Repeat(_args.Simple ? 0.2 : bandwidthScale, mu.Length).ToArray(); 346return (from RunResult r in previousRuns where _randomParamSets.Contains(r.ParameterSet) select r.MetricValue).ToArray(); 441return bestK.ToArray();
Algorithms\NelderMead.cs (6)
176return _pendingSweeps.Select(kvp => kvp.Key).ToArray(); 226return _pendingSweeps.Select(kvp => kvp.Key).ToArray(); 260return _pendingSweeps.Select(kvp => kvp.Key).ToArray(); 279return _pendingSweeps.Select(kvp => kvp.Key).ToArray(); 321var simplexVertices = _simplexVertices.ToArray(); 402var sortedVertices = _simplexVertices.ToArray();
Algorithms\SmacSweeper.cs (2)
83_sweepParameters = options.SweptParameters.Select(p => p.CreateComponent(_host)).ToArray(); 222return retainedConfigs.ToArray();
ISweeper.cs (2)
174return string.Join(" ", _parameterValues.Select(kvp => string.Format("{0}={1}", kvp.Value.Name, kvp.Value.ValueText)).ToArray()); 282_metricDistribution = metricDistribution.ToArray();
Microsoft.ML.TensorFlow (14)
TensorflowTransform.cs (9)
378return new TensorShape(dims.Select(x => (int)x).ToArray()); 410dims = shape.ndim > 0 ? idims.Skip(idims[0] == -1 ? 1 : 0).ToArray() : new int[0]; 461w.WriteByteArray(buffer.DangerousMemoryBlock.ToArray()); 572var colTypeDims = vecType.Dimensions.Select(dim => (int)dim).ToArray(); 582var colTypeDims = vecType.Dimensions.Select(dim => (int)dim).ToArray(); 645var activeOutputColNames = _parent.Outputs.Where((x, i) => activeOutput(i)).ToArray(); 756Runner runner = new Runner(_parent.Session, _parent.Inputs.ToArray(), _parent.Outputs.ToArray()); 892_dims = _tfShape.dims.Select(x => (long)x).ToArray();
TensorflowUtils.cs (5)
99columnType = new VectorDataViewType(mlType, tensorShape[0] > 0 ? tensorShape : tensorShape.Skip(1).ToArray()); 446var dims = tfShape.dims.Select(x => (long)x).ToArray(); 545_inputs = inputs?.Select(x => ParseOutput(session, x)).ToArray() ?? new TF_Output[0]; 546_outputs = outputs?.Select(x => ParseOutput(session, x)).ToArray() ?? new TF_Output[0]; 547_operations = operations?.Select(x => c_api.TF_GraphOperationByName(session.graph, x)).ToArray() ?? new IntPtr[0];
Microsoft.ML.TensorFlow.Tests (2)
TensorflowTests.cs (2)
1047Assert.Equal(buffer.DenseValues().ToArray(), 1048buffer2.DenseValues().ToArray());
Microsoft.ML.TestFramework (1)
TestCommandBase.cs (1)
401var paths = toCompare.Where(pa => (pa.CmpUsage & situation) != PathArgument.Usage.None).ToArray();
Microsoft.ML.Tests (71)
CachingTests.cs (8)
43var trainData = Enumerable.Range(0, 100).Select(c => new MyData()).ToArray(); 53trainData = Enumerable.Range(0, 100).Select(c => new MyData()).ToArray(); 83var src = Enumerable.Range(0, 100).Select(c => new MyData()).ToArray(); 85data.GetColumn<float[]>(data.Schema["Features"]).ToArray(); 86data.GetColumn<float[]>(data.Schema["Features"]).ToArray(); 89src = Enumerable.Range(0, 100).Select(c => new MyData()).ToArray(); 92data.GetColumn<float[]>(data.Schema["Features"]).ToArray(); 93data.GetColumn<float[]>(data.Schema["Features"]).ToArray();
DatabaseLoaderTests.cs (1)
261var datetimes = data.GetColumn<DateTime>("datetime").ToArray();
EvaluateTests.cs (1)
66var output2 = metrics2.TopKAccuracyForAllK.ToArray();
ImagesTests.cs (1)
1109Features = Enumerable.Repeat(0, InputSize).Select(x => random.NextDouble() * 100).ToArray()
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (9)
58.Take(4).ToArray(); 65.Take(20).ToArray(); 320var meanVarValues = normalizedData.GetColumn<float[]>(normalizedData.Schema["MeanVarNormalized"]).ToArray(); 516var messageTexts = data.GetColumn<string>(data.Schema["Message"]).Take(20).ToArray(); 550var embeddings = transformedData.GetColumn<float[]>(transformedData.Schema["Embeddings"]).Take(10).ToArray(); 551var unigrams = transformedData.GetColumn<float[]>(transformedData.Schema["BagOfWords"]).Take(10).ToArray(); 590var catColumns = data.GetColumn<string[]>(data.Schema["CategoricalFeatures"]).Take(10).ToArray(); 606var categoricalBags = transformedData.GetColumn<float[]>(transformedData.Schema["CategoricalBag"]).Take(10).ToArray(); 607var workclasses = transformedData.GetColumn<float[]>(transformedData.Schema["WorkclassOneHotTrimmed"]).Take(10).ToArray();
Scenarios\GetColumnTests.cs (11)
36var enum1 = data.GetColumn<float>(data.Schema["floatScalar"]).ToArray(); 37var enum2 = data.GetColumn<float[]>(data.Schema["floatVector"]).ToArray(); 38var enum3 = data.GetColumn<VBuffer<float>>(data.Schema["floatVector"]).ToArray(); 40var enum4 = data.GetColumn<string>(data.Schema["stringScalar"]).ToArray(); 41var enum5 = data.GetColumn<string[]>(data.Schema["stringVector"]).ToArray(); 63mustFail(() => data.GetColumn<string[]>(data1.Schema["stringVector"]).ToArray()); 78var enum1 = data.GetColumn<float>("floatScalar").ToArray(); 79var enum2 = data.GetColumn<float[]>("floatVector").ToArray(); 80var enum3 = data.GetColumn<VBuffer<float>>("floatVector").ToArray(); 82var enum4 = data.GetColumn<string>("stringScalar").ToArray(); 83var enum5 = data.GetColumn<string[]>("stringVector").ToArray();
TextLoaderTests.cs (4)
1570var testSingFt1Arr = testSingFt1.DenseValues().ToArray(); 1571var testSingFt2Arr = testSingFt2.DenseValues().ToArray(); 1579var testDoubFt1Arr = testDoubFt1.DenseValues().ToArray(); 1580var testDoubFt2Arr = testDoubFt2.DenseValues().ToArray();
TrainerEstimators\SdcaTests.cs (4)
138var scores1 = prediction1.GetColumn<float>(prediction1.Schema["Score"]).ToArray(); 139var scores2 = prediction2.GetColumn<float>(prediction2.Schema["Score"]).ToArray(); 197var scores1 = prediction1.GetColumn<float[]>(prediction1.Schema["Score"]).ToArray(); 198var scores2 = prediction2.GetColumn<float[]>(prediction2.Schema["Score"]).ToArray();
TrainerEstimators\SymSgdClassificationTests.cs (3)
47var col1 = data.GetColumn<float>(data.Schema["Score"]).Take(numExamples).ToArray(); 48var col2 = outInitData.GetColumn<float>(outInitData.Schema["Score"]).Take(numExamples).ToArray(); 49var col3 = outNoInitData.GetColumn<float>(outNoInitData.Schema["Score"]).Take(numExamples).ToArray();
TrainerEstimators\TreeEnsembleFeaturizerTest.cs (12)
156var features = transformed.GetColumn<float[]>("Features").ToArray(); 157var leafValues = transformed.GetColumn<float[]>(treesColumnName).ToArray(); 158var leafIds = transformed.GetColumn<float[]>(leavesColumnName).ToArray(); 159var paths = transformed.GetColumn<float[]>(pathsColumnName).ToArray(); 207var features = transformed.GetColumn<float[]>("Features").ToArray(); 208var leafValues = transformed.GetColumn<float[]>(treesColumnName).ToArray(); 209var leafIds = transformed.GetColumn<float[]>(leavesColumnName).ToArray(); 210var paths = transformed.GetColumn<float[]>(pathsColumnName).ToArray(); 271var features = transformed.GetColumn<float[]>(featureColumnName).ToArray(); 272var leafValues = transformed.GetColumn<float[]>(treesColumnName).ToArray(); 273var leafIds = transformed.GetColumn<float[]>(leavesColumnName).ToArray(); 274var paths = transformed.GetColumn<float[]>(pathsColumnName).ToArray();
TrainerEstimators\TreeEstimators.cs (5)
734.Select(x => randomFloat() + label * 0.2f).ToArray() 830Assert.Equal(row.CategoricalSplitFeatures, tree.GetCategoricalSplitFeaturesAt(nodeId).ToArray()); 834Assert.Equal(row.CategoricalCategoricalSplitFeatureRange, tree.GetCategoricalCategoricalSplitFeatureRangeAt(nodeId).ToArray()); 859Assert.Equal(row.LeafSamples, tree.GetLeafSamplesAt(nodeId).ToArray()); 863Assert.Equal(row.LeafSampleWeights, tree.GetLeafSampleWeightsAt(nodeId).ToArray());
Transformers\NormalizerTests.cs (2)
1037x => (float)x).ToArray(); 1040x => (float)(x + 10000)).ToArray();
Transformers\RffTests.cs (4)
47new TestClass() { A = Enumerable.Range(0, 100).Select(x => (float)rand.NextDouble()).ToArray() }, 48new TestClass() { A = Enumerable.Range(0, 100).Select(x => (float)rand.NextDouble()).ToArray() } 95new TestClass() { A = Enumerable.Range(0, 100).Select(x => (float)rand.NextDouble()).ToArray() }, 96new TestClass() { A = Enumerable.Range(0, 100).Select(x => (float)rand.NextDouble()).ToArray() }
Transformers\TextFeaturizerTests.cs (2)
124transformed[i] = features.DenseValues().ToArray(); 166transformed[i] = features.DenseValues().ToArray();
Transformers\WordBagTransformerTests.cs (4)
48Assert.Equal(expected, ((VBuffer<float>)pred.ColumnView[4].Values[0]).DenseValues().ToArray()); 76Assert.Equal(expected, ((VBuffer<float>)pred.ColumnView[4].Values[0]).DenseValues().ToArray()); 116Assert.Equal(((VBuffer<float>)predDefault.ColumnView[4].Values[0]).DenseValues().ToArray(), ((VBuffer<float>)predNonDefault.ColumnView[4].Values[0]).DenseValues().ToArray());
Microsoft.ML.TimeSeries (12)
MovingAverageTransform.cs (1)
75_weights = string.IsNullOrWhiteSpace(args.Weights) ? null : args.Weights.Split(',').Select(c => Convert.ToSingle(c)).ToArray();
SeasonalityDetector.cs (6)
86FftUtils.ComputeForwardFft(inputRe, Enumerable.Repeat(0.0, length).ToArray(), fftRe, fftIm, length); 88var energies = fftRe.Select((m, i) => new Complex(m, fftIm[i])).ToArray(); 94var periodogram = energies.Select((t, i) => t * Complex.Conjugate(t)).ToArray(); 100periodogram.Select(t => t.Real).ToArray(), 101periodogram.Select(t => t.Imaginary).ToArray(), 105var values = ifftRe.Select((t, i) => new Complex(t, ifftIm[i])).ToArray();
SrCnnAnomalyDetectionBase.cs (1)
181FftUtils.ComputeForwardFft(backAddList.ToArray(), Enumerable.Repeat(0.0f, length).ToArray(), fftRe, fftIm, length);
SrCnnEntireAnomalyDetector.cs (4)
715GetDeanomalyData(values, GetAnomalyIndex(results.Select(x => x[1]).ToArray())); 739CalculateBoundaryUnit(values, results.Select(x => x[0] > 0).ToArray()); 831GetDeanomalyData(values, GetAnomalyIndex(results.Select(x => x[1]).ToArray())); 835CalculateBoundaryUnit(values, results.Select(x => x[0] > 0).ToArray());
Microsoft.ML.Tokenizers (1)
Model\SentencePieceTokenizer.cs (1)
1302(int Offset, int Length)[] splits = PreTokenizer.SplitText(text, _specialTokensRegex!).ToArray();
Microsoft.ML.Tokenizers.Tests (161)
BpeTests.cs (9)
258int[] encodingIds = encoding.Select(t => t.Id).ToArray(); 380Assert.Equal(encoding.Select(t => t.Id).ToArray(), ids); 432Assert.Equal(expectedTokens, encoding.Select(t => t.Value).ToArray()); 433Assert.Equal(expectedOffsets, encoding.Select(t => (t.Offset.Start.Value, t.Offset.End.Value - t.Offset.Start.Value)).ToArray()); 434Assert.Equal(expectedIds, encoding.Select(t => t.Id).ToArray()); 436Assert.Equal(expectedTokens, encoding1.Select(t => t.Value).ToArray()); 437Assert.Equal(expectedOffsets, encoding1.Select(t => (t.Offset.Start.Value, t.Offset.End.Value - t.Offset.Start.Value)).ToArray()); 438Assert.Equal(expectedIds, encoding1.Select(t => t.Id).ToArray()); 528Assert.Equal(expectedTokens.Select(t => t.Id).ToArray(), ids);
CodeGenTests.cs (78)
236Assert.Equal(expectedIdsWithSpace, encoding.Select(t => t.Id).ToArray()); 237Assert.Equal(expectedTokensWithSpace, encoding.Select(t => t.Value).ToArray()); 238Assert.Equal(expectedOffsetsWithSpace, encoding.Select(t => (t.Offset.Start.Value, t.Offset.End.Value - t.Offset.Start.Value)).ToArray()); 242Assert.Equal(expectedIds, encoding.Select(t => t.Id).ToArray()); 243Assert.Equal(expectedTokens, encoding.Select(t => t.Value).ToArray()); 244Assert.Equal(expectedOffsets, encoding.Select(t => (t.Offset.Start.Value, t.Offset.End.Value - t.Offset.Start.Value)).ToArray()); 253int[] ids = encoding.Select(t => t.Id).ToArray(); 256ids = encoding.Select(t => t.Id).ToArray(); 261ids = encoding.Select(t => t.Id).ToArray(); 264ids = encoding.Select(t => t.Id).ToArray(); 269ids = encoding.Select(t => t.Id).ToArray(); 272ids = encoding.Select(t => t.Id).ToArray(); 277ids = encoding.Select(t => t.Id).ToArray(); 280ids = encoding.Select(t => t.Id).ToArray(); 285ids = encoding.Select(t => t.Id).ToArray(); 288ids = encoding.Select(t => t.Id).ToArray(); 293ids = encoding.Select(t => t.Id).ToArray(); 297ids = encoding.Select(t => t.Id).ToArray(); 556Assert.Equal(idList, encoding.Select(t => t.Id).ToArray()); 557Assert.Equal(tokensList, encoding.Select(t => t.Value).ToArray()); 561Assert.Equal(idList, encoding.Select(t => t.Id).ToArray()); 562Assert.Equal(tokensList, encoding.Select(t => t.Value).ToArray()); 566Assert.Equal(idList, encoding.Select(t => t.Id).ToArray()); 567Assert.Equal(tokensList, encoding.Select(t => t.Value).ToArray()); 571Assert.Equal(idList, encoding.Select(t => t.Id).ToArray()); 572Assert.Equal(tokensList, encoding.Select(t => t.Value).ToArray()); 580Assert.Equal(idList, encoding.Select(t => t.Id).ToArray()); 581Assert.Equal(tokensList, encoding.Select(t => t.Value).ToArray()); 585Assert.Equal(idList, encoding.Select(t => t.Id).ToArray()); 586Assert.Equal(tokensList, encoding.Select(t => t.Value).ToArray()); 590Assert.Equal(expectedIds, encoding.Select(t => t.Id).ToArray()); 591Assert.Equal(expectedTokens, encoding.Select(t => t.Value).ToArray()); 595Assert.Equal(expectedIds, encoding.Select(t => t.Id).ToArray()); 596Assert.Equal(expectedTokens, encoding.Select(t => t.Value).ToArray()); 600Assert.Equal(expectedIdsWithSpace, encoding.Select(t => t.Id).ToArray()); 601Assert.Equal(expectedTokensWithSpace, encoding.Select(t => t.Value).ToArray()); 605Assert.Equal(expectedIdsWithSpace, encoding.Select(t => t.Id).ToArray()); 606Assert.Equal(expectedTokensWithSpace, encoding.Select(t => t.Value).ToArray()); 689Assert.Equal(idList, encoding.Select(t => t.Id).ToArray()); 690Assert.Equal(tokensList, encoding.Select(t => t.Value).ToArray()); 694Assert.Equal(idList, encoding.Select(t => t.Id).ToArray()); 695Assert.Equal(tokensList, encoding.Select(t => t.Value).ToArray()); 699Assert.Equal(idList, encoding.Select(t => t.Id).ToArray()); 700Assert.Equal(tokensList, encoding.Select(t => t.Value).ToArray()); 704Assert.Equal(idList, encoding.Select(t => t.Id).ToArray()); 705Assert.Equal(tokensList, encoding.Select(t => t.Value).ToArray()); 713Assert.Equal(idList, encoding.Select(t => t.Id).ToArray()); 714Assert.Equal(tokensList, encoding.Select(t => t.Value).ToArray()); 718Assert.Equal(idList, encoding.Select(t => t.Id).ToArray()); 719Assert.Equal(tokensList, encoding.Select(t => t.Value).ToArray()); 723Assert.Equal(expectedIds, encoding.Select(t => t.Id).ToArray()); 724Assert.Equal(expectedTokens, encoding.Select(t => t.Value).ToArray()); 728Assert.Equal(expectedIds, encoding.Select(t => t.Id).ToArray()); 729Assert.Equal(expectedTokens, encoding.Select(t => t.Value).ToArray()); 733Assert.Equal(expectedIdsWithSpace, encoding.Select(t => t.Id).ToArray()); 734Assert.Equal(expectedTokensWithSpace, encoding.Select(t => t.Value).ToArray()); 738Assert.Equal(expectedIdsWithSpace, encoding.Select(t => t.Id).ToArray()); 739Assert.Equal(expectedTokensWithSpace, encoding.Select(t => t.Value).ToArray()); 824Assert.Equal(idList, encoding.Select(t => t.Id).ToArray()); 825Assert.Equal(tokensList, encoding.Select(t => t.Value).ToArray()); 830Assert.Equal(idList, encoding.Select(t => t.Id).ToArray()); 831Assert.Equal(tokensList, encoding.Select(t => t.Value).ToArray()); 836Assert.Equal(idList, encoding.Select(t => t.Id).ToArray()); 837Assert.Equal(tokensList, encoding.Select(t => t.Value).ToArray()); 842Assert.Equal(idList, encoding.Select(t => t.Id).ToArray()); 843Assert.Equal(tokensList, encoding.Select(t => t.Value).ToArray()); 854Assert.Equal(idList, encoding.Select(t => t.Id).ToArray()); 855Assert.Equal(tokensList, encoding.Select(t => t.Value).ToArray()); 860Assert.Equal(idList, encoding.Select(t => t.Id).ToArray()); 861Assert.Equal(tokensList, encoding.Select(t => t.Value).ToArray()); 866Assert.Equal(expectedIds, encoding.Select(t => t.Id).ToArray()); 867Assert.Equal(expectedTokens, encoding.Select(t => t.Value).ToArray()); 872Assert.Equal(expectedIds, encoding.Select(t => t.Id).ToArray()); 873Assert.Equal(expectedTokens, encoding.Select(t => t.Value).ToArray()); 878Assert.Equal(expectedIdsWithSpace, encoding.Select(t => t.Id).ToArray()); 879Assert.Equal(expectedTokensWithSpace, encoding.Select(t => t.Value).ToArray()); 884Assert.Equal(expectedIdsWithSpace, encoding.Select(t => t.Id).ToArray()); 885Assert.Equal(expectedTokensWithSpace, encoding.Select(t => t.Value).ToArray());
EnglishRobertaTests.cs (9)
184Assert.Equal(expectedTokens, encoding.Select(t => t.Value).ToArray()); 185Assert.Equal(expectedOffsets, encoding.Select(t => (t.Offset.Start.Value, t.Offset.End.Value - t.Offset.Start.Value)).ToArray()); 186Assert.Equal(expectedIds, encoding.Select(t => t.Id).ToArray()); 188Assert.Equal(expectedTokens, encoding1.Select(t => t.Value).ToArray()); 189Assert.Equal(expectedOffsets, encoding1.Select(t => (t.Offset.Start.Value, t.Offset.End.Value - t.Offset.Start.Value)).ToArray()); 190Assert.Equal(expectedIds, encoding1.Select(t => t.Id).ToArray()); 266int[] encodingIds = encoding.Select(t => t.Id).ToArray(); 267(int, int)[] offsets = encoding.Select(t => (t.Offset.Start.Value, t.Offset.End.Value - t.Offset.Start.Value)).ToArray(); 268string[] tokens = encoding.Select(t => t.Value).ToArray();
LlamaTests.cs (29)
245Assert.Equal(ids, result.Select(t => t.Id).ToArray()); 246Assert.Equal(tokens, result.Select(t => t.Value).ToArray()); 247Assert.Equal(offsets, result.Select(t => (t.Offset.Start.Value, t.Offset.End.Value - t.Offset.Start.Value)).ToArray()); 269int[] extractedIds = bpeTokens.Select(token => token.Id).ToArray(); 279extractedIds = bpeTokens.Select(token => token.Id).ToArray(); 289extractedIds = bpeTokens.Select(token => token.Id).ToArray(); 503Assert.Equal(expectedTokens, encoding.Select(t => t.Value).ToArray()); 504Assert.Equal(expectedOffsets, encoding.Select(t => (t.Offset.Start.Value, t.Offset.End.Value - t.Offset.Start.Value)).ToArray()); 505Assert.Equal(expectedIds, encoding.Select(t => t.Id).ToArray()); 507Assert.Equal(expectedTokens, encoding1.Select(t => t.Value).ToArray()); 508Assert.Equal(expectedOffsets, encoding1.Select(t => (t.Offset.Start.Value, t.Offset.End.Value - t.Offset.Start.Value)).ToArray()); 509Assert.Equal(expectedIds, encoding1.Select(t => t.Id).ToArray()); 532string[] expectedTokens1 = addBeginningOfSentence ? expectedTokens : expectedTokens.Skip(1).ToArray(); 533expectedTokens1 = addEndOfSentence ? expectedTokens1.Concat(new[] { sentencePieceBpe.EndOfSentenceToken }).ToArray() : expectedTokens1; 535(int Index, int Length)[] expectedOffsets1 = addBeginningOfSentence ? expectedOffsets : expectedOffsets.Skip(1).ToArray(); 536expectedOffsets1 = addEndOfSentence ? expectedOffsets1.Concat(new[] { (normalizedText.Length, 0) }).ToArray() : expectedOffsets1; 538int[] expectedIds1 = addBeginningOfSentence ? expectedIds : expectedIds.Skip(1).ToArray(); 539expectedIds1 = addEndOfSentence ? expectedIds1.Concat(new[] { sentencePieceBpe.EndOfSentenceId }).ToArray() : expectedIds1; 541Assert.Equal(expectedTokens1, encoding.Select(t => t.Value).ToArray()); 542Assert.Equal(expectedOffsets1, encoding.Select(t => (t.Offset.Start.Value, t.Offset.End.Value - t.Offset.Start.Value)).ToArray()); 543Assert.Equal(expectedIds1, encoding.Select(t => t.Id).ToArray()); 572int[] expectedIds1 = addBeginningOfSentence ? expectedIds : expectedIds.Skip(1).ToArray(); 573expectedIds1 = addEndOfSentence ? expectedIds1.Concat(new[] { sentencePieceBpe.EndOfSentenceId }).ToArray() : expectedIds1; 606(int Index, int Length)[] expectedOffsets1 = addBeginningOfSentence ? expectedOffsets.Take(expectedIds1.Length - 6).ToArray() : expectedOffsets.Skip(1).Take(expectedIds1.Length - 6).ToArray(); 665Assert.Equal(new[] { tokenizer.BeginningOfSentenceToken, kvp.Key }, encodedTokens.Select(et => et.Value).ToArray()); 666Assert.Equal(new[] { tokenizer.BeginningOfSentenceId, kvp.Value }, encodedTokens.Select(et => et.Id).ToArray()); 670Assert.Equal(encodedIds, encodedTokens.Select(et => et.Id).ToArray()); 684string[] specialTokens = tokenizer.SpecialTokens.Keys.ToArray();
PreTokenizerTests.cs (1)
60(int Offset, int Length)[] splitParts = preTokenizer.PreTokenize(text).ToArray<(int Offset, int Length)>();
TiktokenTests.cs (34)
141TestDecodingWithSpan((tokenizer as TiktokenTokenizer)!, encoded.ToArray(), text); 146int[] ids = result.Select(token => token.Id).ToArray(); 147string[] tokens = result.Select(token => token.Value).ToArray(); 148Range[] offsets = result.Select(token => token.Offset).ToArray(); 194TestDecodingWithSpan((GPT4 as TiktokenTokenizer)!, encoded.ToArray(), text); 199int[] ids = result.Select(token => token.Id).ToArray(); 200string[] tokens = result.Select(token => token.Value).ToArray(); 201(int, int)[] offsets = result.Select(token => (token.Offset.Start.Value, token.Offset.End.Value - token.Offset.Start.Value)).ToArray(); 225TestDecodingWithSpan((gpt4Tokenizer as TiktokenTokenizer)!, encoded.ToArray(), text); 237TestDecodingWithSpan((GPT4 as TiktokenTokenizer)!, encoded.ToArray(), text); 240int[] ids = result.Select(token => token.Id).ToArray(); 241string[] tokens = result.Select(token => token.Value).ToArray(); 242(int, int)[] offsets = result.Select(token => (token.Offset.Start.Value, token.Offset.End.Value - token.Offset.Start.Value)).ToArray(); 272TestDecodingWithSpan((GPT4 as TiktokenTokenizer)!, encoded.ToArray(), text); 275Assert.Equal(encoded, result.Select(token => token.Id).ToArray()); 277Assert.Equal(new string[] { "<|im_start|>", "Hello", " ⭐", "⭐", " World", "<|im_end|>" }, result.Select(token => token.Value).ToArray()); 278Assert.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()); 298TestDecodingWithSpan((GPT4o as TiktokenTokenizer)!, encoded.ToArray(), text); 306TestDecodingWithSpan((GPT4o as TiktokenTokenizer)!, encoded.ToArray(), text); 310Assert.Equal(encoded, result.Select(token => token.Id).ToArray()); 312Assert.Equal(new string[] { "<|endoftext|>", "Hello", " ⭐", " World", "<|endofprompt|>" }, result.Select(token => token.Value).ToArray()); 313Assert.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()); 334TestDecodingWithSpan((GPT2 as TiktokenTokenizer)!, encoded.ToArray(), text); 353TestDecodingWithSpan((P50kBase as TiktokenTokenizer)!, encoded.ToArray(), text); 372TestDecodingWithSpan((P50kEdit as TiktokenTokenizer)!, encoded.ToArray(), text); 391TestDecodingWithSpan((R50kBase as TiktokenTokenizer)!, encoded.ToArray(), text); 571Assert.Equal(expectedTokens, encoding.Select(t => t.Value).ToArray()); 572Assert.Equal(expectedOffsets, encoding.Select(t => (t.Offset.Start.Value, t.Offset.End.Value - t.Offset.Start.Value)).ToArray()); 573Assert.Equal(expectedIds, encoding.Select(t => t.Id).ToArray()); 575Assert.Equal(expectedTokens, encoding1.Select(t => t.Value).ToArray()); 576Assert.Equal(expectedOffsets, encoding1.Select(t => (t.Offset.Start.Value, t.Offset.End.Value - t.Offset.Start.Value)).ToArray()); 577Assert.Equal(expectedIds, encoding1.Select(t => t.Id).ToArray()); 684int[] ids = result.Select(r => r.Id).ToArray(); 685(int Index, int Length)[] offsets = result.Select(r => (r.Offset.Start.Value, r.Offset.End.Value - r.Offset.Start.Value)).ToArray();
WordPieceTests.cs (1)
93Assert.Equal(ids.Take(expectedTokenCount[i - 1]).ToArray(), tokenizer.EncodeToIds(text, maxTokenCount: i, normalizedText: out _, out tokenCount));
Microsoft.ML.TorchSharp (19)
AutoFormerV2\Anchors.cs (2)
46this.strides = strides != null ? strides : this.pyramidLevels.Select(x => (int)Math.Pow(2, x)).ToArray(); 47this.sizes = sizes != null ? sizes : this.pyramidLevels.Select(x => (int)Math.Pow(2, x + 2)).ToArray();
NasBert\Models\NasBertEncoder.cs (3)
116.ToArray(); 126.ToArray(); 260.Select(j => ArchHiddenSize[DiscreteArches[j]]).ToArray();
NasBert\Modules\EmbedTransfer.cs (1)
34.ToArray();
NasBert\Modules\TransformerCell.cs (1)
55.ToArray();
NasBert\NerTrainer.cs (1)
190t = torch.tensor((ZeroArray).Concat(Tokenizer.RobertaModel().ConvertIdsToOccurrenceRanks(encoding.Select(t => t.Id).ToArray())).ToList(), device: Device);
NasBert\Optimizers\BaseOptimizer.cs (2)
35public double LearningRate => Optimizer.ParamGroups.ToArray()[0].LearningRate; 41Parameters = parameters.ToArray();
Roberta\Models\RobertaModel.cs (4)
43Positions = Enumerable.Range(0, options.MaxSequenceLength).ToArray(); 44Zeros = Enumerable.Repeat(0, options.MaxSequenceLength).ToArray(); 45Ones = Enumerable.Repeat(1, options.MaxSequenceLength).ToArray(); 46NegBillionPad = Enumerable.Repeat(negBillion, options.MaxSequenceLength).ToArray();
Roberta\Modules\Encoder.cs (1)
30.ToArray());
Roberta\QATrainer.cs (4)
405var contextToken = contextTokens.Select(t => t.Value).ToArray(); 406var contextTokenId = Tokenizer.RobertaModel().ConvertIdsToOccurrenceRanks(contextTokens.Select(t => t.Id).ToArray()); 868contextIds = contextTokenId.ToArray(); 927outputCache.PredictedAnswersBuffer[index] = new ReadOnlyMemory<char>(_parent.Tokenizer.Decode(_parent.Tokenizer.RobertaModel().ConvertOccurrenceRanksToIds(contextIds).ToArray().AsSpan(predictStart - questionLength - 2, predictEnd - predictStart).ToArray()).Trim().ToCharArray());
Microsoft.ML.TorchSharp.Tests (4)
TextClassificationTests.cs (4)
446var predictions = transformedData.GetColumn<float>("relevance").ToArray().Select(num => (double)num).ToArray(); 447var targets = transformedData.GetColumn<float>("Score").ToArray().Select(num => (double)num).ToArray();
Microsoft.ML.Transforms (70)
CategoricalCatalog.cs (2)
86var columnOptions = columns.Select(x => new OneHotEncodingEstimator.ColumnOptions(x.OutputColumnName, x.InputColumnName, outputKind, maximumNumberOfKeys, keyOrdinality)).ToArray(); 186var columnOptions = columns.Select(x => new OneHotHashEncodingEstimator.ColumnOptions(x.OutputColumnName, x.InputColumnName, outputKind, numberOfBits, seed, useOrderedHashing, maximumNumberOfInverts)).ToArray();
CountFeatureSelection.cs (3)
196var scores = CountFeatureSelectionUtils.Train(_host, input, _columns.Select(column => column.InputColumnName).ToArray(), out colSizes); 236var columnOptions = options.Columns.Select(inColName => new ColumnOptions(inColName, count: options.Count)).ToArray(); 346return aggregators.Select(a => a.Count).ToArray();
CustomMappingTransformer.cs (1)
192return Enumerable.Range(0, dstRow.Schema.Count).Select(x => new DataViewSchema.DetachedColumn(dstRow.Schema[x])).ToArray();
Dracula\CMCountTable.cs (1)
262var priorCounts = PriorCounts.Select(x => (float)x).ToArray();
Dracula\CountTableTransformer.cs (7)
91: this(env, labelColumnName, columns.Cast<ColumnOptionsBase>().ToArray()) 93_builders = columns.Select(c => c.CountTableBuilder).ToArray(); 172var featurizer = new CountTargetEncodingFeaturizer(_host, _columns.Select(col => col.PriorCoefficient).ToArray(), _columns.Select(col => col.LaplaceScale).ToArray(), labelCardinality, multiCountTable); 175_columns.Select(col => col.Seed).ToArray(), _columns.Select(col => (col.Name, col.InputColumnName)).ToArray()); 317return keyNames.DenseValues().Select(name => name.ToString()).ToArray();
Dracula\CountTargetEncodingTransformer.cs (3)
127columnOptions.Select(col => new CountTableEstimator.ColumnOptions(col.Name, col.Name, col.CountTableBuilder, col.PriorCoefficient, col.LaplaceScale, col.Seed)).ToArray()), 136columnOptions.Select(col => new CountTableEstimator.SharedColumnOptions(col.Name, col.Name, col.PriorCoefficient, col.LaplaceScale, col.Seed)).ToArray()), 151columns.Select(c => new InputOutputColumnPair(c.OutputColumnName, c.OutputColumnName)).ToArray());
Dracula\DictCountTable.cs (2)
200var priorCounts = PriorCounts.Select(x => (float)x).ToArray(); 270outputGarbageCounts = garbageCounts.Select(x => (float)x).ToArray();
Dracula\MultiCountTable.cs (1)
139public override int[] SlotCount => _countTables.Select(ct => ct.Length).ToArray();
EntryPoints\TextAnalytics.cs (1)
123var cols = input.Columns.Select(colPair => new LatentDirichletAllocationEstimator.ColumnOptions(colPair, input)).ToArray();
Expression\LambdaBinder.cs (4)
42.ToArray(); 1300var kinds = node.Args.Items.Select(item => item.AsExpr.ExprType).ToArray(); 1351var arities = candidates.Select(c => c.Arity).Distinct().OrderBy(x => x).ToArray(); 1365var kindsRet = candidates.Select(c => c.ReturnKind).Distinct().ToArray();
ExtensionsCatalog.cs (2)
56return new MissingValueIndicatorEstimator(env, columns.Select(x => (x.OutputColumnName, x.InputColumnName)).ToArray()); 109var columnOptions = columns.Select(x => new MissingValueReplacingEstimator.ColumnOptions(x.OutputColumnName, x.InputColumnName, replacementMode, imputeBySlot)).ToArray();
FeatureSelectionCatalog.cs (2)
68columns.Select(x => (x.OutputColumnName, x.InputColumnName)).ToArray()); 124var columnOptions = columns.Select(x => new CountFeatureSelectingEstimator.ColumnOptions(x.OutputColumnName, x.InputColumnName, count)).ToArray();
GcnTransform.cs (4)
192return columns.Select(x => (x.Name, x.InputColumnName)).ToArray(); 207_columns = columns.ToArray(); 1006: this(env, columns.Select(x => new ColumnOptions(x.outputColumnName, x.inputColumnName, norm, ensureZeroMean)).ToArray()) 1090: this(env, columns.Select(x => new ColumnOptions(x.outputColumnName, x.inputColumnName, ensureZeroMean, ensureUnitStandardDeviation, scale)).ToArray())
HashJoiningTransform.cs (3)
348var parts = ReadOnlyMemoryUtils.Split(slotMapString.AsMemory(), new[] { ';' }).ToArray(); 352var slotIndices = ReadOnlyMemoryUtils.Split(parts[i], new[] { ',' }).ToArray(); 380return Enumerable.Range(0, srcSlotCount).Select(v => new[] { v }).ToArray();
MissingValueReplacing.cs (1)
184return columns.Select(x => (x.Name, x.InputColumnName)).ToArray();
MutualInformationFeatureSelection.cs (3)
183var colArr = colSet.ToArray(); 195CreateDropAndCopyColumns(colArr.Length, scores, threshold, tiedScoresToKeep, _columns.Where(col => colSet.Contains(col.inputColumnName)).ToArray(), out int[] selectedCount, out dropSlotsColumns, out copyColumnPairs); 269(string outputColumnName, string inputColumnName)[] cols = options.Columns.Select(col => (col, col)).ToArray();
OneHotEncoding.cs (1)
309toBinVector = new KeyToBinaryVectorMappingEstimator(_host, binaryCols.Select(x => (x.outputColumnName, x.inputColumnName)).ToArray());
OneHotHashEncoding.cs (2)
328_hash = new HashingEstimator(_host, columns.Select(x => x.HashingOptions).ToArray()); 359toBinVector = new KeyToBinaryVectorMappingEstimator(_host, binaryCols.Select(x => (x.outputColumnName, x.inputColumnName)).ToArray());
PermutationFeatureImportanceExtensions.cs (1)
479topKAccuracies: a?.TopKAccuracyForAllK?.Zip(b.TopKAccuracyForAllK, (a, b) => a - b)?.ToArray(),
RandomFourierFeaturizing.cs (2)
239return columns.Select(x => (x.Name, x.InputColumnName)).ToArray(); 346res = reservoirSamplers[iinfo].GetSample().ToArray();
StatefulCustomMappingTransformer.cs (1)
122var cols = Enumerable.Range(0, dstRow.Schema.Count).Select(x => new DataViewSchema.DetachedColumn(dstRow.Schema[x])).ToArray();
SvmLight\SvmLightLoaderSaverCatalog.cs (1)
141saver.SaveData(stream, data, data.Schema.Select(col => col.Index).ToArray());
Text\LdaSingleBox.cs (1)
170logLikelihood = pLogLikelihood.Select(item => (float)item).ToArray();
Text\LdaTransform.cs (2)
648return columns.Select(x => (x.Name, x.InputColumnName)).ToArray(); 728var cols = options.Columns.Select(colPair => new LatentDirichletAllocationEstimator.ColumnOptions(colPair, options)).ToArray();
Text\NgramHashingTransformer.cs (1)
227string[][] friendlyNames = _columns.Select(c => c.FriendlyNames).ToArray();
Text\NgramTransform.cs (2)
197return columns.Select(x => (x.Name, x.InputColumnName)).ToArray(); 936: this(env, columns.Select(x => new ColumnOptions(x.outputColumnName, x.inputColumnName, ngramLength, skipLength, useAllLengths, weighting, maximumNgramsCount)).ToArray())
Text\SentimentAnalyzingTransform.cs (3)
134return new ColumnCopyingTransformer(env, hiddenNames.Select(x => (Name: x.Key, Source: x.Value)).ToArray()).Transform(input); 142input = new ColumnCopyingTransformer(env, hiddenNames.Select(x => (outputColumnName: x.Key, inputColumnName: x.Value)).ToArray()).Transform(input); 143return ColumnSelectingTransformer.CreateDrop(env, input, hiddenNames.Select(pair => pair.Value).ToArray());
Text\StopWordsRemovingTransformer.cs (3)
150var langValues = values as int[] ?? values.ToArray(); 184return columns.Select(x => (x.Name, x.InputColumnName)).ToArray(); 656: this(env, columns.Select(x => new ColumnOptions(x.outputColumnName, x.inputColumnName, language)).ToArray())
Text\TextFeaturizingEstimator.cs (1)
418_inputColumns = source.ToArray();
Text\WordBagTransform.cs (1)
522chain = chain.Append<ITransformer>(new MissingValueDroppingEstimator(h, missingDropColumns.Select(x => (x, x)).ToArray()));
Text\WordEmbeddingsExtractor.cs (2)
215return columns.Select(x => (x.Name, x.InputColumnName)).ToArray(); 715float[] firstValue = wordsInFirstLine.Skip(1).Select(x => float.TryParse(x, out temp) ? temp : Single.NaN).ToArray();
Text\WordHashBagProducingTransform.cs (2)
146Columns = extractorCols.ToArray(), 375.Append(new ColumnSelectingTransformer(h, null, tmpColNames.SelectMany(cols => cols).ToArray()));
Text\WordTokenizing.cs (4)
113return columns.Select(x => (x.Name, x.InputColumnName)).ToArray(); 119_columns = columns.ToArray(); 415string[] separators = column.SeparatorsArray.Select(c => c.ToString()).ToArray(); 479: this(env, columns.Select(x => new ColumnOptions(x.outputColumnName, x.inputColumnName, separators)).ToArray())
Microsoft.ML.Vision (13)
DnnRetrainTransform.cs (10)
327Runner runner = new Runner(_session, new[] { options.LearningRateOperation }.Concat(inputsForTraining).ToArray(), 549(_tfInputTypes, _tfInputShapes, _tfInputOperations) = GetInputInfo(Host, _session, _inputs.Select(x => _idvToTfMapping[x]).ToArray(), batchSize); 621return new TensorShape(dims.Select(x => (int)x).ToArray()); 648int[] dims = shape.ndim > 0 ? shape.dims.Skip(shape.dims[0] == -1 ? 1 : 0).ToArray() : new[] { 0 }; 793var colTypeDims = vecType.Dimensions.Select(dim => (int)dim).ToArray(); 862var activeOutputColNames = _parent._outputs.Where((x, i) => activeOutput(i)).ToArray(); 929_parent._inputs.Select(x => _parent._idvToTfMapping[x]).ToArray(), 930_parent._outputs.Select(x => _parent._idvToTfMapping[x]).ToArray()); 991_dims = _tfShape.dims.Select(x => (long)x).ToArray(); 1080_dims = _tfShape.dims.Select(x => (long)x).ToArray();
ImageClassificationTrainer.cs (3)
979var labelTensorShape = _labelTensor.TensorShape.dims.Select(x => (long)x).ToArray(); 980var featureTensorShape = _bottleneckInput.TensorShape.dims.Select(x => (long)x).ToArray(); 1458w.WriteByteArray(buffer.DangerousMemoryBlock.ToArray());
Microsoft.Net.Http.Headers (2)
ContentDispositionHeaderValue.cs (2)
586var parts = processedInput.Split(QuestionMark).ToArray(); 707var parts = input.Split(SingleQuote).ToArray();
Microsoft.Net.Http.Headers.Tests (2)
RangeItemHeaderValueTest.cs (2)
133var ranges = result.Ranges.ToArray(); 147var ranges = result.Ranges.ToArray();
Microsoft.NET.StringTools (1)
WeakStringCacheInterner.cs (1)
156result.AppendLine(string.Format("##########Top Top Interned Strings: \n{0} ", string.Join("\n==============\n", topInternedStrings.ToArray())));
Microsoft.NET.StringTools.net35 (1)
WeakStringCacheInterner.cs (1)
156result.AppendLine(string.Format("##########Top Top Interned Strings: \n{0} ", string.Join("\n==============\n", topInternedStrings.ToArray())));
Microsoft.VisualBasic.Core (4)
Microsoft\VisualBasic\CompilerServices\Symbols.vb (4)
970result = Enumerable.ToArray(classConstraint.GetMember(memberName, s_defaultLookupFlags)) 975result = Enumerable.ToArray(_type.GetMember(memberName, s_defaultLookupFlags)) 1029Dim attributes As Object() = Enumerable.ToArray(current.GetCustomAttributes(GetType(DefaultMemberAttribute), False)) 1040Dim result As MemberInfo() = Enumerable.ToArray(current.GetMember(potentialDefaultMemberName, s_defaultLookupFlags))
Microsoft.VisualBasic.Tests (8)
Microsoft\VisualBasic\ApplicationServices\ConsoleApplicationBaseTests.cs (1)
12string[] expected = System.Environment.GetCommandLineArgs().Skip(1).ToArray();
Microsoft\VisualBasic\ApplicationServices\SingleInstanceTests.cs (7)
119}, cancellationToken: default, creationOptions: default, scheduler: TaskScheduler.Default)).ToArray(); 133string[][] sentArgs = Enumerable.Range(0, n).Select(i => Enumerable.Range(0, i).Select(i => i.ToString()).ToArray()).ToArray(); 154string[][] sentArgs = Enumerable.Range(0, n).Select(i => Enumerable.Range(0, i).Select(i => i.ToString()).ToArray()).ToArray(); 157var tasks = Enumerable.Range(0, n).Select(i => Task.Factory.StartNew(() => { Assert.True(SendSecondInstanceArgs(pipeName, SendTimeout, sentArgs[i])); }, cancellationToken: default, creationOptions: default, scheduler: TaskScheduler.Default)).ToArray(); 173string[] expectedArgs = getStrings(20000).ToArray();
Microsoft.VisualStudio.LanguageServices (11)
EditorConfigSettings\Common\EnumSettingViewModel.cs (1)
53=> _mapping.Keys.ToArray();
Implementation\HierarchyItemToProjectIdMap.cs (1)
54.ToArray();
Interactive\VsInteractiveWindowProvider.cs (2)
153a => ((ContentTypeAttribute)a).ContentTypes == coreContentType)).ToArray(); 158a => ((ContentTypeAttribute)a).ContentTypes == specializedContentType)).ToArray();
PickMembers\PickMembersDialog.xaml.cs (1)
140var selectedItems = Members.SelectedItems.OfType<MemberSymbolViewModel>().ToArray();
Progression\GraphNodeIdCreation.cs (3)
54var partials = nodes.ToArray(); 195genericArguments.Add(GraphNodeId.GetNested(nodes.ToArray())); 269new GraphNodeIdCollection(false, nodes.ToArray()));
Progression\GraphQueryManager.cs (1)
103var tasks = liveQueries.Select(t => PopulateContextGraphAsync(solution, t.context, t.queries, disposalToken)).ToArray();
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
1446var fileNames = documents.Select(GetFilePath).ToArray();
Venus\ContainedLanguage.IVsContainedCode.cs (1)
66.ToArray();
Microsoft.VisualStudio.LanguageServices.CSharp (6)
CodeModel\CSharpCodeModelService.CodeModelEventCollector.cs (1)
37.ToArray();
CodeModel\CSharpCodeModelService.cs (5)
1246var commentList = CollectComments(firstToken.LeadingTrivia.ToArray()); 3072var attributes = GetAttributeNodes(containerNode).ToArray(); 3102var attributeArguments = GetAttributeArgumentNodes(containerNode).ToArray(); 3117var imports = GetImportNodes(containerNode).ToArray(); 3132var parameters = GetParameterNodes(containerNode).ToArray();
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (8)
ProjectSystemShim\CPS\SourceFileHandlingTests.cs (6)
104var documents = GetCurrentDocuments().ToArray(); 148var documents = GetCurrentDocuments().ToArray(); 200var documents = GetCurrentDocuments().ToArray(); 239var documents = GetCurrentDocuments().ToArray(); 281var documents = GetCurrentDocuments().ToArray(); 393var documents = GetCurrentDocuments().ToArray();
UnifiedSettings\CSharpUnifiedSettingsTests.cs (2)
46return allValues.Where(value => !value.Equals(SnippetsRule.Default)).ToArray(); 52return allValues.Where(value => !value.Equals(EnterKeyRule.Default)).ToArray();
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
ProjectsHandler.cs (1)
46SourceFiles = project.Documents.Select(d => requestContext.ProtocolConverter.ToProtocolUri(new Uri(d.FilePath))).ToArray(),
Microsoft.VisualStudio.LanguageServices.Xaml (1)
Implementation\LanguageClient\XamlCapabilities.cs (1)
23AllCommitCharacters = RoslynCompletion.CompletionRules.Default.DefaultCommitCharacters.Select(c => c.ToString()).ToArray()
MSBuild (4)
CopyOnWriteDictionary.cs (1)
387KeyValuePair<string, V>[] array = snapshot.ToArray();
PrintLineDebuggerWriters.cs (1)
55var argsArray = args as string[] ?? args.ToArray();
XMake.cs (2)
2673targets = targets.Union(getTargetResult, MSBuildNameIgnoreCaseComparer.Default).ToArray(); 3163? commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.InputResultsCaches].Where(p => p != null).ToArray()
MSBuildTaskHost (1)
Immutable\ImmutableDictionary.cs (1)
206return _backing.ToArray();
Mvc.RoutingWebSite (1)
Controllers\RouteDataController.cs (1)
38var routers = RouteData.Routers.Select(r => r.GetType().FullName).ToArray();
Negotiate.Server (2)
Program.cs (2)
15using var host1 = CreateHostBuilder(args.Append("Persist=true").ToArray()).Build(); 16using var host2 = CreateHostBuilder(args.Append("Persist=false").ToArray()).Build();
PresentationFramework (2)
MS\Internal\WindowsRuntime\Generated\WinRT\GuidGenerator.cs (2)
126return new Guid(data.Take(16).ToArray()); 138var data = wrt_pinterface_namespace.ToByteArray().Concat(UTF8Encoding.UTF8.GetBytes(sig)).ToArray();
Roslyn.Test.PdbUtilities (3)
EditAndContinue\EditAndContinueTestUtilities.cs (1)
121=> new MetadataAggregator(readers[0], readers.Skip(1).ToArray());
Reader\MethodDebugInfoBytes.cs (1)
48var groupSizes = importStringGroups.Select(g => (short)g.Length).ToArray();
Reader\PdbValidation.cs (1)
430var array = elements.ToArray();
RunTests (1)
Program.cs (1)
426var dumpFiles = Directory.EnumerateFiles(directory, "*.dmp", SearchOption.AllDirectories).ToArray();
Sockets.FunctionalTests (1)
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (1)
934var headerStringValues = new StringValues(Enumerable.Repeat(headerValue, headerCount).ToArray());
System.Collections.Immutable (16)
System\Collections\Frozen\FrozenDictionary.cs (2)
159string[] keys = (string[])(object)source.Keys.ToArray(); 160TValue[] values = source.Values.ToArray();
System\Collections\Frozen\SmallFrozenDictionary.cs (2)
28_keys = source.Keys.ToArray(); 29_values = source.Values.ToArray();
System\Collections\Frozen\SmallFrozenSet.cs (1)
21_items = source.ToArray();
System\Collections\Frozen\SmallValueTypeComparableFrozenDictionary.cs (2)
34_keys = source.Keys.ToArray(); 35_values = source.Values.ToArray();
System\Collections\Frozen\SmallValueTypeComparableFrozenSet.cs (1)
32_items = source.ToArray();
System\Collections\Frozen\SmallValueTypeDefaultComparerFrozenDictionary.cs (2)
26_keys = source.Keys.ToArray(); 27_values = source.Values.ToArray();
System\Collections\Frozen\SmallValueTypeDefaultComparerFrozenSet.cs (1)
24_items = source.ToArray();
System\Collections\Immutable\ImmutableArray.cs (1)
179return new ImmutableArray<T>(items.ToArray());
System\Collections\Immutable\ImmutableEnumerableDebuggerProxy.cs (1)
83public T[] Contents => _cachedContents ??= _enumerable.ToArray();
System\Collections\Immutable\ImmutableExtensions.cs (2)
207_collection = _sequence.ToArray(); 221_collection ??= _sequence.ToArray();
System\Collections\Immutable\ImmutableExtensions.Minimal.cs (1)
142/// This is more efficient than the <see cref="System.Linq.Enumerable.ToArray{TSource}(IEnumerable{TSource})"/> extension method
System.ComponentModel.Annotations (2)
System\ComponentModel\DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (2)
87Attribute[] newAttributes = TypeDescriptor.GetAttributes(AssociatedMetadataType).OfType<Attribute>().ToArray(); 164string.Join(", ", buddyTypeMembers.ToArray())));
System.ComponentModel.Composition (24)
Microsoft\Internal\Collections\CollectionServices.cs (1)
214return enumerable.ToArray();
System\ComponentModel\Composition\AttributedModelServices.cs (1)
154attributedParts.Select(AttributedModelServices.CreatePart).ToArray(),
System\ComponentModel\Composition\CompositionException.cs (1)
95_errors = Array.AsReadOnly(errors == null ? Array.Empty<CompositionError>() : errors.ToArray<CompositionError>());
System\ComponentModel\Composition\Hosting\CatalogExportProvider.cs (1)
795rejectedParts = _rejectedParts.ToArray();
System\ComponentModel\Composition\Hosting\ComposablePartCatalogCollection.cs (3)
49var addedParts = new Lazy<IEnumerable<ComposablePartDefinition>>(() => item.ToArray(), LazyThreadSafetyMode.PublicationOnly); 103var removedParts = new Lazy<IEnumerable<ComposablePartDefinition>>(() => catalogs.SelectMany(catalog => catalog).ToArray(), LazyThreadSafetyMode.PublicationOnly); 187var removedParts = new Lazy<IEnumerable<ComposablePartDefinition>>(() => item.ToArray(), LazyThreadSafetyMode.PublicationOnly);
System\ComponentModel\Composition\Hosting\ComposablePartExportProvider.cs (2)
366batch.PartsToAdd.SelectMany(part => part.ExportDefinitions).ToArray() : 370batch.PartsToRemove.SelectMany(part => part.ExportDefinitions).ToArray() :
System\ComponentModel\Composition\Hosting\CompositionScopeDefinition.cs (1)
65_children = children.ToArray();
System\ComponentModel\Composition\Hosting\CompositionServices.cs (2)
85return specifiedContractType.GetGenericTypeDefinition().MakeGenericType(memberGenericParameters.ToArray()); 323foreach (var key in dictionary.Keys.ToArray())
System\ComponentModel\Composition\Hosting\DirectoryCatalog.cs (3)
589beforeFiles = _loadedFiles.ToArray(); 603.ToArray<ComposablePartDefinition>(); 607.ToArray<ComposablePartDefinition>();
System\ComponentModel\Composition\Hosting\ExportsChangeEventArgs.cs (1)
101.ToArray();
System\ComponentModel\Composition\Hosting\ImportEngine.PartManager.cs (1)
68return _importedContractNames ??= Part.ImportDefinitions.Select(import => import.ContractName ?? ImportDefinition.EmptyContractName).Distinct().ToArray();
System\ComponentModel\Composition\Hosting\TypeCatalog.cs (1)
206Type[] arr = types.ToArray();
System\ComponentModel\Composition\ReflectionModel\GenericServices.cs (1)
68return type.GetPureGenericParameters().Select(parameter => parameter.GenericParameterPosition).ToArray();
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePart.cs (1)
315ReflectionParameterImportDefinition[] parameterImports = ImportDefinitions.OfType<ReflectionParameterImportDefinition>().ToArray();
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePartDefinition.cs (2)
61ExportDefinition[] exports = _creationInfo.GetExports().ToArray(); 85ImportDefinition[] imports = _creationInfo.GetImports().ToArray();
System\ComponentModel\Composition\ReflectionModel\ReflectionModelServices.cs (2)
313return reflectionPartDefinition.TryMakeGenericPartDefinition(genericParameters.ToArray(), out specialization); 365.ToArray();
System.Composition.Hosting (14)
System\Composition\Hosting\CompositionHost.cs (1)
60.ToArray();
System\Composition\Hosting\Core\CompositionDependency.cs (1)
121_oversuppliedTargets = targets.ToArray();
System\Composition\Hosting\Core\DependencyAccessor.cs (2)
30var all = GetPromises(contract).ToArray(); 63var all = GetPromises(contract).ToArray();
System\Composition\Hosting\Core\ExportDescriptorRegistryUpdate.cs (2)
49var descriptors = result.Value.GetResults().Select(cb => cb.GetDescriptor()).ToArray(); 141return definitions.Select(d => new ExportDescriptorPromise(contract, "Preexisting", false, s_noDependencies, _ => d)).ToArray();
System\Composition\Hosting\Providers\ExportFactory\ExportFactoryExportDescriptorProvider.cs (2)
36boundaries = (specifiedBoundaries ?? Array.Empty<string>()).ToArray(); 59.ToArray();
System\Composition\Hosting\Providers\ExportFactory\ExportFactoryWithMetadataExportDescriptorProvider.cs (2)
39boundaries = (specifiedBoundaries ?? Array.Empty<string>()).ToArray(); 64.ToArray();
System\Composition\Hosting\Providers\ImportMany\ImportManyExportDescriptorProvider.cs (2)
50.ToArray(); 52return ExportDescriptor.Create((c, o) => dependentDescriptors.Select(e => (TElement)e.Activator(c, o)).ToArray(), NoMetadata);
System\Composition\Hosting\Providers\Lazy\LazyExportDescriptorProvider.cs (1)
41.ToArray();
System\Composition\Hosting\Providers\Lazy\LazyWithMetadataExportDescriptorProvider.cs (1)
47.ToArray();
System.Composition.TypedParts (9)
System\Composition\Convention\AttributedModelProviderExtensions.cs (4)
21return convention.GetCustomAttributes(reflectedType, member).ToArray(); 26return convention.GetCustomAttributes(reflectedType, member).OfType<TAttribute>().ToArray(); 36return convention.GetCustomAttributes(reflectedType, parameter).OfType<Attribute>().ToArray(); 41return convention.GetCustomAttributes(reflectedType, parameter).OfType<TAttribute>().ToArray();
System\Composition\Debugging\DiscoveredPartDebuggerProxy.cs (1)
27get { return _discoveredPart.DiscoveredExports.ToArray(); }
System\Composition\TypedParts\ActivationFeatures\PropertyInjectionFeature.cs (2)
32let attrs = _attributeContext.GetDeclaredAttributes(pi.DeclaringType, pi).ToArray() 35select new { Site = site, ImportInfo = ContractHelpers.GetImportInfo(pi.PropertyType, attrs, site) }).ToArray();
System\Composition\TypedParts\Discovery\DiscoveredPart.cs (1)
78.ToArray();
System\Composition\TypedParts\TypedPartExportDescriptorProvider.cs (1)
73return forKey.Select(de => de.GetExportDescriptorPromise(contract, definitionAccessor)).ToArray();
System.Drawing.Common.Tests (3)
System\Drawing\Drawing2D\MatrixTests.cs (3)
119using Matrix matrix = new(rect, plgpnts.Select(p => (PointF)p).ToArray()); 720PointF[] pointFs = points.Select(p => (PointF)p).ToArray(); 775PointF[] pointFs = points.Select(p => (PointF)p).ToArray();
System.Formats.Nrbf (1)
System\Formats\Nrbf\ArraySinglePrimitiveRecord.cs (1)
42=> (T[])(_arrayNullsNotAllowed ??= (Values is T[] array ? array : Values.ToArray()));
System.IO.IsolatedStorage (2)
System\IO\IsolatedStorage\IsolatedStorageFile.cs (2)
177return Directory.EnumerateFiles(RootDirectory, searchPattern).Select(f => Path.GetFileName(f)).ToArray(); 201return Directory.EnumerateDirectories(RootDirectory, searchPattern).Select(m => m.Substring(Path.GetDirectoryName(m)!.Length + 1)).ToArray();
System.Linq (19)
System\Linq\DebugView.cs (3)
39T[] array = _enumerable.ToArray(); 108public TElement[] Values => _cachedValues ??= _grouping.ToArray(); 122public IGrouping<TKey, TElement>[] Groupings => _cachedGroupings ??= _lookup.ToArray();
System\Linq\DefaultIfEmpty.SpeedOpt.cs (1)
15TSource[] array = _source.ToArray();
System\Linq\Grouping.SpeedOpt.cs (2)
37Lookup<TKey, TElement>.Create(_source, _keySelector, _elementSelector, _comparer).ToArray(); 49Lookup<TKey, TSource>.Create(_source, _keySelector, _comparer).ToArray();
System\Linq\OrderedEnumerable.cs (2)
145TElement[] buffer = _source.ToArray(); 216buffer = _source.ToArray();
System\Linq\OrderedEnumerable.SpeedOpt.cs (8)
17TElement[] buffer = _source.ToArray(); 30TElement[] buffer = _source.ToArray(); 66TElement[] buffer = _source.ToArray(); 91TElement[] buffer = _source.ToArray(); 153TElement[] buffer = _source.ToArray(); 221TElement[] buffer = _source.ToArray(); 369TElement[] array = _source.ToArray(); 482TElement[] buffer = _source._source.ToArray();
System\Linq\Reverse.cs (1)
77TSource[] buffer = _source.ToArray();
System\Linq\Reverse.SpeedOpt.cs (2)
14TSource[] array = _source.ToArray(); 44TSource[] array = _source.ToArray();
System.Linq.Expressions (3)
System\Dynamic\Utils\CollectionExtensions.cs (1)
72T[] array = enumerable.ToArray();
System\Dynamic\Utils\TypeUtils.cs (1)
18.ToArray();
System\Linq\Expressions\BlockExpression.cs (1)
1097_ => new BlockN(expressions as ReadOnlyCollection<Expression> ?? (IReadOnlyList<Expression>)expressions.ToArray()),
System.Linq.Parallel (2)
System\Linq\Parallel\QueryOperators\QueryOperator.cs (1)
205return ExceptionAggregator.WrapEnumerable(opSequentialWithCancelChecks, querySettings.CancellationState).ToArray();
System\Linq\ParallelEnumerable.cs (1)
4825return ToList<TSource>(source).ToArray<TSource>();
System.Linq.Queryable (3)
System\Linq\EnumerableRewriter.cs (3)
178.ToArray(); 225.ToArray(); 248ParameterInfo[][] parameters = matchingMethods.Select(m => m.GetParameters()).ToArray();
System.Numerics.Tensors (10)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan.cs (3)
144public ReadOnlyTensorSpan(Array? array) : this(array, ReadOnlySpan<int>.Empty, array == null ? [0] : (from dim in Enumerable.Range(0, array.Rank) select (nint)array.GetLength(dim)).ToArray(), []) { } 156lengths = (from dim in Enumerable.Range(0, array.Rank) select (nint)array.GetLength(dim)).ToArray(); 200lengths = (from dim in Enumerable.Range(0, array.Rank) select (nint)array.GetLength(dim)).ToArray();
System\Numerics\Tensors\netcore\Tensor.cs (1)
675maximumLengths = (from number in Enumerable.Range(0, Rank) select (nint)5).ToArray();
System\Numerics\Tensors\netcore\Tensor.Factory.cs (2)
79T[] data = values.ToArray(); 92T[] data = values.ToArray();
System\Numerics\Tensors\netcore\TensorExtensions.cs (1)
3605int[] dimension = Enumerable.Range(0, tensor.Rank).ToArray();
System\Numerics\Tensors\netcore\TensorSpan.cs (3)
147public TensorSpan(Array? array) : this(array, ReadOnlySpan<int>.Empty, array == null ? [0] : (from dim in Enumerable.Range(0, array.Rank) select (nint)array.GetLength(dim)).ToArray(), []) { } 159lengths = (from dim in Enumerable.Range(0, array.Rank) select (nint)array.GetLength(dim)).ToArray(); 204lengths = (from dim in Enumerable.Range(0, array.Rank) select (nint)array.GetLength(dim)).ToArray();
System.Private.DataContractSerialization (10)
System\Runtime\Serialization\ClassDataContract.cs (2)
822object[] memberAttributes = member.GetCustomAttributes(typeof(DataMemberAttribute), false).ToArray(); 885object[] memberAttributes = member.GetCustomAttributes(typeof(IgnoreDataMemberAttribute), false).ToArray();
System\Runtime\Serialization\DataContract.cs (5)
1342object[] dataContractAttributes = type.GetCustomAttributes(Globals.TypeOfDataContractAttribute, false).ToArray(); 1367object[] collectionContractAttributes = type.GetCustomAttributes(Globals.TypeOfCollectionDataContractAttribute, false).ToArray(); 1519GetGlobalDataContractNamespace(clrNs, type.Module.GetCustomAttributes<ContractNamespaceAttribute>().ToArray()) ?? 1520GetGlobalDataContractNamespace(clrNs, type.Assembly.GetCustomAttributes<ContractNamespaceAttribute>().ToArray()); 1950object[] knownTypeAttributes = type.GetCustomAttributes(Globals.TypeOfKnownTypeAttribute, false).ToArray();
System\Runtime\Serialization\EnumDataContract.cs (2)
229object[] memberAttributes = field.GetCustomAttributes(Globals.TypeOfEnumMemberAttribute, false).ToArray(); 250object[] dataMemberAttributes = field.GetCustomAttributes(Globals.TypeOfDataMemberAttribute, false).ToArray();
System\Runtime\Serialization\XmlDataContract.cs (1)
154object[]? xmlRootAttributes = UnderlyingType?.GetCustomAttributes(Globals.TypeOfXmlRootAttribute, false).ToArray();
System.Private.Windows.Core.TestUtilities (7)
DebuggerAttributes.cs (2)
94.ToArray(); 120.ToArray();
TestAccessor.cs (2)
66Type[] types = invokeMethodInfo is null ? [] : invokeMethodInfo.GetParameters().Select(pi => pi.ParameterType).ToArray(); 118args.Select(a => a!.GetType()).ToArray(),
XUnit\ReadOnlyTheoryData.cs (3)
23=> _data = data.Cast<object>().Select(i => new object?[] { i }).ToArray(); 26=> _data = data.Select(i => new object?[] { i }).ToArray(); 29=> _data = data.Select(i => new object?[] { i }).ToArray();
System.Reflection.DispatchProxy (1)
System\Reflection\DispatchProxyGenerator.cs (1)
388PropertyBuilder pb = _tb.DefineProperty(pi.Name, pi.Attributes, pi.PropertyType, pi.GetIndexParameters().Select(p => p.ParameterType).ToArray());
System.Resources.Extensions (1)
System\Resources\Extensions\BinaryFormat\Deserializer\ArrayRecordDeserializer.cs (1)
69Deserializer.PendValueUpdater(new ArrayUpdater(_arrayRecord.Id, reference, indices.ToArray()));
System.ServiceModel.UnixDomainSocket (1)
System\ServiceModel\Channels\UnixDomainSocketChannelFactory.cs (1)
46address = new EndpointAddress(uriBuilder.Uri, hostIdentity,address.Headers.ToArray());
System.Text.Json.SourceGeneration (3)
Helpers\RoslynExtensions.cs (1)
94.ToArray();
JsonSourceGenerator.Parser.cs (1)
1730IMethodSymbol[] publicCtors = namedType.GetExplicitlyDeclaredInstanceConstructors().Where(ctor => ctor.DeclaredAccessibility is Accessibility.Public).ToArray();
src\libraries\Common\src\SourceGenerators\ImmutableEquatableArray.cs (1)
25=> _values = values.ToArray();
System.Threading.Tasks.Dataflow (1)
Internal\EnumerableDebugView.cs (1)
35public KeyValuePair<TKey, TValue>[] Items { get { return _enumerable.ToArray(); } }
System.Windows.Forms (5)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarBodyAccessibleObject.cs (1)
92return RowsAccessibleObjects?.First?.Value.CellsAccessibleObjects?.ToArray();
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.PropertyTabCollection.cs (1)
101_ownerPropertyGrid._tabs.Select(i => i.Tab).ToArray(),
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
3936ToolStripItem[] itemsArray = items.Cast<ToolStripItem>().ToArray();
System\Windows\Forms\Controls\WebBrowser\WebBrowserContainer.cs (1)
167foreach (Control ctl in components.ToArray())
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogPage.cs (1)
871_boundCustomButtons = buttons.Where(e => !e.IsStandardButton).ToArray();
System.Windows.Forms.Design (1)
System\Drawing\Design\ToolboxItem.cs (1)
786return col?.OfType<ToolboxItemFilterAttribute>().ToArray() ?? [];
System.Windows.Forms.Primitives.TestUtilities (1)
Extensions\AssertExtensions.cs (1)
444T[] expectedArray = expected.ToArray();
System.Windows.Forms.Tests (92)
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (1)
1751listView.Items.AddRange(Enumerable.Range(0, 11).Select(i => new ListViewItem()).ToArray());
System\Windows\Forms\AccessibleObjects\TreeView.TreeViewAccessibleObjectTests.cs (1)
277control.Nodes.AddRange(nodeNames.Select(name => new TreeNode(name)).ToArray());
System\Windows\Forms\ColorDialogTests.cs (14)
19Assert.Equal(Enumerable.Repeat(0x00FFFFFF, 16).ToArray(), dialog.CustomColors); 190yield return new object[] { null, Enumerable.Repeat(0x00FFFFFF, 16).ToArray() }; 191yield return new object[] { Array.Empty<int>(), Enumerable.Repeat(0x00FFFFFF, 16).ToArray() }; 192yield return new object[] { new int[] { 1, 2, 3 }, new int[] { 1, 2, 3 }.Concat(Enumerable.Repeat(0x00FFFFFF, 13)).ToArray() }; 193yield return new object[] { Enumerable.Repeat(0, 16).ToArray(), Enumerable.Repeat(0, 16).ToArray() }; 194yield return new object[] { Enumerable.Repeat(unchecked((int)0xFFFFFFFF), 16).ToArray(), Enumerable.Repeat(unchecked((int)0xFFFFFFFF), 16).ToArray() }; 195yield return new object[] { Enumerable.Repeat(1, 16).ToArray(), Enumerable.Repeat(1, 16).ToArray() }; 196yield return new object[] { Enumerable.Repeat(1, 20).ToArray(), Enumerable.Repeat(1, 16).ToArray() }; 242int[] value = Enumerable.Repeat(1, 16).ToArray(); 340Assert.Equal(Enumerable.Repeat(0x00FFFFFF, 16).ToArray(), dialog.CustomColors);
System\Windows\Forms\ComboBox.ComboBoxChildListUiaProviderTests.cs (1)
102comboBox.Items.AddRange(Enumerable.Range(0, 11).Cast<object>().ToArray());
System\Windows\Forms\CursorConverterTests.cs (1)
194ICollection<Cursor> values = converter.GetStandardValues().Cast<Cursor>().ToArray();
System\Windows\Forms\ListBindingHelperTests.cs (55)
313yield return new object[] { null, TypeDescriptor.GetProperties(typeof(DataClass)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() }; 315yield return new object[] { new DataClass(), TypeDescriptor.GetProperties(typeof(DataClass)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() }; 316yield return new object[] { typeof(DataClass), TypeDescriptor.GetProperties(typeof(DataClass)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() }; 318yield return new object[] { new ListDataClass(), TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } }; 319yield return new object[] { new ListDataClass() { ListProperty = [new()] }, TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } }; 320yield return new object[] { typeof(ListDataClass), TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } }; 322yield return new object[] { new MultiListDataClass(), TypeDescriptor.GetProperties(typeof(MultiListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "ListProperty" } }; 323yield return new object[] { new MultiListDataClass { ParentListProperty = [new() { ListProperty = [new()] }] }, TypeDescriptor.GetProperties(typeof(MultiListDataClass)).Cast<PropertyDescriptor>().Take(0).ToArray(), new string[] { "ParentListProperty" } }; 326yield return new object[] { new MultiListDataClass { ParentListProperty = [new() { ListProperty = [new()] }] }, inner.Take(2).ToArray(), new string[] { "Property" } }; 327yield return new object[] { typeof(MultiListDataClass), TypeDescriptor.GetProperties(typeof(MultiListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "ListProperty" } }; 329yield return new object[] { typeof(DataClass), TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } }; 334PropertyDescriptor[] descriptors = TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray(); 337yield return new object[] { new IEnumerableWrapper(new object[] { new MultiListDataClass() }), inner.Take(2).ToArray(), new string[] { "Property" } }; 344yield return new object[] { new ArrayList { new MultiListDataClass() }, inner.Take(0).ToArray(), new string[] { "ParentListProperty" } }; 345yield return new object[] { new ArrayList { new MultiListDataClass() }, inner.Take(2).ToArray(), new string[] { "Property" } }; 346yield return new object[] { new ArrayList { new MultiListDataClass { ParentListProperty = [] } }, inner.Take(0).ToArray(), new string[] { "ParentListProperty" } }; 347yield return new object[] { new ArrayList { new MultiListDataClass { ParentListProperty = [] } }, inner.Take(2).ToArray(), new string[] { "Property" } }; 348yield return new object[] { new ArrayList { new MultiListDataClass { ParentListProperty = [new() { ListProperty = [new()] }] } }, inner.Take(0).ToArray(), new string[] { "ParentListProperty" } }; 349yield return new object[] { new ArrayList { new MultiListDataClass { ParentListProperty = [new() { ListProperty = [new()] }] } }, inner.Take(2).ToArray(), new string[] { "Property" } }; 350yield return new object[] { new ArrayList { new MultiListDataClass { ParentListProperty = [new() { ListProperty = [new()] }] } }, inner.Take(3).ToArray(), Array.Empty<string>() }; 364yield return new object[] { new EnumerableITypedListImplementor[] { new() }, TypeDescriptor.GetProperties(typeof(EnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() }; 365yield return new object[] { new List<EnumerableITypedListImplementor> { new() }, TypeDescriptor.GetProperties(typeof(EnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() }; 366yield return new object[] { new ArrayList { new EnumerableITypedListImplementor() }, TypeDescriptor.GetProperties(typeof(EnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() }; 367yield return new object[] { new IEnumerableWrapper(new object[] { new EnumerableITypedListImplementor() }), TypeDescriptor.GetProperties(typeof(EnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() }; 372yield return new object[] { new NonEnumerableITypedListImplementor[] { new() }, TypeDescriptor.GetProperties(typeof(NonEnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() }; 373yield return new object[] { new List<NonEnumerableITypedListImplementor> { new() }, TypeDescriptor.GetProperties(typeof(NonEnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() }; 374yield return new object[] { new ArrayList { new NonEnumerableITypedListImplementor() }, TypeDescriptor.GetProperties(typeof(NonEnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() }; 375yield return new object[] { new IEnumerableWrapper(new object[] { new NonEnumerableITypedListImplementor() }), TypeDescriptor.GetProperties(typeof(NonEnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() }; 379yield return new object[] { new ITypedListDataClass(), TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 380yield return new object[] { typedListDataClass, TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 381yield return new object[] { typeof(ITypedListDataClass), TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 382yield return new object[] { new ITypedListDataClass[] { new() }, TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 383yield return new object[] { new ITypedListDataClass[] { typedListDataClass }, TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 384yield return new object[] { new List<ITypedListDataClass> { new() }, TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 385yield return new object[] { new List<ITypedListDataClass> { typedListDataClass }, TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 386yield return new object[] { new ArrayList { new ITypedListDataClass() }, TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 387yield return new object[] { new ArrayList { typedListDataClass }, TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 388yield return new object[] { new IEnumerableWrapper(new object[] { new ITypedListDataClass() }), TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 389yield return new object[] { new IEnumerableWrapper(new object[] { typedListDataClass }), TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 390yield return new object[] { typeof(ITypedListDataClass[]), TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 393yield return new object[] { new ITypedListParent(), TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 394yield return new object[] { typedListParent, TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } }; 395yield return new object[] { new ITypedListParent[] { new() }, TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 396yield return new object[] { new ITypedListParent[] { typedListParent }, TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } }; 397yield return new object[] { new List<ITypedListParent> { new() }, TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 398yield return new object[] { new List<ITypedListParent> { typedListParent }, TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } }; 399yield return new object[] { new ArrayList { new ITypedListParent() }, TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 400yield return new object[] { new ArrayList { typedListParent }, TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } }; 401yield return new object[] { new IEnumerableWrapper(new object[] { new ITypedListParent() }), TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 402yield return new object[] { new IEnumerableWrapper(new object[] { typedListParent }), TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } }; 425yield return new object[] { new MultiListDataClass(), "ParentListProperty", TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } }; 428yield return new object[] { typeof(MultiListDataClass), "ParentListProperty", TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } }; 456Assert.Throws<TargetInvocationException>(() => ListBindingHelper.GetListItemProperties(new DataClass(), TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray())); 457Assert.Throws<TargetInvocationException>(() => ListBindingHelper.GetListItemProperties(new DataClass(), null, TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray())); 458Assert.Throws<TargetInvocationException>(() => ListBindingHelper.GetListItemProperties(new DataClass(), string.Empty, TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray()));
System\Windows\Forms\ListViewItemTests.cs (15)
72AssertEqualListViewSubItem(subItems, item.SubItems.Cast<ListViewItem.ListViewSubItem>().ToArray()); 110AssertEqualListViewSubItem(subItems, item.SubItems.Cast<ListViewItem.ListViewSubItem>().ToArray()); 148AssertEqualListViewSubItem(subItems, item.SubItems.Cast<ListViewItem.ListViewSubItem>().ToArray()); 186AssertEqualListViewSubItem(subItems, item.SubItems.Cast<ListViewItem.ListViewSubItem>().ToArray()); 223AssertEqualListViewSubItem(subItems, item.SubItems.Cast<ListViewItem.ListViewSubItem>().ToArray()); 260AssertEqualListViewSubItem(subItems, item.SubItems.Cast<ListViewItem.ListViewSubItem>().ToArray()); 298AssertEqualListViewSubItem(subItems, item.SubItems.Cast<ListViewItem.ListViewSubItem>().ToArray()); 336AssertEqualListViewSubItem(subItems, item.SubItems.Cast<ListViewItem.ListViewSubItem>().ToArray()); 449AssertEqualListViewSubItem(subItems, item.SubItems.Cast<ListViewItem.ListViewSubItem>().ToArray()); 486AssertEqualListViewSubItem(subItems, item.SubItems.Cast<ListViewItem.ListViewSubItem>().ToArray()); 524AssertEqualListViewSubItem(subItems, item.SubItems.Cast<ListViewItem.ListViewSubItem>().ToArray()); 562AssertEqualListViewSubItem(subItems, item.SubItems.Cast<ListViewItem.ListViewSubItem>().ToArray()); 600AssertEqualListViewSubItem(subItems, item.SubItems.Cast<ListViewItem.ListViewSubItem>().ToArray()); 789AssertEqualListViewSubItem(subItems, item.SubItems.Cast<ListViewItem.ListViewSubItem>().ToArray()); 1050AssertEqualListViewSubItem(expected?.Select(t => new ListViewItem.ListViewSubItem(null, t)).ToArray(), actual);
System\Windows\Forms\RichTextBoxTests.cs (2)
6215yield return new object[] { PFM.TABSTOPS, 32, Enumerable.Repeat(900, 32).ToArray(), Enumerable.Repeat(60, 32).ToArray() };
System\Windows\Forms\ToolStripItemCollectionTests.cs (2)
129items.Select(item => new ToolStripButton(item.Name) { Name = item.Key }).ToArray(); 147ToolStripItem[] toolStripItems = items.Select(item => new ToolStripButton(item.Name) { Name = item.Key }).ToArray();
System.Windows.Forms.UI.IntegrationTests (5)
Infra\DataCollectionService.cs (2)
234string sanitizedTestName = new(testName.Select(c => char.IsLetterOrDigit(c) ? c : '_').ToArray()); 235string sanitizedErrorId = new(errorId.Select(c => char.IsLetterOrDigit(c) ? c : '_').ToArray());
Input\KeyboardSimulator.cs (2)
91var modifierArray = modifierKeyCodes.ToArray(); 92var keyArray = keyCodes.ToArray();
TabControlTests.cs (1)
104var originalPages = tabControl.TabPages.Cast<TabPage>().ToArray();
TagHelpersWebSite (2)
TagHelpers\TagCloudViewComponentTagHelper.cs (2)
24.ToArray(); 81return Tags.Take(count).ToArray();
Templates.Blazor.Tests (2)
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
93.ToArray();
src\Shared\CertificateGeneration\CertificateManager.cs (1)
112.ToArray();
Templates.Blazor.WebAssembly.Auth.Tests (5)
BlazorWasmTemplateAuthTest.cs (3)
95=> CreateBuildPublishAsync(auth: instance.Auth, args: instance.Arguments.Union(new[] { ArgConstants.NoHttps }).ToArray(), targetFramework: "netstandard2.1"); 105=> CreateBuildPublishAsync(auth: instance.Auth, args: instance.Arguments.Union(new[] { ArgConstants.NoHttps }).ToArray(), targetFramework: "netstandard2.1"); 115=> CreateBuildPublishAsync(auth: instance.Auth, args: instance.Arguments.Union(new[] { ArgConstants.NoHttps }).ToArray(), targetFramework: "netstandard2.1");
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
93.ToArray();
src\Shared\CertificateGeneration\CertificateManager.cs (1)
112.ToArray();
Templates.Blazor.WebAssembly.Tests (2)
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
93.ToArray();
src\Shared\CertificateGeneration\CertificateManager.cs (1)
112.ToArray();
Templates.Mvc.Tests (2)
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
93.ToArray();
src\Shared\CertificateGeneration\CertificateManager.cs (1)
112.ToArray();
Templates.Tests (5)
BaselineTest.cs (3)
47((JArray)scenarioName.Value["Files"]).Select(s => (string)s).ToArray()); 80expectedFiles = expectedFiles.Select(f => f.Replace("{ProjectName}", Project.ProjectName)).ToArray(); 87var filesInFolder = Directory.EnumerateFiles(Project.TemplateOutputDir, "*", SearchOption.AllDirectories).ToArray();
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
93.ToArray();
src\Shared\CertificateGeneration\CertificateManager.cs (1)
112.ToArray();
TestingAppHost1.MyWebApp (1)
Program.cs (1)
32.ToArray();
UnitTests.Common (3)
TestHelpers.cs (3)
200ValidatePartDescriptionCollection(messageData.Action, "Body", errorBuilder, messageDesc.Body.Parts.ToArray(), messageData.Body); 203ValidatePartDescriptionCollection(messageData.Action, "Header", errorBuilder, messageDesc.Headers.ToArray(), messageData.Headers); 206ValidatePartDescriptionCollection(messageData.Action, "Properties", errorBuilder, messageDesc.Properties.ToArray(), messageData.Properties);
vbc (1)
src\Compilers\Shared\BuildClient.cs (1)
129var args = originalArguments.Select(arg => arg.Trim()).ToArray();
VBCSCompiler (1)
src\Compilers\Shared\BuildClient.cs (1)
129var args = originalArguments.Select(arg => arg.Trim()).ToArray();
xunit.assert (1)
Sdk\Exceptions\ExceptionUtility.cs (1)
96 .ToArray()
xunit.console (15)
common\AssemblyResolution\DependencyContextAssemblyCache.cs (1)
78unmanagedDllFormats = GetUnmanagedDllFormats().ToArray();
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\CompilationLibrary.cs (1)
39Assemblies = assemblies.ToArray();
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\CompilationOptions.cs (1)
67Defines = defines.ToArray();
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\DependencyContext.cs (3)
44CompileLibraries = compileLibraries.ToArray(); 45RuntimeLibraries = runtimeLibraries.ToArray(); 46RuntimeGraph = runtimeGraph.ToArray();
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\DependencyContextJsonReader.cs (4)
108CreateLibraries(compileTarget?.Libraries, false, libraryStubs).Cast<CompilationLibrary>().ToArray(), 109CreateLibraries(runtimeTarget.Libraries, true, libraryStubs).Cast<RuntimeLibrary>().ToArray(), 396.ToArray(); 408.ToArray();
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\DependencyContextPaths.cs (1)
52.ToArray();
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\Library.cs (1)
53Dependencies = dependencies.ToArray();
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\RuntimeAssetGroup.cs (1)
16AssetPaths = assetPaths.ToArray();
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\RuntimeFallbacks.cs (1)
27Fallbacks = fallbacks.ToArray();
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\RuntimeLibrary.cs (1)
73ResourceAssemblies = resourceAssemblies.ToArray();