32 references to WhereAsArray
Microsoft.CodeAnalysis.Workspaces (32)
Diagnostics\Extensions.cs (1)
215
var 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)
233
return symbolAndProjectIds.
WhereAsArray
(t =>
FindSymbols\FindReferences\DependentProjectsFinder.cs (2)
50
return dependentProjects.
WhereAsArray
(projects.Contains);
90
? dependentProjects.
WhereAsArray
(dp => dp.hasInternalsAccess)
FindSymbols\FindReferences\DependentTypeFinder_ImplementingTypes.cs (1)
53
return allTypes.
WhereAsArray
(
FindSymbols\FindReferences\Finders\EventSymbolReferenceFinder.cs (1)
32
.
WhereAsArray
(n => symbol.Equals(n.AssociatedSymbol))
FindSymbols\SymbolFinder_Callers.cs (1)
49
var indirectReferences = references.
WhereAsArray
(r => r != directReference);
FindSymbols\SymbolFinder_Hierarchy.cs (3)
250
return types.
WhereAsArray
(IsAccessible);
286
return types.
WhereAsArray
(IsAccessible);
322
return 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)
674
newReferencedSymbols = newReferencedSymbols.
WhereAsArray
(a => a.Kind != SymbolKind.Alias);
Shared\Extensions\IFindReferencesResultExtensions.cs (1)
30
return result.
WhereAsArray
(r => ShouldShow(r, options));
Shared\Extensions\ISymbolExtensions.cs (2)
679
return 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)
198
return type.GetMembers().
WhereAsArray
(
301
return type.GetMembers().
WhereAsArray
(m => m.Kind != SymbolKind.NamedType &&
355
.
WhereAsArray
(t => t.members.Length > 0);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\ChainedFormattingRules.cs (1)
85
return rules.
WhereAsArray
(rule =>
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (1)
456
members.
WhereAsArray
(m => m is not INamedTypeSymbol),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\INamedTypeSymbolExtensions.cs (1)
32
namedType.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)
184
return semanticModel!.GetDiagnostics(cancellationToken: cancellationToken).
WhereAsArray
(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
80
reducers = reducers.
WhereAsArray
(r => r.IsApplicable(options));