File: commentsVarDecl.symbols

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (70 lines) | stat: -rw-r--r-- 2,444 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
=== tests/cases/compiler/commentsVarDecl.ts ===
/** Variable comments*/
var myVariable = 10; // This trailing Comment1
>myVariable : Symbol(myVariable, Decl(commentsVarDecl.ts, 1, 3))

/** This is another variable comment*/
var anotherVariable = 30;
>anotherVariable : Symbol(anotherVariable, Decl(commentsVarDecl.ts, 4, 3))

// shouldn't appear
var aVar = "";
>aVar : Symbol(aVar, Decl(commentsVarDecl.ts, 7, 3))

/** this is multiline comment
  * All these variables are of number type */
var anotherAnotherVariable = 70; /* these are multiple trailing comments */ /* multiple trailing comments */
>anotherAnotherVariable : Symbol(anotherAnotherVariable, Decl(commentsVarDecl.ts, 11, 3))

/** Triple slash multiline comment*/
/** another line in the comment*/
/** comment line 2*/
var x = 70; /* multiline trailing comment 
>x : Symbol(x, Decl(commentsVarDecl.ts, 16, 3))

this is multiline trailing comment */
/** Triple slash comment on the assignement shouldnt be in .d.ts file*/
x = myVariable;
>x : Symbol(x, Decl(commentsVarDecl.ts, 16, 3))
>myVariable : Symbol(myVariable, Decl(commentsVarDecl.ts, 1, 3))

/** triple slash comment1*/
/** jsdocstyle comment - only this comment should be in .d.ts file*/
var n = 30;
>n : Symbol(n, Decl(commentsVarDecl.ts, 23, 3))

/** var deckaration with comment on type as well*/
var y = /** value comment */ 20;
>y : Symbol(y, Decl(commentsVarDecl.ts, 26, 3))

/// var deckaration with comment on type as well
var yy =
>yy : Symbol(yy, Decl(commentsVarDecl.ts, 29, 3))

    /// value comment
    20;

/** comment2 */
var z = /** lambda comment */ (x: number, y: number) => x + y;
>z : Symbol(z, Decl(commentsVarDecl.ts, 34, 3))
>x : Symbol(x, Decl(commentsVarDecl.ts, 34, 31))
>y : Symbol(y, Decl(commentsVarDecl.ts, 34, 41))
>x : Symbol(x, Decl(commentsVarDecl.ts, 34, 31))
>y : Symbol(y, Decl(commentsVarDecl.ts, 34, 41))

var z2: /** type comment*/ (x: number) => string;
>z2 : Symbol(z2, Decl(commentsVarDecl.ts, 36, 3))
>x : Symbol(x, Decl(commentsVarDecl.ts, 36, 28))

var x2 = z2;
>x2 : Symbol(x2, Decl(commentsVarDecl.ts, 38, 3))
>z2 : Symbol(z2, Decl(commentsVarDecl.ts, 36, 3))

var n4: (x: number) => string;
>n4 : Symbol(n4, Decl(commentsVarDecl.ts, 40, 3))
>x : Symbol(x, Decl(commentsVarDecl.ts, 40, 9))

n4 = z2;
>n4 : Symbol(n4, Decl(commentsVarDecl.ts, 40, 3))
>z2 : Symbol(z2, Decl(commentsVarDecl.ts, 36, 3))