MCPcopy
hub / github.com/jsdoc/jsdoc / postProcess

Method postProcess

lib/jsdoc/doclet.js:286–316  ·  view source on GitHub ↗

Called once after all tags have been added.

()

Source from the content-addressed store, hash-verified

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.

Callers 5

constructorMethod · 0.95
processAliasFunction · 0.80
findSymbolMemberofFunction · 0.80
newSymbolDocletFunction · 0.80
handlers.jsFile · 0.80

Calls 4

setLongnameMethod · 0.95
addTagMethod · 0.95
codeToKindFunction · 0.85
testMethod · 0.80

Tested by

no test coverage detected