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