Skip to content

Commit f93f78d

Browse files
committed
Adjust baselines after rebase
1 parent 828a1cd commit f93f78d

File tree

115 files changed

+139
-9825
lines changed

Some content is hidden

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

115 files changed

+139
-9825
lines changed

tests/baselines/reference/amdDependencyComment2.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface.js

Lines changed: 0 additions & 50 deletions
This file was deleted.

tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2.js

Lines changed: 0 additions & 52 deletions
This file was deleted.

tests/baselines/reference/commentsClass.js

Lines changed: 8 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22

33
/** This is class c2 without constuctor*/
44
class c2 {
5-
} // trailing comment1
5+
}
66
var i2 = new c2();
77
var i2_c = c2;
88
class c3 {
99
/** Constructor comment*/
1010
constructor() {
11-
} // trailing comment of constructor
12-
} /* trailing comment 2 */
11+
}
12+
}
1313
var i3 = new c3();
1414
var i3_c = c3;
1515
/** Class comment*/
1616
class c4 {
1717
/** Constructor comment*/
1818
constructor() {
19-
} /* trailing comment of constructor 2*/
19+
}
2020
}
2121
var i4 = new c4();
2222
var i4_c = c4;
@@ -63,14 +63,6 @@ class c8 {
6363
}
6464
var i8 = new c8();
6565
var i8_c = c8;
66-
67-
class c9 {
68-
constructor() {
69-
/// This is some detached comment
70-
71-
// should emit this leading comment of } too
72-
}
73-
}
7466

7567

7668
//// [commentsClass.js]
@@ -79,22 +71,22 @@ var c2 = (function () {
7971
function c2() {
8072
}
8173
return c2;
82-
})(); // trailing comment1
74+
})();
8375
var i2 = new c2();
8476
var i2_c = c2;
8577
var c3 = (function () {
8678
/** Constructor comment*/
8779
function c3() {
88-
} // trailing comment of constructor
80+
}
8981
return c3;
90-
})(); /* trailing comment 2 */
82+
})();
9183
var i3 = new c3();
9284
var i3_c = c3;
9385
/** Class comment*/
9486
var c4 = (function () {
9587
/** Constructor comment*/
9688
function c4() {
97-
} /* trailing comment of constructor 2*/
89+
}
9890
return c4;
9991
})();
10092
var i4 = new c4();
@@ -138,13 +130,6 @@ var c8 = (function () {
138130
})();
139131
var i8 = new c8();
140132
var i8_c = c8;
141-
var c9 = (function () {
142-
function c9() {
143-
/// This is some detached comment
144-
// should emit this leading comment of } too
145-
}
146-
return c9;
147-
})();
148133

149134

150135
//// [commentsClass.d.ts]
@@ -195,6 +180,3 @@ declare class c8 {
195180
}
196181
declare var i8: c8;
197182
declare var i8_c: typeof c8;
198-
declare class c9 {
199-
constructor();
200-
}

tests/baselines/reference/commentsClass.types

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
/** This is class c2 without constuctor*/
44
class c2 {
55
>c2 : c2
6-
7-
} // trailing comment1
6+
}
87
var i2 = new c2();
98
>i2 : c2
109
>new c2() : c2
@@ -19,8 +18,8 @@ class c3 {
1918

2019
/** Constructor comment*/
2120
constructor() {
22-
} // trailing comment of constructor
23-
} /* trailing comment 2 */
21+
}
22+
}
2423
var i3 = new c3();
2524
>i3 : c3
2625
>new c3() : c3
@@ -36,7 +35,7 @@ class c4 {
3635

3736
/** Constructor comment*/
3837
constructor() {
39-
} /* trailing comment of constructor 2*/
38+
}
4039
}
4140
var i4 = new c4();
4241
>i4 : c4
@@ -130,13 +129,3 @@ var i8_c = c8;
130129
>i8_c : typeof c8
131130
>c8 : typeof c8
132131

133-
class c9 {
134-
>c9 : c9
135-
136-
constructor() {
137-
/// This is some detached comment
138-
139-
// should emit this leading comment of } too
140-
}
141-
}
142-

tests/baselines/reference/commentsClassMembers.js

