Skip to content

Commit

Permalink
Add class /*@__PURE__*/ annotations to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bisubus authored and adrianheine committed Oct 13, 2018
1 parent 8e87c35 commit 7e7e9e7
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 50 deletions.
2 changes: 1 addition & 1 deletion test/samples/block-scoping.js
Expand Up @@ -313,7 +313,7 @@ module.exports = [
}`,

output: `
var bar = (function () {
var bar = /*@__PURE__*/(function () {
function foo () {}
return foo;
Expand Down
46 changes: 23 additions & 23 deletions test/samples/classes-no-named-function-expressions.js
Expand Up @@ -123,7 +123,7 @@ module.exports = [
}`,

output: `
var Foo = (function (Bar) {
var Foo = /*@__PURE__*/(function (Bar) {
function Foo () {
Bar.apply(this, arguments);
}
Expand Down Expand Up @@ -157,7 +157,7 @@ module.exports = [
}`,

output: `
var Foo = (function (Bar) {
var Foo = /*@__PURE__*/(function (Bar) {
function Foo ( x ) {
Bar.call( this, x );
this.y = 'z';
Expand Down Expand Up @@ -196,7 +196,7 @@ module.exports = [
}`,

output: `
var Foo = (function (Bar) {
var Foo = /*@__PURE__*/(function (Bar) {
function Foo () {
Bar.apply(this, arguments);
}
Expand Down Expand Up @@ -268,7 +268,7 @@ module.exports = [
}`,

output: `
var Foo = (function (Bar) {
var Foo = /*@__PURE__*/(function (Bar) {
function Foo () {
Bar.apply(this, arguments);
}
Expand Down Expand Up @@ -300,7 +300,7 @@ module.exports = [
new Foo().bar();`,

output: `
var Foo = (function (Bar) {
var Foo = /*@__PURE__*/(function (Bar) {
function Foo () {
Bar.apply(this, arguments);
}
Expand Down Expand Up @@ -335,7 +335,7 @@ module.exports = [
var Foo = class {};`,

output: `
var Foo = (function () {
var Foo = /*@__PURE__*/(function () {
function Foo () {}
return Foo;
Expand All @@ -354,7 +354,7 @@ module.exports = [
};`,

output: `
var Foo = (function () {
var Foo = /*@__PURE__*/(function () {
function Foo ( x ) {
this.x = x;
}
Expand All @@ -376,7 +376,7 @@ module.exports = [
};`,

output: `
var Foo = (function () {
var Foo = /*@__PURE__*/(function () {
function Foo () {}
Foo.prototype.bar = function ( x ) {
Expand Down Expand Up @@ -517,7 +517,7 @@ module.exports = [
}`,

output: `
var Circle = (function (Shape) {
var Circle = /*@__PURE__*/(function (Shape) {
function Circle ( radius ) {
Shape.call(this);
this.radius = radius;
Expand Down Expand Up @@ -585,13 +585,13 @@ module.exports = [
}`,

output: `
var q = {a: (function () {
var q = {a: /*@__PURE__*/(function () {
function anonymous () {}
return anonymous;
}())};
var b = (function (superclass) {
var b = /*@__PURE__*/(function (superclass) {
function b () {
superclass.apply(this, arguments);
}
Expand All @@ -618,13 +618,13 @@ module.exports = [
};`,

output: `
var q = {a: (function () {
var q = {a: /*@__PURE__*/(function () {
function anonymous () {}
return anonymous;
}())};
var b = (function (superclass) {
var b = /*@__PURE__*/(function (superclass) {
function b () {
superclass.apply(this, arguments);
}
Expand All @@ -651,7 +651,7 @@ module.exports = [
}`,

output: `
var b = (function (superclass) {
var b = /*@__PURE__*/(function (superclass) {
function b() {
superclass.call(this);
}
Expand All @@ -676,7 +676,7 @@ module.exports = [
};`,

output: `
SubClass = (function (SuperClass) {
SubClass = /*@__PURE__*/(function (SuperClass) {
function SubClass() {
SuperClass.call(this);
}
Expand Down Expand Up @@ -751,7 +751,7 @@ module.exports = [
}`,

output: `
var Foo = (function (Bar) {
var Foo = /*@__PURE__*/(function (Bar) {
function Foo () {
Bar.apply(this, arguments);
}
Expand Down Expand Up @@ -794,15 +794,15 @@ module.exports = [
A.prototype.x = function (){};
var B = (function () {
var B = /*@__PURE__*/(function () {
function B () {}
B.prototype.x = function (){};
return B;
}());
var C = (function (D) {
var C = /*@__PURE__*/(function (D) {
function C () {
D.apply(this, arguments);
}
Expand All @@ -816,7 +816,7 @@ module.exports = [
return C;
}(D));
var E = (function (F) {
var E = /*@__PURE__*/(function (F) {
function E () {
F.apply(this, arguments);
}
Expand Down Expand Up @@ -921,7 +921,7 @@ module.exports = [
}`,

output: `
var Foo = (function (Bar) {
var Foo = /*@__PURE__*/(function (Bar) {
function Foo ( options, ref ) {
var this$1 = this;
var a2 = ref.a2;
Expand Down Expand Up @@ -964,7 +964,7 @@ module.exports = [
}`,

output: `
var SubClass = (function (SuperClass) {
var SubClass = /*@__PURE__*/(function (SuperClass) {
function SubClass() {
var args = [], len = arguments.length;
while ( len-- ) args[ len ] = arguments[ len ];
Expand Down Expand Up @@ -992,7 +992,7 @@ module.exports = [
}`,

output: `
var SubClass = (function (SuperClass) {
var SubClass = /*@__PURE__*/(function (SuperClass) {
function SubClass() {
var args = [], len = arguments.length;
while ( len-- ) args[ len ] = arguments[ len ];
Expand Down Expand Up @@ -1125,7 +1125,7 @@ module.exports = [
}`,

output: `
var A = (function (B) {
var A = /*@__PURE__*/(function (B) {
function A () {
var this$1 = this;
Expand Down

0 comments on commit 7e7e9e7

Please sign in to comment.