93 lines
2.7 KiB
Text
93 lines
2.7 KiB
Text
=== 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(value, Decl(throwInEnclosingStatements.ts, 28, 12))
|
|
>T : Symbol(T, Decl(throwInEnclosingStatements.ts, 28, 8))
|
|
|
|
biz() {
|
|
>biz : Symbol(biz, Decl(throwInEnclosingStatements.ts, 29, 21))
|
|
|
|
throw this.value;
|
|
>this.value : Symbol(value, Decl(throwInEnclosingStatements.ts, 28, 12))
|
|
>this : Symbol(C, Decl(throwInEnclosingStatements.ts, 26, 26))
|
|
>value : Symbol(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;
|
|
}
|
|
}
|
|
|