17 references to All
Microsoft.CodeAnalysis.CSharp (6)
Binder\Binder_Attributes.cs (1)
741
Debug.Assert(hasErrors || reorderedArguments.
All
(arg => arg.Kind != TypedConstantKind.Error));
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (1)
352
Debug.Assert(_nullableAnnotationLowerBounds.
All
(annotation => annotation.IsNotAnnotated()));
BoundTree\InterpolatedStringHandlerData.cs (1)
40
Debug.Assert(placeholders.IsEmpty || placeholders.AsSpan()[..^1].
All
(item => item.ArgumentIndex != BoundInterpolatedStringArgumentPlaceholder.TrailingConstructorValidityParameter));
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
1187
Debug.Assert(actualArguments.
All
(static arg => arg is not null));
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (1)
521
Debug.Assert(actualArguments.
All
(static arg => arg is not null));
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (1)
500
Debug.Assert(method.Parameters.AsSpan()[1..].
All
(static (p) => (p.IsOptional || p.IsParams) && p.RefKind is RefKind.None or RefKind.In or RefKind.RefReadOnlyParameter));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Semantics\ExtensionTests.cs (2)
63
Assert.True(expected.
All
(new HashSet<string>().Add), $"Duplicates were found in '{nameof(expected)}'");
64
Assert.True(actual.
All
(new HashSet<string>().Add), $"Duplicates were found in '{nameof(actual)}'");
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Symbols\InterfaceImplementationTests.cs (1)
1015
Assert.True(synthesizedExplicitImpls.
All
(s => ReferenceEquals(derivedClass, s.ContainingType)));
Symbols\MethodEqualityTests.cs (1)
223
Assert.True(invokedMethods.
All
(m => m.Equals(m)));
Symbols\Source\ExternAliasTests.cs (2)
420
Assert.True(targets.
All
(target => ReferenceEquals(firstTarget, target)));
445
Assert.True(targets.
All
(target => ReferenceEquals(firstTarget, target)));
Microsoft.CodeAnalysis.Test.Utilities (5)
Compilation\ControlFlowGraphVerifier.cs (1)
525
referencesAfter.
All
(r => isLongLivedCaptureReferenceSyntax(r.Syntax)),
Diagnostics\DiagnosticDescription.cs (2)
492
var includeDefaultSeverity = expected.Any() && expected.
All
(d => d.DefaultSeverity != null);
493
var includeEffectiveSeverity = expected.Any() && expected.
All
(d => d.EffectiveSeverity != null);
Diagnostics\DiagnosticExtensions.cs (2)
73
var includeDefaultSeverity = expected.Any() && expected.
All
(e => e.DefaultSeverity != null);
74
var includeEffectiveSeverity = expected.Any() && expected.
All
(e => e.EffectiveSeverity != null);