-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Expand file tree
/
Copy pathstaticPropertyAssignmentInherited1.symbols
More file actions
85 lines (70 loc) · 4.23 KB
/
staticPropertyAssignmentInherited1.symbols
File metadata and controls
85 lines (70 loc) · 4.23 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
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
82
83
84
85
//// [tests/cases/conformance/salsa/staticPropertyAssignmentInherited1.ts] ////
=== staticPropertyAssignmentInherited1.js ===
let v = Math.random() ? '' : Math.random() ? 0 : undefined;
>v : Symbol(v, Decl(staticPropertyAssignmentInherited1.js, 0, 3))
>Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --))
>Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
>random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --))
>Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --))
>Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
>random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --))
>undefined : Symbol(undefined)
class Base {
>Base : Symbol(Base, Decl(staticPropertyAssignmentInherited1.js, 0, 59))
static value1 = v;
>value1 : Symbol(Base.value1, Decl(staticPropertyAssignmentInherited1.js, 2, 12))
>v : Symbol(v, Decl(staticPropertyAssignmentInherited1.js, 0, 3))
static value2 = v;
>value2 : Symbol(Base.value2, Decl(staticPropertyAssignmentInherited1.js, 3, 20))
>v : Symbol(v, Decl(staticPropertyAssignmentInherited1.js, 0, 3))
static value3 = v;
>value3 : Symbol(Base.value3, Decl(staticPropertyAssignmentInherited1.js, 4, 20))
>v : Symbol(v, Decl(staticPropertyAssignmentInherited1.js, 0, 3))
}
class Derived extends Base {
>Derived : Symbol(Derived, Decl(staticPropertyAssignmentInherited1.js, 6, 1))
>Base : Symbol(Base, Decl(staticPropertyAssignmentInherited1.js, 0, 59))
static {
this.value1 = 10;
>this.value1 : Symbol(Derived.value1, Decl(staticPropertyAssignmentInherited1.js, 9, 10))
>this : Symbol(Derived, Decl(staticPropertyAssignmentInherited1.js, 6, 1))
>value1 : Symbol(Derived.value1, Decl(staticPropertyAssignmentInherited1.js, 9, 10))
this.value4 = {
>this.value4 : Symbol(Derived.value4, Decl(staticPropertyAssignmentInherited1.js, 10, 21))
>this : Symbol(Derived, Decl(staticPropertyAssignmentInherited1.js, 6, 1))
>value4 : Symbol(Derived.value4, Decl(staticPropertyAssignmentInherited1.js, 10, 21))
[this.value2 = 20]: ''
>[this.value2 = 20] : Symbol([this.value2 = 20], Decl(staticPropertyAssignmentInherited1.js, 11, 19))
>this.value2 : Symbol(Derived.value2, Decl(staticPropertyAssignmentInherited1.js, 12, 7))
>this : Symbol(Derived, Decl(staticPropertyAssignmentInherited1.js, 6, 1))
>value2 : Symbol(Derived.value2, Decl(staticPropertyAssignmentInherited1.js, 12, 7))
}
this.value5 = {
>this.value5 : Symbol(Derived.value5, Decl(staticPropertyAssignmentInherited1.js, 13, 5))
>this : Symbol(Derived, Decl(staticPropertyAssignmentInherited1.js, 6, 1))
>value5 : Symbol(Derived.value5, Decl(staticPropertyAssignmentInherited1.js, 13, 5))
get [this.value3 = 30]() { return ''; }
>[this.value3 = 30] : Symbol([this.value3 = 30], Decl(staticPropertyAssignmentInherited1.js, 14, 19))
>this.value3 : Symbol(Derived.value3, Decl(staticPropertyAssignmentInherited1.js, 15, 11))
>this : Symbol(Derived, Decl(staticPropertyAssignmentInherited1.js, 6, 1))
>value3 : Symbol(Derived.value3, Decl(staticPropertyAssignmentInherited1.js, 15, 11))
}
}
}
/** @param {typeof Derived} cls */
function test(cls) {
>test : Symbol(test, Decl(staticPropertyAssignmentInherited1.js, 18, 1))
>cls : Symbol(cls, Decl(staticPropertyAssignmentInherited1.js, 21, 14))
cls.value1;
>cls.value1 : Symbol(Derived.value1, Decl(staticPropertyAssignmentInherited1.js, 9, 10))
>cls : Symbol(cls, Decl(staticPropertyAssignmentInherited1.js, 21, 14))
>value1 : Symbol(Derived.value1, Decl(staticPropertyAssignmentInherited1.js, 9, 10))
cls.value2;
>cls.value2 : Symbol(Derived.value2, Decl(staticPropertyAssignmentInherited1.js, 12, 7))
>cls : Symbol(cls, Decl(staticPropertyAssignmentInherited1.js, 21, 14))
>value2 : Symbol(Derived.value2, Decl(staticPropertyAssignmentInherited1.js, 12, 7))
cls.value3;
>cls.value3 : Symbol(Derived.value3, Decl(staticPropertyAssignmentInherited1.js, 15, 11))
>cls : Symbol(cls, Decl(staticPropertyAssignmentInherited1.js, 21, 14))
>value3 : Symbol(Derived.value3, Decl(staticPropertyAssignmentInherited1.js, 15, 11))
}