46 lines
1 KiB
Text
46 lines
1 KiB
Text
=== 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
|
|
};
|
|
|