TypeScript/tests/baselines/reference/commentsClass.js

181 lines
3.2 KiB
JavaScript

//// [commentsClass.ts]
/** This is class c2 without constuctor*/
class c2 {
}
var i2 = new c2();
var i2_c = c2;
class c3 {
/** Constructor comment*/
constructor() {
}
}
var i3 = new c3();
var i3_c = c3;
/** Class comment*/
class c4 {
/** Constructor comment*/
constructor() {
}
}
var i4 = new c4();
var i4_c = c4;
/** Class with statics*/
class c5 {
static s1: number;
}
var i5 = new c5();
var i5_c = c5;
/// class with statics and constructor
class c6 { /// class with statics and constructor2
/// s1 comment
static s1: number; /// s1 comment2
/// constructor comment
constructor() { /// constructor comment2
}
}
var i6 = new c6();
var i6_c = c6;
// class with statics and constructor
class c7 {
// s1 comment
static s1: number;
// constructor comment
constructor() {
}
}
var i7 = new c7();
var i7_c = c7;
/** class with statics and constructor
*/
class c8 {
/** s1 comment */
static s1: number; /** s1 comment2 */
/** constructor comment
*/
constructor() {
/** constructor comment2
*/
}
}
var i8 = new c8();
var i8_c = c8;
//// [commentsClass.js]
/** This is class c2 without constuctor*/
var c2 = (function () {
function c2() {
}
return c2;
})();
var i2 = new c2();
var i2_c = c2;
var c3 = (function () {
/** Constructor comment*/
function c3() {
}
return c3;
})();
var i3 = new c3();
var i3_c = c3;
/** Class comment*/
var c4 = (function () {
/** Constructor comment*/
function c4() {
}
return c4;
})();
var i4 = new c4();
var i4_c = c4;
/** Class with statics*/
var c5 = (function () {
function c5() {
}
return c5;
})();
var i5 = new c5();
var i5_c = c5;
/// class with statics and constructor
var c6 = (function () {
/// constructor comment
function c6() {
}
return c6;
})();
var i6 = new c6();
var i6_c = c6;
// class with statics and constructor
var c7 = (function () {
// constructor comment
function c7() {
}
return c7;
})();
var i7 = new c7();
var i7_c = c7;
/** class with statics and constructor
*/
var c8 = (function () {
/** constructor comment
*/
function c8() {
}
return c8;
})();
var i8 = new c8();
var i8_c = c8;
//// [commentsClass.d.ts]
/** This is class c2 without constuctor*/
declare class c2 {
}
declare var i2: c2;
declare var i2_c: typeof c2;
declare class c3 {
/** Constructor comment*/
constructor();
}
declare var i3: c3;
declare var i3_c: typeof c3;
/** Class comment*/
declare class c4 {
/** Constructor comment*/
constructor();
}
declare var i4: c4;
declare var i4_c: typeof c4;
/** Class with statics*/
declare class c5 {
static s1: number;
}
declare var i5: c5;
declare var i5_c: typeof c5;
declare class c6 {
static s1: number;
constructor();
}
declare var i6: c6;
declare var i6_c: typeof c6;
declare class c7 {
static s1: number;
constructor();
}
declare var i7: c7;
declare var i7_c: typeof c7;
/** class with statics and constructor
*/
declare class c8 {
/** s1 comment */
static s1: number;
/** constructor comment
*/
constructor();
}
declare var i8: c8;
declare var i8_c: typeof c8;