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

Remove members from getAccessibleSymbolChain walk #7532

Merged
merged 2 commits into from
Mar 17, 2016

Conversation

mhegazy
Copy link
Contributor

@mhegazy mhegazy commented Mar 16, 2016

Fixes #6642 and #4600

The symbolDisblayBuilder walks up the tree to see if a symbol is accessible by a given name at a given location. It inspects the symbol tables in each enclosing scope (akin to what resolveName does). Previously we considered members in a class or an interface to be in scope. this caused them to incorrectly shadow declarations with the same name. The fix is to remove that.

Most of the changes are to symbol baselines, the change impacts how symbol names are serialized for members. arguably now is better, though either ways the symbol names do not manifest to the user.

@RyanCavanaugh
Copy link
Member

Can you break apart the commits? GitHub is choking on it, naturally

@mhegazy
Copy link
Contributor Author

mhegazy commented Mar 16, 2016

updated to 2 commits.

@vladima
Copy link
Contributor

vladima commented Mar 17, 2016

👍

mhegazy added a commit that referenced this pull request Mar 17, 2016
Remove members from getAccessibleSymbolChain walk
@mhegazy mhegazy merged commit f0b3ff1 into master Mar 17, 2016
@mhegazy mhegazy deleted the declarationEmitFixes2 branch March 17, 2016 22:50
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
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.

tsc confused when "exposing" an enum
4 participants