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