TypeScript/tests/baselines/reference/commentsOnObjectLiteral3.types
2015-04-15 16:44:20 -07:00

47 lines
1 KiB
Plaintext

=== tests/cases/compiler/commentsOnObjectLiteral3.ts ===
var v = {
>v : { prop: number; func: () => void; func1(): void; a: any; }
>{ //property prop: 1 /* multiple trailing comments */ /*trailing comments*/, //property func: function () { }, //PropertyName + CallSignature func1() { }, //getter get a() { return this.prop; } /*trailing 1*/, //setter set a(value) { this.prop = value; } // trailing 2} : { prop: number; func: () => void; func1(): void; a: any; }
//property
prop: 1 /* multiple trailing comments */ /*trailing comments*/,
>prop : number
>1 : number
//property
func: function () {
>func : () => void
>function () { } : () => void
},
//PropertyName + CallSignature
func1() { },
>func1 : () => void
//getter
get a() {
>a : any
return this.prop;
>this.prop : any
>this : any
>prop : any
} /*trailing 1*/,
//setter
set a(value) {
>a : any
>value : any
this.prop = value;
>this.prop = value : any
>this.prop : any
>this : any
>prop : any
>value : any
} // trailing 2
};