26 references to All
Microsoft.CodeAnalysis (5)
Operations\ControlFlowGraphBuilder.cs (4)
1278
Debug.Assert(spillingTheStack || _evalStack.
All
(
3743
Debug.Assert(predecessors.
All
(p => filterAndHandlerRegion.Regions[0].FirstBlock!.Ordinal <= p.Ordinal &&
4801
Debug.Assert(builder.
All
(o => o != null));
4831
Debug.Assert(builder.
All
(op => op is not null));
Operations\ControlFlowGraphBuilder.RegionBuilder.cs (1)
117
Debug.Assert(others.
All
(((IMethodSymbol m, ILocalFunctionOperation _) tuple) => tuple.m.MethodKind == MethodKind.LocalFunction));
Microsoft.CodeAnalysis.CSharp (21)
Binder\Binder_Expressions.cs (5)
1199
if (inferredElementNames.
All
(n => n is null))
8151
lookupResult.Symbols.
All
(s => s.Kind == SymbolKind.Method) ? lookupResult.Symbols.SelectAsArray(s_toMethodSymbolFunc) : ImmutableArray<MethodSymbol>.Empty,
8647
Debug.Assert(arity == 0 || lookupResult.Symbols.
All
(s => s.Kind != SymbolKind.Property));
9278
Debug.Assert(members.
All
(m => m.Kind == member.Kind));
9286
Debug.Assert(members.
All
(m => !m.IsIndexer()));
Binder\Binder_Lookup.cs (1)
432
Debug.Assert(result.Symbols.
All
(IsMethodOrIndexer));
Binder\Binder_XmlNameAttribute.cs (1)
46
Debug.Assert(lookupSymbols.
All
(sym => sym.Kind == lookupSymbols[0].Kind));
Binder\Semantics\OverloadResolution\OverloadResolution.cs (2)
204
members.
All
(static m => m.ContainingSymbol is NamedTypeSymbol { BaseTypeNoUseSiteDiagnostics.SpecialType: SpecialType.System_Object }));
1870
if (results.
All
(r => r.MemberWithPriority?.GetOverloadResolutionPriority() is null or 0))
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
209
Debug.Assert(arguments.Arguments.
All
(a => a.Display != null));
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (1)
165
Debug.Assert(builder == null || builder.
All
(node => node.Parent == null));
Emitter\Model\PEModuleBuilder.cs (1)
1580
Debug.Assert(flagsBuilder.
All
(f => f <= 2));
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (4)
1089
Debug.Assert(whenNodes.
All
(n => n.Syntax == whenClauseSyntax));
1090
Debug.Assert(whenNodes.
All
(n => n.WhenExpression == whenExpression));
1091
Debug.Assert(whenNodes.
All
(n => n.Bindings == whenNodes[0].Bindings));
1092
Debug.Assert(whenNodes.
All
(n => GetDagNodeLabel(n.WhenTrue) == whenTrueLabel));
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (1)
75
Debug.Assert(visitedArguments.
All
(arg => arg.Type!.SpecialType is SpecialType.System_String or SpecialType.System_Char or SpecialType.System_Object));
Operations\CSharpOperationFactory_Methods.cs (1)
383
Debug.Assert(argumentsInEvaluationBuilder.
All
(static arg => arg is not null));
Symbols\Source\ConstantEvaluationHelpers.cs (1)
76
Debug.Assert(fields.
All
(f => map.Contains(f)));
Symbols\Tuples\TupleTypeSymbol.cs (2)
837
Debug.Assert(fields.
All
(f => f is object));
1038
Debug.Assert(builder.
All
(f => f is object));