-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify getWidenedTypeFromJSSpecialPropertyDeclarations (#25868)
* Split getWidenedTypeFromJSSpecialPropertyDeclaration 1. Handle this-property assignments 2. Handle other special property assignment I have only started simplifying [2]. * Split into two passes 1. Look for jsdoc 2. Look for type of initializers Both can be broken into their own functions. * Break into two functions * Move back to original function and single loop Then, convert the 2 extracted functions to reduce-style functions that take state and return the updated state. * Cleanup suggestions from review
- Loading branch information
Showing
1 changed file
with
86 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters