1 | "use strict";
|
2 |
|
3 | exports.__esModule = true;
|
4 | exports.runtimeProperty = runtimeProperty;
|
5 | exports.isReference = isReference;
|
6 |
|
7 | var _babelTypes = require("babel-types");
|
8 |
|
9 |
|
10 | var t = _interopRequireWildcard(_babelTypes);
|
11 |
|
12 |
|
13 | 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)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
|
14 |
|
15 | function runtimeProperty(name) {
|
16 | return t.memberExpression(t.identifier("regeneratorRuntime"), t.identifier(name), false);
|
17 | } |
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 | function isReference(path) {
|
28 | return path.isReferenced() || path.parentPath.isAssignmentExpression({ left: path.node });
|
29 | } |
\ | No newline at end of file |