Add descriptions to transformation/transformers/es6/arrow-functions

This commit is contained in:
James Kyle 2015-07-11 12:07:40 -07:00
parent 74cf5ac552
commit 90a5b96480

View File

@ -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) {