File: declFileCallSignatures.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 (116 lines) | stat: -rw-r--r-- 4,670 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
=== tests/cases/compiler/declFileCallSignatures_0.ts ===
export interface ICallSignature {
>ICallSignature : Symbol(ICallSignature, Decl(declFileCallSignatures_0.ts, 0, 0))

    /** This comment should appear for foo*/
    (): string;
}

export interface ICallSignatureWithParameters {
>ICallSignatureWithParameters : Symbol(ICallSignatureWithParameters, Decl(declFileCallSignatures_0.ts, 3, 1))

    /** This is comment for function signature*/
    (/** this is comment about a*/a: string,
>a : Symbol(a, Decl(declFileCallSignatures_0.ts, 7, 5))

        /** this is comment for b*/
        b: number): void;
>b : Symbol(b, Decl(declFileCallSignatures_0.ts, 7, 44))
}

export interface ICallSignatureWithRestParameters {
>ICallSignatureWithRestParameters : Symbol(ICallSignatureWithRestParameters, Decl(declFileCallSignatures_0.ts, 10, 1))

    (a: string, ...rests: string[]): string;
>a : Symbol(a, Decl(declFileCallSignatures_0.ts, 13, 5))
>rests : Symbol(rests, Decl(declFileCallSignatures_0.ts, 13, 15))
}

export interface ICallSignatureWithOverloads {
>ICallSignatureWithOverloads : Symbol(ICallSignatureWithOverloads, Decl(declFileCallSignatures_0.ts, 14, 1))

    (a: string): string;
>a : Symbol(a, Decl(declFileCallSignatures_0.ts, 17, 5))

    (a: number): number;
>a : Symbol(a, Decl(declFileCallSignatures_0.ts, 18, 5))
}

export interface ICallSignatureWithTypeParameters<T> {
>ICallSignatureWithTypeParameters : Symbol(ICallSignatureWithTypeParameters, Decl(declFileCallSignatures_0.ts, 19, 1))
>T : Symbol(T, Decl(declFileCallSignatures_0.ts, 21, 50))

    /** This comment should appear for foo*/
    (a: T): string;
>a : Symbol(a, Decl(declFileCallSignatures_0.ts, 23, 5))
>T : Symbol(T, Decl(declFileCallSignatures_0.ts, 21, 50))
}

export interface ICallSignatureWithOwnTypeParametes {
>ICallSignatureWithOwnTypeParametes : Symbol(ICallSignatureWithOwnTypeParametes, Decl(declFileCallSignatures_0.ts, 24, 1))

    <T extends ICallSignature>(a: T): string;
>T : Symbol(T, Decl(declFileCallSignatures_0.ts, 27, 5))
>ICallSignature : Symbol(ICallSignature, Decl(declFileCallSignatures_0.ts, 0, 0))
>a : Symbol(a, Decl(declFileCallSignatures_0.ts, 27, 31))
>T : Symbol(T, Decl(declFileCallSignatures_0.ts, 27, 5))
}

=== tests/cases/compiler/declFileCallSignatures_1.ts ===
interface IGlobalCallSignature {
>IGlobalCallSignature : Symbol(IGlobalCallSignature, Decl(declFileCallSignatures_1.ts, 0, 0))

    /** This comment should appear for foo*/
    (): string;
}

interface IGlobalCallSignatureWithParameters {
>IGlobalCallSignatureWithParameters : Symbol(IGlobalCallSignatureWithParameters, Decl(declFileCallSignatures_1.ts, 3, 1))

    /** This is comment for function signature*/
    (/** this is comment about a*/a: string,
>a : Symbol(a, Decl(declFileCallSignatures_1.ts, 7, 5))

        /** this is comment for b*/
        b: number): void;
>b : Symbol(b, Decl(declFileCallSignatures_1.ts, 7, 44))
}

interface IGlobalCallSignatureWithRestParameters {
>IGlobalCallSignatureWithRestParameters : Symbol(IGlobalCallSignatureWithRestParameters, Decl(declFileCallSignatures_1.ts, 10, 1))

    (a: string, ...rests: string[]): string;
>a : Symbol(a, Decl(declFileCallSignatures_1.ts, 14, 5))
>rests : Symbol(rests, Decl(declFileCallSignatures_1.ts, 14, 15))

}

interface IGlobalCallSignatureWithOverloads {
>IGlobalCallSignatureWithOverloads : Symbol(IGlobalCallSignatureWithOverloads, Decl(declFileCallSignatures_1.ts, 16, 1))

    (a: string): string;
>a : Symbol(a, Decl(declFileCallSignatures_1.ts, 19, 5))

    (a: number): number;
>a : Symbol(a, Decl(declFileCallSignatures_1.ts, 20, 5))
}

interface IGlobalCallSignatureWithTypeParameters<T> {
>IGlobalCallSignatureWithTypeParameters : Symbol(IGlobalCallSignatureWithTypeParameters, Decl(declFileCallSignatures_1.ts, 21, 1))
>T : Symbol(T, Decl(declFileCallSignatures_1.ts, 23, 49))

    /** This comment should appear for foo*/
    (a: T): string;
>a : Symbol(a, Decl(declFileCallSignatures_1.ts, 25, 5))
>T : Symbol(T, Decl(declFileCallSignatures_1.ts, 23, 49))
}

interface IGlobalCallSignatureWithOwnTypeParametes {
>IGlobalCallSignatureWithOwnTypeParametes : Symbol(IGlobalCallSignatureWithOwnTypeParametes, Decl(declFileCallSignatures_1.ts, 26, 1))

    <T extends IGlobalCallSignature>(a: T): string;
>T : Symbol(T, Decl(declFileCallSignatures_1.ts, 29, 5))
>IGlobalCallSignature : Symbol(IGlobalCallSignature, Decl(declFileCallSignatures_1.ts, 0, 0))
>a : Symbol(a, Decl(declFileCallSignatures_1.ts, 29, 37))
>T : Symbol(T, Decl(declFileCallSignatures_1.ts, 29, 5))
}