Called once after all tags have been added.
()
| 284 | |
| 285 | /** Called once after all tags have been added. */ |
| 286 | postProcess() { |
| 287 | let i; |
| 288 | let l; |
| 289 | |
| 290 | if (!this.preserveName) { |
| 291 | jsdoc.name.resolve(this); |
| 292 | } |
| 293 | if (this.name && !this.longname) { |
| 294 | this.setLongname(this.name); |
| 295 | } |
| 296 | if (this.memberof === '') { |
| 297 | delete this.memberof; |
| 298 | } |
| 299 | |
| 300 | if (!this.kind && this.meta && this.meta.code) { |
| 301 | this.addTag( 'kind', codeToKind(this.meta.code) ); |
| 302 | } |
| 303 | |
| 304 | if (this.variation && this.longname && !/\)$/.test(this.longname) ) { |
| 305 | this.longname += `(${this.variation})`; |
| 306 | } |
| 307 | |
| 308 | // add in any missing param names |
| 309 | if (this.params && this.meta && this.meta.code && this.meta.code.paramnames) { |
| 310 | for (i = 0, l = this.params.length; i < l; i++) { |
| 311 | if (!this.params[i].name) { |
| 312 | this.params[i].name = this.meta.code.paramnames[i] || ''; |
| 313 | } |
| 314 | } |
| 315 | } |
| 316 | } |
| 317 | |
| 318 | /** |
| 319 | * Add a tag to the doclet. |
no test coverage detected