6 references to NullOrDefault
Microsoft.CodeAnalysis.CSharp (6)
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (4)
277
builder.Add(F.Assignment(F.Field(F.This(), hoistedLocal), F.
NullOrDefault
(hoistedLocal.Type)));
509
F.Assignment(F.Field(F.This(), awaiterField), F.
NullOrDefault
(awaiterField.Type)));
577
F.
NullOrDefault
(notifyCompletionTemp.Type))),
591
F.
NullOrDefault
(criticalNotifyCompletedTemp.Type)));
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
792
return _factory.
NullOrDefault
(rewrittenType);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
429
cleanup.Add(F.AssignmentExpression(F.Field(F.This(), field), F.
NullOrDefault
(field.Type)));