mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
//// [tests/cases/conformance/controlFlow/controlFlowIteration.ts] ////
|
|
|
|
=== controlFlowIteration.ts ===
|
|
let cond: boolean;
|
|
>cond : Symbol(cond, Decl(controlFlowIteration.ts, 0, 3))
|
|
|
|
function ff() {
|
|
>ff : Symbol(ff, Decl(controlFlowIteration.ts, 0, 18))
|
|
|
|
let x: string | undefined;
|
|
>x : Symbol(x, Decl(controlFlowIteration.ts, 3, 7))
|
|
|
|
while (true) {
|
|
if (cond) {
|
|
>cond : Symbol(cond, Decl(controlFlowIteration.ts, 0, 3))
|
|
|
|
x = "";
|
|
>x : Symbol(x, Decl(controlFlowIteration.ts, 3, 7))
|
|
}
|
|
else {
|
|
if (x) {
|
|
>x : Symbol(x, Decl(controlFlowIteration.ts, 3, 7))
|
|
|
|
x.length;
|
|
>x.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --))
|
|
>x : Symbol(x, Decl(controlFlowIteration.ts, 3, 7))
|
|
>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --))
|
|
}
|
|
if (x) {
|
|
>x : Symbol(x, Decl(controlFlowIteration.ts, 3, 7))
|
|
|
|
x.length;
|
|
>x.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --))
|
|
>x : Symbol(x, Decl(controlFlowIteration.ts, 3, 7))
|
|
>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|