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

Unused identifier fixes #9452

Merged
merged 20 commits into from
Jun 30, 2016
Merged

Unused identifier fixes #9452

merged 20 commits into from
Jun 30, 2016

Conversation

mhegazy
Copy link
Contributor

@mhegazy mhegazy commented Jun 30, 2016

Fixes #9402 and #9403

We defer checking function expressions and class expressions, and if we want to get the references marked correctly we need to do the reference validation after that is done.

This change refactors the unused local and parameter checking to use a list of deferred nodes to check later.

there are also some bug fixes that i ran into, like not reporting catch variable as unused, reporting unused type aliases, optional parameters, etc..

@DickvdBrink
Copy link
Contributor

@mhegazy This branch fixed my issue which I reported in the referenced PR :)
Thanks!

@mhegazy
Copy link
Contributor Author

mhegazy commented Jun 30, 2016

thanks @DickvdBrink for getting back on this. please let me know if you see other issues.

@vladima
Copy link
Contributor

vladima commented Jun 30, 2016

👍 one test pass is finished

mhegazy added 2 commits June 30, 2016 15:04
check for locals on for statments
only mark private properties
@mhegazy mhegazy merged commit 54b4bef into release-2.0 Jun 30, 2016
@mhegazy mhegazy deleted the unusedIdentifierFixes-3 branch June 30, 2016 23:12
@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.

4 participants