Closed cmstead closed 3 years ago
Lift a function expression from current use location, and create a function declaration using the parameters, body, and user supplied name
This is an action-type behavior
Key behaviors:
Accessible by the same means as other automated tools
Allows user to simply place cursor on function expression and perform the lift and name action
Must provide an opportunity for the user to choose the scope for declaration
Must provide user with an opportunity to name the function
Lifted arrow functions must be declared with a const, rather than being converted to a function declaration
Error conditions:
Shifted to function expression -- behavior complete.
https://github.com/cmstead/js-codeformer/releases/tag/v0.24.0
Lift a function expression from current use location, and create a function declaration using the parameters, body, and user supplied name
This is an action-type behavior
Key behaviors:
Accessible by the same means as other automated tools
Allows user to simply place cursor on function expression and perform the lift and name action
Must provide an opportunity for the user to choose the scope for declaration
Must provide user with an opportunity to name the function
Lifted arrow functions must be declared with a const, rather than being converted to a function declaration
Error conditions: