private static bool IsNullableConstructor(Expr expr, out ExprCall call)
{
Debug.Assert(expr != null);
if (expr is ExprCall pCall && pCall.MemberGroup.OptionalObject == null)
{
MethodSymbol meth = pCall.MethWithInst.Meth();
if (meth != null && meth.IsNullableConstructor())
{
call = pCall;
return(true);
}
}
call = null;
return(false);
}