提交 988f32d0 编写于 作者: C Cyrus Najmabadi

Warning

上级 6ac83a62
......@@ -6,6 +6,7 @@
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Operations;
using Roslyn.Utilities;
namespace Microsoft.CodeAnalysis.CSharp.UseConditionalExpression
{
......@@ -18,6 +19,7 @@ public static bool IsRef(IReturnOperation? returnOperation)
public static ExpressionSyntax ConvertToExpression(IThrowOperation throwOperation)
{
var throwStatement = (ThrowStatementSyntax)throwOperation.Syntax;
RoslynDebug.Assert(throwStatement.Expression != null);
return SyntaxFactory.ThrowExpression(throwStatement.ThrowKeyword, throwStatement.Expression);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册