File: commentsExternalModules3.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 (142 lines) | stat: -rw-r--r-- 5,951 bytes parent folder | download | duplicates (5)
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
=== tests/cases/compiler/commentsExternalModules_1.ts ===
/**This is on import declaration*/
import extMod = require("./commentsExternalModules2_0"); // trailing comment 1
>extMod : Symbol(extMod, Decl(commentsExternalModules_1.ts, 0, 0))

extMod.m1.fooExport();
>extMod.m1.fooExport : Symbol(extMod.m1.fooExport, Decl(commentsExternalModules2_0.ts, 15, 5))
>extMod.m1 : Symbol(extMod.m1, Decl(commentsExternalModules2_0.ts, 0, 0))
>extMod : Symbol(extMod, Decl(commentsExternalModules_1.ts, 0, 0))
>m1 : Symbol(extMod.m1, Decl(commentsExternalModules2_0.ts, 0, 0))
>fooExport : Symbol(extMod.m1.fooExport, Decl(commentsExternalModules2_0.ts, 15, 5))

export var newVar = new extMod.m1.m2.c();
>newVar : Symbol(newVar, Decl(commentsExternalModules_1.ts, 3, 10))
>extMod.m1.m2.c : Symbol(extMod.m1.m2.c, Decl(commentsExternalModules2_0.ts, 9, 22))
>extMod.m1.m2 : Symbol(extMod.m1.m2, Decl(commentsExternalModules2_0.ts, 7, 5))
>extMod.m1 : Symbol(extMod.m1, Decl(commentsExternalModules2_0.ts, 0, 0))
>extMod : Symbol(extMod, Decl(commentsExternalModules_1.ts, 0, 0))
>m1 : Symbol(extMod.m1, Decl(commentsExternalModules2_0.ts, 0, 0))
>m2 : Symbol(extMod.m1.m2, Decl(commentsExternalModules2_0.ts, 7, 5))
>c : Symbol(extMod.m1.m2.c, Decl(commentsExternalModules2_0.ts, 9, 22))

extMod.m4.fooExport();
>extMod.m4.fooExport : Symbol(extMod.m4.fooExport, Decl(commentsExternalModules2_0.ts, 41, 5))
>extMod.m4 : Symbol(extMod.m4, Decl(commentsExternalModules2_0.ts, 22, 26))
>extMod : Symbol(extMod, Decl(commentsExternalModules_1.ts, 0, 0))
>m4 : Symbol(extMod.m4, Decl(commentsExternalModules2_0.ts, 22, 26))
>fooExport : Symbol(extMod.m4.fooExport, Decl(commentsExternalModules2_0.ts, 41, 5))

export var newVar2 = new extMod.m4.m2.c();
>newVar2 : Symbol(newVar2, Decl(commentsExternalModules_1.ts, 5, 10))
>extMod.m4.m2.c : Symbol(extMod.m4.m2.c, Decl(commentsExternalModules2_0.ts, 35, 22))
>extMod.m4.m2 : Symbol(extMod.m4.m2, Decl(commentsExternalModules2_0.ts, 32, 5))
>extMod.m4 : Symbol(extMod.m4, Decl(commentsExternalModules2_0.ts, 22, 26))
>extMod : Symbol(extMod, Decl(commentsExternalModules_1.ts, 0, 0))
>m4 : Symbol(extMod.m4, Decl(commentsExternalModules2_0.ts, 22, 26))
>m2 : Symbol(extMod.m4.m2, Decl(commentsExternalModules2_0.ts, 32, 5))
>c : Symbol(extMod.m4.m2.c, Decl(commentsExternalModules2_0.ts, 35, 22))

=== tests/cases/compiler/commentsExternalModules2_0.ts ===
/** Module comment*/
export module m1 {
>m1 : Symbol(m1, Decl(commentsExternalModules2_0.ts, 0, 0))

    /** b's comment*/
    export var b: number;
>b : Symbol(b, Decl(commentsExternalModules2_0.ts, 3, 14))

    /** foo's comment*/
    function foo() {
>foo : Symbol(foo, Decl(commentsExternalModules2_0.ts, 3, 25))

        return b;
>b : Symbol(b, Decl(commentsExternalModules2_0.ts, 3, 14))
    }
    /** m2 comments*/
    export module m2 {
>m2 : Symbol(m2, Decl(commentsExternalModules2_0.ts, 7, 5))

        /** class comment;*/
        export class c {
>c : Symbol(c, Decl(commentsExternalModules2_0.ts, 9, 22))

        };
        /** i*/
        export var i = new c();
>i : Symbol(i, Decl(commentsExternalModules2_0.ts, 14, 18))
>c : Symbol(c, Decl(commentsExternalModules2_0.ts, 9, 22))
    }
    /** exported function*/
    export function fooExport() {
>fooExport : Symbol(fooExport, Decl(commentsExternalModules2_0.ts, 15, 5))

        return foo();
>foo : Symbol(foo, Decl(commentsExternalModules2_0.ts, 3, 25))
    }
}
m1.fooExport();
>m1.fooExport : Symbol(m1.fooExport, Decl(commentsExternalModules2_0.ts, 15, 5))
>m1 : Symbol(m1, Decl(commentsExternalModules2_0.ts, 0, 0))
>fooExport : Symbol(m1.fooExport, Decl(commentsExternalModules2_0.ts, 15, 5))

var myvar = new m1.m2.c();
>myvar : Symbol(myvar, Decl(commentsExternalModules2_0.ts, 22, 3))
>m1.m2.c : Symbol(m1.m2.c, Decl(commentsExternalModules2_0.ts, 9, 22))
>m1.m2 : Symbol(m1.m2, Decl(commentsExternalModules2_0.ts, 7, 5))
>m1 : Symbol(m1, Decl(commentsExternalModules2_0.ts, 0, 0))
>m2 : Symbol(m1.m2, Decl(commentsExternalModules2_0.ts, 7, 5))
>c : Symbol(m1.m2.c, Decl(commentsExternalModules2_0.ts, 9, 22))

/** Module comment */
export module m4 {
>m4 : Symbol(m4, Decl(commentsExternalModules2_0.ts, 22, 26))

    /** b's comment */
    export var b: number;
>b : Symbol(b, Decl(commentsExternalModules2_0.ts, 27, 14))

    /** foo's comment
    */
    function foo() {
>foo : Symbol(foo, Decl(commentsExternalModules2_0.ts, 27, 25))

        return b;
>b : Symbol(b, Decl(commentsExternalModules2_0.ts, 27, 14))
    }
    /** m2 comments
    */
    export module m2 {
>m2 : Symbol(m2, Decl(commentsExternalModules2_0.ts, 32, 5))

        /** class comment; */
        export class c {
>c : Symbol(c, Decl(commentsExternalModules2_0.ts, 35, 22))

        };
        /** i */
        export var i = new c();
>i : Symbol(i, Decl(commentsExternalModules2_0.ts, 40, 18))
>c : Symbol(c, Decl(commentsExternalModules2_0.ts, 35, 22))
    }
    /** exported function */
    export function fooExport() {
>fooExport : Symbol(fooExport, Decl(commentsExternalModules2_0.ts, 41, 5))

        return foo();
>foo : Symbol(foo, Decl(commentsExternalModules2_0.ts, 27, 25))
    }
}
m4.fooExport();
>m4.fooExport : Symbol(m4.fooExport, Decl(commentsExternalModules2_0.ts, 41, 5))
>m4 : Symbol(m4, Decl(commentsExternalModules2_0.ts, 22, 26))
>fooExport : Symbol(m4.fooExport, Decl(commentsExternalModules2_0.ts, 41, 5))

var myvar2 = new m4.m2.c();
>myvar2 : Symbol(myvar2, Decl(commentsExternalModules2_0.ts, 48, 3))
>m4.m2.c : Symbol(m4.m2.c, Decl(commentsExternalModules2_0.ts, 35, 22))
>m4.m2 : Symbol(m4.m2, Decl(commentsExternalModules2_0.ts, 32, 5))
>m4 : Symbol(m4, Decl(commentsExternalModules2_0.ts, 22, 26))
>m2 : Symbol(m4.m2, Decl(commentsExternalModules2_0.ts, 32, 5))
>c : Symbol(m4.m2.c, Decl(commentsExternalModules2_0.ts, 35, 22))