Skip to content

Commit

Permalink
Skip unnecessary work more thoroughly
Browse files Browse the repository at this point in the history
  • Loading branch information
amcasey committed Aug 4, 2020
1 parent 2e2dfd4 commit 906c503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35668,7 +35668,7 @@ namespace ts {
checkSourceElementWorker(node);

// Never report expensive statements in .d.ts files
if (!checkingDtsFile) {
if (!checkingDtsFile && maxExpensiveStatementCount > 0) {
if (node.kind >= SyntaxKind.FirstStatement && node.kind <= SyntaxKind.LastStatement ||
node.kind === SyntaxKind.TypeAliasDeclaration ||
node.kind === SyntaxKind.InterfaceDeclaration) {
Expand Down

0 comments on commit 906c503

Please sign in to comment.