forked from microsoft/TypeScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpreserveSpace.symbols
More file actions
50 lines (40 loc) · 1.57 KB
/
Copy pathpreserveSpace.symbols
File metadata and controls
50 lines (40 loc) · 1.57 KB
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
=== tests/cases/conformance/preserveSpace.ts ===
function f() {
>f : Symbol(f, Decl(preserveSpace.ts, 0, 0))
return [].filter(x => {
>[].filter : Symbol(Array.filter, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
>filter : Symbol(Array.filter, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
>x : Symbol(x, Decl(preserveSpace.ts, 1, 19))
if (!x) return false; // testing comments
>x : Symbol(x, Decl(preserveSpace.ts, 1, 19))
if (x)
>x : Symbol(x, Decl(preserveSpace.ts, 1, 19))
return true; // testing comments
if (x) {
>x : Symbol(x, Decl(preserveSpace.ts, 1, 19))
return false; // testing comments
} else {
console.log("here"); // testing comments
>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
>console : Symbol(console, Decl(lib.dom.d.ts, --, --))
>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
}
let i: number = 0;
>i : Symbol(i, Decl(preserveSpace.ts, 10, 11))
while (i > 0) i = i - 1;
>i : Symbol(i, Decl(preserveSpace.ts, 10, 11))
>i : Symbol(i, Decl(preserveSpace.ts, 10, 11))
>i : Symbol(i, Decl(preserveSpace.ts, 10, 11))
do console.log("here");
>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
>console : Symbol(console, Decl(lib.dom.d.ts, --, --))
>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
while (false);
try {
return true;
} catch (e) {
>e : Symbol(e, Decl(preserveSpace.ts, 17, 17))
return false;
}
});
}