File: throwInEnclosingStatements.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 (93 lines) | stat: -rw-r--r-- 2,734 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
=== tests/cases/conformance/statements/throwStatements/throwInEnclosingStatements.ts ===
function fn(x) {
>fn : Symbol(fn, Decl(throwInEnclosingStatements.ts, 0, 0))
>x : Symbol(x, Decl(throwInEnclosingStatements.ts, 0, 12))

    throw x;
>x : Symbol(x, Decl(throwInEnclosingStatements.ts, 0, 12))
}

<T>(x: T) => { throw x; }
>T : Symbol(T, Decl(throwInEnclosingStatements.ts, 4, 1))
>x : Symbol(x, Decl(throwInEnclosingStatements.ts, 4, 4))
>T : Symbol(T, Decl(throwInEnclosingStatements.ts, 4, 1))
>x : Symbol(x, Decl(throwInEnclosingStatements.ts, 4, 4))

var y: string;
>y : Symbol(y, Decl(throwInEnclosingStatements.ts, 6, 3))

switch (y) {
>y : Symbol(y, Decl(throwInEnclosingStatements.ts, 6, 3))

    case 'a':
        throw y;
>y : Symbol(y, Decl(throwInEnclosingStatements.ts, 6, 3))

    default:
        throw y;
>y : Symbol(y, Decl(throwInEnclosingStatements.ts, 6, 3))
}

var z = 0;
>z : Symbol(z, Decl(throwInEnclosingStatements.ts, 14, 3))

while (z < 10) {
>z : Symbol(z, Decl(throwInEnclosingStatements.ts, 14, 3))

    throw z;
>z : Symbol(z, Decl(throwInEnclosingStatements.ts, 14, 3))
}

for (var i = 0; ;) { throw i; }
>i : Symbol(i, Decl(throwInEnclosingStatements.ts, 19, 8))
>i : Symbol(i, Decl(throwInEnclosingStatements.ts, 19, 8))

for (var idx in {}) { throw idx; }
>idx : Symbol(idx, Decl(throwInEnclosingStatements.ts, 21, 8))
>idx : Symbol(idx, Decl(throwInEnclosingStatements.ts, 21, 8))

do { throw null; }while(true)

var j = 0;
>j : Symbol(j, Decl(throwInEnclosingStatements.ts, 25, 3))

while (j < 0) { throw j; }
>j : Symbol(j, Decl(throwInEnclosingStatements.ts, 25, 3))
>j : Symbol(j, Decl(throwInEnclosingStatements.ts, 25, 3))

class C<T> {
>C : Symbol(C, Decl(throwInEnclosingStatements.ts, 26, 26))
>T : Symbol(T, Decl(throwInEnclosingStatements.ts, 28, 8))

    private value: T;
>value : Symbol(C.value, Decl(throwInEnclosingStatements.ts, 28, 12))
>T : Symbol(T, Decl(throwInEnclosingStatements.ts, 28, 8))

    biz() {
>biz : Symbol(C.biz, Decl(throwInEnclosingStatements.ts, 29, 21))

        throw this.value;
>this.value : Symbol(C.value, Decl(throwInEnclosingStatements.ts, 28, 12))
>this : Symbol(C, Decl(throwInEnclosingStatements.ts, 26, 26))
>value : Symbol(C.value, Decl(throwInEnclosingStatements.ts, 28, 12))
    }

    constructor() {
        throw this;
>this : Symbol(C, Decl(throwInEnclosingStatements.ts, 26, 26))
    }
}

var aa = {
>aa : Symbol(aa, Decl(throwInEnclosingStatements.ts, 39, 3))

    id:12,
>id : Symbol(id, Decl(throwInEnclosingStatements.ts, 39, 10))

    biz() {
>biz : Symbol(biz, Decl(throwInEnclosingStatements.ts, 40, 10))

        throw this;
    }
}