UNPKG

859 BJavaScriptView Raw
1"use strict";
2
3exports.__esModule = true;
4
5exports.default = function (_ref) {
6 var t = _ref.types;
7
8 return {
9 inherits: require("babel-plugin-syntax-exponentiation-operator"),
10
11 visitor: (0, _babelHelperBuilderBinaryAssignmentOperatorVisitor2.default)({
12 operator: "**",
13
14 build: function build(left, right) {
15 return t.callExpression(t.memberExpression(t.identifier("Math"), t.identifier("pow")), [left, right]);
16 }
17 })
18 };
19};
20
21var _babelHelperBuilderBinaryAssignmentOperatorVisitor = require("babel-helper-builder-binary-assignment-operator-visitor");
22
23var _babelHelperBuilderBinaryAssignmentOperatorVisitor2 = _interopRequireDefault(_babelHelperBuilderBinaryAssignmentOperatorVisitor);
24
25function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
26
27module.exports = exports["default"];
\No newline at end of file