Annotating transformed classes with #__PURE__ comment (#6209)
This commit is contained in:
parent
c4f6a7a06f
commit
c47258d68c
@ -1,4 +1,6 @@
|
|||||||
var Foo = function (_Bar) {
|
var Foo =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Bar) {
|
||||||
babelHelpers.inherits(Foo, _Bar);
|
babelHelpers.inherits(Foo, _Bar);
|
||||||
|
|
||||||
function Foo(options) {
|
function Foo(options) {
|
||||||
|
|||||||
@ -54,7 +54,9 @@ function _asyncToGenerator(fn) { return function () { var _this = this, _argumen
|
|||||||
|
|
||||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||||
|
|
||||||
var Foo = function () {
|
var Foo =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
function Foo() {
|
function Foo() {
|
||||||
_classCallCheck(this, Foo);
|
_classCallCheck(this, Foo);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
var Test = function () {
|
var Test =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
function Test() {
|
function Test() {
|
||||||
babelHelpers.classCallCheck(this, Test);
|
babelHelpers.classCallCheck(this, Test);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
"column": 10
|
"column": 10
|
||||||
},
|
},
|
||||||
"generated": {
|
"generated": {
|
||||||
"line": 9,
|
"line": 11,
|
||||||
"column": 15
|
"column": 15
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
var Foo = function (_Bar) {
|
var Foo =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Bar) {
|
||||||
babelHelpers.inherits(Foo, _Bar);
|
babelHelpers.inherits(Foo, _Bar);
|
||||||
|
|
||||||
function Foo(...args) {
|
function Foo(...args) {
|
||||||
|
|||||||
@ -1,6 +1,8 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var Child = function (_Parent) {
|
var Child =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Parent) {
|
||||||
babelHelpers.inherits(Child, _Parent);
|
babelHelpers.inherits(Child, _Parent);
|
||||||
|
|
||||||
function Child() {
|
function Child() {
|
||||||
|
|||||||
@ -1,7 +1,9 @@
|
|||||||
export default (param => {
|
export default (param => {
|
||||||
var _class, _temp;
|
var _class, _temp;
|
||||||
|
|
||||||
return _temp = _class = function () {
|
return _temp = _class =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
function App() {
|
function App() {
|
||||||
babelHelpers.classCallCheck(this, App);
|
babelHelpers.classCallCheck(this, App);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,9 @@
|
|||||||
function withContext(ComposedComponent) {
|
function withContext(ComposedComponent) {
|
||||||
var _class, _temp;
|
var _class, _temp;
|
||||||
|
|
||||||
return _temp = _class = function (_Component) {
|
return _temp = _class =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Component) {
|
||||||
babelHelpers.inherits(WithContext, _Component);
|
babelHelpers.inherits(WithContext, _Component);
|
||||||
|
|
||||||
function WithContext() {
|
function WithContext() {
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
var A = function () {
|
var A =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
function A() {
|
function A() {
|
||||||
babelHelpers.classCallCheck(this, A);
|
babelHelpers.classCallCheck(this, A);
|
||||||
}
|
}
|
||||||
@ -12,7 +14,9 @@ var A = function () {
|
|||||||
return A;
|
return A;
|
||||||
}();
|
}();
|
||||||
|
|
||||||
var B = function (_A) {
|
var B =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_A) {
|
||||||
babelHelpers.inherits(B, _A);
|
babelHelpers.inherits(B, _A);
|
||||||
|
|
||||||
function B(...args) {
|
function B(...args) {
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
var Foo = function (_Bar) {
|
var Foo =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Bar) {
|
||||||
babelHelpers.inherits(Foo, _Bar);
|
babelHelpers.inherits(Foo, _Bar);
|
||||||
|
|
||||||
function Foo() {
|
function Foo() {
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
var Foo = function (_Bar) {
|
var Foo =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Bar) {
|
||||||
babelHelpers.inherits(Foo, _Bar);
|
babelHelpers.inherits(Foo, _Bar);
|
||||||
|
|
||||||
function Foo() {
|
function Foo() {
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
var Foo = function (_Bar) {
|
var Foo =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Bar) {
|
||||||
babelHelpers.inherits(Foo, _Bar);
|
babelHelpers.inherits(Foo, _Bar);
|
||||||
|
|
||||||
function Foo(...args) {
|
function Foo(...args) {
|
||||||
|
|||||||
@ -1,6 +1,8 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var Child = function (_Parent) {
|
var Child =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Parent) {
|
||||||
babelHelpers.inherits(Child, _Parent);
|
babelHelpers.inherits(Child, _Parent);
|
||||||
|
|
||||||
function Child() {
|
function Child() {
|
||||||
|
|||||||
@ -1,7 +1,9 @@
|
|||||||
export default (param => {
|
export default (param => {
|
||||||
var _class, _temp;
|
var _class, _temp;
|
||||||
|
|
||||||
return _temp = _class = function () {
|
return _temp = _class =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
function App() {
|
function App() {
|
||||||
babelHelpers.classCallCheck(this, App);
|
babelHelpers.classCallCheck(this, App);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
var Foo = function (_Bar) {
|
var Foo =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Bar) {
|
||||||
babelHelpers.inherits(Foo, _Bar);
|
babelHelpers.inherits(Foo, _Bar);
|
||||||
|
|
||||||
function Foo() {
|
function Foo() {
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
var Foo = function (_Bar) {
|
var Foo =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Bar) {
|
||||||
babelHelpers.inherits(Foo, _Bar);
|
babelHelpers.inherits(Foo, _Bar);
|
||||||
|
|
||||||
function Foo() {
|
function Foo() {
|
||||||
|
|||||||
@ -15,7 +15,9 @@ var Test = function Test() {
|
|||||||
|
|
||||||
_classCallCheck(this, Test);
|
_classCallCheck(this, Test);
|
||||||
|
|
||||||
var Other = function (_Test) {
|
var Other =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Test) {
|
||||||
_inherits(Other, _Test);
|
_inherits(Other, _Test);
|
||||||
|
|
||||||
function Other() {
|
function Other() {
|
||||||
|
|||||||
@ -1,7 +1,9 @@
|
|||||||
function withContext(ComposedComponent) {
|
function withContext(ComposedComponent) {
|
||||||
var _class, _temp;
|
var _class, _temp;
|
||||||
|
|
||||||
return _temp = _class = function (_Component) {
|
return _temp = _class =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Component) {
|
||||||
babelHelpers.inherits(WithContext, _Component);
|
babelHelpers.inherits(WithContext, _Component);
|
||||||
|
|
||||||
function WithContext() {
|
function WithContext() {
|
||||||
|
|||||||
@ -2,6 +2,8 @@ import LooseTransformer from "./loose";
|
|||||||
import VanillaTransformer from "./vanilla";
|
import VanillaTransformer from "./vanilla";
|
||||||
import nameFunction from "babel-helper-function-name";
|
import nameFunction from "babel-helper-function-name";
|
||||||
|
|
||||||
|
const PURE_ANNOTATION = "#__PURE__";
|
||||||
|
|
||||||
export default function({ types: t }) {
|
export default function({ types: t }) {
|
||||||
// todo: investigate traversal requeueing
|
// todo: investigate traversal requeueing
|
||||||
const VISITED = Symbol();
|
const VISITED = Symbol();
|
||||||
@ -51,12 +53,12 @@ export default function({ types: t }) {
|
|||||||
|
|
||||||
path.replaceWith(new Constructor(path, state.file).run());
|
path.replaceWith(new Constructor(path, state.file).run());
|
||||||
|
|
||||||
if (
|
if (path.isCallExpression()) {
|
||||||
path.isCallExpression() &&
|
path.addComment("leading", PURE_ANNOTATION);
|
||||||
path.get("callee").isArrowFunctionExpression()
|
if (path.get("callee").isArrowFunctionExpression()) {
|
||||||
) {
|
|
||||||
path.get("callee").arrowFunctionToExpression();
|
path.get("callee").arrowFunctionToExpression();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@ -2,7 +2,9 @@ let A = function A() {
|
|||||||
console.log('a');
|
console.log('a');
|
||||||
};
|
};
|
||||||
|
|
||||||
let B = function () {
|
let B =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
function B() {}
|
function B() {}
|
||||||
|
|
||||||
var _proto = B.prototype;
|
var _proto = B.prototype;
|
||||||
|
|||||||
@ -2,7 +2,9 @@ function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.crea
|
|||||||
|
|
||||||
let B = function B() {};
|
let B = function B() {};
|
||||||
|
|
||||||
let A = function (_B) {
|
let A =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_B) {
|
||||||
_inheritsLoose(A, _B);
|
_inheritsLoose(A, _B);
|
||||||
|
|
||||||
function A(track) {
|
function A(track) {
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
var Test = function (_Foo) {
|
var Test =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Foo) {
|
||||||
babelHelpers.inheritsLoose(Test, _Foo);
|
babelHelpers.inheritsLoose(Test, _Foo);
|
||||||
|
|
||||||
function Test() {
|
function Test() {
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
var Test = function (_Foo) {
|
var Test =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Foo) {
|
||||||
babelHelpers.inheritsLoose(Test, _Foo);
|
babelHelpers.inheritsLoose(Test, _Foo);
|
||||||
|
|
||||||
function Test() {
|
function Test() {
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
var Test = function (_Foo) {
|
var Test =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Foo) {
|
||||||
babelHelpers.inheritsLoose(Test, _Foo);
|
babelHelpers.inheritsLoose(Test, _Foo);
|
||||||
|
|
||||||
function Test() {
|
function Test() {
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
var x = function () {
|
var x =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
var _proto = x.prototype;
|
var _proto = x.prototype;
|
||||||
|
|
||||||
_proto.f = function f() {
|
_proto.f = function f() {
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
var Child = function (_Base) {
|
var Child =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Base) {
|
||||||
babelHelpers.inheritsLoose(Child, _Base);
|
babelHelpers.inheritsLoose(Child, _Base);
|
||||||
|
|
||||||
function Child() {
|
function Child() {
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
var Child = function (_Base) {
|
var Child =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Base) {
|
||||||
babelHelpers.inheritsLoose(Child, _Base);
|
babelHelpers.inheritsLoose(Child, _Base);
|
||||||
|
|
||||||
function Child() {
|
function Child() {
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
var Foo = function () {
|
var Foo =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
function Foo() {}
|
function Foo() {}
|
||||||
|
|
||||||
var _proto = Foo.prototype;
|
var _proto = Foo.prototype;
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
// @flow
|
// @flow
|
||||||
var C = function () {
|
var C =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
function C() {}
|
function C() {}
|
||||||
|
|
||||||
var _proto = C.prototype;
|
var _proto = C.prototype;
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
var Test = function () {
|
var Test =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
function Test() {}
|
function Test() {}
|
||||||
|
|
||||||
var _proto = Test.prototype;
|
var _proto = Test.prototype;
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
var BaseController = function (_Chaplin$Controller) {
|
var BaseController =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Chaplin$Controller) {
|
||||||
babelHelpers.inheritsLoose(BaseController, _Chaplin$Controller);
|
babelHelpers.inheritsLoose(BaseController, _Chaplin$Controller);
|
||||||
|
|
||||||
function BaseController() {
|
function BaseController() {
|
||||||
@ -8,7 +10,9 @@ var BaseController = function (_Chaplin$Controller) {
|
|||||||
return BaseController;
|
return BaseController;
|
||||||
}(Chaplin.Controller);
|
}(Chaplin.Controller);
|
||||||
|
|
||||||
var BaseController2 = function (_Chaplin$Controller$A) {
|
var BaseController2 =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Chaplin$Controller$A) {
|
||||||
babelHelpers.inheritsLoose(BaseController2, _Chaplin$Controller$A);
|
babelHelpers.inheritsLoose(BaseController2, _Chaplin$Controller$A);
|
||||||
|
|
||||||
function BaseController2() {
|
function BaseController2() {
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
var Test = function (_Foo) {
|
var Test =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Foo) {
|
||||||
babelHelpers.inheritsLoose(Test, _Foo);
|
babelHelpers.inheritsLoose(Test, _Foo);
|
||||||
|
|
||||||
function Test() {
|
function Test() {
|
||||||
|
|||||||
@ -16,7 +16,9 @@ var _binarySerializer = require("./helpers/binary-serializer");
|
|||||||
var _binarySerializer2 = babelHelpers.interopRequireDefault(_binarySerializer);
|
var _binarySerializer2 = babelHelpers.interopRequireDefault(_binarySerializer);
|
||||||
|
|
||||||
// import ...
|
// import ...
|
||||||
var Connection = function (_EventEmitter) {
|
var Connection =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_EventEmitter) {
|
||||||
babelHelpers.inherits(Connection, _EventEmitter);
|
babelHelpers.inherits(Connection, _EventEmitter);
|
||||||
|
|
||||||
function Connection(endpoint, joinKey, joinData, roomId) {
|
function Connection(endpoint, joinKey, joinData, roomId) {
|
||||||
|
|||||||
@ -9,7 +9,9 @@ var _BaseFoo2 = require("./BaseFoo");
|
|||||||
|
|
||||||
var _BaseFoo3 = babelHelpers.interopRequireDefault(_BaseFoo2);
|
var _BaseFoo3 = babelHelpers.interopRequireDefault(_BaseFoo2);
|
||||||
|
|
||||||
var SubFoo = function (_BaseFoo) {
|
var SubFoo =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_BaseFoo) {
|
||||||
babelHelpers.inherits(SubFoo, _BaseFoo);
|
babelHelpers.inherits(SubFoo, _BaseFoo);
|
||||||
|
|
||||||
function SubFoo() {
|
function SubFoo() {
|
||||||
|
|||||||
@ -9,7 +9,9 @@ var _react = require("react");
|
|||||||
|
|
||||||
var _react2 = babelHelpers.interopRequireDefault(_react);
|
var _react2 = babelHelpers.interopRequireDefault(_react);
|
||||||
|
|
||||||
var RandomComponent = function (_Component) {
|
var RandomComponent =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Component) {
|
||||||
babelHelpers.inherits(RandomComponent, _Component);
|
babelHelpers.inherits(RandomComponent, _Component);
|
||||||
|
|
||||||
function RandomComponent() {
|
function RandomComponent() {
|
||||||
|
|||||||
@ -8,7 +8,9 @@ var b = function b() {
|
|||||||
babelHelpers.classCallCheck(this, b);
|
babelHelpers.classCallCheck(this, b);
|
||||||
};
|
};
|
||||||
|
|
||||||
var a1 = function (_b) {
|
var a1 =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_b) {
|
||||||
babelHelpers.inherits(a1, _b);
|
babelHelpers.inherits(a1, _b);
|
||||||
|
|
||||||
function a1() {
|
function a1() {
|
||||||
@ -27,7 +29,9 @@ var a1 = function (_b) {
|
|||||||
return a1;
|
return a1;
|
||||||
}(b);
|
}(b);
|
||||||
|
|
||||||
var a2 = function (_b2) {
|
var a2 =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_b2) {
|
||||||
babelHelpers.inherits(a2, _b2);
|
babelHelpers.inherits(a2, _b2);
|
||||||
|
|
||||||
function a2() {
|
function a2() {
|
||||||
|
|||||||
@ -1,6 +1,8 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var A = function (_B) {
|
var A =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_B) {
|
||||||
babelHelpers.inherits(A, _B);
|
babelHelpers.inherits(A, _B);
|
||||||
|
|
||||||
function A() {
|
function A() {
|
||||||
|
|||||||
@ -1,7 +1,9 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var x = {
|
var x = {
|
||||||
Foo: function (_Foo) {
|
Foo:
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Foo) {
|
||||||
babelHelpers.inherits(_class, _Foo);
|
babelHelpers.inherits(_class, _Foo);
|
||||||
|
|
||||||
function _class() {
|
function _class() {
|
||||||
|
|||||||
@ -4,7 +4,9 @@ var A = function A() {
|
|||||||
babelHelpers.classCallCheck(this, A);
|
babelHelpers.classCallCheck(this, A);
|
||||||
};
|
};
|
||||||
|
|
||||||
var B = function (_A) {
|
var B =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_A) {
|
||||||
babelHelpers.inherits(B, _A);
|
babelHelpers.inherits(B, _A);
|
||||||
|
|
||||||
function B() {
|
function B() {
|
||||||
|
|||||||
@ -1,6 +1,8 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var A = function () {
|
var A =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
function A() {
|
function A() {
|
||||||
babelHelpers.classCallCheck(this, A);
|
babelHelpers.classCallCheck(this, A);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,7 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|||||||
});
|
});
|
||||||
|
|
||||||
function _default() {
|
function _default() {
|
||||||
return function () {
|
return (
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
function Select() {
|
function Select() {
|
||||||
babelHelpers.classCallCheck(this, Select);
|
babelHelpers.classCallCheck(this, Select);
|
||||||
}
|
}
|
||||||
@ -15,7 +17,8 @@ function _default() {
|
|||||||
value: function query(_query) {}
|
value: function query(_query) {}
|
||||||
}]);
|
}]);
|
||||||
return Select;
|
return Select;
|
||||||
}();
|
}()
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.default = _default;
|
exports.default = _default;
|
||||||
|
|||||||
@ -1,6 +1,8 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var Example = function () {
|
var Example =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
function Example() {}
|
function Example() {}
|
||||||
|
|
||||||
var _proto = Example.prototype;
|
var _proto = Example.prototype;
|
||||||
|
|||||||
@ -1,6 +1,8 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var Foo = function () {
|
var Foo =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
function Foo(val) {
|
function Foo(val) {
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
this._val = val;
|
this._val = val;
|
||||||
|
|||||||
@ -12,7 +12,9 @@ var B = function B() {
|
|||||||
_classCallCheck(this, B);
|
_classCallCheck(this, B);
|
||||||
};
|
};
|
||||||
|
|
||||||
var A = function (_B) {
|
var A =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_B) {
|
||||||
_inherits(A, _B);
|
_inherits(A, _B);
|
||||||
|
|
||||||
function A(track) {
|
function A(track) {
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
var Test = function (_Foo) {
|
var Test =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Foo) {
|
||||||
babelHelpers.inherits(Test, _Foo);
|
babelHelpers.inherits(Test, _Foo);
|
||||||
|
|
||||||
function Test() {
|
function Test() {
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
var Test = function (_Foo) {
|
var Test =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Foo) {
|
||||||
babelHelpers.inherits(Test, _Foo);
|
babelHelpers.inherits(Test, _Foo);
|
||||||
|
|
||||||
function Test() {
|
function Test() {
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
var Test = function (_Foo) {
|
var Test =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Foo) {
|
||||||
babelHelpers.inherits(Test, _Foo);
|
babelHelpers.inherits(Test, _Foo);
|
||||||
|
|
||||||
function Test() {
|
function Test() {
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
var Foo = function () {
|
var Foo =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
function Foo() {
|
function Foo() {
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,7 +3,9 @@ var Test = function Test() {
|
|||||||
this.state = "test";
|
this.state = "test";
|
||||||
};
|
};
|
||||||
|
|
||||||
var Foo = function (_Bar) {
|
var Foo =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Bar) {
|
||||||
babelHelpers.inherits(Foo, _Bar);
|
babelHelpers.inherits(Foo, _Bar);
|
||||||
|
|
||||||
function Foo() {
|
function Foo() {
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
var Foo = function (_Bar) {
|
var Foo =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Bar) {
|
||||||
babelHelpers.inherits(Foo, _Bar);
|
babelHelpers.inherits(Foo, _Bar);
|
||||||
|
|
||||||
function Foo() {
|
function Foo() {
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
var Child = function (_Base) {
|
var Child =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Base) {
|
||||||
babelHelpers.inherits(Child, _Base);
|
babelHelpers.inherits(Child, _Base);
|
||||||
|
|
||||||
function Child() {
|
function Child() {
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
var Child = function (_Base) {
|
var Child =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Base) {
|
||||||
babelHelpers.inherits(Child, _Base);
|
babelHelpers.inherits(Child, _Base);
|
||||||
|
|
||||||
function Child() {
|
function Child() {
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
var _class = function (_A) {
|
var _class =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_A) {
|
||||||
babelHelpers.inherits(_class, _A);
|
babelHelpers.inherits(_class, _A);
|
||||||
|
|
||||||
function _class() {
|
function _class() {
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
var Test = function () {
|
var Test =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
function Test() {
|
function Test() {
|
||||||
babelHelpers.classCallCheck(this, Test);
|
babelHelpers.classCallCheck(this, Test);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
var Test = function () {
|
var Test =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
function Test() {
|
function Test() {
|
||||||
babelHelpers.classCallCheck(this, Test);
|
babelHelpers.classCallCheck(this, Test);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
var Test = function () {
|
var Test =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
function Test() {
|
function Test() {
|
||||||
babelHelpers.classCallCheck(this, Test);
|
babelHelpers.classCallCheck(this, Test);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
var Test = function () {
|
var Test =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
function Test() {
|
function Test() {
|
||||||
babelHelpers.classCallCheck(this, Test);
|
babelHelpers.classCallCheck(this, Test);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
// @flow
|
// @flow
|
||||||
var C = function () {
|
var C =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
function C() {
|
function C() {
|
||||||
babelHelpers.classCallCheck(this, C);
|
babelHelpers.classCallCheck(this, C);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,9 @@
|
|||||||
|
|
||||||
var _a2 = require("./a");
|
var _a2 = require("./a");
|
||||||
|
|
||||||
var Foo = function () {
|
var Foo =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
function Foo() {
|
function Foo() {
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
// #1649
|
// #1649
|
||||||
var Foo = function () {
|
var Foo =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
function Foo() {
|
function Foo() {
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,7 +8,9 @@ var BaseView = function BaseView() {
|
|||||||
this.autoRender = true;
|
this.autoRender = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
var BaseView = function () {
|
var BaseView =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
function BaseView() {
|
function BaseView() {
|
||||||
babelHelpers.classCallCheck(this, BaseView);
|
babelHelpers.classCallCheck(this, BaseView);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
var A = function () {
|
var A =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
function A() {
|
function A() {
|
||||||
babelHelpers.classCallCheck(this, A);
|
babelHelpers.classCallCheck(this, A);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
var TestEmpty = function (_ref) {
|
var TestEmpty =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_ref) {
|
||||||
babelHelpers.inherits(TestEmpty, _ref);
|
babelHelpers.inherits(TestEmpty, _ref);
|
||||||
|
|
||||||
function TestEmpty() {
|
function TestEmpty() {
|
||||||
@ -7,7 +9,9 @@ var TestEmpty = function (_ref) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return TestEmpty;
|
return TestEmpty;
|
||||||
}(function () {
|
}(
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
function _class() {
|
function _class() {
|
||||||
babelHelpers.classCallCheck(this, _class);
|
babelHelpers.classCallCheck(this, _class);
|
||||||
}
|
}
|
||||||
@ -15,7 +19,9 @@ var TestEmpty = function (_ref) {
|
|||||||
return _class;
|
return _class;
|
||||||
}());
|
}());
|
||||||
|
|
||||||
var TestConstructorOnly = function (_ref2) {
|
var TestConstructorOnly =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_ref2) {
|
||||||
babelHelpers.inherits(TestConstructorOnly, _ref2);
|
babelHelpers.inherits(TestConstructorOnly, _ref2);
|
||||||
|
|
||||||
function TestConstructorOnly() {
|
function TestConstructorOnly() {
|
||||||
@ -24,7 +30,9 @@ var TestConstructorOnly = function (_ref2) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return TestConstructorOnly;
|
return TestConstructorOnly;
|
||||||
}(function () {
|
}(
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
function _class2() {
|
function _class2() {
|
||||||
babelHelpers.classCallCheck(this, _class2);
|
babelHelpers.classCallCheck(this, _class2);
|
||||||
}
|
}
|
||||||
@ -32,7 +40,9 @@ var TestConstructorOnly = function (_ref2) {
|
|||||||
return _class2;
|
return _class2;
|
||||||
}());
|
}());
|
||||||
|
|
||||||
var TestMethodOnly = function (_ref3) {
|
var TestMethodOnly =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_ref3) {
|
||||||
babelHelpers.inherits(TestMethodOnly, _ref3);
|
babelHelpers.inherits(TestMethodOnly, _ref3);
|
||||||
|
|
||||||
function TestMethodOnly() {
|
function TestMethodOnly() {
|
||||||
@ -41,7 +51,9 @@ var TestMethodOnly = function (_ref3) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return TestMethodOnly;
|
return TestMethodOnly;
|
||||||
}(function () {
|
}(
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
function _class3() {
|
function _class3() {
|
||||||
babelHelpers.classCallCheck(this, _class3);
|
babelHelpers.classCallCheck(this, _class3);
|
||||||
}
|
}
|
||||||
@ -53,7 +65,9 @@ var TestMethodOnly = function (_ref3) {
|
|||||||
return _class3;
|
return _class3;
|
||||||
}());
|
}());
|
||||||
|
|
||||||
var TestConstructorAndMethod = function (_ref4) {
|
var TestConstructorAndMethod =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_ref4) {
|
||||||
babelHelpers.inherits(TestConstructorAndMethod, _ref4);
|
babelHelpers.inherits(TestConstructorAndMethod, _ref4);
|
||||||
|
|
||||||
function TestConstructorAndMethod() {
|
function TestConstructorAndMethod() {
|
||||||
@ -62,7 +76,9 @@ var TestConstructorAndMethod = function (_ref4) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return TestConstructorAndMethod;
|
return TestConstructorAndMethod;
|
||||||
}(function () {
|
}(
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
function _class4() {
|
function _class4() {
|
||||||
babelHelpers.classCallCheck(this, _class4);
|
babelHelpers.classCallCheck(this, _class4);
|
||||||
}
|
}
|
||||||
@ -74,7 +90,9 @@ var TestConstructorAndMethod = function (_ref4) {
|
|||||||
return _class4;
|
return _class4;
|
||||||
}());
|
}());
|
||||||
|
|
||||||
var TestMultipleMethods = function (_ref5) {
|
var TestMultipleMethods =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_ref5) {
|
||||||
babelHelpers.inherits(TestMultipleMethods, _ref5);
|
babelHelpers.inherits(TestMultipleMethods, _ref5);
|
||||||
|
|
||||||
function TestMultipleMethods() {
|
function TestMultipleMethods() {
|
||||||
@ -83,7 +101,9 @@ var TestMultipleMethods = function (_ref5) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return TestMultipleMethods;
|
return TestMultipleMethods;
|
||||||
}(function () {
|
}(
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
function _class5() {
|
function _class5() {
|
||||||
babelHelpers.classCallCheck(this, _class5);
|
babelHelpers.classCallCheck(this, _class5);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
var BaseController = function (_Chaplin$Controller) {
|
var BaseController =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Chaplin$Controller) {
|
||||||
babelHelpers.inherits(BaseController, _Chaplin$Controller);
|
babelHelpers.inherits(BaseController, _Chaplin$Controller);
|
||||||
|
|
||||||
function BaseController() {
|
function BaseController() {
|
||||||
@ -9,7 +11,9 @@ var BaseController = function (_Chaplin$Controller) {
|
|||||||
return BaseController;
|
return BaseController;
|
||||||
}(Chaplin.Controller);
|
}(Chaplin.Controller);
|
||||||
|
|
||||||
var BaseController2 = function (_Chaplin$Controller$A) {
|
var BaseController2 =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Chaplin$Controller$A) {
|
||||||
babelHelpers.inherits(BaseController2, _Chaplin$Controller$A);
|
babelHelpers.inherits(BaseController2, _Chaplin$Controller$A);
|
||||||
|
|
||||||
function BaseController2() {
|
function BaseController2() {
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
var Test = function (_Foo) {
|
var Test =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Foo) {
|
||||||
babelHelpers.inherits(Test, _Foo);
|
babelHelpers.inherits(Test, _Foo);
|
||||||
|
|
||||||
function Test() {
|
function Test() {
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
var Foo = function (_Bar) {
|
var Foo =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Bar) {
|
||||||
babelHelpers.inherits(Foo, _Bar);
|
babelHelpers.inherits(Foo, _Bar);
|
||||||
|
|
||||||
function Foo() {
|
function Foo() {
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
var Foo = function (_Bar) {
|
var Foo =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Bar) {
|
||||||
babelHelpers.inherits(Foo, _Bar);
|
babelHelpers.inherits(Foo, _Bar);
|
||||||
|
|
||||||
function Foo() {
|
function Foo() {
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
let Foo = function () {
|
let Foo =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
function Foo() {
|
function Foo() {
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -9,7 +9,9 @@ var _last2 = require("lodash/last");
|
|||||||
|
|
||||||
var _last3 = babelHelpers.interopRequireDefault(_last2);
|
var _last3 = babelHelpers.interopRequireDefault(_last2);
|
||||||
|
|
||||||
let Container = function () {
|
let Container =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
function Container() {
|
function Container() {
|
||||||
babelHelpers.classCallCheck(this, Container);
|
babelHelpers.classCallCheck(this, Container);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,7 +7,9 @@ exports.default = void 0;
|
|||||||
|
|
||||||
var _store = require("./store");
|
var _store = require("./store");
|
||||||
|
|
||||||
let Login = function (_React$Component) {
|
let Login =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_React$Component) {
|
||||||
babelHelpers.inherits(Login, _React$Component);
|
babelHelpers.inherits(Login, _React$Component);
|
||||||
|
|
||||||
function Login() {
|
function Login() {
|
||||||
|
|||||||
@ -4,7 +4,9 @@ var _events2 = require("events");
|
|||||||
|
|
||||||
var _events3 = babelHelpers.interopRequireDefault(_events2);
|
var _events3 = babelHelpers.interopRequireDefault(_events2);
|
||||||
|
|
||||||
let Template = function () {
|
let Template =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
function Template() {
|
function Template() {
|
||||||
babelHelpers.classCallCheck(this, Template);
|
babelHelpers.classCallCheck(this, Template);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,8 @@
|
|||||||
function broken(x) {
|
function broken(x) {
|
||||||
if (true) {
|
if (true) {
|
||||||
var Foo = function (_Bar) {
|
var Foo =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Bar) {
|
||||||
babelHelpers.inherits(Foo, _Bar);
|
babelHelpers.inherits(Foo, _Bar);
|
||||||
|
|
||||||
function Foo() {
|
function Foo() {
|
||||||
|
|||||||
@ -21,7 +21,9 @@ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) ===
|
|||||||
|
|
||||||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||||||
|
|
||||||
var App = function (_Component) {
|
var App =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Component) {
|
||||||
_inherits(App, _Component);
|
_inherits(App, _Component);
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
|
|||||||
@ -1,7 +1,9 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
// @flow
|
// @flow
|
||||||
var C = function () {
|
var C =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
function C() {}
|
function C() {}
|
||||||
|
|
||||||
var _proto = C.prototype;
|
var _proto = C.prototype;
|
||||||
|
|||||||
@ -1,7 +1,9 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
// @flow
|
// @flow
|
||||||
var C = function () {
|
var C =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
function C() {
|
function C() {
|
||||||
babelHelpers.classCallCheck(this, C);
|
babelHelpers.classCallCheck(this, C);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,8 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var C = function () {
|
var C =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
function C() {}
|
function C() {}
|
||||||
|
|
||||||
var _proto = C.prototype;
|
var _proto = C.prototype;
|
||||||
|
|||||||
@ -1,6 +1,8 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var C = function () {
|
var C =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
function C() {
|
function C() {
|
||||||
babelHelpers.classCallCheck(this, C);
|
babelHelpers.classCallCheck(this, C);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,7 +6,9 @@ function _one() {}
|
|||||||
|
|
||||||
function _two() {}
|
function _two() {}
|
||||||
|
|
||||||
let Test1 = function () {
|
let Test1 =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
function Test1() {
|
function Test1() {
|
||||||
_classCallCheck(this, Test1);
|
_classCallCheck(this, Test1);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,9 @@ import _classCallCheck from "babel-runtime/helpers/builtin/es6/classCallCheck";
|
|||||||
import _possibleConstructorReturn from "babel-runtime/helpers/builtin/es6/possibleConstructorReturn";
|
import _possibleConstructorReturn from "babel-runtime/helpers/builtin/es6/possibleConstructorReturn";
|
||||||
import _inherits from "babel-runtime/helpers/builtin/es6/inherits";
|
import _inherits from "babel-runtime/helpers/builtin/es6/inherits";
|
||||||
|
|
||||||
let Foo = function (_Bar) {
|
let Foo =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Bar) {
|
||||||
_inherits(Foo, _Bar);
|
_inherits(Foo, _Bar);
|
||||||
|
|
||||||
function Foo() {
|
function Foo() {
|
||||||
|
|||||||
@ -2,7 +2,9 @@ import _classCallCheck from "babel-runtime/helpers/builtin/classCallCheck";
|
|||||||
import _possibleConstructorReturn from "babel-runtime/helpers/builtin/possibleConstructorReturn";
|
import _possibleConstructorReturn from "babel-runtime/helpers/builtin/possibleConstructorReturn";
|
||||||
import _inherits from "babel-runtime/helpers/builtin/inherits";
|
import _inherits from "babel-runtime/helpers/builtin/inherits";
|
||||||
|
|
||||||
let Foo = function (_Bar) {
|
let Foo =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Bar) {
|
||||||
_inherits(Foo, _Bar);
|
_inherits(Foo, _Bar);
|
||||||
|
|
||||||
function Foo() {
|
function Foo() {
|
||||||
|
|||||||
@ -3,7 +3,9 @@ import _classCallCheck from "babel-runtime/helpers/es6/classCallCheck";
|
|||||||
import _possibleConstructorReturn from "babel-runtime/helpers/es6/possibleConstructorReturn";
|
import _possibleConstructorReturn from "babel-runtime/helpers/es6/possibleConstructorReturn";
|
||||||
import _inherits from "babel-runtime/helpers/es6/inherits";
|
import _inherits from "babel-runtime/helpers/es6/inherits";
|
||||||
|
|
||||||
let Foo = function (_Bar) {
|
let Foo =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_Bar) {
|
||||||
_inherits(Foo, _Bar);
|
_inherits(Foo, _Bar);
|
||||||
|
|
||||||
function Foo() {
|
function Foo() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user