mirror of
https://github.com/swc-project/swc.git
synced 2024-12-01 01:13:56 +03:00
feat(es/minifier): Inline a lazily initialized var if it's used once (#6237)
This commit is contained in:
parent
5e60bf4f55
commit
1cd7f617f9
@ -1,8 +1,8 @@
|
||||
var t, n = function() {};
|
||||
var t;
|
||||
module.exports = ((t = function() {
|
||||
"use strict";
|
||||
function t() {}
|
||||
return t.prototype.it = function() {
|
||||
this.bb = new t.MyA();
|
||||
}, t;
|
||||
}()).MyA = n, t);
|
||||
}()).MyA = function() {}, t);
|
||||
|
@ -1,10 +1,9 @@
|
||||
!function() {
|
||||
var __webpack_modules__ = {
|
||||
__webpack_require__.m = {
|
||||
746: function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__1) {
|
||||
Object.prototype.hasOwnProperty;
|
||||
}
|
||||
};
|
||||
__webpack_require__.m = __webpack_modules__, __webpack_require__.O = function(result, chunkIds, fn, priority) {
|
||||
}, __webpack_require__.O = function(result, chunkIds, fn, priority) {
|
||||
for(var j = 0; j < chunkIds.length; j++)Object.keys(__webpack_require__.O).every(function(key) {
|
||||
return __webpack_require__.O[key](chunkIds[j]);
|
||||
});
|
||||
|
@ -2,12 +2,9 @@
|
||||
//// [classPoint.ts]
|
||||
var A;
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
!function(A) {
|
||||
var Point = function Point(x, y) {
|
||||
"use strict";
|
||||
_class_call_check(this, Point), this.x = x, this.y = y;
|
||||
};
|
||||
A.Point = Point;
|
||||
}(A || (A = {}));
|
||||
(A || (A = {})).Point = function Point(x, y) {
|
||||
"use strict";
|
||||
_class_call_check(this, Point), this.x = x, this.y = y;
|
||||
};
|
||||
//// [test.ts]
|
||||
A.Point.Origin, new A.Point(0, 0);
|
||||
|
@ -7,9 +7,6 @@ var clodule = function() {
|
||||
}
|
||||
return clodule.fn = function(id) {}, clodule;
|
||||
}();
|
||||
!function(clodule) {
|
||||
var fn = function(x, y) {
|
||||
return x;
|
||||
};
|
||||
clodule.fn = fn;
|
||||
}(clodule || (clodule = {}));
|
||||
(clodule || (clodule = {})).fn = function(x, y) {
|
||||
return x;
|
||||
};
|
||||
|
@ -7,9 +7,6 @@ var clodule = function() {
|
||||
}
|
||||
return clodule.fn = function(id) {}, clodule;
|
||||
}();
|
||||
!function(clodule) {
|
||||
var fn = function(x, y) {
|
||||
return x;
|
||||
};
|
||||
clodule.fn = fn;
|
||||
}(clodule || (clodule = {}));
|
||||
(clodule || (clodule = {})).fn = function(x, y) {
|
||||
return x;
|
||||
};
|
||||
|
@ -9,9 +9,6 @@ var clodule = function() {
|
||||
return 42;
|
||||
}, clodule;
|
||||
}();
|
||||
!function(clodule1) {
|
||||
var fn = function(x, y) {
|
||||
return clodule.sfn("a");
|
||||
};
|
||||
clodule1.fn = fn;
|
||||
}(clodule || (clodule = {}));
|
||||
(clodule || (clodule = {})).fn = function(x, y) {
|
||||
return clodule.sfn("a");
|
||||
};
|
||||
|
@ -12,12 +12,9 @@ var A, Point = function() {
|
||||
};
|
||||
}, Point;
|
||||
}();
|
||||
!function(Point) {
|
||||
var Origin = function() {
|
||||
return null;
|
||||
};
|
||||
Point.Origin = Origin;
|
||||
}(Point || (Point = {})), function(A) {
|
||||
(Point || (Point = {})).Origin = function() {
|
||||
return null;
|
||||
}, function(A) {
|
||||
var Point = function() {
|
||||
"use strict";
|
||||
function Point(x, y) {
|
||||
|
@ -2,11 +2,10 @@
|
||||
var X;
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
!function(X) {
|
||||
var Y, Point;
|
||||
Y = X.Y || (X.Y = {}), Point = function Point(x, y) {
|
||||
(X.Y || (X.Y = {})).Point = function Point(x, y) {
|
||||
"use strict";
|
||||
_class_call_check(this, Point), this.x = x, this.y = y;
|
||||
}, Y.Point = Point;
|
||||
};
|
||||
}(X || (X = {}));
|
||||
//// [module.ts]
|
||||
var X;
|
||||
|
@ -3,10 +3,7 @@ var enumdule;
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
!function(enumdule) {
|
||||
enumdule[enumdule.Red = 0] = "Red", enumdule[enumdule.Blue = 1] = "Blue";
|
||||
}(enumdule || (enumdule = {})), function(enumdule) {
|
||||
var Point = function Point(x, y) {
|
||||
"use strict";
|
||||
_class_call_check(this, Point), this.x = x, this.y = y;
|
||||
};
|
||||
enumdule.Point = Point;
|
||||
}(enumdule || (enumdule = {})), enumdule.Red, new enumdule.Point(0, 0);
|
||||
}(enumdule || (enumdule = {})), (enumdule || (enumdule = {})).Point = function Point(x, y) {
|
||||
"use strict";
|
||||
_class_call_check(this, Point), this.x = x, this.y = y;
|
||||
}, enumdule.Red, new enumdule.Point(0, 0);
|
||||
|
@ -25,10 +25,8 @@ import _create_super from "@swc/helpers/src/_create_super.mjs";
|
||||
x: 0,
|
||||
y: 0,
|
||||
z: 0
|
||||
};
|
||||
var Line = function Line(start, end) {
|
||||
}, A.Line = function Line(start, end) {
|
||||
"use strict";
|
||||
_class_call_check(this, Line), this.start = start, this.end = end;
|
||||
};
|
||||
A.Line = Line;
|
||||
}(A || (A = {}));
|
||||
|
@ -1,10 +1,7 @@
|
||||
//// [ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.ts]
|
||||
var A;
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
!function(A) {
|
||||
var points = function points() {
|
||||
"use strict";
|
||||
_class_call_check(this, points);
|
||||
};
|
||||
A.points = points;
|
||||
}(A || (A = {}));
|
||||
(A || (A = {})).points = function points() {
|
||||
"use strict";
|
||||
_class_call_check(this, points);
|
||||
};
|
||||
|
@ -4,10 +4,6 @@ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
import _inherits from "@swc/helpers/src/_inherits.mjs";
|
||||
import _create_super from "@swc/helpers/src/_create_super.mjs";
|
||||
!function(A) {
|
||||
var Point = function Point() {
|
||||
"use strict";
|
||||
_class_call_check(this, Point);
|
||||
};
|
||||
A.Origin = {
|
||||
x: 0,
|
||||
y: 0
|
||||
@ -20,7 +16,10 @@ import _create_super from "@swc/helpers/src/_create_super.mjs";
|
||||
return _class_call_check(this, Point3d), _super.apply(this, arguments);
|
||||
}
|
||||
return Point3d;
|
||||
}(Point);
|
||||
}(function Point() {
|
||||
"use strict";
|
||||
_class_call_check(this, Point);
|
||||
});
|
||||
A.Point3d = Point3d, A.Origin3d = {
|
||||
x: 0,
|
||||
y: 0,
|
||||
|
@ -2,19 +2,18 @@
|
||||
var A;
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
!function(A) {
|
||||
var fromOrigin = function(p) {
|
||||
return new Line({
|
||||
x: 0,
|
||||
y: 0
|
||||
}, p);
|
||||
}, Point = function Point() {
|
||||
A.Point = function Point() {
|
||||
"use strict";
|
||||
_class_call_check(this, Point);
|
||||
};
|
||||
A.Point = Point;
|
||||
var Line = function Line(start, end) {
|
||||
"use strict";
|
||||
_class_call_check(this, Line), this.start = start, this.end = end;
|
||||
};
|
||||
A.Line = Line, A.fromOrigin = fromOrigin;
|
||||
A.Line = Line, A.fromOrigin = function(p) {
|
||||
return new Line({
|
||||
x: 0,
|
||||
y: 0
|
||||
}, p);
|
||||
};
|
||||
}(A || (A = {}));
|
||||
|
@ -2,14 +2,14 @@
|
||||
var A;
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
!function(A) {
|
||||
var fromOrigin = function(p) {
|
||||
var Line = function Line(start, end) {
|
||||
"use strict";
|
||||
_class_call_check(this, Line), this.start = start, this.end = end;
|
||||
};
|
||||
A.Line = Line, A.fromOrigin = function(p) {
|
||||
return new Line({
|
||||
x: 0,
|
||||
y: 0
|
||||
}, p);
|
||||
}, Line = function Line(start, end) {
|
||||
"use strict";
|
||||
_class_call_check(this, Line), this.start = start, this.end = end;
|
||||
};
|
||||
A.Line = Line, A.fromOrigin = fromOrigin;
|
||||
}(A || (A = {}));
|
||||
|
@ -2,19 +2,18 @@
|
||||
var A;
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
!function(A) {
|
||||
var fromOrigin = function(p) {
|
||||
return new Line({
|
||||
x: 0,
|
||||
y: 0
|
||||
}, p);
|
||||
}, Point = function Point() {
|
||||
A.Point = function Point() {
|
||||
"use strict";
|
||||
_class_call_check(this, Point);
|
||||
};
|
||||
A.Point = Point;
|
||||
var Line = function Line(start, end) {
|
||||
"use strict";
|
||||
_class_call_check(this, Line), this.start = start, this.end = end;
|
||||
};
|
||||
A.fromOrigin = fromOrigin;
|
||||
A.fromOrigin = function(p) {
|
||||
return new Line({
|
||||
x: 0,
|
||||
y: 0
|
||||
}, p);
|
||||
};
|
||||
}(A || (A = {}));
|
||||
|
@ -1,14 +1,11 @@
|
||||
//// [function.ts]
|
||||
var A;
|
||||
!function(A) {
|
||||
var Point = function() {
|
||||
return {
|
||||
x: 0,
|
||||
y: 0
|
||||
};
|
||||
(A || (A = {})).Point = function() {
|
||||
return {
|
||||
x: 0,
|
||||
y: 0
|
||||
};
|
||||
A.Point = Point;
|
||||
}(A || (A = {}));
|
||||
};
|
||||
//// [module.ts]
|
||||
var A;
|
||||
!function(A) {
|
||||
|
@ -1,14 +1,11 @@
|
||||
//// [function.ts]
|
||||
var A;
|
||||
!function(A) {
|
||||
var Point = function() {
|
||||
return {
|
||||
x: 0,
|
||||
y: 0
|
||||
};
|
||||
(A || (A = {})).Point = function() {
|
||||
return {
|
||||
x: 0,
|
||||
y: 0
|
||||
};
|
||||
A.Point = Point;
|
||||
}(A || (A = {}));
|
||||
};
|
||||
//// [module.ts]
|
||||
var B;
|
||||
!function(B) {
|
||||
|
@ -8,11 +8,10 @@ var X;
|
||||
var X;
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
!function(X) {
|
||||
var Y, Point;
|
||||
Y = X.Y || (X.Y = {}), Point = function Point(x, y) {
|
||||
(X.Y || (X.Y = {})).Point = function Point(x, y) {
|
||||
"use strict";
|
||||
_class_call_check(this, Point), this.x = x, this.y = y;
|
||||
}, Y.Point = Point;
|
||||
};
|
||||
}(X || (X = {}));
|
||||
//// [simple.ts]
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
|
@ -1,12 +1,9 @@
|
||||
//// [ModuleAndEnumWithSameNameAndCommonRoot.ts]
|
||||
var enumdule;
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
!function(enumdule) {
|
||||
var Point = function Point(x, y) {
|
||||
"use strict";
|
||||
_class_call_check(this, Point), this.x = x, this.y = y;
|
||||
};
|
||||
enumdule.Point = Point;
|
||||
}(enumdule || (enumdule = {})), function(enumdule) {
|
||||
(enumdule || (enumdule = {})).Point = function Point(x, y) {
|
||||
"use strict";
|
||||
_class_call_check(this, Point), this.x = x, this.y = y;
|
||||
}, function(enumdule) {
|
||||
enumdule[enumdule.Red = 0] = "Red", enumdule[enumdule.Blue = 1] = "Blue";
|
||||
}(enumdule || (enumdule = {})), enumdule.Red, new enumdule.Point(0, 0);
|
||||
|
@ -8,15 +8,12 @@ var A;
|
||||
}(A || (A = {}));
|
||||
//// [function.ts]
|
||||
var A;
|
||||
!function(A) {
|
||||
var Point = function() {
|
||||
return {
|
||||
x: 0,
|
||||
y: 0
|
||||
};
|
||||
(A || (A = {})).Point = function() {
|
||||
return {
|
||||
x: 0,
|
||||
y: 0
|
||||
};
|
||||
A.Point = Point;
|
||||
}(A || (A = {}));
|
||||
};
|
||||
//// [simple.ts]
|
||||
var B;
|
||||
!function(B) {
|
||||
|
@ -2,14 +2,11 @@
|
||||
var A;
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
!function(A) {
|
||||
var _$A = function A() {
|
||||
A.A = function A() {
|
||||
"use strict";
|
||||
_class_call_check(this, A);
|
||||
};
|
||||
A.A = _$A;
|
||||
var AG = function AG() {
|
||||
}, A.AG = function AG() {
|
||||
"use strict";
|
||||
_class_call_check(this, AG);
|
||||
};
|
||||
A.AG = AG;
|
||||
}(A || (A = {})), new A.A(), new A.AG(), new A.A2(), new A.A2();
|
||||
|
@ -1,10 +1,9 @@
|
||||
//// [ModuleWithExportedAndNonExportedFunctions.ts]
|
||||
var A;
|
||||
!function(A) {
|
||||
var fn = function(s) {
|
||||
A.fn = function(s) {
|
||||
return !0;
|
||||
}, fng = function(s) {
|
||||
}, A.fng = function(s) {
|
||||
return null;
|
||||
};
|
||||
A.fn = fn, A.fng = fng;
|
||||
}(A || (A = {})), A.fn, A.fng, A.fn2, A.fng2;
|
||||
|
@ -1,13 +1,10 @@
|
||||
//// [ModuleWithExportedAndNonExportedImportAlias.ts]
|
||||
var B, Geometry;
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
!function(B) {
|
||||
var Line = function Line(start, end) {
|
||||
"use strict";
|
||||
_class_call_check(this, Line), this.start = start, this.end = end;
|
||||
};
|
||||
B.Line = Line;
|
||||
}(B || (B = {})), function(Geometry) {
|
||||
(B || (B = {})).Line = function Line(start, end) {
|
||||
"use strict";
|
||||
_class_call_check(this, Line), this.start = start, this.end = end;
|
||||
}, function(Geometry) {
|
||||
var Points = A;
|
||||
Geometry.Points = Points;
|
||||
var Lines = B, Origin = Geometry.Origin = {
|
||||
|
@ -1,18 +1,15 @@
|
||||
//// [TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts]
|
||||
var A, X;
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
!function(A) {
|
||||
var Point = function Point() {
|
||||
"use strict";
|
||||
_class_call_check(this, Point);
|
||||
};
|
||||
A.Point = Point;
|
||||
}(A || (A = {})), A || (A = {}), function(X) {
|
||||
var Y, Z, Line;
|
||||
Z = (Y = X.Y || (X.Y = {})).Z || (Y.Z = {}), Line = function Line() {
|
||||
(A || (A = {})).Point = function Point() {
|
||||
"use strict";
|
||||
_class_call_check(this, Point);
|
||||
}, A || (A = {}), function(X) {
|
||||
var Y;
|
||||
((Y = X.Y || (X.Y = {})).Z || (Y.Z = {})).Line = function Line() {
|
||||
"use strict";
|
||||
_class_call_check(this, Line);
|
||||
}, Z.Line = Line;
|
||||
};
|
||||
}(X || (X = {})), function(X) {
|
||||
var Y;
|
||||
(Y = X.Y || (X.Y = {})).Z || (Y.Z = {});
|
||||
|
@ -15,11 +15,10 @@ var A;
|
||||
var A;
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
!function(A) {
|
||||
var Utils, Plane;
|
||||
Utils = A.Utils || (A.Utils = {}), Plane = function Plane(tl, br) {
|
||||
(A.Utils || (A.Utils = {})).Plane = function Plane(tl, br) {
|
||||
"use strict";
|
||||
_class_call_check(this, Plane), this.tl = tl, this.br = br;
|
||||
}, Utils.Plane = Plane;
|
||||
};
|
||||
}(A || (A = {}));
|
||||
//// [part3.ts]
|
||||
var o = A.Origin, o = A.Utils.mirror(o);
|
||||
|
@ -1,28 +1,22 @@
|
||||
//// [TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName.ts]
|
||||
var A, X;
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
!function(A) {
|
||||
var Point = function Point() {
|
||||
"use strict";
|
||||
_class_call_check(this, Point);
|
||||
};
|
||||
A.Point = Point;
|
||||
}(A || (A = {})), function(A) {
|
||||
var Point = function Point() {
|
||||
"use strict";
|
||||
_class_call_check(this, Point);
|
||||
};
|
||||
A.Point = Point;
|
||||
}(A || (A = {})), function(X) {
|
||||
var Y, Z, Line;
|
||||
Z = (Y = X.Y || (X.Y = {})).Z || (Y.Z = {}), Line = function Line() {
|
||||
(A || (A = {})).Point = function Point() {
|
||||
"use strict";
|
||||
_class_call_check(this, Point);
|
||||
}, (A || (A = {})).Point = function Point() {
|
||||
"use strict";
|
||||
_class_call_check(this, Point);
|
||||
}, function(X) {
|
||||
var Y;
|
||||
((Y = X.Y || (X.Y = {})).Z || (Y.Z = {})).Line = function Line() {
|
||||
"use strict";
|
||||
_class_call_check(this, Line);
|
||||
}, Z.Line = Line;
|
||||
};
|
||||
}(X || (X = {})), function(X) {
|
||||
var Y, Z, Line;
|
||||
Z = (Y = X.Y || (X.Y = {})).Z || (Y.Z = {}), Line = function Line() {
|
||||
var Y;
|
||||
((Y = X.Y || (X.Y = {})).Z || (Y.Z = {})).Line = function Line() {
|
||||
"use strict";
|
||||
_class_call_check(this, Line);
|
||||
}, Z.Line = Line;
|
||||
};
|
||||
}(X || (X = {}));
|
||||
|
@ -15,12 +15,11 @@ export var A;
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
export var A;
|
||||
!function(A) {
|
||||
var Utils, Plane;
|
||||
A.Origin = {
|
||||
x: 0,
|
||||
y: 0
|
||||
}, Utils = A.Utils || (A.Utils = {}), Plane = function Plane(tl, br) {
|
||||
}, (A.Utils || (A.Utils = {})).Plane = function Plane(tl, br) {
|
||||
"use strict";
|
||||
_class_call_check(this, Plane), this.tl = tl, this.br = br;
|
||||
}, Utils.Plane = Plane;
|
||||
};
|
||||
}(A || (A = {}));
|
||||
|
@ -8,15 +8,15 @@ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var B, x;
|
||||
(B || (B = {})).x = x;
|
||||
}(A || (A = {})), A.B.x, function(X) {
|
||||
var Y, Z, Line;
|
||||
Z = (Y = X.Y || (X.Y = {})).Z || (Y.Z = {}), Line = function Line() {
|
||||
var Y;
|
||||
((Y = X.Y || (X.Y = {})).Z || (Y.Z = {})).Line = function Line() {
|
||||
"use strict";
|
||||
_class_call_check(this, Line);
|
||||
}, Z.Line = Line;
|
||||
};
|
||||
}(X || (X = {})), function(X) {
|
||||
var Z, Z1, Line;
|
||||
X.Y || (X.Y = {}), Z1 = Z || (Z = {}), Line = function Line() {
|
||||
var Z;
|
||||
X.Y || (X.Y = {}), (Z || (Z = {})).Line = function Line() {
|
||||
"use strict";
|
||||
_class_call_check(this, Line);
|
||||
}, Z1.Line = Line;
|
||||
};
|
||||
}(X || (X = {}));
|
||||
|
@ -13,12 +13,12 @@ var Root;
|
||||
var otherRoot;
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
!function(otherRoot) {
|
||||
var A, Utils, Plane;
|
||||
var A;
|
||||
(A = otherRoot.A || (otherRoot.A = {})).Origin = {
|
||||
x: 0,
|
||||
y: 0
|
||||
}, Utils = A.Utils || (A.Utils = {}), Plane = function Plane(tl, br) {
|
||||
}, (A.Utils || (A.Utils = {})).Plane = function Plane(tl, br) {
|
||||
"use strict";
|
||||
_class_call_check(this, Plane), this.tl = tl, this.br = br;
|
||||
}, Utils.Plane = Plane;
|
||||
};
|
||||
}(otherRoot || (otherRoot = {}));
|
||||
|
@ -12,14 +12,13 @@ var A;
|
||||
var A;
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
!function(A) {
|
||||
var Utils, Plane;
|
||||
A.Origin = {
|
||||
x: 0,
|
||||
y: 0
|
||||
}, Utils = A.Utils || (A.Utils = {}), Plane = function Plane(tl, br) {
|
||||
}, (A.Utils || (A.Utils = {})).Plane = function Plane(tl, br) {
|
||||
"use strict";
|
||||
_class_call_check(this, Plane), this.tl = tl, this.br = br;
|
||||
}, Utils.Plane = Plane;
|
||||
};
|
||||
}(A || (A = {}));
|
||||
//// [part3.ts]
|
||||
var o = A.Origin, o = A.Utils.mirror(o);
|
||||
|
@ -9,8 +9,7 @@ function _templateObject() {
|
||||
return data;
|
||||
}, data;
|
||||
}
|
||||
var Foo = function Foo() {
|
||||
as(_templateObject()), as(function Foo() {
|
||||
"use strict";
|
||||
_class_call_check(this, Foo);
|
||||
};
|
||||
as(_templateObject()), as(Foo);
|
||||
});
|
||||
|
@ -1,24 +1,14 @@
|
||||
//// [bestCommonTypeOfTuple.ts]
|
||||
var E1, E2, t1, t2, t3, t4;
|
||||
var E1, E2, t2, t4;
|
||||
!function(E1) {
|
||||
E1[E1.one = 0] = "one";
|
||||
}(E1 || (E1 = {})), function(E2) {
|
||||
E2[E2.two = 0] = "two";
|
||||
}(E2 || (E2 = {})), t1 = [
|
||||
function(x) {
|
||||
return "foo";
|
||||
},
|
||||
function(x) {
|
||||
return 10;
|
||||
}
|
||||
], t2 = [
|
||||
}(E2 || (E2 = {})), t2 = [
|
||||
E1.one,
|
||||
E2.two
|
||||
], t3 = [
|
||||
5,
|
||||
void 0
|
||||
], t4 = [
|
||||
E1.one,
|
||||
E2.two,
|
||||
20
|
||||
], t1[2], t2[2], t3[2], t4[3];
|
||||
], t2[2], t4[3];
|
||||
|
@ -9,12 +9,10 @@ function m1() {
|
||||
}(), function(x) {
|
||||
void 0 === x || _type_of(x);
|
||||
}(1), function(M) {
|
||||
M.x = 1;
|
||||
var C = function C() {
|
||||
M.x = 1, M.C = function C() {
|
||||
"use strict";
|
||||
_class_call_check(this, C);
|
||||
};
|
||||
M.C = C;
|
||||
}(M || (M = {})), (m1 || (m1 = {})).y = 2;
|
||||
var M, e1, c1 = function c1(x) {
|
||||
"use strict";
|
||||
|
@ -17,11 +17,10 @@ import _create_super from "@swc/helpers/src/_create_super.mjs";
|
||||
}(a.C);
|
||||
B.D = D;
|
||||
}(B || (B = {})), function(A) {
|
||||
var C = function C() {
|
||||
A.C = function C() {
|
||||
"use strict";
|
||||
_class_call_check(this, C);
|
||||
};
|
||||
A.C = C;
|
||||
var b = B;
|
||||
A.b = b;
|
||||
}(A || (A = {})), new B.a.C();
|
||||
|
@ -1,17 +1,12 @@
|
||||
//// [classAbstractSingleLineDecl.ts]
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var A = function A() {
|
||||
abstract, abstract, new function A() {
|
||||
"use strict";
|
||||
_class_call_check(this, A);
|
||||
};
|
||||
abstract;
|
||||
var B = function B() {
|
||||
}, new function B() {
|
||||
"use strict";
|
||||
_class_call_check(this, B);
|
||||
};
|
||||
abstract;
|
||||
var C = function C() {
|
||||
}, new function C() {
|
||||
"use strict";
|
||||
_class_call_check(this, C);
|
||||
};
|
||||
new A, new B, new C;
|
||||
|
@ -1,25 +1,22 @@
|
||||
//// [classConstructorAccessibility.ts]
|
||||
var Generic;
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var Generic, D = function D(x) {
|
||||
"use strict";
|
||||
_class_call_check(this, D), this.x = x;
|
||||
}, E = function E(x) {
|
||||
"use strict";
|
||||
_class_call_check(this, E), this.x = x;
|
||||
};
|
||||
new function C(x) {
|
||||
"use strict";
|
||||
_class_call_check(this, C), this.x = x;
|
||||
}(1), new D(1), new E(1), function(Generic) {
|
||||
var D = function D(x) {
|
||||
"use strict";
|
||||
_class_call_check(this, D), this.x = x;
|
||||
}, E = function E(x) {
|
||||
"use strict";
|
||||
_class_call_check(this, E), this.x = x;
|
||||
};
|
||||
new function C(x) {
|
||||
"use strict";
|
||||
_class_call_check(this, C), this.x = x;
|
||||
}(1), new D(1), new E(1);
|
||||
}(Generic || (Generic = {}));
|
||||
}(1), new function D(x) {
|
||||
"use strict";
|
||||
_class_call_check(this, D), this.x = x;
|
||||
}(1), new function E(x) {
|
||||
"use strict";
|
||||
_class_call_check(this, E), this.x = x;
|
||||
}(1), Generic || (Generic = {}), new function C(x) {
|
||||
"use strict";
|
||||
_class_call_check(this, C), this.x = x;
|
||||
}(1), new function D(x) {
|
||||
"use strict";
|
||||
_class_call_check(this, D), this.x = x;
|
||||
}(1), new function E(x) {
|
||||
"use strict";
|
||||
_class_call_check(this, E), this.x = x;
|
||||
}(1);
|
||||
|
@ -1,10 +1,7 @@
|
||||
//// [classDoesNotDependOnPrivateMember.ts]
|
||||
var M;
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
!function(M) {
|
||||
var C = function C() {
|
||||
"use strict";
|
||||
_class_call_check(this, C);
|
||||
};
|
||||
M.C = C;
|
||||
}(M || (M = {}));
|
||||
(M || (M = {})).C = function C() {
|
||||
"use strict";
|
||||
_class_call_check(this, C);
|
||||
};
|
||||
|
@ -1,8 +1,7 @@
|
||||
//// [commonJSAliasedExport.js]
|
||||
var donkey = function(ast) {
|
||||
module.exports = function(ast) {
|
||||
return ast;
|
||||
};
|
||||
module.exports = donkey, module.exports.funky = function(declaration) {
|
||||
}, module.exports.funky = function(declaration) {
|
||||
return !1;
|
||||
};
|
||||
//// [bug43713.js]
|
||||
|
@ -3,8 +3,8 @@ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var C = function C() {
|
||||
"use strict";
|
||||
_class_call_check(this, C);
|
||||
}, D = function D() {
|
||||
};
|
||||
new C(), new C(), new C(), new function D() {
|
||||
"use strict";
|
||||
_class_call_check(this, D);
|
||||
};
|
||||
new C(), new C(), new C(), new D();
|
||||
}();
|
||||
|
@ -12,10 +12,10 @@ var X = function() {
|
||||
return X.prototype.why = function() {}, X.now = function() {
|
||||
return {};
|
||||
}, X;
|
||||
}(), Y = function Y() {
|
||||
}();
|
||||
console.log(X.now()), console.log((function Y() {
|
||||
"use strict";
|
||||
_class_call_check(this, Y);
|
||||
};
|
||||
console.log(X.now()), console.log(Y.now());
|
||||
}).now());
|
||||
export var x = Math.random() > 0.5 ? new X() : 1;
|
||||
_instanceof(x, X) && x.why();
|
||||
|
@ -6,13 +6,13 @@ var ANY, ANY1, M, ANY2 = [
|
||||
], obj = {
|
||||
x: 1,
|
||||
y: null
|
||||
}, A = function A() {
|
||||
"use strict";
|
||||
_class_call_check(this, A);
|
||||
};
|
||||
!function(M) {
|
||||
var n;
|
||||
M.n = n;
|
||||
}(M || (M = {}));
|
||||
var objA = new A();
|
||||
var objA = new function A() {
|
||||
"use strict";
|
||||
_class_call_check(this, A);
|
||||
}();
|
||||
--ANY, --ANY1, ANY1--, ANY1--, --ANY2[0], --obj.x, --obj.y, --objA.a, --M.n, ANY2[0]--, obj.x--, obj.y--, objA.a--, M.n--, --ANY, --ANY1, --ANY2[0], --ANY, --ANY1, --objA.a, --M.n, ANY--, ANY1--, ANY2[0]--, ANY--, ANY1--, objA.a--, M.n--;
|
||||
|
@ -3,13 +3,13 @@ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var NUMBER, M, NUMBER1 = [
|
||||
1,
|
||||
2
|
||||
], A = function A() {
|
||||
"use strict";
|
||||
_class_call_check(this, A);
|
||||
};
|
||||
];
|
||||
!function(M) {
|
||||
var n;
|
||||
M.n = n;
|
||||
}(M || (M = {}));
|
||||
var objA = new A();
|
||||
var objA = new function A() {
|
||||
"use strict";
|
||||
_class_call_check(this, A);
|
||||
}();
|
||||
--NUMBER, NUMBER--, --objA.a, --M.n, objA.a--, M.n--, NUMBER1[0]--, --NUMBER, --NUMBER1[0], --objA.a, --M.n, --objA.a, M.n, NUMBER--, NUMBER1[0]--, objA.a--, M.n--, objA.a--, M.n--;
|
||||
|
@ -1,7 +1,6 @@
|
||||
//// [es6modulekindWithES5Target4.ts]
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var E = function E() {
|
||||
export default function E() {
|
||||
"use strict";
|
||||
_class_call_check(this, E);
|
||||
};
|
||||
export default E;
|
||||
|
@ -1,7 +1,6 @@
|
||||
//// [esnextmodulekindWithES5Target4.ts]
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var E = function E() {
|
||||
export default function E() {
|
||||
"use strict";
|
||||
_class_call_check(this, E);
|
||||
};
|
||||
export default E;
|
||||
|
@ -3,16 +3,15 @@ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var M, C = function C() {
|
||||
"use strict";
|
||||
_class_call_check(this, C);
|
||||
}, D = function D() {
|
||||
"use strict";
|
||||
_class_call_check(this, D);
|
||||
};
|
||||
!function(M) {
|
||||
var F2 = function(x) {
|
||||
return x.toString();
|
||||
}, A = function A() {
|
||||
M.A = function A() {
|
||||
"use strict";
|
||||
_class_call_check(this, A);
|
||||
}, M.F2 = function(x) {
|
||||
return x.toString();
|
||||
};
|
||||
M.A = A, M.F2 = F2;
|
||||
}(M || (M = {})), new C(), new C(), new D(), new C(), new M.A();
|
||||
}(M || (M = {})), new C(), new C(), new function D() {
|
||||
"use strict";
|
||||
_class_call_check(this, D);
|
||||
}(), new C(), new M.A();
|
||||
|
@ -8,19 +8,17 @@ var M, N, C = function C() {
|
||||
_class_call_check(this, D);
|
||||
};
|
||||
!function(M) {
|
||||
var _$F2 = function(x) {
|
||||
return x.toString();
|
||||
}, A = function A() {
|
||||
M.A = function A() {
|
||||
"use strict";
|
||||
_class_call_check(this, A);
|
||||
}, M.F2 = function(x) {
|
||||
return x.toString();
|
||||
};
|
||||
M.A = A, M.F2 = _$F2;
|
||||
}(M || (M = {})), function(N) {
|
||||
var _$F2 = function(x) {
|
||||
return x.toString();
|
||||
}, A = function A() {
|
||||
N.A = function A() {
|
||||
"use strict";
|
||||
_class_call_check(this, A);
|
||||
}, N.F2 = function(x) {
|
||||
return x.toString();
|
||||
};
|
||||
N.A = A, N.F2 = _$F2;
|
||||
}(N || (N = {})), new D(), new D(), new C(), new C(), new N.A();
|
||||
|
@ -3,16 +3,15 @@ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var M, C = function C() {
|
||||
"use strict";
|
||||
_class_call_check(this, C);
|
||||
}, D = function D() {
|
||||
"use strict";
|
||||
_class_call_check(this, D);
|
||||
};
|
||||
!function(M) {
|
||||
var F2 = function(x) {
|
||||
return x.toString();
|
||||
}, A = function A() {
|
||||
M.A = function A() {
|
||||
"use strict";
|
||||
_class_call_check(this, A);
|
||||
}, M.F2 = function(x) {
|
||||
return x.toString();
|
||||
};
|
||||
M.A = A, M.F2 = F2;
|
||||
}(M || (M = {})), new C(), new C(), new D(), new M.A(), M.F2;
|
||||
}(M || (M = {})), new C(), new C(), new function D() {
|
||||
"use strict";
|
||||
_class_call_check(this, D);
|
||||
}(), new M.A(), M.F2;
|
||||
|
@ -1,10 +1,10 @@
|
||||
//// [foo_0.ts]
|
||||
"use strict";
|
||||
var _classCallCheck = require("@swc/helpers/lib/_class_call_check.js").default, Foo = function Foo(x) {
|
||||
var _classCallCheck = require("@swc/helpers/lib/_class_call_check.js").default;
|
||||
module.exports = function Foo(x) {
|
||||
"use strict";
|
||||
_classCallCheck(this, Foo);
|
||||
};
|
||||
module.exports = Foo;
|
||||
//// [foo_1.ts]
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
|
@ -1,10 +1,10 @@
|
||||
//// [foo_0.ts]
|
||||
"use strict";
|
||||
var _classCallCheck = require("@swc/helpers/lib/_class_call_check.js").default, Foo = function Foo() {
|
||||
var _classCallCheck = require("@swc/helpers/lib/_class_call_check.js").default;
|
||||
module.exports = function Foo() {
|
||||
"use strict";
|
||||
_classCallCheck(this, Foo);
|
||||
};
|
||||
module.exports = Foo;
|
||||
//// [foo_1.ts]
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
|
@ -2,15 +2,13 @@
|
||||
"use strict";
|
||||
var Foo;
|
||||
!function(Foo) {
|
||||
var a = function() {
|
||||
Foo.a = function() {
|
||||
return 5;
|
||||
};
|
||||
Foo.a = a, Foo.b = !0;
|
||||
}, Foo.b = !0;
|
||||
}(Foo || (Foo = {})), function(Foo) {
|
||||
var c = function(a) {
|
||||
Foo.c = function(a) {
|
||||
return a;
|
||||
};
|
||||
Foo.c = c, (Foo.Test || (Foo.Test = {})).answer = 42;
|
||||
}, (Foo.Test || (Foo.Test = {})).answer = 42;
|
||||
}(Foo || (Foo = {})), module.exports = Foo;
|
||||
//// [foo_1.ts]
|
||||
"use strict";
|
||||
|
@ -1,19 +1,14 @@
|
||||
//// [exportCodeGen.ts]
|
||||
var A, B, C, D, E, F;
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
(A || (A = {})).x = 12, B || (B = {}), C || (C = {}), function(D) {
|
||||
var yes = function() {
|
||||
return !0;
|
||||
};
|
||||
D.yes = yes;
|
||||
}(D || (D = {})), function(E) {
|
||||
var Color, fn = function() {};
|
||||
(Color = E.Color || (E.Color = {}))[Color.Red = 0] = "Red", E.fn = fn;
|
||||
var C = function C() {
|
||||
(A || (A = {})).x = 12, B || (B = {}), C || (C = {}), (D || (D = {})).yes = function() {
|
||||
return !0;
|
||||
}, function(E) {
|
||||
var Color;
|
||||
(Color = E.Color || (E.Color = {}))[Color.Red = 0] = "Red", E.fn = function() {}, E.C = function C() {
|
||||
"use strict";
|
||||
_class_call_check(this, C);
|
||||
};
|
||||
E.C = C, (E.M || (E.M = {})).x = 42;
|
||||
}, (E.M || (E.M = {})).x = 42;
|
||||
}(E || (E = {})), function(F) {
|
||||
var Color, M, Color1;
|
||||
(Color1 = Color || (Color = {}))[Color1.Red = 0] = "Red", M || (M = {});
|
||||
|
@ -2,23 +2,21 @@
|
||||
var A, C, X, Z, K, M;
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
!function(A) {
|
||||
A.x = "hello world";
|
||||
var Point = function Point(x, y) {
|
||||
A.x = "hello world", A.Point = function Point(x, y) {
|
||||
"use strict";
|
||||
_class_call_check(this, Point), this.x = x, this.y = y;
|
||||
};
|
||||
A.Point = Point;
|
||||
}(A || (A = {})), function(C) {
|
||||
var a = A;
|
||||
C.a = a;
|
||||
}(C || (C = {})), C.a.x, new C.a.Point(0, 0), function(X) {
|
||||
var Y, Point, Y1 = function() {
|
||||
var Y = function() {
|
||||
return 42;
|
||||
};
|
||||
X.Y = Y1, Y = Y1 = X.Y || (X.Y = {}), Point = function Point(x, y) {
|
||||
X.Y = Y, (Y = X.Y || (X.Y = {})).Point = function Point(x, y) {
|
||||
"use strict";
|
||||
_class_call_check(this, Point), this.x = x, this.y = y;
|
||||
}, Y.Point = Point;
|
||||
};
|
||||
}(X || (X = {})), function(Z) {
|
||||
var y = X.Y;
|
||||
Z.y = y;
|
||||
|
@ -1,10 +1,10 @@
|
||||
//// [foo1.ts]
|
||||
"use strict";
|
||||
var _classCallCheck = require("@swc/helpers/lib/_class_call_check.js").default, x = function x() {
|
||||
var _classCallCheck = require("@swc/helpers/lib/_class_call_check.js").default;
|
||||
module.exports = function x() {
|
||||
"use strict";
|
||||
_classCallCheck(this, x);
|
||||
};
|
||||
module.exports = x;
|
||||
//// [foo2.ts]
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
|
@ -2,14 +2,13 @@
|
||||
var ns;
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
!function(ns) {
|
||||
var nested, NestedClass, Class = function Class() {
|
||||
ns.Class = function Class() {
|
||||
"use strict";
|
||||
_class_call_check(this, Class);
|
||||
};
|
||||
ns.Class = Class, ns.Value = "", nested = ns.nested || (ns.nested = {}), NestedClass = function NestedClass() {
|
||||
}, ns.Value = "", (ns.nested || (ns.nested = {})).NestedClass = function NestedClass() {
|
||||
"use strict";
|
||||
_class_call_check(this, NestedClass);
|
||||
}, nested.NestedClass = NestedClass;
|
||||
};
|
||||
}(ns || (ns = {}));
|
||||
export default ns;
|
||||
//// [/a.ts]
|
||||
|
@ -33,13 +33,10 @@ for(var x in function(x, y) {
|
||||
return x + y;
|
||||
});
|
||||
for(var x in i[42]);
|
||||
for(var x in !function(M) {
|
||||
var X = function X() {
|
||||
"use strict";
|
||||
_class_call_check(this, X);
|
||||
};
|
||||
M.X = X;
|
||||
}(M || (M = {})), M);
|
||||
for(var x in (M || (M = {})).X = function X() {
|
||||
"use strict";
|
||||
_class_call_check(this, X);
|
||||
}, M);
|
||||
for(var x in M.X);
|
||||
for(var x in !function(Color) {
|
||||
Color[Color.Red = 0] = "Red", Color[Color.Blue = 1] = "Blue";
|
||||
|
@ -3,18 +3,14 @@ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var M, C = function C() {
|
||||
"use strict";
|
||||
_class_call_check(this, C);
|
||||
}, D = function D() {
|
||||
"use strict";
|
||||
_class_call_check(this, D);
|
||||
};
|
||||
for(!function(M) {
|
||||
var F2 = function(x) {
|
||||
return x.toString();
|
||||
}, A = function A() {
|
||||
M.A = function A() {
|
||||
"use strict";
|
||||
_class_call_check(this, A);
|
||||
}, M.F2 = function(x) {
|
||||
return x.toString();
|
||||
};
|
||||
M.A = A, M.F2 = F2;
|
||||
}(M || (M = {}));;);
|
||||
for(;;);
|
||||
for(;;);
|
||||
@ -24,7 +20,10 @@ for(;;);
|
||||
for(;;);
|
||||
for(new C();;);
|
||||
for(new C();;);
|
||||
for(new D();;);
|
||||
for(new function D() {
|
||||
"use strict";
|
||||
_class_call_check(this, D);
|
||||
}();;);
|
||||
for(;;);
|
||||
for(new C();;);
|
||||
for(;;);
|
||||
|
@ -18,13 +18,12 @@ var M, a, b, arr, m, C = function C() {
|
||||
_class_call_check(this, D);
|
||||
};
|
||||
for(!function(M) {
|
||||
var F2 = function(x) {
|
||||
return x.toString();
|
||||
}, A = function A() {
|
||||
M.A = function A() {
|
||||
"use strict";
|
||||
_class_call_check(this, A);
|
||||
}, M.F2 = function(x) {
|
||||
return x.toString();
|
||||
};
|
||||
M.A = A, M.F2 = F2;
|
||||
}(M || (M = {}));;);
|
||||
for(;;);
|
||||
for(;;);
|
||||
|
@ -1,10 +1,7 @@
|
||||
//// [forgottenNew.ts]
|
||||
var Tools;
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
!function(Tools) {
|
||||
var NullLogger = function NullLogger() {
|
||||
"use strict";
|
||||
_class_call_check(this, NullLogger);
|
||||
};
|
||||
Tools.NullLogger = NullLogger;
|
||||
}(Tools || (Tools = {})), Tools.NullLogger();
|
||||
(Tools || (Tools = {})).NullLogger = function NullLogger() {
|
||||
"use strict";
|
||||
_class_call_check(this, NullLogger);
|
||||
}, Tools.NullLogger();
|
||||
|
@ -2,7 +2,7 @@
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
import _inherits from "@swc/helpers/src/_inherits.mjs";
|
||||
import _create_super from "@swc/helpers/src/_create_super.mjs";
|
||||
var y, y1, Base = function Base() {
|
||||
var Base = function Base() {
|
||||
"use strict";
|
||||
_class_call_check(this, Base);
|
||||
}, Derived = function(Base) {
|
||||
@ -22,8 +22,4 @@ var y, y1, Base = function Base() {
|
||||
}
|
||||
return Derived2;
|
||||
}(Base);
|
||||
new Derived(), new Derived2(), new Derived(), new Derived2(), new Derived(), new Derived2(), y = function(x) {
|
||||
return x;
|
||||
}, new Base(), y(null), y1 = function(x) {
|
||||
return x;
|
||||
}, new Derived(), y1(null);
|
||||
new Derived(), new Derived2(), new Derived(), new Derived2(), new Derived(), new Derived2(), new Base(), new Derived();
|
||||
|
@ -5,16 +5,6 @@ import _create_super from "@swc/helpers/src/_create_super.mjs";
|
||||
var A = function A() {
|
||||
"use strict";
|
||||
_class_call_check(this, A);
|
||||
}, B2 = function B2() {
|
||||
"use strict";
|
||||
_class_call_check(this, B2), this.anon = function(A) {
|
||||
_inherits(_class, A);
|
||||
var _super = _create_super(_class);
|
||||
function _class() {
|
||||
return _class_call_check(this, _class), _super.apply(this, arguments);
|
||||
}
|
||||
return _class;
|
||||
}(A);
|
||||
}, K = function(_superClass) {
|
||||
"use strict";
|
||||
_inherits(K, _superClass);
|
||||
@ -39,7 +29,17 @@ var A = function A() {
|
||||
return _class_call_check(this, C), _super.apply(this, arguments);
|
||||
}
|
||||
return C;
|
||||
}(new B2().anon), S = function(b3Number) {
|
||||
}(new function B2() {
|
||||
"use strict";
|
||||
_class_call_check(this, B2), this.anon = function(A) {
|
||||
_inherits(_class, A);
|
||||
var _super = _create_super(_class);
|
||||
function _class() {
|
||||
return _class_call_check(this, _class), _super.apply(this, arguments);
|
||||
}
|
||||
return _class;
|
||||
}(A);
|
||||
}().anon), S = function(b3Number) {
|
||||
"use strict";
|
||||
_inherits(S, b3Number);
|
||||
var _super = _create_super(S);
|
||||
|
@ -10,21 +10,19 @@ var M, N, C = function C() {
|
||||
_class_call_check(this, D);
|
||||
};
|
||||
for(!function(M) {
|
||||
var F2 = function(x) {
|
||||
return x.toString();
|
||||
}, A = function A() {
|
||||
M.A = function A() {
|
||||
"use strict";
|
||||
_class_call_check(this, A);
|
||||
}, M.F2 = function(x) {
|
||||
return x.toString();
|
||||
};
|
||||
M.A = A, M.F2 = F2;
|
||||
}(M || (M = {})), function(N) {
|
||||
var F2 = function(x) {
|
||||
return x.toString();
|
||||
}, A = function A() {
|
||||
N.A = function A() {
|
||||
"use strict";
|
||||
_class_call_check(this, A);
|
||||
}, N.F2 = function(x) {
|
||||
return x.toString();
|
||||
};
|
||||
N.A = A, N.F2 = F2;
|
||||
}(N || (N = {}));;);
|
||||
for(;;);
|
||||
for(;;);
|
||||
|
@ -1,12 +1,9 @@
|
||||
//// [importAliasIdentifiers.ts]
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
!function(moduleA) {
|
||||
var Point = function Point(x, y) {
|
||||
"use strict";
|
||||
_class_call_check(this, Point), this.x = x, this.y = y;
|
||||
};
|
||||
moduleA.Point = Point;
|
||||
}(moduleA || (moduleA = {}));
|
||||
(moduleA || (moduleA = {})).Point = function Point(x, y) {
|
||||
"use strict";
|
||||
_class_call_check(this, Point), this.x = x, this.y = y;
|
||||
};
|
||||
var moduleA, clodule = function clodule() {
|
||||
"use strict";
|
||||
_class_call_check(this, clodule);
|
||||
|
@ -8,8 +8,8 @@ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
};
|
||||
A.Point = Point, A.Origin = new Point(0, 0);
|
||||
}(A || (A = {})), C || (C = {}), D || (D = {}), new A.Point(1, 1), function(E) {
|
||||
var xDist = function(x) {
|
||||
var a = A;
|
||||
E.xDist = function(x) {
|
||||
return a.Origin.x - x.x;
|
||||
}, a = A;
|
||||
E.xDist = xDist;
|
||||
};
|
||||
}(E || (E = {}));
|
||||
|
@ -1,8 +1,5 @@
|
||||
//// [importStatementsInterfaces.ts]
|
||||
var C, D, E;
|
||||
C || (C = {}), D || (D = {}), function(E) {
|
||||
var xDist = function(x) {
|
||||
return 0 - x.x;
|
||||
};
|
||||
E.xDist = xDist;
|
||||
}(E || (E = {}));
|
||||
C || (C = {}), D || (D = {}), (E || (E = {})).xDist = function(x) {
|
||||
return 0 - x.x;
|
||||
};
|
||||
|
@ -6,13 +6,13 @@ var ANY, ANY1, M, ANY2 = [
|
||||
], obj = {
|
||||
x: 1,
|
||||
y: null
|
||||
}, A = function A() {
|
||||
"use strict";
|
||||
_class_call_check(this, A);
|
||||
};
|
||||
!function(M) {
|
||||
var n;
|
||||
M.n = n;
|
||||
}(M || (M = {}));
|
||||
var objA = new A();
|
||||
var objA = new function A() {
|
||||
"use strict";
|
||||
_class_call_check(this, A);
|
||||
}();
|
||||
++ANY, ++ANY1, ANY1++, ANY1++, ++ANY2[0], ++obj.x, ++obj.y, ++objA.a, ++M.n, ANY2[0]++, obj.x++, obj.y++, objA.a++, M.n++, ++ANY, ++ANY1, ++ANY2[0], ++ANY, ++ANY1, ++objA.a, ++M.n, ANY++, ANY1++, ANY2[0]++, ANY++, ANY1++, objA.a++, M.n++;
|
||||
|
@ -3,13 +3,13 @@ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var NUMBER, M, NUMBER1 = [
|
||||
1,
|
||||
2
|
||||
], A = function A() {
|
||||
"use strict";
|
||||
_class_call_check(this, A);
|
||||
};
|
||||
];
|
||||
!function(M) {
|
||||
var n;
|
||||
M.n = n;
|
||||
}(M || (M = {}));
|
||||
var objA = new A();
|
||||
var objA = new function A() {
|
||||
"use strict";
|
||||
_class_call_check(this, A);
|
||||
}();
|
||||
++NUMBER, NUMBER++, ++objA.a, ++M.n, objA.a++, M.n++, NUMBER1[0]++, ++NUMBER, ++NUMBER1[0], ++objA.a, ++M.n, ++objA.a, M.n, NUMBER++, NUMBER1[0]++, objA.a++, M.n++, objA.a++, M.n++;
|
||||
|
@ -1,9 +1,9 @@
|
||||
//// [interfaceWithPropertyOfEveryType.ts]
|
||||
var M, E;
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var M, E, C = function C() {
|
||||
"use strict";
|
||||
_class_call_check(this, C);
|
||||
};
|
||||
(M || (M = {})).y = 1, function(E) {
|
||||
E[E.A = 0] = "A";
|
||||
}(E || (E = {})), new C(), E.A;
|
||||
}(E || (E = {})), new function C() {
|
||||
"use strict";
|
||||
_class_call_check(this, C);
|
||||
}(), E.A;
|
||||
|
@ -18,11 +18,10 @@ var M, C = function C() {
|
||||
_class_call_check(this, D);
|
||||
};
|
||||
!function(M) {
|
||||
var F2 = function(x) {
|
||||
return x.toString();
|
||||
}, A = function A() {
|
||||
M.A = function A() {
|
||||
"use strict";
|
||||
_class_call_check(this, A);
|
||||
}, M.F2 = function(x) {
|
||||
return x.toString();
|
||||
};
|
||||
M.A = A, M.F2 = F2;
|
||||
}(M || (M = {})), new C(), new D(), new C(), new C2(), new C(), new C2(), new D(), new D(), M.A;
|
||||
|
@ -2,23 +2,21 @@
|
||||
var A, M2;
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
!function(A) {
|
||||
var B, C, Point;
|
||||
C = (B = A.B || (A.B = {})).C || (B.C = {}), Point = function Point() {
|
||||
var B;
|
||||
((B = A.B || (A.B = {})).C || (B.C = {})).Point = function Point() {
|
||||
"use strict";
|
||||
_class_call_check(this, Point);
|
||||
}, C.Point = Point;
|
||||
};
|
||||
}(A || (A = {})), function(A) {
|
||||
var B, C;
|
||||
B = A.B || (A.B = {}), C = function C() {
|
||||
(A.B || (A.B = {})).C = function C() {
|
||||
"use strict";
|
||||
_class_call_check(this, C);
|
||||
}, B.C = C;
|
||||
};
|
||||
}(A || (A = {})), function(M2) {
|
||||
var X, Point;
|
||||
X = M2.X || (M2.X = {}), Point = function Point() {
|
||||
(M2.X || (M2.X = {})).Point = function Point() {
|
||||
"use strict";
|
||||
_class_call_check(this, Point);
|
||||
}, X.Point = Point;
|
||||
};
|
||||
}(M2 || (M2 = {})), function(M2) {
|
||||
var Point;
|
||||
(M2.X || (M2.X = {})).Point = Point;
|
||||
|
@ -1,10 +1,9 @@
|
||||
//// [bar.js]
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var Bar = function Bar() {
|
||||
module.exports = function Bar() {
|
||||
"use strict";
|
||||
_class_call_check(this, Bar);
|
||||
};
|
||||
module.exports = Bar;
|
||||
//// [cls.js]
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
import _inherits from "@swc/helpers/src/_inherits.mjs";
|
||||
|
@ -3,11 +3,11 @@
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: !0
|
||||
});
|
||||
var _classCallCheck = require("@swc/helpers/lib/_class_call_check.js").default, Thing = function Thing() {
|
||||
_classCallCheck(this, Thing);
|
||||
};
|
||||
var _classCallCheck = require("@swc/helpers/lib/_class_call_check.js").default;
|
||||
module.exports = {
|
||||
Thing: Thing
|
||||
Thing: function Thing() {
|
||||
_classCallCheck(this, Thing);
|
||||
}
|
||||
};
|
||||
//// [reexport.js]
|
||||
"use strict";
|
||||
|
@ -1,9 +1,8 @@
|
||||
//// [index1.js]
|
||||
var x = function(a) {
|
||||
return "";
|
||||
};
|
||||
module.exports = {
|
||||
x: x,
|
||||
x: function(a) {
|
||||
return "";
|
||||
},
|
||||
b: function() {
|
||||
return 0;
|
||||
}
|
||||
|
@ -1,7 +1,6 @@
|
||||
//// [index.js]
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var Foo = function Foo() {
|
||||
module.exports = new function Foo() {
|
||||
"use strict";
|
||||
_class_call_check(this, Foo);
|
||||
};
|
||||
module.exports = new Foo();
|
||||
}();
|
||||
|
@ -6,8 +6,8 @@ module.exports = function Obj() {
|
||||
};
|
||||
//// [index.js]
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var Obj = require("./obj"), Container = function Container() {
|
||||
var Obj = require("./obj");
|
||||
module.exports = function Container() {
|
||||
"use strict";
|
||||
_class_call_check(this, Container), this.usage = new Obj();
|
||||
};
|
||||
module.exports = Container;
|
||||
|
@ -1,10 +1,9 @@
|
||||
//// [cls.js]
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var Foo = function Foo() {
|
||||
module.exports = function Foo() {
|
||||
"use strict";
|
||||
_class_call_check(this, Foo);
|
||||
};
|
||||
module.exports = Foo, module.exports.Strings = {
|
||||
}, module.exports.Strings = {
|
||||
a: "A",
|
||||
b: "B"
|
||||
};
|
||||
|
@ -1,8 +1,7 @@
|
||||
//// [index.js]
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var A = function A() {
|
||||
export var el = null;
|
||||
export default function A() {
|
||||
"use strict";
|
||||
_class_call_check(this, A);
|
||||
};
|
||||
export var el = null;
|
||||
export default A;
|
||||
|
@ -1,10 +1,9 @@
|
||||
//// [cls.js]
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var Foo = function Foo() {
|
||||
module.exports = function Foo() {
|
||||
"use strict";
|
||||
_class_call_check(this, Foo);
|
||||
};
|
||||
module.exports = Foo;
|
||||
//// [usage.js]
|
||||
import { default as Fooa } from "./cls";
|
||||
export var x = new Fooa();
|
||||
|
@ -1,11 +1,10 @@
|
||||
//// [rectangle.js]
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var Rectangle = function Rectangle() {
|
||||
"use strict";
|
||||
_class_call_check(this, Rectangle), console.log("I'm a rectangle!");
|
||||
};
|
||||
module.exports = {
|
||||
Rectangle: Rectangle
|
||||
Rectangle: function Rectangle() {
|
||||
"use strict";
|
||||
_class_call_check(this, Rectangle), console.log("I'm a rectangle!");
|
||||
}
|
||||
};
|
||||
//// [index.js]
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
|
@ -2,15 +2,14 @@
|
||||
export { };
|
||||
//// [mixed.js]
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var ExportedThing = function ExportedThing() {
|
||||
"use strict";
|
||||
_class_call_check(this, ExportedThing), this.z = "ok";
|
||||
};
|
||||
module.exports = {
|
||||
doTheThing: function(x) {
|
||||
return {
|
||||
x: "" + x
|
||||
};
|
||||
},
|
||||
ExportedThing: ExportedThing
|
||||
ExportedThing: function ExportedThing() {
|
||||
"use strict";
|
||||
_class_call_check(this, ExportedThing), this.z = "ok";
|
||||
}
|
||||
};
|
||||
|
@ -10,10 +10,9 @@ var Conn = function() {
|
||||
module.exports = Conn;
|
||||
//// [usage.js]
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var Wrap = function Wrap(c) {
|
||||
"use strict";
|
||||
_class_call_check(this, Wrap), this.connItem = c.item, this.another = "";
|
||||
};
|
||||
module.exports = {
|
||||
Wrap: Wrap
|
||||
Wrap: function Wrap(c) {
|
||||
"use strict";
|
||||
_class_call_check(this, Wrap), this.connItem = c.item, this.another = "";
|
||||
}
|
||||
};
|
||||
|
@ -15,9 +15,7 @@ module.exports = {
|
||||
//// [index.js]
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var ref = require("./module.js");
|
||||
ref.taskGroups, ref.taskNameToGroup;
|
||||
var MainThreadTasks = function MainThreadTasks(x, y) {
|
||||
ref.taskGroups, ref.taskNameToGroup, module.exports = function MainThreadTasks(x, y) {
|
||||
"use strict";
|
||||
_class_call_check(this, MainThreadTasks);
|
||||
};
|
||||
module.exports = MainThreadTasks;
|
||||
|
@ -10,18 +10,10 @@ var Private = function Private() {
|
||||
"use strict";
|
||||
for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
_class_call_check(this, Protected);
|
||||
}, Protected2 = function Protected2() {
|
||||
"use strict";
|
||||
for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
_class_call_check(this, Protected2);
|
||||
}, Public = function Public() {
|
||||
"use strict";
|
||||
for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
_class_call_check(this, Public);
|
||||
}, Public2 = function Public2() {
|
||||
"use strict";
|
||||
for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
_class_call_check(this, Public2);
|
||||
};
|
||||
Mix(Private, function Private2() {
|
||||
"use strict";
|
||||
@ -40,7 +32,11 @@ var C4 = function(_superClass) {
|
||||
}, C4.g = function() {
|
||||
C4.s, C5.s, C6.s;
|
||||
}, C4;
|
||||
}(Mix(Protected, Protected2)), C5 = function(_superClass) {
|
||||
}(Mix(Protected, function Protected2() {
|
||||
"use strict";
|
||||
for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
_class_call_check(this, Protected2);
|
||||
})), C5 = function(_superClass) {
|
||||
"use strict";
|
||||
_inherits(C5, _superClass);
|
||||
var _super = _create_super(C5);
|
||||
@ -64,4 +60,8 @@ var C4 = function(_superClass) {
|
||||
}, C6.g = function() {
|
||||
C4.s, C5.s, C6.s;
|
||||
}, C6;
|
||||
}(Mix(Public, Public2));
|
||||
}(Mix(Public, function Public2() {
|
||||
"use strict";
|
||||
for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
||||
_class_call_check(this, Public2);
|
||||
}));
|
||||
|
@ -1,9 +1,8 @@
|
||||
//// [bug24062.js]
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var C = function C() {
|
||||
"use strict";
|
||||
_class_call_check(this, C);
|
||||
};
|
||||
module.exports = {
|
||||
C: C
|
||||
C: function C() {
|
||||
"use strict";
|
||||
_class_call_check(this, C);
|
||||
}
|
||||
};
|
||||
|
@ -7,9 +7,7 @@ import _create_super from "@swc/helpers/src/_create_super.mjs";
|
||||
var Module, Color, Color1;
|
||||
Module || (Module = {}), (Color1 = Color || (Color = {}))[Color1.Blue = 0] = "Blue", Color1[Color1.Red = 1] = "Red";
|
||||
}(A || (A = {})), function(Y) {
|
||||
var Color, F = function(s) {
|
||||
return 2;
|
||||
}, A = function A() {
|
||||
var Color, A = function A() {
|
||||
"use strict";
|
||||
_class_call_check(this, A);
|
||||
};
|
||||
@ -38,7 +36,9 @@ import _create_super from "@swc/helpers/src/_create_super.mjs";
|
||||
}
|
||||
return BB;
|
||||
}(A);
|
||||
Y.BB = BB, Y.Module || (Y.Module = {}), (Color = Y.Color || (Y.Color = {}))[Color.Blue = 0] = "Blue", Color[Color.Red = 1] = "Red", Y.x = 12, Y.F = F, Y.array = null, Y.fn = function(s) {
|
||||
Y.BB = BB, Y.Module || (Y.Module = {}), (Color = Y.Color || (Y.Color = {}))[Color.Blue = 0] = "Blue", Color[Color.Red = 1] = "Red", Y.x = 12, Y.F = function(s) {
|
||||
return 2;
|
||||
}, Y.array = null, Y.fn = function(s) {
|
||||
return "hello " + s;
|
||||
}, Y.ol = {
|
||||
s: "hello",
|
||||
|
@ -1,12 +1,9 @@
|
||||
//// [a.ts]
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
export var types;
|
||||
!function(types) {
|
||||
var A = function A() {
|
||||
"use strict";
|
||||
_class_call_check(this, A);
|
||||
};
|
||||
types.A = A;
|
||||
}(types || (types = {}));
|
||||
(types || (types = {})).A = function A() {
|
||||
"use strict";
|
||||
_class_call_check(this, A);
|
||||
};
|
||||
//// [b.ts]
|
||||
export { };
|
||||
|
@ -1,12 +1,11 @@
|
||||
//// [newOperatorConformance.ts]
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var anyCtor, anyCtor1, nestedCtor, T = function T(n) {
|
||||
"use strict";
|
||||
_class_call_check(this, T);
|
||||
};
|
||||
new function C0() {
|
||||
"use strict";
|
||||
_class_call_check(this, C0);
|
||||
}, new T, new anyCtor, new anyCtor1(void 0);
|
||||
var nested = new new new nestedCtor()()();
|
||||
}, new function T(n) {
|
||||
"use strict";
|
||||
_class_call_check(this, T);
|
||||
}, new anyCtor, new anyCtor1(void 0);
|
||||
var anyCtor, anyCtor1, nested = new new new (void 0)()()();
|
||||
new nested(), new nested();
|
||||
|
@ -9,10 +9,7 @@ M.a, m.a, function(M2) {
|
||||
y: 0
|
||||
};
|
||||
};
|
||||
}(M2 || (M2 = {})), function(M3) {
|
||||
var Utils = function Utils() {
|
||||
"use strict";
|
||||
_class_call_check(this, Utils);
|
||||
};
|
||||
M3.Utils = Utils;
|
||||
}(M3 || (M3 = {}));
|
||||
}(M2 || (M2 = {})), (M3 || (M3 = {})).Utils = function Utils() {
|
||||
"use strict";
|
||||
_class_call_check(this, Utils);
|
||||
};
|
||||
|
@ -3,10 +3,10 @@ export var CompilerDiagnostics;
|
||||
!function(CompilerDiagnostics) {
|
||||
var Alert = function(output) {
|
||||
diagnosticWriter && diagnosticWriter.Alert(output);
|
||||
}, debugPrint = function(s) {
|
||||
debug && Alert(s);
|
||||
}, assert = function(condition, s) {
|
||||
debug && !condition && Alert(s);
|
||||
}, debug = CompilerDiagnostics.debug = !1, diagnosticWriter = CompilerDiagnostics.diagnosticWriter = null;
|
||||
CompilerDiagnostics.analysisPass = 0, CompilerDiagnostics.Alert = Alert, CompilerDiagnostics.debugPrint = debugPrint, CompilerDiagnostics.assert = assert;
|
||||
CompilerDiagnostics.analysisPass = 0, CompilerDiagnostics.Alert = Alert, CompilerDiagnostics.debugPrint = function(s) {
|
||||
debug && Alert(s);
|
||||
}, CompilerDiagnostics.assert = function(condition, s) {
|
||||
debug && !condition && Alert(s);
|
||||
};
|
||||
}(CompilerDiagnostics || (CompilerDiagnostics = {}));
|
||||
|
@ -2,50 +2,6 @@
|
||||
var TypeScript;
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
!function(TypeScript) {
|
||||
var timeFunction = function(logger, funcDescription, func) {
|
||||
var start = +new Date(), result = func(), end = +new Date();
|
||||
return logger.log(funcDescription + " completed in " + (end - start) + " msec"), result;
|
||||
}, stringToLiteral = function(value, length) {
|
||||
var result = "", addChar = function(index) {
|
||||
switch(value.charCodeAt(index)){
|
||||
case 0x09:
|
||||
result += "\\t";
|
||||
break;
|
||||
case 0x0a:
|
||||
result += "\\n";
|
||||
break;
|
||||
case 0x0b:
|
||||
result += "\\v";
|
||||
break;
|
||||
case 0x0c:
|
||||
result += "\\f";
|
||||
break;
|
||||
case 0x0d:
|
||||
result += "\\r";
|
||||
break;
|
||||
case 0x22:
|
||||
result += '\\"';
|
||||
break;
|
||||
case 0x27:
|
||||
result += "\\'";
|
||||
break;
|
||||
case 0x5c:
|
||||
result += "\\";
|
||||
break;
|
||||
default:
|
||||
result += value.charAt(index);
|
||||
}
|
||||
};
|
||||
if (value.length > length) {
|
||||
for(var mid = length >> 1, i = 0; i < mid; i++)addChar(i);
|
||||
result += "(...)";
|
||||
for(var i = value.length - mid; i < value.length; i++)addChar(i);
|
||||
} else {
|
||||
length = value.length;
|
||||
for(var i = 0; i < length; i++)addChar(i);
|
||||
}
|
||||
return result;
|
||||
};
|
||||
!function(CompilerDiagnostics) {
|
||||
var debug = CompilerDiagnostics.debug = !1, diagnosticWriter = CompilerDiagnostics.diagnosticWriter = null;
|
||||
function Alert(output) {
|
||||
@ -117,5 +73,48 @@ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
this.logContents.push(s);
|
||||
}, BufferedLogger;
|
||||
}();
|
||||
TypeScript.BufferedLogger = BufferedLogger, TypeScript.timeFunction = timeFunction, TypeScript.stringToLiteral = stringToLiteral;
|
||||
TypeScript.BufferedLogger = BufferedLogger, TypeScript.timeFunction = function(logger, funcDescription, func) {
|
||||
var start = +new Date(), result = func(), end = +new Date();
|
||||
return logger.log(funcDescription + " completed in " + (end - start) + " msec"), result;
|
||||
}, TypeScript.stringToLiteral = function(value, length) {
|
||||
var result = "", addChar = function(index) {
|
||||
switch(value.charCodeAt(index)){
|
||||
case 0x09:
|
||||
result += "\\t";
|
||||
break;
|
||||
case 0x0a:
|
||||
result += "\\n";
|
||||
break;
|
||||
case 0x0b:
|
||||
result += "\\v";
|
||||
break;
|
||||
case 0x0c:
|
||||
result += "\\f";
|
||||
break;
|
||||
case 0x0d:
|
||||
result += "\\r";
|
||||
break;
|
||||
case 0x22:
|
||||
result += '\\"';
|
||||
break;
|
||||
case 0x27:
|
||||
result += "\\'";
|
||||
break;
|
||||
case 0x5c:
|
||||
result += "\\";
|
||||
break;
|
||||
default:
|
||||
result += value.charAt(index);
|
||||
}
|
||||
};
|
||||
if (value.length > length) {
|
||||
for(var mid = length >> 1, i = 0; i < mid; i++)addChar(i);
|
||||
result += "(...)";
|
||||
for(var i = value.length - mid; i < value.length; i++)addChar(i);
|
||||
} else {
|
||||
length = value.length;
|
||||
for(var i = 0; i < length; i++)addChar(i);
|
||||
}
|
||||
return result;
|
||||
};
|
||||
}(TypeScript || (TypeScript = {}));
|
||||
|
File diff suppressed because one or more lines are too long
@ -7,11 +7,11 @@ var TypeScript;
|
||||
return callback[callbackString] ? callback[callbackString](pre, ast) : !callback.DefaultCallback || callback.DefaultCallback(pre, ast);
|
||||
}
|
||||
AstWalkerWithDetailCallback.walk = function(script, callback) {
|
||||
var pre = function(cur, parent) {
|
||||
var walker = TypeScript.getAstWalkerFactory().getWalker(function(cur, parent) {
|
||||
return walker.options.goChildren = AstWalkerCallback(!0, cur, callback), cur;
|
||||
}, post = function(cur, parent) {
|
||||
}, function(cur, parent) {
|
||||
return AstWalkerCallback(!1, cur, callback), cur;
|
||||
}, walker = TypeScript.getAstWalkerFactory().getWalker(pre, post);
|
||||
});
|
||||
walker.walk(script, null);
|
||||
};
|
||||
}(TypeScript1.AstWalkerWithDetailCallback || (TypeScript1.AstWalkerWithDetailCallback = {}));
|
||||
|
@ -6,43 +6,12 @@ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
return null === items || 0 === items.length ? null : items[items.length - 1];
|
||||
}, max = function(a, b) {
|
||||
return a >= b ? a : b;
|
||||
}, min = function(a, b) {
|
||||
return a <= b ? a : b;
|
||||
}, isValidAstNode = function(ast) {
|
||||
return null !== ast && -1 !== ast.minChar && -1 !== ast.limChar;
|
||||
}, getAstPathToPosition = function(script, pos) {
|
||||
var options = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : GetAstPathOptions1.Default, lookInComments = function(comments) {
|
||||
if (comments && comments.length > 0) for(var i = 0; i < comments.length; i++){
|
||||
var minChar = comments[i].minChar, limChar = comments[i].limChar;
|
||||
!comments[i].isBlockComment && limChar++, pos >= minChar && pos < limChar && ctx.path.push(comments[i]);
|
||||
}
|
||||
}, pre = function(cur, parent, walker) {
|
||||
if (isValidAstNode(cur)) {
|
||||
var inclusive = hasFlag(options, GetAstPathOptions1.EdgeInclusive) || cur.nodeType === TypeScript.NodeType.Name || pos === script.limChar, minChar = cur.minChar, limChar = cur.limChar + (inclusive ? 1 : 0);
|
||||
if (pos >= minChar && pos < limChar) {
|
||||
var previous = ctx.path.ast();
|
||||
(null == previous || cur.minChar >= previous.minChar && cur.limChar <= previous.limChar) && ctx.path.push(cur);
|
||||
}
|
||||
pos < limChar && lookInComments(cur.preComments), pos >= minChar && lookInComments(cur.postComments), hasFlag(options, GetAstPathOptions1.DontPruneSearchBasedOnPosition) || (walker.options.goChildren = minChar <= pos && pos <= limChar);
|
||||
}
|
||||
return cur;
|
||||
}, ctx = new AstPathContext();
|
||||
return TypeScript.getAstWalkerFactory().walk(script, pre, null, null, ctx), ctx.path;
|
||||
}, getTokenizationOffset = function(script, position) {
|
||||
var bestOffset = 0, pre = function(cur, parent, walker) {
|
||||
return TypeScript.isValidAstNode(cur) && (cur.minChar <= position && (bestOffset = max(bestOffset, cur.minChar)), (cur.minChar > position || cur.limChar < bestOffset) && (walker.options.goChildren = !1)), cur;
|
||||
};
|
||||
return TypeScript.getAstWalkerFactory().walk(script, pre), bestOffset;
|
||||
}, walkAST = function(ast, callback) {
|
||||
var pre = function(cur, parent, walker) {
|
||||
var path = walker.state;
|
||||
return path.push(cur), callback(path, walker), cur;
|
||||
}, post = function(cur, parent, walker) {
|
||||
return walker.state.pop(), cur;
|
||||
}, path = new AstPath();
|
||||
TypeScript.getAstWalkerFactory().walk(ast, pre, post, null, path);
|
||||
};
|
||||
TypeScript1.lastOf = lastOf, TypeScript1.max = max, TypeScript1.min = min;
|
||||
TypeScript1.lastOf = lastOf, TypeScript1.max = max, TypeScript1.min = function(a, b) {
|
||||
return a <= b ? a : b;
|
||||
};
|
||||
var AstPath = function() {
|
||||
"use strict";
|
||||
function AstPath() {
|
||||
@ -189,5 +158,36 @@ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
"use strict";
|
||||
_class_call_check(this, AstPathContext), this.path = new TypeScript.AstPath();
|
||||
};
|
||||
TypeScript1.AstPathContext = AstPathContext, (GetAstPathOptions = GetAstPathOptions1 = TypeScript1.GetAstPathOptions || (TypeScript1.GetAstPathOptions = {}))[GetAstPathOptions.Default = 0] = "Default", GetAstPathOptions[GetAstPathOptions.EdgeInclusive = 1] = "EdgeInclusive", GetAstPathOptions[GetAstPathOptions.DontPruneSearchBasedOnPosition = 2] = "DontPruneSearchBasedOnPosition", TypeScript1.getAstPathToPosition = getAstPathToPosition, TypeScript1.getTokenizationOffset = getTokenizationOffset, TypeScript1.walkAST = walkAST;
|
||||
TypeScript1.AstPathContext = AstPathContext, (GetAstPathOptions = GetAstPathOptions1 = TypeScript1.GetAstPathOptions || (TypeScript1.GetAstPathOptions = {}))[GetAstPathOptions.Default = 0] = "Default", GetAstPathOptions[GetAstPathOptions.EdgeInclusive = 1] = "EdgeInclusive", GetAstPathOptions[GetAstPathOptions.DontPruneSearchBasedOnPosition = 2] = "DontPruneSearchBasedOnPosition", TypeScript1.getAstPathToPosition = function(script, pos) {
|
||||
var options = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : GetAstPathOptions1.Default, lookInComments = function(comments) {
|
||||
if (comments && comments.length > 0) for(var i = 0; i < comments.length; i++){
|
||||
var minChar = comments[i].minChar, limChar = comments[i].limChar;
|
||||
!comments[i].isBlockComment && limChar++, pos >= minChar && pos < limChar && ctx.path.push(comments[i]);
|
||||
}
|
||||
}, ctx = new AstPathContext();
|
||||
return TypeScript.getAstWalkerFactory().walk(script, function(cur, parent, walker) {
|
||||
if (isValidAstNode(cur)) {
|
||||
var inclusive = hasFlag(options, GetAstPathOptions1.EdgeInclusive) || cur.nodeType === TypeScript.NodeType.Name || pos === script.limChar, minChar = cur.minChar, limChar = cur.limChar + (inclusive ? 1 : 0);
|
||||
if (pos >= minChar && pos < limChar) {
|
||||
var previous = ctx.path.ast();
|
||||
(null == previous || cur.minChar >= previous.minChar && cur.limChar <= previous.limChar) && ctx.path.push(cur);
|
||||
}
|
||||
pos < limChar && lookInComments(cur.preComments), pos >= minChar && lookInComments(cur.postComments), hasFlag(options, GetAstPathOptions1.DontPruneSearchBasedOnPosition) || (walker.options.goChildren = minChar <= pos && pos <= limChar);
|
||||
}
|
||||
return cur;
|
||||
}, null, null, ctx), ctx.path;
|
||||
}, TypeScript1.getTokenizationOffset = function(script, position) {
|
||||
var bestOffset = 0;
|
||||
return TypeScript.getAstWalkerFactory().walk(script, function(cur, parent, walker) {
|
||||
return TypeScript.isValidAstNode(cur) && (cur.minChar <= position && (bestOffset = max(bestOffset, cur.minChar)), (cur.minChar > position || cur.limChar < bestOffset) && (walker.options.goChildren = !1)), cur;
|
||||
}), bestOffset;
|
||||
}, TypeScript1.walkAST = function(ast, callback) {
|
||||
var path = new AstPath();
|
||||
TypeScript.getAstWalkerFactory().walk(ast, function(cur, parent, walker) {
|
||||
var path = walker.state;
|
||||
return path.push(cur), callback(path, walker), cur;
|
||||
}, function(cur, parent, walker) {
|
||||
return walker.state.pop(), cur;
|
||||
}, null, path);
|
||||
};
|
||||
}(TypeScript || (TypeScript = {}));
|
||||
|
File diff suppressed because one or more lines are too long
@ -2,12 +2,7 @@
|
||||
var TypeScript;
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
!function(TypeScript) {
|
||||
var prePrintAST = function(ast, parent, walker) {
|
||||
var pc = walker.state;
|
||||
return ast.print(pc), pc.increaseIndent(), ast;
|
||||
}, postPrintAST = function(ast, parent, walker) {
|
||||
return walker.state.decreaseIndent(), ast;
|
||||
}, PrintContext = function() {
|
||||
var PrintContext = function() {
|
||||
"use strict";
|
||||
function PrintContext(outfile, parser) {
|
||||
_class_call_check(this, PrintContext), this.outfile = outfile, this.parser = parser, this.builder = "", this.indent1 = " ", this.indentStrings = [], this.indentAmt = 0;
|
||||
@ -32,5 +27,10 @@ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
this.builder += s, this.outfile.WriteLine(this.builder), this.builder = "";
|
||||
}, PrintContext;
|
||||
}();
|
||||
TypeScript.PrintContext = PrintContext, TypeScript.prePrintAST = prePrintAST, TypeScript.postPrintAST = postPrintAST;
|
||||
TypeScript.PrintContext = PrintContext, TypeScript.prePrintAST = function(ast, parent, walker) {
|
||||
var pc = walker.state;
|
||||
return ast.print(pc), pc.increaseIndent(), ast;
|
||||
}, TypeScript.postPrintAST = function(ast, parent, walker) {
|
||||
return walker.state.decreaseIndent(), ast;
|
||||
};
|
||||
}(TypeScript || (TypeScript = {}));
|
||||
|
@ -2,15 +2,7 @@
|
||||
var TypeScript;
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
!function(TypeScript1) {
|
||||
var preFindMemberScope = function(ast, parent, walker) {
|
||||
var memScope = walker.state;
|
||||
return hasFlag(ast.flags, memScope.matchFlag) && (memScope.pos < 0 || memScope.pos == ast.limChar) && (memScope.ast = ast, null == ast.type && memScope.pos >= 0 && memScope.flow.inScopeTypeCheck(ast, memScope.scope), memScope.type = ast.type, memScope.options.stopWalk()), ast;
|
||||
}, pushTypeCollectionScope = function(container, valueMembers, ambientValueMembers, enclosedTypes, ambientEnclosedTypes, context, thisType, classType, moduleDecl) {
|
||||
var builder = new SymbolScopeBuilder(valueMembers, ambientValueMembers, enclosedTypes, ambientEnclosedTypes, null, container), chain = new ScopeChain(container, context.scopeChain, builder);
|
||||
chain.thisType = thisType, chain.classType = classType, chain.moduleDecl = moduleDecl, context.scopeChain = chain;
|
||||
}, popTypeCollectionScope = function(context) {
|
||||
context.scopeChain = context.scopeChain.previous;
|
||||
}, preFindEnclosingScope = function(ast, parent, walker) {
|
||||
var preFindEnclosingScope = function(ast, parent, walker) {
|
||||
var context = walker.state, minChar = ast.minChar, limChar = ast.limChar;
|
||||
if (ast.nodeType == NodeType.Script && context.pos > limChar && (limChar = context.pos), minChar <= context.pos && limChar >= context.pos) {
|
||||
switch(ast.nodeType){
|
||||
@ -49,19 +41,14 @@ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
walker.options.goChildren = !0;
|
||||
} else walker.options.goChildren = !1;
|
||||
return ast;
|
||||
}, findEnclosingScopeAt = function(logger, script, text, pos, isMemberCompletion) {
|
||||
var context = new EnclosingScopeContext(logger, script, text, pos, isMemberCompletion);
|
||||
return (TypeScript.getAstWalkerFactory().walk(script, preFindEnclosingScope, null, null, context), null === context.scopeStartAST) ? null : context;
|
||||
}, TypeCollectionContext = function TypeCollectionContext(scopeChain, checker) {
|
||||
};
|
||||
TypeScript1.TypeCollectionContext = function TypeCollectionContext(scopeChain, checker) {
|
||||
"use strict";
|
||||
_class_call_check(this, TypeCollectionContext), this.scopeChain = scopeChain, this.checker = checker, this.script = null;
|
||||
};
|
||||
TypeScript1.TypeCollectionContext = TypeCollectionContext;
|
||||
var MemberScopeContext = function MemberScopeContext(flow, pos, matchFlag) {
|
||||
}, TypeScript1.MemberScopeContext = function MemberScopeContext(flow, pos, matchFlag) {
|
||||
"use strict";
|
||||
_class_call_check(this, MemberScopeContext), this.flow = flow, this.pos = pos, this.matchFlag = matchFlag, this.type = null, this.ast = null, this.options = new AstWalkOptions();
|
||||
};
|
||||
TypeScript1.MemberScopeContext = MemberScopeContext;
|
||||
var EnclosingScopeContext = function() {
|
||||
"use strict";
|
||||
function EnclosingScopeContext(logger, script, text, pos, isMemberCompletion) {
|
||||
@ -88,5 +75,16 @@ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
return this.scriptFragment;
|
||||
}, EnclosingScopeContext;
|
||||
}();
|
||||
TypeScript1.EnclosingScopeContext = EnclosingScopeContext, TypeScript1.preFindMemberScope = preFindMemberScope, TypeScript1.pushTypeCollectionScope = pushTypeCollectionScope, TypeScript1.popTypeCollectionScope = popTypeCollectionScope, TypeScript1.preFindEnclosingScope = preFindEnclosingScope, TypeScript1.findEnclosingScopeAt = findEnclosingScopeAt;
|
||||
TypeScript1.EnclosingScopeContext = EnclosingScopeContext, TypeScript1.preFindMemberScope = function(ast, parent, walker) {
|
||||
var memScope = walker.state;
|
||||
return hasFlag(ast.flags, memScope.matchFlag) && (memScope.pos < 0 || memScope.pos == ast.limChar) && (memScope.ast = ast, null == ast.type && memScope.pos >= 0 && memScope.flow.inScopeTypeCheck(ast, memScope.scope), memScope.type = ast.type, memScope.options.stopWalk()), ast;
|
||||
}, TypeScript1.pushTypeCollectionScope = function(container, valueMembers, ambientValueMembers, enclosedTypes, ambientEnclosedTypes, context, thisType, classType, moduleDecl) {
|
||||
var builder = new SymbolScopeBuilder(valueMembers, ambientValueMembers, enclosedTypes, ambientEnclosedTypes, null, container), chain = new ScopeChain(container, context.scopeChain, builder);
|
||||
chain.thisType = thisType, chain.classType = classType, chain.moduleDecl = moduleDecl, context.scopeChain = chain;
|
||||
}, TypeScript1.popTypeCollectionScope = function(context) {
|
||||
context.scopeChain = context.scopeChain.previous;
|
||||
}, TypeScript1.preFindEnclosingScope = preFindEnclosingScope, TypeScript1.findEnclosingScopeAt = function(logger, script, text, pos, isMemberCompletion) {
|
||||
var context = new EnclosingScopeContext(logger, script, text, pos, isMemberCompletion);
|
||||
return (TypeScript.getAstWalkerFactory().walk(script, preFindEnclosingScope, null, null, context), null === context.scopeStartAST) ? null : context;
|
||||
};
|
||||
}(TypeScript || (TypeScript = {}));
|
||||
|
@ -73,17 +73,11 @@ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var catchTable = new ScopedMembers(new DualStringHashTable(new StringHashTable(), new StringHashTable())), catchLocals = new SymbolScopeBuilder(catchTable, null, null, null, context.scopeChain.scope, context.scopeChain.scope.container);
|
||||
catchBlock.containedScope = catchLocals, pushAssignScope(catchLocals, context, context.scopeChain.thisType, context.scopeChain.classType, context.scopeChain.fnc);
|
||||
}
|
||||
}, preAssignScopes = function(ast, parent, walker) {
|
||||
var context = walker.state, go = !0;
|
||||
return ast && (ast.nodeType == NodeType.List ? ast.enclosingScope = context.scopeChain.scope : ast.nodeType == NodeType.ModuleDeclaration ? preAssignModuleScopes(ast, context) : ast.nodeType == NodeType.ClassDeclaration ? preAssignClassScopes(ast, context) : ast.nodeType == NodeType.InterfaceDeclaration ? preAssignInterfaceScopes(ast, context) : ast.nodeType == NodeType.With ? preAssignWithScopes(ast, context) : ast.nodeType == NodeType.FuncDecl ? preAssignFuncDeclScopes(ast, context) : ast.nodeType == NodeType.Catch ? preAssignCatchScopes(ast, context) : ast.nodeType == NodeType.TypeRef && (go = !1)), walker.options.goChildren = go, ast;
|
||||
}, postAssignScopes = function(ast, parent, walker) {
|
||||
var context = walker.state, go = !0;
|
||||
return ast && (ast.nodeType == NodeType.ModuleDeclaration ? (popAssignScope(context), context.modDeclChain.pop(), context.modDeclChain.length >= 1 && (context.typeFlow.checker.currentModDecl = context.modDeclChain[context.modDeclChain.length - 1])) : ast.nodeType == NodeType.ClassDeclaration ? popAssignScope(context) : ast.nodeType == NodeType.InterfaceDeclaration ? popAssignScope(context) : ast.nodeType == NodeType.With ? popAssignScope(context) : ast.nodeType == NodeType.FuncDecl ? (!ast.isConstructor || hasFlag(ast.fncFlags, FncFlags.ClassMethod)) && !ast.isOverload && popAssignScope(context) : ast.nodeType == NodeType.Catch ? ast.param && popAssignScope(context) : go = !1), walker.options.goChildren = go, ast;
|
||||
}, AssignScopeContext = function AssignScopeContext(scopeChain, typeFlow, modDeclChain) {
|
||||
};
|
||||
TypeScript1.AssignScopeContext = function AssignScopeContext(scopeChain, typeFlow, modDeclChain) {
|
||||
"use strict";
|
||||
_class_call_check(this, AssignScopeContext), this.scopeChain = scopeChain, this.typeFlow = typeFlow, this.modDeclChain = modDeclChain;
|
||||
};
|
||||
TypeScript1.AssignScopeContext = AssignScopeContext, TypeScript1.pushAssignScope = pushAssignScope, TypeScript1.popAssignScope = popAssignScope, TypeScript1.instanceCompare = instanceCompare, TypeScript1.instanceFilterStop = instanceFilterStop;
|
||||
}, TypeScript1.pushAssignScope = pushAssignScope, TypeScript1.popAssignScope = popAssignScope, TypeScript1.instanceCompare = instanceCompare, TypeScript1.instanceFilterStop = instanceFilterStop;
|
||||
var ScopeSearchFilter = function() {
|
||||
"use strict";
|
||||
function ScopeSearchFilter(select, stop) {
|
||||
@ -96,5 +90,11 @@ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
return this.result = this.select(this.result, b), !!this.result && this.stop(this.result);
|
||||
}, ScopeSearchFilter;
|
||||
}();
|
||||
TypeScript1.ScopeSearchFilter = ScopeSearchFilter, TypeScript1.instanceFilter = new ScopeSearchFilter(instanceCompare, instanceFilterStop), TypeScript1.preAssignModuleScopes = preAssignModuleScopes, TypeScript1.preAssignClassScopes = preAssignClassScopes, TypeScript1.preAssignInterfaceScopes = preAssignInterfaceScopes, TypeScript1.preAssignWithScopes = preAssignWithScopes, TypeScript1.preAssignFuncDeclScopes = preAssignFuncDeclScopes, TypeScript1.preAssignCatchScopes = preAssignCatchScopes, TypeScript1.preAssignScopes = preAssignScopes, TypeScript1.postAssignScopes = postAssignScopes;
|
||||
TypeScript1.ScopeSearchFilter = ScopeSearchFilter, TypeScript1.instanceFilter = new ScopeSearchFilter(instanceCompare, instanceFilterStop), TypeScript1.preAssignModuleScopes = preAssignModuleScopes, TypeScript1.preAssignClassScopes = preAssignClassScopes, TypeScript1.preAssignInterfaceScopes = preAssignInterfaceScopes, TypeScript1.preAssignWithScopes = preAssignWithScopes, TypeScript1.preAssignFuncDeclScopes = preAssignFuncDeclScopes, TypeScript1.preAssignCatchScopes = preAssignCatchScopes, TypeScript1.preAssignScopes = function(ast, parent, walker) {
|
||||
var context = walker.state, go = !0;
|
||||
return ast && (ast.nodeType == NodeType.List ? ast.enclosingScope = context.scopeChain.scope : ast.nodeType == NodeType.ModuleDeclaration ? preAssignModuleScopes(ast, context) : ast.nodeType == NodeType.ClassDeclaration ? preAssignClassScopes(ast, context) : ast.nodeType == NodeType.InterfaceDeclaration ? preAssignInterfaceScopes(ast, context) : ast.nodeType == NodeType.With ? preAssignWithScopes(ast, context) : ast.nodeType == NodeType.FuncDecl ? preAssignFuncDeclScopes(ast, context) : ast.nodeType == NodeType.Catch ? preAssignCatchScopes(ast, context) : ast.nodeType == NodeType.TypeRef && (go = !1)), walker.options.goChildren = go, ast;
|
||||
}, TypeScript1.postAssignScopes = function(ast, parent, walker) {
|
||||
var context = walker.state, go = !0;
|
||||
return ast && (ast.nodeType == NodeType.ModuleDeclaration ? (popAssignScope(context), context.modDeclChain.pop(), context.modDeclChain.length >= 1 && (context.typeFlow.checker.currentModDecl = context.modDeclChain[context.modDeclChain.length - 1])) : ast.nodeType == NodeType.ClassDeclaration ? popAssignScope(context) : ast.nodeType == NodeType.InterfaceDeclaration ? popAssignScope(context) : ast.nodeType == NodeType.With ? popAssignScope(context) : ast.nodeType == NodeType.FuncDecl ? (!ast.isConstructor || hasFlag(ast.fncFlags, FncFlags.ClassMethod)) && !ast.isOverload && popAssignScope(context) : ast.nodeType == NodeType.Catch ? ast.param && popAssignScope(context) : go = !1), walker.options.goChildren = go, ast;
|
||||
};
|
||||
}(TypeScript || (TypeScript = {}));
|
||||
|
@ -11,7 +11,6 @@ function set_valueOne(v) {}
|
||||
function set_valueCompound(v) {}
|
||||
new class {
|
||||
m() {
|
||||
var _tmp;
|
||||
let foo = {
|
||||
bar: 1
|
||||
};
|
||||
@ -27,9 +26,9 @@ new class {
|
||||
foo
|
||||
}), ({ foo: _write_only_error("#value").foo } = {
|
||||
foo
|
||||
}), _tmp = {
|
||||
}), _write_only_error("#value").foo = _extends({}, {
|
||||
foo
|
||||
}, _write_only_error("#value").foo = _extends({}, _tmp.foo), _write_only_error("#value"), [_class_private_field_destructure(this, _valueOne).value, ..._class_private_field_destructure(this, _valueRest).value] = [
|
||||
}.foo), _write_only_error("#value"), [_class_private_field_destructure(this, _valueOne).value, ..._class_private_field_destructure(this, _valueRest).value] = [
|
||||
1,
|
||||
2,
|
||||
3
|
||||
|
@ -1,10 +1,10 @@
|
||||
//// [foo1.ts]
|
||||
"use strict";
|
||||
var _classCallCheck = require("@swc/helpers/lib/_class_call_check.js").default, x = function x() {
|
||||
var _classCallCheck = require("@swc/helpers/lib/_class_call_check.js").default;
|
||||
module.exports = function x() {
|
||||
"use strict";
|
||||
_classCallCheck(this, x);
|
||||
};
|
||||
module.exports = x;
|
||||
//// [foo2.ts]
|
||||
"use strict";
|
||||
var foo1 = require("./foo1");
|
||||
|
@ -1,7 +1,4 @@
|
||||
//// [stringNamedPropertyAccess.ts]
|
||||
var i, a;
|
||||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
var i, a, C = function C() {
|
||||
"use strict";
|
||||
_class_call_check(this, C);
|
||||
};
|
||||
(void 0)["a b"], C["c d"], i["a b"], a["a b"];
|
||||
(void 0)["a b"], i["a b"], a["a b"];
|
||||
|
@ -3,12 +3,9 @@ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
|
||||
import _inherits from "@swc/helpers/src/_inherits.mjs";
|
||||
import _type_of from "@swc/helpers/src/_type_of.mjs";
|
||||
import _create_super from "@swc/helpers/src/_create_super.mjs";
|
||||
!function(M) {
|
||||
var fn = function(x) {
|
||||
return "";
|
||||
};
|
||||
M.fn = fn;
|
||||
}(M || (M = {})), void 0 === x || _type_of(x), void 0 === M || _type_of(M), M.fn(1);
|
||||
(M || (M = {})).fn = function(x) {
|
||||
return "";
|
||||
}, void 0 === x || _type_of(x), void 0 === M || _type_of(M), M.fn(1);
|
||||
var M, x, C = function C() {
|
||||
"use strict";
|
||||
_class_call_check(this, C);
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user