3017 references to Where
AnalyzerRunner (6)
Aspire.Dashboard (16)
Aspire.Dashboard.Components.Tests (1)
Aspire.Dashboard.Tests (13)
Aspire.EndToEnd.Tests (3)
Aspire.Hosting (5)
Aspire.Hosting.Analyzers (2)
Aspire.Hosting.Azure.AppContainers (3)
Aspire.Hosting.Dapr (1)
Aspire.Hosting.MySql.Tests (1)
Aspire.Hosting.RabbitMQ.Tests (2)
Aspire.Hosting.Testing.Tests (1)
Aspire.Hosting.Tests (15)
Aspire.Playground.Tests (7)
Aspire.Workload.Tests (3)
BasicWebSite (1)
BoundTreeGenerator (9)
BuildActionTelemetryTable (2)
BuildBoss (6)
BuildValidator (5)
ClientSample (4)
CodeGenerator (24)
src\Servers\Kestrel\shared\KnownHeaders.cs (20)
39.Where(h => h.GetCustomAttribute(typeof(ObsoleteAttribute)) == null)
298.Where(header => invalidH2H3ResponseHeaders.Contains(header.Name))
303.Where(header => FormattedInternalHeaderNames.Where(x => x.IsPseudoHeader).Select(x => x.Identifier).Contains(header.Identifier))
810foreach (var loop in loops.Where(l => l.Bytes != null))
864{Each(loop.Headers.Where(header => header.ExistenceCheck), header => $@"
866{Each(loop.Headers.Where(header => header.FastCount), header => $@"
868{Each(loop.Headers.Where(header => Array.IndexOf(InternalHeaderAccessors, header.Name) >= 0), header => $@"
906{Each(loop.Headers.Where(header => header.Name != HeaderNames.ContentLength && !NonApiHeaders.Contains(header.Identifier)), header => $@"
937{Each(ApiHeaderNames.Where(header => header != "ContentLength" && !loop.Headers.Select(kh => kh.Identifier).Contains(header)), header => $@"
956{Each(loop.Headers.Where(header => header.EnhancedSetter), header => $@"
1152{Each(loop.Headers.Where(header => header.Identifier != "ContentLength").OrderBy(h => !h.PrimaryHeader), header => $@"
1168{Each(loop.Headers.Where(header => header.Identifier != "ContentLength").OrderBy(h => !h.PrimaryHeader), header => $@"
1187{Each(loop.Headers.Where(header => header.Identifier != "ContentLength"), header => $@"
1240{{{Each(loop.Headers.OrderBy(h => h.Index).Where(h => h.Identifier != "ContentLength"), header => $@"
1384{{{Each(loop.Headers.Where(header => header.Identifier != "ContentLength"), header => @"
1386{Each(loop.Headers.Where(header => header.EnhancedSetter), header => @"
1396{{{Each(loop.Headers.Where(header => header.Identifier != "ContentLength"), header => $@"
1511}).Where(g => g.Header != null).ToList();
1532}).Where(g => g.Header != null).ToList();
ConfigurationSchemaGenerator (1)
CSharpSyntaxGenerator (45)
dotnet-dev-certs (11)
dotnet-getdocument (4)
dotnet-openapi (6)
dotnet-sql-cache (4)
dotnet-svcutil-lib (37)
dotnet-svcutil-lib.Tests (3)
dotnet-user-jwts (6)
dotnet-user-secrets (6)
GenericHostWebSite (1)
GetDocument.Insider (4)
Identity.DefaultUI.WebSite (3)
Identity.ExternalClaims (1)
IdentitySample.Mvc (1)
IIS.FunctionalTests (5)
IIS.LongTests (2)
IIS.NewHandler.FunctionalTests (2)
IIS.NewShim.FunctionalTests (2)
IIS.ShadowCopy.Tests (1)
IISExpress.FunctionalTests (5)
illink (18)
ILLink.RoslynAnalyzer (2)
ILLink.Tasks (1)
Infrastructure.Common (1)
InMemory.FunctionalTests (14)
installer.tasks (10)
Interop.FunctionalTests (7)
InteropWebsite (2)
IOperationGenerator (12)
Microsoft.Analyzers.Extra (12)
Microsoft.Analyzers.Extra.Tests (1)
Microsoft.Analyzers.Local (7)
Microsoft.Analyzers.Local.Tests (3)
Microsoft.Arcade.Test.Common (1)
Microsoft.AspNetCore.Antiforgery.Test (7)
Microsoft.AspNetCore.App.Analyzers (10)
Microsoft.AspNetCore.App.Analyzers.Test (1)
Microsoft.AspNetCore.App.CodeFixes (2)
Microsoft.AspNetCore.App.UnitTests (9)
Microsoft.AspNetCore.Authentication (1)
Microsoft.AspNetCore.Authentication.Core (2)
Microsoft.AspNetCore.Authentication.OAuth (1)
Microsoft.AspNetCore.Authentication.Test (22)
Microsoft.AspNetCore.Authorization (1)
Microsoft.AspNetCore.Authorization.Policy (1)
Microsoft.AspNetCore.BrowserTesting (1)
Microsoft.AspNetCore.Components.Authorization.Tests (5)
Microsoft.AspNetCore.Components.Endpoints.Tests (7)
Microsoft.AspNetCore.Components.Forms.Tests (1)
Microsoft.AspNetCore.Components.Server.Tests (1)
Microsoft.AspNetCore.Components.Tests (26)
Microsoft.AspNetCore.Components.Web.Tests (4)
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
Microsoft.AspNetCore.Components.WebView.Test (2)
Microsoft.AspNetCore.Cors (1)
Microsoft.AspNetCore.DataProtection (4)
Microsoft.AspNetCore.DataProtection.Tests (4)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (6)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (3)
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (1)
Microsoft.AspNetCore.Grpc.Swagger (3)
Microsoft.AspNetCore.Hosting (4)
Microsoft.AspNetCore.Http.Connections (1)
Microsoft.AspNetCore.Http.Extensions (1)
Microsoft.AspNetCore.Http.Extensions.Tests (2)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (3)
Microsoft.AspNetCore.Http.Results.Tests (1)
Microsoft.AspNetCore.Http.Tests (3)
Microsoft.AspNetCore.HttpLogging.Tests (12)
Microsoft.AspNetCore.Identity (1)
Microsoft.AspNetCore.Identity.EntityFrameworkCore (4)
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (3)
Microsoft.AspNetCore.Identity.InMemory.Test (8)
Microsoft.AspNetCore.Identity.Test (5)
Microsoft.AspNetCore.Identity.UI (5)
Microsoft.AspNetCore.Mvc.Abstractions (1)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
Microsoft.AspNetCore.Mvc.Core (21)
Microsoft.AspNetCore.Mvc.Core.Test (47)
Routing\ControllerActionEndpointDataSourceTest.cs (11)
91endpoints.OfType<RouteEndpoint>().Where(e => !SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText),
104endpoints.OfType<RouteEndpoint>().Where(e => SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText),
173endpoints.OfType<RouteEndpoint>().Where(e => !SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText),
188endpoints.OfType<RouteEndpoint>().Where(e => SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText),
260endpoints.OfType<RouteEndpoint>().Where(e => !SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText),
273endpoints.OfType<RouteEndpoint>().Where(e => SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText),
342endpoints.OfType<RouteEndpoint>().Where(e => !SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText),
357endpoints.OfType<RouteEndpoint>().Where(e => SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText),
436endpoints.OfType<RouteEndpoint>().Where(e => !SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText),
453endpoints.OfType<RouteEndpoint>().Where(e => SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText),
526endpoints.OfType<RouteEndpoint>().Where(e => SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText),
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (4)
Microsoft.AspNetCore.Mvc.FunctionalTests (2)
Microsoft.AspNetCore.Mvc.Localization.Test (1)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (3)
Microsoft.AspNetCore.Mvc.RazorPages.Test (3)
Microsoft.AspNetCore.Mvc.TagHelpers (2)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (5)
Microsoft.AspNetCore.Mvc.Test (5)
Microsoft.AspNetCore.Mvc.Testing (3)
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
Microsoft.AspNetCore.OpenApi (4)
Microsoft.AspNetCore.OpenApi.Tests (8)
Microsoft.AspNetCore.Owin (1)
Microsoft.AspNetCore.Routing.Tests (9)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
Microsoft.AspNetCore.Server.Kestrel.Core (8)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (26)
src\Servers\Kestrel\shared\KnownHeaders.cs (18)
39.Where(h => h.GetCustomAttribute(typeof(ObsoleteAttribute)) == null)
298.Where(header => invalidH2H3ResponseHeaders.Contains(header.Name))
303.Where(header => FormattedInternalHeaderNames.Where(x => x.IsPseudoHeader).Select(x => x.Identifier).Contains(header.Identifier))
810foreach (var loop in loops.Where(l => l.Bytes != null))
864{Each(loop.Headers.Where(header => header.ExistenceCheck), header => $@"
866{Each(loop.Headers.Where(header => header.FastCount), header => $@"
868{Each(loop.Headers.Where(header => Array.IndexOf(InternalHeaderAccessors, header.Name) >= 0), header => $@"
906{Each(loop.Headers.Where(header => header.Name != HeaderNames.ContentLength && !NonApiHeaders.Contains(header.Identifier)), header => $@"
937{Each(ApiHeaderNames.Where(header => header != "ContentLength" && !loop.Headers.Select(kh => kh.Identifier).Contains(header)), header => $@"
956{Each(loop.Headers.Where(header => header.EnhancedSetter), header => $@"
1152{Each(loop.Headers.Where(header => header.Identifier != "ContentLength").OrderBy(h => !h.PrimaryHeader), header => $@"
1168{Each(loop.Headers.Where(header => header.Identifier != "ContentLength").OrderBy(h => !h.PrimaryHeader), header => $@"
1187{Each(loop.Headers.Where(header => header.Identifier != "ContentLength"), header => $@"
1240{{{Each(loop.Headers.OrderBy(h => h.Index).Where(h => h.Identifier != "ContentLength"), header => $@"
1384{{{Each(loop.Headers.Where(header => header.Identifier != "ContentLength"), header => @"
1386{Each(loop.Headers.Where(header => header.EnhancedSetter), header => @"
1396{{{Each(loop.Headers.Where(header => header.Identifier != "ContentLength"), header => $@"
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (4)
Microsoft.AspNetCore.Session.Tests (6)
Microsoft.AspNetCore.Shared.Tests (16)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
Microsoft.AspNetCore.SignalR.Common.Tests (1)
Microsoft.AspNetCore.SignalR.Core (4)
Microsoft.AspNetCore.SignalR.Tests (9)
Microsoft.AspNetCore.SignalR.Tests.Utils (2)
Microsoft.AspNetCore.StaticFiles (2)
Microsoft.AspNetCore.Tests (6)
Microsoft.Build (57)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
377.Where(
Microsoft.Build.BuildCheck.UnitTests (1)
Microsoft.Build.CommandLine.UnitTests (2)
Microsoft.Build.Engine.OM.UnitTests (38)
Microsoft.Build.Engine.UnitTests (71)
Construction\SolutionProjectGenerator_Tests.cs (24)
1529Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Build", StringComparison.OrdinalIgnoreCase)));
1530Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Clean", StringComparison.OrdinalIgnoreCase)));
1531Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Rebuild", StringComparison.OrdinalIgnoreCase)));
1532Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Publish", StringComparison.OrdinalIgnoreCase)));
1534ProjectTargetInstance buildTarget = instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Build", StringComparison.OrdinalIgnoreCase)).First().Value;
1535ProjectTargetInstance cleanTarget = instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Clean", StringComparison.OrdinalIgnoreCase)).First().Value;
1536ProjectTargetInstance rebuildTarget = instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Rebuild", StringComparison.OrdinalIgnoreCase)).First().Value;
1537ProjectTargetInstance publishTarget = instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Publish", StringComparison.OrdinalIgnoreCase)).First().Value;
1540Assert.Null(buildTarget.Tasks.Where(
1544Assert.Equal("Clean", cleanTarget.Tasks.Where(
1548Assert.Equal("Rebuild", rebuildTarget.Tasks.Where(
1552Assert.Equal("Publish", publishTarget.Tasks.Where(
1557Assert.Equal("@(ProjectReference)", buildTarget.Tasks.Where(
1561Assert.Equal("@(ProjectReference->Reverse())", cleanTarget.Tasks.Where(
1565Assert.Equal("@(ProjectReference)", rebuildTarget.Tasks.Where(
1569Assert.Equal("@(ProjectReference)", publishTarget.Tasks.Where(
2355Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "One", StringComparison.OrdinalIgnoreCase)));
2359Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Two", StringComparison.OrdinalIgnoreCase)));
2360Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Three", StringComparison.OrdinalIgnoreCase)));
2361Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Four", StringComparison.OrdinalIgnoreCase)));
2365Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Build", StringComparison.OrdinalIgnoreCase)));
2369Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Five", StringComparison.OrdinalIgnoreCase)));
2370Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Rebuild", StringComparison.OrdinalIgnoreCase)));
2374Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Six", StringComparison.OrdinalIgnoreCase)));
Microsoft.Build.Framework (1)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (1)
Microsoft.Build.Tasks.Core (21)
Microsoft.Build.Tasks.UnitTests (11)
Microsoft.Build.UnitTests.Shared (6)
Microsoft.Build.Utilities.Core (15)
Microsoft.Cci.Extensions (43)
Microsoft.CodeAnalysis (29)
Microsoft.CodeAnalysis.CodeStyle (30)
Microsoft.CodeAnalysis.CodeStyle.Fixes (25)
Microsoft.CodeAnalysis.CSharp (6)
Microsoft.CodeAnalysis.CSharp.CodeStyle (15)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (17)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (8)
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (39)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (4)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (265)
Microsoft.CodeAnalysis.CSharp.Features (53)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (328)
Semantics\TopLevelStatementsTests.cs (41)
492var localFuncRef = tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "local").Single();
500var localRef = tree2.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "i").Single();
540var localRefs = tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "i").ToArray();
584var localFuncRef = tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "local").Single();
591var localRef = tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "i").Single();
699var reference = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "s").Single();
873Assert.Same(symbol1, model1.GetSymbolInfo(tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x").Single()).Symbol);
879Assert.Same(symbol2, model2.GetSymbolInfo(tree2.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x").Single()).Symbol);
987Assert.Same(symbol1, model1.GetSymbolInfo(tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x").First()).Symbol);
991Assert.Same(symbol1, model1.GetSymbolInfo(tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x").Skip(1).Single()).Symbol);
1042Assert.Same(symbol1, model1.GetSymbolInfo(tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "args").Single()).Symbol);
1407var nameRef = tree2.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x").Single();
1425nameRef = tree2.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x").Single();
1520var reference = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "c").Single();
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();
2919var nameRef = tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "alias1" && !id.Parent.IsKind(SyntaxKind.NameEquals)).Single();
2924nameRef = tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "alias2").Single();
2941nameRef = tree2.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "alias2" && !id.Parent.IsKind(SyntaxKind.NameEquals)).Single();
2946nameRef = tree2.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "alias1").Single();
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();
4216var reference = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "local").Single();
4512Assert.Same(symbol1, model1.GetSymbolInfo(tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "local1").Single()).Symbol);
4518Assert.Same(symbol2, model2.GetSymbolInfo(tree2.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "local1").Single()).Symbol);
4576Assert.Same(symbol1, model1.GetSymbolInfo(tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "local1").First()).Symbol);
4580Assert.Same(symbol1, model1.GetSymbolInfo(tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "local1").Skip(1).Single()).Symbol);
4625Assert.Same(symbol1, model1.GetSymbolInfo(tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "args").Single()).Symbol);
4894var reference = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "label1").Single();
4952Assert.Same(symbol1, model1.GetSymbolInfo(tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "label1").Single()).Symbol);
4959Assert.Same(symbol2, model2.GetSymbolInfo(tree2.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "label1").Single()).Symbol);
4979var reference = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "args").Single();
6034var localRefs = tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "i").ToArray();
6277var localRef = syntaxTree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x").Single();
6317var localRef = syntaxTree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x").Single();
6368var localRef = syntaxTree2.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x").Single();
8673var id = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "ar").Single();
8695var id = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "ar").Single();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (93)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (27)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (4)
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (27)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (2)
Microsoft.CodeAnalysis.EditorFeatures (8)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (6)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (8)
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (4)
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Microsoft.CodeAnalysis.ExternalAccess.Razor.UnitTests (2)
Microsoft.CodeAnalysis.Features (47)
Microsoft.CodeAnalysis.Features.Test.Utilities (2)
Microsoft.CodeAnalysis.InteractiveHost (1)
Microsoft.CodeAnalysis.LanguageServer (2)
Microsoft.CodeAnalysis.LanguageServer.Protocol (23)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (11)
Microsoft.CodeAnalysis.Rebuild (1)
Microsoft.CodeAnalysis.Rebuild.UnitTests (3)
Microsoft.CodeAnalysis.Remote.ServiceHub (4)
Microsoft.CodeAnalysis.Scripting (2)
Microsoft.CodeAnalysis.Scripting.TestUtilities (1)
Microsoft.CodeAnalysis.Test.Utilities (31)
Diagnostics\SuppressMessageAttributeTests.DiagnosticAnalyzers.cs (1)
206.Where(t =>
Microsoft.CodeAnalysis.UnitTests (14)
Microsoft.CodeAnalysis.VisualBasic (1)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Microsoft.CodeAnalysis.Workspaces (94)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (6)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (7)
Microsoft.CodeAnalysis.Workspaces.UnitTests (8)
Microsoft.CodeAnalysis.XunitHook (1)
Microsoft.CSharp (1)
Microsoft.Data.Analysis.Tests (2)
Microsoft.DotNet.Arcade.Sdk (3)
Microsoft.DotNet.Arcade.Sdk.Tests (1)
Microsoft.DotNet.AsmDiff (14)
Microsoft.DotNet.Build.Tasks.Feed (12)
Microsoft.DotNet.Build.Tasks.Feed.Tests (5)
Microsoft.DotNet.Build.Tasks.Installers (1)
Microsoft.DotNet.Build.Tasks.Packaging (59)
Microsoft.DotNet.Build.Tasks.Packaging.Tests (25)
CreateTrimDependencyGroupsTests.cs (25)
143item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("win8")).Should().HaveCount(1),
144item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("monoandroid10")).Should().HaveCount(1),
145item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("monotouch10")).Should().HaveCount(1),
146item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("net45")).Should().HaveCount(1),
147item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("wp8")).Should().HaveCount(1),
148item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("wpa81")).Should().HaveCount(1),
149item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("xamarinios10")).Should().HaveCount(1),
150item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("xamarintvos10")).Should().HaveCount(1),
151item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("xamarinwatchos10")).Should().HaveCount(1),
152item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("xamarinmac20")).Should().HaveCount(1),
153item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("portable45-net45+win8+wp8+wpa81")).Should().HaveCount(1)
230task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("net45") &&
236task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("net451") &&
242task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("portable45-net45+win8+wp8+wpa81") &&
248task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("portable46-net451+win81+wpa81") &&
393item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("win8")).Should().HaveCount(1),
394item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("monoandroid10")).Should().HaveCount(1),
395item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("monotouch10")).Should().HaveCount(1),
396item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("net45")).Should().HaveCount(1),
397item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("wpa81")).Should().HaveCount(1),
398item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("xamarinios10")).Should().HaveCount(1),
399item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("xamarintvos10")).Should().HaveCount(1),
400item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("xamarinwatchos10")).Should().HaveCount(1),
401item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("xamarinmac20")).Should().HaveCount(1),
402item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("portable45-net45+win8+wpa81")).Should().HaveCount(1)
Microsoft.DotNet.Build.Tasks.VisualStudio (2)
Microsoft.DotNet.Build.Tasks.Workloads (2)
Microsoft.DotNet.Build.Tasks.Workloads.Tests (4)
Microsoft.DotNet.GenFacades (6)
Microsoft.DotNet.Helix.Sdk (4)
Microsoft.DotNet.MacOsPkg (1)
Microsoft.DotNet.NuGetRepack.Tests (1)
Microsoft.DotNet.PackageTesting (5)
Microsoft.DotNet.RemoteExecutor (4)
Microsoft.DotNet.SharedFramework.Sdk (5)
Microsoft.DotNet.SignCheckLibrary (1)
Microsoft.DotNet.SignTool (11)
Microsoft.DotNet.SignTool.Tests (1)
Microsoft.DotNet.SourceBuild.Tasks (7)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (11)
Microsoft.DotNet.VersionTools (15)
Microsoft.DotNet.VersionTools.Tasks (2)
Microsoft.DotNet.XliffTasks (3)
Microsoft.DotNet.XUnitExtensions (1)
Microsoft.Extensions.DependencyModel (5)
Microsoft.Extensions.Diagnostics.HealthChecks (1)
Microsoft.Extensions.Diagnostics.Probes.Tests (3)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
Microsoft.Extensions.Diagnostics.Testing (4)
Microsoft.Extensions.FileProviders.Embedded (2)
Microsoft.Extensions.FileProviders.Embedded.Tests (2)
Microsoft.Extensions.FileProviders.Physical (3)
Microsoft.Extensions.Http.Diagnostics (1)
Microsoft.Extensions.Http.Diagnostics.Tests (2)
Microsoft.Extensions.Http.Polly.Tests (1)
Microsoft.Extensions.Identity.Stores (1)
Microsoft.Extensions.Localization.Tests (1)
Microsoft.Extensions.Telemetry.Tests (3)
Microsoft.Gen.ComplianceReports (1)
Microsoft.Gen.ContextualOptions (14)
Microsoft.Gen.Logging (2)
Microsoft.Gen.Metrics (1)
Microsoft.Gen.MetricsReports (1)
Microsoft.Interop.ComInterfaceGenerator (9)
Microsoft.Interop.LibraryImportGenerator (1)
Microsoft.Interop.SourceGeneration (7)
Microsoft.ML.AutoML (32)
Microsoft.ML.AutoML.Samples (3)
Microsoft.ML.AutoML.Tests (1)
Microsoft.ML.CodeGenerator (6)
Microsoft.ML.Core (9)
Microsoft.ML.Core.Tests (4)
Microsoft.ML.Data (54)
Microsoft.ML.Ensemble (4)
Microsoft.ML.Fairlearn (1)
Microsoft.ML.FastTree (6)
Microsoft.ML.GenAI.Core (3)
Microsoft.ML.GenAI.Mistral (1)
Microsoft.ML.InternalCodeAnalyzer (2)
Microsoft.ML.Mkl.Components (1)
Microsoft.ML.OnnxTransformer (4)
Microsoft.ML.Parquet (1)
Microsoft.ML.PCA (1)
Microsoft.ML.PerformanceTests (1)
Microsoft.ML.Predictor.Tests (2)
Microsoft.ML.Recommender (1)
Microsoft.ML.Samples (3)
Microsoft.ML.SearchSpace (1)
Microsoft.ML.StandardTrainers (2)
Microsoft.ML.Sweeper (3)
Microsoft.ML.TensorFlow (2)
Microsoft.ML.TestFramework (5)
Microsoft.ML.Tests (2)
Microsoft.ML.TorchSharp (6)
Microsoft.ML.Transforms (6)
Microsoft.ML.Vision (4)
Microsoft.NET.StringTools (1)
Microsoft.NET.StringTools.net35 (1)
Microsoft.VisualStudio.LanguageServices (30)
Microsoft.VisualStudio.LanguageServices.CSharp (4)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
Microsoft.VisualStudio.LanguageServices.LiveShare (2)
Microsoft.VisualStudio.LanguageServices.Xaml (2)
MSBuild (3)
MSBuildTaskHost (2)
Mvc.RoutingWebSite (1)
PrepareTests (1)
Roslyn.Test.PdbUtilities (2)
Roslyn.VisualStudio.DiagnosticsWindow (4)
Roslyn.VisualStudio.Next.UnitTests (1)
RunTests (5)
Sockets.BindTests (16)
Sockets.FunctionalTests (11)
Swaggatherer (4)
System.Collections.Immutable (1)
System.ComponentModel.Composition (18)
System.ComponentModel.Composition.Registration (1)
System.Composition.Convention (1)
System.Composition.Hosting (1)
System\Composition\Hosting\Providers\Metadata\MetadataViewProvider.cs (1)
53.Where(prop =>
System.Composition.TypedParts (12)
System.Data.Common (2)
System.Linq.Expressions (2)
System.Linq.Parallel (1)
System.Linq.Queryable (5)
System.Private.DataContractSerialization (3)
System.Private.Windows.Core.TestUtilities (5)
System.Text.Json.SourceGeneration (3)
System.Windows.Forms (5)
System.Windows.Forms.Design (1)
System.Windows.Forms.Design.Tests (3)
System.Windows.Forms.Tests (5)
TaskUsageLogger (2)
Templates.Blazor.Tests (12)
Templates.Blazor.WebAssembly.Auth.Tests (14)
Templates.Blazor.WebAssembly.Tests (14)
Templates.Mvc.Tests (14)
Templates.Tests (14)
TestProject.AppHost (1)
TestProject.IntegrationServiceA (1)
VersioningWebSite (1)
Wasm.Performance.ConsoleHost (4)
XmlFileLogger (1)
xunit.assert (6)
xunit.console (13)
Xunit.NetCore.Extensions (3)