(node)
| 96000 | } |
| 96001 | } |
| 96002 | function asyncBodyVisitor(node) { |
| 96003 | if (ts.isNodeWithPossibleHoistedDeclaration(node)) { |
| 96004 | switch (node.kind) { |
| 96005 | case 237 /* SyntaxKind.VariableStatement */: |
| 96006 | return visitVariableStatementInAsyncBody(node); |
| 96007 | case 242 /* SyntaxKind.ForStatement */: |
| 96008 | return visitForStatementInAsyncBody(node); |
| 96009 | case 243 /* SyntaxKind.ForInStatement */: |
| 96010 | return visitForInStatementInAsyncBody(node); |
| 96011 | case 244 /* SyntaxKind.ForOfStatement */: |
| 96012 | return visitForOfStatementInAsyncBody(node); |
| 96013 | case 292 /* SyntaxKind.CatchClause */: |
| 96014 | return visitCatchClauseInAsyncBody(node); |
| 96015 | case 235 /* SyntaxKind.Block */: |
| 96016 | case 249 /* SyntaxKind.SwitchStatement */: |
| 96017 | case 263 /* SyntaxKind.CaseBlock */: |
| 96018 | case 289 /* SyntaxKind.CaseClause */: |
| 96019 | case 290 /* SyntaxKind.DefaultClause */: |
| 96020 | case 252 /* SyntaxKind.TryStatement */: |
| 96021 | case 240 /* SyntaxKind.DoStatement */: |
| 96022 | case 241 /* SyntaxKind.WhileStatement */: |
| 96023 | case 239 /* SyntaxKind.IfStatement */: |
| 96024 | case 248 /* SyntaxKind.WithStatement */: |
| 96025 | case 250 /* SyntaxKind.LabeledStatement */: |
| 96026 | return ts.visitEachChild(node, asyncBodyVisitor, context); |
| 96027 | default: |
| 96028 | return ts.Debug.assertNever(node, "Unhandled node."); |
| 96029 | } |
| 96030 | } |
| 96031 | return visitor(node); |
| 96032 | } |
| 96033 | function visitCatchClauseInAsyncBody(node) { |
| 96034 | var catchClauseNames = new ts.Set(); |
| 96035 | recordDeclarationName(node.variableDeclaration, catchClauseNames); // TODO: GH#18217 |
nothing calls this directly
no test coverage detected