Skip to content

Commit

Permalink
Add ClassExpression, FunctionExpression and ArrowFunction to check fo…
Browse files Browse the repository at this point in the history
…r cancellation token from classifier (#39557)

Fixes #35364
  • Loading branch information
sheetalkamat committed Jul 10, 2020
1 parent 294fcb5 commit 8002473
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/services/classifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,9 @@ namespace ts {
case SyntaxKind.ClassDeclaration:
case SyntaxKind.InterfaceDeclaration:
case SyntaxKind.FunctionDeclaration:
case SyntaxKind.ClassExpression:
case SyntaxKind.FunctionExpression:
case SyntaxKind.ArrowFunction:
cancellationToken.throwIfCancellationRequested();
}
}
Expand Down

0 comments on commit 8002473

Please sign in to comment.