提交 7ed7e813 编写于 作者: C Cyrus Najmabadi

Braces

上级 00fe4dc7
......@@ -227,7 +227,9 @@ private bool IsSafeToSwitchToVarWithoutNeedingSpeculation(DeclarationExpressionS
if (!(declarationExpression.Parent is ArgumentSyntax argument) ||
!(argument.Parent is ArgumentListSyntax argumentList) ||
!(argumentList.Parent is InvocationExpressionSyntax invocationExpression))
{
return false;
}
var memberGroup = semanticModel.GetMemberGroup(invocationExpression.Expression, cancellationToken);
if (memberGroup.Length != 1)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册