Test cases for trailing comments for class and constructor

This commit is contained in:
Sheetal Nandi 2014-08-15 13:49:05 -07:00
parent f1df7589ff
commit a9092c331d
2 changed files with 12 additions and 12 deletions

View File

@ -2,21 +2,21 @@
/** This is class c2 without constuctor*/
class c2 {
}
} // trailing comment1
var i2 = new c2();
var i2_c = c2;
class c3 {
/** Constructor comment*/
constructor() {
}
}
} // trailing comment of constructor
} /* trailing comment 2 */
var i3 = new c3();
var i3_c = c3;
/** Class comment*/
class c4 {
/** Constructor comment*/
constructor() {
}
} /* trailing comment of constructor 2*/
}
var i4 = new c4();
var i4_c = c4;
@ -71,22 +71,22 @@ var c2 = (function () {
function c2() {
}
return c2;
})();
})(); // trailing comment1
var i2 = new c2();
var i2_c = c2;
var c3 = (function () {
/** Constructor comment*/
function c3() {
}
} // trailing comment of constructor
return c3;
})();
})(); /* trailing comment 2 */
var i3 = new c3();
var i3_c = c3;
/** Class comment*/
var c4 = (function () {
/** Constructor comment*/
function c4() {
}
} /* trailing comment of constructor 2*/
return c4;
})();
var i4 = new c4();

View File

@ -4,21 +4,21 @@
/** This is class c2 without constuctor*/
class c2 {
}
} // trailing comment1
var i2 = new c2();
var i2_c = c2;
class c3 {
/** Constructor comment*/
constructor() {
}
}
} // trailing comment of constructor
} /* trailing comment 2 */
var i3 = new c3();
var i3_c = c3;
/** Class comment*/
class c4 {
/** Constructor comment*/
constructor() {
}
} /* trailing comment of constructor 2*/
}
var i4 = new c4();
var i4_c = c4;