提交 966a1ffd 编写于 作者: C Cyrus Najmabadi

Add comments

上级 23d34a2d
......@@ -815,6 +815,12 @@ private static bool CanReplace(ISymbol symbol)
return true;
}
// See https://github.com/dotnet/roslyn/issues/40974
//
// To be very safe, we only support simplifying code that bound to a symbol without any
// sort of problems. We could potentially relax this in the future. However, we would
// need to be very careful about the implications of us offering to fixup 'broken' code
// in a manner that might end up making things worse or confusing the user.
var symbol = SimplificationHelpers.GetOriginalSymbolInfo(semanticModel, memberAccess);
if (symbol == null)
return false;
......
......@@ -979,6 +979,12 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Extensions
Return True
End If
' See https//github.com/dotnet/roslyn/issues/40974
'
' To be very safe, we only support simplifying code that bound to a symbol without any
' sort of problems. We could potentially relax this in the future. However, we would
' need to be very careful about the implications of us offering to fixup 'broken' code
' in a manner that might end up making things worse Or confusing the user.
Dim symbol = SimplificationHelpers.GetOriginalSymbolInfo(semanticModel, memberAccess)
If symbol Is Nothing Then
Return False
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册