未验证 提交 ff4d060a 编写于 作者: A Alireza Habibi 提交者: GitHub

Update comment to reflect code behavior

上级 8112c5f5
......@@ -26,9 +26,9 @@ internal abstract partial class AbstractConvertIfToSwitchCodeRefactoringProvider
//
// <if-statement>
// : if (<section-expr>) { _ } else <if-statement>
// | if (<section-expr>) { _ } else { <if-statement-sequence> }
// | if (<section-expr>) { _ } else { _ }
// | if (<section-expr>) { _ }
// | { <if-statement-sequence> }
//
// <section-expr>
// : <section-expr> || <pattern-expr>
......@@ -131,9 +131,9 @@ private bool ParseIfStatementSequence(ReadOnlySpan<IOperation> operations, Array
//
// <if-statement>
// : if (<section-expr>) { _ } else <if-statement>
// | if (<section-expr>) { _ } else { <if-statement-sequence> }
// | if (<section-expr>) { _ } else { _ }
// | if (<section-expr>) { _ }
// | { <if-statement-sequence> }
//
private bool ParseIfStatement(IOperation operation, ArrayBuilder<AnalyzedSwitchSection> sections, out IOperation? defaultBodyOpt)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册