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. exports.default = function (_ref) {
  6.   var t = _ref.types;
  7.  
  8.   return {
  9.     visitor: {
  10.       ArrowFunctionExpression: function ArrowFunctionExpression(path, state) {
  11.         if (state.opts.spec) {
  12.           var node = path.node;
  13.  
  14.           if (node.shadow) return;
  15.  
  16.           node.shadow = { this: false };
  17.           node.type = "FunctionExpression";
  18.  
  19.           var boundThis = t.thisExpression();
  20.           boundThis._forceShadow = path;
  21.  
  22.           path.ensureBlock();
  23.           path.get("body").unshiftContainer("body", t.expressionStatement(t.callExpression(state.addHelper("newArrowCheck"), [t.thisExpression(), boundThis])));
  24.  
  25.           path.replaceWith(t.callExpression(t.memberExpression(node, t.identifier("bind")), [t.thisExpression()]));
  26.         } else {
  27.           path.arrowFunctionToShadowed();
  28.         }
  29.       }
  30.     }
  31.   };
  32. };
  33.  
  34. 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