public TempValue?AddObject(INewObjectExpression exp) { var referenceType = exp.DataType.Known().UnderlyingReferenceType(); if (referenceType is null) { return(null); } var reference = ReferenceToNewObject(exp); var temp = ReferenceGraph.AddTempValue(exp, referenceType); temp.AddReference(reference); return(temp); }
private Reference ReferenceToNewObject(INewObjectExpression expression) { return(ReferenceToExpressionObject(expression)); }