Skip to content

Commit 2f44452

Browse files
committed
Add binding of return statement, to check performance impact
1 parent 82a1a28 commit 2f44452

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/compiler/binder.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2285,6 +2285,11 @@ namespace ts {
22852285
bindCallExpression(<CallExpression>node);
22862286
}
22872287
break;
2288+
case SyntaxKind.ReturnStatement:
2289+
if (currentFlow) {
2290+
node.flowNode = currentFlow;
2291+
}
2292+
break;
22882293

22892294
// Members of classes, interfaces, and modules
22902295
case SyntaxKind.ClassExpression:

0 commit comments

Comments
 (0)