Skip to content

Unwrap parens when checking for JSDocFunctionType in conditional expression #46962

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 3 commits into from
Dec 7, 2021

Conversation

jakebailey
Copy link
Member

@jakebailey jakebailey commented Nov 30, 2021

Fixes #46933

This is a followup to #46960; I realized that these could be nested after merging.

skipParentheses is for Expression and doesn't work here. Other places do this loop, so I've copied the same pattern as other places and removed my use of isParenthesizedTypeNode. Seems like it'd be a good helper, but it's only two other places, somehow.

@typescript-bot typescript-bot added the For Milestone Bug PRs that fix a bug with a specific milestone label Nov 30, 2021
@jakebailey jakebailey merged commit 4013271 into microsoft:main Dec 7, 2021
@jakebailey jakebailey deleted the issue46933-2 branch December 7, 2021 00:44
mprobst pushed a commit to mprobst/TypeScript that referenced this pull request Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Milestone Bug PRs that fix a bug with a specific milestone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

createSourceFile build wrong AST in some cases.
4 participants