-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve error for unclosed imports and exports #54634
Improve error for unclosed imports and exports #54634
Conversation
This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise. |
@typescript-bot perf test this |
Heya @sandersn, I've started to run the perf test suite on this PR at 27d107e. You can monitor the build here. Update: The results are in! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me as long as the lookahead doesn't hurt performance (and I doubt it will since ParsingContext.ImportOrExportSpecifiers doesn't come up much)
@sandersn Here they are:
CompilerComparison Report - main..54634
System
Hosts
Scenarios
TSServerComparison Report - main..54634
System
Hosts
Scenarios
StartupComparison Report - main..54634
System
Hosts
Scenarios
Developer Information: |
this fix is picked from #49297
before:
after: