diff --git a/tests/baselines/reference/abstractClassInLocalScope.js b/tests/baselines/reference/abstractClassInLocalScope.js index fc5c14f6e06..2f8cfbb72c2 100644 --- a/tests/baselines/reference/abstractClassInLocalScope.js +++ b/tests/baselines/reference/abstractClassInLocalScope.js @@ -20,7 +20,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();(function () { +})(); +(function () { var A = /** @class */ (function () { function A() {} return A; diff --git a/tests/baselines/reference/abstractClassInLocalScopeIsAbstract.js b/tests/baselines/reference/abstractClassInLocalScopeIsAbstract.js index 61be88f8bd3..5a6aaa3fb4c 100644 --- a/tests/baselines/reference/abstractClassInLocalScopeIsAbstract.js +++ b/tests/baselines/reference/abstractClassInLocalScopeIsAbstract.js @@ -20,7 +20,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();(function () { +})(); +(function () { var A = /** @class */ (function () { function A() {} return A; diff --git a/tests/baselines/reference/abstractPropertyInConstructor.js b/tests/baselines/reference/abstractPropertyInConstructor.js index 3956bd59a6e..1700f843f5f 100644 --- a/tests/baselines/reference/abstractPropertyInConstructor.js +++ b/tests/baselines/reference/abstractPropertyInConstructor.js @@ -84,7 +84,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var AbstractClass = /** @class */ (function () { +})(); +var AbstractClass = /** @class */ (function () { function AbstractClass(str, other) { var _this = this; this.other = this.prop; diff --git a/tests/baselines/reference/accessOverriddenBaseClassMember1.js b/tests/baselines/reference/accessOverriddenBaseClassMember1.js index 7d11d0ae787..6512ba01d67 100644 --- a/tests/baselines/reference/accessOverriddenBaseClassMember1.js +++ b/tests/baselines/reference/accessOverriddenBaseClassMember1.js @@ -28,7 +28,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Point = /** @class */ (function () { +})(); +var Point = /** @class */ (function () { function Point(x, y) { this.x = x; this.y = y; diff --git a/tests/baselines/reference/accessorsOverrideProperty7.js b/tests/baselines/reference/accessorsOverrideProperty7.js index e80c81ad8ee..938bae03374 100644 --- a/tests/baselines/reference/accessorsOverrideProperty7.js +++ b/tests/baselines/reference/accessorsOverrideProperty7.js @@ -20,7 +20,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { Object.defineProperty(this, "p", { enumerable: true, diff --git a/tests/baselines/reference/accessors_spec_section-4.5_inference.js b/tests/baselines/reference/accessors_spec_section-4.5_inference.js index 81c084a7658..9acb75b34b2 100644 --- a/tests/baselines/reference/accessors_spec_section-4.5_inference.js +++ b/tests/baselines/reference/accessors_spec_section-4.5_inference.js @@ -37,7 +37,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() {} return A; }()); diff --git a/tests/baselines/reference/ambiguousOverloadResolution.js b/tests/baselines/reference/ambiguousOverloadResolution.js index 88b164d4754..76848fb268d 100644 --- a/tests/baselines/reference/ambiguousOverloadResolution.js +++ b/tests/baselines/reference/ambiguousOverloadResolution.js @@ -21,7 +21,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() {} return A; }()); diff --git a/tests/baselines/reference/arrayLiteralSpread.js b/tests/baselines/reference/arrayLiteralSpread.js index 0a1d8540fef..e036b27d4cf 100644 --- a/tests/baselines/reference/arrayLiteralSpread.js +++ b/tests/baselines/reference/arrayLiteralSpread.js @@ -30,7 +30,8 @@ var __spreadArrays = (this && this.__spreadArrays) || function () { for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) r[k] = a[j]; return r; -};function f0() { +}; +function f0() { var a = [1, 2, 3]; var a1 = __spreadArrays(a); var a2 = __spreadArrays([1], a); diff --git a/tests/baselines/reference/arrayLiteralSpreadES5iterable.js b/tests/baselines/reference/arrayLiteralSpreadES5iterable.js index 36a1415d4fe..e7836e30fb6 100644 --- a/tests/baselines/reference/arrayLiteralSpreadES5iterable.js +++ b/tests/baselines/reference/arrayLiteralSpreadES5iterable.js @@ -43,7 +43,8 @@ var __read = (this && this.__read) || function (o, n) { var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; -};function f0() { +}; +function f0() { var a = [1, 2, 3]; var a1 = __spread(a); var a2 = __spread([1], a); diff --git a/tests/baselines/reference/arrayLiteralTypeInference.js b/tests/baselines/reference/arrayLiteralTypeInference.js index a3e1a9bdcfa..8f02d19fc59 100644 --- a/tests/baselines/reference/arrayLiteralTypeInference.js +++ b/tests/baselines/reference/arrayLiteralTypeInference.js @@ -64,7 +64,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Action = /** @class */ (function () { +})(); +var Action = /** @class */ (function () { function Action() { } return Action; diff --git a/tests/baselines/reference/arrayLiteralsWithRecursiveGenerics.js b/tests/baselines/reference/arrayLiteralsWithRecursiveGenerics.js index 14a13374b30..6a9e78426ee 100644 --- a/tests/baselines/reference/arrayLiteralsWithRecursiveGenerics.js +++ b/tests/baselines/reference/arrayLiteralsWithRecursiveGenerics.js @@ -38,7 +38,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var List = /** @class */ (function () { +})(); +var List = /** @class */ (function () { function List() { } return List; diff --git a/tests/baselines/reference/arrayOfSubtypeIsAssignableToReadonlyArray.js b/tests/baselines/reference/arrayOfSubtypeIsAssignableToReadonlyArray.js index f4c51b12132..6dbff412c7e 100644 --- a/tests/baselines/reference/arrayOfSubtypeIsAssignableToReadonlyArray.js +++ b/tests/baselines/reference/arrayOfSubtypeIsAssignableToReadonlyArray.js @@ -32,7 +32,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() {} return A; }()); diff --git a/tests/baselines/reference/asOperatorASI.js b/tests/baselines/reference/asOperatorASI.js index fa832c2b11c..30eec3121eb 100644 --- a/tests/baselines/reference/asOperatorASI.js +++ b/tests/baselines/reference/asOperatorASI.js @@ -15,7 +15,8 @@ as(Foo); // should emit var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; -};var Foo = /** @class */ (function () { +}; +var Foo = /** @class */ (function () { function Foo() {} return Foo; }()); diff --git a/tests/baselines/reference/asyncFunctionReturnType.js b/tests/baselines/reference/asyncFunctionReturnType.js index b82eb80947c..c269b442775 100644 --- a/tests/baselines/reference/asyncFunctionReturnType.js +++ b/tests/baselines/reference/asyncFunctionReturnType.js @@ -84,7 +84,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); -};function fAsync() { +}; +function fAsync() { return __awaiter(this, void 0, void 0, function* () { // Without explicit type annotation, this is just an array. return [1, true]; diff --git a/tests/baselines/reference/asyncFunctionWithForStatementNoInitializer.js b/tests/baselines/reference/asyncFunctionWithForStatementNoInitializer.js index 52d34e6a0e8..f1c3a111264 100644 --- a/tests/baselines/reference/asyncFunctionWithForStatementNoInitializer.js +++ b/tests/baselines/reference/asyncFunctionWithForStatementNoInitializer.js @@ -60,7 +60,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) { } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } -};function test1() { +}; +function test1() { return __awaiter(this, void 0, void 0, function () { var i, limit; return __generator(this, function (_a) { diff --git a/tests/baselines/reference/asyncIIFE.js b/tests/baselines/reference/asyncIIFE.js index 6ad9a822707..5c0f73124d1 100644 --- a/tests/baselines/reference/asyncIIFE.js +++ b/tests/baselines/reference/asyncIIFE.js @@ -18,7 +18,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); -};function f1() { +}; +function f1() { (() => __awaiter(this, void 0, void 0, function* () { yield 10; throw new Error(); diff --git a/tests/baselines/reference/asyncImportNestedYield.js b/tests/baselines/reference/asyncImportNestedYield.js index 08e97bfbf42..b92065950fb 100644 --- a/tests/baselines/reference/asyncImportNestedYield.js +++ b/tests/baselines/reference/asyncImportNestedYield.js @@ -42,7 +42,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};function foo() { +}; +function foo() { return __asyncGenerator(this, arguments, function foo_1() { return __generator(this, function (_a) { switch (_a.label) { diff --git a/tests/baselines/reference/asyncMultiFile_es5.js b/tests/baselines/reference/asyncMultiFile_es5.js index 0f2e5d97f12..392a4456cc2 100644 --- a/tests/baselines/reference/asyncMultiFile_es5.js +++ b/tests/baselines/reference/asyncMultiFile_es5.js @@ -41,7 +41,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) { } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } -};function f() { +}; +function f() { return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) { return [2 /*return*/]; }); }); diff --git a/tests/baselines/reference/asyncMultiFile_es6.js b/tests/baselines/reference/asyncMultiFile_es6.js index 7bbd6b63aa3..7fbb00063c7 100644 --- a/tests/baselines/reference/asyncMultiFile_es6.js +++ b/tests/baselines/reference/asyncMultiFile_es6.js @@ -14,7 +14,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); -};function f() { +}; +function f() { return __awaiter(this, void 0, void 0, function* () { }); } //// [b.js] diff --git a/tests/baselines/reference/await_unaryExpression_es6.js b/tests/baselines/reference/await_unaryExpression_es6.js index 8efa2bed3be..86c878cd3e8 100644 --- a/tests/baselines/reference/await_unaryExpression_es6.js +++ b/tests/baselines/reference/await_unaryExpression_es6.js @@ -24,7 +24,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); -};function bar() { +}; +function bar() { return __awaiter(this, void 0, void 0, function* () { !(yield 42); // OK }); diff --git a/tests/baselines/reference/await_unaryExpression_es6_1.js b/tests/baselines/reference/await_unaryExpression_es6_1.js index d1c92934141..3de9d010810 100644 --- a/tests/baselines/reference/await_unaryExpression_es6_1.js +++ b/tests/baselines/reference/await_unaryExpression_es6_1.js @@ -28,7 +28,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); -};function bar() { +}; +function bar() { return __awaiter(this, void 0, void 0, function* () { !(yield 42); // OK }); diff --git a/tests/baselines/reference/await_unaryExpression_es6_2.js b/tests/baselines/reference/await_unaryExpression_es6_2.js index d0af905222a..6564d7402ea 100644 --- a/tests/baselines/reference/await_unaryExpression_es6_2.js +++ b/tests/baselines/reference/await_unaryExpression_es6_2.js @@ -20,7 +20,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); -};function bar1() { +}; +function bar1() { return __awaiter(this, void 0, void 0, function* () { delete (yield 42); }); diff --git a/tests/baselines/reference/await_unaryExpression_es6_3.js b/tests/baselines/reference/await_unaryExpression_es6_3.js index 68bdec5be20..097b0b116da 100644 --- a/tests/baselines/reference/await_unaryExpression_es6_3.js +++ b/tests/baselines/reference/await_unaryExpression_es6_3.js @@ -26,7 +26,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); -};function bar1() { +}; +function bar1() { return __awaiter(this, void 0, void 0, function* () { ++;yield 42; // Error }); diff --git a/tests/baselines/reference/baseCheck.js b/tests/baselines/reference/baseCheck.js index a08cdf028bd..1f89fdcb08d 100644 --- a/tests/baselines/reference/baseCheck.js +++ b/tests/baselines/reference/baseCheck.js @@ -42,7 +42,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C(x, y) {} return C; }()); diff --git a/tests/baselines/reference/baseClassImprovedMismatchErrors.js b/tests/baselines/reference/baseClassImprovedMismatchErrors.js index 8cd96a62392..2b864807570 100644 --- a/tests/baselines/reference/baseClassImprovedMismatchErrors.js +++ b/tests/baselines/reference/baseClassImprovedMismatchErrors.js @@ -31,7 +31,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } Base.prototype.fn = function () { diff --git a/tests/baselines/reference/baseIndexSignatureResolution.js b/tests/baselines/reference/baseIndexSignatureResolution.js index e3a413176ab..0462f1212bb 100644 --- a/tests/baselines/reference/baseIndexSignatureResolution.js +++ b/tests/baselines/reference/baseIndexSignatureResolution.js @@ -37,7 +37,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() {} return Base; }()); diff --git a/tests/baselines/reference/baseTypeOrderChecking.js b/tests/baselines/reference/baseTypeOrderChecking.js index b8184a1e0e4..ba39488acc5 100644 --- a/tests/baselines/reference/baseTypeOrderChecking.js +++ b/tests/baselines/reference/baseTypeOrderChecking.js @@ -49,7 +49,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var someVariable; +})(); +var someVariable; diff --git a/tests/baselines/reference/baseTypeWrappingInstantiationChain.js b/tests/baselines/reference/baseTypeWrappingInstantiationChain.js index 9f66619bcf0..4f302a14ade 100644 --- a/tests/baselines/reference/baseTypeWrappingInstantiationChain.js +++ b/tests/baselines/reference/baseTypeWrappingInstantiationChain.js @@ -40,7 +40,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var CBaseBase = /** @class */ (function () { +})(); +var CBaseBase = /** @class */ (function () { function CBaseBase(x) {} return CBaseBase; }()); diff --git a/tests/baselines/reference/blockScopedBindingsInDownlevelGenerator.js b/tests/baselines/reference/blockScopedBindingsInDownlevelGenerator.js index 195bc8ab56e..21b47adf6c7 100644 --- a/tests/baselines/reference/blockScopedBindingsInDownlevelGenerator.js +++ b/tests/baselines/reference/blockScopedBindingsInDownlevelGenerator.js @@ -44,7 +44,8 @@ var __values = (this && this.__values) || function(o) { } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -};function a() { +}; +function a() { var _loop_1, _a, _b, i, e_1_1; var e_1, _c; return __generator(this, function (_d) { diff --git a/tests/baselines/reference/captureSuperPropertyAccessInSuperCall01.js b/tests/baselines/reference/captureSuperPropertyAccessInSuperCall01.js index e1a68f0f1bc..dd433fc1db7 100644 --- a/tests/baselines/reference/captureSuperPropertyAccessInSuperCall01.js +++ b/tests/baselines/reference/captureSuperPropertyAccessInSuperCall01.js @@ -24,7 +24,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A(f) { } A.prototype.blah = function () { return ""; }; diff --git a/tests/baselines/reference/captureThisInSuperCall.js b/tests/baselines/reference/captureThisInSuperCall.js index bfa1a211a9b..b3f5aa84ea3 100644 --- a/tests/baselines/reference/captureThisInSuperCall.js +++ b/tests/baselines/reference/captureThisInSuperCall.js @@ -21,7 +21,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A(p) {} return A; }()); diff --git a/tests/baselines/reference/castOfAwait.js b/tests/baselines/reference/castOfAwait.js index 9ac03a91f25..c00c1b028f4 100644 --- a/tests/baselines/reference/castOfAwait.js +++ b/tests/baselines/reference/castOfAwait.js @@ -17,7 +17,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); -};function f() { +}; +function f() { return __awaiter(this, void 0, void 0, function* () { yield 0; typeof (yield 0); diff --git a/tests/baselines/reference/castOfYield.js b/tests/baselines/reference/castOfYield.js index db8a315b7d1..86d35bedad4 100644 --- a/tests/baselines/reference/castOfYield.js +++ b/tests/baselines/reference/castOfYield.js @@ -33,7 +33,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) { } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } -};function f() { +}; +function f() { return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, 0]; diff --git a/tests/baselines/reference/chainedAssignment3.js b/tests/baselines/reference/chainedAssignment3.js index deb920b81db..a38ac6df702 100644 --- a/tests/baselines/reference/chainedAssignment3.js +++ b/tests/baselines/reference/chainedAssignment3.js @@ -35,7 +35,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } return A; diff --git a/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.js b/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.js index e6d4dc1484e..69ecf8cd52d 100644 --- a/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.js +++ b/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.js @@ -32,7 +32,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Chain = /** @class */ (function () { +})(); +var Chain = /** @class */ (function () { function Chain(value) { this.value = value; } diff --git a/tests/baselines/reference/checkSuperCallBeforeThisAccessing1.js b/tests/baselines/reference/checkSuperCallBeforeThisAccessing1.js index 3d072e7cdf7..538e6eeb93a 100644 --- a/tests/baselines/reference/checkSuperCallBeforeThisAccessing1.js +++ b/tests/baselines/reference/checkSuperCallBeforeThisAccessing1.js @@ -23,7 +23,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Based = /** @class */ (function () { +})(); +var Based = /** @class */ (function () { function Based() {} return Based; }()); diff --git a/tests/baselines/reference/checkSuperCallBeforeThisAccessing2.js b/tests/baselines/reference/checkSuperCallBeforeThisAccessing2.js index 9a98a9f4d22..d261c1dff52 100644 --- a/tests/baselines/reference/checkSuperCallBeforeThisAccessing2.js +++ b/tests/baselines/reference/checkSuperCallBeforeThisAccessing2.js @@ -23,7 +23,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Based = /** @class */ (function () { +})(); +var Based = /** @class */ (function () { function Based() {} return Based; }()); diff --git a/tests/baselines/reference/checkSuperCallBeforeThisAccessing3.js b/tests/baselines/reference/checkSuperCallBeforeThisAccessing3.js index 3f71cbce4c3..02438bc029b 100644 --- a/tests/baselines/reference/checkSuperCallBeforeThisAccessing3.js +++ b/tests/baselines/reference/checkSuperCallBeforeThisAccessing3.js @@ -28,7 +28,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Based = /** @class */ (function () { +})(); +var Based = /** @class */ (function () { function Based() {} return Based; }()); diff --git a/tests/baselines/reference/checkSuperCallBeforeThisAccessing4.js b/tests/baselines/reference/checkSuperCallBeforeThisAccessing4.js index 4958959e7fd..85bcc807c52 100644 --- a/tests/baselines/reference/checkSuperCallBeforeThisAccessing4.js +++ b/tests/baselines/reference/checkSuperCallBeforeThisAccessing4.js @@ -32,7 +32,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Based = /** @class */ (function () { +})(); +var Based = /** @class */ (function () { function Based() {} return Based; }()); diff --git a/tests/baselines/reference/checkSuperCallBeforeThisAccessing5.js b/tests/baselines/reference/checkSuperCallBeforeThisAccessing5.js index 7a50e86f461..95305ec00a6 100644 --- a/tests/baselines/reference/checkSuperCallBeforeThisAccessing5.js +++ b/tests/baselines/reference/checkSuperCallBeforeThisAccessing5.js @@ -20,7 +20,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Based = /** @class */ (function () { +})(); +var Based = /** @class */ (function () { function Based() {var arg = []; for (var _i = 0; _i < arguments.length; _i++) { arg[_i] = arguments[_i]; diff --git a/tests/baselines/reference/checkSuperCallBeforeThisAccessing6.js b/tests/baselines/reference/checkSuperCallBeforeThisAccessing6.js index d82de22c9f8..d67b50d5ec5 100644 --- a/tests/baselines/reference/checkSuperCallBeforeThisAccessing6.js +++ b/tests/baselines/reference/checkSuperCallBeforeThisAccessing6.js @@ -23,7 +23,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() {var arg = []; for (var _i = 0; _i < arguments.length; _i++) { arg[_i] = arguments[_i]; diff --git a/tests/baselines/reference/checkSuperCallBeforeThisAccessing7.js b/tests/baselines/reference/checkSuperCallBeforeThisAccessing7.js index 336c42825e3..2c32bc82248 100644 --- a/tests/baselines/reference/checkSuperCallBeforeThisAccessing7.js +++ b/tests/baselines/reference/checkSuperCallBeforeThisAccessing7.js @@ -22,7 +22,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base(func) { } return Base; diff --git a/tests/baselines/reference/checkSuperCallBeforeThisAccessing8.js b/tests/baselines/reference/checkSuperCallBeforeThisAccessing8.js index 9875e7753b8..ca5ace6bfa8 100644 --- a/tests/baselines/reference/checkSuperCallBeforeThisAccessing8.js +++ b/tests/baselines/reference/checkSuperCallBeforeThisAccessing8.js @@ -23,7 +23,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() {var arg = []; for (var _i = 0; _i < arguments.length; _i++) { arg[_i] = arguments[_i]; diff --git a/tests/baselines/reference/classAbstractConstructorAssignability.js b/tests/baselines/reference/classAbstractConstructorAssignability.js index 65eae7ca2e4..e5dc52d3ea8 100644 --- a/tests/baselines/reference/classAbstractConstructorAssignability.js +++ b/tests/baselines/reference/classAbstractConstructorAssignability.js @@ -26,7 +26,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() {} return A; }()); diff --git a/tests/baselines/reference/classAbstractCrashedOnce.js b/tests/baselines/reference/classAbstractCrashedOnce.js index cff6fecbd58..ec0680fe873 100644 --- a/tests/baselines/reference/classAbstractCrashedOnce.js +++ b/tests/baselines/reference/classAbstractCrashedOnce.js @@ -23,7 +23,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var foo = /** @class */ (function () { +})(); +var foo = /** @class */ (function () { function foo() { } return foo; diff --git a/tests/baselines/reference/classAbstractExtends.js b/tests/baselines/reference/classAbstractExtends.js index 273c586eeb5..24357c0bdc6 100644 --- a/tests/baselines/reference/classAbstractExtends.js +++ b/tests/baselines/reference/classAbstractExtends.js @@ -28,7 +28,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } A.prototype.foo = function () { }; diff --git a/tests/baselines/reference/classAbstractFactoryFunction.js b/tests/baselines/reference/classAbstractFactoryFunction.js index 8faeed0d64f..cd3c7e340c9 100644 --- a/tests/baselines/reference/classAbstractFactoryFunction.js +++ b/tests/baselines/reference/classAbstractFactoryFunction.js @@ -29,7 +29,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() {} return A; }()); diff --git a/tests/baselines/reference/classAbstractGeneric.js b/tests/baselines/reference/classAbstractGeneric.js index 8354601d737..e7e77bd47df 100644 --- a/tests/baselines/reference/classAbstractGeneric.js +++ b/tests/baselines/reference/classAbstractGeneric.js @@ -38,7 +38,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } return A; diff --git a/tests/baselines/reference/classAbstractInheritance.js b/tests/baselines/reference/classAbstractInheritance.js index f87ad9bbc1c..3a8fb74aaf0 100644 --- a/tests/baselines/reference/classAbstractInheritance.js +++ b/tests/baselines/reference/classAbstractInheritance.js @@ -34,7 +34,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() {} return A; }()); diff --git a/tests/baselines/reference/classAbstractInstantiations2.js b/tests/baselines/reference/classAbstractInstantiations2.js index 843c3d04435..065d4b0d414 100644 --- a/tests/baselines/reference/classAbstractInstantiations2.js +++ b/tests/baselines/reference/classAbstractInstantiations2.js @@ -64,7 +64,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } return A; diff --git a/tests/baselines/reference/classAbstractOverrideWithAbstract.js b/tests/baselines/reference/classAbstractOverrideWithAbstract.js index e7d8390bb38..1765b8958c8 100644 --- a/tests/baselines/reference/classAbstractOverrideWithAbstract.js +++ b/tests/baselines/reference/classAbstractOverrideWithAbstract.js @@ -36,7 +36,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } A.prototype.foo = function () { }; diff --git a/tests/baselines/reference/classAbstractSuperCalls.js b/tests/baselines/reference/classAbstractSuperCalls.js index 9889d2effcb..f812c4425a8 100644 --- a/tests/baselines/reference/classAbstractSuperCalls.js +++ b/tests/baselines/reference/classAbstractSuperCalls.js @@ -39,7 +39,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } A.prototype.foo = function () { return 1; }; diff --git a/tests/baselines/reference/classAbstractUsingAbstractMethod1.js b/tests/baselines/reference/classAbstractUsingAbstractMethod1.js index 85e59fd782d..6094a4117ca 100644 --- a/tests/baselines/reference/classAbstractUsingAbstractMethod1.js +++ b/tests/baselines/reference/classAbstractUsingAbstractMethod1.js @@ -30,7 +30,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } return A; diff --git a/tests/baselines/reference/classAbstractUsingAbstractMethods2.js b/tests/baselines/reference/classAbstractUsingAbstractMethods2.js index 9b82cccad66..0a8e4893496 100644 --- a/tests/baselines/reference/classAbstractUsingAbstractMethods2.js +++ b/tests/baselines/reference/classAbstractUsingAbstractMethods2.js @@ -40,7 +40,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } return A; diff --git a/tests/baselines/reference/classConstructorAccessibility2.js b/tests/baselines/reference/classConstructorAccessibility2.js index adbdba597e3..43cffb63db6 100644 --- a/tests/baselines/reference/classConstructorAccessibility2.js +++ b/tests/baselines/reference/classConstructorAccessibility2.js @@ -58,7 +58,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var BaseA = /** @class */ (function () { +})(); +var BaseA = /** @class */ (function () { function BaseA(x) { this.x = x; } diff --git a/tests/baselines/reference/classConstructorAccessibility4.js b/tests/baselines/reference/classConstructorAccessibility4.js index 3262ecdf584..a31fdbdec03 100644 --- a/tests/baselines/reference/classConstructorAccessibility4.js +++ b/tests/baselines/reference/classConstructorAccessibility4.js @@ -42,7 +42,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() {} A.prototype.method = function () { diff --git a/tests/baselines/reference/classConstructorAccessibility5.js b/tests/baselines/reference/classConstructorAccessibility5.js index 12194b19ee9..10455bf63d7 100644 --- a/tests/baselines/reference/classConstructorAccessibility5.js +++ b/tests/baselines/reference/classConstructorAccessibility5.js @@ -24,7 +24,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() {} return Base; }()); diff --git a/tests/baselines/reference/classConstructorParametersAccessibility.js b/tests/baselines/reference/classConstructorParametersAccessibility.js index bc902961596..686cfaa4f1c 100644 --- a/tests/baselines/reference/classConstructorParametersAccessibility.js +++ b/tests/baselines/reference/classConstructorParametersAccessibility.js @@ -39,7 +39,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C1 = /** @class */ (function () { +})(); +var C1 = /** @class */ (function () { function C1(x) { this.x = x; } diff --git a/tests/baselines/reference/classConstructorParametersAccessibility2.js b/tests/baselines/reference/classConstructorParametersAccessibility2.js index f77b3d2c2bf..9ee6da78c20 100644 --- a/tests/baselines/reference/classConstructorParametersAccessibility2.js +++ b/tests/baselines/reference/classConstructorParametersAccessibility2.js @@ -39,7 +39,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C1 = /** @class */ (function () { +})(); +var C1 = /** @class */ (function () { function C1(x) { this.x = x; } diff --git a/tests/baselines/reference/classConstructorParametersAccessibility3.js b/tests/baselines/reference/classConstructorParametersAccessibility3.js index c0205459d77..bf034cde19b 100644 --- a/tests/baselines/reference/classConstructorParametersAccessibility3.js +++ b/tests/baselines/reference/classConstructorParametersAccessibility3.js @@ -26,7 +26,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base(p) { this.p = p; } diff --git a/tests/baselines/reference/classExpression2.js b/tests/baselines/reference/classExpression2.js index a2058931247..ca4fd05e9e2 100644 --- a/tests/baselines/reference/classExpression2.js +++ b/tests/baselines/reference/classExpression2.js @@ -15,7 +15,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var D = /** @class */ (function () { +})(); +var D = /** @class */ (function () { function D() {} return D; }()); diff --git a/tests/baselines/reference/classExpression3.js b/tests/baselines/reference/classExpression3.js index 171bee0dac1..a87515f3f2f 100644 --- a/tests/baselines/reference/classExpression3.js +++ b/tests/baselines/reference/classExpression3.js @@ -19,7 +19,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function (_super) { +})(); +var C = /** @class */ (function (_super) { __extends(class_1, _super); function class_1() { var _this = _super !== null && _super.apply(this, arguments) || this; diff --git a/tests/baselines/reference/classExpressionExtendingAbstractClass.js b/tests/baselines/reference/classExpressionExtendingAbstractClass.js index 8e0236f966f..516f8abb7cc 100644 --- a/tests/baselines/reference/classExpressionExtendingAbstractClass.js +++ b/tests/baselines/reference/classExpressionExtendingAbstractClass.js @@ -21,7 +21,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } return A; diff --git a/tests/baselines/reference/classExpressionWithDecorator1.js b/tests/baselines/reference/classExpressionWithDecorator1.js index a106f080152..2abcb0a26f3 100644 --- a/tests/baselines/reference/classExpressionWithDecorator1.js +++ b/tests/baselines/reference/classExpressionWithDecorator1.js @@ -7,7 +7,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; -};var v = ; +}; +var v = ; var C = /** @class */ (function () { function C() {} C.p = 1; diff --git a/tests/baselines/reference/classExtendingBuiltinType.js b/tests/baselines/reference/classExtendingBuiltinType.js index 8a91e4e0c25..8d2c2dfdd31 100644 --- a/tests/baselines/reference/classExtendingBuiltinType.js +++ b/tests/baselines/reference/classExtendingBuiltinType.js @@ -24,7 +24,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C1 = /** @class */ (function (_super) { +})(); +var C1 = /** @class */ (function (_super) { __extends(C1, _super); function C1() { return _super !== null && _super.apply(this, arguments) || this; diff --git a/tests/baselines/reference/classExtendingClass.js b/tests/baselines/reference/classExtendingClass.js index 4555a2a6fa8..dcb7f929bb5 100644 --- a/tests/baselines/reference/classExtendingClass.js +++ b/tests/baselines/reference/classExtendingClass.js @@ -44,7 +44,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C() { } C.prototype.thing = function () { }; diff --git a/tests/baselines/reference/classExtendingNonConstructor.js b/tests/baselines/reference/classExtendingNonConstructor.js index d8243460685..a5c56e5f279 100644 --- a/tests/baselines/reference/classExtendingNonConstructor.js +++ b/tests/baselines/reference/classExtendingNonConstructor.js @@ -27,7 +27,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var x; +})(); +var x; function foo() { this.x = 1; diff --git a/tests/baselines/reference/classExtendingNull.js b/tests/baselines/reference/classExtendingNull.js index b000c354942..9113282a7c5 100644 --- a/tests/baselines/reference/classExtendingNull.js +++ b/tests/baselines/reference/classExtendingNull.js @@ -17,7 +17,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C1 = /** @class */ (function (_super) { +})(); +var C1 = /** @class */ (function (_super) { __extends(C1, _super); function C1() {} return C1; diff --git a/tests/baselines/reference/classExtendsClauseClassMergedWithModuleNotReferingConstructor.js b/tests/baselines/reference/classExtendsClauseClassMergedWithModuleNotReferingConstructor.js index 2130b207877..18dd63364b6 100644 --- a/tests/baselines/reference/classExtendsClauseClassMergedWithModuleNotReferingConstructor.js +++ b/tests/baselines/reference/classExtendsClauseClassMergedWithModuleNotReferingConstructor.js @@ -26,7 +26,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } return A; diff --git a/tests/baselines/reference/classExtendsClauseClassNotReferringConstructor.js b/tests/baselines/reference/classExtendsClauseClassNotReferringConstructor.js index 6832840fc9a..215c79f4315 100644 --- a/tests/baselines/reference/classExtendsClauseClassNotReferringConstructor.js +++ b/tests/baselines/reference/classExtendsClauseClassNotReferringConstructor.js @@ -19,7 +19,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() {} return A; }()); diff --git a/tests/baselines/reference/classExtendsEveryObjectType2.js b/tests/baselines/reference/classExtendsEveryObjectType2.js index 6b15fbd43be..f8c5f110389 100644 --- a/tests/baselines/reference/classExtendsEveryObjectType2.js +++ b/tests/baselines/reference/classExtendsEveryObjectType2.js @@ -16,7 +16,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C2 = /** @class */ (function (_super) { +})(); +var C2 = /** @class */ (function (_super) { __extends(C2, _super); function C2() { return _super !== null && _super.apply(this, arguments) || this; diff --git a/tests/baselines/reference/classExtendsInterface_not.js b/tests/baselines/reference/classExtendsInterface_not.js index 718672c05f8..238a00bbbd2 100644 --- a/tests/baselines/reference/classExtendsInterface_not.js +++ b/tests/baselines/reference/classExtendsInterface_not.js @@ -15,7 +15,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function (_super) { +})(); +var C = /** @class */ (function (_super) { __extends(C, _super); function C() { return _super !== null && _super.apply(this, arguments) || this; diff --git a/tests/baselines/reference/classExtendsItself.js b/tests/baselines/reference/classExtendsItself.js index 66e1e68d393..ba71ae1df91 100644 --- a/tests/baselines/reference/classExtendsItself.js +++ b/tests/baselines/reference/classExtendsItself.js @@ -18,7 +18,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function (_super) { +})(); +var C = /** @class */ (function (_super) { __extends(C, _super); function C() { return _super !== null && _super.apply(this, arguments) || this; diff --git a/tests/baselines/reference/classExtendsItselfIndirectly.js b/tests/baselines/reference/classExtendsItselfIndirectly.js index fc10a147cb5..04d5a9879d5 100644 --- a/tests/baselines/reference/classExtendsItselfIndirectly.js +++ b/tests/baselines/reference/classExtendsItselfIndirectly.js @@ -24,7 +24,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function (_super) { +})(); +var C = /** @class */ (function (_super) { __extends(C, _super); function C() { return _super !== null && _super.apply(this, arguments) || this; diff --git a/tests/baselines/reference/classExtendsItselfIndirectly2.js b/tests/baselines/reference/classExtendsItselfIndirectly2.js index 0a58827b0ea..310d96ee7ab 100644 --- a/tests/baselines/reference/classExtendsItselfIndirectly2.js +++ b/tests/baselines/reference/classExtendsItselfIndirectly2.js @@ -35,7 +35,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function (_super) { +})(); +var C = /** @class */ (function (_super) { __extends(C, _super); function C() { return _super !== null && _super.apply(this, arguments) || this; diff --git a/tests/baselines/reference/classExtendsItselfIndirectly3.js b/tests/baselines/reference/classExtendsItselfIndirectly3.js index 4dc94fd99a9..af882e651d0 100644 --- a/tests/baselines/reference/classExtendsItselfIndirectly3.js +++ b/tests/baselines/reference/classExtendsItselfIndirectly3.js @@ -31,7 +31,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function (_super) { +})(); +var C = /** @class */ (function (_super) { __extends(C, _super); function C() { return _super !== null && _super.apply(this, arguments) || this; @@ -51,7 +52,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var D = /** @class */ (function (_super) { +})(); +var D = /** @class */ (function (_super) { __extends(D, _super); function D() { return _super !== null && _super.apply(this, arguments) || this; @@ -71,7 +73,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var E = /** @class */ (function (_super) { +})(); +var E = /** @class */ (function (_super) { __extends(E, _super); function E() { return _super !== null && _super.apply(this, arguments) || this; @@ -91,7 +94,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C2 = /** @class */ (function (_super) { +})(); +var C2 = /** @class */ (function (_super) { __extends(C2, _super); function C2() { return _super !== null && _super.apply(this, arguments) || this; @@ -111,7 +115,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var D2 = /** @class */ (function (_super) { +})(); +var D2 = /** @class */ (function (_super) { __extends(D2, _super); function D2() { return _super !== null && _super.apply(this, arguments) || this; @@ -131,7 +136,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var E2 = /** @class */ (function (_super) { +})(); +var E2 = /** @class */ (function (_super) { __extends(E2, _super); function E2() { return _super !== null && _super.apply(this, arguments) || this; diff --git a/tests/baselines/reference/classExtendsMultipleBaseClasses.js b/tests/baselines/reference/classExtendsMultipleBaseClasses.js index e46e930a702..593af5a6844 100644 --- a/tests/baselines/reference/classExtendsMultipleBaseClasses.js +++ b/tests/baselines/reference/classExtendsMultipleBaseClasses.js @@ -16,7 +16,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() {} return A; }()); diff --git a/tests/baselines/reference/classExtendsNull.js b/tests/baselines/reference/classExtendsNull.js index 1ddf1f0233b..2fef0e405f1 100644 --- a/tests/baselines/reference/classExtendsNull.js +++ b/tests/baselines/reference/classExtendsNull.js @@ -25,7 +25,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function (_super) { +})(); +var C = /** @class */ (function (_super) { __extends(C, _super); function C() { _this = _super.call(this) || this; diff --git a/tests/baselines/reference/classExtendsShadowedConstructorFunction.js b/tests/baselines/reference/classExtendsShadowedConstructorFunction.js index 6a8563cd832..3c001d30b2c 100644 --- a/tests/baselines/reference/classExtendsShadowedConstructorFunction.js +++ b/tests/baselines/reference/classExtendsShadowedConstructorFunction.js @@ -21,7 +21,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C() {} return C; }()); diff --git a/tests/baselines/reference/classExtensionNameOutput.js b/tests/baselines/reference/classExtensionNameOutput.js index 37ff0d1a0d2..78ac60b0388 100644 --- a/tests/baselines/reference/classExtensionNameOutput.js +++ b/tests/baselines/reference/classExtensionNameOutput.js @@ -21,7 +21,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() {} return A; }()); diff --git a/tests/baselines/reference/classHeritageWithTrailingSeparator.js b/tests/baselines/reference/classHeritageWithTrailingSeparator.js index e89f9f7ecbc..c857796ca48 100644 --- a/tests/baselines/reference/classHeritageWithTrailingSeparator.js +++ b/tests/baselines/reference/classHeritageWithTrailingSeparator.js @@ -16,7 +16,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C() {} return C; }()); diff --git a/tests/baselines/reference/classImplementsClass2.js b/tests/baselines/reference/classImplementsClass2.js index e45e3c30e63..d29259d2123 100644 --- a/tests/baselines/reference/classImplementsClass2.js +++ b/tests/baselines/reference/classImplementsClass2.js @@ -26,7 +26,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() {} A.prototype.foo = function () { return 1; }; return A; diff --git a/tests/baselines/reference/classImplementsClass3.js b/tests/baselines/reference/classImplementsClass3.js index 1c18d34c749..e302ca99691 100644 --- a/tests/baselines/reference/classImplementsClass3.js +++ b/tests/baselines/reference/classImplementsClass3.js @@ -27,7 +27,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() {} A.prototype.foo = function () { return 1; }; return A; diff --git a/tests/baselines/reference/classImplementsClass4.js b/tests/baselines/reference/classImplementsClass4.js index c06c8cefa4e..dfba80d1543 100644 --- a/tests/baselines/reference/classImplementsClass4.js +++ b/tests/baselines/reference/classImplementsClass4.js @@ -29,7 +29,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { this.x = 1; } diff --git a/tests/baselines/reference/classImplementsClass5.js b/tests/baselines/reference/classImplementsClass5.js index 5f72828ae6b..0ab2ff23fdd 100644 --- a/tests/baselines/reference/classImplementsClass5.js +++ b/tests/baselines/reference/classImplementsClass5.js @@ -30,7 +30,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { this.x = 1; } diff --git a/tests/baselines/reference/classImplementsClass6.js b/tests/baselines/reference/classImplementsClass6.js index 25963613bad..28e8b574403 100644 --- a/tests/baselines/reference/classImplementsClass6.js +++ b/tests/baselines/reference/classImplementsClass6.js @@ -34,7 +34,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } A.bar = function () { diff --git a/tests/baselines/reference/classIndexer3.js b/tests/baselines/reference/classIndexer3.js index 0c5d45d45c9..217bfa7958e 100644 --- a/tests/baselines/reference/classIndexer3.js +++ b/tests/baselines/reference/classIndexer3.js @@ -23,7 +23,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C123 = /** @class */ (function () { +})(); +var C123 = /** @class */ (function () { function C123() { } return C123; diff --git a/tests/baselines/reference/classInheritence.js b/tests/baselines/reference/classInheritence.js index 6bbe83b5784..99206a1e8ff 100644 --- a/tests/baselines/reference/classInheritence.js +++ b/tests/baselines/reference/classInheritence.js @@ -15,7 +15,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var B = /** @class */ (function (_super) { +})(); +var B = /** @class */ (function (_super) { __extends(B, _super); function B() { return _super !== null && _super.apply(this, arguments) || this; diff --git a/tests/baselines/reference/classIsSubtypeOfBaseType.js b/tests/baselines/reference/classIsSubtypeOfBaseType.js index 66d0e39fb66..c185c546ad9 100644 --- a/tests/baselines/reference/classIsSubtypeOfBaseType.js +++ b/tests/baselines/reference/classIsSubtypeOfBaseType.js @@ -28,7 +28,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } return Base; diff --git a/tests/baselines/reference/classOrder2.js b/tests/baselines/reference/classOrder2.js index 01ddcc900d3..a71309941d3 100644 --- a/tests/baselines/reference/classOrder2.js +++ b/tests/baselines/reference/classOrder2.js @@ -31,7 +31,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function (_super) { +})(); +var A = /** @class */ (function (_super) { __extends(A, _super); function A() { return _super !== null && _super.apply(this, arguments) || this; diff --git a/tests/baselines/reference/classOrderBug.js b/tests/baselines/reference/classOrderBug.js index 2194c970c87..1fa68c22d13 100644 --- a/tests/baselines/reference/classOrderBug.js +++ b/tests/baselines/reference/classOrderBug.js @@ -28,7 +28,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var bar = /** @class */ (function () { +})(); +var bar = /** @class */ (function () { function bar() { this.baz = new foo(); } diff --git a/tests/baselines/reference/classSideInheritance1.js b/tests/baselines/reference/classSideInheritance1.js index 75e0b8e9b13..0cce6704987 100644 --- a/tests/baselines/reference/classSideInheritance1.js +++ b/tests/baselines/reference/classSideInheritance1.js @@ -28,7 +28,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } A.bar = function () { diff --git a/tests/baselines/reference/classSideInheritance3.js b/tests/baselines/reference/classSideInheritance3.js index f1fdc4cb61a..e407b85ecfb 100644 --- a/tests/baselines/reference/classSideInheritance3.js +++ b/tests/baselines/reference/classSideInheritance3.js @@ -31,7 +31,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A(x) { this.x = x; } diff --git a/tests/baselines/reference/classUsedBeforeInitializedVariables.js b/tests/baselines/reference/classUsedBeforeInitializedVariables.js index 287db44a30c..eb3e7908ea5 100644 --- a/tests/baselines/reference/classUsedBeforeInitializedVariables.js +++ b/tests/baselines/reference/classUsedBeforeInitializedVariables.js @@ -52,7 +52,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Test = /** @class */ (function () { +})(); +var Test = /** @class */ (function () { function Test() { var _a, _b, _c; var _this = this; diff --git a/tests/baselines/reference/classWithBaseClassButNoConstructor.js b/tests/baselines/reference/classWithBaseClassButNoConstructor.js index 7f7ffbaebad..d7b8558831a 100644 --- a/tests/baselines/reference/classWithBaseClassButNoConstructor.js +++ b/tests/baselines/reference/classWithBaseClassButNoConstructor.js @@ -53,7 +53,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base(x) {} return Base; }()); diff --git a/tests/baselines/reference/classWithStaticMembers.js b/tests/baselines/reference/classWithStaticMembers.js index d2ff9de63ee..1d52356ecdc 100644 --- a/tests/baselines/reference/classWithStaticMembers.js +++ b/tests/baselines/reference/classWithStaticMembers.js @@ -32,7 +32,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C(a, b) { this.a = a; this.b = b; diff --git a/tests/baselines/reference/classdecl.js b/tests/baselines/reference/classdecl.js index e1af5e19744..c83d32b13c7 100644 --- a/tests/baselines/reference/classdecl.js +++ b/tests/baselines/reference/classdecl.js @@ -106,7 +106,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var a = /** @class */ (function () { +})(); +var a = /** @class */ (function () { function a(ns) { } diff --git a/tests/baselines/reference/cloduleGenericOnSelfMember.js b/tests/baselines/reference/cloduleGenericOnSelfMember.js index bfb16ce3cb1..fbd431d4709 100644 --- a/tests/baselines/reference/cloduleGenericOnSelfMember.js +++ b/tests/baselines/reference/cloduleGenericOnSelfMember.js @@ -24,7 +24,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var ServiceBase = /** @class */ (function () { +})(); +var ServiceBase = /** @class */ (function () { function ServiceBase() { } return ServiceBase; diff --git a/tests/baselines/reference/clodulesDerivedClasses.js b/tests/baselines/reference/clodulesDerivedClasses.js index e23e567d166..1d522b86089 100644 --- a/tests/baselines/reference/clodulesDerivedClasses.js +++ b/tests/baselines/reference/clodulesDerivedClasses.js @@ -35,7 +35,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Shape = /** @class */ (function () { +})(); +var Shape = /** @class */ (function () { function Shape() { } return Shape; diff --git a/tests/baselines/reference/collisionSuperAndLocalVarInAccessors.js b/tests/baselines/reference/collisionSuperAndLocalVarInAccessors.js index 825cc472190..7aa17672460 100644 --- a/tests/baselines/reference/collisionSuperAndLocalVarInAccessors.js +++ b/tests/baselines/reference/collisionSuperAndLocalVarInAccessors.js @@ -45,7 +45,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var _super = 10; // No Error +})(); +var _super = 10; // No Error var Foo = /** @class */ (function () { function Foo() { } diff --git a/tests/baselines/reference/collisionSuperAndLocalVarInConstructor.js b/tests/baselines/reference/collisionSuperAndLocalVarInConstructor.js index 6f3f2fe05a8..ffd052dfe75 100644 --- a/tests/baselines/reference/collisionSuperAndLocalVarInConstructor.js +++ b/tests/baselines/reference/collisionSuperAndLocalVarInConstructor.js @@ -33,7 +33,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var _super = 10; // No Error +})(); +var _super = 10; // No Error var Foo = /** @class */ (function () { function Foo() { var _super = 10; // No error diff --git a/tests/baselines/reference/collisionSuperAndLocalVarInMethod.js b/tests/baselines/reference/collisionSuperAndLocalVarInMethod.js index e8992be8e5d..110323d4973 100644 --- a/tests/baselines/reference/collisionSuperAndLocalVarInMethod.js +++ b/tests/baselines/reference/collisionSuperAndLocalVarInMethod.js @@ -31,7 +31,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var _super = 10; // No Error +})(); +var _super = 10; // No Error var Foo = /** @class */ (function () { function Foo() { } diff --git a/tests/baselines/reference/collisionSuperAndLocalVarInProperty.js b/tests/baselines/reference/collisionSuperAndLocalVarInProperty.js index 65ef5ee023d..e1330ff822a 100644 --- a/tests/baselines/reference/collisionSuperAndLocalVarInProperty.js +++ b/tests/baselines/reference/collisionSuperAndLocalVarInProperty.js @@ -30,7 +30,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var _super = 10; // No Error +})(); +var _super = 10; // No Error var Foo = /** @class */ (function () { function Foo() { this.prop1 = { diff --git a/tests/baselines/reference/collisionSuperAndNameResolution.js b/tests/baselines/reference/collisionSuperAndNameResolution.js index 1983d5d3d39..e3df51d1f99 100644 --- a/tests/baselines/reference/collisionSuperAndNameResolution.js +++ b/tests/baselines/reference/collisionSuperAndNameResolution.js @@ -24,7 +24,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var console; +})(); +var console; var _super = 10; // No error var base = /** @class */ (function () { function base() { diff --git a/tests/baselines/reference/collisionSuperAndParameter.js b/tests/baselines/reference/collisionSuperAndParameter.js index acd2dae3549..873c4572b16 100644 --- a/tests/baselines/reference/collisionSuperAndParameter.js +++ b/tests/baselines/reference/collisionSuperAndParameter.js @@ -75,7 +75,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Foo = /** @class */ (function () { +})(); +var Foo = /** @class */ (function () { function Foo() { } Foo.prototype.a = function () { diff --git a/tests/baselines/reference/collisionSuperAndParameter1.js b/tests/baselines/reference/collisionSuperAndParameter1.js index a3f8cad1730..e06489e356a 100644 --- a/tests/baselines/reference/collisionSuperAndParameter1.js +++ b/tests/baselines/reference/collisionSuperAndParameter1.js @@ -22,7 +22,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Foo = /** @class */ (function () { +})(); +var Foo = /** @class */ (function () { function Foo() { } return Foo; diff --git a/tests/baselines/reference/collisionSuperAndPropertyNameAsConstuctorParameter.js b/tests/baselines/reference/collisionSuperAndPropertyNameAsConstuctorParameter.js index b888afb1e83..5e066b7ad09 100644 --- a/tests/baselines/reference/collisionSuperAndPropertyNameAsConstuctorParameter.js +++ b/tests/baselines/reference/collisionSuperAndPropertyNameAsConstuctorParameter.js @@ -43,7 +43,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var a = /** @class */ (function () { +})(); +var a = /** @class */ (function () { function a() { } return a; diff --git a/tests/baselines/reference/collisionThisExpressionAndLocalVarWithSuperExperssion.js b/tests/baselines/reference/collisionThisExpressionAndLocalVarWithSuperExperssion.js index 4361a342ac5..0c952a75e2c 100644 --- a/tests/baselines/reference/collisionThisExpressionAndLocalVarWithSuperExperssion.js +++ b/tests/baselines/reference/collisionThisExpressionAndLocalVarWithSuperExperssion.js @@ -31,7 +31,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var a = /** @class */ (function () { +})(); +var a = /** @class */ (function () { function a() { } a.prototype.foo = function () { diff --git a/tests/baselines/reference/comparisonOperatorWithIdenticalObjects.js b/tests/baselines/reference/comparisonOperatorWithIdenticalObjects.js index 976cfa67cb4..12f6ab7fa32 100644 --- a/tests/baselines/reference/comparisonOperatorWithIdenticalObjects.js +++ b/tests/baselines/reference/comparisonOperatorWithIdenticalObjects.js @@ -207,7 +207,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A1 = /** @class */ (function () { +})(); +var A1 = /** @class */ (function () { function A1() { } A1.prototype.fn = function (a) { diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.js index bac516adf4f..64f8d2bb4df 100644 --- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.js @@ -181,7 +181,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } return Base; diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.js index 4045198e115..028dfc0d156 100644 --- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.js @@ -181,7 +181,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } return Base; diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.js index ef19da338e2..4f532712e88 100644 --- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.js @@ -124,7 +124,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } return Base; diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.js index 24747abd5d2..dd2d3992b9a 100644 --- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.js @@ -162,7 +162,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } return Base; diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.js index da5204e1127..529a966d56d 100644 --- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.js @@ -162,7 +162,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } return Base; diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnCallSignature.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnCallSignature.js index 0029c59e464..c1c2878a298 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnCallSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnCallSignature.js @@ -272,7 +272,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } return Base; diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnConstructorSignature.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnConstructorSignature.js index 62030403819..989c189cc25 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnConstructorSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnConstructorSignature.js @@ -234,7 +234,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } return Base; diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnIndexSignature.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnIndexSignature.js index 87fcef8c879..e54af59b777 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnIndexSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnIndexSignature.js @@ -120,7 +120,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } return Base; diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.js index 06daec13548..be0b96c06bb 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.js @@ -177,7 +177,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } return Base; diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.js index 5a49cc142fe..ca95fdb3440 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.js @@ -177,7 +177,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } return Base; diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnProperty.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnProperty.js index 56432448992..ffec604d201 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnProperty.js +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnProperty.js @@ -91,7 +91,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } return Base; diff --git a/tests/baselines/reference/complicatedGenericRecursiveBaseClassReference.js b/tests/baselines/reference/complicatedGenericRecursiveBaseClassReference.js index fadfd9cb5fc..96293dafa59 100644 --- a/tests/baselines/reference/complicatedGenericRecursiveBaseClassReference.js +++ b/tests/baselines/reference/complicatedGenericRecursiveBaseClassReference.js @@ -18,7 +18,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var S18 = /** @class */ (function (_super) { +})(); +var S18 = /** @class */ (function (_super) { __extends(S18, _super); function S18() { return _super !== null && _super.apply(this, arguments) || this; diff --git a/tests/baselines/reference/computedPropertyNames24_ES5.js b/tests/baselines/reference/computedPropertyNames24_ES5.js index afe2324543b..7dc995ad72e 100644 --- a/tests/baselines/reference/computedPropertyNames24_ES5.js +++ b/tests/baselines/reference/computedPropertyNames24_ES5.js @@ -21,7 +21,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } Base.prototype.bar = function () { diff --git a/tests/baselines/reference/computedPropertyNames25_ES5.js b/tests/baselines/reference/computedPropertyNames25_ES5.js index 850ffc77db7..bb728c8d6ad 100644 --- a/tests/baselines/reference/computedPropertyNames25_ES5.js +++ b/tests/baselines/reference/computedPropertyNames25_ES5.js @@ -26,7 +26,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } Base.prototype.bar = function () { diff --git a/tests/baselines/reference/computedPropertyNames26_ES5.js b/tests/baselines/reference/computedPropertyNames26_ES5.js index d97ca42bc11..a8efb6fa5a7 100644 --- a/tests/baselines/reference/computedPropertyNames26_ES5.js +++ b/tests/baselines/reference/computedPropertyNames26_ES5.js @@ -23,7 +23,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } Base.prototype.bar = function () { diff --git a/tests/baselines/reference/computedPropertyNames27_ES5.js b/tests/baselines/reference/computedPropertyNames27_ES5.js index 518515c6898..bafb780c3b1 100644 --- a/tests/baselines/reference/computedPropertyNames27_ES5.js +++ b/tests/baselines/reference/computedPropertyNames27_ES5.js @@ -18,7 +18,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } return Base; diff --git a/tests/baselines/reference/computedPropertyNames28_ES5.js b/tests/baselines/reference/computedPropertyNames28_ES5.js index 688a465feab..ad5df468f13 100644 --- a/tests/baselines/reference/computedPropertyNames28_ES5.js +++ b/tests/baselines/reference/computedPropertyNames28_ES5.js @@ -23,7 +23,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } return Base; diff --git a/tests/baselines/reference/computedPropertyNames30_ES5.js b/tests/baselines/reference/computedPropertyNames30_ES5.js index 3165d1d9e4c..a485fc479ae 100644 --- a/tests/baselines/reference/computedPropertyNames30_ES5.js +++ b/tests/baselines/reference/computedPropertyNames30_ES5.js @@ -28,7 +28,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } return Base; diff --git a/tests/baselines/reference/computedPropertyNames31_ES5.js b/tests/baselines/reference/computedPropertyNames31_ES5.js index 0e71ab05340..a18c7e95df9 100644 --- a/tests/baselines/reference/computedPropertyNames31_ES5.js +++ b/tests/baselines/reference/computedPropertyNames31_ES5.js @@ -28,7 +28,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } Base.prototype.bar = function () { diff --git a/tests/baselines/reference/computedPropertyNames43_ES5.js b/tests/baselines/reference/computedPropertyNames43_ES5.js index 10acae8deac..4658fdfc3e0 100644 --- a/tests/baselines/reference/computedPropertyNames43_ES5.js +++ b/tests/baselines/reference/computedPropertyNames43_ES5.js @@ -25,7 +25,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Foo = /** @class */ (function () { +})(); +var Foo = /** @class */ (function () { function Foo() {} return Foo; }()); diff --git a/tests/baselines/reference/computedPropertyNames44_ES5.js b/tests/baselines/reference/computedPropertyNames44_ES5.js index 82ec79c8f79..c2c2ad64485 100644 --- a/tests/baselines/reference/computedPropertyNames44_ES5.js +++ b/tests/baselines/reference/computedPropertyNames44_ES5.js @@ -24,7 +24,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Foo = /** @class */ (function () { +})(); +var Foo = /** @class */ (function () { function Foo() {} return Foo; }()); diff --git a/tests/baselines/reference/computedPropertyNames45_ES5.js b/tests/baselines/reference/computedPropertyNames45_ES5.js index 60320ed3d79..20480d45ab6 100644 --- a/tests/baselines/reference/computedPropertyNames45_ES5.js +++ b/tests/baselines/reference/computedPropertyNames45_ES5.js @@ -25,7 +25,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Foo = /** @class */ (function () { +})(); +var Foo = /** @class */ (function () { function Foo() {} return Foo; }()); diff --git a/tests/baselines/reference/constantOverloadFunction.js b/tests/baselines/reference/constantOverloadFunction.js index 137bc5a8944..bb0a285a720 100644 --- a/tests/baselines/reference/constantOverloadFunction.js +++ b/tests/baselines/reference/constantOverloadFunction.js @@ -26,7 +26,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() {} Base.prototype.foo = function () { }; return Base; diff --git a/tests/baselines/reference/constantOverloadFunctionNoSubtypeError.js b/tests/baselines/reference/constantOverloadFunctionNoSubtypeError.js index ad5f9ded0db..7a2eafab088 100644 --- a/tests/baselines/reference/constantOverloadFunctionNoSubtypeError.js +++ b/tests/baselines/reference/constantOverloadFunctionNoSubtypeError.js @@ -27,7 +27,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() {} Base.prototype.foo = function () { }; return Base; diff --git a/tests/baselines/reference/constructableDecoratorOnClass01.js b/tests/baselines/reference/constructableDecoratorOnClass01.js index 4c5a2dcba03..2ce618a471a 100644 --- a/tests/baselines/reference/constructableDecoratorOnClass01.js +++ b/tests/baselines/reference/constructableDecoratorOnClass01.js @@ -13,7 +13,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; -};var CtorDtor = /** @class */ (function () { +}; +var CtorDtor = /** @class */ (function () { function CtorDtor() {} return CtorDtor; }()); diff --git a/tests/baselines/reference/constructorFunctionTypeIsAssignableToBaseType.js b/tests/baselines/reference/constructorFunctionTypeIsAssignableToBaseType.js index c4ba6601f08..f9a54a616a8 100644 --- a/tests/baselines/reference/constructorFunctionTypeIsAssignableToBaseType.js +++ b/tests/baselines/reference/constructorFunctionTypeIsAssignableToBaseType.js @@ -32,7 +32,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } return Base; diff --git a/tests/baselines/reference/constructorOverloads2.js b/tests/baselines/reference/constructorOverloads2.js index 001c2a560d7..7081a43f7ac 100644 --- a/tests/baselines/reference/constructorOverloads2.js +++ b/tests/baselines/reference/constructorOverloads2.js @@ -38,7 +38,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var FooBase = /** @class */ (function () { +})(); +var FooBase = /** @class */ (function () { function FooBase(x) { } FooBase.prototype.bar1 = function () { }; diff --git a/tests/baselines/reference/constructorWithCapturedSuper.js b/tests/baselines/reference/constructorWithCapturedSuper.js index 9cc42fea193..2f2d8e73ccb 100644 --- a/tests/baselines/reference/constructorWithCapturedSuper.js +++ b/tests/baselines/reference/constructorWithCapturedSuper.js @@ -65,7 +65,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var oneA; +})(); +var oneA; var A = /** @class */ (function () { function A() { diff --git a/tests/baselines/reference/contextualTypingArrayOfLambdas.js b/tests/baselines/reference/contextualTypingArrayOfLambdas.js index 13cfe5a6ae1..0ded7accd42 100644 --- a/tests/baselines/reference/contextualTypingArrayOfLambdas.js +++ b/tests/baselines/reference/contextualTypingArrayOfLambdas.js @@ -27,7 +27,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } return A; diff --git a/tests/baselines/reference/contextualTypingOfConditionalExpression.js b/tests/baselines/reference/contextualTypingOfConditionalExpression.js index f1cca5d3ff4..4d07a64139e 100644 --- a/tests/baselines/reference/contextualTypingOfConditionalExpression.js +++ b/tests/baselines/reference/contextualTypingOfConditionalExpression.js @@ -27,7 +27,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var x = true ? function (a) { return a.toExponential(); } : function (b) { return b.toFixed(); }; +})(); +var x = true ? function (a) { return a.toExponential(); } : function (b) { return b.toFixed(); }; var A = /** @class */ (function () { function A() { diff --git a/tests/baselines/reference/contextualTypingOfConditionalExpression2.js b/tests/baselines/reference/contextualTypingOfConditionalExpression2.js index c0823ff2b98..82f204bae6b 100644 --- a/tests/baselines/reference/contextualTypingOfConditionalExpression2.js +++ b/tests/baselines/reference/contextualTypingOfConditionalExpression2.js @@ -25,7 +25,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } return A; diff --git a/tests/baselines/reference/controlFlowSuperPropertyAccess.js b/tests/baselines/reference/controlFlowSuperPropertyAccess.js index dc17a6a0e06..5c33f22f877 100644 --- a/tests/baselines/reference/controlFlowSuperPropertyAccess.js +++ b/tests/baselines/reference/controlFlowSuperPropertyAccess.js @@ -22,7 +22,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var B = /** @class */ (function () { +})(); +var B = /** @class */ (function () { function B() { } return B; diff --git a/tests/baselines/reference/crashInsourcePropertyIsRelatableToTargetProperty.js b/tests/baselines/reference/crashInsourcePropertyIsRelatableToTargetProperty.js index b106ada4860..5ee99967e15 100644 --- a/tests/baselines/reference/crashInsourcePropertyIsRelatableToTargetProperty.js +++ b/tests/baselines/reference/crashInsourcePropertyIsRelatableToTargetProperty.js @@ -23,7 +23,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C() { this.x = 1; } diff --git a/tests/baselines/reference/declFileClassExtendsNull.js b/tests/baselines/reference/declFileClassExtendsNull.js index 3dc4b6e6a35..daf54d47ade 100644 --- a/tests/baselines/reference/declFileClassExtendsNull.js +++ b/tests/baselines/reference/declFileClassExtendsNull.js @@ -15,7 +15,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var ExtendsNull = /** @class */ (function (_super) { +})(); +var ExtendsNull = /** @class */ (function (_super) { __extends(ExtendsNull, _super); function ExtendsNull() { } diff --git a/tests/baselines/reference/declFileForFunctionTypeAsTypeParameter.js b/tests/baselines/reference/declFileForFunctionTypeAsTypeParameter.js index 4e44d9af8cc..d6c5ecad91f 100644 --- a/tests/baselines/reference/declFileForFunctionTypeAsTypeParameter.js +++ b/tests/baselines/reference/declFileForFunctionTypeAsTypeParameter.js @@ -21,7 +21,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var X = /** @class */ (function () { +})(); +var X = /** @class */ (function () { function X() { } return X; diff --git a/tests/baselines/reference/declarationEmitExpressionInExtends.js b/tests/baselines/reference/declarationEmitExpressionInExtends.js index 89df64a4158..f641b2758b1 100644 --- a/tests/baselines/reference/declarationEmitExpressionInExtends.js +++ b/tests/baselines/reference/declarationEmitExpressionInExtends.js @@ -26,7 +26,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var x; +})(); +var x; var Q = /** @class */ (function () { function Q() { diff --git a/tests/baselines/reference/declarationEmitExpressionInExtends2.js b/tests/baselines/reference/declarationEmitExpressionInExtends2.js index fbc83ca1a30..af6c123efc9 100644 --- a/tests/baselines/reference/declarationEmitExpressionInExtends2.js +++ b/tests/baselines/reference/declarationEmitExpressionInExtends2.js @@ -24,7 +24,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C() { } return C; diff --git a/tests/baselines/reference/declarationEmitExpressionInExtends4.js b/tests/baselines/reference/declarationEmitExpressionInExtends4.js index fec2e06de95..cadde2fc517 100644 --- a/tests/baselines/reference/declarationEmitExpressionInExtends4.js +++ b/tests/baselines/reference/declarationEmitExpressionInExtends4.js @@ -29,7 +29,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();function getSomething() { +})(); +function getSomething() { return /** @class */ (function () { function D() {} return D; diff --git a/tests/baselines/reference/decoratedClassFromExternalModule.js b/tests/baselines/reference/decoratedClassFromExternalModule.js index 35ca7ff3226..ab5fd5578b0 100644 --- a/tests/baselines/reference/decoratedClassFromExternalModule.js +++ b/tests/baselines/reference/decoratedClassFromExternalModule.js @@ -15,7 +15,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; -};function decorate(target) { } +}; +function decorate(target) { } let Decorated = /** @class */ (() => { let Decorated = class Decorated {}; Decorated = __decorate([ diff --git a/tests/baselines/reference/decoratorMetadataNoStrictNull.js b/tests/baselines/reference/decoratorMetadataNoStrictNull.js index caf6170ce31..dada68f0960 100644 --- a/tests/baselines/reference/decoratorMetadataNoStrictNull.js +++ b/tests/baselines/reference/decoratorMetadataNoStrictNull.js @@ -15,7 +15,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); -};var dec = function (obj, prop) { return undefined; }; +}; +var dec = function (obj, prop) { return undefined; }; var Foo = /** @class */ (function () { function Foo() { } diff --git a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js index f4df00e917a..4cb19d87c27 100644 --- a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js +++ b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js @@ -46,7 +46,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C(value) { this.cProp = 10; return { diff --git a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js.map b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js.map index 4069578e2e2..d4f5951f324 100644 --- a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js.map +++ b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js.map @@ -1,3 +1,3 @@ //// [derivedClassConstructorWithExplicitReturns01.js.map] -{"version":3,"file":"derivedClassConstructorWithExplicitReturns01.js","sourceRoot":"","sources":["derivedClassConstructorWithExplicitReturns01.ts"],"names":[],"mappings":";;;;;;;;;;;;KAAA;IAKI,WAAY,KAAa;QAJzB,UAAK,GAAG,EAAE,CAAC;QAKP,OAAO;YACH,KAAK,EAAE,KAAK;YACZ,GAAG;gBACC,OAAO,8BAA8B,CAAC;YAC1C,CAAC;SACJ,CAAA;IACL,CAAC,AATD,eAAG,GAAH,cAAQ,OAAO,uBAAuB,CAAC,CAAC,CAAC;IAU7C,QAAC;AAAD,CAAC,AAbD,IAaC;AAED;IAAgB,qBAAC;IAGb,WAAY,CAAO,GAAP,kBAAA,EAAA,OAAO;QAAnB,YACI,kBAAM,CAAC,CAAC,SAYX;QAfD,WAAK,GAAG,cAAM,OAAA,KAAI,EAAJ,CAAI,CAAC;QAKf,IAAI,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,EAAE;YACrB,UAAU,CAAA;YACV,OAAO;gBACH,KAAK,EAAE,CAAC;gBACR,KAAK,EAAE,cAAM,OAAA,KAAI,EAAJ,CAAI;gBACjB,GAAG,gBAAK,OAAO,cAAc,CAAA,CAAC,CAAC;aAClC,CAAC;SACL;;YAEG,OAAO,IAAI,CAAC;IACpB,CAAC;IACL,QAAC;AAAD,CAAC,AAjBD,CAAgB,CAAC,GAiBhB"} -//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fZXh0ZW5kcyA9ICh0aGlzICYmIHRoaXMuX19leHRlbmRzKSB8fCAoZnVuY3Rpb24gKCkgew0KICAgIHZhciBleHRlbmRTdGF0aWNzID0gZnVuY3Rpb24gKGQsIGIpIHsNCiAgICAgICAgZXh0ZW5kU3RhdGljcyA9IE9iamVjdC5zZXRQcm90b3R5cGVPZiB8fA0KICAgICAgICAgICAgKHsgX19wcm90b19fOiBbXSB9IGluc3RhbmNlb2YgQXJyYXkgJiYgZnVuY3Rpb24gKGQsIGIpIHsgZC5fX3Byb3RvX18gPSBiOyB9KSB8fA0KICAgICAgICAgICAgZnVuY3Rpb24gKGQsIGIpIHsgZm9yICh2YXIgcCBpbiBiKSBpZiAoYi5oYXNPd25Qcm9wZXJ0eShwKSkgZFtwXSA9IGJbcF07IH07DQogICAgICAgIHJldHVybiBleHRlbmRTdGF0aWNzKGQsIGIpOw0KICAgIH07DQogICAgcmV0dXJuIGZ1bmN0aW9uIChkLCBiKSB7DQogICAgICAgIGV4dGVuZFN0YXRpY3MoZCwgYik7DQogICAgICAgIGZ1bmN0aW9uIF9fKCkgeyB0aGlzLmNvbnN0cnVjdG9yID0gZDsgfQ0KICAgICAgICBkLnByb3RvdHlwZSA9IGIgPT09IG51bGwgPyBPYmplY3QuY3JlYXRlKGIpIDogKF9fLnByb3RvdHlwZSA9IGIucHJvdG90eXBlLCBuZXcgX18oKSk7DQogICAgfTsNCn0pKCk7dmFyIEMgPSAvKiogQGNsYXNzICovIChmdW5jdGlvbiAoKSB7DQogICAgZnVuY3Rpb24gQyh2YWx1ZSkgew0KICAgICAgICB0aGlzLmNQcm9wID0gMTA7DQogICAgICAgIHJldHVybiB7DQogICAgICAgICAgICBjUHJvcDogdmFsdWUsDQogICAgICAgICAgICBmb286IGZ1bmN0aW9uICgpIHsNCiAgICAgICAgICAgICAgICByZXR1cm4gIndlbGwgdGhpcyBsb29rcyBraW5kYSBDLWlzaC4iOw0KICAgICAgICAgICAgfQ0KICAgICAgICB9Ow0KICAgIH1DLnByb3RvdHlwZS5mb28gPSBmdW5jdGlvbiAoKSB7IHJldHVybiAidGhpcyBuZXZlciBnZXRzIHVzZWQuIjsgfTsNCiAgICByZXR1cm4gQzsNCn0oKSk7DQp2YXIgRCA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uIChfc3VwZXIpIHsNCiAgICBfX2V4dGVuZHMoRCwgX3N1cGVyKTsNCiAgICBmdW5jdGlvbiBEKGEpIHtpZiAoYSA9PT0gdm9pZCAwKSB7IGEgPSAxMDA7IH0NCiAgICAgICAgdmFyIF90aGlzID0gX3N1cGVyLmNhbGwodGhpcywgYSkgfHwgdGhpczsNCiAgICAgICAgX3RoaXMuZFByb3AgPSBmdW5jdGlvbiAoKSB7IHJldHVybiBfdGhpczsgfTsNCiAgICAgICAgaWYgKE1hdGgucmFuZG9tKCkgPCAwLjUpIHsNCiAgICAgICAgICAgICJZb3Ugd2luISI7DQogICAgICAgICAgICByZXR1cm4gew0KICAgICAgICAgICAgICAgIGNQcm9wOiAxLA0KICAgICAgICAgICAgICAgIGRQcm9wOiBmdW5jdGlvbiAoKSB7IHJldHVybiBfdGhpczsgfSwNCiAgICAgICAgICAgICAgICBmb286IGZ1bmN0aW9uICgpIHsgcmV0dXJuICJZb3Ugd2luISEhISEiOyB9DQogICAgICAgICAgICB9Ow0KICAgICAgICB9DQogICAgICAgIGVsc2UNCiAgICAgICAgICAgIHJldHVybiBudWxsOw0KICAgIH0NCiAgICByZXR1cm4gRDsNCn0oQykpOw0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9ZGVyaXZlZENsYXNzQ29uc3RydWN0b3JXaXRoRXhwbGljaXRSZXR1cm5zMDEuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVyaXZlZENsYXNzQ29uc3RydWN0b3JXaXRoRXhwbGljaXRSZXR1cm5zMDEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkZXJpdmVkQ2xhc3NDb25zdHJ1Y3RvcldpdGhFeHBsaWNpdFJldHVybnMwMS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7S0FBQTtJQUtJLFdBQVksS0FBYTtRQUp6QixVQUFLLEdBQUcsRUFBRSxDQUFDO1FBS1AsT0FBTztZQUNILEtBQUssRUFBRSxLQUFLO1lBQ1osR0FBRztnQkFDQyxPQUFPLDhCQUE4QixDQUFDO1lBQzFDLENBQUM7U0FDSixDQUFBO0lBQ0wsQ0FBQyxBQVRELGVBQUcsR0FBSCxjQUFRLE9BQU8sdUJBQXVCLENBQUMsQ0FBQyxDQUFDO0lBVTdDLFFBQUM7QUFBRCxDQUFDLEFBYkQsSUFhQztBQUVEO0lBQWdCLHFCQUFDO0lBR2IsV0FBWSxDQUFPLEdBQVAsa0JBQUEsRUFBQSxPQUFPO1FBQW5CLFlBQ0ksa0JBQU0sQ0FBQyxDQUFDLFNBWVg7UUFmRCxXQUFLLEdBQUcsY0FBTSxPQUFBLEtBQUksRUFBSixDQUFJLENBQUM7UUFLZixJQUFJLElBQUksQ0FBQyxNQUFNLEVBQUUsR0FBRyxHQUFHLEVBQUU7WUFDckIsVUFBVSxDQUFBO1lBQ1YsT0FBTztnQkFDSCxLQUFLLEVBQUUsQ0FBQztnQkFDUixLQUFLLEVBQUUsY0FBTSxPQUFBLEtBQUksRUFBSixDQUFJO2dCQUNqQixHQUFHLGdCQUFLLE9BQU8sY0FBYyxDQUFBLENBQUMsQ0FBQzthQUNsQyxDQUFDO1NBQ0w7O1lBRUcsT0FBTyxJQUFJLENBQUM7SUFDcEIsQ0FBQztJQUNMLFFBQUM7QUFBRCxDQUFDLEFBakJELENBQWdCLENBQUMsR0FpQmhCIn0=,Y2xhc3MgQyB7CiAgICBjUHJvcCA9IDEwOwoKICAgIGZvbygpIHsgcmV0dXJuICJ0aGlzIG5ldmVyIGdldHMgdXNlZC4iOyB9CgogICAgY29uc3RydWN0b3IodmFsdWU6IG51bWJlcikgewogICAgICAgIHJldHVybiB7CiAgICAgICAgICAgIGNQcm9wOiB2YWx1ZSwKICAgICAgICAgICAgZm9vKCkgewogICAgICAgICAgICAgICAgcmV0dXJuICJ3ZWxsIHRoaXMgbG9va3Mga2luZGEgQy1pc2guIjsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgIH0KfQoKY2xhc3MgRCBleHRlbmRzIEMgewogICAgZFByb3AgPSAoKSA9PiB0aGlzOwoKICAgIGNvbnN0cnVjdG9yKGEgPSAxMDApIHsKICAgICAgICBzdXBlcihhKTsKCiAgICAgICAgaWYgKE1hdGgucmFuZG9tKCkgPCAwLjUpIHsKICAgICAgICAgICAgIllvdSB3aW4hIgogICAgICAgICAgICByZXR1cm4gewogICAgICAgICAgICAgICAgY1Byb3A6IDEsCiAgICAgICAgICAgICAgICBkUHJvcDogKCkgPT4gdGhpcywKICAgICAgICAgICAgICAgIGZvbygpIHsgcmV0dXJuICJZb3Ugd2luISEhISEiIH0KICAgICAgICAgICAgfTsKICAgICAgICB9CiAgICAgICAgZWxzZQogICAgICAgICAgICByZXR1cm4gbnVsbDsKICAgIH0KfQ== +{"version":3,"file":"derivedClassConstructorWithExplicitReturns01.js","sourceRoot":"","sources":["derivedClassConstructorWithExplicitReturns01.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;IAKI,WAAY,KAAa;QAJzB,UAAK,GAAG,EAAE,CAAC;QAKP,OAAO;YACH,KAAK,EAAE,KAAK;YACZ,GAAG;gBACC,OAAO,8BAA8B,CAAC;YAC1C,CAAC;SACJ,CAAA;IACL,CAAC,AATD,eAAG,GAAH,cAAQ,OAAO,uBAAuB,CAAC,CAAC,CAAC;IAU7C,QAAC;AAAD,CAAC,AAbD,IAaC;AAED;IAAgB,qBAAC;IAGb,WAAY,CAAO,GAAP,kBAAA,EAAA,OAAO;QAAnB,YACI,kBAAM,CAAC,CAAC,SAYX;QAfD,WAAK,GAAG,cAAM,OAAA,KAAI,EAAJ,CAAI,CAAC;QAKf,IAAI,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,EAAE;YACrB,UAAU,CAAA;YACV,OAAO;gBACH,KAAK,EAAE,CAAC;gBACR,KAAK,EAAE,cAAM,OAAA,KAAI,EAAJ,CAAI;gBACjB,GAAG,gBAAK,OAAO,cAAc,CAAA,CAAC,CAAC;aAClC,CAAC;SACL;;YAEG,OAAO,IAAI,CAAC;IACpB,CAAC;IACL,QAAC;AAAD,CAAC,AAjBD,CAAgB,CAAC,GAiBhB"} +//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fZXh0ZW5kcyA9ICh0aGlzICYmIHRoaXMuX19leHRlbmRzKSB8fCAoZnVuY3Rpb24gKCkgew0KICAgIHZhciBleHRlbmRTdGF0aWNzID0gZnVuY3Rpb24gKGQsIGIpIHsNCiAgICAgICAgZXh0ZW5kU3RhdGljcyA9IE9iamVjdC5zZXRQcm90b3R5cGVPZiB8fA0KICAgICAgICAgICAgKHsgX19wcm90b19fOiBbXSB9IGluc3RhbmNlb2YgQXJyYXkgJiYgZnVuY3Rpb24gKGQsIGIpIHsgZC5fX3Byb3RvX18gPSBiOyB9KSB8fA0KICAgICAgICAgICAgZnVuY3Rpb24gKGQsIGIpIHsgZm9yICh2YXIgcCBpbiBiKSBpZiAoYi5oYXNPd25Qcm9wZXJ0eShwKSkgZFtwXSA9IGJbcF07IH07DQogICAgICAgIHJldHVybiBleHRlbmRTdGF0aWNzKGQsIGIpOw0KICAgIH07DQogICAgcmV0dXJuIGZ1bmN0aW9uIChkLCBiKSB7DQogICAgICAgIGV4dGVuZFN0YXRpY3MoZCwgYik7DQogICAgICAgIGZ1bmN0aW9uIF9fKCkgeyB0aGlzLmNvbnN0cnVjdG9yID0gZDsgfQ0KICAgICAgICBkLnByb3RvdHlwZSA9IGIgPT09IG51bGwgPyBPYmplY3QuY3JlYXRlKGIpIDogKF9fLnByb3RvdHlwZSA9IGIucHJvdG90eXBlLCBuZXcgX18oKSk7DQogICAgfTsNCn0pKCk7DQp2YXIgQyA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uICgpIHsNCiAgICBmdW5jdGlvbiBDKHZhbHVlKSB7DQogICAgICAgIHRoaXMuY1Byb3AgPSAxMDsNCiAgICAgICAgcmV0dXJuIHsNCiAgICAgICAgICAgIGNQcm9wOiB2YWx1ZSwNCiAgICAgICAgICAgIGZvbzogZnVuY3Rpb24gKCkgew0KICAgICAgICAgICAgICAgIHJldHVybiAid2VsbCB0aGlzIGxvb2tzIGtpbmRhIEMtaXNoLiI7DQogICAgICAgICAgICB9DQogICAgICAgIH07DQogICAgfUMucHJvdG90eXBlLmZvbyA9IGZ1bmN0aW9uICgpIHsgcmV0dXJuICJ0aGlzIG5ldmVyIGdldHMgdXNlZC4iOyB9Ow0KICAgIHJldHVybiBDOw0KfSgpKTsNCnZhciBEID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKF9zdXBlcikgew0KICAgIF9fZXh0ZW5kcyhELCBfc3VwZXIpOw0KICAgIGZ1bmN0aW9uIEQoYSkge2lmIChhID09PSB2b2lkIDApIHsgYSA9IDEwMDsgfQ0KICAgICAgICB2YXIgX3RoaXMgPSBfc3VwZXIuY2FsbCh0aGlzLCBhKSB8fCB0aGlzOw0KICAgICAgICBfdGhpcy5kUHJvcCA9IGZ1bmN0aW9uICgpIHsgcmV0dXJuIF90aGlzOyB9Ow0KICAgICAgICBpZiAoTWF0aC5yYW5kb20oKSA8IDAuNSkgew0KICAgICAgICAgICAgIllvdSB3aW4hIjsNCiAgICAgICAgICAgIHJldHVybiB7DQogICAgICAgICAgICAgICAgY1Byb3A6IDEsDQogICAgICAgICAgICAgICAgZFByb3A6IGZ1bmN0aW9uICgpIHsgcmV0dXJuIF90aGlzOyB9LA0KICAgICAgICAgICAgICAgIGZvbzogZnVuY3Rpb24gKCkgeyByZXR1cm4gIllvdSB3aW4hISEhISI7IH0NCiAgICAgICAgICAgIH07DQogICAgICAgIH0NCiAgICAgICAgZWxzZQ0KICAgICAgICAgICAgcmV0dXJuIG51bGw7DQogICAgfQ0KICAgIHJldHVybiBEOw0KfShDKSk7DQovLyMgc291cmNlTWFwcGluZ1VSTD1kZXJpdmVkQ2xhc3NDb25zdHJ1Y3RvcldpdGhFeHBsaWNpdFJldHVybnMwMS5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVyaXZlZENsYXNzQ29uc3RydWN0b3JXaXRoRXhwbGljaXRSZXR1cm5zMDEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkZXJpdmVkQ2xhc3NDb25zdHJ1Y3RvcldpdGhFeHBsaWNpdFJldHVybnMwMS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7O0FBQUE7SUFLSSxXQUFZLEtBQWE7UUFKekIsVUFBSyxHQUFHLEVBQUUsQ0FBQztRQUtQLE9BQU87WUFDSCxLQUFLLEVBQUUsS0FBSztZQUNaLEdBQUc7Z0JBQ0MsT0FBTyw4QkFBOEIsQ0FBQztZQUMxQyxDQUFDO1NBQ0osQ0FBQTtJQUNMLENBQUMsQUFURCxlQUFHLEdBQUgsY0FBUSxPQUFPLHVCQUF1QixDQUFDLENBQUMsQ0FBQztJQVU3QyxRQUFDO0FBQUQsQ0FBQyxBQWJELElBYUM7QUFFRDtJQUFnQixxQkFBQztJQUdiLFdBQVksQ0FBTyxHQUFQLGtCQUFBLEVBQUEsT0FBTztRQUFuQixZQUNJLGtCQUFNLENBQUMsQ0FBQyxTQVlYO1FBZkQsV0FBSyxHQUFHLGNBQU0sT0FBQSxLQUFJLEVBQUosQ0FBSSxDQUFDO1FBS2YsSUFBSSxJQUFJLENBQUMsTUFBTSxFQUFFLEdBQUcsR0FBRyxFQUFFO1lBQ3JCLFVBQVUsQ0FBQTtZQUNWLE9BQU87Z0JBQ0gsS0FBSyxFQUFFLENBQUM7Z0JBQ1IsS0FBSyxFQUFFLGNBQU0sT0FBQSxLQUFJLEVBQUosQ0FBSTtnQkFDakIsR0FBRyxnQkFBSyxPQUFPLGNBQWMsQ0FBQSxDQUFDLENBQUM7YUFDbEMsQ0FBQztTQUNMOztZQUVHLE9BQU8sSUFBSSxDQUFDO0lBQ3BCLENBQUM7SUFDTCxRQUFDO0FBQUQsQ0FBQyxBQWpCRCxDQUFnQixDQUFDLEdBaUJoQiJ9,Y2xhc3MgQyB7CiAgICBjUHJvcCA9IDEwOwoKICAgIGZvbygpIHsgcmV0dXJuICJ0aGlzIG5ldmVyIGdldHMgdXNlZC4iOyB9CgogICAgY29uc3RydWN0b3IodmFsdWU6IG51bWJlcikgewogICAgICAgIHJldHVybiB7CiAgICAgICAgICAgIGNQcm9wOiB2YWx1ZSwKICAgICAgICAgICAgZm9vKCkgewogICAgICAgICAgICAgICAgcmV0dXJuICJ3ZWxsIHRoaXMgbG9va3Mga2luZGEgQy1pc2guIjsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgIH0KfQoKY2xhc3MgRCBleHRlbmRzIEMgewogICAgZFByb3AgPSAoKSA9PiB0aGlzOwoKICAgIGNvbnN0cnVjdG9yKGEgPSAxMDApIHsKICAgICAgICBzdXBlcihhKTsKCiAgICAgICAgaWYgKE1hdGgucmFuZG9tKCkgPCAwLjUpIHsKICAgICAgICAgICAgIllvdSB3aW4hIgogICAgICAgICAgICByZXR1cm4gewogICAgICAgICAgICAgICAgY1Byb3A6IDEsCiAgICAgICAgICAgICAgICBkUHJvcDogKCkgPT4gdGhpcywKICAgICAgICAgICAgICAgIGZvbygpIHsgcmV0dXJuICJZb3Ugd2luISEhISEiIH0KICAgICAgICAgICAgfTsKICAgICAgICB9CiAgICAgICAgZWxzZQogICAgICAgICAgICByZXR1cm4gbnVsbDsKICAgIH0KfQ== diff --git a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.sourcemap.txt b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.sourcemap.txt index 2f857f9999c..80732cf561b 100644 --- a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.sourcemap.txt +++ b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.sourcemap.txt @@ -20,11 +20,12 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts >>> function __() { this.constructor = d; } >>> d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); >>> }; ->>>})();var C = /** @class */ (function () { -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> +>>>})(); +>>>var C = /** @class */ (function () { 1 > -1 >Emitted(13, 6) Source(1, 1) + SourceIndex(0) +2 >^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(14, 1) Source(1, 1) + SourceIndex(0) --- >>> function C(value) { 1->^^^^ @@ -39,9 +40,9 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts > 2 > constructor( 3 > value: number -1->Emitted(14, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(14, 16) Source(6, 17) + SourceIndex(0) -3 >Emitted(14, 21) Source(6, 30) + SourceIndex(0) +1->Emitted(15, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(15, 16) Source(6, 17) + SourceIndex(0) +3 >Emitted(15, 21) Source(6, 30) + SourceIndex(0) --- >>> this.cProp = 10; 1->^^^^^^^^ @@ -54,11 +55,11 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 3 > = 4 > 10 5 > ; -1->Emitted(15, 9) Source(2, 5) + SourceIndex(0) -2 >Emitted(15, 19) Source(2, 10) + SourceIndex(0) -3 >Emitted(15, 22) Source(2, 13) + SourceIndex(0) -4 >Emitted(15, 24) Source(2, 15) + SourceIndex(0) -5 >Emitted(15, 25) Source(2, 16) + SourceIndex(0) +1->Emitted(16, 9) Source(2, 5) + SourceIndex(0) +2 >Emitted(16, 19) Source(2, 10) + SourceIndex(0) +3 >Emitted(16, 22) Source(2, 13) + SourceIndex(0) +4 >Emitted(16, 24) Source(2, 15) + SourceIndex(0) +5 >Emitted(16, 25) Source(2, 16) + SourceIndex(0) --- >>> return { 1 >^^^^^^^^ @@ -71,8 +72,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts > constructor(value: number) { > 2 > return -1 >Emitted(16, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(16, 16) Source(7, 16) + SourceIndex(0) +1 >Emitted(17, 9) Source(7, 9) + SourceIndex(0) +2 >Emitted(17, 16) Source(7, 16) + SourceIndex(0) --- >>> cProp: value, 1->^^^^^^^^^^^^ @@ -85,10 +86,10 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 2 > cProp 3 > : 4 > value -1->Emitted(17, 13) Source(8, 13) + SourceIndex(0) -2 >Emitted(17, 18) Source(8, 18) + SourceIndex(0) -3 >Emitted(17, 20) Source(8, 20) + SourceIndex(0) -4 >Emitted(17, 25) Source(8, 25) + SourceIndex(0) +1->Emitted(18, 13) Source(8, 13) + SourceIndex(0) +2 >Emitted(18, 18) Source(8, 18) + SourceIndex(0) +3 >Emitted(18, 20) Source(8, 20) + SourceIndex(0) +4 >Emitted(18, 25) Source(8, 25) + SourceIndex(0) --- >>> foo: function () { 1->^^^^^^^^^^^^ @@ -97,8 +98,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 1->, > 2 > foo -1->Emitted(18, 13) Source(9, 13) + SourceIndex(0) -2 >Emitted(18, 16) Source(9, 16) + SourceIndex(0) +1->Emitted(19, 13) Source(9, 13) + SourceIndex(0) +2 >Emitted(19, 16) Source(9, 16) + SourceIndex(0) --- >>> return "well this looks kinda C-ish."; 1->^^^^^^^^^^^^^^^^ @@ -110,10 +111,10 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 2 > return 3 > "well this looks kinda C-ish." 4 > ; -1->Emitted(19, 17) Source(10, 17) + SourceIndex(0) -2 >Emitted(19, 24) Source(10, 24) + SourceIndex(0) -3 >Emitted(19, 54) Source(10, 54) + SourceIndex(0) -4 >Emitted(19, 55) Source(10, 55) + SourceIndex(0) +1->Emitted(20, 17) Source(10, 17) + SourceIndex(0) +2 >Emitted(20, 24) Source(10, 24) + SourceIndex(0) +3 >Emitted(20, 54) Source(10, 54) + SourceIndex(0) +4 >Emitted(20, 55) Source(10, 55) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^ @@ -121,8 +122,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 1 > > 2 > } -1 >Emitted(20, 13) Source(11, 13) + SourceIndex(0) -2 >Emitted(20, 14) Source(11, 14) + SourceIndex(0) +1 >Emitted(21, 13) Source(11, 13) + SourceIndex(0) +2 >Emitted(21, 14) Source(11, 14) + SourceIndex(0) --- >>> }; 1 >^^^^^^^^^ @@ -131,8 +132,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 1 > > } 2 > -1 >Emitted(21, 10) Source(12, 10) + SourceIndex(0) -2 >Emitted(21, 11) Source(12, 10) + SourceIndex(0) +1 >Emitted(22, 10) Source(12, 10) + SourceIndex(0) +2 >Emitted(22, 11) Source(12, 10) + SourceIndex(0) --- >>> }C.prototype.foo = function () { return "this never gets used."; }; 1->^^^^ @@ -158,17 +159,17 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 9 > ; 10> 11> } -1->Emitted(22, 5) Source(13, 5) + SourceIndex(0) -2 >Emitted(22, 6) Source(13, 6) + SourceIndex(0) -3 >Emitted(22, 6) Source(4, 5) + SourceIndex(0) -4 >Emitted(22, 21) Source(4, 8) + SourceIndex(0) -5 >Emitted(22, 24) Source(4, 5) + SourceIndex(0) -6 >Emitted(22, 38) Source(4, 13) + SourceIndex(0) -7 >Emitted(22, 45) Source(4, 20) + SourceIndex(0) -8 >Emitted(22, 68) Source(4, 43) + SourceIndex(0) -9 >Emitted(22, 69) Source(4, 44) + SourceIndex(0) -10>Emitted(22, 70) Source(4, 45) + SourceIndex(0) -11>Emitted(22, 71) Source(4, 46) + SourceIndex(0) +1->Emitted(23, 5) Source(13, 5) + SourceIndex(0) +2 >Emitted(23, 6) Source(13, 6) + SourceIndex(0) +3 >Emitted(23, 6) Source(4, 5) + SourceIndex(0) +4 >Emitted(23, 21) Source(4, 8) + SourceIndex(0) +5 >Emitted(23, 24) Source(4, 5) + SourceIndex(0) +6 >Emitted(23, 38) Source(4, 13) + SourceIndex(0) +7 >Emitted(23, 45) Source(4, 20) + SourceIndex(0) +8 >Emitted(23, 68) Source(4, 43) + SourceIndex(0) +9 >Emitted(23, 69) Source(4, 44) + SourceIndex(0) +10>Emitted(23, 70) Source(4, 45) + SourceIndex(0) +11>Emitted(23, 71) Source(4, 46) + SourceIndex(0) --- >>> return C; 1 >^^^^ @@ -185,8 +186,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts > } > 2 > } -1 >Emitted(23, 5) Source(14, 1) + SourceIndex(0) -2 >Emitted(23, 13) Source(14, 2) + SourceIndex(0) +1 >Emitted(24, 5) Source(14, 1) + SourceIndex(0) +2 >Emitted(24, 13) Source(14, 2) + SourceIndex(0) --- >>>}()); 1 > @@ -211,10 +212,10 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts > } > } > } -1 >Emitted(24, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(24, 2) Source(14, 2) + SourceIndex(0) -3 >Emitted(24, 2) Source(1, 1) + SourceIndex(0) -4 >Emitted(24, 6) Source(14, 2) + SourceIndex(0) +1 >Emitted(25, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(25, 2) Source(14, 2) + SourceIndex(0) +3 >Emitted(25, 2) Source(1, 1) + SourceIndex(0) +4 >Emitted(25, 6) Source(14, 2) + SourceIndex(0) --- >>>var D = /** @class */ (function (_super) { 1-> @@ -222,7 +223,7 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 1-> > > -1->Emitted(25, 1) Source(16, 1) + SourceIndex(0) +1->Emitted(26, 1) Source(16, 1) + SourceIndex(0) --- >>> __extends(D, _super); 1->^^^^ @@ -230,8 +231,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->class D extends 2 > C -1->Emitted(26, 5) Source(16, 17) + SourceIndex(0) -2 >Emitted(26, 26) Source(16, 18) + SourceIndex(0) +1->Emitted(27, 5) Source(16, 17) + SourceIndex(0) +2 >Emitted(27, 26) Source(16, 18) + SourceIndex(0) --- >>> function D(a) {if (a === void 0) { a = 100; } 1->^^^^ @@ -252,13 +253,13 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 5 > 6 > 7 > a = 100 -1->Emitted(27, 5) Source(19, 5) + SourceIndex(0) -2 >Emitted(27, 16) Source(19, 17) + SourceIndex(0) -3 >Emitted(27, 17) Source(19, 24) + SourceIndex(0) -4 >Emitted(27, 20) Source(19, 17) + SourceIndex(0) -5 >Emitted(27, 38) Source(19, 17) + SourceIndex(0) -6 >Emitted(27, 40) Source(19, 17) + SourceIndex(0) -7 >Emitted(27, 47) Source(19, 24) + SourceIndex(0) +1->Emitted(28, 5) Source(19, 5) + SourceIndex(0) +2 >Emitted(28, 16) Source(19, 17) + SourceIndex(0) +3 >Emitted(28, 17) Source(19, 24) + SourceIndex(0) +4 >Emitted(28, 20) Source(19, 17) + SourceIndex(0) +5 >Emitted(28, 38) Source(19, 17) + SourceIndex(0) +6 >Emitted(28, 40) Source(19, 17) + SourceIndex(0) +7 >Emitted(28, 47) Source(19, 24) + SourceIndex(0) --- >>> var _this = _super.call(this, a) || this; 1->^^^^^^^^ @@ -287,12 +288,12 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts > else > return null; > } -1->Emitted(28, 9) Source(19, 5) + SourceIndex(0) -2 >Emitted(28, 21) Source(20, 9) + SourceIndex(0) -3 >Emitted(28, 39) Source(20, 15) + SourceIndex(0) -4 >Emitted(28, 40) Source(20, 16) + SourceIndex(0) -5 >Emitted(28, 41) Source(20, 17) + SourceIndex(0) -6 >Emitted(28, 50) Source(32, 6) + SourceIndex(0) +1->Emitted(29, 9) Source(19, 5) + SourceIndex(0) +2 >Emitted(29, 21) Source(20, 9) + SourceIndex(0) +3 >Emitted(29, 39) Source(20, 15) + SourceIndex(0) +4 >Emitted(29, 40) Source(20, 16) + SourceIndex(0) +5 >Emitted(29, 41) Source(20, 17) + SourceIndex(0) +6 >Emitted(29, 50) Source(32, 6) + SourceIndex(0) --- >>> _this.dProp = function () { return _this; }; 1->^^^^^^^^ @@ -313,15 +314,15 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 7 > 8 > this 9 > ; -1->Emitted(29, 9) Source(17, 5) + SourceIndex(0) -2 >Emitted(29, 20) Source(17, 10) + SourceIndex(0) -3 >Emitted(29, 23) Source(17, 13) + SourceIndex(0) -4 >Emitted(29, 37) Source(17, 19) + SourceIndex(0) -5 >Emitted(29, 44) Source(17, 19) + SourceIndex(0) -6 >Emitted(29, 49) Source(17, 23) + SourceIndex(0) -7 >Emitted(29, 51) Source(17, 19) + SourceIndex(0) -8 >Emitted(29, 52) Source(17, 23) + SourceIndex(0) -9 >Emitted(29, 53) Source(17, 24) + SourceIndex(0) +1->Emitted(30, 9) Source(17, 5) + SourceIndex(0) +2 >Emitted(30, 20) Source(17, 10) + SourceIndex(0) +3 >Emitted(30, 23) Source(17, 13) + SourceIndex(0) +4 >Emitted(30, 37) Source(17, 19) + SourceIndex(0) +5 >Emitted(30, 44) Source(17, 19) + SourceIndex(0) +6 >Emitted(30, 49) Source(17, 23) + SourceIndex(0) +7 >Emitted(30, 51) Source(17, 19) + SourceIndex(0) +8 >Emitted(30, 52) Source(17, 23) + SourceIndex(0) +9 >Emitted(30, 53) Source(17, 24) + SourceIndex(0) --- >>> if (Math.random() < 0.5) { 1 >^^^^^^^^ @@ -347,15 +348,15 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 7 > < 8 > 0.5 9 > ) -1 >Emitted(30, 9) Source(22, 9) + SourceIndex(0) -2 >Emitted(30, 13) Source(22, 13) + SourceIndex(0) -3 >Emitted(30, 17) Source(22, 17) + SourceIndex(0) -4 >Emitted(30, 18) Source(22, 18) + SourceIndex(0) -5 >Emitted(30, 24) Source(22, 24) + SourceIndex(0) -6 >Emitted(30, 26) Source(22, 26) + SourceIndex(0) -7 >Emitted(30, 29) Source(22, 29) + SourceIndex(0) -8 >Emitted(30, 32) Source(22, 32) + SourceIndex(0) -9 >Emitted(30, 34) Source(22, 34) + SourceIndex(0) +1 >Emitted(31, 9) Source(22, 9) + SourceIndex(0) +2 >Emitted(31, 13) Source(22, 13) + SourceIndex(0) +3 >Emitted(31, 17) Source(22, 17) + SourceIndex(0) +4 >Emitted(31, 18) Source(22, 18) + SourceIndex(0) +5 >Emitted(31, 24) Source(22, 24) + SourceIndex(0) +6 >Emitted(31, 26) Source(22, 26) + SourceIndex(0) +7 >Emitted(31, 29) Source(22, 29) + SourceIndex(0) +8 >Emitted(31, 32) Source(22, 32) + SourceIndex(0) +9 >Emitted(31, 34) Source(22, 34) + SourceIndex(0) --- >>> "You win!"; 1 >^^^^^^^^^^^^ @@ -365,9 +366,9 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts > 2 > "You win!" 3 > -1 >Emitted(31, 13) Source(23, 13) + SourceIndex(0) -2 >Emitted(31, 23) Source(23, 23) + SourceIndex(0) -3 >Emitted(31, 24) Source(23, 23) + SourceIndex(0) +1 >Emitted(32, 13) Source(23, 13) + SourceIndex(0) +2 >Emitted(32, 23) Source(23, 23) + SourceIndex(0) +3 >Emitted(32, 24) Source(23, 23) + SourceIndex(0) --- >>> return { 1 >^^^^^^^^^^^^ @@ -376,8 +377,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 1 > > 2 > return -1 >Emitted(32, 13) Source(24, 13) + SourceIndex(0) -2 >Emitted(32, 20) Source(24, 20) + SourceIndex(0) +1 >Emitted(33, 13) Source(24, 13) + SourceIndex(0) +2 >Emitted(33, 20) Source(24, 20) + SourceIndex(0) --- >>> cProp: 1, 1->^^^^^^^^^^^^^^^^ @@ -390,10 +391,10 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 2 > cProp 3 > : 4 > 1 -1->Emitted(33, 17) Source(25, 17) + SourceIndex(0) -2 >Emitted(33, 22) Source(25, 22) + SourceIndex(0) -3 >Emitted(33, 24) Source(25, 24) + SourceIndex(0) -4 >Emitted(33, 25) Source(25, 25) + SourceIndex(0) +1->Emitted(34, 17) Source(25, 17) + SourceIndex(0) +2 >Emitted(34, 22) Source(25, 22) + SourceIndex(0) +3 >Emitted(34, 24) Source(25, 24) + SourceIndex(0) +4 >Emitted(34, 25) Source(25, 25) + SourceIndex(0) --- >>> dProp: function () { return _this; }, 1->^^^^^^^^^^^^^^^^ @@ -414,14 +415,14 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 6 > this 7 > 8 > this -1->Emitted(34, 17) Source(26, 17) + SourceIndex(0) -2 >Emitted(34, 22) Source(26, 22) + SourceIndex(0) -3 >Emitted(34, 24) Source(26, 24) + SourceIndex(0) -4 >Emitted(34, 38) Source(26, 30) + SourceIndex(0) -5 >Emitted(34, 45) Source(26, 30) + SourceIndex(0) -6 >Emitted(34, 50) Source(26, 34) + SourceIndex(0) -7 >Emitted(34, 52) Source(26, 30) + SourceIndex(0) -8 >Emitted(34, 53) Source(26, 34) + SourceIndex(0) +1->Emitted(35, 17) Source(26, 17) + SourceIndex(0) +2 >Emitted(35, 22) Source(26, 22) + SourceIndex(0) +3 >Emitted(35, 24) Source(26, 24) + SourceIndex(0) +4 >Emitted(35, 38) Source(26, 30) + SourceIndex(0) +5 >Emitted(35, 45) Source(26, 30) + SourceIndex(0) +6 >Emitted(35, 50) Source(26, 34) + SourceIndex(0) +7 >Emitted(35, 52) Source(26, 30) + SourceIndex(0) +8 >Emitted(35, 53) Source(26, 34) + SourceIndex(0) --- >>> foo: function () { return "You win!!!!!"; } 1->^^^^^^^^^^^^^^^^ @@ -441,14 +442,14 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 6 > 7 > 8 > } -1->Emitted(35, 17) Source(27, 17) + SourceIndex(0) -2 >Emitted(35, 20) Source(27, 20) + SourceIndex(0) -3 >Emitted(35, 36) Source(27, 25) + SourceIndex(0) -4 >Emitted(35, 43) Source(27, 32) + SourceIndex(0) -5 >Emitted(35, 57) Source(27, 46) + SourceIndex(0) -6 >Emitted(35, 58) Source(27, 46) + SourceIndex(0) -7 >Emitted(35, 59) Source(27, 47) + SourceIndex(0) -8 >Emitted(35, 60) Source(27, 48) + SourceIndex(0) +1->Emitted(36, 17) Source(27, 17) + SourceIndex(0) +2 >Emitted(36, 20) Source(27, 20) + SourceIndex(0) +3 >Emitted(36, 36) Source(27, 25) + SourceIndex(0) +4 >Emitted(36, 43) Source(27, 32) + SourceIndex(0) +5 >Emitted(36, 57) Source(27, 46) + SourceIndex(0) +6 >Emitted(36, 58) Source(27, 46) + SourceIndex(0) +7 >Emitted(36, 59) Source(27, 47) + SourceIndex(0) +8 >Emitted(36, 60) Source(27, 48) + SourceIndex(0) --- >>> }; 1 >^^^^^^^^^^^^^ @@ -456,15 +457,15 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 1 > > } 2 > ; -1 >Emitted(36, 14) Source(28, 14) + SourceIndex(0) -2 >Emitted(36, 15) Source(28, 15) + SourceIndex(0) +1 >Emitted(37, 14) Source(28, 14) + SourceIndex(0) +2 >Emitted(37, 15) Source(28, 15) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^ 2 > ^^^^-> 1 > > } -1 >Emitted(37, 10) Source(29, 10) + SourceIndex(0) +1 >Emitted(38, 10) Source(29, 10) + SourceIndex(0) --- >>> else >>> return null; @@ -478,10 +479,10 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 2 > return 3 > null 4 > ; -1->Emitted(39, 13) Source(31, 13) + SourceIndex(0) -2 >Emitted(39, 20) Source(31, 20) + SourceIndex(0) -3 >Emitted(39, 24) Source(31, 24) + SourceIndex(0) -4 >Emitted(39, 25) Source(31, 25) + SourceIndex(0) +1->Emitted(40, 13) Source(31, 13) + SourceIndex(0) +2 >Emitted(40, 20) Source(31, 20) + SourceIndex(0) +3 >Emitted(40, 24) Source(31, 24) + SourceIndex(0) +4 >Emitted(40, 25) Source(31, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -490,8 +491,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 1 > > 2 > } -1 >Emitted(40, 5) Source(32, 5) + SourceIndex(0) -2 >Emitted(40, 6) Source(32, 6) + SourceIndex(0) +1 >Emitted(41, 5) Source(32, 5) + SourceIndex(0) +2 >Emitted(41, 6) Source(32, 6) + SourceIndex(0) --- >>> return D; 1->^^^^ @@ -499,8 +500,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 1-> > 2 > } -1->Emitted(41, 5) Source(33, 1) + SourceIndex(0) -2 >Emitted(41, 13) Source(33, 2) + SourceIndex(0) +1->Emitted(42, 5) Source(33, 1) + SourceIndex(0) +2 >Emitted(42, 13) Source(33, 2) + SourceIndex(0) --- >>>}(C)); 1 > @@ -533,11 +534,11 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts > return null; > } > } -1 >Emitted(42, 1) Source(33, 1) + SourceIndex(0) -2 >Emitted(42, 2) Source(33, 2) + SourceIndex(0) -3 >Emitted(42, 2) Source(16, 1) + SourceIndex(0) -4 >Emitted(42, 3) Source(16, 17) + SourceIndex(0) -5 >Emitted(42, 4) Source(16, 18) + SourceIndex(0) -6 >Emitted(42, 7) Source(33, 2) + SourceIndex(0) +1 >Emitted(43, 1) Source(33, 1) + SourceIndex(0) +2 >Emitted(43, 2) Source(33, 2) + SourceIndex(0) +3 >Emitted(43, 2) Source(16, 1) + SourceIndex(0) +4 >Emitted(43, 3) Source(16, 17) + SourceIndex(0) +5 >Emitted(43, 4) Source(16, 18) + SourceIndex(0) +6 >Emitted(43, 7) Source(33, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=derivedClassConstructorWithExplicitReturns01.js.map \ No newline at end of file diff --git a/tests/baselines/reference/derivedClassFunctionOverridesBaseClassAccessor.js b/tests/baselines/reference/derivedClassFunctionOverridesBaseClassAccessor.js index 922282914f4..6c7ef87451b 100644 --- a/tests/baselines/reference/derivedClassFunctionOverridesBaseClassAccessor.js +++ b/tests/baselines/reference/derivedClassFunctionOverridesBaseClassAccessor.js @@ -27,7 +27,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } Object.defineProperty(Base.prototype, "x", { diff --git a/tests/baselines/reference/derivedClassIncludesInheritedMembers.js b/tests/baselines/reference/derivedClassIncludesInheritedMembers.js index 5c9755ed9d6..9aeced40a61 100644 --- a/tests/baselines/reference/derivedClassIncludesInheritedMembers.js +++ b/tests/baselines/reference/derivedClassIncludesInheritedMembers.js @@ -53,7 +53,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base(x) {}Base.prototype.b = function () { }; Object.defineProperty(Base.prototype, "c", { get: function () { return ''; }, diff --git a/tests/baselines/reference/derivedClassOverridesIndexersWithAssignmentCompatibility.js b/tests/baselines/reference/derivedClassOverridesIndexersWithAssignmentCompatibility.js index 95f4ea454d4..f5019942482 100644 --- a/tests/baselines/reference/derivedClassOverridesIndexersWithAssignmentCompatibility.js +++ b/tests/baselines/reference/derivedClassOverridesIndexersWithAssignmentCompatibility.js @@ -30,7 +30,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } return Base; diff --git a/tests/baselines/reference/derivedClassOverridesPrivateFunction1.js b/tests/baselines/reference/derivedClassOverridesPrivateFunction1.js index f76fdda12c5..b84daa18b66 100644 --- a/tests/baselines/reference/derivedClassOverridesPrivateFunction1.js +++ b/tests/baselines/reference/derivedClassOverridesPrivateFunction1.js @@ -28,7 +28,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var BaseClass = /** @class */ (function () { +})(); +var BaseClass = /** @class */ (function () { function BaseClass() { this._init(); } diff --git a/tests/baselines/reference/derivedClassOverridesPrivates.js b/tests/baselines/reference/derivedClassOverridesPrivates.js index c4d92d6cb1e..d313a5b5647 100644 --- a/tests/baselines/reference/derivedClassOverridesPrivates.js +++ b/tests/baselines/reference/derivedClassOverridesPrivates.js @@ -28,7 +28,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } return Base; diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers.js b/tests/baselines/reference/derivedClassOverridesProtectedMembers.js index 19dc2c3db6a..2752c41e9a1 100644 --- a/tests/baselines/reference/derivedClassOverridesProtectedMembers.js +++ b/tests/baselines/reference/derivedClassOverridesProtectedMembers.js @@ -48,7 +48,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var x; +})(); +var x; var y; var Base = /** @class */ (function () { diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers2.js b/tests/baselines/reference/derivedClassOverridesProtectedMembers2.js index f609e98f75e..49de876276b 100644 --- a/tests/baselines/reference/derivedClassOverridesProtectedMembers2.js +++ b/tests/baselines/reference/derivedClassOverridesProtectedMembers2.js @@ -76,7 +76,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var x; +})(); +var x; var y; var Base = /** @class */ (function () { diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers3.js b/tests/baselines/reference/derivedClassOverridesProtectedMembers3.js index 608f4773afd..69b82c85a04 100644 --- a/tests/baselines/reference/derivedClassOverridesProtectedMembers3.js +++ b/tests/baselines/reference/derivedClassOverridesProtectedMembers3.js @@ -83,7 +83,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var x; +})(); +var x; var y; var Base = /** @class */ (function () { diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers4.js b/tests/baselines/reference/derivedClassOverridesProtectedMembers4.js index 7d75a099991..85bc907ffaf 100644 --- a/tests/baselines/reference/derivedClassOverridesProtectedMembers4.js +++ b/tests/baselines/reference/derivedClassOverridesProtectedMembers4.js @@ -27,7 +27,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var x; +})(); +var x; var y; var Base = /** @class */ (function () { diff --git a/tests/baselines/reference/derivedClassOverridesPublicMembers.js b/tests/baselines/reference/derivedClassOverridesPublicMembers.js index 4bfad9192de..044bb7e4eec 100644 --- a/tests/baselines/reference/derivedClassOverridesPublicMembers.js +++ b/tests/baselines/reference/derivedClassOverridesPublicMembers.js @@ -75,7 +75,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var x; +})(); +var x; var y; var Base = /** @class */ (function () { diff --git a/tests/baselines/reference/derivedClassOverridesWithoutSubtype.js b/tests/baselines/reference/derivedClassOverridesWithoutSubtype.js index 9e608b25c01..e526f7d8d9b 100644 --- a/tests/baselines/reference/derivedClassOverridesWithoutSubtype.js +++ b/tests/baselines/reference/derivedClassOverridesWithoutSubtype.js @@ -36,7 +36,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } return Base; diff --git a/tests/baselines/reference/derivedClassSuperCallsWithThisArg.js b/tests/baselines/reference/derivedClassSuperCallsWithThisArg.js index 28e8c55559e..f928b81c24e 100644 --- a/tests/baselines/reference/derivedClassSuperCallsWithThisArg.js +++ b/tests/baselines/reference/derivedClassSuperCallsWithThisArg.js @@ -41,7 +41,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base(a) {} return Base; }()); diff --git a/tests/baselines/reference/derivedClassWithAny.js b/tests/baselines/reference/derivedClassWithAny.js index 79aba031eb7..b0ffe170bb6 100644 --- a/tests/baselines/reference/derivedClassWithAny.js +++ b/tests/baselines/reference/derivedClassWithAny.js @@ -72,7 +72,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C() { } Object.defineProperty(C.prototype, "X", { diff --git a/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance.js b/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance.js index ef69bdc8cf5..550927ab3ac 100644 --- a/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance.js +++ b/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance.js @@ -34,7 +34,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } Base.prototype.fn = function () { diff --git a/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingPublicInstance.js b/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingPublicInstance.js index 8a7b4094f54..b48d79ceb70 100644 --- a/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingPublicInstance.js +++ b/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingPublicInstance.js @@ -45,7 +45,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } Base.prototype.fn = function () { diff --git a/tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic.js b/tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic.js index 6cd719389ce..35ef4038dd4 100644 --- a/tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic.js +++ b/tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic.js @@ -33,7 +33,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } Base.fn = function () { diff --git a/tests/baselines/reference/derivedClassWithPrivateStaticShadowingPublicStatic.js b/tests/baselines/reference/derivedClassWithPrivateStaticShadowingPublicStatic.js index 6c230d92b61..bf47da5ece0 100644 --- a/tests/baselines/reference/derivedClassWithPrivateStaticShadowingPublicStatic.js +++ b/tests/baselines/reference/derivedClassWithPrivateStaticShadowingPublicStatic.js @@ -46,7 +46,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } Base.fn = function () { diff --git a/tests/baselines/reference/derivedClassWithoutExplicitConstructor.js b/tests/baselines/reference/derivedClassWithoutExplicitConstructor.js index 1de5ff1e23e..3880bc704ca 100644 --- a/tests/baselines/reference/derivedClassWithoutExplicitConstructor.js +++ b/tests/baselines/reference/derivedClassWithoutExplicitConstructor.js @@ -38,7 +38,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base(x) { this.a = 1; this.a = x; diff --git a/tests/baselines/reference/derivedClassWithoutExplicitConstructor2.js b/tests/baselines/reference/derivedClassWithoutExplicitConstructor2.js index 76176cabc42..ce12c2c1a82 100644 --- a/tests/baselines/reference/derivedClassWithoutExplicitConstructor2.js +++ b/tests/baselines/reference/derivedClassWithoutExplicitConstructor2.js @@ -46,7 +46,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base(x) { this.a = 1; this.a = x; diff --git a/tests/baselines/reference/derivedClasses.js b/tests/baselines/reference/derivedClasses.js index 75db90f4d2f..0c57f1e94aa 100644 --- a/tests/baselines/reference/derivedClasses.js +++ b/tests/baselines/reference/derivedClasses.js @@ -43,7 +43,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Red = /** @class */ (function (_super) { +})(); +var Red = /** @class */ (function (_super) { __extends(Red, _super); function Red() { return _super !== null && _super.apply(this, arguments) || this; diff --git a/tests/baselines/reference/derivedGenericClassWithAny.js b/tests/baselines/reference/derivedGenericClassWithAny.js index b54d5fd89be..e79e3a4b76c 100644 --- a/tests/baselines/reference/derivedGenericClassWithAny.js +++ b/tests/baselines/reference/derivedGenericClassWithAny.js @@ -55,7 +55,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C() { } Object.defineProperty(C.prototype, "X", { diff --git a/tests/baselines/reference/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.js b/tests/baselines/reference/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.js index 1c233324954..21d1f8de156 100644 --- a/tests/baselines/reference/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.js +++ b/tests/baselines/reference/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.js @@ -30,7 +30,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } Base.prototype.foo = function (x) { diff --git a/tests/baselines/reference/derivedTypeDoesNotRequireExtendsClause.js b/tests/baselines/reference/derivedTypeDoesNotRequireExtendsClause.js index 9e0735c9c19..0537d0dd06e 100644 --- a/tests/baselines/reference/derivedTypeDoesNotRequireExtendsClause.js +++ b/tests/baselines/reference/derivedTypeDoesNotRequireExtendsClause.js @@ -33,7 +33,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } return Base; diff --git a/tests/baselines/reference/destructuringAssignmentWithStrictNullChecks.js b/tests/baselines/reference/destructuringAssignmentWithStrictNullChecks.js index 324714d7bc5..78f0941415f 100644 --- a/tests/baselines/reference/destructuringAssignmentWithStrictNullChecks.js +++ b/tests/baselines/reference/destructuringAssignmentWithStrictNullChecks.js @@ -14,5 +14,6 @@ var __rest = (this && this.__rest) || function (s, e) { t[p[i]] = s[p[i]]; } return t; -};var bar; +}; +var bar; (bar = __rest({}, [])); diff --git a/tests/baselines/reference/destructuringObjectBindingPatternAndAssignment5.js b/tests/baselines/reference/destructuringObjectBindingPatternAndAssignment5.js index 2dfc2fbfe33..3ad27f3bcf0 100644 --- a/tests/baselines/reference/destructuringObjectBindingPatternAndAssignment5.js +++ b/tests/baselines/reference/destructuringObjectBindingPatternAndAssignment5.js @@ -17,7 +17,8 @@ var __rest = (this && this.__rest) || function (s, e) { t[p[i]] = s[p[i]]; } return t; -};function a() { +}; +function a() { var _a; var x; var y; diff --git a/tests/baselines/reference/destructuringSpread.js b/tests/baselines/reference/destructuringSpread.js index a8337b4f76e..4f6c4a632ba 100644 --- a/tests/baselines/reference/destructuringSpread.js +++ b/tests/baselines/reference/destructuringSpread.js @@ -39,7 +39,8 @@ var __assign = (this && this.__assign) || function () { return t; }; return __assign.apply(this, arguments); -};var x = __assign({}, { x: 0 }).x; +}; +var x = __assign({}, { x: 0 }).x; var y = __assign({ y: 0 }, {}).y; diff --git a/tests/baselines/reference/emitClassDeclarationWithPropertyAccessInHeritageClause1.js b/tests/baselines/reference/emitClassDeclarationWithPropertyAccessInHeritageClause1.js index 79fe6d1710b..f4e3b2eccfe 100644 --- a/tests/baselines/reference/emitClassDeclarationWithPropertyAccessInHeritageClause1.js +++ b/tests/baselines/reference/emitClassDeclarationWithPropertyAccessInHeritageClause1.js @@ -18,7 +18,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var B = /** @class */ (function () { +})(); +var B = /** @class */ (function () { function B() {} return B; }()); diff --git a/tests/baselines/reference/emitSuperCallBeforeEmitParameterPropertyDeclaration1.js b/tests/baselines/reference/emitSuperCallBeforeEmitParameterPropertyDeclaration1.js index b38bad9a3bd..46979a25b15 100644 --- a/tests/baselines/reference/emitSuperCallBeforeEmitParameterPropertyDeclaration1.js +++ b/tests/baselines/reference/emitSuperCallBeforeEmitParameterPropertyDeclaration1.js @@ -26,7 +26,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { this.blub = 6; } diff --git a/tests/baselines/reference/emitSuperCallBeforeEmitPropertyDeclaration1.js b/tests/baselines/reference/emitSuperCallBeforeEmitPropertyDeclaration1.js index 4df6b941127..09985c47478 100644 --- a/tests/baselines/reference/emitSuperCallBeforeEmitPropertyDeclaration1.js +++ b/tests/baselines/reference/emitSuperCallBeforeEmitPropertyDeclaration1.js @@ -28,7 +28,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { this.blub = 6; } diff --git a/tests/baselines/reference/emitSuperCallBeforeEmitPropertyDeclarationAndParameterPropertyDeclaration1.js b/tests/baselines/reference/emitSuperCallBeforeEmitPropertyDeclarationAndParameterPropertyDeclaration1.js index c2ff820f5b8..f94699c64a4 100644 --- a/tests/baselines/reference/emitSuperCallBeforeEmitPropertyDeclarationAndParameterPropertyDeclaration1.js +++ b/tests/baselines/reference/emitSuperCallBeforeEmitPropertyDeclarationAndParameterPropertyDeclaration1.js @@ -26,7 +26,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { this.blub = 6; } diff --git a/tests/baselines/reference/emitThisInSuperMethodCall.js b/tests/baselines/reference/emitThisInSuperMethodCall.js index d6afc78986c..00e0832ebc4 100644 --- a/tests/baselines/reference/emitThisInSuperMethodCall.js +++ b/tests/baselines/reference/emitThisInSuperMethodCall.js @@ -40,7 +40,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var User = /** @class */ (function () { +})(); +var User = /** @class */ (function () { function User() { } User.prototype.sayHello = function () { diff --git a/tests/baselines/reference/emitter.asyncGenerators.classMethods.es2015.js b/tests/baselines/reference/emitter.asyncGenerators.classMethods.es2015.js index 1eee8a36e1e..c7cd212d2a4 100644 --- a/tests/baselines/reference/emitter.asyncGenerators.classMethods.es2015.js +++ b/tests/baselines/reference/emitter.asyncGenerators.classMethods.es2015.js @@ -72,7 +72,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};class C1 { +}; +class C1 { f() { return __asyncGenerator(this, arguments, function* f_1() { }); @@ -90,7 +91,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};class C2 { +}; +class C2 { f() { return __asyncGenerator(this, arguments, function* f_1() { const x = yield yield __await(void 0); @@ -109,7 +111,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};class C3 { +}; +class C3 { f() { return __asyncGenerator(this, arguments, function* f_1() { const x = yield yield __await(1); @@ -140,7 +143,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};class C4 { +}; +class C4 { f() { return __asyncGenerator(this, arguments, function* f_1() { const x = yield __await(yield* __asyncDelegator(__asyncValues([1]))); @@ -171,7 +175,8 @@ var __asyncDelegator = (this && this.__asyncDelegator) || function (o) { var i, p; return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } -};class C5 { +}; +class C5 { f() { return __asyncGenerator(this, arguments, function* f_1() { const x = yield __await(yield* __asyncDelegator(__asyncValues((function () { return __asyncGenerator(this, arguments, function* () { yield yield __await(1); }); })()))); @@ -190,7 +195,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};class C6 { +}; +class C6 { f() { return __asyncGenerator(this, arguments, function* f_1() { const x = yield __await(1); @@ -209,7 +215,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};class C7 { +}; +class C7 { f() { return __asyncGenerator(this, arguments, function* f_1() { return yield __await(1); @@ -228,7 +235,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};class C8 { +}; +class C8 { g() { } f() { diff --git a/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5.js b/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5.js index 9580106f575..fa9c9f3a515 100644 --- a/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5.js +++ b/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5.js @@ -99,7 +99,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};var C1 = /** @class */ (function () { +}; +var C1 = /** @class */ (function () { function C1() { } C1.prototype.f = function () { @@ -150,7 +151,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};var C2 = /** @class */ (function () { +}; +var C2 = /** @class */ (function () { function C2() { } C2.prototype.f = function () { @@ -208,7 +210,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};var C3 = /** @class */ (function () { +}; +var C3 = /** @class */ (function () { function C3() { } C3.prototype.f = function () { @@ -289,7 +292,8 @@ var __values = (this && this.__values) || function(o) { } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -};var C4 = /** @class */ (function () { +}; +var C4 = /** @class */ (function () { function C4() { } C4.prototype.f = function () { @@ -370,7 +374,8 @@ var __values = (this && this.__values) || function(o) { } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -};var C5 = /** @class */ (function () { +}; +var C5 = /** @class */ (function () { function C5() { } C5.prototype.f = function () { @@ -436,7 +441,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};var C6 = /** @class */ (function () { +}; +var C6 = /** @class */ (function () { function C6() { } C6.prototype.f = function () { @@ -493,7 +499,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};var C7 = /** @class */ (function () { +}; +var C7 = /** @class */ (function () { function C7() { } C7.prototype.f = function () { @@ -547,7 +554,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};var C8 = /** @class */ (function () { +}; +var C8 = /** @class */ (function () { function C8() { } C8.prototype.g = function () { @@ -614,7 +622,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};var B9 = /** @class */ (function () { +}; +var B9 = /** @class */ (function () { function B9() { } B9.prototype.g = function () { }; diff --git a/tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es2015.js b/tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es2015.js index b2bc56f1400..4b0d75d61fd 100644 --- a/tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es2015.js +++ b/tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es2015.js @@ -41,7 +41,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};function f1() { +}; +function f1() { return __asyncGenerator(this, arguments, function* f1_1() { }); } @@ -57,7 +58,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};function f2() { +}; +function f2() { return __asyncGenerator(this, arguments, function* f2_1() { const x = yield yield __await(void 0); }); @@ -74,7 +76,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};function f3() { +}; +function f3() { return __asyncGenerator(this, arguments, function* f3_1() { const x = yield yield __await(1); }); @@ -103,7 +106,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};function f4() { +}; +function f4() { return __asyncGenerator(this, arguments, function* f4_1() { const x = yield __await(yield* __asyncDelegator(__asyncValues([1]))); }); @@ -132,7 +136,8 @@ var __asyncDelegator = (this && this.__asyncDelegator) || function (o) { var i, p; return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } -};function f5() { +}; +function f5() { return __asyncGenerator(this, arguments, function* f5_1() { const x = yield __await(yield* __asyncDelegator(__asyncValues((function () { return __asyncGenerator(this, arguments, function* () { yield yield __await(1); }); })()))); }); @@ -149,7 +154,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};function f6() { +}; +function f6() { return __asyncGenerator(this, arguments, function* f6_1() { const x = yield __await(1); }); @@ -166,7 +172,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};function f7() { +}; +function f7() { return __asyncGenerator(this, arguments, function* f7_1() { return yield __await(1); }); diff --git a/tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es5.js b/tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es5.js index 49364cc73be..ba9e6b4180e 100644 --- a/tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es5.js +++ b/tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es5.js @@ -68,7 +68,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};function f1() { +}; +function f1() { return __asyncGenerator(this, arguments, function f1_1() { return __generator(this, function (_a) { return [2 /*return*/]; @@ -114,7 +115,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};function f2() { +}; +function f2() { return __asyncGenerator(this, arguments, function f2_1() { var x; return __generator(this, function (_a) { @@ -167,7 +169,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};function f3() { +}; +function f3() { return __asyncGenerator(this, arguments, function f3_1() { var x; return __generator(this, function (_a) { @@ -243,7 +246,8 @@ var __values = (this && this.__values) || function(o) { } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -};function f4() { +}; +function f4() { return __asyncGenerator(this, arguments, function f4_1() { var x; return __generator(this, function (_a) { @@ -319,7 +323,8 @@ var __values = (this && this.__values) || function(o) { } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -};function f5() { +}; +function f5() { return __asyncGenerator(this, arguments, function f5_1() { var x; return __generator(this, function (_a) { @@ -380,7 +385,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};function f6() { +}; +function f6() { return __asyncGenerator(this, arguments, function f6_1() { var x; return __generator(this, function (_a) { @@ -432,7 +438,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};function f7() { +}; +function f7() { return __asyncGenerator(this, arguments, function f7_1() { return __generator(this, function (_a) { switch (_a.label) { diff --git a/tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es2015.js b/tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es2015.js index 16e433c69d1..367a405f3bb 100644 --- a/tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es2015.js +++ b/tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es2015.js @@ -41,7 +41,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};const f1 = function () { +}; +const f1 = function () { return __asyncGenerator(this, arguments, function* () { }); }; @@ -57,7 +58,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};const f2 = function () { +}; +const f2 = function () { return __asyncGenerator(this, arguments, function* () { const x = yield yield __await(void 0); }); @@ -74,7 +76,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};const f3 = function () { +}; +const f3 = function () { return __asyncGenerator(this, arguments, function* () { const x = yield yield __await(1); }); @@ -103,7 +106,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};const f4 = function () { +}; +const f4 = function () { return __asyncGenerator(this, arguments, function* () { const x = yield __await(yield* __asyncDelegator(__asyncValues([1]))); }); @@ -132,7 +136,8 @@ var __asyncDelegator = (this && this.__asyncDelegator) || function (o) { var i, p; return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } -};const f5 = function () { +}; +const f5 = function () { return __asyncGenerator(this, arguments, function* () { const x = yield __await(yield* __asyncDelegator(__asyncValues((function () { return __asyncGenerator(this, arguments, function* () { yield yield __await(1); }); })()))); }); @@ -149,7 +154,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};const f6 = function () { +}; +const f6 = function () { return __asyncGenerator(this, arguments, function* () { const x = yield __await(1); }); @@ -166,7 +172,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};const f7 = function () { +}; +const f7 = function () { return __asyncGenerator(this, arguments, function* () { return yield __await(1); }); diff --git a/tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es5.js b/tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es5.js index ff33d200d78..bd1280df237 100644 --- a/tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es5.js +++ b/tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es5.js @@ -68,7 +68,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};var f1 = function () { +}; +var f1 = function () { return __asyncGenerator(this, arguments, function () { return __generator(this, function (_a) { return [2 /*return*/]; @@ -114,7 +115,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};var f2 = function () { +}; +var f2 = function () { return __asyncGenerator(this, arguments, function () { var x; return __generator(this, function (_a) { @@ -167,7 +169,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};var f3 = function () { +}; +var f3 = function () { return __asyncGenerator(this, arguments, function () { var x; return __generator(this, function (_a) { @@ -243,7 +246,8 @@ var __values = (this && this.__values) || function(o) { } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -};var f4 = function () { +}; +var f4 = function () { return __asyncGenerator(this, arguments, function () { var x; return __generator(this, function (_a) { @@ -319,7 +323,8 @@ var __values = (this && this.__values) || function(o) { } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -};var f5 = function () { +}; +var f5 = function () { return __asyncGenerator(this, arguments, function () { var x; return __generator(this, function (_a) { @@ -380,7 +385,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};var f6 = function () { +}; +var f6 = function () { return __asyncGenerator(this, arguments, function () { var x; return __generator(this, function (_a) { @@ -432,7 +438,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};var f7 = function () { +}; +var f7 = function () { return __asyncGenerator(this, arguments, function () { return __generator(this, function (_a) { switch (_a.label) { diff --git a/tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es2015.js b/tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es2015.js index 9a666818d4f..8cd2a47fbb9 100644 --- a/tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es2015.js +++ b/tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es2015.js @@ -55,7 +55,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};const o1 = { +}; +const o1 = { f() { return __asyncGenerator(this, arguments, function* f_1() { }); @@ -73,7 +74,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};const o2 = { +}; +const o2 = { f() { return __asyncGenerator(this, arguments, function* f_1() { const x = yield yield __await(void 0); @@ -92,7 +94,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};const o3 = { +}; +const o3 = { f() { return __asyncGenerator(this, arguments, function* f_1() { const x = yield yield __await(1); @@ -123,7 +126,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};const o4 = { +}; +const o4 = { f() { return __asyncGenerator(this, arguments, function* f_1() { const x = yield __await(yield* __asyncDelegator(__asyncValues([1]))); @@ -154,7 +158,8 @@ var __asyncDelegator = (this && this.__asyncDelegator) || function (o) { var i, p; return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } -};const o5 = { +}; +const o5 = { f() { return __asyncGenerator(this, arguments, function* f_1() { const x = yield __await(yield* __asyncDelegator(__asyncValues((function () { return __asyncGenerator(this, arguments, function* () { yield yield __await(1); }); })()))); @@ -173,7 +178,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};const o6 = { +}; +const o6 = { f() { return __asyncGenerator(this, arguments, function* f_1() { const x = yield __await(1); @@ -192,7 +198,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};const o7 = { +}; +const o7 = { f() { return __asyncGenerator(this, arguments, function* f_1() { return yield __await(1); diff --git a/tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es5.js b/tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es5.js index 0c246f2c71f..138c729aa29 100644 --- a/tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es5.js +++ b/tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es5.js @@ -82,7 +82,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};var o1 = { +}; +var o1 = { f: function () { return __asyncGenerator(this, arguments, function f_1() { return __generator(this, function (_a) { @@ -130,7 +131,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};var o2 = { +}; +var o2 = { f: function () { return __asyncGenerator(this, arguments, function f_1() { var x; @@ -185,7 +187,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};var o3 = { +}; +var o3 = { f: function () { return __asyncGenerator(this, arguments, function f_1() { var x; @@ -263,7 +266,8 @@ var __values = (this && this.__values) || function(o) { } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -};var o4 = { +}; +var o4 = { f: function () { return __asyncGenerator(this, arguments, function f_1() { var x; @@ -341,7 +345,8 @@ var __values = (this && this.__values) || function(o) { } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -};var o5 = { +}; +var o5 = { f: function () { return __asyncGenerator(this, arguments, function f_1() { var x; @@ -404,7 +409,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};var o6 = { +}; +var o6 = { f: function () { return __asyncGenerator(this, arguments, function f_1() { var x; @@ -458,7 +464,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};var o7 = { +}; +var o7 = { f: function () { return __asyncGenerator(this, arguments, function f_1() { return __generator(this, function (_a) { diff --git a/tests/baselines/reference/emitter.forAwait.es2015.js b/tests/baselines/reference/emitter.forAwait.es2015.js index 9f73d8064c6..d33f95c2e83 100644 --- a/tests/baselines/reference/emitter.forAwait.es2015.js +++ b/tests/baselines/reference/emitter.forAwait.es2015.js @@ -57,7 +57,8 @@ var __asyncValues = (this && this.__asyncValues) || function (o) { return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } -};function f1() { +}; +function f1() { var e_1, _a; return __awaiter(this, void 0, void 0, function* () { let y; @@ -89,7 +90,8 @@ var __asyncValues = (this && this.__asyncValues) || function (o) { return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } -};function f2() { +}; +function f2() { var e_1, _a; return __awaiter(this, void 0, void 0, function* () { let x, y; @@ -124,7 +126,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};function f3() { +}; +function f3() { return __asyncGenerator(this, arguments, function* f3_1() { var e_1, _a; let y; @@ -159,7 +162,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};function f4() { +}; +function f4() { return __asyncGenerator(this, arguments, function* f4_1() { var e_1, _a; let x, y; diff --git a/tests/baselines/reference/emitter.forAwait.es2017.js b/tests/baselines/reference/emitter.forAwait.es2017.js index 28094ac58d2..e3b03c9081b 100644 --- a/tests/baselines/reference/emitter.forAwait.es2017.js +++ b/tests/baselines/reference/emitter.forAwait.es2017.js @@ -48,7 +48,8 @@ var __asyncValues = (this && this.__asyncValues) || function (o) { return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } -};async function f1() { +}; +async function f1() { var e_1, _a; let y; try { @@ -69,7 +70,8 @@ var __asyncValues = (this && this.__asyncValues) || function (o) { return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } -};async function f2() { +}; +async function f2() { var e_1, _a; let x, y; try { @@ -102,7 +104,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};function f3() { +}; +function f3() { return __asyncGenerator(this, arguments, function* f3_1() { var e_1, _a; let y; @@ -137,7 +140,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};function f4() { +}; +function f4() { return __asyncGenerator(this, arguments, function* f4_1() { var e_1, _a; let x, y; diff --git a/tests/baselines/reference/emitter.forAwait.es5.js b/tests/baselines/reference/emitter.forAwait.es5.js index 2a2f3b4cc22..f33af25dcc1 100644 --- a/tests/baselines/reference/emitter.forAwait.es5.js +++ b/tests/baselines/reference/emitter.forAwait.es5.js @@ -84,7 +84,8 @@ var __asyncValues = (this && this.__asyncValues) || function (o) { return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } -};function f1() { +}; +function f1() { var e_1, _a; return __awaiter(this, void 0, void 0, function () { var y, y_1, y_1_1, x, e_1_1; @@ -165,7 +166,8 @@ var __asyncValues = (this && this.__asyncValues) || function (o) { return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } -};function f2() { +}; +function f2() { var e_1, _a; return __awaiter(this, void 0, void 0, function () { var x, y, y_1, y_1_1, e_1_1; @@ -249,7 +251,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};function f3() { +}; +function f3() { return __asyncGenerator(this, arguments, function f3_1() { var y, y_1, y_1_1, x, e_1_1; var e_1, _a; @@ -333,7 +336,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -};function f4() { +}; +function f4() { return __asyncGenerator(this, arguments, function f4_1() { var x, y, y_1, y_1_1, e_1_1; var e_1, _a; diff --git a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5iterable.js b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5iterable.js index 161be32fac5..6cfd8744a6c 100644 --- a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5iterable.js +++ b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns01_ES5iterable.js @@ -75,7 +75,8 @@ var __values = (this && this.__values) || function(o) { } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -};(function () { +}; +(function () { var a; var _a = a; diff --git a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5iterable.js b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5iterable.js index eb9ab7d03a5..1e5d4079221 100644 --- a/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5iterable.js +++ b/tests/baselines/reference/emptyVariableDeclarationBindingPatterns02_ES5iterable.js @@ -25,7 +25,8 @@ var __read = (this && this.__read) || function (o, n) { finally { if (e) throw e.error; } } return ar; -};(function () { +}; +(function () { var _a = void 0; var _b = void 0; var _c = void 0; diff --git a/tests/baselines/reference/es5-importHelpersAsyncFunctions.js b/tests/baselines/reference/es5-importHelpersAsyncFunctions.js index 9933458e04c..781027fc18a 100644 --- a/tests/baselines/reference/es5-importHelpersAsyncFunctions.js +++ b/tests/baselines/reference/es5-importHelpersAsyncFunctions.js @@ -66,7 +66,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) { } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } -};function foo() { +}; +function foo() { return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) { return [2 /*return*/]; diff --git a/tests/baselines/reference/es6ClassSuperCodegenBug.js b/tests/baselines/reference/es6ClassSuperCodegenBug.js index aafd4462f66..cd6f6ee28c3 100644 --- a/tests/baselines/reference/es6ClassSuperCodegenBug.js +++ b/tests/baselines/reference/es6ClassSuperCodegenBug.js @@ -26,7 +26,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A(str1, str2) {} return A; }()); diff --git a/tests/baselines/reference/es6ClassTest.js b/tests/baselines/reference/es6ClassTest.js index 765762d6ed5..7cc443b9c21 100644 --- a/tests/baselines/reference/es6ClassTest.js +++ b/tests/baselines/reference/es6ClassTest.js @@ -97,7 +97,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Bar = /** @class */ (function () { +})(); +var Bar = /** @class */ (function () { function Bar(n) {}Bar.prototype.prop1 = function (x) { return x; }; diff --git a/tests/baselines/reference/es6ClassTest2.js b/tests/baselines/reference/es6ClassTest2.js index 74060a73739..7b334e91436 100644 --- a/tests/baselines/reference/es6ClassTest2.js +++ b/tests/baselines/reference/es6ClassTest2.js @@ -171,7 +171,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var BasicMonster = /** @class */ (function () { +})(); +var BasicMonster = /** @class */ (function () { function BasicMonster(name, health) { this.name = name; this.health = health; diff --git a/tests/baselines/reference/esModuleInteropImportCall.js b/tests/baselines/reference/esModuleInteropImportCall.js index 9358c69508f..cb29b51cd43 100644 --- a/tests/baselines/reference/esModuleInteropImportCall.js +++ b/tests/baselines/reference/esModuleInteropImportCall.js @@ -29,6 +29,7 @@ var __importStar = (this && this.__importStar) || function (mod) { if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; -};Promise.resolve().then(function () { return __importStar(require("./foo")); }).then(function (f) { +}; +Promise.resolve().then(function () { return __importStar(require("./foo")); }).then(function (f) { f["default"]; }); diff --git a/tests/baselines/reference/explicitAnyAfterSpreadNoImplicitAnyError.js b/tests/baselines/reference/explicitAnyAfterSpreadNoImplicitAnyError.js index 2657ebbe653..19e1d161722 100644 --- a/tests/baselines/reference/explicitAnyAfterSpreadNoImplicitAnyError.js +++ b/tests/baselines/reference/explicitAnyAfterSpreadNoImplicitAnyError.js @@ -14,5 +14,6 @@ var __assign = (this && this.__assign) || function () { return t; }; return __assign.apply(this, arguments); -};(__assign({ a: [] }, null)); +}; +(__assign({ a: [] }, null)); var x; diff --git a/tests/baselines/reference/exportDeclarationInInternalModule.js b/tests/baselines/reference/exportDeclarationInInternalModule.js index a931fa67351..27f266d802a 100644 --- a/tests/baselines/reference/exportDeclarationInInternalModule.js +++ b/tests/baselines/reference/exportDeclarationInInternalModule.js @@ -30,7 +30,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Bbb = /** @class */ (function () { +})(); +var Bbb = /** @class */ (function () { function Bbb() { } return Bbb; diff --git a/tests/baselines/reference/exportDefaultAsyncFunction.js b/tests/baselines/reference/exportDefaultAsyncFunction.js index d87acfb88cd..31460daae84 100644 --- a/tests/baselines/reference/exportDefaultAsyncFunction.js +++ b/tests/baselines/reference/exportDefaultAsyncFunction.js @@ -12,7 +12,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); -};export default function foo() { +}; +export default function foo() { return __awaiter(this, void 0, void 0, function* () { }); } foo(); diff --git a/tests/baselines/reference/exportDefaultAsyncFunction2.js b/tests/baselines/reference/exportDefaultAsyncFunction2.js index 6d357ba34b7..687f9ad41f1 100644 --- a/tests/baselines/reference/exportDefaultAsyncFunction2.js +++ b/tests/baselines/reference/exportDefaultAsyncFunction2.js @@ -42,7 +42,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); -};export default () => __awaiter(void 0, void 0, void 0, function* () { return 0; }); +}; +export default () => __awaiter(void 0, void 0, void 0, function* () { return 0; }); //// [c.js] import { async } from 'asyncawait'; export default async(); diff --git a/tests/baselines/reference/extendAndImplementTheSameBaseType.js b/tests/baselines/reference/extendAndImplementTheSameBaseType.js index a7cfb7d1c45..24a9d09e190 100644 --- a/tests/baselines/reference/extendAndImplementTheSameBaseType.js +++ b/tests/baselines/reference/extendAndImplementTheSameBaseType.js @@ -26,7 +26,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C() { } C.prototype.bar = function () { }; diff --git a/tests/baselines/reference/extendAndImplementTheSameBaseType2.js b/tests/baselines/reference/extendAndImplementTheSameBaseType2.js index 686837f22bb..2effeb0445c 100644 --- a/tests/baselines/reference/extendAndImplementTheSameBaseType2.js +++ b/tests/baselines/reference/extendAndImplementTheSameBaseType2.js @@ -29,7 +29,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C() { } C.prototype.bar = function () { diff --git a/tests/baselines/reference/extendBaseClassBeforeItsDeclared.js b/tests/baselines/reference/extendBaseClassBeforeItsDeclared.js index ec20b85084a..149b33c1ff2 100644 --- a/tests/baselines/reference/extendBaseClassBeforeItsDeclared.js +++ b/tests/baselines/reference/extendBaseClassBeforeItsDeclared.js @@ -16,7 +16,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var derived = /** @class */ (function (_super) { +})(); +var derived = /** @class */ (function (_super) { __extends(derived, _super); function derived() { return _super !== null && _super.apply(this, arguments) || this; diff --git a/tests/baselines/reference/extendNonClassSymbol1.js b/tests/baselines/reference/extendNonClassSymbol1.js index 1c9bc1335c4..ddd8e8ddd3d 100644 --- a/tests/baselines/reference/extendNonClassSymbol1.js +++ b/tests/baselines/reference/extendNonClassSymbol1.js @@ -16,7 +16,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() {} A.prototype.foo = function () { }; return A; diff --git a/tests/baselines/reference/extendsClauseAlreadySeen.js b/tests/baselines/reference/extendsClauseAlreadySeen.js index 5d23c0bc308..d1ffec90d29 100644 --- a/tests/baselines/reference/extendsClauseAlreadySeen.js +++ b/tests/baselines/reference/extendsClauseAlreadySeen.js @@ -19,7 +19,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C() { } return C; diff --git a/tests/baselines/reference/extendsClauseAlreadySeen2.js b/tests/baselines/reference/extendsClauseAlreadySeen2.js index c13ba0fcf8b..2a3bac4008d 100644 --- a/tests/baselines/reference/extendsClauseAlreadySeen2.js +++ b/tests/baselines/reference/extendsClauseAlreadySeen2.js @@ -19,7 +19,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C() { } return C; diff --git a/tests/baselines/reference/fluentClasses.js b/tests/baselines/reference/fluentClasses.js index c9319aa52ee..9f68730010d 100644 --- a/tests/baselines/reference/fluentClasses.js +++ b/tests/baselines/reference/fluentClasses.js @@ -31,7 +31,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } A.prototype.foo = function () { diff --git a/tests/baselines/reference/for-inStatements.js b/tests/baselines/reference/for-inStatements.js index 3554d89c8a2..9f3fa62fef8 100644 --- a/tests/baselines/reference/for-inStatements.js +++ b/tests/baselines/reference/for-inStatements.js @@ -93,7 +93,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var aString; +})(); +var aString; for (aString in {}) { } var anAny; diff --git a/tests/baselines/reference/for-inStatementsInvalid.js b/tests/baselines/reference/for-inStatementsInvalid.js index f1bb8a31b38..10c266b9d4a 100644 --- a/tests/baselines/reference/for-inStatementsInvalid.js +++ b/tests/baselines/reference/for-inStatementsInvalid.js @@ -76,7 +76,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var aNumber; +})(); +var aNumber; for (aNumber in {}) { } var aBoolean; diff --git a/tests/baselines/reference/forLoopWithDestructuringDoesNotElideFollowingStatement.js b/tests/baselines/reference/forLoopWithDestructuringDoesNotElideFollowingStatement.js index b1095be298c..10e30294bfc 100644 --- a/tests/baselines/reference/forLoopWithDestructuringDoesNotElideFollowingStatement.js +++ b/tests/baselines/reference/forLoopWithDestructuringDoesNotElideFollowingStatement.js @@ -14,7 +14,8 @@ var __rest = (this && this.__rest) || function (s, e) { t[p[i]] = s[p[i]]; } return t; -};var array = [{ a: 0, b: 1 }]; +}; +var array = [{ a: 0, b: 1 }]; for (var _i = 0, array_1 = array; _i < array_1.length; _i++) { var _a = array_1[_i]; var a = _a.a, rest = __rest(_a, ["a"]); diff --git a/tests/baselines/reference/functionSubtypingOfVarArgs.js b/tests/baselines/reference/functionSubtypingOfVarArgs.js index 5fe110b13cb..6a039fa4821 100644 --- a/tests/baselines/reference/functionSubtypingOfVarArgs.js +++ b/tests/baselines/reference/functionSubtypingOfVarArgs.js @@ -27,7 +27,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var EventBase = /** @class */ (function () { +})(); +var EventBase = /** @class */ (function () { function EventBase() { this._listeners = []; } diff --git a/tests/baselines/reference/functionSubtypingOfVarArgs2.js b/tests/baselines/reference/functionSubtypingOfVarArgs2.js index 02f3e153ab5..16b2b9537e7 100644 --- a/tests/baselines/reference/functionSubtypingOfVarArgs2.js +++ b/tests/baselines/reference/functionSubtypingOfVarArgs2.js @@ -27,7 +27,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var EventBase = /** @class */ (function () { +})(); +var EventBase = /** @class */ (function () { function EventBase() { this._listeners = []; } diff --git a/tests/baselines/reference/generatedContextualTyping.js b/tests/baselines/reference/generatedContextualTyping.js index 0eba8380ed9..c883df9c5f7 100644 --- a/tests/baselines/reference/generatedContextualTyping.js +++ b/tests/baselines/reference/generatedContextualTyping.js @@ -367,7 +367,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() {} return Base; }()); diff --git a/tests/baselines/reference/generatorTypeCheck39.js b/tests/baselines/reference/generatorTypeCheck39.js index 63aa2bb79fa..a97904f6a04 100644 --- a/tests/baselines/reference/generatorTypeCheck39.js +++ b/tests/baselines/reference/generatorTypeCheck39.js @@ -15,7 +15,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; -};function decorator(x) { +}; +function decorator(x) { return y => { }; } function* g() { diff --git a/tests/baselines/reference/generatorTypeCheck59.js b/tests/baselines/reference/generatorTypeCheck59.js index c87e082c1b2..8b1dfbd777c 100644 --- a/tests/baselines/reference/generatorTypeCheck59.js +++ b/tests/baselines/reference/generatorTypeCheck59.js @@ -12,7 +12,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; -};function* g() { +}; +function* g() { let C = /** @class */ (() => { class C { m() { } diff --git a/tests/baselines/reference/generatorTypeCheck61.js b/tests/baselines/reference/generatorTypeCheck61.js index bdfe7079c8b..e19ea22ec20 100644 --- a/tests/baselines/reference/generatorTypeCheck61.js +++ b/tests/baselines/reference/generatorTypeCheck61.js @@ -10,7 +10,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; -};function* g() { +}; +function* g() { let C = /** @class */ (() => { let C = class C {}; C = __decorate([ diff --git a/tests/baselines/reference/genericBaseClassLiteralProperty.js b/tests/baselines/reference/genericBaseClassLiteralProperty.js index 830cc2242bd..c09b00157ba 100644 --- a/tests/baselines/reference/genericBaseClassLiteralProperty.js +++ b/tests/baselines/reference/genericBaseClassLiteralProperty.js @@ -25,7 +25,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var BaseClass = /** @class */ (function () { +})(); +var BaseClass = /** @class */ (function () { function BaseClass() { } return BaseClass; diff --git a/tests/baselines/reference/genericBaseClassLiteralProperty2.js b/tests/baselines/reference/genericBaseClassLiteralProperty2.js index 858bc547512..48713b36883 100644 --- a/tests/baselines/reference/genericBaseClassLiteralProperty2.js +++ b/tests/baselines/reference/genericBaseClassLiteralProperty2.js @@ -28,7 +28,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var CollectionItem2 = /** @class */ (function () { +})(); +var CollectionItem2 = /** @class */ (function () { function CollectionItem2() {} return CollectionItem2; }()); diff --git a/tests/baselines/reference/genericCallWithObjectTypeArgs2.js b/tests/baselines/reference/genericCallWithObjectTypeArgs2.js index 695e3ff80d3..63d7a54fe51 100644 --- a/tests/baselines/reference/genericCallWithObjectTypeArgs2.js +++ b/tests/baselines/reference/genericCallWithObjectTypeArgs2.js @@ -45,7 +45,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } return Base; diff --git a/tests/baselines/reference/genericClassExpressionInFunction.js b/tests/baselines/reference/genericClassExpressionInFunction.js index 735255a5bcd..bf93d5d336b 100644 --- a/tests/baselines/reference/genericClassExpressionInFunction.js +++ b/tests/baselines/reference/genericClassExpressionInFunction.js @@ -44,7 +44,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } return A; diff --git a/tests/baselines/reference/genericClassInheritsConstructorFromNonGenericClass.js b/tests/baselines/reference/genericClassInheritsConstructorFromNonGenericClass.js index f2aff285a0a..ab6e45c19e9 100644 --- a/tests/baselines/reference/genericClassInheritsConstructorFromNonGenericClass.js +++ b/tests/baselines/reference/genericClassInheritsConstructorFromNonGenericClass.js @@ -18,7 +18,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function (_super) { +})(); +var A = /** @class */ (function (_super) { __extends(A, _super); function A() { return _super !== null && _super.apply(this, arguments) || this; diff --git a/tests/baselines/reference/genericClassStaticMethod.js b/tests/baselines/reference/genericClassStaticMethod.js index a809319a15c..216d915d6e5 100644 --- a/tests/baselines/reference/genericClassStaticMethod.js +++ b/tests/baselines/reference/genericClassStaticMethod.js @@ -23,7 +23,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Foo = /** @class */ (function () { +})(); +var Foo = /** @class */ (function () { function Foo() { } Foo.getFoo = function () { diff --git a/tests/baselines/reference/genericClasses3.js b/tests/baselines/reference/genericClasses3.js index ade14c72c97..95777defc3d 100644 --- a/tests/baselines/reference/genericClasses3.js +++ b/tests/baselines/reference/genericClasses3.js @@ -30,7 +30,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var B = /** @class */ (function () { +})(); +var B = /** @class */ (function () { function B() { } return B; diff --git a/tests/baselines/reference/genericDerivedTypeWithSpecializedBase.js b/tests/baselines/reference/genericDerivedTypeWithSpecializedBase.js index c587bbac3df..7803c463eb8 100644 --- a/tests/baselines/reference/genericDerivedTypeWithSpecializedBase.js +++ b/tests/baselines/reference/genericDerivedTypeWithSpecializedBase.js @@ -25,7 +25,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } return A; diff --git a/tests/baselines/reference/genericDerivedTypeWithSpecializedBase2.js b/tests/baselines/reference/genericDerivedTypeWithSpecializedBase2.js index 74242aa2a6b..08674c5a251 100644 --- a/tests/baselines/reference/genericDerivedTypeWithSpecializedBase2.js +++ b/tests/baselines/reference/genericDerivedTypeWithSpecializedBase2.js @@ -25,7 +25,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } return A; diff --git a/tests/baselines/reference/genericPrototypeProperty3.js b/tests/baselines/reference/genericPrototypeProperty3.js index 2c9c2178852..433b57906c3 100644 --- a/tests/baselines/reference/genericPrototypeProperty3.js +++ b/tests/baselines/reference/genericPrototypeProperty3.js @@ -27,7 +27,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var BaseEvent = /** @class */ (function () { +})(); +var BaseEvent = /** @class */ (function () { function BaseEvent() { } return BaseEvent; diff --git a/tests/baselines/reference/genericTypeAssertions2.js b/tests/baselines/reference/genericTypeAssertions2.js index bd9865ecf58..bc2f14bc284 100644 --- a/tests/baselines/reference/genericTypeAssertions2.js +++ b/tests/baselines/reference/genericTypeAssertions2.js @@ -26,7 +26,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() {} A.prototype.foo = function (x) { }; return A; diff --git a/tests/baselines/reference/genericTypeAssertions4.js b/tests/baselines/reference/genericTypeAssertions4.js index 6d2387605c6..6cdfa361c29 100644 --- a/tests/baselines/reference/genericTypeAssertions4.js +++ b/tests/baselines/reference/genericTypeAssertions4.js @@ -38,7 +38,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } A.prototype.foo = function () { return ""; }; diff --git a/tests/baselines/reference/genericTypeAssertions6.js b/tests/baselines/reference/genericTypeAssertions6.js index 27c78a9c2d5..afc68050423 100644 --- a/tests/baselines/reference/genericTypeAssertions6.js +++ b/tests/baselines/reference/genericTypeAssertions6.js @@ -37,7 +37,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A(x) { var y = x; var z = x; diff --git a/tests/baselines/reference/genericTypeConstraints.js b/tests/baselines/reference/genericTypeConstraints.js index feaf3ead70b..11049d0363c 100644 --- a/tests/baselines/reference/genericTypeConstraints.js +++ b/tests/baselines/reference/genericTypeConstraints.js @@ -26,7 +26,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Foo = /** @class */ (function () { +})(); +var Foo = /** @class */ (function () { function Foo() { } Foo.prototype.fooMethod = function () { }; diff --git a/tests/baselines/reference/illegalSuperCallsInConstructor.js b/tests/baselines/reference/illegalSuperCallsInConstructor.js index 888a7533df7..2c914494b80 100644 --- a/tests/baselines/reference/illegalSuperCallsInConstructor.js +++ b/tests/baselines/reference/illegalSuperCallsInConstructor.js @@ -33,7 +33,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } return Base; diff --git a/tests/baselines/reference/implementClausePrecedingExtends.js b/tests/baselines/reference/implementClausePrecedingExtends.js index 04c75a7dc3c..c1f7d2cd312 100644 --- a/tests/baselines/reference/implementClausePrecedingExtends.js +++ b/tests/baselines/reference/implementClausePrecedingExtends.js @@ -15,7 +15,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C() {} return C; }()); diff --git a/tests/baselines/reference/implementingAnInterfaceExtendingClassWithPrivates2.js b/tests/baselines/reference/implementingAnInterfaceExtendingClassWithPrivates2.js index 69005f1c557..871cbd83648 100644 --- a/tests/baselines/reference/implementingAnInterfaceExtendingClassWithPrivates2.js +++ b/tests/baselines/reference/implementingAnInterfaceExtendingClassWithPrivates2.js @@ -98,7 +98,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Foo = /** @class */ (function () { +})(); +var Foo = /** @class */ (function () { function Foo() { } return Foo; diff --git a/tests/baselines/reference/implementingAnInterfaceExtendingClassWithProtecteds.js b/tests/baselines/reference/implementingAnInterfaceExtendingClassWithProtecteds.js index 39d0ffb799a..ac9179fe506 100644 --- a/tests/baselines/reference/implementingAnInterfaceExtendingClassWithProtecteds.js +++ b/tests/baselines/reference/implementingAnInterfaceExtendingClassWithProtecteds.js @@ -54,7 +54,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Foo = /** @class */ (function () { +})(); +var Foo = /** @class */ (function () { function Foo() { } return Foo; diff --git a/tests/baselines/reference/importCallExpressionNestedCJS.js b/tests/baselines/reference/importCallExpressionNestedCJS.js index 1e526adf6ff..5b6abef5e0e 100644 --- a/tests/baselines/reference/importCallExpressionNestedCJS.js +++ b/tests/baselines/reference/importCallExpressionNestedCJS.js @@ -21,7 +21,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); -};function foo() { +}; +function foo() { return __awaiter(this, void 0, void 0, function* () { return yield Promise.resolve().then(() => require((yield Promise.resolve().then(() => require("./foo"))).default)); }); diff --git a/tests/baselines/reference/importCallExpressionNestedCJS2.js b/tests/baselines/reference/importCallExpressionNestedCJS2.js index bd11147db5d..104a01b5bd9 100644 --- a/tests/baselines/reference/importCallExpressionNestedCJS2.js +++ b/tests/baselines/reference/importCallExpressionNestedCJS2.js @@ -48,7 +48,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) { } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } -};function foo() { +}; +function foo() { return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) { switch (_a.label) { diff --git a/tests/baselines/reference/importCallExpressionNestedES2015.js b/tests/baselines/reference/importCallExpressionNestedES2015.js index 67af7af20e2..8bbb7c7b1f3 100644 --- a/tests/baselines/reference/importCallExpressionNestedES2015.js +++ b/tests/baselines/reference/importCallExpressionNestedES2015.js @@ -19,7 +19,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); -};function foo() { +}; +function foo() { return __awaiter(this, void 0, void 0, function* () { return yield import((yield import("./foo")).default); }); diff --git a/tests/baselines/reference/importCallExpressionNestedES20152.js b/tests/baselines/reference/importCallExpressionNestedES20152.js index 4b77a0b159c..c0b888df2fb 100644 --- a/tests/baselines/reference/importCallExpressionNestedES20152.js +++ b/tests/baselines/reference/importCallExpressionNestedES20152.js @@ -46,7 +46,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) { } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } -};function foo() { +}; +function foo() { return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) { switch (_a.label) { diff --git a/tests/baselines/reference/importCallExpressionNestedES2020.js b/tests/baselines/reference/importCallExpressionNestedES2020.js index 3e8a4de8f71..8fdc57118d2 100644 --- a/tests/baselines/reference/importCallExpressionNestedES2020.js +++ b/tests/baselines/reference/importCallExpressionNestedES2020.js @@ -20,7 +20,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); -};function foo() { +}; +function foo() { return __awaiter(this, void 0, void 0, function* () { return yield import((yield import("./foo")).default); }); diff --git a/tests/baselines/reference/importCallExpressionNestedES20202.js b/tests/baselines/reference/importCallExpressionNestedES20202.js index ac8e203d859..3c47766522a 100644 --- a/tests/baselines/reference/importCallExpressionNestedES20202.js +++ b/tests/baselines/reference/importCallExpressionNestedES20202.js @@ -47,7 +47,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) { } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } -};function foo() { +}; +function foo() { return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) { switch (_a.label) { diff --git a/tests/baselines/reference/importHelpers.js b/tests/baselines/reference/importHelpers.js index efa5d286aee..e8c0b182dcc 100644 --- a/tests/baselines/reference/importHelpers.js +++ b/tests/baselines/reference/importHelpers.js @@ -115,7 +115,8 @@ var __metadata = (this && this.__metadata) || function (k, v) { }; var __param = (this && this.__param) || function (paramIndex, decorator) { return function (target, key) { decorator(target, key, paramIndex); } -};var A = /** @class */ (function () { +}; +var A = /** @class */ (function () { function A() {} return A; }()); diff --git a/tests/baselines/reference/importHelpersNoHelpers.js b/tests/baselines/reference/importHelpersNoHelpers.js index 8434e1ad7f9..e0d84cb173c 100644 --- a/tests/baselines/reference/importHelpersNoHelpers.js +++ b/tests/baselines/reference/importHelpersNoHelpers.js @@ -104,7 +104,8 @@ var __metadata = (this && this.__metadata) || function (k, v) { }; var __param = (this && this.__param) || function (paramIndex, decorator) { return function (target, key) { decorator(target, key, paramIndex); } -};var A = /** @class */ (function () { +}; +var A = /** @class */ (function () { function A() {} return A; }()); diff --git a/tests/baselines/reference/importHelpersNoModule.js b/tests/baselines/reference/importHelpersNoModule.js index 7afc778e48b..02f4557ddd5 100644 --- a/tests/baselines/reference/importHelpersNoModule.js +++ b/tests/baselines/reference/importHelpersNoModule.js @@ -84,7 +84,8 @@ var __metadata = (this && this.__metadata) || function (k, v) { }; var __param = (this && this.__param) || function (paramIndex, decorator) { return function (target, key) { decorator(target, key, paramIndex); } -};var A = /** @class */ (function () { +}; +var A = /** @class */ (function () { function A() {} return A; }()); diff --git a/tests/baselines/reference/indexerConstraints2.js b/tests/baselines/reference/indexerConstraints2.js index 5640e220f62..67c4ba6f9d5 100644 --- a/tests/baselines/reference/indexerConstraints2.js +++ b/tests/baselines/reference/indexerConstraints2.js @@ -94,7 +94,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() {} return A; }()); diff --git a/tests/baselines/reference/indirectSelfReference.js b/tests/baselines/reference/indirectSelfReference.js index b638f06a4f4..9cf86981793 100644 --- a/tests/baselines/reference/indirectSelfReference.js +++ b/tests/baselines/reference/indirectSelfReference.js @@ -15,7 +15,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var a = /** @class */ (function (_super) { +})(); +var a = /** @class */ (function (_super) { __extends(a, _super); function a() { return _super !== null && _super.apply(this, arguments) || this; diff --git a/tests/baselines/reference/indirectSelfReferenceGeneric.js b/tests/baselines/reference/indirectSelfReferenceGeneric.js index 31525cd56c6..a70fdaddac5 100644 --- a/tests/baselines/reference/indirectSelfReferenceGeneric.js +++ b/tests/baselines/reference/indirectSelfReferenceGeneric.js @@ -15,7 +15,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var a = /** @class */ (function (_super) { +})(); +var a = /** @class */ (function (_super) { __extends(a, _super); function a() { return _super !== null && _super.apply(this, arguments) || this; diff --git a/tests/baselines/reference/infinitelyExpandingTypesNonGenericBase.js b/tests/baselines/reference/infinitelyExpandingTypesNonGenericBase.js index 733e9158f03..caef4eadbf3 100644 --- a/tests/baselines/reference/infinitelyExpandingTypesNonGenericBase.js +++ b/tests/baselines/reference/infinitelyExpandingTypesNonGenericBase.js @@ -37,7 +37,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Functionality = /** @class */ (function () { +})(); +var Functionality = /** @class */ (function () { function Functionality() { } return Functionality; diff --git a/tests/baselines/reference/inheritFromGenericTypeParameter.js b/tests/baselines/reference/inheritFromGenericTypeParameter.js index 08a7a2e490f..9821870ab35 100644 --- a/tests/baselines/reference/inheritFromGenericTypeParameter.js +++ b/tests/baselines/reference/inheritFromGenericTypeParameter.js @@ -15,7 +15,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function (_super) { +})(); +var C = /** @class */ (function (_super) { __extends(C, _super); function C() { return _super !== null && _super.apply(this, arguments) || this; diff --git a/tests/baselines/reference/inheritSameNamePrivatePropertiesFromSameOrigin.js b/tests/baselines/reference/inheritSameNamePrivatePropertiesFromSameOrigin.js index 2ae334d0090..f0db5d77f18 100644 --- a/tests/baselines/reference/inheritSameNamePrivatePropertiesFromSameOrigin.js +++ b/tests/baselines/reference/inheritSameNamePrivatePropertiesFromSameOrigin.js @@ -23,7 +23,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var B = /** @class */ (function () { +})(); +var B = /** @class */ (function () { function B() { } return B; diff --git a/tests/baselines/reference/inheritance.js b/tests/baselines/reference/inheritance.js index 722c6c6140c..6ef3652ce02 100644 --- a/tests/baselines/reference/inheritance.js +++ b/tests/baselines/reference/inheritance.js @@ -47,7 +47,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var B1 = /** @class */ (function () { +})(); +var B1 = /** @class */ (function () { function B1() { } return B1; diff --git a/tests/baselines/reference/inheritance1.js b/tests/baselines/reference/inheritance1.js index 152ad78e77c..bdaf5529ba3 100644 --- a/tests/baselines/reference/inheritance1.js +++ b/tests/baselines/reference/inheritance1.js @@ -74,7 +74,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Control = /** @class */ (function () { +})(); +var Control = /** @class */ (function () { function Control() { } return Control; diff --git a/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollision.js b/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollision.js index b9e994a7ec2..394c139e9aa 100644 --- a/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollision.js +++ b/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollision.js @@ -23,7 +23,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } A.prototype.myMethod = function () { }; diff --git a/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollisionWithPublicMember.js b/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollisionWithPublicMember.js index 393e0325c61..63b2bfe7baf 100644 --- a/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollisionWithPublicMember.js +++ b/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollisionWithPublicMember.js @@ -23,7 +23,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } A.prototype.myMethod = function () { }; diff --git a/tests/baselines/reference/inheritanceGrandParentPublicMemberCollisionWithPrivateMember.js b/tests/baselines/reference/inheritanceGrandParentPublicMemberCollisionWithPrivateMember.js index 1f3e80d9b65..e6d9647a29d 100644 --- a/tests/baselines/reference/inheritanceGrandParentPublicMemberCollisionWithPrivateMember.js +++ b/tests/baselines/reference/inheritanceGrandParentPublicMemberCollisionWithPrivateMember.js @@ -23,7 +23,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } A.prototype.myMethod = function () { }; diff --git a/tests/baselines/reference/inheritanceMemberAccessorOverridingAccessor.js b/tests/baselines/reference/inheritanceMemberAccessorOverridingAccessor.js index eb45f4f2aed..b8255468e15 100644 --- a/tests/baselines/reference/inheritanceMemberAccessorOverridingAccessor.js +++ b/tests/baselines/reference/inheritanceMemberAccessorOverridingAccessor.js @@ -30,7 +30,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var a = /** @class */ (function () { +})(); +var a = /** @class */ (function () { function a() { } Object.defineProperty(a.prototype, "x", { diff --git a/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod.js b/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod.js index 5f0d774b8f0..537be89bb5e 100644 --- a/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod.js +++ b/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod.js @@ -27,7 +27,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var a = /** @class */ (function () { +})(); +var a = /** @class */ (function () { function a() { } a.prototype.x = function () { diff --git a/tests/baselines/reference/inheritanceMemberAccessorOverridingProperty.js b/tests/baselines/reference/inheritanceMemberAccessorOverridingProperty.js index ab17fbb4d02..246cd5548fe 100644 --- a/tests/baselines/reference/inheritanceMemberAccessorOverridingProperty.js +++ b/tests/baselines/reference/inheritanceMemberAccessorOverridingProperty.js @@ -25,7 +25,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var a = /** @class */ (function () { +})(); +var a = /** @class */ (function () { function a() { } return a; diff --git a/tests/baselines/reference/inheritanceMemberFuncOverridingAccessor.js b/tests/baselines/reference/inheritanceMemberFuncOverridingAccessor.js index 43ebb64aad2..2a05146e053 100644 --- a/tests/baselines/reference/inheritanceMemberFuncOverridingAccessor.js +++ b/tests/baselines/reference/inheritanceMemberFuncOverridingAccessor.js @@ -27,7 +27,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var a = /** @class */ (function () { +})(); +var a = /** @class */ (function () { function a() { } Object.defineProperty(a.prototype, "x", { diff --git a/tests/baselines/reference/inheritanceMemberFuncOverridingMethod.js b/tests/baselines/reference/inheritanceMemberFuncOverridingMethod.js index dcf7455e076..8236df5357f 100644 --- a/tests/baselines/reference/inheritanceMemberFuncOverridingMethod.js +++ b/tests/baselines/reference/inheritanceMemberFuncOverridingMethod.js @@ -24,7 +24,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var a = /** @class */ (function () { +})(); +var a = /** @class */ (function () { function a() { } a.prototype.x = function () { diff --git a/tests/baselines/reference/inheritanceMemberFuncOverridingProperty.js b/tests/baselines/reference/inheritanceMemberFuncOverridingProperty.js index a3d0b4d56f5..f6d1413cb36 100644 --- a/tests/baselines/reference/inheritanceMemberFuncOverridingProperty.js +++ b/tests/baselines/reference/inheritanceMemberFuncOverridingProperty.js @@ -22,7 +22,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var a = /** @class */ (function () { +})(); +var a = /** @class */ (function () { function a() { } return a; diff --git a/tests/baselines/reference/inheritanceMemberPropertyOverridingAccessor.js b/tests/baselines/reference/inheritanceMemberPropertyOverridingAccessor.js index 3842e00ef8d..99c69af4853 100644 --- a/tests/baselines/reference/inheritanceMemberPropertyOverridingAccessor.js +++ b/tests/baselines/reference/inheritanceMemberPropertyOverridingAccessor.js @@ -26,7 +26,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var a = /** @class */ (function () { +})(); +var a = /** @class */ (function () { function a() { } Object.defineProperty(a.prototype, "x", { diff --git a/tests/baselines/reference/inheritanceMemberPropertyOverridingMethod.js b/tests/baselines/reference/inheritanceMemberPropertyOverridingMethod.js index 04f187f4d5c..3b29c457ef3 100644 --- a/tests/baselines/reference/inheritanceMemberPropertyOverridingMethod.js +++ b/tests/baselines/reference/inheritanceMemberPropertyOverridingMethod.js @@ -22,7 +22,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var a = /** @class */ (function () { +})(); +var a = /** @class */ (function () { function a() { } a.prototype.x = function () { diff --git a/tests/baselines/reference/inheritanceMemberPropertyOverridingProperty.js b/tests/baselines/reference/inheritanceMemberPropertyOverridingProperty.js index 609db1109e7..b9bb7dc695f 100644 --- a/tests/baselines/reference/inheritanceMemberPropertyOverridingProperty.js +++ b/tests/baselines/reference/inheritanceMemberPropertyOverridingProperty.js @@ -20,7 +20,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var a = /** @class */ (function () { +})(); +var a = /** @class */ (function () { function a() { } return a; diff --git a/tests/baselines/reference/inheritanceOfGenericConstructorMethod1.js b/tests/baselines/reference/inheritanceOfGenericConstructorMethod1.js index 9952fbc047e..a9839dece98 100644 --- a/tests/baselines/reference/inheritanceOfGenericConstructorMethod1.js +++ b/tests/baselines/reference/inheritanceOfGenericConstructorMethod1.js @@ -20,7 +20,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() {} return A; }()); diff --git a/tests/baselines/reference/inheritanceStaticAccessorOverridingAccessor.js b/tests/baselines/reference/inheritanceStaticAccessorOverridingAccessor.js index 62f3a36f4b3..909680e76e1 100644 --- a/tests/baselines/reference/inheritanceStaticAccessorOverridingAccessor.js +++ b/tests/baselines/reference/inheritanceStaticAccessorOverridingAccessor.js @@ -30,7 +30,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var a = /** @class */ (function () { +})(); +var a = /** @class */ (function () { function a() { } Object.defineProperty(a, "x", { diff --git a/tests/baselines/reference/inheritanceStaticAccessorOverridingMethod.js b/tests/baselines/reference/inheritanceStaticAccessorOverridingMethod.js index 5b6b68ff156..82813d3724e 100644 --- a/tests/baselines/reference/inheritanceStaticAccessorOverridingMethod.js +++ b/tests/baselines/reference/inheritanceStaticAccessorOverridingMethod.js @@ -27,7 +27,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var a = /** @class */ (function () { +})(); +var a = /** @class */ (function () { function a() { } a.x = function () { diff --git a/tests/baselines/reference/inheritanceStaticAccessorOverridingProperty.js b/tests/baselines/reference/inheritanceStaticAccessorOverridingProperty.js index 48e26e5287b..6ce9dd493b2 100644 --- a/tests/baselines/reference/inheritanceStaticAccessorOverridingProperty.js +++ b/tests/baselines/reference/inheritanceStaticAccessorOverridingProperty.js @@ -25,7 +25,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var a = /** @class */ (function () { +})(); +var a = /** @class */ (function () { function a() { } return a; diff --git a/tests/baselines/reference/inheritanceStaticFuncOverridingAccessor.js b/tests/baselines/reference/inheritanceStaticFuncOverridingAccessor.js index b5b9b815fac..95c48fac138 100644 --- a/tests/baselines/reference/inheritanceStaticFuncOverridingAccessor.js +++ b/tests/baselines/reference/inheritanceStaticFuncOverridingAccessor.js @@ -27,7 +27,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var a = /** @class */ (function () { +})(); +var a = /** @class */ (function () { function a() { } Object.defineProperty(a, "x", { diff --git a/tests/baselines/reference/inheritanceStaticFuncOverridingAccessorOfFuncType.js b/tests/baselines/reference/inheritanceStaticFuncOverridingAccessorOfFuncType.js index ee0bb5b960c..07523c67356 100644 --- a/tests/baselines/reference/inheritanceStaticFuncOverridingAccessorOfFuncType.js +++ b/tests/baselines/reference/inheritanceStaticFuncOverridingAccessorOfFuncType.js @@ -24,7 +24,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var a = /** @class */ (function () { +})(); +var a = /** @class */ (function () { function a() { } Object.defineProperty(a, "x", { diff --git a/tests/baselines/reference/inheritanceStaticFuncOverridingMethod.js b/tests/baselines/reference/inheritanceStaticFuncOverridingMethod.js index 5e518f49aa7..cb83e666784 100644 --- a/tests/baselines/reference/inheritanceStaticFuncOverridingMethod.js +++ b/tests/baselines/reference/inheritanceStaticFuncOverridingMethod.js @@ -24,7 +24,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var a = /** @class */ (function () { +})(); +var a = /** @class */ (function () { function a() { } a.x = function () { diff --git a/tests/baselines/reference/inheritanceStaticFuncOverridingProperty.js b/tests/baselines/reference/inheritanceStaticFuncOverridingProperty.js index 0c5ee11fc84..bf32cc8ecb7 100644 --- a/tests/baselines/reference/inheritanceStaticFuncOverridingProperty.js +++ b/tests/baselines/reference/inheritanceStaticFuncOverridingProperty.js @@ -22,7 +22,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var a = /** @class */ (function () { +})(); +var a = /** @class */ (function () { function a() { } return a; diff --git a/tests/baselines/reference/inheritanceStaticFuncOverridingPropertyOfFuncType.js b/tests/baselines/reference/inheritanceStaticFuncOverridingPropertyOfFuncType.js index 4d6009d0482..aed7d3109cd 100644 --- a/tests/baselines/reference/inheritanceStaticFuncOverridingPropertyOfFuncType.js +++ b/tests/baselines/reference/inheritanceStaticFuncOverridingPropertyOfFuncType.js @@ -22,7 +22,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var a = /** @class */ (function () { +})(); +var a = /** @class */ (function () { function a() { } return a; diff --git a/tests/baselines/reference/inheritanceStaticFunctionOverridingInstanceProperty.js b/tests/baselines/reference/inheritanceStaticFunctionOverridingInstanceProperty.js index 9cd259eccb0..7af6c7abc69 100644 --- a/tests/baselines/reference/inheritanceStaticFunctionOverridingInstanceProperty.js +++ b/tests/baselines/reference/inheritanceStaticFunctionOverridingInstanceProperty.js @@ -22,7 +22,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var a = /** @class */ (function () { +})(); +var a = /** @class */ (function () { function a() { } return a; diff --git a/tests/baselines/reference/inheritanceStaticMembersCompatible.js b/tests/baselines/reference/inheritanceStaticMembersCompatible.js index a18ae83d7b6..18a5fba9fbc 100644 --- a/tests/baselines/reference/inheritanceStaticMembersCompatible.js +++ b/tests/baselines/reference/inheritanceStaticMembersCompatible.js @@ -20,7 +20,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var a = /** @class */ (function () { +})(); +var a = /** @class */ (function () { function a() { } return a; diff --git a/tests/baselines/reference/inheritanceStaticMembersIncompatible.js b/tests/baselines/reference/inheritanceStaticMembersIncompatible.js index 151c922df32..3b1d0da9111 100644 --- a/tests/baselines/reference/inheritanceStaticMembersIncompatible.js +++ b/tests/baselines/reference/inheritanceStaticMembersIncompatible.js @@ -20,7 +20,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var a = /** @class */ (function () { +})(); +var a = /** @class */ (function () { function a() { } return a; diff --git a/tests/baselines/reference/inheritanceStaticPropertyOverridingAccessor.js b/tests/baselines/reference/inheritanceStaticPropertyOverridingAccessor.js index 42acf228591..80d2c27668c 100644 --- a/tests/baselines/reference/inheritanceStaticPropertyOverridingAccessor.js +++ b/tests/baselines/reference/inheritanceStaticPropertyOverridingAccessor.js @@ -24,7 +24,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var a = /** @class */ (function () { +})(); +var a = /** @class */ (function () { function a() { } Object.defineProperty(a, "x", { diff --git a/tests/baselines/reference/inheritanceStaticPropertyOverridingMethod.js b/tests/baselines/reference/inheritanceStaticPropertyOverridingMethod.js index d114012af15..7a7368dcaeb 100644 --- a/tests/baselines/reference/inheritanceStaticPropertyOverridingMethod.js +++ b/tests/baselines/reference/inheritanceStaticPropertyOverridingMethod.js @@ -22,7 +22,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var a = /** @class */ (function () { +})(); +var a = /** @class */ (function () { function a() { } a.x = function () { diff --git a/tests/baselines/reference/inheritanceStaticPropertyOverridingProperty.js b/tests/baselines/reference/inheritanceStaticPropertyOverridingProperty.js index 4819266a502..347e1c3ddb1 100644 --- a/tests/baselines/reference/inheritanceStaticPropertyOverridingProperty.js +++ b/tests/baselines/reference/inheritanceStaticPropertyOverridingProperty.js @@ -20,7 +20,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var a = /** @class */ (function () { +})(); +var a = /** @class */ (function () { function a() { } return a; diff --git a/tests/baselines/reference/inheritedConstructorWithRestParams.js b/tests/baselines/reference/inheritedConstructorWithRestParams.js index eb880a2339e..646fd3ca633 100644 --- a/tests/baselines/reference/inheritedConstructorWithRestParams.js +++ b/tests/baselines/reference/inheritedConstructorWithRestParams.js @@ -27,7 +27,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() {var a = []; for (var _i = 0; _i < arguments.length; _i++) { a[_i] = arguments[_i]; diff --git a/tests/baselines/reference/inheritedConstructorWithRestParams2.js b/tests/baselines/reference/inheritedConstructorWithRestParams2.js index 859cd58d221..a3c290d3b21 100644 --- a/tests/baselines/reference/inheritedConstructorWithRestParams2.js +++ b/tests/baselines/reference/inheritedConstructorWithRestParams2.js @@ -47,7 +47,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var IBaseBase = /** @class */ (function () { +})(); +var IBaseBase = /** @class */ (function () { function IBaseBase(x) {} return IBaseBase; }()); diff --git a/tests/baselines/reference/inheritedModuleMembersForClodule.js b/tests/baselines/reference/inheritedModuleMembersForClodule.js index cd9ad46f38e..7e352b29e7b 100644 --- a/tests/baselines/reference/inheritedModuleMembersForClodule.js +++ b/tests/baselines/reference/inheritedModuleMembersForClodule.js @@ -34,7 +34,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C() { } C.foo = function () { diff --git a/tests/baselines/reference/instanceSubtypeCheck2.js b/tests/baselines/reference/instanceSubtypeCheck2.js index 770ed3acd89..2924ae3be05 100644 --- a/tests/baselines/reference/instanceSubtypeCheck2.js +++ b/tests/baselines/reference/instanceSubtypeCheck2.js @@ -20,7 +20,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C1 = /** @class */ (function () { +})(); +var C1 = /** @class */ (function () { function C1() { } return C1; diff --git a/tests/baselines/reference/interfaceExtendsClass1.js b/tests/baselines/reference/interfaceExtendsClass1.js index dea771a6903..e63dce8f199 100644 --- a/tests/baselines/reference/interfaceExtendsClass1.js +++ b/tests/baselines/reference/interfaceExtendsClass1.js @@ -31,7 +31,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Control = /** @class */ (function () { +})(); +var Control = /** @class */ (function () { function Control() { } return Control; diff --git a/tests/baselines/reference/interfaceExtendsClassWithPrivate1.js b/tests/baselines/reference/interfaceExtendsClassWithPrivate1.js index d490399e1f1..f46cd193e9d 100644 --- a/tests/baselines/reference/interfaceExtendsClassWithPrivate1.js +++ b/tests/baselines/reference/interfaceExtendsClassWithPrivate1.js @@ -40,7 +40,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C() { this.x = 1; } diff --git a/tests/baselines/reference/interfaceExtendsClassWithPrivate2.js b/tests/baselines/reference/interfaceExtendsClassWithPrivate2.js index c792c26a85e..ddc6a5d7011 100644 --- a/tests/baselines/reference/interfaceExtendsClassWithPrivate2.js +++ b/tests/baselines/reference/interfaceExtendsClassWithPrivate2.js @@ -36,7 +36,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C() { this.x = 1; } diff --git a/tests/baselines/reference/invalidContinueInDownlevelAsync.js b/tests/baselines/reference/invalidContinueInDownlevelAsync.js index 52cf7c02142..9a2fc08f4a8 100644 --- a/tests/baselines/reference/invalidContinueInDownlevelAsync.js +++ b/tests/baselines/reference/invalidContinueInDownlevelAsync.js @@ -44,7 +44,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) { } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } -};function func() { +}; +function func() { return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) { switch (_a.label) { diff --git a/tests/baselines/reference/invalidTaggedTemplateEscapeSequences(target=es2015).js b/tests/baselines/reference/invalidTaggedTemplateEscapeSequences(target=es2015).js index 08f5584538e..e00f3383822 100644 --- a/tests/baselines/reference/invalidTaggedTemplateEscapeSequences(target=es2015).js +++ b/tests/baselines/reference/invalidTaggedTemplateEscapeSequences(target=es2015).js @@ -29,7 +29,8 @@ const a14 = tag`${ 100 }\x00` // \x00 var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; -};function tag(str, ...args) { +}; +function tag(str, ...args) { return str; } diff --git a/tests/baselines/reference/invalidTaggedTemplateEscapeSequences(target=es5).js b/tests/baselines/reference/invalidTaggedTemplateEscapeSequences(target=es5).js index 644400cb8f7..43bf596893b 100644 --- a/tests/baselines/reference/invalidTaggedTemplateEscapeSequences(target=es5).js +++ b/tests/baselines/reference/invalidTaggedTemplateEscapeSequences(target=es5).js @@ -29,7 +29,8 @@ const a14 = tag`${ 100 }\x00` // \x00 var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; -};function tag(str) {var args = []; +}; +function tag(str) {var args = []; for (var _i = 1; _i < arguments.length; _i++) { args[_i - 1] = arguments[_i]; } diff --git a/tests/baselines/reference/jsDeclarationsClassExtendsVisibility.js b/tests/baselines/reference/jsDeclarationsClassExtendsVisibility.js index 1d784899bbd..b34ee326584 100644 --- a/tests/baselines/reference/jsDeclarationsClassExtendsVisibility.js +++ b/tests/baselines/reference/jsDeclarationsClassExtendsVisibility.js @@ -32,7 +32,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Bar = require("./bar"); +})(); +var Bar = require("./bar"); var Strings = { a: "A", b: "B" diff --git a/tests/baselines/reference/jsFileCompilationAwaitModifier.js b/tests/baselines/reference/jsFileCompilationAwaitModifier.js index 8350a12557e..9cc51eb2bbb 100644 --- a/tests/baselines/reference/jsFileCompilationAwaitModifier.js +++ b/tests/baselines/reference/jsFileCompilationAwaitModifier.js @@ -46,7 +46,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) { } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } -};var Foo = /** @class */ (function () { +}; +var Foo = /** @class */ (function () { function Foo() { var _this = this; this.b = function () { return __awaiter(_this, void 0, void 0, function () { diff --git a/tests/baselines/reference/jsFileCompilationTypeArgumentSyntaxOfCall.js b/tests/baselines/reference/jsFileCompilationTypeArgumentSyntaxOfCall.js index e19600c188c..f51afa0a6db 100644 --- a/tests/baselines/reference/jsFileCompilationTypeArgumentSyntaxOfCall.js +++ b/tests/baselines/reference/jsFileCompilationTypeArgumentSyntaxOfCall.js @@ -8,7 +8,8 @@ Foo``; var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; -};Foo(); +}; +Foo(); Foo(__makeTemplateObject([""], [""])); ; ; diff --git a/tests/baselines/reference/keyofAndIndexedAccess.js b/tests/baselines/reference/keyofAndIndexedAccess.js index ce777ed25e8..920cbda5b1e 100644 --- a/tests/baselines/reference/keyofAndIndexedAccess.js +++ b/tests/baselines/reference/keyofAndIndexedAccess.js @@ -678,7 +678,8 @@ var __spreadArrays = (this && this.__spreadArrays) || function () { for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) r[k] = a[j]; return r; -};var Shape = /** @class */ (function () { +}; +var Shape = /** @class */ (function () { function Shape() { } return Shape; diff --git a/tests/baselines/reference/lambdaArgCrash.js b/tests/baselines/reference/lambdaArgCrash.js index b821b8672da..063344b5fa4 100644 --- a/tests/baselines/reference/lambdaArgCrash.js +++ b/tests/baselines/reference/lambdaArgCrash.js @@ -47,7 +47,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Event = /** @class */ (function () { +})(); +var Event = /** @class */ (function () { function Event() { // TODO: remove this._listeners = []; diff --git a/tests/baselines/reference/lift.js b/tests/baselines/reference/lift.js index 9e026c449dc..2270048a7a5 100644 --- a/tests/baselines/reference/lift.js +++ b/tests/baselines/reference/lift.js @@ -30,7 +30,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var B = /** @class */ (function () { +})(); +var B = /** @class */ (function () { function B(y) { this.y = y; } diff --git a/tests/baselines/reference/literalFreshnessPropagationOnNarrowing.js b/tests/baselines/reference/literalFreshnessPropagationOnNarrowing.js index 39232a71eda..0652cc024d6 100644 --- a/tests/baselines/reference/literalFreshnessPropagationOnNarrowing.js +++ b/tests/baselines/reference/literalFreshnessPropagationOnNarrowing.js @@ -68,7 +68,8 @@ var __spreadArrays = (this && this.__spreadArrays) || function () { for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) r[k] = a[j]; return r; -};function f1() { +}; +function f1() { var b = true; var obj = { b: b }; // Desired: OK diff --git a/tests/baselines/reference/localTypes1.js b/tests/baselines/reference/localTypes1.js index f7d4a1352d8..bd43d2df2fb 100644 --- a/tests/baselines/reference/localTypes1.js +++ b/tests/baselines/reference/localTypes1.js @@ -153,7 +153,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();function f1() { +})(); +function f1() { var E; (function (E) { E[E["A"] = 0] = "A"; diff --git a/tests/baselines/reference/mergedInheritedMembersSatisfyAbstractBase.js b/tests/baselines/reference/mergedInheritedMembersSatisfyAbstractBase.js index bff7cfe5c9e..575b8130ce9 100644 --- a/tests/baselines/reference/mergedInheritedMembersSatisfyAbstractBase.js +++ b/tests/baselines/reference/mergedInheritedMembersSatisfyAbstractBase.js @@ -33,7 +33,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var BaseClass = /** @class */ (function () { +})(); +var BaseClass = /** @class */ (function () { function BaseClass() { } return BaseClass; diff --git a/tests/baselines/reference/mergedInterfacesWithInheritedPrivates2.js b/tests/baselines/reference/mergedInterfacesWithInheritedPrivates2.js index c6954874e32..fcab63e89ce 100644 --- a/tests/baselines/reference/mergedInterfacesWithInheritedPrivates2.js +++ b/tests/baselines/reference/mergedInterfacesWithInheritedPrivates2.js @@ -44,7 +44,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C() { } return C; diff --git a/tests/baselines/reference/mergedInterfacesWithInheritedPrivates3.js b/tests/baselines/reference/mergedInterfacesWithInheritedPrivates3.js index 9aa1eb57100..d2f4e41222a 100644 --- a/tests/baselines/reference/mergedInterfacesWithInheritedPrivates3.js +++ b/tests/baselines/reference/mergedInterfacesWithInheritedPrivates3.js @@ -51,7 +51,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C() { } return C; diff --git a/tests/baselines/reference/metadataOfStringLiteral.js b/tests/baselines/reference/metadataOfStringLiteral.js index b5c47a15b70..d7a714d6a66 100644 --- a/tests/baselines/reference/metadataOfStringLiteral.js +++ b/tests/baselines/reference/metadataOfStringLiteral.js @@ -15,7 +15,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); -};function PropDeco(target, propKey) { } +}; +function PropDeco(target, propKey) { } var Foo = /** @class */ (function () { function Foo() { } diff --git a/tests/baselines/reference/metadataOfUnion.js b/tests/baselines/reference/metadataOfUnion.js index 175c715686f..dfd548ccb06 100644 --- a/tests/baselines/reference/metadataOfUnion.js +++ b/tests/baselines/reference/metadataOfUnion.js @@ -45,7 +45,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); -};function PropDeco(target, propKey) { } +}; +function PropDeco(target, propKey) { } var A = /** @class */ (function () { function A() { diff --git a/tests/baselines/reference/metadataOfUnionWithNull.js b/tests/baselines/reference/metadataOfUnionWithNull.js index 09d6e5f3bc2..880c9b20dba 100644 --- a/tests/baselines/reference/metadataOfUnionWithNull.js +++ b/tests/baselines/reference/metadataOfUnionWithNull.js @@ -51,7 +51,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); -};function PropDeco(target, propKey) { } +}; +function PropDeco(target, propKey) { } var A = /** @class */ (function () { function A() { diff --git a/tests/baselines/reference/missingPropertiesOfClassExpression.js b/tests/baselines/reference/missingPropertiesOfClassExpression.js index 9a8cb81b2ac..632599f8f6b 100644 --- a/tests/baselines/reference/missingPropertiesOfClassExpression.js +++ b/tests/baselines/reference/missingPropertiesOfClassExpression.js @@ -19,7 +19,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var George = /** @class */ (function (_super) { +})(); +var George = /** @class */ (function (_super) { __extends(George, _super); function George() { return _super.call(this) || this; diff --git a/tests/baselines/reference/moduleNoneOutFile.js b/tests/baselines/reference/moduleNoneOutFile.js index 97851041502..4a25b216b1b 100644 --- a/tests/baselines/reference/moduleNoneOutFile.js +++ b/tests/baselines/reference/moduleNoneOutFile.js @@ -22,7 +22,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Bar = /** @class */ (function (_super) { +})(); +var Bar = /** @class */ (function (_super) { __extends(Bar, _super); function Bar() { return _super !== null && _super.apply(this, arguments) || this; diff --git a/tests/baselines/reference/multipleInheritance.js b/tests/baselines/reference/multipleInheritance.js index 52166e5816d..b80794c1e71 100644 --- a/tests/baselines/reference/multipleInheritance.js +++ b/tests/baselines/reference/multipleInheritance.js @@ -51,7 +51,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var B1 = /** @class */ (function () { +})(); +var B1 = /** @class */ (function () { function B1() { } return B1; diff --git a/tests/baselines/reference/mutuallyRecursiveGenericBaseTypes2.js b/tests/baselines/reference/mutuallyRecursiveGenericBaseTypes2.js index 4adc2285392..54fea7b4d53 100644 --- a/tests/baselines/reference/mutuallyRecursiveGenericBaseTypes2.js +++ b/tests/baselines/reference/mutuallyRecursiveGenericBaseTypes2.js @@ -23,7 +23,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var foo = /** @class */ (function () { +})(); +var foo = /** @class */ (function () { function foo() { } foo.prototype.bar = function () { return null; }; diff --git a/tests/baselines/reference/mutuallyRecursiveInference.js b/tests/baselines/reference/mutuallyRecursiveInference.js index b2a7fa3dd1c..f43ea313001 100644 --- a/tests/baselines/reference/mutuallyRecursiveInference.js +++ b/tests/baselines/reference/mutuallyRecursiveInference.js @@ -28,7 +28,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var T = /** @class */ (function () { +})(); +var T = /** @class */ (function () { function T() { } return T; diff --git a/tests/baselines/reference/noCrashOnMixin.js b/tests/baselines/reference/noCrashOnMixin.js index f7e470e6ac6..b831883a3e1 100644 --- a/tests/baselines/reference/noCrashOnMixin.js +++ b/tests/baselines/reference/noCrashOnMixin.js @@ -36,7 +36,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Abstract = /** @class */ (function () { +})(); +var Abstract = /** @class */ (function () { function Abstract() { } return Abstract; diff --git a/tests/baselines/reference/noImplicitAnyMissingGetAccessor.js b/tests/baselines/reference/noImplicitAnyMissingGetAccessor.js index 6ea31234e45..d5c7bdb0915 100644 --- a/tests/baselines/reference/noImplicitAnyMissingGetAccessor.js +++ b/tests/baselines/reference/noImplicitAnyMissingGetAccessor.js @@ -24,7 +24,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Parent = /** @class */ (function () { +})(); +var Parent = /** @class */ (function () { function Parent() { } return Parent; diff --git a/tests/baselines/reference/noImplicitAnyMissingSetAccessor.js b/tests/baselines/reference/noImplicitAnyMissingSetAccessor.js index a4e065bc7d7..c4db0caa2ce 100644 --- a/tests/baselines/reference/noImplicitAnyMissingSetAccessor.js +++ b/tests/baselines/reference/noImplicitAnyMissingSetAccessor.js @@ -23,7 +23,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Parent = /** @class */ (function () { +})(); +var Parent = /** @class */ (function () { function Parent() { } return Parent; diff --git a/tests/baselines/reference/noImplicitReturnsInAsync1.js b/tests/baselines/reference/noImplicitReturnsInAsync1.js index 23b5aa62dc6..d803694056f 100644 --- a/tests/baselines/reference/noImplicitReturnsInAsync1.js +++ b/tests/baselines/reference/noImplicitReturnsInAsync1.js @@ -15,7 +15,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); -};function test(isError = false) { +}; +function test(isError = false) { return __awaiter(this, void 0, void 0, function* () { if (isError === true) { return; diff --git a/tests/baselines/reference/nonGenericClassExtendingGenericClassWithAny.js b/tests/baselines/reference/nonGenericClassExtendingGenericClassWithAny.js index 695d435a40e..93a8b21daae 100644 --- a/tests/baselines/reference/nonGenericClassExtendingGenericClassWithAny.js +++ b/tests/baselines/reference/nonGenericClassExtendingGenericClassWithAny.js @@ -18,7 +18,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Foo = /** @class */ (function () { +})(); +var Foo = /** @class */ (function () { function Foo() { } return Foo; diff --git a/tests/baselines/reference/nonPrimitiveAccessProperty.js b/tests/baselines/reference/nonPrimitiveAccessProperty.js index 78008fe8b6b..4905133b44b 100644 --- a/tests/baselines/reference/nonPrimitiveAccessProperty.js +++ b/tests/baselines/reference/nonPrimitiveAccessProperty.js @@ -18,7 +18,8 @@ var __rest = (this && this.__rest) || function (s, e) { t[p[i]] = s[p[i]]; } return t; -};var a; +}; +var a; a.toString(); a.nonExist(); // error diff --git a/tests/baselines/reference/numericIndexerConstraint3.js b/tests/baselines/reference/numericIndexerConstraint3.js index aff44fa1bd6..f6e1a201de6 100644 --- a/tests/baselines/reference/numericIndexerConstraint3.js +++ b/tests/baselines/reference/numericIndexerConstraint3.js @@ -25,7 +25,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } return A; diff --git a/tests/baselines/reference/numericIndexerConstraint4.js b/tests/baselines/reference/numericIndexerConstraint4.js index 3d88a6c5cb4..e2cb7c58dff 100644 --- a/tests/baselines/reference/numericIndexerConstraint4.js +++ b/tests/baselines/reference/numericIndexerConstraint4.js @@ -25,7 +25,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } return A; diff --git a/tests/baselines/reference/numericIndexerTyping2.js b/tests/baselines/reference/numericIndexerTyping2.js index 19cd4382063..3532a0edbbf 100644 --- a/tests/baselines/reference/numericIndexerTyping2.js +++ b/tests/baselines/reference/numericIndexerTyping2.js @@ -25,7 +25,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var I = /** @class */ (function () { +})(); +var I = /** @class */ (function () { function I() { } return I; diff --git a/tests/baselines/reference/objectBindingPattern_restElementWithPropertyName.js b/tests/baselines/reference/objectBindingPattern_restElementWithPropertyName.js index b0f5af84a2a..580dc2b606f 100644 --- a/tests/baselines/reference/objectBindingPattern_restElementWithPropertyName.js +++ b/tests/baselines/reference/objectBindingPattern_restElementWithPropertyName.js @@ -13,4 +13,5 @@ var __rest = (this && this.__rest) || function (s, e) { t[p[i]] = s[p[i]]; } return t; -};var b = __rest({}, []); +}; +var b = __rest({}, []); diff --git a/tests/baselines/reference/objectCreationOfElementAccessExpression.js b/tests/baselines/reference/objectCreationOfElementAccessExpression.js index c734d133967..ed67113d387 100644 --- a/tests/baselines/reference/objectCreationOfElementAccessExpression.js +++ b/tests/baselines/reference/objectCreationOfElementAccessExpression.js @@ -68,7 +68,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Food = /** @class */ (function () { +})(); +var Food = /** @class */ (function () { function Food(name) { this.name = name; this.amount = 100; diff --git a/tests/baselines/reference/objectLiteralFreshnessWithSpread.js b/tests/baselines/reference/objectLiteralFreshnessWithSpread.js index 2268ed9c487..ad87fd0557d 100644 --- a/tests/baselines/reference/objectLiteralFreshnessWithSpread.js +++ b/tests/baselines/reference/objectLiteralFreshnessWithSpread.js @@ -14,5 +14,6 @@ var __assign = (this && this.__assign) || function () { return t; }; return __assign.apply(this, arguments); -};var x = { b: 1, extra: 2 }; +}; +var x = { b: 1, extra: 2 }; var xx = __assign(__assign({ a: 1 }, x), { z: 3 }); // error for 'z', no error for 'extra' diff --git a/tests/baselines/reference/objectRestCatchES5.js b/tests/baselines/reference/objectRestCatchES5.js index a7087d3bc4a..210e8cec3bf 100644 --- a/tests/baselines/reference/objectRestCatchES5.js +++ b/tests/baselines/reference/objectRestCatchES5.js @@ -13,7 +13,8 @@ var __rest = (this && this.__rest) || function (s, e) { t[p[i]] = s[p[i]]; } return t; -};var a = 1, b = 2; +}; +var a = 1, b = 2; try { } catch (_a) { var a_1 = _a.a, b_1 = __rest(_a, ["a"]); diff --git a/tests/baselines/reference/objectRestForOf.js b/tests/baselines/reference/objectRestForOf.js index 56d068d0784..6f4b7c16baa 100644 --- a/tests/baselines/reference/objectRestForOf.js +++ b/tests/baselines/reference/objectRestForOf.js @@ -25,7 +25,8 @@ var __rest = (this && this.__rest) || function (s, e) { t[p[i]] = s[p[i]]; } return t; -};let array; +}; +let array; for (let _a of array) {let { x } = _a, restOf = __rest(_a, ["x"]); [x, restOf]; } diff --git a/tests/baselines/reference/objectRestNegative.js b/tests/baselines/reference/objectRestNegative.js index a1952d3edde..6233241cbef 100644 --- a/tests/baselines/reference/objectRestNegative.js +++ b/tests/baselines/reference/objectRestNegative.js @@ -29,7 +29,8 @@ var __rest = (this && this.__rest) || function (s, e) { t[p[i]] = s[p[i]]; } return t; -};var o = { a: 1, b: 'no' }; +}; +var o = { a: 1, b: 'no' }; var a = o.a; var b; diff --git a/tests/baselines/reference/objectRestParameter.js b/tests/baselines/reference/objectRestParameter.js index 0c30a603a31..e780fa64b45 100644 --- a/tests/baselines/reference/objectRestParameter.js +++ b/tests/baselines/reference/objectRestParameter.js @@ -32,7 +32,8 @@ var __rest = (this && this.__rest) || function (s, e) { t[p[i]] = s[p[i]]; } return t; -};function cloneAgain(_a) { +}; +function cloneAgain(_a) { var { a } = _a, clone = __rest(_a, ["a"]); } diff --git a/tests/baselines/reference/objectRestParameterES5.js b/tests/baselines/reference/objectRestParameterES5.js index 3b62406d15d..5b587d9e89f 100644 --- a/tests/baselines/reference/objectRestParameterES5.js +++ b/tests/baselines/reference/objectRestParameterES5.js @@ -32,7 +32,8 @@ var __rest = (this && this.__rest) || function (s, e) { t[p[i]] = s[p[i]]; } return t; -};function cloneAgain(_a) { +}; +function cloneAgain(_a) { var a = _a.a, clone = __rest(_a, ["a"]); } diff --git a/tests/baselines/reference/objectSpread.js b/tests/baselines/reference/objectSpread.js index 9b8c51817e5..368e6603e5e 100644 --- a/tests/baselines/reference/objectSpread.js +++ b/tests/baselines/reference/objectSpread.js @@ -154,7 +154,8 @@ var __assign = (this && this.__assign) || function () { return t; }; return __assign.apply(this, arguments); -};var o = { a: 1, b: 'no' }; +}; +var o = { a: 1, b: 'no' }; var o2 = { b: 'yes', c: true }; var swap = { a: 'yes', b: -1 }; diff --git a/tests/baselines/reference/objectSpreadNegativeParse.js b/tests/baselines/reference/objectSpreadNegativeParse.js index 433e8b171c9..d5cff17cbab 100644 --- a/tests/baselines/reference/objectSpreadNegativeParse.js +++ b/tests/baselines/reference/objectSpreadNegativeParse.js @@ -16,7 +16,8 @@ var __assign = (this && this.__assign) || function () { return t; }; return __assign.apply(this, arguments); -};var o7 = __assign({}, o ? : ); +}; +var o7 = __assign({}, o ? : ); var o8 = __assign({}, * o); var o9 = __assign({}, matchMedia()), _a = void 0;; var o10 = __assign(__assign({}, get), { x: function () { return 12; } }); diff --git a/tests/baselines/reference/objectSpreadStrictNull.js b/tests/baselines/reference/objectSpreadStrictNull.js index ed063c4b121..470bef66e29 100644 --- a/tests/baselines/reference/objectSpreadStrictNull.js +++ b/tests/baselines/reference/objectSpreadStrictNull.js @@ -55,7 +55,8 @@ var __assign = (this && this.__assign) || function () { return t; }; return __assign.apply(this, arguments); -};function f( +}; +function f( definiteBoolean, definiteString, optionalString, diff --git a/tests/baselines/reference/objectSpreadWithinMethodWithinObjectWithSpread.js b/tests/baselines/reference/objectSpreadWithinMethodWithinObjectWithSpread.js index cb01548e108..900dd89a820 100644 --- a/tests/baselines/reference/objectSpreadWithinMethodWithinObjectWithSpread.js +++ b/tests/baselines/reference/objectSpreadWithinMethodWithinObjectWithSpread.js @@ -22,7 +22,8 @@ var __assign = (this && this.__assign) || function () { return t; }; return __assign.apply(this, arguments); -};var obj = {}; +}; +var obj = {}; var a = __assign(__assign({}, obj), { prop: function () { return __assign(__assign({}, obj), { metadata: 213 }); } }); diff --git a/tests/baselines/reference/objectTypeHidingMembersOfExtendedObject.js b/tests/baselines/reference/objectTypeHidingMembersOfExtendedObject.js index 0ab293f672b..5c4bb65a924 100644 --- a/tests/baselines/reference/objectTypeHidingMembersOfExtendedObject.js +++ b/tests/baselines/reference/objectTypeHidingMembersOfExtendedObject.js @@ -67,7 +67,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } return A; diff --git a/tests/baselines/reference/operationsAvailableOnPromisedType.js b/tests/baselines/reference/operationsAvailableOnPromisedType.js index 1d30ce8fe7d..6b1fe8d284c 100644 --- a/tests/baselines/reference/operationsAvailableOnPromisedType.js +++ b/tests/baselines/reference/operationsAvailableOnPromisedType.js @@ -79,7 +79,8 @@ var __spreadArrays = (this && this.__spreadArrays) || function () { for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) r[k] = a[j]; return r; -};function fn( +}; +function fn( a, b, c, diff --git a/tests/baselines/reference/optionalConstructorArgInSuper.js b/tests/baselines/reference/optionalConstructorArgInSuper.js index eaf854f0250..eaf97c28020 100644 --- a/tests/baselines/reference/optionalConstructorArgInSuper.js +++ b/tests/baselines/reference/optionalConstructorArgInSuper.js @@ -23,7 +23,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base(opt) {} Base.prototype.foo = function (other) { }; return Base; diff --git a/tests/baselines/reference/optionalParamInOverride.js b/tests/baselines/reference/optionalParamInOverride.js index 2b208948e21..e4d417bbc65 100644 --- a/tests/baselines/reference/optionalParamInOverride.js +++ b/tests/baselines/reference/optionalParamInOverride.js @@ -20,7 +20,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Z = /** @class */ (function () { +})(); +var Z = /** @class */ (function () { function Z() { } Z.prototype.func = function () { }; diff --git a/tests/baselines/reference/optionalParameterProperty.js b/tests/baselines/reference/optionalParameterProperty.js index 3c710cc1469..80c3ce96f66 100644 --- a/tests/baselines/reference/optionalParameterProperty.js +++ b/tests/baselines/reference/optionalParameterProperty.js @@ -23,7 +23,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C() { } return C; diff --git a/tests/baselines/reference/overloadOnConstConstraintChecks1.js b/tests/baselines/reference/overloadOnConstConstraintChecks1.js index 6836a21cd4b..ccf9cbfac94 100644 --- a/tests/baselines/reference/overloadOnConstConstraintChecks1.js +++ b/tests/baselines/reference/overloadOnConstConstraintChecks1.js @@ -35,7 +35,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() {} Base.prototype.foo = function () { }; return Base; diff --git a/tests/baselines/reference/overloadOnConstConstraintChecks2.js b/tests/baselines/reference/overloadOnConstConstraintChecks2.js index fac06e102d4..ba69325bb15 100644 --- a/tests/baselines/reference/overloadOnConstConstraintChecks2.js +++ b/tests/baselines/reference/overloadOnConstConstraintChecks2.js @@ -24,7 +24,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() {} return A; }()); diff --git a/tests/baselines/reference/overloadOnConstConstraintChecks3.js b/tests/baselines/reference/overloadOnConstConstraintChecks3.js index 33cd4773420..73bcfbb2397 100644 --- a/tests/baselines/reference/overloadOnConstConstraintChecks3.js +++ b/tests/baselines/reference/overloadOnConstConstraintChecks3.js @@ -25,7 +25,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { this.x = 1; } diff --git a/tests/baselines/reference/overloadOnConstConstraintChecks4.js b/tests/baselines/reference/overloadOnConstConstraintChecks4.js index b53c374fc1a..69a4527e4e7 100644 --- a/tests/baselines/reference/overloadOnConstConstraintChecks4.js +++ b/tests/baselines/reference/overloadOnConstConstraintChecks4.js @@ -26,7 +26,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Z = /** @class */ (function () { +})(); +var Z = /** @class */ (function () { function Z() {} return Z; }()); diff --git a/tests/baselines/reference/overloadOnConstantsInvalidOverload1.js b/tests/baselines/reference/overloadOnConstantsInvalidOverload1.js index b02c41bf383..071f1783ddd 100644 --- a/tests/baselines/reference/overloadOnConstantsInvalidOverload1.js +++ b/tests/baselines/reference/overloadOnConstantsInvalidOverload1.js @@ -24,7 +24,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() {} Base.prototype.foo = function () { }; return Base; diff --git a/tests/baselines/reference/overloadResolution.js b/tests/baselines/reference/overloadResolution.js index 391d0248abd..f28db670800 100644 --- a/tests/baselines/reference/overloadResolution.js +++ b/tests/baselines/reference/overloadResolution.js @@ -107,7 +107,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var SomeBase = /** @class */ (function () { +})(); +var SomeBase = /** @class */ (function () { function SomeBase() { } return SomeBase; diff --git a/tests/baselines/reference/overloadResolutionClassConstructors.js b/tests/baselines/reference/overloadResolutionClassConstructors.js index f43718908ed..e906008670d 100644 --- a/tests/baselines/reference/overloadResolutionClassConstructors.js +++ b/tests/baselines/reference/overloadResolutionClassConstructors.js @@ -114,7 +114,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var SomeBase = /** @class */ (function () { +})(); +var SomeBase = /** @class */ (function () { function SomeBase() { } return SomeBase; diff --git a/tests/baselines/reference/overloadResolutionConstructors.js b/tests/baselines/reference/overloadResolutionConstructors.js index 6d205afa3f6..8631c6a879f 100644 --- a/tests/baselines/reference/overloadResolutionConstructors.js +++ b/tests/baselines/reference/overloadResolutionConstructors.js @@ -115,7 +115,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var SomeBase = /** @class */ (function () { +})(); +var SomeBase = /** @class */ (function () { function SomeBase() { } return SomeBase; diff --git a/tests/baselines/reference/overloadingOnConstants1.js b/tests/baselines/reference/overloadingOnConstants1.js index 933a81c8a1d..4c662916a0a 100644 --- a/tests/baselines/reference/overloadingOnConstants1.js +++ b/tests/baselines/reference/overloadingOnConstants1.js @@ -38,7 +38,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() {} Base.prototype.foo = function () { }; return Base; diff --git a/tests/baselines/reference/overloadingOnConstants2.js b/tests/baselines/reference/overloadingOnConstants2.js index da9252c97eb..2731782b5b5 100644 --- a/tests/baselines/reference/overloadingOnConstants2.js +++ b/tests/baselines/reference/overloadingOnConstants2.js @@ -40,7 +40,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C() { this.x = 1; } diff --git a/tests/baselines/reference/overridingPrivateStaticMembers.js b/tests/baselines/reference/overridingPrivateStaticMembers.js index 866e8b4b0f6..9ced500351f 100644 --- a/tests/baselines/reference/overridingPrivateStaticMembers.js +++ b/tests/baselines/reference/overridingPrivateStaticMembers.js @@ -20,7 +20,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base2 = /** @class */ (function () { +})(); +var Base2 = /** @class */ (function () { function Base2() { } return Base2; diff --git a/tests/baselines/reference/parseErrorInHeritageClause1.js b/tests/baselines/reference/parseErrorInHeritageClause1.js index fb41862a2c8..d0d1331e44a 100644 --- a/tests/baselines/reference/parseErrorInHeritageClause1.js +++ b/tests/baselines/reference/parseErrorInHeritageClause1.js @@ -15,7 +15,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function (_super) { +})(); +var C = /** @class */ (function (_super) { __extends(C, _super); function C() { return _super !== null && _super.apply(this, arguments) || this; diff --git a/tests/baselines/reference/parser509630.js b/tests/baselines/reference/parser509630.js index 9a64a7cd623..c0d6d667543 100644 --- a/tests/baselines/reference/parser509630.js +++ b/tests/baselines/reference/parser509630.js @@ -19,7 +19,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Type = /** @class */ (function () { +})(); +var Type = /** @class */ (function () { function Type() { this.examples = []; // typing here } diff --git a/tests/baselines/reference/parserClassDeclaration1.js b/tests/baselines/reference/parserClassDeclaration1.js index 9deed987dca..65c9d46babb 100644 --- a/tests/baselines/reference/parserClassDeclaration1.js +++ b/tests/baselines/reference/parserClassDeclaration1.js @@ -15,7 +15,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function (_super) { +})(); +var C = /** @class */ (function (_super) { __extends(C, _super); function C() { return _super !== null && _super.apply(this, arguments) || this; diff --git a/tests/baselines/reference/parserClassDeclaration3.js b/tests/baselines/reference/parserClassDeclaration3.js index 44947cd1fc4..07e15c82f26 100644 --- a/tests/baselines/reference/parserClassDeclaration3.js +++ b/tests/baselines/reference/parserClassDeclaration3.js @@ -15,7 +15,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function (_super) { +})(); +var C = /** @class */ (function (_super) { __extends(C, _super); function C() { return _super !== null && _super.apply(this, arguments) || this; diff --git a/tests/baselines/reference/parserClassDeclaration4.js b/tests/baselines/reference/parserClassDeclaration4.js index c69a47bd87a..ce636f307a9 100644 --- a/tests/baselines/reference/parserClassDeclaration4.js +++ b/tests/baselines/reference/parserClassDeclaration4.js @@ -15,7 +15,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function (_super) { +})(); +var C = /** @class */ (function (_super) { __extends(C, _super); function C() { return _super !== null && _super.apply(this, arguments) || this; diff --git a/tests/baselines/reference/parserClassDeclaration5.js b/tests/baselines/reference/parserClassDeclaration5.js index 22cf9a04a90..0d276534cf6 100644 --- a/tests/baselines/reference/parserClassDeclaration5.js +++ b/tests/baselines/reference/parserClassDeclaration5.js @@ -15,7 +15,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function (_super) { +})(); +var C = /** @class */ (function (_super) { __extends(C, _super); function C() { return _super !== null && _super.apply(this, arguments) || this; diff --git a/tests/baselines/reference/parserClassDeclaration6.js b/tests/baselines/reference/parserClassDeclaration6.js index 2a356c44f36..89f5518c86d 100644 --- a/tests/baselines/reference/parserClassDeclaration6.js +++ b/tests/baselines/reference/parserClassDeclaration6.js @@ -15,7 +15,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function (_super) { +})(); +var C = /** @class */ (function (_super) { __extends(C, _super); function C() { return _super !== null && _super.apply(this, arguments) || this; diff --git a/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause2.js b/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause2.js index af4ab3482b7..cb35279660c 100644 --- a/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause2.js +++ b/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause2.js @@ -15,7 +15,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function (_super) { +})(); +var C = /** @class */ (function (_super) { __extends(C, _super); function C() { return _super !== null && _super.apply(this, arguments) || this; diff --git a/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause4.js b/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause4.js index 34c53855594..227af5ebf4d 100644 --- a/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause4.js +++ b/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause4.js @@ -15,7 +15,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function (_super) { +})(); +var C = /** @class */ (function (_super) { __extends(C, _super); function C() { return _super !== null && _super.apply(this, arguments) || this; diff --git a/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause5.js b/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause5.js index b482bb0ab35..77ba94cd3eb 100644 --- a/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause5.js +++ b/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause5.js @@ -15,7 +15,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function (_super) { +})(); +var C = /** @class */ (function (_super) { __extends(C, _super); function C() { return _super !== null && _super.apply(this, arguments) || this; diff --git a/tests/baselines/reference/parserGenericsInTypeContexts1.js b/tests/baselines/reference/parserGenericsInTypeContexts1.js index a6efbe83af2..499b5353eae 100644 --- a/tests/baselines/reference/parserGenericsInTypeContexts1.js +++ b/tests/baselines/reference/parserGenericsInTypeContexts1.js @@ -30,7 +30,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function (_super) { +})(); +var C = /** @class */ (function (_super) { __extends(C, _super); function C() { return _super !== null && _super.apply(this, arguments) || this; diff --git a/tests/baselines/reference/parserGenericsInTypeContexts2.js b/tests/baselines/reference/parserGenericsInTypeContexts2.js index 12dfd1a2c1a..b89c0702550 100644 --- a/tests/baselines/reference/parserGenericsInTypeContexts2.js +++ b/tests/baselines/reference/parserGenericsInTypeContexts2.js @@ -30,7 +30,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function (_super) { +})(); +var C = /** @class */ (function (_super) { __extends(C, _super); function C() { return _super !== null && _super.apply(this, arguments) || this; diff --git a/tests/baselines/reference/partiallyAnnotatedFunctionInferenceError.js b/tests/baselines/reference/partiallyAnnotatedFunctionInferenceError.js index 111fc18fb9c..65277603260 100644 --- a/tests/baselines/reference/partiallyAnnotatedFunctionInferenceError.js +++ b/tests/baselines/reference/partiallyAnnotatedFunctionInferenceError.js @@ -28,7 +28,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C() { } return C; diff --git a/tests/baselines/reference/partiallyAnnotatedFunctionInferenceWithTypeParameter.js b/tests/baselines/reference/partiallyAnnotatedFunctionInferenceWithTypeParameter.js index 67b2254abec..990f4823f2c 100644 --- a/tests/baselines/reference/partiallyAnnotatedFunctionInferenceWithTypeParameter.js +++ b/tests/baselines/reference/partiallyAnnotatedFunctionInferenceWithTypeParameter.js @@ -47,7 +47,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C() { } return C; diff --git a/tests/baselines/reference/primitiveMembers.js b/tests/baselines/reference/primitiveMembers.js index fe541cd5826..7f59b53763d 100644 --- a/tests/baselines/reference/primitiveMembers.js +++ b/tests/baselines/reference/primitiveMembers.js @@ -44,7 +44,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var x = 5; +})(); +var x = 5; var r = /yo/; r.source; diff --git a/tests/baselines/reference/privateAccessInSubclass1.js b/tests/baselines/reference/privateAccessInSubclass1.js index c76d015223f..6d6edb5c6a6 100644 --- a/tests/baselines/reference/privateAccessInSubclass1.js +++ b/tests/baselines/reference/privateAccessInSubclass1.js @@ -22,7 +22,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } return Base; diff --git a/tests/baselines/reference/privateInstanceMemberAccessibility.js b/tests/baselines/reference/privateInstanceMemberAccessibility.js index 604c5a971d1..ffcefc92836 100644 --- a/tests/baselines/reference/privateInstanceMemberAccessibility.js +++ b/tests/baselines/reference/privateInstanceMemberAccessibility.js @@ -26,7 +26,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } return Base; diff --git a/tests/baselines/reference/privateProtectedMembersAreNotAccessibleDestructuring.js b/tests/baselines/reference/privateProtectedMembersAreNotAccessibleDestructuring.js index 9504c461c8a..eb45924bda7 100644 --- a/tests/baselines/reference/privateProtectedMembersAreNotAccessibleDestructuring.js +++ b/tests/baselines/reference/privateProtectedMembersAreNotAccessibleDestructuring.js @@ -37,7 +37,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var K = /** @class */ (function () { +})(); +var K = /** @class */ (function () { function K() { } K.prototype.privateMethod = function () { }; diff --git a/tests/baselines/reference/privateStaticMemberAccessibility.js b/tests/baselines/reference/privateStaticMemberAccessibility.js index 0c149609775..389f614e72c 100644 --- a/tests/baselines/reference/privateStaticMemberAccessibility.js +++ b/tests/baselines/reference/privateStaticMemberAccessibility.js @@ -21,7 +21,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } return Base; diff --git a/tests/baselines/reference/promiseDefinitionTest.js b/tests/baselines/reference/promiseDefinitionTest.js index 721e45fb3e9..5f0a5af663b 100644 --- a/tests/baselines/reference/promiseDefinitionTest.js +++ b/tests/baselines/reference/promiseDefinitionTest.js @@ -40,7 +40,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) { } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } -};var Promise = /** @class */ (function () { +}; +var Promise = /** @class */ (function () { function Promise() {} return Promise; }()); diff --git a/tests/baselines/reference/propertyAccess.js b/tests/baselines/reference/propertyAccess.js index f378febb60a..70471a5af29 100644 --- a/tests/baselines/reference/propertyAccess.js +++ b/tests/baselines/reference/propertyAccess.js @@ -163,7 +163,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } return A; diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints5.js b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints5.js index 9c935a3d89c..da35ebf440d 100644 --- a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints5.js +++ b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints5.js @@ -57,7 +57,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } A.prototype.foo = function () { return ''; }; diff --git a/tests/baselines/reference/propertyOverridingPrototype.js b/tests/baselines/reference/propertyOverridingPrototype.js index 3220d25d759..67d70fb3c35 100644 --- a/tests/baselines/reference/propertyOverridingPrototype.js +++ b/tests/baselines/reference/propertyOverridingPrototype.js @@ -23,7 +23,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } Base.prototype.foo = function () { diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass.js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass.js index 2df133b6db9..7b7663bd1c9 100644 --- a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass.js +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass.js @@ -50,7 +50,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var B = /** @class */ (function () { +})(); +var B = /** @class */ (function () { function B() { } return B; diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass1.js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass1.js index 1768c486a63..9a725bce9d5 100644 --- a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass1.js +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass1.js @@ -127,7 +127,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } Base.prototype.method = function () { diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass2.js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass2.js index 645895c6255..bdbefc02e26 100644 --- a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass2.js +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass2.js @@ -107,7 +107,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } Base.prototype.method = function () { diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass3.js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass3.js index 346056baee4..e8b32190035 100644 --- a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass3.js +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass3.js @@ -26,7 +26,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } Base.prototype.method = function () { diff --git a/tests/baselines/reference/protectedInstanceMemberAccessibility.js b/tests/baselines/reference/protectedInstanceMemberAccessibility.js index 593149d906a..dc96876cb4f 100644 --- a/tests/baselines/reference/protectedInstanceMemberAccessibility.js +++ b/tests/baselines/reference/protectedInstanceMemberAccessibility.js @@ -57,7 +57,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } A.prototype.f = function () { diff --git a/tests/baselines/reference/protectedStaticClassPropertyAccessibleWithinSubclass.js b/tests/baselines/reference/protectedStaticClassPropertyAccessibleWithinSubclass.js index f07a88e3f8a..2a7bb5ecaa1 100644 --- a/tests/baselines/reference/protectedStaticClassPropertyAccessibleWithinSubclass.js +++ b/tests/baselines/reference/protectedStaticClassPropertyAccessibleWithinSubclass.js @@ -56,7 +56,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } Base.staticMethod = function () { diff --git a/tests/baselines/reference/protectedStaticClassPropertyAccessibleWithinSubclass2.js b/tests/baselines/reference/protectedStaticClassPropertyAccessibleWithinSubclass2.js index c2cb2871933..86d5df89867 100644 --- a/tests/baselines/reference/protectedStaticClassPropertyAccessibleWithinSubclass2.js +++ b/tests/baselines/reference/protectedStaticClassPropertyAccessibleWithinSubclass2.js @@ -34,7 +34,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } Base.staticMethod = function () { diff --git a/tests/baselines/reference/readonlyAssignmentInSubclassOfClassExpression.js b/tests/baselines/reference/readonlyAssignmentInSubclassOfClassExpression.js index 613e8263cd8..0079d477402 100644 --- a/tests/baselines/reference/readonlyAssignmentInSubclassOfClassExpression.js +++ b/tests/baselines/reference/readonlyAssignmentInSubclassOfClassExpression.js @@ -20,7 +20,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function (_super) { +})(); +var C = /** @class */ (function (_super) { __extends(C, _super); function C() { var _this = _super.call(this) || this; diff --git a/tests/baselines/reference/recursiveBaseCheck3.js b/tests/baselines/reference/recursiveBaseCheck3.js index 26c85b63e20..ee8cd3f8914 100644 --- a/tests/baselines/reference/recursiveBaseCheck3.js +++ b/tests/baselines/reference/recursiveBaseCheck3.js @@ -17,7 +17,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function (_super) { +})(); +var A = /** @class */ (function (_super) { __extends(A, _super); function A() { return _super !== null && _super.apply(this, arguments) || this; diff --git a/tests/baselines/reference/recursiveBaseCheck4.js b/tests/baselines/reference/recursiveBaseCheck4.js index cfd21514b45..aace4c73cb9 100644 --- a/tests/baselines/reference/recursiveBaseCheck4.js +++ b/tests/baselines/reference/recursiveBaseCheck4.js @@ -15,7 +15,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var M = /** @class */ (function (_super) { +})(); +var M = /** @class */ (function (_super) { __extends(M, _super); function M() { return _super !== null && _super.apply(this, arguments) || this; diff --git a/tests/baselines/reference/recursiveBaseCheck6.js b/tests/baselines/reference/recursiveBaseCheck6.js index d13b848f97b..b372d21c57e 100644 --- a/tests/baselines/reference/recursiveBaseCheck6.js +++ b/tests/baselines/reference/recursiveBaseCheck6.js @@ -15,7 +15,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var S18 = /** @class */ (function (_super) { +})(); +var S18 = /** @class */ (function (_super) { __extends(S18, _super); function S18() { return _super !== null && _super.apply(this, arguments) || this; diff --git a/tests/baselines/reference/recursiveBaseConstructorCreation1.js b/tests/baselines/reference/recursiveBaseConstructorCreation1.js index 585ac287f7b..fb5d8b95226 100644 --- a/tests/baselines/reference/recursiveBaseConstructorCreation1.js +++ b/tests/baselines/reference/recursiveBaseConstructorCreation1.js @@ -19,7 +19,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C1 = /** @class */ (function () { +})(); +var C1 = /** @class */ (function () { function C1() { } C1.prototype.func = function (param) { }; diff --git a/tests/baselines/reference/recursiveComplicatedClasses.js b/tests/baselines/reference/recursiveComplicatedClasses.js index 99d351c757b..d9e043b4c2a 100644 --- a/tests/baselines/reference/recursiveComplicatedClasses.js +++ b/tests/baselines/reference/recursiveComplicatedClasses.js @@ -37,7 +37,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Signature = /** @class */ (function () { +})(); +var Signature = /** @class */ (function () { function Signature() { this.parameters = null; } diff --git a/tests/baselines/reference/restIntersection.js b/tests/baselines/reference/restIntersection.js index 99b66061f3d..34f61bb9055 100644 --- a/tests/baselines/reference/restIntersection.js +++ b/tests/baselines/reference/restIntersection.js @@ -16,7 +16,8 @@ var __rest = (this && this.__rest) || function (s, e) { t[p[i]] = s[p[i]]; } return t; -};var intersection; +}; +var intersection; var rest1; var x = intersection.x, rest1 = __rest(intersection, ["x"]); diff --git a/tests/baselines/reference/restParameterWithBindingPattern3.js b/tests/baselines/reference/restParameterWithBindingPattern3.js index 4ec23091117..04ac99918c2 100644 --- a/tests/baselines/reference/restParameterWithBindingPattern3.js +++ b/tests/baselines/reference/restParameterWithBindingPattern3.js @@ -20,7 +20,8 @@ var __rest = (this && this.__rest) || function (s, e) { t[p[i]] = s[p[i]]; } return t; -};function a() {var _a = []; +}; +function a() {var _a = []; for (var _i = 0; _i < arguments.length; _i++) { _a[_i] = arguments[_i]; } diff --git a/tests/baselines/reference/restUnion.js b/tests/baselines/reference/restUnion.js index c7e5054b553..f3815c18711 100644 --- a/tests/baselines/reference/restUnion.js +++ b/tests/baselines/reference/restUnion.js @@ -26,7 +26,8 @@ var __rest = (this && this.__rest) || function (s, e) { t[p[i]] = s[p[i]]; } return t; -};var union; +}; +var union; var rest1; var a = union.a, rest1 = __rest(union, ["a"]); diff --git a/tests/baselines/reference/returnInConstructor1.js b/tests/baselines/reference/returnInConstructor1.js index 6f3c15dc6a5..598a5cdeaa3 100644 --- a/tests/baselines/reference/returnInConstructor1.js +++ b/tests/baselines/reference/returnInConstructor1.js @@ -79,7 +79,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { return; }A.prototype.foo = function () { }; diff --git a/tests/baselines/reference/scopeCheckExtendedClassInsidePublicMethod2.js b/tests/baselines/reference/scopeCheckExtendedClassInsidePublicMethod2.js index 90255f057f9..e859146a7ee 100644 --- a/tests/baselines/reference/scopeCheckExtendedClassInsidePublicMethod2.js +++ b/tests/baselines/reference/scopeCheckExtendedClassInsidePublicMethod2.js @@ -21,7 +21,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C() {} return C; }()); diff --git a/tests/baselines/reference/scopeCheckExtendedClassInsideStaticMethod1.js b/tests/baselines/reference/scopeCheckExtendedClassInsideStaticMethod1.js index 7a672b4753a..99b8d05b148 100644 --- a/tests/baselines/reference/scopeCheckExtendedClassInsideStaticMethod1.js +++ b/tests/baselines/reference/scopeCheckExtendedClassInsideStaticMethod1.js @@ -21,7 +21,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C() {} return C; }()); diff --git a/tests/baselines/reference/scopeTests.js b/tests/baselines/reference/scopeTests.js index 550a787c1f5..ffe3f3b2f2d 100644 --- a/tests/baselines/reference/scopeTests.js +++ b/tests/baselines/reference/scopeTests.js @@ -24,7 +24,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C() {} return C; }()); diff --git a/tests/baselines/reference/selfReferencingSpreadInLoop.js b/tests/baselines/reference/selfReferencingSpreadInLoop.js index d7e2f17d86e..023d33cca0c 100644 --- a/tests/baselines/reference/selfReferencingSpreadInLoop.js +++ b/tests/baselines/reference/selfReferencingSpreadInLoop.js @@ -12,7 +12,8 @@ var __spreadArrays = (this && this.__spreadArrays) || function () { for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) r[k] = a[j]; return r; -};var additional = []; +}; +var additional = []; for (var _i = 0, _a = [1, 2, 3]; _i < _a.length; _i++) { var subcomponent = _a[_i]; additional = __spreadArrays(additional, [subcomponent]); diff --git a/tests/baselines/reference/shadowPrivateMembers.js b/tests/baselines/reference/shadowPrivateMembers.js index 1cda82e6eb3..008b8b4caf8 100644 --- a/tests/baselines/reference/shadowPrivateMembers.js +++ b/tests/baselines/reference/shadowPrivateMembers.js @@ -16,7 +16,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var base = /** @class */ (function () { +})(); +var base = /** @class */ (function () { function base() {} base.prototype.n = function () { }; return base; diff --git a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js index c8849450e3a..b013c753b1e 100644 --- a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js +++ b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js @@ -20,7 +20,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var AbstractGreeter = /** @class */ (function () { +})(); +var AbstractGreeter = /** @class */ (function () { function AbstractGreeter() { } return AbstractGreeter; diff --git a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js.map b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js.map index 8e509c7b250..d47216ebf51 100644 --- a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js.map +++ b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js.map @@ -1,3 +1,3 @@ //// [sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js.map] -{"version":3,"file":"sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js","sourceRoot":"","sources":["sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts"],"names":[],"mappings":";;;;;;;;;;;;KAAA;IAAA;IACA,CAAC;IAAD,sBAAC;AAAD,CAAC,AADD,IACC;AAED;IAAsB,2BAAe;IAArC;QAAA,qEAGC;QAFU,OAAC,GAAG,EAAE,CAAC;QACP,WAAK,GAAG,KAAK,CAAC;;IACzB,CAAC;IAAD,cAAC;AAAD,CAAC,AAHD,CAAsB,eAAe,GAGpC"} -//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fZXh0ZW5kcyA9ICh0aGlzICYmIHRoaXMuX19leHRlbmRzKSB8fCAoZnVuY3Rpb24gKCkgew0KICAgIHZhciBleHRlbmRTdGF0aWNzID0gZnVuY3Rpb24gKGQsIGIpIHsNCiAgICAgICAgZXh0ZW5kU3RhdGljcyA9IE9iamVjdC5zZXRQcm90b3R5cGVPZiB8fA0KICAgICAgICAgICAgKHsgX19wcm90b19fOiBbXSB9IGluc3RhbmNlb2YgQXJyYXkgJiYgZnVuY3Rpb24gKGQsIGIpIHsgZC5fX3Byb3RvX18gPSBiOyB9KSB8fA0KICAgICAgICAgICAgZnVuY3Rpb24gKGQsIGIpIHsgZm9yICh2YXIgcCBpbiBiKSBpZiAoYi5oYXNPd25Qcm9wZXJ0eShwKSkgZFtwXSA9IGJbcF07IH07DQogICAgICAgIHJldHVybiBleHRlbmRTdGF0aWNzKGQsIGIpOw0KICAgIH07DQogICAgcmV0dXJuIGZ1bmN0aW9uIChkLCBiKSB7DQogICAgICAgIGV4dGVuZFN0YXRpY3MoZCwgYik7DQogICAgICAgIGZ1bmN0aW9uIF9fKCkgeyB0aGlzLmNvbnN0cnVjdG9yID0gZDsgfQ0KICAgICAgICBkLnByb3RvdHlwZSA9IGIgPT09IG51bGwgPyBPYmplY3QuY3JlYXRlKGIpIDogKF9fLnByb3RvdHlwZSA9IGIucHJvdG90eXBlLCBuZXcgX18oKSk7DQogICAgfTsNCn0pKCk7dmFyIEFic3RyYWN0R3JlZXRlciA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uICgpIHsNCiAgICBmdW5jdGlvbiBBYnN0cmFjdEdyZWV0ZXIoKSB7DQogICAgfQ0KICAgIHJldHVybiBBYnN0cmFjdEdyZWV0ZXI7DQp9KCkpOw0KdmFyIEdyZWV0ZXIgPSAvKiogQGNsYXNzICovIChmdW5jdGlvbiAoX3N1cGVyKSB7DQogICAgX19leHRlbmRzKEdyZWV0ZXIsIF9zdXBlcik7DQogICAgZnVuY3Rpb24gR3JlZXRlcigpIHsNCiAgICAgICAgdmFyIF90aGlzID0gX3N1cGVyICE9PSBudWxsICYmIF9zdXBlci5hcHBseSh0aGlzLCBhcmd1bWVudHMpIHx8IHRoaXM7DQogICAgICAgIF90aGlzLmEgPSAxMDsNCiAgICAgICAgX3RoaXMubmFtZUEgPSAiVGVuIjsNCiAgICAgICAgcmV0dXJuIF90aGlzOw0KICAgIH0NCiAgICByZXR1cm4gR3JlZXRlcjsNCn0oQWJzdHJhY3RHcmVldGVyKSk7DQovLyMgc291cmNlTWFwcGluZ1VSTD1zb3VyY2VNYXBWYWxpZGF0aW9uQ2xhc3NXaXRoRGVmYXVsdENvbnN0cnVjdG9yQW5kRXh0ZW5kc0NsYXVzZS5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlTWFwVmFsaWRhdGlvbkNsYXNzV2l0aERlZmF1bHRDb25zdHJ1Y3RvckFuZEV4dGVuZHNDbGF1c2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzb3VyY2VNYXBWYWxpZGF0aW9uQ2xhc3NXaXRoRGVmYXVsdENvbnN0cnVjdG9yQW5kRXh0ZW5kc0NsYXVzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7S0FBQTtJQUFBO0lBQ0EsQ0FBQztJQUFELHNCQUFDO0FBQUQsQ0FBQyxBQURELElBQ0M7QUFFRDtJQUFzQiwyQkFBZTtJQUFyQztRQUFBLHFFQUdDO1FBRlUsT0FBQyxHQUFHLEVBQUUsQ0FBQztRQUNQLFdBQUssR0FBRyxLQUFLLENBQUM7O0lBQ3pCLENBQUM7SUFBRCxjQUFDO0FBQUQsQ0FBQyxBQUhELENBQXNCLGVBQWUsR0FHcEMifQ==,Y2xhc3MgQWJzdHJhY3RHcmVldGVyIHsKfQoKY2xhc3MgR3JlZXRlciBleHRlbmRzIEFic3RyYWN0R3JlZXRlciB7CiAgICBwdWJsaWMgYSA9IDEwOwogICAgcHVibGljIG5hbWVBID0gIlRlbiI7Cn0= +{"version":3,"file":"sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js","sourceRoot":"","sources":["sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;IAAA;IACA,CAAC;IAAD,sBAAC;AAAD,CAAC,AADD,IACC;AAED;IAAsB,2BAAe;IAArC;QAAA,qEAGC;QAFU,OAAC,GAAG,EAAE,CAAC;QACP,WAAK,GAAG,KAAK,CAAC;;IACzB,CAAC;IAAD,cAAC;AAAD,CAAC,AAHD,CAAsB,eAAe,GAGpC"} +//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fZXh0ZW5kcyA9ICh0aGlzICYmIHRoaXMuX19leHRlbmRzKSB8fCAoZnVuY3Rpb24gKCkgew0KICAgIHZhciBleHRlbmRTdGF0aWNzID0gZnVuY3Rpb24gKGQsIGIpIHsNCiAgICAgICAgZXh0ZW5kU3RhdGljcyA9IE9iamVjdC5zZXRQcm90b3R5cGVPZiB8fA0KICAgICAgICAgICAgKHsgX19wcm90b19fOiBbXSB9IGluc3RhbmNlb2YgQXJyYXkgJiYgZnVuY3Rpb24gKGQsIGIpIHsgZC5fX3Byb3RvX18gPSBiOyB9KSB8fA0KICAgICAgICAgICAgZnVuY3Rpb24gKGQsIGIpIHsgZm9yICh2YXIgcCBpbiBiKSBpZiAoYi5oYXNPd25Qcm9wZXJ0eShwKSkgZFtwXSA9IGJbcF07IH07DQogICAgICAgIHJldHVybiBleHRlbmRTdGF0aWNzKGQsIGIpOw0KICAgIH07DQogICAgcmV0dXJuIGZ1bmN0aW9uIChkLCBiKSB7DQogICAgICAgIGV4dGVuZFN0YXRpY3MoZCwgYik7DQogICAgICAgIGZ1bmN0aW9uIF9fKCkgeyB0aGlzLmNvbnN0cnVjdG9yID0gZDsgfQ0KICAgICAgICBkLnByb3RvdHlwZSA9IGIgPT09IG51bGwgPyBPYmplY3QuY3JlYXRlKGIpIDogKF9fLnByb3RvdHlwZSA9IGIucHJvdG90eXBlLCBuZXcgX18oKSk7DQogICAgfTsNCn0pKCk7DQp2YXIgQWJzdHJhY3RHcmVldGVyID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKCkgew0KICAgIGZ1bmN0aW9uIEFic3RyYWN0R3JlZXRlcigpIHsNCiAgICB9DQogICAgcmV0dXJuIEFic3RyYWN0R3JlZXRlcjsNCn0oKSk7DQp2YXIgR3JlZXRlciA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uIChfc3VwZXIpIHsNCiAgICBfX2V4dGVuZHMoR3JlZXRlciwgX3N1cGVyKTsNCiAgICBmdW5jdGlvbiBHcmVldGVyKCkgew0KICAgICAgICB2YXIgX3RoaXMgPSBfc3VwZXIgIT09IG51bGwgJiYgX3N1cGVyLmFwcGx5KHRoaXMsIGFyZ3VtZW50cykgfHwgdGhpczsNCiAgICAgICAgX3RoaXMuYSA9IDEwOw0KICAgICAgICBfdGhpcy5uYW1lQSA9ICJUZW4iOw0KICAgICAgICByZXR1cm4gX3RoaXM7DQogICAgfQ0KICAgIHJldHVybiBHcmVldGVyOw0KfShBYnN0cmFjdEdyZWV0ZXIpKTsNCi8vIyBzb3VyY2VNYXBwaW5nVVJMPXNvdXJjZU1hcFZhbGlkYXRpb25DbGFzc1dpdGhEZWZhdWx0Q29uc3RydWN0b3JBbmRFeHRlbmRzQ2xhdXNlLmpzLm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlTWFwVmFsaWRhdGlvbkNsYXNzV2l0aERlZmF1bHRDb25zdHJ1Y3RvckFuZEV4dGVuZHNDbGF1c2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzb3VyY2VNYXBWYWxpZGF0aW9uQ2xhc3NXaXRoRGVmYXVsdENvbnN0cnVjdG9yQW5kRXh0ZW5kc0NsYXVzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7O0FBQUE7SUFBQTtJQUNBLENBQUM7SUFBRCxzQkFBQztBQUFELENBQUMsQUFERCxJQUNDO0FBRUQ7SUFBc0IsMkJBQWU7SUFBckM7UUFBQSxxRUFHQztRQUZVLE9BQUMsR0FBRyxFQUFFLENBQUM7UUFDUCxXQUFLLEdBQUcsS0FBSyxDQUFDOztJQUN6QixDQUFDO0lBQUQsY0FBQztBQUFELENBQUMsQUFIRCxDQUFzQixlQUFlLEdBR3BDIn0=,Y2xhc3MgQWJzdHJhY3RHcmVldGVyIHsKfQoKY2xhc3MgR3JlZXRlciBleHRlbmRzIEFic3RyYWN0R3JlZXRlciB7CiAgICBwdWJsaWMgYSA9IDEwOwogICAgcHVibGljIG5hbWVBID0gIlRlbiI7Cn0= diff --git a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.sourcemap.txt b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.sourcemap.txt index a74fc122694..e986b037f28 100644 --- a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.sourcemap.txt @@ -20,17 +20,18 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts >>> function __() { this.constructor = d; } >>> d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); >>> }; ->>>})();var AbstractGreeter = /** @class */ (function () { -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>>})(); +>>>var AbstractGreeter = /** @class */ (function () { 1 > -1 >Emitted(13, 6) Source(1, 1) + SourceIndex(0) +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(14, 1) Source(1, 1) + SourceIndex(0) --- >>> function AbstractGreeter() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(14, 5) Source(1, 1) + SourceIndex(0) +1->Emitted(15, 5) Source(1, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -39,16 +40,16 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts 1->class AbstractGreeter { > 2 > } -1->Emitted(15, 5) Source(2, 1) + SourceIndex(0) -2 >Emitted(15, 6) Source(2, 2) + SourceIndex(0) +1->Emitted(16, 5) Source(2, 1) + SourceIndex(0) +2 >Emitted(16, 6) Source(2, 2) + SourceIndex(0) --- >>> return AbstractGreeter; 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(16, 5) Source(2, 1) + SourceIndex(0) -2 >Emitted(16, 27) Source(2, 2) + SourceIndex(0) +1->Emitted(17, 5) Source(2, 1) + SourceIndex(0) +2 >Emitted(17, 27) Source(2, 2) + SourceIndex(0) --- >>>}()); 1 > @@ -61,10 +62,10 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts 3 > 4 > class AbstractGreeter { > } -1 >Emitted(17, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(17, 2) Source(2, 2) + SourceIndex(0) -3 >Emitted(17, 2) Source(1, 1) + SourceIndex(0) -4 >Emitted(17, 6) Source(2, 2) + SourceIndex(0) +1 >Emitted(18, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(18, 2) Source(2, 2) + SourceIndex(0) +3 >Emitted(18, 2) Source(1, 1) + SourceIndex(0) +4 >Emitted(18, 6) Source(2, 2) + SourceIndex(0) --- >>>var Greeter = /** @class */ (function (_super) { 1-> @@ -72,21 +73,21 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts 1-> > > -1->Emitted(18, 1) Source(4, 1) + SourceIndex(0) +1->Emitted(19, 1) Source(4, 1) + SourceIndex(0) --- >>> __extends(Greeter, _super); 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->class Greeter extends 2 > AbstractGreeter -1->Emitted(19, 5) Source(4, 23) + SourceIndex(0) -2 >Emitted(19, 32) Source(4, 38) + SourceIndex(0) +1->Emitted(20, 5) Source(4, 23) + SourceIndex(0) +2 >Emitted(20, 32) Source(4, 38) + SourceIndex(0) --- >>> function Greeter() { 1 >^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(20, 5) Source(4, 1) + SourceIndex(0) +1 >Emitted(21, 5) Source(4, 1) + SourceIndex(0) --- >>> var _this = _super !== null && _super.apply(this, arguments) || this; 1->^^^^^^^^ @@ -96,8 +97,8 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts > public a = 10; > public nameA = "Ten"; > } -1->Emitted(21, 9) Source(4, 1) + SourceIndex(0) -2 >Emitted(21, 78) Source(7, 2) + SourceIndex(0) +1->Emitted(22, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(22, 78) Source(7, 2) + SourceIndex(0) --- >>> _this.a = 10; 1 >^^^^^^^^ @@ -111,11 +112,11 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts 3 > = 4 > 10 5 > ; -1 >Emitted(22, 9) Source(5, 12) + SourceIndex(0) -2 >Emitted(22, 16) Source(5, 13) + SourceIndex(0) -3 >Emitted(22, 19) Source(5, 16) + SourceIndex(0) -4 >Emitted(22, 21) Source(5, 18) + SourceIndex(0) -5 >Emitted(22, 22) Source(5, 19) + SourceIndex(0) +1 >Emitted(23, 9) Source(5, 12) + SourceIndex(0) +2 >Emitted(23, 16) Source(5, 13) + SourceIndex(0) +3 >Emitted(23, 19) Source(5, 16) + SourceIndex(0) +4 >Emitted(23, 21) Source(5, 18) + SourceIndex(0) +5 >Emitted(23, 22) Source(5, 19) + SourceIndex(0) --- >>> _this.nameA = "Ten"; 1->^^^^^^^^ @@ -129,11 +130,11 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts 3 > = 4 > "Ten" 5 > ; -1->Emitted(23, 9) Source(6, 12) + SourceIndex(0) -2 >Emitted(23, 20) Source(6, 17) + SourceIndex(0) -3 >Emitted(23, 23) Source(6, 20) + SourceIndex(0) -4 >Emitted(23, 28) Source(6, 25) + SourceIndex(0) -5 >Emitted(23, 29) Source(6, 26) + SourceIndex(0) +1->Emitted(24, 9) Source(6, 12) + SourceIndex(0) +2 >Emitted(24, 20) Source(6, 17) + SourceIndex(0) +3 >Emitted(24, 23) Source(6, 20) + SourceIndex(0) +4 >Emitted(24, 28) Source(6, 25) + SourceIndex(0) +5 >Emitted(24, 29) Source(6, 26) + SourceIndex(0) --- >>> return _this; >>> } @@ -143,8 +144,8 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts 1 > > 2 > } -1 >Emitted(25, 5) Source(7, 1) + SourceIndex(0) -2 >Emitted(25, 6) Source(7, 2) + SourceIndex(0) +1 >Emitted(26, 5) Source(7, 1) + SourceIndex(0) +2 >Emitted(26, 6) Source(7, 2) + SourceIndex(0) --- >>> return Greeter; 1->^^^^ @@ -152,8 +153,8 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts 3 > ^^^-> 1-> 2 > } -1->Emitted(26, 5) Source(7, 1) + SourceIndex(0) -2 >Emitted(26, 19) Source(7, 2) + SourceIndex(0) +1->Emitted(27, 5) Source(7, 1) + SourceIndex(0) +2 >Emitted(27, 19) Source(7, 2) + SourceIndex(0) --- >>>}(AbstractGreeter)); 1-> @@ -172,11 +173,11 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts > public a = 10; > public nameA = "Ten"; > } -1->Emitted(27, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(27, 2) Source(7, 2) + SourceIndex(0) -3 >Emitted(27, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(27, 3) Source(4, 23) + SourceIndex(0) -5 >Emitted(27, 18) Source(4, 38) + SourceIndex(0) -6 >Emitted(27, 21) Source(7, 2) + SourceIndex(0) +1->Emitted(28, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(28, 2) Source(7, 2) + SourceIndex(0) +3 >Emitted(28, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(28, 3) Source(4, 23) + SourceIndex(0) +5 >Emitted(28, 18) Source(4, 38) + SourceIndex(0) +6 >Emitted(28, 21) Source(7, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js.map \ No newline at end of file diff --git a/tests/baselines/reference/specializedOverloadWithRestParameters.js b/tests/baselines/reference/specializedOverloadWithRestParameters.js index 845680167b1..7a9634dd670 100644 --- a/tests/baselines/reference/specializedOverloadWithRestParameters.js +++ b/tests/baselines/reference/specializedOverloadWithRestParameters.js @@ -25,7 +25,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() {} Base.prototype.foo = function () { }; return Base; diff --git a/tests/baselines/reference/spreadIntersection.js b/tests/baselines/reference/spreadIntersection.js index 11d0ad248ee..06d7921f06b 100644 --- a/tests/baselines/reference/spreadIntersection.js +++ b/tests/baselines/reference/spreadIntersection.js @@ -18,7 +18,8 @@ var __assign = (this && this.__assign) || function () { return t; }; return __assign.apply(this, arguments); -};var intersection; +}; +var intersection; var o1; var o1 = __assign({}, intersection); diff --git a/tests/baselines/reference/spreadIntersectionJsx.js b/tests/baselines/reference/spreadIntersectionJsx.js index 3fe0ba85580..ec4150170b9 100644 --- a/tests/baselines/reference/spreadIntersectionJsx.js +++ b/tests/baselines/reference/spreadIntersectionJsx.js @@ -17,7 +17,8 @@ var __assign = (this && this.__assign) || function () { return t; }; return __assign.apply(this, arguments); -};var React = null; +}; +var React = null; var A = /** @class */ (function () { function A() {} return A; diff --git a/tests/baselines/reference/spreadTypeVariable.js b/tests/baselines/reference/spreadTypeVariable.js index 975dab6570a..9a00e3e7685 100644 --- a/tests/baselines/reference/spreadTypeVariable.js +++ b/tests/baselines/reference/spreadTypeVariable.js @@ -36,7 +36,8 @@ var __assign = (this && this.__assign) || function () { return t; }; return __assign.apply(this, arguments); -};function f1(arg) { +}; +function f1(arg) { return __assign({}, arg); } diff --git a/tests/baselines/reference/spreadUnion.js b/tests/baselines/reference/spreadUnion.js index df285f52286..1a09035ae3b 100644 --- a/tests/baselines/reference/spreadUnion.js +++ b/tests/baselines/reference/spreadUnion.js @@ -21,7 +21,8 @@ var __assign = (this && this.__assign) || function () { return t; }; return __assign.apply(this, arguments); -};var union; +}; +var union; var o3; var o3 = __assign({}, union); diff --git a/tests/baselines/reference/spreadUnion3.js b/tests/baselines/reference/spreadUnion3.js index e9a169a934a..b6e04b20268 100644 --- a/tests/baselines/reference/spreadUnion3.js +++ b/tests/baselines/reference/spreadUnion3.js @@ -30,7 +30,8 @@ var __assign = (this && this.__assign) || function () { return t; }; return __assign.apply(this, arguments); -};function f(x) { +}; +function f(x) { return __assign({ y: 123 }, x); // y: string | number } f(undefined); diff --git a/tests/baselines/reference/staticFactory1.js b/tests/baselines/reference/staticFactory1.js index 9ff94278494..1fa248f21dd 100644 --- a/tests/baselines/reference/staticFactory1.js +++ b/tests/baselines/reference/staticFactory1.js @@ -26,7 +26,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { } Base.prototype.foo = function () { return 1; }; diff --git a/tests/baselines/reference/staticInheritance.js b/tests/baselines/reference/staticInheritance.js index 409bbdc7749..1eb96f48cd6 100644 --- a/tests/baselines/reference/staticInheritance.js +++ b/tests/baselines/reference/staticInheritance.js @@ -24,7 +24,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();function doThing(x) { } +})(); +function doThing(x) { } var A = /** @class */ (function () { function A() { this.p = doThing(A); // OK diff --git a/tests/baselines/reference/staticMemberAccessOffDerivedType1.js b/tests/baselines/reference/staticMemberAccessOffDerivedType1.js index 068359c66db..a3dddaffb5d 100644 --- a/tests/baselines/reference/staticMemberAccessOffDerivedType1.js +++ b/tests/baselines/reference/staticMemberAccessOffDerivedType1.js @@ -22,7 +22,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var SomeBase = /** @class */ (function () { +})(); +var SomeBase = /** @class */ (function () { function SomeBase() { } SomeBase.GetNumber = function () { diff --git a/tests/baselines/reference/staticPropSuper.js b/tests/baselines/reference/staticPropSuper.js index ba91f72f773..b6be7f641c6 100644 --- a/tests/baselines/reference/staticPropSuper.js +++ b/tests/baselines/reference/staticPropSuper.js @@ -48,7 +48,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } return A; diff --git a/tests/baselines/reference/strictModeInConstructor.js b/tests/baselines/reference/strictModeInConstructor.js index 7245b0d9398..d7e877eda2f 100644 --- a/tests/baselines/reference/strictModeInConstructor.js +++ b/tests/baselines/reference/strictModeInConstructor.js @@ -73,7 +73,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } return A; diff --git a/tests/baselines/reference/strictModeReservedWord.js b/tests/baselines/reference/strictModeReservedWord.js index 789602f0730..f49a04499ee 100644 --- a/tests/baselines/reference/strictModeReservedWord.js +++ b/tests/baselines/reference/strictModeReservedWord.js @@ -40,7 +40,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var let = 10; +})(); +var let = 10; function foo() { "use strict"; diff --git a/tests/baselines/reference/subSubClassCanAccessProtectedConstructor.js b/tests/baselines/reference/subSubClassCanAccessProtectedConstructor.js index 19189380f7b..11201f069e5 100644 --- a/tests/baselines/reference/subSubClassCanAccessProtectedConstructor.js +++ b/tests/baselines/reference/subSubClassCanAccessProtectedConstructor.js @@ -29,7 +29,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { this.instance1 = new Base(); // allowed } diff --git a/tests/baselines/reference/subtypingTransitivity.js b/tests/baselines/reference/subtypingTransitivity.js index 735fc921ac3..3c49fc80f82 100644 --- a/tests/baselines/reference/subtypingTransitivity.js +++ b/tests/baselines/reference/subtypingTransitivity.js @@ -32,7 +32,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var B = /** @class */ (function () { +})(); +var B = /** @class */ (function () { function B() { } return B; diff --git a/tests/baselines/reference/subtypingWithObjectMembers.js b/tests/baselines/reference/subtypingWithObjectMembers.js index 20593fdbee7..52908a08d49 100644 --- a/tests/baselines/reference/subtypingWithObjectMembers.js +++ b/tests/baselines/reference/subtypingWithObjectMembers.js @@ -80,7 +80,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() {} return Base; }()); diff --git a/tests/baselines/reference/super.js b/tests/baselines/reference/super.js index 36a9d40e0be..b86de199ae0 100644 --- a/tests/baselines/reference/super.js +++ b/tests/baselines/reference/super.js @@ -50,7 +50,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base() { var x; } diff --git a/tests/baselines/reference/superAccess2.js b/tests/baselines/reference/superAccess2.js index a24034b66bc..4d8cf28c749 100644 --- a/tests/baselines/reference/superAccess2.js +++ b/tests/baselines/reference/superAccess2.js @@ -37,7 +37,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var P = /** @class */ (function () { +})(); +var P = /** @class */ (function () { function P() { } P.prototype.x = function () { }; diff --git a/tests/baselines/reference/superAccessCastedCall.js b/tests/baselines/reference/superAccessCastedCall.js index 053f90a4d9f..b88d51313e0 100644 --- a/tests/baselines/reference/superAccessCastedCall.js +++ b/tests/baselines/reference/superAccessCastedCall.js @@ -33,7 +33,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Foo = /** @class */ (function () { +})(); +var Foo = /** @class */ (function () { function Foo() { } Foo.prototype.bar = function () { }; diff --git a/tests/baselines/reference/superCallArgsMustMatch.js b/tests/baselines/reference/superCallArgsMustMatch.js index 89c93bac428..9f4b848f31f 100644 --- a/tests/baselines/reference/superCallArgsMustMatch.js +++ b/tests/baselines/reference/superCallArgsMustMatch.js @@ -38,7 +38,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var T5 = /** @class */ (function () { +})(); +var T5 = /** @class */ (function () { function T5(bar) { this.bar = bar; } diff --git a/tests/baselines/reference/superCallAssignResult.js b/tests/baselines/reference/superCallAssignResult.js index e87f765a4af..8c8a9813969 100644 --- a/tests/baselines/reference/superCallAssignResult.js +++ b/tests/baselines/reference/superCallAssignResult.js @@ -23,7 +23,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var E = /** @class */ (function () { +})(); +var E = /** @class */ (function () { function E(arg) {} return E; }()); diff --git a/tests/baselines/reference/superCallBeforeThisAccessing2.js b/tests/baselines/reference/superCallBeforeThisAccessing2.js index 612ee298704..36769c4a621 100644 --- a/tests/baselines/reference/superCallBeforeThisAccessing2.js +++ b/tests/baselines/reference/superCallBeforeThisAccessing2.js @@ -23,7 +23,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base(c) {} return Base; }()); diff --git a/tests/baselines/reference/superCallBeforeThisAccessing3.js b/tests/baselines/reference/superCallBeforeThisAccessing3.js index 31a2cc627fe..eb5359d98b0 100644 --- a/tests/baselines/reference/superCallBeforeThisAccessing3.js +++ b/tests/baselines/reference/superCallBeforeThisAccessing3.js @@ -26,7 +26,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base(c) {} return Base; }()); diff --git a/tests/baselines/reference/superCallBeforeThisAccessing4.js b/tests/baselines/reference/superCallBeforeThisAccessing4.js index 60beea5f1ce..703db9d917f 100644 --- a/tests/baselines/reference/superCallBeforeThisAccessing4.js +++ b/tests/baselines/reference/superCallBeforeThisAccessing4.js @@ -28,7 +28,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var D = /** @class */ (function (_super) { +})(); +var D = /** @class */ (function (_super) { __extends(D, _super); function D() { this._t; diff --git a/tests/baselines/reference/superCallBeforeThisAccessing5.js b/tests/baselines/reference/superCallBeforeThisAccessing5.js index 319703dec60..9a2ba0ff0f7 100644 --- a/tests/baselines/reference/superCallBeforeThisAccessing5.js +++ b/tests/baselines/reference/superCallBeforeThisAccessing5.js @@ -20,7 +20,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var D = /** @class */ (function (_super) { +})(); +var D = /** @class */ (function (_super) { __extends(D, _super); function D() { this._t; // No error diff --git a/tests/baselines/reference/superCallBeforeThisAccessing6.js b/tests/baselines/reference/superCallBeforeThisAccessing6.js index 47e941a3a71..30e3a06036e 100644 --- a/tests/baselines/reference/superCallBeforeThisAccessing6.js +++ b/tests/baselines/reference/superCallBeforeThisAccessing6.js @@ -23,7 +23,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base(c) {} return Base; }()); diff --git a/tests/baselines/reference/superCallBeforeThisAccessing7.js b/tests/baselines/reference/superCallBeforeThisAccessing7.js index c318c7d821d..3cd980d6796 100644 --- a/tests/baselines/reference/superCallBeforeThisAccessing7.js +++ b/tests/baselines/reference/superCallBeforeThisAccessing7.js @@ -26,7 +26,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base(c) {} return Base; }()); diff --git a/tests/baselines/reference/superCallBeforeThisAccessing8.js b/tests/baselines/reference/superCallBeforeThisAccessing8.js index 18ae30ce45c..532e3051cf7 100644 --- a/tests/baselines/reference/superCallBeforeThisAccessing8.js +++ b/tests/baselines/reference/superCallBeforeThisAccessing8.js @@ -26,7 +26,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base(c) {} return Base; }()); diff --git a/tests/baselines/reference/superCallFromClassThatDerivesFromGenericTypeButWithIncorrectNumberOfTypeArguments1.js b/tests/baselines/reference/superCallFromClassThatDerivesFromGenericTypeButWithIncorrectNumberOfTypeArguments1.js index 2dc917194a1..2457c4f01ee 100644 --- a/tests/baselines/reference/superCallFromClassThatDerivesFromGenericTypeButWithIncorrectNumberOfTypeArguments1.js +++ b/tests/baselines/reference/superCallFromClassThatDerivesFromGenericTypeButWithIncorrectNumberOfTypeArguments1.js @@ -22,7 +22,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A(map) { this.map = map; } diff --git a/tests/baselines/reference/superCallFromClassThatDerivesFromGenericTypeButWithNoTypeArguments1.js b/tests/baselines/reference/superCallFromClassThatDerivesFromGenericTypeButWithNoTypeArguments1.js index 3b448445841..016dc25a7af 100644 --- a/tests/baselines/reference/superCallFromClassThatDerivesFromGenericTypeButWithNoTypeArguments1.js +++ b/tests/baselines/reference/superCallFromClassThatDerivesFromGenericTypeButWithNoTypeArguments1.js @@ -22,7 +22,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A(map) { this.map = map; } diff --git a/tests/baselines/reference/superCallFromClassThatDerivesNonGenericTypeButWithTypeArguments1.js b/tests/baselines/reference/superCallFromClassThatDerivesNonGenericTypeButWithTypeArguments1.js index 37edffcffb0..6d4cd18013a 100644 --- a/tests/baselines/reference/superCallFromClassThatDerivesNonGenericTypeButWithTypeArguments1.js +++ b/tests/baselines/reference/superCallFromClassThatDerivesNonGenericTypeButWithTypeArguments1.js @@ -22,7 +22,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A(map) { this.map = map; } diff --git a/tests/baselines/reference/superCallInNonStaticMethod.js b/tests/baselines/reference/superCallInNonStaticMethod.js index 5f313458e85..d1126a32a61 100644 --- a/tests/baselines/reference/superCallInNonStaticMethod.js +++ b/tests/baselines/reference/superCallInNonStaticMethod.js @@ -63,7 +63,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Doing = /** @class */ (function () { +})(); +var Doing = /** @class */ (function () { function Doing() { } Doing.prototype.instanceMethod = function () { diff --git a/tests/baselines/reference/superCallInStaticMethod.js b/tests/baselines/reference/superCallInStaticMethod.js index 11cc405fd9c..0f5bdbb6035 100644 --- a/tests/baselines/reference/superCallInStaticMethod.js +++ b/tests/baselines/reference/superCallInStaticMethod.js @@ -59,7 +59,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Doing = /** @class */ (function () { +})(); +var Doing = /** @class */ (function () { function Doing() { } Doing.staticMethod = function () { diff --git a/tests/baselines/reference/superCallInsideClassDeclaration.js b/tests/baselines/reference/superCallInsideClassDeclaration.js index 5610e1e4c8c..87caacf123f 100644 --- a/tests/baselines/reference/superCallInsideClassDeclaration.js +++ b/tests/baselines/reference/superCallInsideClassDeclaration.js @@ -29,7 +29,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } return A; diff --git a/tests/baselines/reference/superCallInsideClassExpression.js b/tests/baselines/reference/superCallInsideClassExpression.js index ea089941db4..52a96213326 100644 --- a/tests/baselines/reference/superCallInsideClassExpression.js +++ b/tests/baselines/reference/superCallInsideClassExpression.js @@ -29,7 +29,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } return A; diff --git a/tests/baselines/reference/superCallInsideObjectLiteralExpression.js b/tests/baselines/reference/superCallInsideObjectLiteralExpression.js index 014a4e88cc9..12da3b03199 100644 --- a/tests/baselines/reference/superCallInsideObjectLiteralExpression.js +++ b/tests/baselines/reference/superCallInsideObjectLiteralExpression.js @@ -25,7 +25,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } A.prototype.foo = function () { diff --git a/tests/baselines/reference/superCallOutsideConstructor.js b/tests/baselines/reference/superCallOutsideConstructor.js index de589e8f975..793b94750f6 100644 --- a/tests/baselines/reference/superCallOutsideConstructor.js +++ b/tests/baselines/reference/superCallOutsideConstructor.js @@ -35,7 +35,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C() { } C.prototype.foo = function () { }; diff --git a/tests/baselines/reference/superCallParameterContextualTyping1.js b/tests/baselines/reference/superCallParameterContextualTyping1.js index 95a00d76908..78f37bc1000 100644 --- a/tests/baselines/reference/superCallParameterContextualTyping1.js +++ b/tests/baselines/reference/superCallParameterContextualTyping1.js @@ -24,7 +24,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A(map) { this.map = map; } diff --git a/tests/baselines/reference/superCallParameterContextualTyping2.js b/tests/baselines/reference/superCallParameterContextualTyping2.js index 3b0e58eccb2..6051c6398b3 100644 --- a/tests/baselines/reference/superCallParameterContextualTyping2.js +++ b/tests/baselines/reference/superCallParameterContextualTyping2.js @@ -23,7 +23,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A(map) { this.map = map; } diff --git a/tests/baselines/reference/superCallWithCommentEmit01.js b/tests/baselines/reference/superCallWithCommentEmit01.js index f8910c53086..2cb12c0ecc2 100644 --- a/tests/baselines/reference/superCallWithCommentEmit01.js +++ b/tests/baselines/reference/superCallWithCommentEmit01.js @@ -23,7 +23,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A(text) { this.text = text; } diff --git a/tests/baselines/reference/superCallWithMissingBaseClass.js b/tests/baselines/reference/superCallWithMissingBaseClass.js index bf984adb0f3..14e1b419f4d 100644 --- a/tests/baselines/reference/superCallWithMissingBaseClass.js +++ b/tests/baselines/reference/superCallWithMissingBaseClass.js @@ -22,7 +22,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Foo = /** @class */ (function (_super) { +})(); +var Foo = /** @class */ (function (_super) { __extends(Foo, _super); function Foo() { return _super !== null && _super.apply(this, arguments) || this; diff --git a/tests/baselines/reference/superCalls.js b/tests/baselines/reference/superCalls.js index aa69b3f82b1..9bbf9889980 100644 --- a/tests/baselines/reference/superCalls.js +++ b/tests/baselines/reference/superCalls.js @@ -43,7 +43,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base(n) { this.x = 43; } diff --git a/tests/baselines/reference/superCallsInConstructor.js b/tests/baselines/reference/superCallsInConstructor.js index f6051f762b5..a98fb53d5a2 100644 --- a/tests/baselines/reference/superCallsInConstructor.js +++ b/tests/baselines/reference/superCallsInConstructor.js @@ -33,7 +33,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C() { } C.prototype.foo = function () { }; diff --git a/tests/baselines/reference/superElementAccess.js b/tests/baselines/reference/superElementAccess.js index b05bebbb29a..1ed8b85de84 100644 --- a/tests/baselines/reference/superElementAccess.js +++ b/tests/baselines/reference/superElementAccess.js @@ -48,7 +48,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var MyBase = /** @class */ (function () { +})(); +var MyBase = /** @class */ (function () { function MyBase() { this.m2 = function () { }; this.d1 = 42; diff --git a/tests/baselines/reference/superErrors.js b/tests/baselines/reference/superErrors.js index 5611bfe8aff..b4046cb5343 100644 --- a/tests/baselines/reference/superErrors.js +++ b/tests/baselines/reference/superErrors.js @@ -64,7 +64,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();function foo() { +})(); +function foo() { // super in a non class context var x = _super.; var y = function () { return _super.; }; diff --git a/tests/baselines/reference/superHasMethodsFromMergedInterface.js b/tests/baselines/reference/superHasMethodsFromMergedInterface.js index cd7d26e089c..c4bda227f7b 100644 --- a/tests/baselines/reference/superHasMethodsFromMergedInterface.js +++ b/tests/baselines/reference/superHasMethodsFromMergedInterface.js @@ -21,7 +21,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C() {} C.prototype.m1 = function () { }; return C; diff --git a/tests/baselines/reference/superInCatchBlock1.js b/tests/baselines/reference/superInCatchBlock1.js index 2252f5c63c1..85395af19df 100644 --- a/tests/baselines/reference/superInCatchBlock1.js +++ b/tests/baselines/reference/superInCatchBlock1.js @@ -26,7 +26,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } A.prototype.m = function () { }; diff --git a/tests/baselines/reference/superInConstructorParam1.js b/tests/baselines/reference/superInConstructorParam1.js index da42b13bcfc..8b355ee5bf9 100644 --- a/tests/baselines/reference/superInConstructorParam1.js +++ b/tests/baselines/reference/superInConstructorParam1.js @@ -23,7 +23,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var B = /** @class */ (function () { +})(); +var B = /** @class */ (function () { function B() { } B.prototype.foo = function () { diff --git a/tests/baselines/reference/superInLambdas.js b/tests/baselines/reference/superInLambdas.js index f1786c64308..1f5b05d80f6 100644 --- a/tests/baselines/reference/superInLambdas.js +++ b/tests/baselines/reference/superInLambdas.js @@ -80,7 +80,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var User = /** @class */ (function () { +})(); +var User = /** @class */ (function () { function User() { this.name = "Bob"; } diff --git a/tests/baselines/reference/superNewCall1.js b/tests/baselines/reference/superNewCall1.js index 75b4925cc0e..6842c574142 100644 --- a/tests/baselines/reference/superNewCall1.js +++ b/tests/baselines/reference/superNewCall1.js @@ -24,7 +24,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A(map) { this.map = map; } diff --git a/tests/baselines/reference/superNoModifiersCrash.js b/tests/baselines/reference/superNoModifiersCrash.js index f4b3480f7a3..b00bd719280 100644 --- a/tests/baselines/reference/superNoModifiersCrash.js +++ b/tests/baselines/reference/superNoModifiersCrash.js @@ -24,7 +24,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Parent = /** @class */ (function () { +})(); +var Parent = /** @class */ (function () { function Parent() { } Parent.prototype.initialize = function () { diff --git a/tests/baselines/reference/superPropertyAccess.js b/tests/baselines/reference/superPropertyAccess.js index 3f8bf69206a..cc026087f3a 100644 --- a/tests/baselines/reference/superPropertyAccess.js +++ b/tests/baselines/reference/superPropertyAccess.js @@ -48,7 +48,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var MyBase = /** @class */ (function () { +})(); +var MyBase = /** @class */ (function () { function MyBase() { this.m2 = function () { }; this.d1 = 42; diff --git a/tests/baselines/reference/superPropertyAccess1.js b/tests/baselines/reference/superPropertyAccess1.js index 88aa12b7ba8..3ca32c8ec68 100644 --- a/tests/baselines/reference/superPropertyAccess1.js +++ b/tests/baselines/reference/superPropertyAccess1.js @@ -40,7 +40,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C() { } C.prototype.foo = function () { }; diff --git a/tests/baselines/reference/superPropertyAccess2.js b/tests/baselines/reference/superPropertyAccess2.js index a54500ab818..d6a9701b3aa 100644 --- a/tests/baselines/reference/superPropertyAccess2.js +++ b/tests/baselines/reference/superPropertyAccess2.js @@ -40,7 +40,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C() { } C.foo = function () { }; diff --git a/tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5.js b/tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5.js index 49468cc697f..0d20e9d9beb 100644 --- a/tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5.js +++ b/tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5.js @@ -27,7 +27,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } A.prototype.foo = function () { return 1; }; diff --git a/tests/baselines/reference/superPropertyAccessInSuperCall01.js b/tests/baselines/reference/superPropertyAccessInSuperCall01.js index 7a6c95aa889..86d3fc872bf 100644 --- a/tests/baselines/reference/superPropertyAccessInSuperCall01.js +++ b/tests/baselines/reference/superPropertyAccessInSuperCall01.js @@ -24,7 +24,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A(f) { } A.prototype.blah = function () { return ""; }; diff --git a/tests/baselines/reference/superPropertyAccess_ES5.js b/tests/baselines/reference/superPropertyAccess_ES5.js index 17ff37be728..223ca969701 100644 --- a/tests/baselines/reference/superPropertyAccess_ES5.js +++ b/tests/baselines/reference/superPropertyAccess_ES5.js @@ -41,7 +41,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var MyBase = /** @class */ (function () { +})(); +var MyBase = /** @class */ (function () { function MyBase() { } MyBase.prototype.getValue = function () { return 1; }; diff --git a/tests/baselines/reference/superPropertyElementNoUnusedLexicalThisCapture.js b/tests/baselines/reference/superPropertyElementNoUnusedLexicalThisCapture.js index 8e938435361..acfa88902f7 100644 --- a/tests/baselines/reference/superPropertyElementNoUnusedLexicalThisCapture.js +++ b/tests/baselines/reference/superPropertyElementNoUnusedLexicalThisCapture.js @@ -30,7 +30,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() {} A.prototype.x = function () { }; return A; diff --git a/tests/baselines/reference/superPropertyInConstructorBeforeSuperCall.js b/tests/baselines/reference/superPropertyInConstructorBeforeSuperCall.js index 3d68a5c4473..f55134aae1a 100644 --- a/tests/baselines/reference/superPropertyInConstructorBeforeSuperCall.js +++ b/tests/baselines/reference/superPropertyInConstructorBeforeSuperCall.js @@ -28,7 +28,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var B = /** @class */ (function () { +})(); +var B = /** @class */ (function () { function B(x) {} B.prototype.x = function () { return ""; }; return B; diff --git a/tests/baselines/reference/superSymbolIndexedAccess5.js b/tests/baselines/reference/superSymbolIndexedAccess5.js index c54a4b1de32..16e0fce7efb 100644 --- a/tests/baselines/reference/superSymbolIndexedAccess5.js +++ b/tests/baselines/reference/superSymbolIndexedAccess5.js @@ -26,7 +26,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var symbol; +})(); +var symbol; var Foo = /** @class */ (function () { function Foo() { diff --git a/tests/baselines/reference/superSymbolIndexedAccess6.js b/tests/baselines/reference/superSymbolIndexedAccess6.js index e5fe9176865..477238add94 100644 --- a/tests/baselines/reference/superSymbolIndexedAccess6.js +++ b/tests/baselines/reference/superSymbolIndexedAccess6.js @@ -26,7 +26,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var symbol; +})(); +var symbol; var Foo = /** @class */ (function () { function Foo() { diff --git a/tests/baselines/reference/superWithGenericSpecialization.js b/tests/baselines/reference/superWithGenericSpecialization.js index f4a1c2de71d..1e92d132eaa 100644 --- a/tests/baselines/reference/superWithGenericSpecialization.js +++ b/tests/baselines/reference/superWithGenericSpecialization.js @@ -27,7 +27,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C() { } return C; diff --git a/tests/baselines/reference/superWithTypeArgument.js b/tests/baselines/reference/superWithTypeArgument.js index 0f2900475e7..aa2e41751e0 100644 --- a/tests/baselines/reference/superWithTypeArgument.js +++ b/tests/baselines/reference/superWithTypeArgument.js @@ -22,7 +22,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C() { } return C; diff --git a/tests/baselines/reference/superWithTypeArgument2.js b/tests/baselines/reference/superWithTypeArgument2.js index 9268bd101f6..33d6ef13532 100644 --- a/tests/baselines/reference/superWithTypeArgument2.js +++ b/tests/baselines/reference/superWithTypeArgument2.js @@ -22,7 +22,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C() { } return C; diff --git a/tests/baselines/reference/superWithTypeArgument3.js b/tests/baselines/reference/superWithTypeArgument3.js index fbdd992c613..940dda49cb7 100644 --- a/tests/baselines/reference/superWithTypeArgument3.js +++ b/tests/baselines/reference/superWithTypeArgument3.js @@ -26,7 +26,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C() { } C.prototype.bar = function (x) { }; diff --git a/tests/baselines/reference/taggedTemplateStringsHexadecimalEscapes.js b/tests/baselines/reference/taggedTemplateStringsHexadecimalEscapes.js index 44661a441e0..049319b9f83 100644 --- a/tests/baselines/reference/taggedTemplateStringsHexadecimalEscapes.js +++ b/tests/baselines/reference/taggedTemplateStringsHexadecimalEscapes.js @@ -8,7 +8,8 @@ f `\x0D${ "Interrupted CRLF" }\x0A`; var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; -};function f() {var args = []; +}; +function f() {var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } diff --git a/tests/baselines/reference/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01.js b/tests/baselines/reference/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01.js index 0c7eaf45e12..6478f7206bb 100644 --- a/tests/baselines/reference/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01.js +++ b/tests/baselines/reference/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01.js @@ -9,7 +9,8 @@ f `0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2028 2029 0085 t v f b r var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; -};function f() {var x = []; +}; +function f() {var x = []; for (var _i = 0; _i < arguments.length; _i++) { x[_i] = arguments[_i]; } diff --git a/tests/baselines/reference/taggedTemplateStringsWithMultilineTemplate.js b/tests/baselines/reference/taggedTemplateStringsWithMultilineTemplate.js index ab50f6cc70e..cad1c2021ce 100644 --- a/tests/baselines/reference/taggedTemplateStringsWithMultilineTemplate.js +++ b/tests/baselines/reference/taggedTemplateStringsWithMultilineTemplate.js @@ -11,7 +11,8 @@ f ` var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; -};function f() {var args = []; +}; +function f() {var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } diff --git a/tests/baselines/reference/taggedTemplateStringsWithTagNamedDeclare.js b/tests/baselines/reference/taggedTemplateStringsWithTagNamedDeclare.js index b7714e2a3d7..cd9d816e710 100644 --- a/tests/baselines/reference/taggedTemplateStringsWithTagNamedDeclare.js +++ b/tests/baselines/reference/taggedTemplateStringsWithTagNamedDeclare.js @@ -8,7 +8,8 @@ declare `Hello ${0} world!`; var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; -};function declare(x) {var ys = []; +}; +function declare(x) {var ys = []; for (var _i = 1; _i < arguments.length; _i++) { ys[_i - 1] = arguments[_i]; } diff --git a/tests/baselines/reference/taggedTemplateStringsWithTagsTypedAsAny.js b/tests/baselines/reference/taggedTemplateStringsWithTagsTypedAsAny.js index cf0bf02d7d3..35a193a938a 100644 --- a/tests/baselines/reference/taggedTemplateStringsWithTagsTypedAsAny.js +++ b/tests/baselines/reference/taggedTemplateStringsWithTagsTypedAsAny.js @@ -29,7 +29,8 @@ f.thisIsNotATag(`abc${1}def${2}ghi`); var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; -};var f; +}; +var f; f(__makeTemplateObject(["abc"], ["abc"])); diff --git a/tests/baselines/reference/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression.js b/tests/baselines/reference/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression.js index 38be2ddec7b..609eb1afd89 100644 --- a/tests/baselines/reference/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression.js +++ b/tests/baselines/reference/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression.js @@ -8,7 +8,8 @@ foo `${function (x: number) { x = "bad"; } }`; var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; -};function foo() {var rest = []; +}; +function foo() {var rest = []; for (var _i = 0; _i < arguments.length; _i++) { rest[_i] = arguments[_i]; } diff --git a/tests/baselines/reference/taggedTemplateStringsWithUnicodeEscapes.js b/tests/baselines/reference/taggedTemplateStringsWithUnicodeEscapes.js index 6acbcd71a14..dfdb5db092d 100644 --- a/tests/baselines/reference/taggedTemplateStringsWithUnicodeEscapes.js +++ b/tests/baselines/reference/taggedTemplateStringsWithUnicodeEscapes.js @@ -8,7 +8,8 @@ f `'\u{1f4a9}'${ " should be converted to " }'\uD83D\uDCA9'`; var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; -};function f() {var args = []; +}; +function f() {var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } diff --git a/tests/baselines/reference/taggedTemplateStringsWithWhitespaceEscapes.js b/tests/baselines/reference/taggedTemplateStringsWithWhitespaceEscapes.js index 683072dbb1d..438b905d588 100644 --- a/tests/baselines/reference/taggedTemplateStringsWithWhitespaceEscapes.js +++ b/tests/baselines/reference/taggedTemplateStringsWithWhitespaceEscapes.js @@ -8,7 +8,8 @@ f `\t\n\v\f\r\\`; var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; -};function f() {var args = []; +}; +function f() {var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } diff --git a/tests/baselines/reference/taggedTemplateUntypedTagCall01.js b/tests/baselines/reference/taggedTemplateUntypedTagCall01.js index 00393558414..1fd5168cda1 100644 --- a/tests/baselines/reference/taggedTemplateUntypedTagCall01.js +++ b/tests/baselines/reference/taggedTemplateUntypedTagCall01.js @@ -6,5 +6,6 @@ tag `Hello world!`; var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; -};var tag; +}; +var tag; tag(__makeTemplateObject(["Hello world!"], ["Hello world!"])); diff --git a/tests/baselines/reference/taggedTemplateWithConstructableTag01.js b/tests/baselines/reference/taggedTemplateWithConstructableTag01.js index 998fdf42f5e..915bfd7f5c0 100644 --- a/tests/baselines/reference/taggedTemplateWithConstructableTag01.js +++ b/tests/baselines/reference/taggedTemplateWithConstructableTag01.js @@ -7,7 +7,8 @@ CtorTag `Hello world!`; var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; -};var CtorTag = /** @class */ (function () { +}; +var CtorTag = /** @class */ (function () { function CtorTag() {} return CtorTag; }()); diff --git a/tests/baselines/reference/targetTypeBaseCalls.js b/tests/baselines/reference/targetTypeBaseCalls.js index 15511d3ea3a..c1bb68c438f 100644 --- a/tests/baselines/reference/targetTypeBaseCalls.js +++ b/tests/baselines/reference/targetTypeBaseCalls.js @@ -31,7 +31,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();function foo(x) { } +})(); +function foo(x) { } diff --git a/tests/baselines/reference/templateStringInObjectLiteral.js b/tests/baselines/reference/templateStringInObjectLiteral.js index 5b140a6a264..88176532bb8 100644 --- a/tests/baselines/reference/templateStringInObjectLiteral.js +++ b/tests/baselines/reference/templateStringInObjectLiteral.js @@ -8,6 +8,7 @@ var x = { var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; -};var x = { +}; +var x = { a: "abc" + 123 + "def" }(__makeTemplateObject(["b"], ["b"]));321; diff --git a/tests/baselines/reference/templateStringInPropertyName1.js b/tests/baselines/reference/templateStringInPropertyName1.js index 95321af2b5c..55b92e47359 100644 --- a/tests/baselines/reference/templateStringInPropertyName1.js +++ b/tests/baselines/reference/templateStringInPropertyName1.js @@ -7,4 +7,5 @@ var x = { var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; -};var x = {}(__makeTemplateObject(["a"], ["a"]));321; +}; +var x = {}(__makeTemplateObject(["a"], ["a"]));321; diff --git a/tests/baselines/reference/templateStringInPropertyName2.js b/tests/baselines/reference/templateStringInPropertyName2.js index 15f860322dc..5c7847b7cfa 100644 --- a/tests/baselines/reference/templateStringInPropertyName2.js +++ b/tests/baselines/reference/templateStringInPropertyName2.js @@ -7,4 +7,5 @@ var x = { var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; -};var x = {}(__makeTemplateObject(["abc", "def", "ghi"], ["abc", "def", "ghi"]), 123, 456);321; +}; +var x = {}(__makeTemplateObject(["abc", "def", "ghi"], ["abc", "def", "ghi"]), 123, 456);321; diff --git a/tests/baselines/reference/templateStringInTaggedTemplate.js b/tests/baselines/reference/templateStringInTaggedTemplate.js index f8ad325957c..29b85bf71ea 100644 --- a/tests/baselines/reference/templateStringInTaggedTemplate.js +++ b/tests/baselines/reference/templateStringInTaggedTemplate.js @@ -5,4 +5,5 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; -};("I AM THE " + "TAG" + " " + " PORTION")(__makeTemplateObject(["I ", " THE TEMPLATE PORTION"], ["I ", " THE TEMPLATE PORTION"]), "AM"); +}; +("I AM THE " + "TAG" + " " + " PORTION")(__makeTemplateObject(["I ", " THE TEMPLATE PORTION"], ["I ", " THE TEMPLATE PORTION"]), "AM"); diff --git a/tests/baselines/reference/templateStringWithEmbeddedYieldKeyword.js b/tests/baselines/reference/templateStringWithEmbeddedYieldKeyword.js index 472d2c7e950..53eb1b5af22 100644 --- a/tests/baselines/reference/templateStringWithEmbeddedYieldKeyword.js +++ b/tests/baselines/reference/templateStringWithEmbeddedYieldKeyword.js @@ -32,7 +32,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) { } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } -};function gen() { +}; +function gen() { var x, _a; return __generator(this, function (_b) { switch (_b.label) { diff --git a/tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode.js b/tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode.js index fecac19f4ee..66e9dda5535 100644 --- a/tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode.js +++ b/tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode.js @@ -13,7 +13,8 @@ f `abcdef${ 1234 }${ 5678 }ghijkl`; var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; -};var TemplateStringsArray = /** @class */ (function () { +}; +var TemplateStringsArray = /** @class */ (function () { function TemplateStringsArray() { } return TemplateStringsArray; diff --git a/tests/baselines/reference/templateStringsArrayTypeNotDefinedES5Mode.js b/tests/baselines/reference/templateStringsArrayTypeNotDefinedES5Mode.js index 2ed99981ff1..5fc1d37613e 100644 --- a/tests/baselines/reference/templateStringsArrayTypeNotDefinedES5Mode.js +++ b/tests/baselines/reference/templateStringsArrayTypeNotDefinedES5Mode.js @@ -10,7 +10,8 @@ f `abcdef${ 1234 }${ 5678 }ghijkl`; var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; -};function f(x, y, z) { +}; +function f(x, y, z) { } f({}, 10, 10); diff --git a/tests/baselines/reference/thisInSuperCall.js b/tests/baselines/reference/thisInSuperCall.js index 3abb58ee1f5..4b171ea2fe5 100644 --- a/tests/baselines/reference/thisInSuperCall.js +++ b/tests/baselines/reference/thisInSuperCall.js @@ -35,7 +35,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base(x) {} return Base; }()); diff --git a/tests/baselines/reference/thisInSuperCall1.js b/tests/baselines/reference/thisInSuperCall1.js index fb236bf5748..7de5aff8f6c 100644 --- a/tests/baselines/reference/thisInSuperCall1.js +++ b/tests/baselines/reference/thisInSuperCall1.js @@ -23,7 +23,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base(a) {} return Base; }()); diff --git a/tests/baselines/reference/thisInSuperCall2.js b/tests/baselines/reference/thisInSuperCall2.js index d09d08416bc..121ae4e92f6 100644 --- a/tests/baselines/reference/thisInSuperCall2.js +++ b/tests/baselines/reference/thisInSuperCall2.js @@ -32,7 +32,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base(a) {} return Base; }()); diff --git a/tests/baselines/reference/thisInSuperCall3.js b/tests/baselines/reference/thisInSuperCall3.js index 839dda5825c..a2dd5e10ee6 100644 --- a/tests/baselines/reference/thisInSuperCall3.js +++ b/tests/baselines/reference/thisInSuperCall3.js @@ -25,7 +25,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base(a) {} return Base; }()); diff --git a/tests/baselines/reference/thisTypeInFunctionsNegative.js b/tests/baselines/reference/thisTypeInFunctionsNegative.js index 3c080c3c4b6..79645853f93 100644 --- a/tests/baselines/reference/thisTypeInFunctionsNegative.js +++ b/tests/baselines/reference/thisTypeInFunctionsNegative.js @@ -188,7 +188,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); -};class C { +}; +class C { explicitThis(m) { return this.n + m; } diff --git a/tests/baselines/reference/trailingCommasInBindingPatterns.js b/tests/baselines/reference/trailingCommasInBindingPatterns.js index 04ba6a232fa..dd365c00017 100644 --- a/tests/baselines/reference/trailingCommasInBindingPatterns.js +++ b/tests/baselines/reference/trailingCommasInBindingPatterns.js @@ -24,7 +24,8 @@ var __rest = (this && this.__rest) || function (s, e) { t[p[i]] = s[p[i]]; } return t; -};var a = [].slice(0); +}; +var a = [].slice(0); var b = __rest({}, []); var c, d; (c = [].slice(0)); diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-diagnostics-and-emit-for-decorators.js b/tests/baselines/reference/tscWatch/programUpdates/updates-diagnostics-and-emit-for-decorators.js index 012376e9bb6..c00becd1342 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-diagnostics-and-emit-for-decorators.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-diagnostics-and-emit-for-decorators.js @@ -35,7 +35,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; -};import './b'; +}; +import './b'; let A = /** @class */ (() => { let A = class A { constructor(p) { } diff --git a/tests/baselines/reference/typeGuardFunction.js b/tests/baselines/reference/typeGuardFunction.js index 2f3e0c65f74..5f15c36cc28 100644 --- a/tests/baselines/reference/typeGuardFunction.js +++ b/tests/baselines/reference/typeGuardFunction.js @@ -95,7 +95,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } return A; diff --git a/tests/baselines/reference/typeGuardFunctionErrors.js b/tests/baselines/reference/typeGuardFunctionErrors.js index c2a257e8be1..18c7b088ae4 100644 --- a/tests/baselines/reference/typeGuardFunctionErrors.js +++ b/tests/baselines/reference/typeGuardFunctionErrors.js @@ -180,7 +180,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } return A; diff --git a/tests/baselines/reference/typeGuardFunctionGenerics.js b/tests/baselines/reference/typeGuardFunctionGenerics.js index 4d887357b3a..95c6f590553 100644 --- a/tests/baselines/reference/typeGuardFunctionGenerics.js +++ b/tests/baselines/reference/typeGuardFunctionGenerics.js @@ -45,7 +45,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var A = /** @class */ (function () { +})(); +var A = /** @class */ (function () { function A() { } return A; diff --git a/tests/baselines/reference/typeGuardFunctionOfFormThis.js b/tests/baselines/reference/typeGuardFunctionOfFormThis.js index a4325f49af0..15f91e2b7e9 100644 --- a/tests/baselines/reference/typeGuardFunctionOfFormThis.js +++ b/tests/baselines/reference/typeGuardFunctionOfFormThis.js @@ -154,7 +154,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var RoyalGuard = /** @class */ (function () { +})(); +var RoyalGuard = /** @class */ (function () { function RoyalGuard() { } RoyalGuard.prototype.isLeader = function () { diff --git a/tests/baselines/reference/typeGuardFunctionOfFormThisErrors.js b/tests/baselines/reference/typeGuardFunctionOfFormThisErrors.js index 98c0768fa30..c5f51994f36 100644 --- a/tests/baselines/reference/typeGuardFunctionOfFormThisErrors.js +++ b/tests/baselines/reference/typeGuardFunctionOfFormThisErrors.js @@ -72,7 +72,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var RoyalGuard = /** @class */ (function () { +})(); +var RoyalGuard = /** @class */ (function () { function RoyalGuard() { } RoyalGuard.prototype.isLeader = function () { diff --git a/tests/baselines/reference/typeGuardOfFormIsType.js b/tests/baselines/reference/typeGuardOfFormIsType.js index 0a0cdd8b796..b40e6ebbb3b 100644 --- a/tests/baselines/reference/typeGuardOfFormIsType.js +++ b/tests/baselines/reference/typeGuardOfFormIsType.js @@ -49,7 +49,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C1 = /** @class */ (function () { +})(); +var C1 = /** @class */ (function () { function C1() { } return C1; diff --git a/tests/baselines/reference/typeMatch2.js b/tests/baselines/reference/typeMatch2.js index 8b0089794ac..6b0938e7658 100644 --- a/tests/baselines/reference/typeMatch2.js +++ b/tests/baselines/reference/typeMatch2.js @@ -57,7 +57,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();function f1() { +})(); +function f1() { var a = { x: 1, y: 2 }; a = {}; // error a = { x: 1 }; // error diff --git a/tests/baselines/reference/typeOfSuperCall.js b/tests/baselines/reference/typeOfSuperCall.js index 76d513148ae..88be3876544 100644 --- a/tests/baselines/reference/typeOfSuperCall.js +++ b/tests/baselines/reference/typeOfSuperCall.js @@ -21,7 +21,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C() { } return C; diff --git a/tests/baselines/reference/typeParameterAsBaseClass.js b/tests/baselines/reference/typeParameterAsBaseClass.js index b95c863b51b..b8b5e21fe96 100644 --- a/tests/baselines/reference/typeParameterAsBaseClass.js +++ b/tests/baselines/reference/typeParameterAsBaseClass.js @@ -15,7 +15,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function (_super) { +})(); +var C = /** @class */ (function (_super) { __extends(C, _super); function C() { return _super !== null && _super.apply(this, arguments) || this; diff --git a/tests/baselines/reference/typeParameterExtendingUnion1.js b/tests/baselines/reference/typeParameterExtendingUnion1.js index 11652af2f40..dcc3e8ff6bc 100644 --- a/tests/baselines/reference/typeParameterExtendingUnion1.js +++ b/tests/baselines/reference/typeParameterExtendingUnion1.js @@ -25,7 +25,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Animal = /** @class */ (function () { +})(); +var Animal = /** @class */ (function () { function Animal() {} Animal.prototype.run = function () { }; return Animal; diff --git a/tests/baselines/reference/typeParameterExtendingUnion2.js b/tests/baselines/reference/typeParameterExtendingUnion2.js index 4eb411c5354..944b7d6bb93 100644 --- a/tests/baselines/reference/typeParameterExtendingUnion2.js +++ b/tests/baselines/reference/typeParameterExtendingUnion2.js @@ -25,7 +25,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Animal = /** @class */ (function () { +})(); +var Animal = /** @class */ (function () { function Animal() {} Animal.prototype.run = function () { }; return Animal; diff --git a/tests/baselines/reference/typeRelationships.js b/tests/baselines/reference/typeRelationships.js index 8875b4e7a51..27ba221a281 100644 --- a/tests/baselines/reference/typeRelationships.js +++ b/tests/baselines/reference/typeRelationships.js @@ -53,7 +53,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C() { this.self = this; this.c = new C(); diff --git a/tests/baselines/reference/typeofClass2.js b/tests/baselines/reference/typeofClass2.js index 69a0ee1f849..b3541331d5d 100644 --- a/tests/baselines/reference/typeofClass2.js +++ b/tests/baselines/reference/typeofClass2.js @@ -34,7 +34,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C(x) {} diff --git a/tests/baselines/reference/unionTypesAssignability.js b/tests/baselines/reference/unionTypesAssignability.js index 629e7c58e84..f84f609cc02 100644 --- a/tests/baselines/reference/unionTypesAssignability.js +++ b/tests/baselines/reference/unionTypesAssignability.js @@ -86,7 +86,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var unionNumberString; +})(); +var unionNumberString; var C = /** @class */ (function () { function C() {} return C; diff --git a/tests/baselines/reference/unknownSymbols1.js b/tests/baselines/reference/unknownSymbols1.js index 4a4212b0d0d..23f6b071867 100644 --- a/tests/baselines/reference/unknownSymbols1.js +++ b/tests/baselines/reference/unknownSymbols1.js @@ -45,7 +45,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var x = asdf; +})(); +var x = asdf; var y; function foo(x, y) { } diff --git a/tests/baselines/reference/unusedIdentifiersConsolidated1.js b/tests/baselines/reference/unusedIdentifiersConsolidated1.js index 2e6b1c6f7f9..4e3384a0b08 100644 --- a/tests/baselines/reference/unusedIdentifiersConsolidated1.js +++ b/tests/baselines/reference/unusedIdentifiersConsolidated1.js @@ -114,7 +114,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();function greeter(person) { +})(); +function greeter(person) { var unused = 20; } diff --git a/tests/baselines/reference/useBeforeDeclaration_superClass.js b/tests/baselines/reference/useBeforeDeclaration_superClass.js index a1850d64aaa..01492e31d89 100644 --- a/tests/baselines/reference/useBeforeDeclaration_superClass.js +++ b/tests/baselines/reference/useBeforeDeclaration_superClass.js @@ -41,7 +41,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var C = /** @class */ (function () { +})(); +var C = /** @class */ (function () { function C() { this.x = 0; } diff --git a/tests/baselines/reference/validUseOfThisInSuper.js b/tests/baselines/reference/validUseOfThisInSuper.js index 96f623b2c03..d35b84f3df1 100644 --- a/tests/baselines/reference/validUseOfThisInSuper.js +++ b/tests/baselines/reference/validUseOfThisInSuper.js @@ -22,7 +22,8 @@ var __extends = (this && this.__extends) || (function () { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -})();var Base = /** @class */ (function () { +})(); +var Base = /** @class */ (function () { function Base(b) { this.b = b; }