File: typesWithOptionalProperty.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 (81 lines) | stat: -rw-r--r-- 2,609 bytes parent folder | download | duplicates (7)
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
=== tests/cases/conformance/types/members/typesWithOptionalProperty.ts ===
// basic uses of optional properties without errors

interface I {
>I : Symbol(I, Decl(typesWithOptionalProperty.ts, 0, 0))

    foo: string;
>foo : Symbol(I.foo, Decl(typesWithOptionalProperty.ts, 2, 13))

    bar?: number;
>bar : Symbol(I.bar, Decl(typesWithOptionalProperty.ts, 3, 16))

    baz? (): string;
>baz : Symbol(I.baz, Decl(typesWithOptionalProperty.ts, 4, 17))
}

var a: {
>a : Symbol(a, Decl(typesWithOptionalProperty.ts, 8, 3))

    foo: string;
>foo : Symbol(foo, Decl(typesWithOptionalProperty.ts, 8, 8))

    bar?: number;
>bar : Symbol(bar, Decl(typesWithOptionalProperty.ts, 9, 16))

    baz? (): string;
>baz : Symbol(baz, Decl(typesWithOptionalProperty.ts, 10, 17))

};

var b = { foo: '' };
>b : Symbol(b, Decl(typesWithOptionalProperty.ts, 14, 3))
>foo : Symbol(foo, Decl(typesWithOptionalProperty.ts, 14, 9))

var c = { foo: '', bar: 3 };
>c : Symbol(c, Decl(typesWithOptionalProperty.ts, 15, 3))
>foo : Symbol(foo, Decl(typesWithOptionalProperty.ts, 15, 9))
>bar : Symbol(bar, Decl(typesWithOptionalProperty.ts, 15, 18))

var d = { foo: '', bar: 3, baz: () => '' };
>d : Symbol(d, Decl(typesWithOptionalProperty.ts, 16, 3))
>foo : Symbol(foo, Decl(typesWithOptionalProperty.ts, 16, 9))
>bar : Symbol(bar, Decl(typesWithOptionalProperty.ts, 16, 18))
>baz : Symbol(baz, Decl(typesWithOptionalProperty.ts, 16, 26))

var i: I;
>i : Symbol(i, Decl(typesWithOptionalProperty.ts, 18, 3))
>I : Symbol(I, Decl(typesWithOptionalProperty.ts, 0, 0))

i = b;
>i : Symbol(i, Decl(typesWithOptionalProperty.ts, 18, 3))
>b : Symbol(b, Decl(typesWithOptionalProperty.ts, 14, 3))

i = c;
>i : Symbol(i, Decl(typesWithOptionalProperty.ts, 18, 3))
>c : Symbol(c, Decl(typesWithOptionalProperty.ts, 15, 3))

i = d;
>i : Symbol(i, Decl(typesWithOptionalProperty.ts, 18, 3))
>d : Symbol(d, Decl(typesWithOptionalProperty.ts, 16, 3))

a = b;
>a : Symbol(a, Decl(typesWithOptionalProperty.ts, 8, 3))
>b : Symbol(b, Decl(typesWithOptionalProperty.ts, 14, 3))

a = c;
>a : Symbol(a, Decl(typesWithOptionalProperty.ts, 8, 3))
>c : Symbol(c, Decl(typesWithOptionalProperty.ts, 15, 3))

a = d;
>a : Symbol(a, Decl(typesWithOptionalProperty.ts, 8, 3))
>d : Symbol(d, Decl(typesWithOptionalProperty.ts, 16, 3))

i = a;
>i : Symbol(i, Decl(typesWithOptionalProperty.ts, 18, 3))
>a : Symbol(a, Decl(typesWithOptionalProperty.ts, 8, 3))

a = i;
>a : Symbol(a, Decl(typesWithOptionalProperty.ts, 8, 3))
>i : Symbol(i, Decl(typesWithOptionalProperty.ts, 18, 3))