Skip to content

Don't report quickInfo inside a comment in a PropertyAccessExpression #25813

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
1 commit merged into from
Jul 20, 2018

Conversation

ghost
Copy link

@ghost ghost commented Jul 20, 2018

Fixes #19984

@ghost ghost requested a review from sheetalkamat July 20, 2018 01:07
@@ -1489,6 +1472,23 @@ namespace ts {
};
}

function shouldGetType(sourceFile: SourceFile, node: Node, position: number): boolean {
Copy link
Contributor

Choose a reason for hiding this comment

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

this is purely stylistic. but i think it read better before. in general refactoring inner pieces of logic that are rather specific to a certain code path makes it harder to understand the flow.

Copy link
Author

Choose a reason for hiding this comment

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

Previously we used switch-case fallthrough to determine whether to reach the last case. That was possible with only two cases, but it's not possible any more when we need two cases to both goto the same third case.

@ghost ghost merged commit e103692 into master Jul 20, 2018
@ghost ghost deleted the quickInfo_notInsideComment branch July 20, 2018 18:49
This pull request was closed.
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.

2 participants