File: callWithSpreadES6.symbols

package info (click to toggle)
node-typescript 2.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 203,952 kB
  • ctags: 52,987
  • sloc: sh: 11; makefile: 5
file content (160 lines) | stat: -rw-r--r-- 6,022 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
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
=== tests/cases/conformance/expressions/functionCalls/callWithSpreadES6.ts ===

interface X {
>X : Symbol(X, Decl(callWithSpreadES6.ts, 0, 0))

    foo(x: number, y: number, ...z: string[]);
>foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))
>x : Symbol(x, Decl(callWithSpreadES6.ts, 2, 8))
>y : Symbol(y, Decl(callWithSpreadES6.ts, 2, 18))
>z : Symbol(z, Decl(callWithSpreadES6.ts, 2, 29))
}

function foo(x: number, y: number, ...z: string[]) {
>foo : Symbol(foo, Decl(callWithSpreadES6.ts, 3, 1))
>x : Symbol(x, Decl(callWithSpreadES6.ts, 5, 13))
>y : Symbol(y, Decl(callWithSpreadES6.ts, 5, 23))
>z : Symbol(z, Decl(callWithSpreadES6.ts, 5, 34))
}

var a: string[];
>a : Symbol(a, Decl(callWithSpreadES6.ts, 8, 3))

var z: number[];
>z : Symbol(z, Decl(callWithSpreadES6.ts, 9, 3))

var obj: X;
>obj : Symbol(obj, Decl(callWithSpreadES6.ts, 10, 3))
>X : Symbol(X, Decl(callWithSpreadES6.ts, 0, 0))

var xa: X[];
>xa : Symbol(xa, Decl(callWithSpreadES6.ts, 11, 3))
>X : Symbol(X, Decl(callWithSpreadES6.ts, 0, 0))

foo(1, 2, "abc");
>foo : Symbol(foo, Decl(callWithSpreadES6.ts, 3, 1))

foo(1, 2, ...a);
>foo : Symbol(foo, Decl(callWithSpreadES6.ts, 3, 1))
>a : Symbol(a, Decl(callWithSpreadES6.ts, 8, 3))

foo(1, 2, ...a, "abc");
>foo : Symbol(foo, Decl(callWithSpreadES6.ts, 3, 1))
>a : Symbol(a, Decl(callWithSpreadES6.ts, 8, 3))

obj.foo(1, 2, "abc");
>obj.foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))
>obj : Symbol(obj, Decl(callWithSpreadES6.ts, 10, 3))
>foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))

obj.foo(1, 2, ...a);
>obj.foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))
>obj : Symbol(obj, Decl(callWithSpreadES6.ts, 10, 3))
>foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))
>a : Symbol(a, Decl(callWithSpreadES6.ts, 8, 3))

obj.foo(1, 2, ...a, "abc");
>obj.foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))
>obj : Symbol(obj, Decl(callWithSpreadES6.ts, 10, 3))
>foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))
>a : Symbol(a, Decl(callWithSpreadES6.ts, 8, 3))

(obj.foo)(1, 2, "abc");
>obj.foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))
>obj : Symbol(obj, Decl(callWithSpreadES6.ts, 10, 3))
>foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))

(obj.foo)(1, 2, ...a);
>obj.foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))
>obj : Symbol(obj, Decl(callWithSpreadES6.ts, 10, 3))
>foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))
>a : Symbol(a, Decl(callWithSpreadES6.ts, 8, 3))

(obj.foo)(1, 2, ...a, "abc");
>obj.foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))
>obj : Symbol(obj, Decl(callWithSpreadES6.ts, 10, 3))
>foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))
>a : Symbol(a, Decl(callWithSpreadES6.ts, 8, 3))

xa[1].foo(1, 2, "abc");
>xa[1].foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))
>xa : Symbol(xa, Decl(callWithSpreadES6.ts, 11, 3))
>foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))

