Skip to content

Commit 6770702

Browse files
Accept baseline changes for default target ESNext change
Co-authored-by: DanielRosenwasser <[email protected]>
1 parent bd4ead1 commit 6770702

File tree

1,324 files changed

+13637
-20747
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,324 files changed

+13637
-20747
lines changed

tests/baselines/reference/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@ var p = new A.Point(0, 0); // unexpected error here, bug 840000
2525
//// [classPoint.js]
2626
var A;
2727
(function (A) {
28-
var Point = /** @class */ (function () {
29-
function Point(x, y) {
28+
class Point {
29+
x;
30+
y;
31+
constructor(x, y) {
3032
this.x = x;
3133
this.y = y;
3234
}
33-
return Point;
34-
}());
35+
}
3536
A.Point = Point;
3637
})(A || (A = {}));
3738
//// [test.js]

tests/baselines/reference/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.js

Lines changed: 23 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -53,44 +53,37 @@ module clodule4 {
5353

5454
//// [ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.js]
5555
// all expected to be errors
56-
var clodule1 = /** @class */ (function () {
57-
function clodule1() {
58-
}
59-
return clodule1;
60-
}());
56+
class clodule1 {
57+
id;
58+
value;
59+
}
6160
(function (clodule1) {
6261
function f(x) { }
6362
})(clodule1 || (clodule1 = {}));
64-
var clodule2 = /** @class */ (function () {
65-
function clodule2() {
66-
}
67-
return clodule2;
68-
}());
63+
class clodule2 {
64+
id;
65+
value;
66+
}
6967
(function (clodule2) {
7068
var x;
71-
var D = /** @class */ (function () {
72-
function D() {
73-
}
74-
return D;
75-
}());
76-
})(clodule2 || (clodule2 = {}));
77-
var clodule3 = /** @class */ (function () {
78-
function clodule3() {
69+
class D {
70+
id;
71+
value;
7972
}
80-
return clodule3;
81-
}());
73+
})(clodule2 || (clodule2 = {}));
74+
class clodule3 {
75+
id;
76+
value;
77+
}
8278
(function (clodule3) {
8379
clodule3.y = { id: T };
8480
})(clodule3 || (clodule3 = {}));
85-
var clodule4 = /** @class */ (function () {
86-
function clodule4() {
87-
}
88-
return clodule4;
89-
}());
81+
class clodule4 {
82+
id;
83+
value;
84+
}
9085
(function (clodule4) {
91-
var D = /** @class */ (function () {
92-
function D() {
93-
}
94-
return D;
95-
}());
86+
class D {
87+
name;
88+
}
9689
})(clodule4 || (clodule4 = {}));

tests/baselines/reference/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@ module clodule {
1818

1919

2020
//// [ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName.js]
21-
var clodule = /** @class */ (function () {
22-
function clodule() {
23-
}
24-
clodule.fn = function (id) { };
25-
return clodule;
26-
}());
21+
class clodule {
22+
id;
23+
value;
24+
static fn(id) { }
25+
}
2726
(function (clodule) {
2827
// error: duplicate identifier expected
2928
function fn(x, y) {

tests/baselines/reference/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@ module clodule {
1818

1919

2020
//// [ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.js]
21-
var clodule = /** @class */ (function () {
22-
function clodule() {
23-
}
24-
clodule.fn = function (id) { };
25-
return clodule;
26-
}());
21+
class clodule {
22+
id;
23+
value;
24+
static fn(id) { }
25+
}
2726
(function (clodule) {
2827
// error: duplicate identifier expected
2928
function fn(x, y) {

tests/baselines/reference/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@ module clodule {
1818

1919

2020
//// [ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.js]
21-
var clodule = /** @class */ (function () {
22-
function clodule() {
23-
}
24-
clodule.sfn = function (id) { return 42; };
25-
return clodule;
26-
}());
21+
class clodule {
22+
id;
23+
value;
24+
static sfn(id) { return 42; }
25+
}
2726
(function (clodule) {
2827
// error: duplicate identifier expected
2928
function fn(x, y) {

tests/baselines/reference/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName.js

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,28 +25,30 @@ module A {
2525
}
2626

2727
//// [ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName.js]
28-
var Point = /** @class */ (function () {
29-
function Point(x, y) {
28+
class Point {
29+
x;
30+
y;
31+
constructor(x, y) {
3032
this.x = x;
3133
this.y = y;
3234
}
33-
Point.Origin = function () { return { x: 0, y: 0 }; }; // unexpected error here bug 840246
34-
return Point;
35-
}());
35+
static Origin() { return { x: 0, y: 0 }; } // unexpected error here bug 840246
36+
}
3637
(function (Point) {
3738
function Origin() { return null; } //expected duplicate identifier error
3839
Point.Origin = Origin;
3940
})(Point || (Point = {}));
4041
var A;
4142
(function (A) {
42-
var Point = /** @class */ (function () {
43-
function Point(x, y) {
43+
class Point {
44+
x;
45+
y;
46+
constructor(x, y) {
4447
this.x = x;
4548
this.y = y;
4649
}
47-
Point.Origin = function () { return { x: 0, y: 0 }; }; // unexpected error here bug 840246
48-
return Point;
49-
}());
50+
static Origin() { return { x: 0, y: 0 }; } // unexpected error here bug 840246
51+
}
5052
A.Point = Point;
5153
(function (Point) {
5254
function Origin() { return ""; } //expected duplicate identifier error

tests/baselines/reference/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.js

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,27 +25,29 @@ module A {
2525
}
2626

2727
//// [ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.js]
28-
var Point = /** @class */ (function () {
29-
function Point(x, y) {
28+
class Point {
29+
x;
30+
y;
31+
constructor(x, y) {
3032
this.x = x;
3133
this.y = y;
3234
}
33-
Point.Origin = function () { return { x: 0, y: 0 }; };
34-
return Point;
35-
}());
35+
static Origin() { return { x: 0, y: 0 }; }
36+
}
3637
(function (Point) {
3738
function Origin() { return ""; } // not an error, since not exported
3839
})(Point || (Point = {}));
3940
var A;
4041
(function (A) {
41-
var Point = /** @class */ (function () {
42-
function Point(x, y) {
42+
class Point {
43+
x;
44+
y;
45+
constructor(x, y) {
4346
this.x = x;
4447
this.y = y;
4548
}
46-
Point.Origin = function () { return { x: 0, y: 0 }; };
47-
return Point;
48-
}());
49+
static Origin() { return { x: 0, y: 0 }; }
50+
}
4951
A.Point = Point;
5052
(function (Point) {
5153
function Origin() { return ""; } // not an error since not exported

tests/baselines/reference/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.js

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,27 +25,29 @@ module A {
2525
}
2626

2727
//// [ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.js]
28-
var Point = /** @class */ (function () {
29-
function Point(x, y) {
28+
class Point {
29+
x;
30+
y;
31+
constructor(x, y) {
3032
this.x = x;
3133
this.y = y;
3234
}
33-
Point.Origin = { x: 0, y: 0 };
34-
return Point;
35-
}());
35+
static Origin = { x: 0, y: 0 };
36+
}
3637
(function (Point) {
3738
Point.Origin = ""; //expected duplicate identifier error
3839
})(Point || (Point = {}));
3940
var A;
4041
(function (A) {
41-
var Point = /** @class */ (function () {
42-
function Point(x, y) {
42+
class Point {
43+
x;
44+
y;
45+
constructor(x, y) {
4346
this.x = x;
4447
this.y = y;
4548
}
46-
Point.Origin = { x: 0, y: 0 };
47-
return Point;
48-
}());
49+
static Origin = { x: 0, y: 0 };
50+
}
4951
A.Point = Point;
5052
(function (Point) {
5153
Point.Origin = ""; //expected duplicate identifier error

tests/baselines/reference/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.js

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,27 +25,29 @@ module A {
2525
}
2626

2727
//// [ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.js]
28-
var Point = /** @class */ (function () {
29-
function Point(x, y) {
28+
class Point {
29+
x;
30+
y;
31+
constructor(x, y) {
3032
this.x = x;
3133
this.y = y;
3234
}
33-
Point.Origin = { x: 0, y: 0 };
34-
return Point;
35-
}());
35+
static Origin = { x: 0, y: 0 };
36+
}
3637
(function (Point) {
3738
var Origin = ""; // not an error, since not exported
3839
})(Point || (Point = {}));
3940
var A;
4041
(function (A) {
41-
var Point = /** @class */ (function () {
42-
function Point(x, y) {
42+
class Point {
43+
x;
44+
y;
45+
constructor(x, y) {
4346
this.x = x;
4447
this.y = y;
4548
}
46-
Point.Origin = { x: 0, y: 0 };
47-
return Point;
48-
}());
49+
static Origin = { x: 0, y: 0 };
50+
}
4951
A.Point = Point;
5052
(function (Point) {
5153
var Origin = ""; // not an error since not exported

tests/baselines/reference/ClassAndModuleWithSameNameAndCommonRoot.js

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,14 @@ var X;
4545
(function (X) {
4646
var Y;
4747
(function (Y) {
48-
var Point = /** @class */ (function () {
49-
function Point(x, y) {
48+
class Point {
49+
constructor(x, y) {
5050
this.x = x;
5151
this.y = y;
5252
}
53-
return Point;
54-
}());
53+
x;
54+
y;
55+
}
5556
Y.Point = Point;
5657
})(Y = X.Y || (X.Y = {}));
5758
})(X || (X = {}));
@@ -60,7 +61,7 @@ var X;
6061
(function (X) {
6162
var Y;
6263
(function (Y) {
63-
var Point;
64+
let Point;
6465
(function (Point) {
6566
Point.Origin = new Point(0, 0);
6667
})(Point = Y.Point || (Y.Point = {}));
@@ -71,11 +72,9 @@ var X;
7172
var cl = new X.Y.Point(1, 1);
7273
var cl = X.Y.Point.Origin; // error not expected here same as bug 83996 ?
7374
//// [simple.js]
74-
var A = /** @class */ (function () {
75-
function A() {
76-
}
77-
return A;
78-
}());
75+
class A {
76+
id;
77+
}
7978
(function (A) {
8079
A.Instance = new A();
8180
})(A || (A = {}));

0 commit comments

Comments
 (0)