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
|
=== tests/cases/compiler/reachabilityChecks1.ts ===
while (true);
var x = 1;
>x : Symbol(x, Decl(reachabilityChecks1.ts, 1, 3))
module A {
>A : Symbol(A, Decl(reachabilityChecks1.ts, 1, 10))
while (true);
let x;
>x : Symbol(x, Decl(reachabilityChecks1.ts, 5, 7))
}
module A1 {
>A1 : Symbol(A1, Decl(reachabilityChecks1.ts, 6, 1))
do {} while(true);
module A {
>A : Symbol(A, Decl(reachabilityChecks1.ts, 9, 22))
interface F {}
>F : Symbol(F, Decl(reachabilityChecks1.ts, 10, 14))
}
}
module A2 {
>A2 : Symbol(A2, Decl(reachabilityChecks1.ts, 13, 1))
while (true);
module A {
>A : Symbol(A, Decl(reachabilityChecks1.ts, 16, 17))
var x = 1;
>x : Symbol(x, Decl(reachabilityChecks1.ts, 18, 11))
}
}
module A3 {
>A3 : Symbol(A3, Decl(reachabilityChecks1.ts, 20, 1))
while (true);
type T = string;
>T : Symbol(T, Decl(reachabilityChecks1.ts, 23, 17))
}
module A4 {
>A4 : Symbol(A4, Decl(reachabilityChecks1.ts, 25, 1))
while (true);
module A {
>A : Symbol(A, Decl(reachabilityChecks1.ts, 28, 17))
const enum E { X }
>E : Symbol(E, Decl(reachabilityChecks1.ts, 29, 14))
>X : Symbol(E.X, Decl(reachabilityChecks1.ts, 30, 22))
}
}
function f1(x) {
>f1 : Symbol(f1, Decl(reachabilityChecks1.ts, 32, 1))
>x : Symbol(x, Decl(reachabilityChecks1.ts, 34, 12), Decl(reachabilityChecks1.ts, 41, 7))
if (x) {
>x : Symbol(x, Decl(reachabilityChecks1.ts, 34, 12), Decl(reachabilityChecks1.ts, 41, 7))
return;
}
else {
throw new Error("123");
>Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
}
var x;
>x : Symbol(x, Decl(reachabilityChecks1.ts, 34, 12), Decl(reachabilityChecks1.ts, 41, 7))
}
function f2() {
>f2 : Symbol(f2, Decl(reachabilityChecks1.ts, 42, 1))
return;
class A {
>A : Symbol(A, Decl(reachabilityChecks1.ts, 45, 11))
}
}
module B {
>B : Symbol(B, Decl(reachabilityChecks1.ts, 48, 1))
for (; ;);
module C {
>C : Symbol(C, Decl(reachabilityChecks1.ts, 51, 14))
}
}
function f3() {
>f3 : Symbol(f3, Decl(reachabilityChecks1.ts, 54, 1))
do {
} while (true);
enum E {
>E : Symbol(E, Decl(reachabilityChecks1.ts, 58, 19))
X = 1
>X : Symbol(E.X, Decl(reachabilityChecks1.ts, 59, 12))
}
}
function f4() {
>f4 : Symbol(f4, Decl(reachabilityChecks1.ts, 62, 1))
if (true) {
throw new Error();
>Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
}
const enum E {
>E : Symbol(E, Decl(reachabilityChecks1.ts, 67, 5))
X = 1
>X : Symbol(E.X, Decl(reachabilityChecks1.ts, 68, 18))
}
}
|