20 references to AddIfNotNull
Microsoft.CodeAnalysis.CSharp (17)
CSharpDeclarationComputer.cs (2)
263
blocks.
AddIfNotNull
(t.Body);
264
blocks.
AddIfNotNull
(t.ExpressionBody);
Declarations\DeclarationTreeBuilder.cs (1)
700
children.
AddIfNotNull
(typeDecl);
Emitter\Model\PEAssemblyBuilder.cs (10)
95
builder.
AddIfNotNull
(_lazyEmbeddedAttribute);
96
builder.
AddIfNotNull
(_lazyIsReadOnlyAttribute);
97
builder.
AddIfNotNull
(_lazyIsUnmanagedAttribute);
98
builder.
AddIfNotNull
(_lazyIsByRefLikeAttribute);
99
builder.
AddIfNotNull
(_lazyNullableAttribute);
100
builder.
AddIfNotNull
(_lazyNullableContextAttribute);
101
builder.
AddIfNotNull
(_lazyNullablePublicOnlyAttribute);
102
builder.
AddIfNotNull
(_lazyNativeIntegerAttribute);
103
builder.
AddIfNotNull
(_lazyScopedRefAttribute);
104
builder.
AddIfNotNull
(_lazyRefSafetyRulesAttribute);
Operations\CSharpOperationFactory.cs (1)
343
builder.
AddIfNotNull
((TOperation)Create(node));
Operations\CSharpOperationFactory_Methods.cs (1)
322
builder.
AddIfNotNull
(additionalNodeOpt);
Symbols\NativeIntegerTypeSymbol.cs (2)
130
builder.
AddIfNotNull
(property.GetMethod);
131
builder.
AddIfNotNull
(property.SetMethod);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Diagnostics\LineSpanDirectiveTests.cs (2)
454
builder.
AddIfNotNull
(lambda.ExpressionBody);
457
builder.
AddIfNotNull
(lambda.ExpressionBody);
Microsoft.CodeAnalysis.VisualBasic (1)
Operations\VisualBasicOperationFactory.vb (1)
334
builder.
AddIfNotNull
(DirectCast(Create(node), TOperation))