16 references to AddIfNotNull
Microsoft.CodeAnalysis.CodeStyle (16)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ArrayTypeSymbolKey.cs (1)
33
result.
AddIfNotNull
(reader.Compilation.CreateArrayTypeSymbol(typeSymbol, rank));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AssemblySymbolKey.cs (2)
32
result.
AddIfNotNull
(compilation.Assembly);
40
result.
AddIfNotNull
(assembly);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
105
result.
AddIfNotNull
(reader.Compilation.CreateErrorTypeSymbol(container: null, name, arity));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (2)
130
result.
AddIfNotNull
(Construct(
193
result.
AddIfNotNull
(Construct(type, isUnboundGenericType, typeArguments));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamespaceSymbolKey.cs (3)
96
result.
AddIfNotNull
(assembly.GlobalNamespace);
100
result.
AddIfNotNull
(module.GlobalNamespace);
107
result.
AddIfNotNull
(childNamespace);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ParameterSymbolKey.cs (2)
89
result.
AddIfNotNull
(parameter);
98
result.
AddIfNotNull
(parameters[ordinal]);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.PointerTypeSymbolKey.cs (1)
35
result.
AddIfNotNull
(reader.Compilation.CreatePointerTypeSymbol(typeSymbol));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.PooledArrayBuilder.cs (2)
48
AddIfNotNull
(value);
56
AddIfNotNull
(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TupleTypeSymbolKey.cs (1)
86
result.
AddIfNotNull
(reader.Compilation.CreateTupleTypeSymbol(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
67
result.
AddIfNotNull
(typeParam);