|
| 1 | +=== tests/cases/conformance/salsa/thisPropertyAssignmentCircular.js === |
| 2 | +export class Foo { |
| 3 | +>Foo : Symbol(Foo, Decl(thisPropertyAssignmentCircular.js, 0, 0)) |
| 4 | + |
| 5 | + constructor() { |
| 6 | + this.foo = "Hello"; |
| 7 | +>this.foo : Symbol(Foo.foo, Decl(thisPropertyAssignmentCircular.js, 1, 19), Decl(thisPropertyAssignmentCircular.js, 4, 14)) |
| 8 | +>this : Symbol(Foo, Decl(thisPropertyAssignmentCircular.js, 0, 0)) |
| 9 | +>foo : Symbol(Foo.foo, Decl(thisPropertyAssignmentCircular.js, 1, 19), Decl(thisPropertyAssignmentCircular.js, 4, 14)) |
| 10 | + } |
| 11 | + slicey() { |
| 12 | +>slicey : Symbol(Foo.slicey, Decl(thisPropertyAssignmentCircular.js, 3, 5)) |
| 13 | + |
| 14 | + this.foo = this.foo.slice(); |
| 15 | +>this.foo : Symbol(Foo.foo, Decl(thisPropertyAssignmentCircular.js, 1, 19), Decl(thisPropertyAssignmentCircular.js, 4, 14)) |
| 16 | +>this : Symbol(Foo, Decl(thisPropertyAssignmentCircular.js, 0, 0)) |
| 17 | +>foo : Symbol(Foo.foo, Decl(thisPropertyAssignmentCircular.js, 1, 19), Decl(thisPropertyAssignmentCircular.js, 4, 14)) |
| 18 | +>this.foo.slice : Symbol(String.slice, Decl(lib.es5.d.ts, --, --)) |
| 19 | +>this.foo : Symbol(Foo.foo, Decl(thisPropertyAssignmentCircular.js, 1, 19), Decl(thisPropertyAssignmentCircular.js, 4, 14)) |
| 20 | +>this : Symbol(Foo, Decl(thisPropertyAssignmentCircular.js, 0, 0)) |
| 21 | +>foo : Symbol(Foo.foo, Decl(thisPropertyAssignmentCircular.js, 1, 19), Decl(thisPropertyAssignmentCircular.js, 4, 14)) |
| 22 | +>slice : Symbol(String.slice, Decl(lib.es5.d.ts, --, --)) |
| 23 | + } |
| 24 | + m() { |
| 25 | +>m : Symbol(Foo.m, Decl(thisPropertyAssignmentCircular.js, 6, 5)) |
| 26 | + |
| 27 | + this.foo |
| 28 | +>this.foo : Symbol(Foo.foo, Decl(thisPropertyAssignmentCircular.js, 1, 19), Decl(thisPropertyAssignmentCircular.js, 4, 14)) |
| 29 | +>this : Symbol(Foo, Decl(thisPropertyAssignmentCircular.js, 0, 0)) |
| 30 | +>foo : Symbol(Foo.foo, Decl(thisPropertyAssignmentCircular.js, 1, 19), Decl(thisPropertyAssignmentCircular.js, 4, 14)) |
| 31 | + } |
| 32 | +} |
| 33 | + |
| 34 | +/** @class */ |
| 35 | +function C() { |
| 36 | +>C : Symbol(C, Decl(thisPropertyAssignmentCircular.js, 10, 1)) |
| 37 | + |
| 38 | + this.x = 0; |
| 39 | +>this.x : Symbol(C.x, Decl(thisPropertyAssignmentCircular.js, 13, 14), Decl(thisPropertyAssignmentCircular.js, 14, 15)) |
| 40 | +>this : Symbol(C, Decl(thisPropertyAssignmentCircular.js, 10, 1)) |
| 41 | +>x : Symbol(C.x, Decl(thisPropertyAssignmentCircular.js, 13, 14), Decl(thisPropertyAssignmentCircular.js, 14, 15)) |
| 42 | + |
| 43 | + this.x = function() { this.x.toString(); } |
| 44 | +>this.x : Symbol(C.x, Decl(thisPropertyAssignmentCircular.js, 13, 14), Decl(thisPropertyAssignmentCircular.js, 14, 15)) |
| 45 | +>this : Symbol(C, Decl(thisPropertyAssignmentCircular.js, 10, 1)) |
| 46 | +>x : Symbol(C.x, Decl(thisPropertyAssignmentCircular.js, 13, 14), Decl(thisPropertyAssignmentCircular.js, 14, 15)) |
| 47 | +>this.x : Symbol(C.x, Decl(thisPropertyAssignmentCircular.js, 13, 14), Decl(thisPropertyAssignmentCircular.js, 14, 15)) |
| 48 | +>this : Symbol(C, Decl(thisPropertyAssignmentCircular.js, 10, 1)) |
| 49 | +>x : Symbol(C.x, Decl(thisPropertyAssignmentCircular.js, 13, 14), Decl(thisPropertyAssignmentCircular.js, 14, 15)) |
| 50 | +} |
| 51 | + |
0 commit comments