Replace errorType return with Debug fail in checkExpressionWorker#54117
Replace errorType return with Debug fail in checkExpressionWorker#54117weswigham wants to merge 4 commits intomicrosoft:mainfrom
Conversation
|
@typescript-bot test this |
|
Heya @weswigham, I've started to run the diff-based top-repos suite on this PR at 7dfe497. You can monitor the build here. Update: The results are in! |
|
Heya @weswigham, I've started to run the extended test suite on this PR at 7dfe497. You can monitor the build here. |
|
Heya @weswigham, I've started to run the parallelized Definitely Typed test suite on this PR at 7dfe497. You can monitor the build here. Update: The results are in! |
|
Heya @weswigham, I've started to run the perf test suite on this PR at 7dfe497. You can monitor the build here. Update: The results are in! |
|
@weswigham Here they are:
CompilerComparison Report - main..54117
System
Hosts
Scenarios
TSServerComparison Report - main..54117
System
Hosts
Scenarios
StartupComparison Report - main..54117
System
Hosts
Scenarios
Developer Information: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hey @weswigham, the results of running the DT tests are ready. |
|
@weswigham Here are the results of running the top-repos suite comparing Everything looks good! |
| case SyntaxKind.JsxNamespacedName: | ||
| return errorType; // FIXME: Remove when JsxNamespacedName is no longer used as an expression | ||
| case SyntaxKind.MissingDeclaration: | ||
| return errorType; // invalid decorated expression |
There was a problem hiding this comment.
@rbuckton should this be an expression? It's not flagged by isExpressionNode, but is definitely assigned to expression-expecting node positions.
There was a problem hiding this comment.
We have two different ways to test for expressions, so we may need to verify both are correct:
isExpressionin utilitiesPublic.ts — Tests whether aNodeis a subtype ofExpression. Doesn't care about context (i.e., no.parentaccess). Designed for use with transformers (where.parentmay not be set).isExpressionNodein _utilities.ts — Tests whether aNodeis used in an expression position. Highly contextual (performs.parentlookups). Used by the checker, though I'd love to find a way to retire it at some point.
|
@weswigham This looks like a strict improvement to me. Is there a reason not to merge this? |
Per my suggestion and this comment.