File: conditionalExpressions2.symbols

package info (click to toggle)
node-typescript 5.0.4%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 459,116 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (33 lines) | stat: -rw-r--r-- 1,121 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
=== tests/cases/compiler/conditionalExpressions2.ts ===
var a = false ? 1 : null;
>a : Symbol(a, Decl(conditionalExpressions2.ts, 0, 3))

var b = false ? undefined : 0;
>b : Symbol(b, Decl(conditionalExpressions2.ts, 1, 3))
>undefined : Symbol(undefined)

var c = false ? 1 : 0;
>c : Symbol(c, Decl(conditionalExpressions2.ts, 2, 3))

var d = false ? false : true;
>d : Symbol(d, Decl(conditionalExpressions2.ts, 3, 3))

var e = false ? "foo" : "bar";
>e : Symbol(e, Decl(conditionalExpressions2.ts, 4, 3))

var f = false ? null : undefined;
>f : Symbol(f, Decl(conditionalExpressions2.ts, 5, 3))
>undefined : Symbol(undefined)

var g = true ? {g:5} : null;
>g : Symbol(g, Decl(conditionalExpressions2.ts, 6, 3))
>g : Symbol(g, Decl(conditionalExpressions2.ts, 6, 16))

var h = [{h:5}, null];
>h : Symbol(h, Decl(conditionalExpressions2.ts, 7, 3))
>h : Symbol(h, Decl(conditionalExpressions2.ts, 7, 10))

function i() { if (true) { return { x: 5 }; } else { return null; } }
>i : Symbol(i, Decl(conditionalExpressions2.ts, 7, 22))
>x : Symbol(x, Decl(conditionalExpressions2.ts, 8, 35))