提交 0ea02fcd 编写于 作者: N Neal Gafter

Add a clarifying comment in Flow Analysis' VisitSwitchBlock.

上级 faa5dce5
......@@ -1669,6 +1669,8 @@ private void VisitSwitchBlock(BoundSwitchStatement node)
for (var iSection = 0; iSection <= iLastSection; iSection++)
{
VisitSwitchSection(switchSections[iSection], iSection == iLastSection);
// Even though it is illegal for the end of a switch section to be reachable, in erroneous
// code it may be reachable. We treat that as an implicit break (branch to afterSwitchState).
IntersectWith(ref afterSwitchState, ref this.State);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册