Skip to content

Get symbol at location for class expressions/keywords #26636

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
Aug 23, 2018

Conversation

sandersn
Copy link
Member

Previously, getSymbolAtLocation didn't do anything for class keywords. It did for function keywords (see the fourslash test quickInfoClassFunctionKeyword), so it makes sense for class keywords too, I think.

Might fix #26511, although I think there @ajafff wants getSymbolAtLocation to work for ClassExpression nodes, and those can't be indicated directly from the source text.

@sandersn sandersn requested a review from a user August 23, 2018 18:03
@sandersn sandersn merged commit 6ea2278 into master Aug 23, 2018
@sandersn sandersn deleted the getSymbolAtLocation-for-class-expr branch August 23, 2018 18:27
mheiber pushed a commit to mheiber/TypeScript that referenced this pull request Aug 23, 2018
* getSymbolAtLocation understands class expressions

Previously it did not.

* Update baselines
mheiber pushed a commit to mheiber/TypeScript that referenced this pull request Aug 23, 2018
* getSymbolAtLocation understands class expressions

Previously it did not.

* Update baselines
joeywatts pushed a commit to joeywatts/TypeScript that referenced this pull request Sep 25, 2018
* getSymbolAtLocation understands class expressions

Previously it did not.

* Update baselines
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.

API: how to get Symbol of anonymous class?
1 participant