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
|
=== tests/cases/compiler/commentsOnObjectLiteral3.ts ===
var v = {
>v : Symbol(v, Decl(commentsOnObjectLiteral3.ts, 0, 3))
//property
prop: 1 /* multiple trailing comments */ /*trailing comments*/,
>prop : Symbol(prop, Decl(commentsOnObjectLiteral3.ts, 0, 9))
//property
func: function () {
>func : Symbol(func, Decl(commentsOnObjectLiteral3.ts, 2, 64))
},
//PropertyName + CallSignature
func1() { },
>func1 : Symbol(func1, Decl(commentsOnObjectLiteral3.ts, 5, 3))
//getter
get a() {
>a : Symbol(a, Decl(commentsOnObjectLiteral3.ts, 7, 13), Decl(commentsOnObjectLiteral3.ts, 11, 18))
return this.prop;
} /*trailing 1*/,
//setter
set a(value) {
>a : Symbol(a, Decl(commentsOnObjectLiteral3.ts, 7, 13), Decl(commentsOnObjectLiteral3.ts, 11, 18))
>value : Symbol(value, Decl(commentsOnObjectLiteral3.ts, 13, 7))
this.prop = value;
>value : Symbol(value, Decl(commentsOnObjectLiteral3.ts, 13, 7))
} // trailing 2
};
|