28 references to Any
Microsoft.CodeAnalysis (3)
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (1)
174
if (analyzers.
Any
(static (a, self) => !self._analyzers.Contains(a), this))
SourceGeneration\GeneratorState.cs (1)
129
internal bool RequiresPostInitReparse(ParseOptions parseOptions) => PostInitTrees.
Any
(static (t, parseOptions) => t.Tree.Options != parseOptions, parseOptions);
src\Dependencies\Collections\OneOrMany.cs (1)
183
=> HasOneItem ? predicate(_one, arg) : _many.
Any
(predicate, arg);
Microsoft.CodeAnalysis.CSharp (24)
Binder\Binder_Conversions.cs (4)
754
Debug.Assert(expr is not BoundBadExpression { ChildBoundNodes: var children } || !children.
Any
((child, node) => child.Syntax == node.Syntax, node));
1480
bool thisTypeIsOpen = typeParameters.
Any
((typeParameter, parameter) => parameter.Type.ContainsTypeParameter(typeParameter), member.Parameters[0]);
1493
if (!typeParameters.
Any
((typeParameter, parameter) => parameter.Type.ContainsTypeParameter(typeParameter), member.Parameters[1]))
1549
else if (typeParameters.
Any
((typeParameter, parameter) => !parameter.Type.ContainsTypeParameter(typeParameter), member.Parameters[0]))
Binder\Binder_Expressions.cs (2)
1772
primaryConstructor.Parameters.
Any
(static (p, name) => p.Name == name, name) &&
8245
return IsWinRTAsyncInterface(type) || type.AllInterfacesNoUseSiteDiagnostics.
Any
(static (i, self) => self.IsWinRTAsyncInterface(i), this);
Binder\Binder_Patterns.cs (1)
467
return interfaces.
Any
(static (i, _) => i.IsWellKnownINumberBaseType(), 0) || inputType.IsWellKnownINumberBaseType();
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1702
return allInterfaces.
Any
(static (a, b) => ReferenceEquals(a.OriginalDefinition, b), specialType);
Binder\Semantics\Conversions\UserDefinedExplicitConversions.cs (2)
407
if (u.
Any
(static (conv, source) => TypeSymbol.Equals(conv.FromType, source, TypeCompareKind.ConsiderEverything2), source))
461
if (u.
Any
(static (conv, target) => TypeSymbol.Equals(conv.ToType, target, TypeCompareKind.ConsiderEverything2), target))
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (2)
370
if (u.
Any
(static (conv, source) => TypeSymbol.Equals(conv.FromType, source, TypeCompareKind.ConsiderEverything2), source))
404
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)
351
.
Any
(static (node, mightAssignWalker) => node is BoundWhenDecisionDagNode w && mightAssignWalker.MightAssignSomething(w.WhenExpression), mightAssignWalker);
Operations\CSharpOperationFactory.cs (2)
1408
bool isImplicit = boundBadExpression.WasCompilerGenerated || boundBadExpression.ChildBoundNodes.
Any
(static (e, boundBadExpression) => e?.Syntax == boundBadExpression.Syntax, boundBadExpression);
2094
bool isImplicit = boundBadStatement.WasCompilerGenerated || boundBadStatement.ChildBoundNodes.
Any
(static (e, boundBadStatement) => e?.Syntax == boundBadStatement.Syntax, boundBadStatement);
Symbols\Extensions\SynthesizedExtensionMarker.cs (1)
107
ContainingType.TypeParameters.
Any
(static (p, name) => p.Name == name, name))
Symbols\Source\SourceMethodSymbolWithAttributes.cs (3)
1029
var foundAnyMatch = interceptorsNamespaces.
Any
(static (ns, thisNamespaceNames) => isDeclaredInNamespace(thisNamespaceNames, ns), thisNamespaceNames);
1442
bool isField = attribute.AttributeClass.GetMembers(key).
Any
(
1586
ParameterTypesWithAnnotations.
Any
(static (p, cancellationTokenType) => p.Type.Equals(cancellationTokenType), cancellationTokenType))
Symbols\Source\SourceNamespaceSymbol.cs (1)
395
return !namespaceNameLocations.
Any
(static (loc, leftTree) => (object)loc.SourceTree == leftTree, leftTree);
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
929
p.ConstraintTypesNoUseSiteDiagnostics.
Any
((typeArgument, containingType) => typeArgument.Type.Equals(containingType, ComparisonForUserDefinedOperators),
Symbols\Synthesized\Records\SynthesizedRecordPropertySymbol.cs (1)
103
parameter.ContainingType.GetMembersUnordered().
Any
((s, parameter) => (s as SynthesizedRecordPropertySymbol)?.BackingParameter == (object)parameter, parameter);
Microsoft.CodeAnalysis.Scripting (1)
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (1)
394
return !_noShadowCopyDirectories.
Any
(static (dir, directory) => directory.StartsWith(dir, StringComparison.Ordinal), directory);