91 references to WhereNotNull
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
AutomaticCompletion\AutomaticLineEnderCommandHandler.cs (1)
301.WhereNotNull();
Microsoft.CodeAnalysis.CSharp.Features (8)
ChangeSignature\CSharpChangeSignatureService.cs (1)
873.WhereNotNull()
Completion\CompletionProviders\XmlDocCommentCompletionProvider.cs (1)
328=> syntax.Content.Select(GetElementName).WhereNotNull();
ConvertToRecordEngine.cs (1)
207.WhereNotNull()
ConvertToRecordHelpers.cs (1)
93.SelectAsArray(UnwrapPropertyToField).WhereNotNull().AsImmutable();
EncapsulateField\CSharpEncapsulateFieldService.cs (1)
152.WhereNotNull()
PassInCapturedVariablesAsArgumentsCodeFixProvider.cs (1)
82.WhereNotNull()
PositionalParameterInfo.cs (2)
70}).WhereNotNull()); 84.WhereNotNull()
Microsoft.CodeAnalysis.CSharp.Workspaces (9)
AttributeGenerator.cs (2)
30.WhereNotNull().ToList(); 42.WhereNotNull().ToList();
CodeGeneration\CSharpSyntaxGenerator.cs (2)
707? SyntaxFactory.List(members.Select(m => AsClassMember(m, className)).WhereNotNull()) 2582SyntaxFactory.List(nodes.Select(n => AsAccessor(n, parentKind)).WhereNotNull()));
CSharpRemoveUnnecessaryImportsService.Rewriter.cs (1)
123finalUsings = currentUsings.WhereNotNull().ToSyntaxList();
EventGenerator.cs (1)
147return SyntaxFactory.AccessorList(accessors.WhereNotNull().ToSyntaxList());
NamespaceGenerator.cs (1)
143.WhereNotNull()
PropertyGenerator.cs (1)
269: SyntaxFactory.AccessorList(accessors.WhereNotNull().ToSyntaxList());
Recommendations\CSharpRecommendationServiceRunner.cs (1)
212.WhereNotNull()
Microsoft.CodeAnalysis.EditorFeatures (2)
InlineRename\InlineRenameSession.OpenTextBufferManager.cs (1)
690}).WhereNotNull();
ReferenceHighlighting\ReferenceHighlightingViewTaggerProvider.cs (1)
160var documentsToSearch = ImmutableHashSet.CreateRange(context.SpansToTag.Select(vt => vt.Document).WhereNotNull());
Microsoft.CodeAnalysis.EditorFeatures.Cocoa (1)
SuggestedActionsSource.cs (1)
204return filteredSets.Select(s => ConvertToSuggestedActionSet(s, state.Target.Owner, state.Target.SubjectBuffer)).WhereNotNull().ToImmutableArray();
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
Suggestions\SuggestedActionsSource.cs (1)
204return filteredSets.Select(s => ConvertToSuggestedActionSet(s, state.Target.Owner, state.Target.SubjectBuffer)).WhereNotNull().ToImmutableArray();
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
Diagnostics\DiagnosticProviderTests.vb (1)
300service.GetTestAccessor().WaitUntilCompletion(workspace, SpecializedCollections.SingletonEnumerable(analyzerService.CreateIncrementalAnalyzer(workspace)).WhereNotNull().ToImmutableArray())
Microsoft.CodeAnalysis.Features (30)
AbstractAddObsoleteAttributeCodeFixProvider.cs (1)
83.WhereNotNull()
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
63var attributeSetForMethodsToIgnore = ImmutableHashSet.CreateRange(GetAttributesForMethodsToIgnore(context.Compilation).WhereNotNull());
CodeRefactorings\CodeRefactoringService.cs (1)
152return results.WhereNotNull().ToImmutableArray();
Completion\Providers\AbstractDocCommentCompletionProvider.cs (1)
259names.RemoveAll(GetExistingTopLevelAttributeValues(syntax, tagName, NameAttributeName).WhereNotNull());
Completion\Providers\CompletionUtilities.cs (1)
48return projectIds.Select(solution.GetProject).WhereNotNull().ToImmutableArray();
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.SymbolComputer.cs (1)
269foreach (var methodInOriginatingCompilation in methodSymbols.Select(s => SymbolFinder.FindSimilarSymbols(s, _originatingSemanticModel.Compilation).FirstOrDefault()).WhereNotNull())
EditAndContinue\CommittedSolution.cs (1)
405return documentIdArrays.SelectMany(ids => ids.WhereNotNull()).Select(id => KeyValuePairUtil.Create(id, DocumentState.MatchesBuildOutput));
EmbeddedLanguages\EmbeddedLanguageMetadata.cs (2)
31this.Identifiers = ((IReadOnlyDictionary<string, object>)data).GetEnumerableMetadata<string>(nameof(Identifiers)).WhereNotNull(); 32this.Languages = ((IReadOnlyDictionary<string, object>)data).GetEnumerableMetadata<string>(nameof(Languages)).WhereNotNull();
EmbeddedLanguages\Json\LanguageServices\JsonLanguageDetector.cs (1)
63var types = s_typeNamesOfInterest.Select(compilation.GetTypeByMetadataName).WhereNotNull().ToSet();
ExternalAccess\UnitTesting\SolutionCrawler\IUnitTestingDocumentTrackingServiceExtensions.cs (1)
33.WhereNotNull()
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingIncrementalAnalyzerProcessor.cs (1)
490.WhereNotNull()
ExtractMethod\MethodExtractor.VariableSymbol.cs (1)
160var commonTree = leftLocations.Select(l => l.SourceTree).Intersect(rightLocations.Select(l => l.SourceTree)).WhereNotNull().First();
GenerateFromMembers\AbstractGenerateFromMembersCodeRefactoringProvider.cs (1)
40d => semanticModel.GetDeclaredSymbol(d, cancellationToken)).WhereNotNull().ToImmutableArray();
ImplementAbstractClass\ImplementAbstractClassData.cs (1)
135.WhereNotNull()
ImplementInterface\AbstractImplementInterfaceService.CodeAction_Property.cs (1)
81compilation.DynamicAttributeType(), compilation.NativeIntegerAttributeType() }.WhereNotNull().ToArray()!;
InlineTemporary\AbstractInlineTemporaryCodeRefactoringProvider.cs (1)
46.WhereNotNull()
MoveStaticMembers\MoveStaticMembersWithDialogCodeAction.cs (3)
70.WhereNotNull() 138.WhereNotNull() 199.WhereNotNull()
PullMemberUp\AbstractPullMemberUpRefactoringProvider.cs (1)
84.WhereNotNull()
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (1)
384.WhereNotNull()
SignatureHelp\CommonSignatureHelpUtilities.cs (1)
41argumentNames.WhereNotNull().ToImmutableArray());
SolutionCrawler\IDocumentTrackingServiceExtensions.cs (1)
33.WhereNotNull()
UnusedReferences\ProjectAssets\ProjectAssetsReader.cs (2)
63.WhereNotNull() 175.WhereNotNull()
UnusedReferences\UnusedReferencesRemover.cs (2)
53.WhereNotNull()); 60.WhereNotNull());
UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
299.WhereNotNull()
Wrapping\AbstractCodeActionComputer.cs (1)
281var wrappingActions = group.WrappingActions.WhereNotNull().ToImmutableArray();
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Extensions\Extensions.cs (2)
41var documents = documentIds.Select(solution.GetDocument).WhereNotNull().ToImmutableArray(); 126var additionalDocuments = documentIds.Select(solution.GetAdditionalDocument).WhereNotNull().ToImmutableArray();
Features\UnifiedSuggestions\UnifiedSuggestedActionsSource.cs (1)
473=> refactorings.Select(r => FilterOnAnyThread(r, selection, filterOutsideSelection)).WhereNotNull().ToImmutableArray();
Handler\Diagnostics\WorkspacePullDiagnosticHandler.cs (1)
96.WhereNotNull()
Microsoft.CodeAnalysis.Remote.ServiceHub (3)
Services\DocumentHighlights\RemoteDocumentHighlightsService.cs (1)
40var documentsToSearchSet = ImmutableHashSet.CreateRange(documentsToSearch.WhereNotNull());
Services\ExtensionMethodImportCompletion\RemoteExtensionMethodImportCompletionService.cs (1)
57.WhereNotNull().ToImmutableArray();
Services\SymbolFinder\RemoteSymbolFinderService.cs (1)
63documentArgs.Select(solution.GetDocument).WhereNotNull().ToImmutableHashSet();
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (1)
Debugging\ProximityExpressionsGetterTests.vb (1)
103Dim statements = (Await document.GetSyntaxRootAsync()).DescendantTokens().Select(Function(t) t.GetAncestor(Of StatementSyntax)()).Distinct().WhereNotNull()
Microsoft.CodeAnalysis.VisualBasic.Features (8)
CodeRefactorings\InlineTemporary\VisualBasicInlineTemporaryCodeRefactoringProvider.vb (1)
175.WhereNotNull()
Completion\CompletionProviders\XmlDocCommentCompletionProvider.vb (2)
288.WhereNotNull() 334Dim existingAttributeNames = attributes.Select(AddressOf GetAttributeName).WhereNotNull().ToSet()
EncapsulateField\VisualBasicEncapsulateFieldService.vb (1)
91WhereNotNull().
ImplementInterface\VisualBasicImplementInterfaceService.vb (1)
72interfaceTypes = interfaceTypes.WhereNotNull().Where(Function(t) t.TypeKind = TypeKind.Interface).ToList()
IntroduceVariable\VisualBasicIntroduceVariableService_IntroduceField.vb (1)
226WhereNotNull().
NavigationBar\VisualBasicNavigationBarItemService.vb (1)
177ImmutableArray(Of RoslynNavigationBarItem).CastUp(members.WhereNotNull().ToImmutableArray()),
QuickInfo\VisualBasicSemanticQuickInfoProvider.vb (1)
189End Function).WhereNotNull().Distinct().ToImmutableArray()
Microsoft.CodeAnalysis.VisualBasic.Workspaces (5)
CodeGeneration\NamespaceGenerator.vb (1)
101WhereNotNull().ToList()
CodeGeneration\PropertyGenerator.vb (1)
116Return SyntaxFactory.List(accessors.WhereNotNull())
SyntaxNodeExtensions.vb (1)
962Return field.Declarators.Where(Function(d) d.Initializer IsNot Nothing).Select(Function(d) d.Initializer.Value).WhereNotNull()
VisualBasicRemoveUnnecessaryImportsRewriter.vb (1)
124Dim newImports = SyntaxFactory.List(oldImports.WhereNotNull())
VisualBasicTypeInferenceService.TypeInferrer.vb (1)
1053WhereNotNull().
Microsoft.CodeAnalysis.Workspaces (10)
Diagnostics\HostDiagnosticAnalyzers.cs (1)
232builder.Add(reference.Key, analyzers.WhereNotNull().ToImmutableArray());
ITypeInferenceServiceExtensions.cs (1)
50return delegateTypes.WhereNotNull().FirstOrDefault();
Log\AggregateLogger.cs (1)
28foreach (var logger in loggers.WhereNotNull())
OrderableMetadata.cs (2)
27this.AfterTyped = readOnlyData.GetEnumerableMetadata<string>("After").WhereNotNull(); 28this.BeforeTyped = readOnlyData.GetEnumerableMetadata<string>("Before").WhereNotNull();
Rename\ConflictEngine\ConflictResolver.Session.cs (2)
476_nonConflictSymbolKeys.Select(s => s.Resolve(compilation).GetAnySymbol()).WhereNotNull()); 536var newLocations = (await Task.WhenAll(newLocationTasks).ConfigureAwait(false)).WhereNotNull().Where(loc => loc.IsInSource);
Shared\Extensions\ITypeParameterSymbolExtensions.cs (1)
13=> typeParameter.ConstraintTypes.Select(GetNamedTypeSymbol).WhereNotNull().FirstOrDefault();
Workspace\ProjectSystem\ProjectSystemProjectOptionsProcessor.cs (1)
190.WithStrongNameProvider(new DesktopStrongNameProvider(_commandLineArgumentsForCommandLine.KeyFileSearchPaths.WhereNotNull().ToImmutableArray()));
Workspace\Solution\SolutionState_Checksum.cs (1)
163new ChecksumCollection(projectChecksums.WhereNotNull().ToImmutableArray()),
Microsoft.VisualStudio.LanguageServices (6)
CallHierarchy\Finders\ImplementerFinder.cs (1)
44var sourceLocations = implementation.DeclaringSyntaxReferences.Select(d => project.Solution.GetDocument(d.SyntaxTree)).WhereNotNull();
CallHierarchy\Finders\OverridingMemberFinder.cs (1)
40var sourceLocations = @override.DeclaringSyntaxReferences.Select(d => project.Solution.GetDocument(d.SyntaxTree)).WhereNotNull();
ColorSchemes\ColorSchemeApplier.ColorSchemeReader.cs (1)
56.WhereNotNull();
MoveToNamespace\VisualStudioMoveToNamespaceOptionsService.cs (1)
46History.WhereNotNull().ToImmutableArray());
Packaging\PackageInstallerServiceFactory.cs (1)
536projectsToProcess.AddRange(workQueue.Select(t => t.changedProject).WhereNotNull());
TableDataSource\Suppression\VisualStudioSuppressionFixService.cs (1)
405var reanalyzeDocuments = diagnosticsToFix.Select(d => d.DocumentId).WhereNotNull().Distinct();
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
Diagnostics\DiagnosticTableDataSourceTests.vb (1)
762service.GetTestAccessor().WaitUntilCompletion(workspace, SpecializedCollections.SingletonEnumerable(analyzerService.CreateIncrementalAnalyzer(workspace)).WhereNotNull().ToImmutableArray())