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