21 references to Any
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (1)
180
if (analyzers.
Any
(static (a, self) => !self._analyzers.Contains(a), this))
Microsoft.CodeAnalysis.CSharp (18)
Binder\Binder_Conversions.cs (1)
354
Debug.Assert(expr is not BoundBadExpression { ChildBoundNodes: var children } || !children.
Any
((child, node) => child.Syntax == node.Syntax, node));
Binder\Binder_Expressions.cs (2)
4425
Debug.Assert(result is not BoundBadExpression { ChildBoundNodes: var children } || !children.
Any
((child, node) => child.Syntax == node, node));
7023
return IsWinRTAsyncInterface(type) || type.AllInterfacesNoUseSiteDiagnostics.
Any
(static (i, self) => self.IsWinRTAsyncInterface(i), this);
Binder\Binder_Patterns.cs (1)
466
return interfaces.
Any
(static (i, _) => i.IsWellKnownINumberBaseType(), 0) || inputType.IsWellKnownINumberBaseType();
Binder\Semantics\Conversions\UserDefinedExplicitConversions.cs (2)
398
if (u.
Any
(static (conv, source) => TypeSymbol.Equals(conv.FromType, source, TypeCompareKind.ConsiderEverything2), source))
452
if (u.
Any
(static (conv, target) => TypeSymbol.Equals(conv.ToType, target, TypeCompareKind.ConsiderEverything2), target))
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (2)
360
if (u.
Any
(static (conv, source) => TypeSymbol.Equals(conv.FromType, source, TypeCompareKind.ConsiderEverything2), source))
394
if (u.
Any
(static (conv, target) => TypeSymbol.Equals(conv.ToType, target, TypeCompareKind.ConsiderEverything2), target))
Binder\SwitchBinder_Patterns.cs (2)
84
if (!switchSections.
Any
(static (s, reachableLabels) => s.SwitchLabels.
Any
(isSubsumed, reachableLabels), reachableLabels))
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
352
.
Any
(static (node, mightAssignWalker) => node is BoundWhenDecisionDagNode w && mightAssignWalker.MightAssignSomething(w.WhenExpression), mightAssignWalker);
Operations\CSharpOperationFactory.cs (2)
1341
bool isImplicit = boundBadExpression.WasCompilerGenerated || boundBadExpression.ChildBoundNodes.
Any
(static (e, boundBadExpression) => e?.Syntax == boundBadExpression.Syntax, boundBadExpression);
1983
bool isImplicit = boundBadStatement.WasCompilerGenerated || boundBadStatement.ChildBoundNodes.
Any
(static (e, boundBadStatement) => e?.Syntax == boundBadStatement.Syntax, boundBadStatement);
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
1001
bool isField = attribute.AttributeClass.GetMembers(key).
Any
(
1145
ParameterTypesWithAnnotations.
Any
(static (p, cancellationTokenType) => p.Type.Equals(cancellationTokenType), cancellationTokenType))
Symbols\Source\SourceNamespaceSymbol.cs (1)
415
if (otherSymbol.MergedDeclaration.NameLocations.
Any
((loc, leftTree) => (object)loc.SourceTree == leftTree, leftTree))
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
703
p.ConstraintTypesNoUseSiteDiagnostics.
Any
((typeArgument, containingType) => typeArgument.Type.Equals(containingType, ComparisonForUserDefinedOperators),
Symbols\Synthesized\Records\SynthesizedRecordPropertySymbol.cs (1)
95
parameter.ContainingType.GetMembersUnordered().
Any
((s, parameter) => (s as SynthesizedRecordPropertySymbol)?.BackingParameter == (object)parameter, parameter);
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (1)
CompilationContext.cs (1)
468
!_locals.
Any
(static (l, name) => l.Name == name, local.Name)) // Not captured locals inside the method shadow outside locals
Microsoft.CodeAnalysis.Scripting (1)
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (1)
394
return !_noShadowCopyDirectories.
Any
(static (dir, directory) => directory.StartsWith(dir, StringComparison.Ordinal), directory);