未验证 提交 02a4fc87 编写于 作者: N Neal Gafter 提交者: GitHub

Remove PROTOTYPE comments in the compiler (#46172)

They are recorded in #46171
上级 5043e9da
...@@ -2217,8 +2217,6 @@ private static bool IsUserDefinedTrueOrFalse(BoundUnaryOperator @operator) ...@@ -2217,8 +2217,6 @@ private static bool IsUserDefinedTrueOrFalse(BoundUnaryOperator @operator)
type = cond.NaturalTypeOpt; type = cond.NaturalTypeOpt;
convertedType = cond.Type; convertedType = cond.Type;
convertedNullability = nullability; convertedNullability = nullability;
// PROTOTYPE(ngafter): Should we preserve the set of conversions?
// By now they have been pushed into the subexpressions.
conversion = Conversion.MakeConditionalExpression(ImmutableArray<Conversion>.Empty); conversion = Conversion.MakeConditionalExpression(ImmutableArray<Conversion>.Empty);
} }
else else
......
...@@ -2200,7 +2200,6 @@ void F(bool x, bool y, System.Exception ex1, System.Exception ex2) ...@@ -2200,7 +2200,6 @@ void F(bool x, bool y, System.Exception ex1, System.Exception ex2)
"; ";
VerifyOperationTreeForTest<BlockSyntax>(compilation, expectedOperationTree); VerifyOperationTreeForTest<BlockSyntax>(compilation, expectedOperationTree);
// PROTOTYPE(ngafter): Investigate the tree in block B4 (syntax for the operand of the conversion)
string expectedGraph = @" string expectedGraph = @"
Block[B0] - Entry Block[B0] - Entry
Statements (0) Statements (0)
...@@ -2293,7 +2292,6 @@ void F(bool x, bool y, System.Exception ex1, System.Exception ex2) ...@@ -2293,7 +2292,6 @@ void F(bool x, bool y, System.Exception ex1, System.Exception ex2)
"; ";
VerifyOperationTreeForTest<BlockSyntax>(compilation, expectedOperationTree); VerifyOperationTreeForTest<BlockSyntax>(compilation, expectedOperationTree);
// PROTOTYPE(ngafter): Investigate the tree in block B4. The conversion should be an identity conversion on the whole conditional.
string expectedGraph = @" string expectedGraph = @"
Block[B0] - Entry Block[B0] - Entry
Statements (0) Statements (0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册