From 6296165456d8223baeb968b5b9943ad2ca9d7782 Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Mon, 14 Aug 2017 10:11:49 -0700 Subject: [PATCH] Accept missing baseline updates for #13721 --- .../reference/errorForUsingPropertyOfTypeAsType01.js | 2 +- .../baselines/reference/exportDefaultClassInNamespace.js | 4 ++-- .../baselines/reference/expressionTypeNodeShouldError.js | 6 +++--- .../reference/importCallExpressionAsyncES3AMD.js | 4 ++-- .../reference/importCallExpressionAsyncES3CJS.js | 4 ++-- .../reference/importCallExpressionAsyncES3System.js | 4 ++-- .../reference/importCallExpressionAsyncES3UMD.js | 4 ++-- .../reference/importCallExpressionAsyncES5AMD.js | 4 ++-- .../reference/importCallExpressionAsyncES5CJS.js | 4 ++-- .../reference/importCallExpressionAsyncES5System.js | 4 ++-- .../reference/importCallExpressionAsyncES5UMD.js | 4 ++-- tests/baselines/reference/importCallExpressionES5AMD.js | 4 ++-- tests/baselines/reference/importCallExpressionES5CJS.js | 4 ++-- .../baselines/reference/importCallExpressionES5System.js | 4 ++-- tests/baselines/reference/importCallExpressionES5UMD.js | 4 ++-- tests/baselines/reference/jsdocTypeTagCast.js | 6 +++--- tests/baselines/reference/mappedTypePartialConstraints.js | 4 ++-- tests/baselines/reference/mergedDeclarationExports.js | 2 +- tests/baselines/reference/mixingApparentTypeOverrides.js | 8 ++++---- tests/baselines/reference/noUnusedLocals_selfReference.js | 6 +++--- tests/baselines/reference/promiseDefinitionTest.js | 2 +- .../signatureInstantiationWithRecursiveConstraints.js | 4 ++-- 22 files changed, 46 insertions(+), 46 deletions(-) diff --git a/tests/baselines/reference/errorForUsingPropertyOfTypeAsType01.js b/tests/baselines/reference/errorForUsingPropertyOfTypeAsType01.js index 26903a97989da..78e65bca40007 100644 --- a/tests/baselines/reference/errorForUsingPropertyOfTypeAsType01.js +++ b/tests/baselines/reference/errorForUsingPropertyOfTypeAsType01.js @@ -52,7 +52,7 @@ var Test1; })(Test1 || (Test1 = {})); var Test2; (function (Test2) { - var Foo = (function () { + var Foo = /** @class */ (function () { function Foo() { } return Foo; diff --git a/tests/baselines/reference/exportDefaultClassInNamespace.js b/tests/baselines/reference/exportDefaultClassInNamespace.js index 641e5ed61a513..47ecf64a303df 100644 --- a/tests/baselines/reference/exportDefaultClassInNamespace.js +++ b/tests/baselines/reference/exportDefaultClassInNamespace.js @@ -11,7 +11,7 @@ namespace ns_abstract_class { //// [exportDefaultClassInNamespace.js] var ns_class; (function (ns_class) { - var default_1 = (function () { + var default_1 = /** @class */ (function () { function default_1() { } return default_1; @@ -20,7 +20,7 @@ var ns_class; })(ns_class || (ns_class = {})); var ns_abstract_class; (function (ns_abstract_class) { - var default_2 = (function () { + var default_2 = /** @class */ (function () { function default_2() { } return default_2; diff --git a/tests/baselines/reference/expressionTypeNodeShouldError.js b/tests/baselines/reference/expressionTypeNodeShouldError.js index 80f9f82145af1..73850a6a6c6ba 100644 --- a/tests/baselines/reference/expressionTypeNodeShouldError.js +++ b/tests/baselines/reference/expressionTypeNodeShouldError.js @@ -48,7 +48,7 @@ type ItemType3 = true.typeof(nodes.item(0)); //// [string.js] -var C = (function () { +var C = /** @class */ (function () { function C() { } C.prototype.foo = function () { @@ -60,7 +60,7 @@ var C = (function () { var nodes = document.getElementsByTagName("li"); typeof (nodes.item(0)); //// [number.js] -var C2 = (function () { +var C2 = /** @class */ (function () { function C2() { } C2.prototype.foo = function () { @@ -72,7 +72,7 @@ var C2 = (function () { var nodes2 = document.getElementsByTagName("li"); typeof (nodes.item(0)); //// [boolean.js] -var C3 = (function () { +var C3 = /** @class */ (function () { function C3() { } C3.prototype.foo = function () { diff --git a/tests/baselines/reference/importCallExpressionAsyncES3AMD.js b/tests/baselines/reference/importCallExpressionAsyncES3AMD.js index f0246f4ce5e86..90465c0e6e483 100644 --- a/tests/baselines/reference/importCallExpressionAsyncES3AMD.js +++ b/tests/baselines/reference/importCallExpressionAsyncES3AMD.js @@ -83,7 +83,7 @@ define(["require", "exports"], function (require, exports) { }); } exports.fn = fn; - var cl1 = (function () { + var cl1 = /** @class */ (function () { function cl1() { } cl1.prototype.m = function () { @@ -117,7 +117,7 @@ define(["require", "exports"], function (require, exports) { }); }); } }; - var cl2 = (function () { + var cl2 = /** @class */ (function () { function cl2() { var _this = this; this.p = { diff --git a/tests/baselines/reference/importCallExpressionAsyncES3CJS.js b/tests/baselines/reference/importCallExpressionAsyncES3CJS.js index 6b4006e05be0a..8c3c0d1da6fc4 100644 --- a/tests/baselines/reference/importCallExpressionAsyncES3CJS.js +++ b/tests/baselines/reference/importCallExpressionAsyncES3CJS.js @@ -82,7 +82,7 @@ function fn() { }); } exports.fn = fn; -var cl1 = (function () { +var cl1 = /** @class */ (function () { function cl1() { } cl1.prototype.m = function () { @@ -116,7 +116,7 @@ exports.obj = { }); }); } }; -var cl2 = (function () { +var cl2 = /** @class */ (function () { function cl2() { var _this = this; this.p = { diff --git a/tests/baselines/reference/importCallExpressionAsyncES3System.js b/tests/baselines/reference/importCallExpressionAsyncES3System.js index 542ce1080396f..c55d8788c982e 100644 --- a/tests/baselines/reference/importCallExpressionAsyncES3System.js +++ b/tests/baselines/reference/importCallExpressionAsyncES3System.js @@ -87,7 +87,7 @@ System.register([], function (exports_1, context_1) { return { setters: [], execute: function () { - cl1 = (function () { + cl1 = /** @class */ (function () { function cl1() { } cl1.prototype.m = function () { @@ -121,7 +121,7 @@ System.register([], function (exports_1, context_1) { }); }); } }); - cl2 = (function () { + cl2 = /** @class */ (function () { function cl2() { var _this = this; this.p = { diff --git a/tests/baselines/reference/importCallExpressionAsyncES3UMD.js b/tests/baselines/reference/importCallExpressionAsyncES3UMD.js index 4404cad5937a2..fce2af411e035 100644 --- a/tests/baselines/reference/importCallExpressionAsyncES3UMD.js +++ b/tests/baselines/reference/importCallExpressionAsyncES3UMD.js @@ -92,7 +92,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) { }); } exports.fn = fn; - var cl1 = (function () { + var cl1 = /** @class */ (function () { function cl1() { } cl1.prototype.m = function () { @@ -126,7 +126,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) { }); }); } }; - var cl2 = (function () { + var cl2 = /** @class */ (function () { function cl2() { var _this = this; this.p = { diff --git a/tests/baselines/reference/importCallExpressionAsyncES5AMD.js b/tests/baselines/reference/importCallExpressionAsyncES5AMD.js index 8e7b2005e787b..3bad6ffa1f551 100644 --- a/tests/baselines/reference/importCallExpressionAsyncES5AMD.js +++ b/tests/baselines/reference/importCallExpressionAsyncES5AMD.js @@ -83,7 +83,7 @@ define(["require", "exports"], function (require, exports) { }); } exports.fn = fn; - var cl1 = (function () { + var cl1 = /** @class */ (function () { function cl1() { } cl1.prototype.m = function () { @@ -117,7 +117,7 @@ define(["require", "exports"], function (require, exports) { }); }); } }; - var cl2 = (function () { + var cl2 = /** @class */ (function () { function cl2() { var _this = this; this.p = { diff --git a/tests/baselines/reference/importCallExpressionAsyncES5CJS.js b/tests/baselines/reference/importCallExpressionAsyncES5CJS.js index 2e04783fa89d6..87499670f3a27 100644 --- a/tests/baselines/reference/importCallExpressionAsyncES5CJS.js +++ b/tests/baselines/reference/importCallExpressionAsyncES5CJS.js @@ -82,7 +82,7 @@ function fn() { }); } exports.fn = fn; -var cl1 = (function () { +var cl1 = /** @class */ (function () { function cl1() { } cl1.prototype.m = function () { @@ -116,7 +116,7 @@ exports.obj = { }); }); } }; -var cl2 = (function () { +var cl2 = /** @class */ (function () { function cl2() { var _this = this; this.p = { diff --git a/tests/baselines/reference/importCallExpressionAsyncES5System.js b/tests/baselines/reference/importCallExpressionAsyncES5System.js index b7d89d158b178..b9fad57455000 100644 --- a/tests/baselines/reference/importCallExpressionAsyncES5System.js +++ b/tests/baselines/reference/importCallExpressionAsyncES5System.js @@ -87,7 +87,7 @@ System.register([], function (exports_1, context_1) { return { setters: [], execute: function () { - cl1 = (function () { + cl1 = /** @class */ (function () { function cl1() { } cl1.prototype.m = function () { @@ -121,7 +121,7 @@ System.register([], function (exports_1, context_1) { }); }); } }); - cl2 = (function () { + cl2 = /** @class */ (function () { function cl2() { var _this = this; this.p = { diff --git a/tests/baselines/reference/importCallExpressionAsyncES5UMD.js b/tests/baselines/reference/importCallExpressionAsyncES5UMD.js index 102d78cfa0592..a3b3e74db6bb4 100644 --- a/tests/baselines/reference/importCallExpressionAsyncES5UMD.js +++ b/tests/baselines/reference/importCallExpressionAsyncES5UMD.js @@ -92,7 +92,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) { }); } exports.fn = fn; - var cl1 = (function () { + var cl1 = /** @class */ (function () { function cl1() { } cl1.prototype.m = function () { @@ -126,7 +126,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) { }); }); } }; - var cl2 = (function () { + var cl2 = /** @class */ (function () { function cl2() { var _this = this; this.p = { diff --git a/tests/baselines/reference/importCallExpressionES5AMD.js b/tests/baselines/reference/importCallExpressionES5AMD.js index 8fa22d81dc9ae..eec2f378ac095 100644 --- a/tests/baselines/reference/importCallExpressionES5AMD.js +++ b/tests/baselines/reference/importCallExpressionES5AMD.js @@ -48,7 +48,7 @@ define(["require", "exports"], function (require, exports) { function foo() { var p2 = new Promise(function (resolve_4, reject_4) { require(["./0"], resolve_4, reject_4); }); } - var C = (function () { + var C = /** @class */ (function () { function C() { } C.prototype.method = function () { @@ -56,7 +56,7 @@ define(["require", "exports"], function (require, exports) { }; return C; }()); - var D = (function () { + var D = /** @class */ (function () { function D() { } D.prototype.method = function () { diff --git a/tests/baselines/reference/importCallExpressionES5CJS.js b/tests/baselines/reference/importCallExpressionES5CJS.js index 2cf5d3157e21b..521044a10ceb7 100644 --- a/tests/baselines/reference/importCallExpressionES5CJS.js +++ b/tests/baselines/reference/importCallExpressionES5CJS.js @@ -45,7 +45,7 @@ exports.p2 = Promise.resolve().then(function () { return require("./0"); }); function foo() { var p2 = Promise.resolve().then(function () { return require("./0"); }); } -var C = (function () { +var C = /** @class */ (function () { function C() { } C.prototype.method = function () { @@ -53,7 +53,7 @@ var C = (function () { }; return C; }()); -var D = (function () { +var D = /** @class */ (function () { function D() { } D.prototype.method = function () { diff --git a/tests/baselines/reference/importCallExpressionES5System.js b/tests/baselines/reference/importCallExpressionES5System.js index 3dabfce80c9ab..def99752bb1b1 100644 --- a/tests/baselines/reference/importCallExpressionES5System.js +++ b/tests/baselines/reference/importCallExpressionES5System.js @@ -57,7 +57,7 @@ System.register([], function (exports_1, context_1) { return zero.foo(); }); exports_1("p2", p2 = context_1.import("./0")); - C = (function () { + C = /** @class */ (function () { function C() { } C.prototype.method = function () { @@ -65,7 +65,7 @@ System.register([], function (exports_1, context_1) { }; return C; }()); - D = (function () { + D = /** @class */ (function () { function D() { } D.prototype.method = function () { diff --git a/tests/baselines/reference/importCallExpressionES5UMD.js b/tests/baselines/reference/importCallExpressionES5UMD.js index 5727744aa7129..0ca61909ddc0c 100644 --- a/tests/baselines/reference/importCallExpressionES5UMD.js +++ b/tests/baselines/reference/importCallExpressionES5UMD.js @@ -65,7 +65,7 @@ export class D { function foo() { var p2 = __syncRequire ? Promise.resolve().then(function () { return require("./0"); }) : new Promise(function (resolve_4, reject_4) { require(["./0"], resolve_4, reject_4); }); } - var C = (function () { + var C = /** @class */ (function () { function C() { } C.prototype.method = function () { @@ -73,7 +73,7 @@ export class D { }; return C; }()); - var D = (function () { + var D = /** @class */ (function () { function D() { } D.prototype.method = function () { diff --git a/tests/baselines/reference/jsdocTypeTagCast.js b/tests/baselines/reference/jsdocTypeTagCast.js index efada5ee4dc88..65e46c97757c9 100644 --- a/tests/baselines/reference/jsdocTypeTagCast.js +++ b/tests/baselines/reference/jsdocTypeTagCast.js @@ -98,13 +98,13 @@ var a; var s; var a = ("" + 4); var s = "" + /** @type {*} */ (4); -var SomeBase = (function () { +var SomeBase = /** @class */ (function () { function SomeBase() { this.p = 42; } return SomeBase; }()); -var SomeDerived = (function (_super) { +var SomeDerived = /** @class */ (function (_super) { __extends(SomeDerived, _super); function SomeDerived() { var _this = _super.call(this) || this; @@ -113,7 +113,7 @@ var SomeDerived = (function (_super) { } return SomeDerived; }(SomeBase)); -var SomeOther = (function () { +var SomeOther = /** @class */ (function () { function SomeOther() { this.q = 42; } diff --git a/tests/baselines/reference/mappedTypePartialConstraints.js b/tests/baselines/reference/mappedTypePartialConstraints.js index 1c83e2506dd0c..505a4eff9cbe0 100644 --- a/tests/baselines/reference/mappedTypePartialConstraints.js +++ b/tests/baselines/reference/mappedTypePartialConstraints.js @@ -28,13 +28,13 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); -var MyClass = (function () { +var MyClass = /** @class */ (function () { function MyClass() { } MyClass.prototype.doIt = function (data) { }; return MyClass; }()); -var MySubClass = (function (_super) { +var MySubClass = /** @class */ (function (_super) { __extends(MySubClass, _super); function MySubClass() { return _super !== null && _super.apply(this, arguments) || this; diff --git a/tests/baselines/reference/mergedDeclarationExports.js b/tests/baselines/reference/mergedDeclarationExports.js index 068f7b683c349..aefdc6728c520 100644 --- a/tests/baselines/reference/mergedDeclarationExports.js +++ b/tests/baselines/reference/mergedDeclarationExports.js @@ -28,7 +28,7 @@ export namespace N {} exports.__esModule = true; exports.b = 1; exports.t = 0; -var d = (function () { +var d = /** @class */ (function () { function d() { } return d; diff --git a/tests/baselines/reference/mixingApparentTypeOverrides.js b/tests/baselines/reference/mixingApparentTypeOverrides.js index 20db894abb8d1..160a2ba3f0b1b 100644 --- a/tests/baselines/reference/mixingApparentTypeOverrides.js +++ b/tests/baselines/reference/mixingApparentTypeOverrides.js @@ -40,7 +40,7 @@ var __extends = (this && this.__extends) || (function () { }; })(); function Tagged(Base) { - return (function (_super) { + return /** @class */ (function (_super) { __extends(class_1, _super); function class_1() { var args = []; @@ -54,7 +54,7 @@ function Tagged(Base) { return class_1; }(Base)); } -var A = (function () { +var A = /** @class */ (function () { function A() { } A.prototype.toString = function () { @@ -62,7 +62,7 @@ var A = (function () { }; return A; }()); -var B = (function (_super) { +var B = /** @class */ (function (_super) { __extends(B, _super); function B() { return _super !== null && _super.apply(this, arguments) || this; @@ -72,7 +72,7 @@ var B = (function (_super) { }; return B; }(Tagged(A))); -var C = (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/noUnusedLocals_selfReference.js b/tests/baselines/reference/noUnusedLocals_selfReference.js index 74a39923d574f..5f206fbc3dc46 100644 --- a/tests/baselines/reference/noUnusedLocals_selfReference.js +++ b/tests/baselines/reference/noUnusedLocals_selfReference.js @@ -20,7 +20,7 @@ P; "use strict"; exports.__esModule = true; function f() { f; } -var C = (function () { +var C = /** @class */ (function () { function C() { } C.prototype.m = function () { C; }; @@ -33,14 +33,14 @@ var E; })(E || (E = {})); // Does not detect mutual recursion. function g() { D; } -var D = (function () { +var D = /** @class */ (function () { function D() { } D.prototype.m = function () { g; }; return D; }()); // Does not work on private methods. -var P = (function () { +var P = /** @class */ (function () { function P() { } P.prototype.m = function () { this.m; }; diff --git a/tests/baselines/reference/promiseDefinitionTest.js b/tests/baselines/reference/promiseDefinitionTest.js index 317e15c99caeb..892e3c6487efe 100644 --- a/tests/baselines/reference/promiseDefinitionTest.js +++ b/tests/baselines/reference/promiseDefinitionTest.js @@ -40,7 +40,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) { if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; -var Promise = (function () { +var Promise = /** @class */ (function () { function Promise() { } return Promise; diff --git a/tests/baselines/reference/signatureInstantiationWithRecursiveConstraints.js b/tests/baselines/reference/signatureInstantiationWithRecursiveConstraints.js index 0be7fa1444d00..358376ce76cdc 100644 --- a/tests/baselines/reference/signatureInstantiationWithRecursiveConstraints.js +++ b/tests/baselines/reference/signatureInstantiationWithRecursiveConstraints.js @@ -15,13 +15,13 @@ const myVar: Foo = new Bar(); //// [signatureInstantiationWithRecursiveConstraints.js] "use strict"; // Repro from #17148 -var Foo = (function () { +var Foo = /** @class */ (function () { function Foo() { } Foo.prototype.myFunc = function (arg) { }; return Foo; }()); -var Bar = (function () { +var Bar = /** @class */ (function () { function Bar() { } Bar.prototype.myFunc = function (arg) { };