32 references to WhereAsArray
Microsoft.CodeAnalysis.Workspaces (32)
Diagnostics\Extensions.cs (1)
215var diagnostics = additionalPragmaSuppressionDiagnostics.WhereAsArray(d => d.Location.SourceTree == treeToAnalyze);
FindSymbols\Declarations\DeclarationFinder.cs (1)
93=> symbols.WhereAsArray(s => MeetCriteria(s, criteria));
FindSymbols\Declarations\DeclarationFinder_SourceDeclarations.cs (1)
233return symbolAndProjectIds.WhereAsArray(t =>
FindSymbols\FindReferences\DependentProjectsFinder.cs (2)
49return dependentProjects.WhereAsArray(projects.Contains); 89? dependentProjects.WhereAsArray(dp => dp.hasInternalsAccess)
FindSymbols\FindReferences\DependentTypeFinder_ImplementingTypes.cs (1)
53return allTypes.WhereAsArray(
FindSymbols\FindReferences\Finders\EventSymbolReferenceFinder.cs (1)
32.WhereAsArray(n => symbol.Equals(n.AssociatedSymbol))
FindSymbols\SymbolFinder_Callers.cs (1)
49var indirectReferences = references.WhereAsArray(r => r != directReference);
FindSymbols\SymbolFinder_Hierarchy.cs (3)
250return types.WhereAsArray(IsAccessible); 286return types.WhereAsArray(IsAccessible); 322return types.WhereAsArray(IsAccessible);
Recommendations\AbstractRecommendationServiceRunner.cs (1)
283.WhereAsArray(recommendationSymbol => IsNonIntersectingNamespace(recommendationSymbol, declarationSyntax));
Rename\ConflictEngine\ConflictResolver.cs (1)
389.WhereAsArray(p => p.Kind is not SymbolDisplayPartKind.PropertyName and not SymbolDisplayPartKind.FieldName)
Rename\ConflictEngine\ConflictResolver.Session.cs (1)
672newReferencedSymbols = newReferencedSymbols.WhereAsArray(a => a.Kind != SymbolKind.Alias);
Shared\Extensions\IFindReferencesResultExtensions.cs (1)
30return result.WhereAsArray(r => ShouldShow(r, options));
Shared\Extensions\ISymbolExtensions.cs (2)
679return symbols.WhereAsArray(s => !overriddenSymbols.Contains(s)); 686.WhereAsArray(s => !s.RequiresUnsafeModifier());
Shared\Extensions\SemanticModelExtensions.cs (1)
127.WhereAsArray(s => s != null && !s.Equals(declaredSymbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigFile.cs (1)
83.WhereAsArray(tuple => tuple.matchKind.IsBetterOrEqualMatchThan(matchKind))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (3)
198return type.GetMembers().WhereAsArray(m => m.DeclaredAccessibility == Accessibility.Public && 299return type.GetMembers().WhereAsArray(m => m.Kind != SymbolKind.NamedType && 353.WhereAsArray(t => t.members.Length > 0);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\ChainedFormattingRules.cs (1)
85return rules.WhereAsArray(rule =>
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (1)
455members.WhereAsArray(m => m is not INamedTypeSymbol),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\INamedTypeSymbolExtensions.cs (1)
32namedType.GetMembers().WhereAsArray(s => s is not INamedTypeSymbol),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceOrTypeSymbol.cs (3)
34=> GetMembers().WhereAsArray(s => s.Name == name); 40=> GetTypeMembers().WhereAsArray(s => s.Name == name); 43=> GetTypeMembers(name).WhereAsArray(n => n.Arity == arity);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (2)
168=> GetAttributes().WhereAsArray(a => a.AttributeClass.Equals(attributeType)); 171=> GetAttributes().WhereAsArray(a => a.AttributeConstructor.Equals(attributeConstructor));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (1)
184return semanticModel!.GetDiagnostics(cancellationToken: cancellationToken).WhereAsArray(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
135reducers = reducers.WhereAsArray(r => r.IsApplicable(options));