11 references to AddIfNotNull
Microsoft.CodeAnalysis.Workspaces (11)
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);
Recommendations\AbstractRecommendationServiceRunner.cs (1)
322
builder.
AddIfNotNull
(specialTypeSymbol);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\AbstractInitializerParameterService.cs (2)
198
accessors.
AddIfNotNull
(GetAccessorBody(property.GetMethod, cancellationToken));
201
accessors.
AddIfNotNull
(GetAccessorBody(property.SetMethod, cancellationToken));