initial commit taken from gitlab.lrz.de

This commit is contained in:
privatereese
2018-08-24 18:09:42 +02:00
parent ae54ed4c48
commit fc05486403
28494 changed files with 2159823 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
# @babel/helper-builder-binary-assignment-operator-visitor
> Helper function to build binary assignment operator visitors
See our website [@babel/helper-builder-binary-assignment-operator-visitor](https://babeljs.io/docs/en/next/babel-helper-builder-binary-assignment-operator-visitor.html) for more information.
## Install
Using npm:
```sh
npm install --save-dev @babel/helper-builder-binary-assignment-operator-visitor
```
or using yarn:
```sh
yarn add @babel/helper-builder-binary-assignment-operator-visitor --dev
```

View File

@@ -0,0 +1,61 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _default;
function _helperExplodeAssignableExpression() {
const data = _interopRequireDefault(require("@babel/helper-explode-assignable-expression"));
_helperExplodeAssignableExpression = function () {
return data;
};
return data;
}
function t() {
const data = _interopRequireWildcard(require("@babel/types"));
t = function () {
return data;
};
return data;
}
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)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _default(opts) {
const {
build,
operator
} = opts;
return {
AssignmentExpression(path) {
const {
node,
scope
} = path;
if (node.operator !== operator + "=") return;
const nodes = [];
const exploded = (0, _helperExplodeAssignableExpression().default)(node.left, nodes, this, scope);
nodes.push(t().assignmentExpression("=", exploded.ref, build(exploded.uid, node.right)));
path.replaceWith(t().sequenceExpression(nodes));
},
BinaryExpression(path) {
const {
node
} = path;
if (node.operator === operator) {
path.replaceWith(build(node.left, node.right));
}
}
};
}

View File

@@ -0,0 +1,83 @@
{
"_args": [
[
"@babel/helper-builder-binary-assignment-operator-visitor@7.0.0-beta.54",
"/home/bernhard/freifunk-app/node_modules/@babel/plugin-transform-exponentiation-operator"
]
],
"_from": "@babel/helper-builder-binary-assignment-operator-visitor@7.0.0-beta.54",
"_id": "@babel/helper-builder-binary-assignment-operator-visitor@7.0.0-beta.54",
"_inCache": true,
"_installable": true,
"_location": "/@babel/helper-builder-binary-assignment-operator-visitor",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/helper-builder-binary-assignment-operator-visitor_7.0.0-beta.54_1531764030523_0.14763976990675776"
},
"_npmUser": {
"email": "hi@henryzoo.com",
"name": "hzoo"
},
"_phantomChildren": {},
"_requested": {
"name": "@babel/helper-builder-binary-assignment-operator-visitor",
"raw": "@babel/helper-builder-binary-assignment-operator-visitor@7.0.0-beta.54",
"rawSpec": "7.0.0-beta.54",
"scope": "@babel",
"spec": "7.0.0-beta.54",
"type": "version"
},
"_requiredBy": [
"/@babel/plugin-transform-exponentiation-operator"
],
"_resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.0.0-beta.54.tgz",
"_shasum": "d0a1967635b9eebcafdba80491917ee4981c12fa",
"_shrinkwrap": null,
"_spec": "@babel/helper-builder-binary-assignment-operator-visitor@7.0.0-beta.54",
"_where": "/home/bernhard/freifunk-app/node_modules/@babel/plugin-transform-exponentiation-operator",
"dependencies": {
"@babel/helper-explode-assignable-expression": "7.0.0-beta.54",
"@babel/types": "7.0.0-beta.54"
},
"description": "Helper function to build binary assignment operator visitors",
"devDependencies": {},
"directories": {},
"dist": {
"fileCount": 5,
"shasum": "d0a1967635b9eebcafdba80491917ee4981c12fa",
"tarball": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.0.0-beta.54.tgz",
"unpackedSize": 2779
},
"license": "MIT",
"main": "lib/index.js",
"maintainers": [
{
"name": "danez",
"email": "daniel@tschinder.de"
},
{
"name": "existentialism",
"email": "bng412@gmail.com"
},
{
"name": "hzoo",
"email": "hi@henryzoo.com"
},
{
"name": "loganfsmyth",
"email": "loganfsmyth@gmail.com"
},
{
"name": "xtuc",
"email": "contact@xtuc.fr"
}
],
"name": "@babel/helper-builder-binary-assignment-operator-visitor",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "https://github.com/babel/babel/tree/master/packages/babel-helper-builder-binary-assignment-operator-visitor"
},
"version": "7.0.0-beta.54"
}