Skip to content

Minor cleanups in checkUnusedIdentifiers#28513

Merged
1 commit merged into
masterfrom
checkUnusedIdentifiers
Nov 17, 2018
Merged

Minor cleanups in checkUnusedIdentifiers#28513
1 commit merged into
masterfrom
checkUnusedIdentifiers

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Nov 14, 2018

  • Instead of checking for ambient nodes after taking them out of potentiallyUnusedIdentifiers, never add them there in the first place.
  • The cases for ImportType and others are disjoint, so give that its own function instead of checkUnusedTypeParameters.
  • Interface case is identical to other cases, so share code.

@ghost ghost assigned sheetalkamat Nov 17, 2018
@ghost ghost requested a review from sheetalkamat November 17, 2018 00:20
@ghost ghost merged commit da33c58 into master Nov 17, 2018
@ghost ghost deleted the checkUnusedIdentifiers branch November 17, 2018 00:58
@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.

1 participant