2015-09-24 23:48:58 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
/////*a*/
|
|
|
|
////var a = 10;
|
|
|
|
////
|
|
|
|
/////*b*/
|
|
|
|
////let b = "";
|
|
|
|
////
|
|
|
|
/////*c*/
|
|
|
|
////const c = 30;
|
|
|
|
////
|
|
|
|
/////*d*/
|
2015-09-26 01:27:58 +02:00
|
|
|
////let d = {
|
|
|
|
//// foo: 10,
|
|
|
|
//// bar: "20"
|
2015-09-24 23:48:58 +02:00
|
|
|
////};
|
|
|
|
////
|
|
|
|
/////*e*/
|
2015-09-26 01:27:58 +02:00
|
|
|
////let e = function e(x, y, z) {
|
|
|
|
//// return +(x + y + z);
|
|
|
|
////};
|
|
|
|
////
|
|
|
|
/////*f*/
|
|
|
|
////let f = class F {
|
2015-09-24 23:48:58 +02:00
|
|
|
//// constructor(a, b, c) {
|
|
|
|
//// this.a = a;
|
|
|
|
//// this.b = b || (this.c = c);
|
|
|
|
//// }
|
|
|
|
////}
|
|
|
|
|
2017-09-07 16:21:47 +02:00
|
|
|
for (const varName of ["a", "b", "c", "d"]) {
|
2017-11-02 17:55:56 +01:00
|
|
|
verify.docCommentTemplateAt(varName, /*newTextOffset*/ 3,
|
|
|
|
"/** */");
|
2015-09-24 23:48:58 +02:00
|
|
|
}
|
2015-09-26 01:27:58 +02:00
|
|
|
|
2017-09-07 16:21:47 +02:00
|
|
|
verify.docCommentTemplateAt("e", /*newTextOffset*/ 8,
|
|
|
|
`/**
|
2015-09-26 01:27:58 +02:00
|
|
|
*
|
|
|
|
* @param x
|
|
|
|
* @param y
|
|
|
|
* @param z
|
|
|
|
*/`);
|
|
|
|
|
2017-09-07 16:21:47 +02:00
|
|
|
verify.docCommentTemplateAt("f", /*newTextOffset*/ 8,
|
|
|
|
`/**
|
2015-09-26 01:27:58 +02:00
|
|
|
*
|
|
|
|
* @param a
|
|
|
|
* @param b
|
|
|
|
* @param c
|
|
|
|
*/`);
|