BVB Source Codes

reactide Show index.js Source code

Return Download reactide: download index.js Source code - Download reactide Source code - Type:.js
  1. "use strict";
  2.  
  3. exports.__esModule = true;
  4.  
  5. var _getIterator2 = require("babel-runtime/core-js/get-iterator");
  6.  
  7. var _getIterator3 = _interopRequireDefault(_getIterator2);
  8.  
  9. exports.default = function () {
  10.   return {
  11.     visitor: _babelTraverse.visitors.merge([{
  12.       ArrowFunctionExpression: function ArrowFunctionExpression(path) {
  13.         var params = path.get("params");
  14.         for (var _iterator = params, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : (0, _getIterator3.default)(_iterator);;) {
  15.           var _ref;
  16.  
  17.           if (_isArray) {
  18.             if (_i >= _iterator.length) break;
  19.             _ref = _iterator[_i++];
  20.           } else {
  21.             _i = _iterator.next();
  22.             if (_i.done) break;
  23.             _ref = _i.value;
  24.           }
  25.  
  26.           var param = _ref;
  27.  
  28.           if (param.isRestElement() || param.isAssignmentPattern()) {
  29.             path.arrowFunctionToShadowed();
  30.             break;
  31.           }
  32.         }
  33.       }
  34.     }, destructuring.visitor, rest.visitor, def.visitor])
  35.   };
  36. };
  37.  
  38. var _babelTraverse = require("babel-traverse");
  39.  
  40. var _destructuring = require("./destructuring");
  41.  
  42. var destructuring = _interopRequireWildcard(_destructuring);
  43.  
  44. var _default = require("./default");
  45.  
  46. var def = _interopRequireWildcard(_default);
  47.  
  48. var _rest = require("./rest");
  49.  
  50. var rest = _interopRequireWildcard(_rest);
  51.  
  52. function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
  53.  
  54. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  55.  
  56. module.exports = exports["default"];
downloadindex.js Source code - Download reactide Source code
Related Source Codes/Software:
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
postal - 2017-06-11
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top