Skip to content

Commit 8002473

Browse files
authored
Add ClassExpression, FunctionExpression and ArrowFunction to check for cancellation token from classifier (#39557)
Fixes #35364
1 parent 294fcb5 commit 8002473

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/services/classifier.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,9 @@ namespace ts {
472472
case SyntaxKind.ClassDeclaration:
473473
case SyntaxKind.InterfaceDeclaration:
474474
case SyntaxKind.FunctionDeclaration:
475+
case SyntaxKind.ClassExpression:
476+
case SyntaxKind.FunctionExpression:
477+
case SyntaxKind.ArrowFunction:
475478
cancellationToken.throwIfCancellationRequested();
476479
}
477480
}

0 commit comments

Comments
 (0)