Lines changed: 16 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@ class c1 {
77
/** sum with property*/
88
public p2(/** number to add*/b: number) {
99
return this.p1 + b;
10-
} /* trailing comment of method*/
10+
}
1111
/** getter property*/
1212
public get p3() {
1313
return this.p2(this.p1);
14-
}// trailing comment Getter
14+
}
1515
/** setter property*/
1616
public set p3(/** this is value*/value: number) {
1717
this.p1 = this.p2(value);
18-
}// trailing comment Setter
18+
}
1919
/** pp1 is property of c1*/
2020
private pp1: number;
2121
/** sum with property*/
2222
private pp2(/** number to add*/b: number) {
2323
return this.p1 + b;
24-
} // trailing comment of method
24+
}
2525
/** getter property*/
2626
private get pp3() {
2727
return this.pp2(this.pp1);
@@ -42,11 +42,11 @@ class c1 {
4242
/** static getter property*/
4343
static get s3() {
4444
return c1.s2(c1.s1);
45-
} /*trailing comment 1 getter*/
45+
}
4646
/** setter property*/
4747
static set s3( /** this is value*/value: number) {
4848
c1.s1 = c1.s2(value);
49-
}/*trailing comment 2 */ /*setter*/
49+
}
5050
public nc_p1: number;
5151
public nc_p2(b: number) {
5252
return this.nc_p1 + b;
@@ -198,7 +198,7 @@ class cProperties {
198198
/** getter only property*/
199199
public get p1() {
200200
return this.val;
201-
} // trailing comment of only getter
201+
}
202202
public get nc_p1() {
203203
return this.val;
204204
}
@@ -208,10 +208,7 @@ class cProperties {
208208
}
209209
public set nc_p2(value: number) {
210210
this.val = value;
211-
} /* trailing comment of setter only*/
212-
213-
public x = 10; /*trailing comment for property*/
214-
private y = 10; // trailing comment of // style
211+
}
215212
}
216213
var cProperties_i = new cProperties();
217214
cProperties_i.p2 = cProperties_i.p1;
@@ -227,25 +224,23 @@ var c1 = (function () {
227224
/** sum with property*/
228225
c1.prototype.p2 = function (/** number to add*/ b) {
229226
return this.p1 + b;
230-
}; /* trailing comment of method*/
227+
};
231228
Object.defineProperty(c1.prototype, "p3", {
232229
/** getter property*/
233230
get: function () {
234231
return this.p2(this.p1);
235-
} // trailing comment Getter
236-
,
232+
},
237233
/** setter property*/
238234
set: function (/** this is value*/ value) {
239235
this.p1 = this.p2(value);
240-
} // trailing comment Setter
241-
,
236+
},
242237
enumerable: true,
243238
configurable: true
244239
});
245240
/** sum with property*/
246241
c1.prototype.pp2 = function (/** number to add*/ b) {
247242
return this.p1 + b;
248-
}; // trailing comment of method
243+
};
249244
Object.defineProperty(c1.prototype, "pp3", {
250245
/** getter property*/
251246
get: function () {
@@ -266,11 +261,11 @@ var c1 = (function () {
266261
/** static getter property*/
267262
get: function () {
268263
return c1.s2(c1.s1);
269-
} /*trailing comment 1 getter*/,
264+
},
270265
/** setter property*/
271266
set: function (/** this is value*/ value) {
272267
c1.s1 = c1.s2(value);
273-
} /*trailing comment 2 */ /*setter*/,
268+
},
274269
enumerable: true,
275270
configurable: true
276271
});
@@ -438,15 +433,12 @@ c1.nc_s3 = i1_s_ncprop;
438433
var i1_c = c1;
439434
var cProperties = (function () {
440435
function cProperties() {
441-
this.x = 10; /*trailing comment for property*/
442-
this.y = 10; // trailing comment of // style
443436
}
444437
Object.defineProperty(cProperties.prototype, "p1", {
445438
/** getter only property*/
446439
get: function () {
447440
return this.val;
448-
} // trailing comment of only getter
449-
,
441+
},
450442
enumerable: true,
451443
configurable: true
452444
});
@@ -468,7 +460,7 @@ var cProperties = (function () {
468460
Object.defineProperty(cProperties.prototype, "nc_p2", {
469461
set: function (value) {
470462
this.val = value;
471-
} /* trailing comment of setter only*/,
463+
},
472464
enumerable: true,
473465
configurable: true
474466
});
@@ -573,7 +565,5 @@ declare class cProperties {
573565
/**setter only property*/
574566
p2: number;
575567
nc_p2: number;
576-
x: number;
577-
private y;
578568
}
579569
declare var cProperties_i: cProperties;

0 commit comments

Comments
 (0)