Skip to content

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

Merged
1 commit merged into
masterfrom
quickInfo_notInsideComment
Jul 20, 2018
Merged

Don't report quickInfo inside a comment in a PropertyAccessExpression#25813
1 commit merged into
masterfrom
quickInfo_notInsideComment

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Jul 20, 2018

Fixes #19984

@ghost ghost requested a review from sheetalkamat July 20, 2018 01:07
Comment thread src/services/services.ts
};
}

function shouldGetType(sourceFile: SourceFile, node: Node, position: number): boolean {
Copy link
Copy Markdown
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
Copy Markdown
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
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants