Switch C# to retrieve conversion directly from the bound node.

上级 60de51be
......@@ -683,7 +683,7 @@ private IOperation CreateBoundConversionOperation(BoundConversion boundConversio
{
Lazy<IOperation> operand = new Lazy<IOperation>(() => Create(boundConversion.Operand));
SyntaxNode syntax = boundConversion.Syntax;
Conversion conversion = _semanticModel.GetTypeInfoForNode(boundConversion.Operand, boundConversion, null).ImplicitConversion;
Conversion conversion = boundConversion.Conversion;
bool isExplicit = boundConversion.ExplicitCastInCode;
bool isTryCast = false;
// Checked conversions only matter if the conversion is a Numeric conversion. Don't have true unless the conversion is actually numeric.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册