Skip to content

Simplify parseJSDocIdentifierName #24660

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 2 commits into from
Jun 5, 2018
Merged

Conversation

sandersn
Copy link
Member

@sandersn sandersn commented Jun 4, 2018

It now always creates a missing node. The one place that depended on it returning undefined, parseJSDocTypeNameWithNamespace, now returns undefined before calling parseJSDocIdentifierName.

Based on @Andy-MS's suggestion from the review of #24600.

It now always creates a missing node. The one place that depended on it
returning undefined, parseJSDocTypeNameWithNamespace, now returns
undefined before calling parseJSDocIdentifierName.
@sandersn sandersn requested a review from a user June 4, 2018 19:33
}
Debug.assert(!!tag);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we have --strictNullChecks now, this is statically typed to always be defined.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

It is adequately proven at compile time.
@sandersn sandersn merged commit 8d737ca into master Jun 5, 2018
@sandersn sandersn deleted the simplify-parseJSDocIdentifierName branch June 5, 2018 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant