2014-07-13 01:04:16 +02:00
|
|
|
//// [commentsVarDecl.ts]
|
|
|
|
|
|
|
|
/** Variable comments*/
|
2014-08-15 21:44:31 +02:00
|
|
|
var myVariable = 10; // This trailing Comment1
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
/** This is another variable comment*/
|
|
|
|
var anotherVariable = 30;
|
|
|
|
|
|
|
|
// shouldn't appear
|
|
|
|
var aVar = "";
|
|
|
|
|
|
|
|
/** this is multiline comment
|
|
|
|
* All these variables are of number type */
|
2014-08-15 21:44:31 +02:00
|
|
|
var anotherAnotherVariable = 70; /* these are multiple trailing comments */ /* multiple trailing comments */
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
/** Triple slash multiline comment*/
|
|
|
|
/** another line in the comment*/
|
|
|
|
/** comment line 2*/
|
2014-08-15 21:44:31 +02:00
|
|
|
var x = 70; /* multiline trailing comment
|
|
|
|
this is multiline trailing comment */
|
2014-07-13 01:04:16 +02:00
|
|
|
/** Triple slash comment on the assignement shouldnt be in .d.ts file*/
|
|
|
|
x = myVariable;
|
|
|
|
|
|
|
|
/** triple slash comment1*/
|
|
|
|
/** jsdocstyle comment - only this comment should be in .d.ts file*/
|
|
|
|
var n = 30;
|
|
|
|
|
|
|
|
/** var deckaration with comment on type as well*/
|
|
|
|
var y = /** value comment */ 20;
|
|
|
|
|
|
|
|
/// var deckaration with comment on type as well
|
|
|
|
var yy =
|
|
|
|
/// value comment
|
|
|
|
20;
|
|
|
|
|
|
|
|
/** comment2 */
|
|
|
|
var z = /** lambda comment */ (x: number, y: number) => x + y;
|
|
|
|
|
|
|
|
var z2: /** type comment*/ (x: number) => string;
|
|
|
|
|
|
|
|
var x2 = z2;
|
|
|
|
|
|
|
|
var n4: (x: number) => string;
|
|
|
|
n4 = z2;
|
|
|
|
|
|
|
|
//// [commentsVarDecl.js]
|
2014-08-12 00:54:12 +02:00
|
|
|
/** Variable comments*/
|
2014-08-15 22:18:54 +02:00
|
|
|
var myVariable = 10; // This trailing Comment1
|
2014-08-12 00:54:12 +02:00
|
|
|
/** This is another variable comment*/
|
2014-07-13 01:04:16 +02:00
|
|
|
var anotherVariable = 30;
|
2014-08-12 00:54:12 +02:00
|
|
|
// shouldn't appear
|
2014-07-13 01:04:16 +02:00
|
|
|
var aVar = "";
|
2014-08-14 23:43:28 +02:00
|
|
|
/** this is multiline comment
|
2014-08-12 00:54:12 +02:00
|
|
|
* All these variables are of number type */
|
2014-08-15 23:32:08 +02:00
|
|
|
var anotherAnotherVariable = 70; /* these are multiple trailing comments */ /* multiple trailing comments */
|
2014-08-12 00:54:12 +02:00
|
|
|
/** Triple slash multiline comment*/
|
|
|
|
/** another line in the comment*/
|
|
|
|
/** comment line 2*/
|
2014-08-18 22:44:18 +02:00
|
|
|
var x = 70; /* multiline trailing comment
|
2014-08-15 23:32:08 +02:00
|
|
|
this is multiline trailing comment */
|
2014-08-16 00:49:09 +02:00
|
|
|
/** Triple slash comment on the assignement shouldnt be in .d.ts file*/
|
2014-07-13 01:04:16 +02:00
|
|
|
x = myVariable;
|
2014-08-12 00:54:12 +02:00
|
|
|
/** triple slash comment1*/
|
|
|
|
/** jsdocstyle comment - only this comment should be in .d.ts file*/
|
2014-07-13 01:04:16 +02:00
|
|
|
var n = 30;
|
2014-08-12 00:54:12 +02:00
|
|
|
/** var deckaration with comment on type as well*/
|
2014-07-13 01:04:16 +02:00
|
|
|
var y = 20;
|
2014-08-12 00:54:12 +02:00
|
|
|
/// var deckaration with comment on type as well
|
2014-07-13 01:04:16 +02:00
|
|
|
var yy = 20;
|
2014-08-12 00:54:12 +02:00
|
|
|
/** comment2 */
|
2014-07-13 01:04:16 +02:00
|
|
|
var z = function (x, y) { return x + y; };
|
|
|
|
var z2;
|
|
|
|
var x2 = z2;
|
|
|
|
var n4;
|
|
|
|
n4 = z2;
|
|
|
|
|
|
|
|
|
|
|
|
//// [commentsVarDecl.d.ts]
|
2014-08-14 17:57:28 +02:00
|
|
|
/** Variable comments*/
|
2014-07-12 01:36:06 +02:00
|
|
|
declare var myVariable: number;
|
2014-08-14 17:57:28 +02:00
|
|
|
/** This is another variable comment*/
|
2014-07-12 01:36:06 +02:00
|
|
|
declare var anotherVariable: number;
|
|
|
|
declare var aVar: string;
|
2014-08-14 23:43:28 +02:00
|
|
|
/** this is multiline comment
|
2014-08-14 17:57:28 +02:00
|
|
|
* All these variables are of number type */
|
2014-07-12 01:36:06 +02:00
|
|
|
declare var anotherAnotherVariable: number;
|
2014-08-14 17:57:28 +02:00
|
|
|
/** Triple slash multiline comment*/
|
|
|
|
/** another line in the comment*/
|
|
|
|
/** comment line 2*/
|
2014-07-12 01:36:06 +02:00
|
|
|
declare var x: number;
|
2014-08-14 17:57:28 +02:00
|
|
|
/** triple slash comment1*/
|
|
|
|
/** jsdocstyle comment - only this comment should be in .d.ts file*/
|
2014-07-12 01:36:06 +02:00
|
|
|
declare var n: number;
|
2014-08-14 17:57:28 +02:00
|
|
|
/** var deckaration with comment on type as well*/
|
2014-07-12 01:36:06 +02:00
|
|
|
declare var y: number;
|
|
|
|
declare var yy: number;
|
2014-08-14 17:57:28 +02:00
|
|
|
/** comment2 */
|
2014-07-12 01:36:06 +02:00
|
|
|
declare var z: (x: number, y: number) => number;
|
|
|
|
declare var z2: (x: number) => string;
|
|
|
|
declare var x2: (x: number) => string;
|
|
|
|
declare var n4: (x: number) => string;
|