forked from microsoft/TypeScript
/
definePropertyES5.symbols
37 lines (28 loc) · 1.19 KB
/
definePropertyES5.symbols
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
=== tests/cases/conformance/classes/propertyMemberDeclarations/definePropertyES5.ts ===
var x: "p" = "p"
>x : Symbol(x, Decl(definePropertyES5.ts, 0, 3))
class A {
>A : Symbol(A, Decl(definePropertyES5.ts, 0, 16))
a = this.y
>a : Symbol(A.a, Decl(definePropertyES5.ts, 1, 9))
>this.y : Symbol(A.y, Decl(definePropertyES5.ts, 7, 16))
>this : Symbol(A, Decl(definePropertyES5.ts, 0, 16))
>y : Symbol(A.y, Decl(definePropertyES5.ts, 7, 16))
b
>b : Symbol(A.b, Decl(definePropertyES5.ts, 2, 14))
["computed"] = 13
>["computed"] : Symbol(A["computed"], Decl(definePropertyES5.ts, 3, 5))
>"computed" : Symbol(A["computed"], Decl(definePropertyES5.ts, 3, 5))
;[x] = 14
>[x] : Symbol(A[x], Decl(definePropertyES5.ts, 5, 5))
>x : Symbol(x, Decl(definePropertyES5.ts, 0, 3))
m() { }
>m : Symbol(A.m, Decl(definePropertyES5.ts, 5, 13))
constructor(public readonly y: number) { }
>y : Symbol(A.y, Decl(definePropertyES5.ts, 7, 16))
z = this.y
>z : Symbol(A.z, Decl(definePropertyES5.ts, 7, 46))
>this.y : Symbol(A.y, Decl(definePropertyES5.ts, 7, 16))
>this : Symbol(A, Decl(definePropertyES5.ts, 0, 16))
>y : Symbol(A.y, Decl(definePropertyES5.ts, 7, 16))
}