Skip to content

Commit 396e7d5

Browse files
committed
Add binding of return statement, to check performance impact
1 parent 0c17476 commit 396e7d5

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
@@ -2440,6 +2440,11 @@ namespace ts {
24402440
bindCallExpression(<CallExpression>node);
24412441
}
24422442
break;
2443+
case SyntaxKind.ReturnStatement:
2444+
if (currentFlow) {
2445+
node.flowNode = currentFlow;
2446+
}
2447+
break;
24432448

24442449
// Members of classes, interfaces, and modules
24452450
case SyntaxKind.ClassExpression:

0 commit comments

Comments
 (0)