Add descriptions to transformation/transformers/es6/arrow-functions
This commit is contained in:
parent
74cf5ac552
commit
90a5b96480
@ -1,11 +1,26 @@
|
||||
/**
|
||||
* [Please add a description.]
|
||||
* Turn arrow functions into normal functions.
|
||||
*
|
||||
* @example
|
||||
*
|
||||
* **In**
|
||||
*
|
||||
* ```javascript
|
||||
* arr.map(x => x * x);
|
||||
* ```
|
||||
*
|
||||
* **Out**
|
||||
*
|
||||
* ```javascript
|
||||
* arr.map(function (x) {
|
||||
* return x * x;
|
||||
* });
|
||||
*/
|
||||
|
||||
export var visitor = {
|
||||
|
||||
/**
|
||||
* [Please add a description.]
|
||||
* Look for arrow functions and turn them into normal functions.
|
||||
*/
|
||||
|
||||
ArrowFunctionExpression(node) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user