Create separate control flows for property declarations with initializers

This commit is contained in:
Anders Hejlsberg committed 2016-06-02 06:47:37 -07:00
1 parent 166f399d17
commit 5f3f2d302f
1 file changed
+2
+2
View File
@@ -1142,6 +1142,8 @@ namespace ts {
case SyntaxKind.ModuleBlock:
return ContainerFlags.IsControlFlowContainer;
case SyntaxKind.PropertyDeclaration:
return (<PropertyDeclaration>node).initializer ? ContainerFlags.IsControlFlowContainer : 0;
case SyntaxKind.CatchClause:
case SyntaxKind.ForStatement: