1 | "use strict";
|
2 |
|
3 | exports.__esModule = true;
|
4 |
|
5 | exports.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 |
|
21 | var _babelHelperBuilderBinaryAssignmentOperatorVisitor = require("babel-helper-builder-binary-assignment-operator-visitor");
|
22 |
|
23 | var _babelHelperBuilderBinaryAssignmentOperatorVisitor2 = _interopRequireDefault(_babelHelperBuilderBinaryAssignmentOperatorVisitor);
|
24 |
|
25 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
26 |
|
27 | module.exports = exports["default"]; |
\ | No newline at end of file |