Skip to content

Ensure parsing context is restored in jsdoc parser #55537

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

Merged
merged 1 commit into from
Aug 28, 2023

Conversation

jakebailey
Copy link
Member

Noticed this while revisiting JSDoc stuff.

I put this code in the wrong place; we can return early with undefined before restoring the context, which is bad, though theoretically doesn't actually affect anything because this flag is not used for anything in particular besides making sure the context is non-empty when parsing lists (so, no test). These parsing contexts are very weird.

Still, not intentional at all.

@jakebailey jakebailey requested a review from sandersn August 28, 2023 04:27
@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Aug 28, 2023
@jakebailey jakebailey merged commit 4d7753a into microsoft:main Aug 28, 2023
@jakebailey jakebailey deleted the fix-jsdoc-parsing-context branch August 28, 2023 16:52
snovader pushed a commit to EG-A-S/TypeScript that referenced this pull request Sep 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants