File: declFileFunctions.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 (181 lines) | stat: -rw-r--r-- 8,599 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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
=== tests/cases/compiler/declFileFunctions_0.ts ===
/** This comment should appear for foo*/
export function foo() {
>foo : Symbol(foo, Decl(declFileFunctions_0.ts, 0, 0))
}
/** This is comment for function signature*/
export function fooWithParameters(/** this is comment about a*/a: string,
>fooWithParameters : Symbol(fooWithParameters, Decl(declFileFunctions_0.ts, 2, 1))
>a : Symbol(a, Decl(declFileFunctions_0.ts, 4, 34))

    /** this is comment for b*/
    b: number) {
>b : Symbol(b, Decl(declFileFunctions_0.ts, 4, 73))

    var d = a;
>d : Symbol(d, Decl(declFileFunctions_0.ts, 7, 7))
>a : Symbol(a, Decl(declFileFunctions_0.ts, 4, 34))
}
export function fooWithRestParameters(a: string, ...rests: string[]) {
>fooWithRestParameters : Symbol(fooWithRestParameters, Decl(declFileFunctions_0.ts, 8, 1))
>a : Symbol(a, Decl(declFileFunctions_0.ts, 9, 38))
>rests : Symbol(rests, Decl(declFileFunctions_0.ts, 9, 48))

    return a + rests.join("");
>a : Symbol(a, Decl(declFileFunctions_0.ts, 9, 38))
>rests.join : Symbol(Array.join, Decl(lib.es5.d.ts, --, --))
>rests : Symbol(rests, Decl(declFileFunctions_0.ts, 9, 48))
>join : Symbol(Array.join, Decl(lib.es5.d.ts, --, --))
}

export function fooWithOverloads(a: string): string;
>fooWithOverloads : Symbol(fooWithOverloads, Decl(declFileFunctions_0.ts, 11, 1), Decl(declFileFunctions_0.ts, 13, 52), Decl(declFileFunctions_0.ts, 14, 52))
>a : Symbol(a, Decl(declFileFunctions_0.ts, 13, 33))

export function fooWithOverloads(a: number): number;
>fooWithOverloads : Symbol(fooWithOverloads, Decl(declFileFunctions_0.ts, 11, 1), Decl(declFileFunctions_0.ts, 13, 52), Decl(declFileFunctions_0.ts, 14, 52))
>a : Symbol(a, Decl(declFileFunctions_0.ts, 14, 33))

export function fooWithOverloads(a: any): any {
>fooWithOverloads : Symbol(fooWithOverloads, Decl(declFileFunctions_0.ts, 11, 1), Decl(declFileFunctions_0.ts, 13, 52), Decl(declFileFunctions_0.ts, 14, 52))
>a : Symbol(a, Decl(declFileFunctions_0.ts, 15, 33))

    return a;
>a : Symbol(a, Decl(declFileFunctions_0.ts, 15, 33))
}

export function fooWithSingleOverload(a: string): string;
>fooWithSingleOverload : Symbol(fooWithSingleOverload, Decl(declFileFunctions_0.ts, 17, 1), Decl(declFileFunctions_0.ts, 19, 57))
>a : Symbol(a, Decl(declFileFunctions_0.ts, 19, 38))

export function fooWithSingleOverload(a: any) {
>fooWithSingleOverload : Symbol(fooWithSingleOverload, Decl(declFileFunctions_0.ts, 17, 1), Decl(declFileFunctions_0.ts, 19, 57))
>a : Symbol(a, Decl(declFileFunctions_0.ts, 20, 38))

    return a;
>a : Symbol(a, Decl(declFileFunctions_0.ts, 20, 38))
}

export function fooWithTypePredicate(a: any): a is number {
>fooWithTypePredicate : Symbol(fooWithTypePredicate, Decl(declFileFunctions_0.ts, 22, 1))
>a : Symbol(a, Decl(declFileFunctions_0.ts, 24, 37))
>a : Symbol(a, Decl(declFileFunctions_0.ts, 24, 37))

    return true;
}
export function fooWithTypePredicateAndMulitpleParams(a: any, b: any, c: any): a is number {
>fooWithTypePredicateAndMulitpleParams : Symbol(fooWithTypePredicateAndMulitpleParams, Decl(declFileFunctions_0.ts, 26, 1))
>a : Symbol(a, Decl(declFileFunctions_0.ts, 27, 54))
>b : Symbol(b, Decl(declFileFunctions_0.ts, 27, 61))
>c : Symbol(c, Decl(declFileFunctions_0.ts, 27, 69))
>a : Symbol(a, Decl(declFileFunctions_0.ts, 27, 54))

    return true;
}
export function fooWithTypeTypePredicateAndGeneric<T>(a: any): a is T {
>fooWithTypeTypePredicateAndGeneric : Symbol(fooWithTypeTypePredicateAndGeneric, Decl(declFileFunctions_0.ts, 29, 1))
>T : Symbol(T, Decl(declFileFunctions_0.ts, 30, 51))
>a : Symbol(a, Decl(declFileFunctions_0.ts, 30, 54))
>a : Symbol(a, Decl(declFileFunctions_0.ts, 30, 54))
>T : Symbol(T, Decl(declFileFunctions_0.ts, 30, 51))

    return true;
}
export function fooWithTypeTypePredicateAndRestParam(a: any, ...rest): a is number {
>fooWithTypeTypePredicateAndRestParam : Symbol(fooWithTypeTypePredicateAndRestParam, Decl(declFileFunctions_0.ts, 32, 1))
>a : Symbol(a, Decl(declFileFunctions_0.ts, 33, 53))
>rest : Symbol(rest, Decl(declFileFunctions_0.ts, 33, 60))
>a : Symbol(a, Decl(declFileFunctions_0.ts, 33, 53))

    return true;
}

/** This comment should appear for nonExportedFoo*/
function nonExportedFoo() {
>nonExportedFoo : Symbol(nonExportedFoo, Decl(declFileFunctions_0.ts, 35, 1))
}
/** This is comment for function signature*/
function nonExportedFooWithParameters(/** this is comment about a*/a: string,
>nonExportedFooWithParameters : Symbol(nonExportedFooWithParameters, Decl(declFileFunctions_0.ts, 39, 1))
>a : Symbol(a, Decl(declFileFunctions_0.ts, 41, 38))

    /** this is comment for b*/
    b: number) {
>b : Symbol(b, Decl(declFileFunctions_0.ts, 41, 77))

    var d = a;
>d : Symbol(d, Decl(declFileFunctions_0.ts, 44, 7))
>a : Symbol(a, Decl(declFileFunctions_0.ts, 41, 38))
}
function nonExportedFooWithRestParameters(a: string, ...rests: string[]) {
>nonExportedFooWithRestParameters : Symbol(nonExportedFooWithRestParameters, Decl(declFileFunctions_0.ts, 45, 1))
>a : Symbol(a, Decl(declFileFunctions_0.ts, 46, 42))
>rests : Symbol(rests, Decl(declFileFunctions_0.ts, 46, 52))

    return a + rests.join("");
>a : Symbol(a, Decl(declFileFunctions_0.ts, 46, 42))
>rests.join : Symbol(Array.join, Decl(lib.es5.d.ts, --, --))
>rests : Symbol(rests, Decl(declFileFunctions_0.ts, 46, 52))
>join : Symbol(Array.join, Decl(lib.es5.d.ts, --, --))
}

function nonExportedFooWithOverloads(a: string): string;
>nonExportedFooWithOverloads : Symbol(nonExportedFooWithOverloads, Decl(declFileFunctions_0.ts, 48, 1), Decl(declFileFunctions_0.ts, 50, 56), Decl(declFileFunctions_0.ts, 51, 56))
>a : Symbol(a, Decl(declFileFunctions_0.ts, 50, 37))

function nonExportedFooWithOverloads(a: number): number;
>nonExportedFooWithOverloads : Symbol(nonExportedFooWithOverloads, Decl(declFileFunctions_0.ts, 48, 1), Decl(declFileFunctions_0.ts, 50, 56), Decl(declFileFunctions_0.ts, 51, 56))
>a : Symbol(a, Decl(declFileFunctions_0.ts, 51, 37))

function nonExportedFooWithOverloads(a: any): any {
>nonExportedFooWithOverloads : Symbol(nonExportedFooWithOverloads, Decl(declFileFunctions_0.ts, 48, 1), Decl(declFileFunctions_0.ts, 50, 56), Decl(declFileFunctions_0.ts, 51, 56))
>a : Symbol(a, Decl(declFileFunctions_0.ts, 52, 37))

    return a;
>a : Symbol(a, Decl(declFileFunctions_0.ts, 52, 37))
}

=== tests/cases/compiler/declFileFunctions_1.ts ===
/** This comment should appear for foo*/
function globalfoo() {
>globalfoo : Symbol(globalfoo, Decl(declFileFunctions_1.ts, 0, 0))
}
/** This is comment for function signature*/
function globalfooWithParameters(/** this is comment about a*/a: string,
>globalfooWithParameters : Symbol(globalfooWithParameters, Decl(declFileFunctions_1.ts, 2, 1))
>a : Symbol(a, Decl(declFileFunctions_1.ts, 4, 33))

    /** this is comment for b*/
    b: number) {
>b : Symbol(b, Decl(declFileFunctions_1.ts, 4, 72))

    var d = a;
>d : Symbol(d, Decl(declFileFunctions_1.ts, 7, 7))
>a : Symbol(a, Decl(declFileFunctions_1.ts, 4, 33))
}
function globalfooWithRestParameters(a: string, ...rests: string[]) {
>globalfooWithRestParameters : Symbol(globalfooWithRestParameters, Decl(declFileFunctions_1.ts, 8, 1))
>a : Symbol(a, Decl(declFileFunctions_1.ts, 9, 37))
>rests : Symbol(rests, Decl(declFileFunctions_1.ts, 9, 47))

    return a + rests.join("");
>a : Symbol(a, Decl(declFileFunctions_1.ts, 9, 37))
>rests.join : Symbol(Array.join, Decl(lib.es5.d.ts, --, --))
>rests : Symbol(rests, Decl(declFileFunctions_1.ts, 9, 47))
>join : Symbol(Array.join, Decl(lib.es5.d.ts, --, --))
}
function globalfooWithOverloads(a: string): string;
>globalfooWithOverloads : Symbol(globalfooWithOverloads, Decl(declFileFunctions_1.ts, 11, 1), Decl(declFileFunctions_1.ts, 12, 51), Decl(declFileFunctions_1.ts, 13, 51))
>a : Symbol(a, Decl(declFileFunctions_1.ts, 12, 32))

function globalfooWithOverloads(a: number): number;
>globalfooWithOverloads : Symbol(globalfooWithOverloads, Decl(declFileFunctions_1.ts, 11, 1), Decl(declFileFunctions_1.ts, 12, 51), Decl(declFileFunctions_1.ts, 13, 51))
>a : Symbol(a, Decl(declFileFunctions_1.ts, 13, 32))

function globalfooWithOverloads(a: any): any {
>globalfooWithOverloads : Symbol(globalfooWithOverloads, Decl(declFileFunctions_1.ts, 11, 1), Decl(declFileFunctions_1.ts, 12, 51), Decl(declFileFunctions_1.ts, 13, 51))
>a : Symbol(a, Decl(declFileFunctions_1.ts, 14, 32))

    return a;
>a : Symbol(a, Decl(declFileFunctions_1.ts, 14, 32))
}