Create separate control flows for property declarations with initializers

This commit is contained in:
Anders Hejlsberg 2016-06-02 06:47:37 -07:00
parent 166f399d17
commit 5f3f2d302f

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: