Skip to content

Commit

Permalink
Add binding of return statement, to check performance impact
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenpieters committed Sep 4, 2019
1 parent 82a1a28 commit 2f44452
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/compiler/binder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2285,6 +2285,11 @@ namespace ts {
bindCallExpression(<CallExpression>node);
}
break;
case SyntaxKind.ReturnStatement:
if (currentFlow) {
node.flowNode = currentFlow;
}
break;

// Members of classes, interfaces, and modules
case SyntaxKind.ClassExpression:
Expand Down

0 comments on commit 2f44452

Please sign in to comment.