21 references to AddIfNotNull
Microsoft.CodeAnalysis.Workspaces (21)
FindSymbols\Declarations\DeclarationFinder_AllDeclarations.cs (1)
151
result.
AddIfNotNull
(mappedSymbol is INamespaceSymbol ns
FindSymbols\FindReferences\DependentTypeFinder_Remote.cs (1)
90
builder.
AddIfNotNull
(namedType);
FindSymbols\FindReferences\Finders\AbstractMethodOrPropertyOrEventSymbolReferenceFinder.cs (2)
37
result.
AddIfNotNull
(property.SetMethod);
40
result.
AddIfNotNull
(property.GetMethod);
FindSymbols\FindReferences\Finders\ParameterSymbolReferenceFinder.cs (1)
86
symbols.
AddIfNotNull
(parameter.GetAssociatedSynthesizedRecordProperty(cancellationToken));
FindSymbols\FindReferences\Finders\PropertySymbolReferenceFinder.cs (4)
48
result.
AddIfNotNull
(symbol.PartialDefinitionPart);
49
result.
AddIfNotNull
(symbol.PartialImplementationPart);
66
result.
AddIfNotNull
(symbol.GetMethod);
67
result.
AddIfNotNull
(symbol.SetMethod);
FindSymbols\FindReferences\FindReferencesSearchEngine.SymbolSet.cs (1)
97
result.
AddIfNotNull
(await TryMapToAppropriateSymbolAsync(solution, symbol, cancellationToken).ConfigureAwait(false));
Recommendations\AbstractRecommendationServiceRunner.cs (1)
322
builder.
AddIfNotNull
(specialTypeSymbol);
Rename\Renamer.cs (2)
118
actions.
AddIfNotNull
(renameAction);
124
actions.
AddIfNotNull
(action);
Shared\Extensions\TokenSemanticInfo.cs (4)
37
result.
AddIfNotNull
(DeclaredSymbol);
38
result.
AddIfNotNull
(PreprocessingSymbol);
39
result.
AddIfNotNull
(AliasSymbol);
44
result.
AddIfNotNull
(Type ?? ConvertedType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
113
stack.
AddIfNotNull
(container);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\AbstractInitializerParameterService.cs (2)
198
accessors.
AddIfNotNull
(GetAccessorBody(property.GetMethod, cancellationToken));
201
accessors.
AddIfNotNull
(GetAccessorBody(property.SetMethod, cancellationToken));
Workspace\Solution\SolutionChanges.cs (1)
104
oldStateBuilder.
AddIfNotNull
(oldState);