xa[1].foo(1, 2, ...a);
>xa[1].foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))
>xa : Symbol(xa, Decl(callWithSpreadES6.ts, 11, 3))
>foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))
>a : Symbol(a, Decl(callWithSpreadES6.ts, 8, 3))

xa[1].foo(1, 2, ...a, "abc");
>xa[1].foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))
>xa : Symbol(xa, Decl(callWithSpreadES6.ts, 11, 3))
>foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))
>a : Symbol(a, Decl(callWithSpreadES6.ts, 8, 3))

(<Function>xa[1].foo)(...[1, 2, "abc"]);
>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --))
>xa[1].foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))
>xa : Symbol(xa, Decl(callWithSpreadES6.ts, 11, 3))
>foo : Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13))

class C {
>C : Symbol(C, Decl(callWithSpreadES6.ts, 29, 40))

    constructor(x: number, y: number, ...z: string[]) {
>x : Symbol(x, Decl(callWithSpreadES6.ts, 32, 16))
>y : Symbol(y, Decl(callWithSpreadES6.ts, 32, 26))
>z : Symbol(z, Decl(callWithSpreadES6.ts, 32, 37))

        this.foo(x, y);
>this.foo : Symbol(C.foo, Decl(callWithSpreadES6.ts, 35, 5))
>this : Symbol(C, Decl(callWithSpreadES6.ts, 29, 40))
>foo : Symbol(C.foo, Decl(callWithSpreadES6.ts, 35, 5))
>x : Symbol(x, Decl(callWithSpreadES6.ts, 32, 16))
>y : Symbol(y, Decl(callWithSpreadES6.ts, 32, 26))

        this.foo(x, y, ...z);
>this.foo : Symbol(C.foo, Decl(callWithSpreadES6.ts, 35, 5))
>this : Symbol(C, Decl(callWithSpreadES6.ts, 29, 40))
>foo : Symbol(C.foo, Decl(callWithSpreadES6.ts, 35, 5))
>x : Symbol(x, Decl(callWithSpreadES6.ts, 32, 16))
>y : Symbol(y, Decl(callWithSpreadES6.ts, 32, 26))
>z : Symbol(z, Decl(callWithSpreadES6.ts, 32, 37))
    }
    foo(x: number, y: number, ...z: string[]) {
>foo : Symbol(C.foo, Decl(callWithSpreadES6.ts, 35, 5))
>x : Symbol(x, Decl(callWithSpreadES6.ts, 36, 8))
>y : Symbol(y, Decl(callWithSpreadES6.ts, 36, 18))
>z : Symbol(z, Decl(callWithSpreadES6.ts, 36, 29))
    }
}

class D extends C {
>D : Symbol(D, Decl(callWithSpreadES6.ts, 38, 1))
>C : Symbol(C, Decl(callWithSpreadES6.ts, 29, 40))

    constructor() {
        super(1, 2);
>super : Symbol(C, Decl(callWithSpreadES6.ts, 29, 40))

        super(1, 2, ...a);
>super : Symbol(C, Decl(callWithSpreadES6.ts, 29, 40))
>a : Symbol(a, Decl(callWithSpreadES6.ts, 8, 3))
    }
    foo() {
>foo : Symbol(D.foo, Decl(callWithSpreadES6.ts, 44, 5))

        super.foo(1, 2);
>super.foo : Symbol(C.foo, Decl(callWithSpreadES6.ts, 35, 5))
>super : Symbol(C, Decl(callWithSpreadES6.ts, 29, 40))
>foo : Symbol(C.foo, Decl(callWithSpreadES6.ts, 35, 5))

        super.foo(1, 2, ...a);
>super.foo : Symbol(C.foo, Decl(callWithSpreadES6.ts, 35, 5))
>super : Symbol(C, Decl(callWithSpreadES6.ts, 29, 40))
>foo : Symbol(C.foo, Decl(callWithSpreadES6.ts, 35, 5))
>a : Symbol(a, Decl(callWithSpreadES6.ts, 8, 3))
    }
}