Skip to content
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

@link and @see resolve C.m as a class property reference #43625

Merged
merged 9 commits into from
Apr 13, 2021

Conversation

sandersn
Copy link
Member

@sandersn sandersn commented Apr 9, 2021

This does not match real TS references, but is extremely common. It also matches the lookup that will have to happen for C#m, but doesn't require any new parsing.

Fixes #43383 but not #43594 or #43595

sandersn added 4 commits April 8, 2021 11:43
The test is pretty good, the scribbles are actually cleanup from last
PR, although they break some tests.
Turns out that you can't reuse check* functions if you want to retrieve
all meanings of a reference.
@typescript-bot typescript-bot added Author: Team For Milestone Bug PRs that fix a bug with a specific milestone labels Apr 9, 2021
@sandersn sandersn requested a review from andrewbranch April 9, 2021 22:49
@sandersn
Copy link
Member Author

sandersn commented Apr 9, 2021

@mjbvz You were interested in this.

@sandersn sandersn requested a review from weswigham April 9, 2021 22:53
// }
//
// interface I {
// [|a|]/*FIND ALL REFS*/()
Copy link
Member

Choose a reason for hiding this comment

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

This one, and the one on b, also have no results apart from themselves. Couldn’t tell for sure whether that was expected.

Copy link
Member Author

Choose a reason for hiding this comment

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

I was just lazy and omitted the tests that should start passing in this PR. I added some references that will pass with this PR.

@sandersn sandersn merged commit d601221 into master Apr 13, 2021
@sandersn sandersn deleted the link-tag-method-name-resolution branch April 13, 2021 15:13
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.

JS Doc @Link support for referring to property of class/interface
3 participants