Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
797 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 |
|
---|
3 | Object.defineProperty(exports, "__esModule", {
|
---|
4 | value: true
|
---|
5 | });
|
---|
6 | exports.default = void 0;
|
---|
7 |
|
---|
8 | var _helperPluginUtils = require("@babel/helper-plugin-utils");
|
---|
9 |
|
---|
10 | var _helperBuilderBinaryAssignmentOperatorVisitor = require("@babel/helper-builder-binary-assignment-operator-visitor");
|
---|
11 |
|
---|
12 | var _core = require("@babel/core");
|
---|
13 |
|
---|
14 | var _default = (0, _helperPluginUtils.declare)(api => {
|
---|
15 | api.assertVersion(7);
|
---|
16 | return {
|
---|
17 | name: "transform-exponentiation-operator",
|
---|
18 | visitor: (0, _helperBuilderBinaryAssignmentOperatorVisitor.default)({
|
---|
19 | operator: "**",
|
---|
20 |
|
---|
21 | build(left, right) {
|
---|
22 | return _core.types.callExpression(_core.types.memberExpression(_core.types.identifier("Math"), _core.types.identifier("pow")), [left, right]);
|
---|
23 | }
|
---|
24 |
|
---|
25 | })
|
---|
26 | };
|
---|
27 | });
|
---|
28 |
|
---|
29 | exports.default = _default; |
---|
Note:
See
TracBrowser
for help on using the repository browser.