提交 cf3dd545 编写于 作者: B Balaji Krishnan

Make GenerateVariable work inside conditional access expressions.

上级 aa5ff837
......@@ -121,6 +121,11 @@ protected override bool ContainingTypesOrSelfHasUnsafeKeyword(INamedTypeSymbol c
return false;
}
if (expression.IsParentKind(SyntaxKind.ConditionalAccessExpression))
{
return true;
}
return expression.CanReplaceWithLValue(document.SemanticModel, cancellationToken);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册