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
|
=== tests/cases/compiler/declFileObjectLiteralWithAccessors.ts ===
function /*1*/makePoint(x: number) {
>makePoint : Symbol(makePoint, Decl(declFileObjectLiteralWithAccessors.ts, 0, 0))
>x : Symbol(x, Decl(declFileObjectLiteralWithAccessors.ts, 0, 24))
return {
b: 10,
>b : Symbol(b, Decl(declFileObjectLiteralWithAccessors.ts, 1, 12))
get x() { return x; },
>x : Symbol(x, Decl(declFileObjectLiteralWithAccessors.ts, 2, 14), Decl(declFileObjectLiteralWithAccessors.ts, 3, 30))
>x : Symbol(x, Decl(declFileObjectLiteralWithAccessors.ts, 0, 24))
set x(a: number) { this.b = a; }
>x : Symbol(x, Decl(declFileObjectLiteralWithAccessors.ts, 2, 14), Decl(declFileObjectLiteralWithAccessors.ts, 3, 30))
>a : Symbol(a, Decl(declFileObjectLiteralWithAccessors.ts, 4, 14))
>a : Symbol(a, Decl(declFileObjectLiteralWithAccessors.ts, 4, 14))
};
};
var /*4*/point = makePoint(2);
>point : Symbol(point, Decl(declFileObjectLiteralWithAccessors.ts, 7, 3))
>makePoint : Symbol(makePoint, Decl(declFileObjectLiteralWithAccessors.ts, 0, 0))
var /*2*/x = point.x;
>x : Symbol(x, Decl(declFileObjectLiteralWithAccessors.ts, 8, 3))
>point.x : Symbol(x, Decl(declFileObjectLiteralWithAccessors.ts, 2, 14), Decl(declFileObjectLiteralWithAccessors.ts, 3, 30))
>point : Symbol(point, Decl(declFileObjectLiteralWithAccessors.ts, 7, 3))
>x : Symbol(x, Decl(declFileObjectLiteralWithAccessors.ts, 2, 14), Decl(declFileObjectLiteralWithAccessors.ts, 3, 30))
point./*3*/x = 30;
>point./*3*/x : Symbol(x, Decl(declFileObjectLiteralWithAccessors.ts, 2, 14), Decl(declFileObjectLiteralWithAccessors.ts, 3, 30))
>point : Symbol(point, Decl(declFileObjectLiteralWithAccessors.ts, 7, 3))
>x : Symbol(x, Decl(declFileObjectLiteralWithAccessors.ts, 2, 14), Decl(declFileObjectLiteralWithAccessors.ts, 3, 30))
|