24 references to Any
Microsoft.CodeAnalysis.Workspaces (24)
CodeFixes\CodeFixContext.cs (1)
250if (diagnostics.Any((d, span) => d.Location.SourceSpan != span, span))
FindSymbols\SymbolFinder_Helpers.cs (2)
58if ((namespace1Count > 1 && namespace1.ConstituentNamespaces.Any(static (n, arg) => OriginalSymbolsMatch(arg.solution, n, arg.namespace2), (solution, namespace2))) || 59(namespace2Count > 1 && namespace2.ConstituentNamespaces.Any(static (n2, arg) => OriginalSymbolsMatch(arg.solution, arg.namespace1, n2), (solution, namespace1))))
Recommendations\AbstractRecommendationServiceRunner.cs (1)
352recommendationSymbol.Locations.Any(
Rename\Renamer.RenameDocumentActionSet.cs (1)
80if (actions.Any(static (a, self) => !self.ApplicableActions.Contains(a), this))
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (1)
108!originalSymbol.ExplicitInterfaceImplementations().Any(static (s, referencedSymbol) => s.Equals(referencedSymbol), referencedSymbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (1)
234return method.Parameters.Any(static (p, within) => p.Type.Equals(within, SymbolEqualityComparer.Default), within);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\IParameterSymbolExtensions.cs (2)
39if (containingType.DeclaringSyntaxReferences.Any(static (r, arg) => r.GetSyntax(arg.cancellationToken) == arg.constructorSyntax, (constructorSyntax, cancellationToken))) 69return containingType.DeclaringSyntaxReferences.Any(static (r, arg) => r.GetSyntax(arg.cancellationToken) == arg.constructorSyntax, (constructorSyntax, cancellationToken));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (4)
93symbol.Parameters.Any(static (p, self) => p.Accept(self), this); 103return symbol.ConstraintTypes.Any(static (ts, self) => ts.Accept(self), this); 115symbol.Parameters.Any(static (p, self) => p.Accept(self), this) || 116symbol.TypeParameters.Any(static (tp, self) => tp.Accept(self), this);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
220return type.AllInterfaces.Any(static (t, originalInterfaceType) => SymbolEquivalenceComparer.Instance.Equals(t.OriginalDefinition, originalInterfaceType), originalInterfaceType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
191return type.AllInterfaces.Any(static (i, enumerableType) => i.OriginalDefinition.Equals(enumerableType), enumerableType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\HeaderFacts\AbstractHeaderFacts.cs (1)
59if (holes.Any(static (h, position) => h.Span.Contains(position) && position > h.Span.Start, position))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService_FindDeclaration.cs (1)
27return declarations.Any(static (r, arg) => arg.self.CanAddTo(r.GetSyntax(arg.cancellationToken), arg.solution, arg.cancellationToken), (self: this, solution, cancellationToken));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (4)
150var methodHasAttribute = method.GetAttributes().Any(shouldRemoveAttribute, arg); 153.Any(static (m, arg) => m.GetAttributes().Any(shouldRemoveAttribute, arg), arg); 155var returnTypeHasAttribute = method.GetReturnTypeAttributes().Any(shouldRemoveAttribute, arg);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IPropertySymbolExtensions.cs (2)
47.Any(static (p, arg) => p.GetAttributes().Any(ShouldRemoveAttribute, arg), arg);
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
1163if (s_razorSourceGeneratorAssemblyRootedFileNames.Any(