2015-02-03 00:15:54 +01:00
|
|
|
//// [commentOnClassAccessor2.ts]
|
|
|
|
class C {
|
|
|
|
/**
|
|
|
|
* Getter.
|
|
|
|
*/
|
|
|
|
get bar(): number { return 1;}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Setter.
|
|
|
|
*/
|
|
|
|
set bar(v) { }
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [commentOnClassAccessor2.js]
|
|
|
|
var C = (function () {
|
|
|
|
function C() {
|
|
|
|
}
|
|
|
|
Object.defineProperty(C.prototype, "bar", {
|
|
|
|
/**
|
|
|
|
* Getter.
|
|
|
|
*/
|
2015-02-07 05:03:24 +01:00
|
|
|
get: function () { return 1; },
|
2015-02-03 00:15:54 +01:00
|
|
|
/**
|
|
|
|
* Setter.
|
|
|
|
*/
|
2015-02-07 03:45:09 +01:00
|
|
|
set: function (v) { },
|
2015-02-03 00:15:54 +01:00
|
|
|
enumerable: true,
|
|
|
|
configurable: true
|
|
|
|
});
|
|
|
|
return C;
|
|
|
|
})();
|