Test cases for trailing comments of accessors

This commit is contained in:
Sheetal Nandi 2014-08-15 13:33:24 -07:00
parent 48c3abd445
commit f2620a4c3d
2 changed files with 14 additions and 12 deletions

View file

@ -11,11 +11,11 @@ class c1 {
/** getter property*/
public get p3() {
return this.p2(this.p1);
}
}// trailing comment Getter
/** setter property*/
public set p3(/** this is value*/value: number) {
this.p1 = this.p2(value);
}
}// trailing comment Setter
/** pp1 is property of c1*/
private pp1: number;
/** sum with property*/
@ -42,11 +42,11 @@ class c1 {
/** static getter property*/
static get s3() {
return c1.s2(c1.s1);
}
} /*trailing comment 1 getter*/
/** setter property*/
static set s3( /** this is value*/value: number) {
c1.s1 = c1.s2(value);
}
}/*trailing comment 2 */ /*setter*/
public nc_p1: number;
public nc_p2(b: number) {
return this.nc_p1 + b;
@ -229,11 +229,13 @@ var c1 = (function () {
/** getter property*/
get: function () {
return this.p2(this.p1);
},
} // trailing comment Getter
,
/** setter property*/
set: function (value) {
this.p1 = this.p2(value);
},
} // trailing comment Setter
,
enumerable: true,
configurable: true
});
@ -261,11 +263,11 @@ var c1 = (function () {
/** static getter property*/
get: function () {
return c1.s2(c1.s1);
},
} /*trailing comment 1 getter*/ ,
/** setter property*/
set: function (value) {
c1.s1 = c1.s2(value);
},
} /*trailing comment 2 */ /*setter*/ ,
enumerable: true,
configurable: true
});

View file

@ -13,11 +13,11 @@ class c1 {
/** getter property*/
public get p3() {
return this.p2(this.p1);
}
}// trailing comment Getter
/** setter property*/
public set p3(/** this is value*/value: number) {
this.p1 = this.p2(value);
}
}// trailing comment Setter
/** pp1 is property of c1*/
private pp1: number;
/** sum with property*/
@ -44,11 +44,11 @@ class c1 {
/** static getter property*/
static get s3() {
return c1.s2(c1.s1);
}
} /*trailing comment 1 getter*/
/** setter property*/
static set s3( /** this is value*/value: number) {
c1.s1 = c1.s2(value);
}
}/*trailing comment 2 */ /*setter*/
public nc_p1: number;
public nc_p2(b: number) {
return this.nc_p1 + b;