2019-12-18 21:58:12 +01:00
|
|
|
// @allowJs: true
|
|
|
|
// @checkJs: true
|
|
|
|
// @target: esnext
|
|
|
|
// @out: foo.js
|
|
|
|
// @declaration: true
|
|
|
|
// @Filename: jsdocAccessibilityTagDeclarations.js
|
|
|
|
class Protected {
|
|
|
|
/** @protected */
|
|
|
|
constructor(c) {
|
|
|
|
/** @protected */
|
|
|
|
this.c = c
|
|
|
|
}
|
|
|
|
/** @protected */
|
|
|
|
m() {
|
|
|
|
return this.c
|
|
|
|
}
|
|
|
|
/** @protected */
|
|
|
|
get p() { return this.c }
|
|
|
|
/** @protected */
|
|
|
|
set p(value) { this.c = value }
|
|
|
|
}
|
|
|
|
|
|
|
|
class Private {
|
|
|
|
/** @private */
|
|
|
|
constructor(c) {
|
|
|
|
/** @private */
|
|
|
|
this.c = c
|
|
|
|
}
|
|
|
|
/** @private */
|
|
|
|
m() {
|
|
|
|
return this.c
|
|
|
|
}
|
|
|
|
/** @private */
|
|
|
|
get p() { return this.c }
|
|
|
|
/** @private */
|
|
|
|
set p(value) { this.c = value }
|
|
|
|
}
|
2020-05-12 00:07:43 +02:00
|
|
|
|
|
|
|
// https://github.com/microsoft/TypeScript/issues/38401
|
|
|
|
class C {
|
|
|
|
constructor(/** @public */ x, /** @protected */ y, /** @private */ z) {
|
|
|
|
}
|
|
|
|
}
|