MCPcopy
hub / github.com/jsdoc/jsdoc / constructor

Method constructor

lib/jsdoc/doclet.js:266–283  ·  view source on GitHub ↗

* Create a doclet. * * @param {string} docletSrc - The raw source code of the jsdoc comment. * @param {object=} meta - Properties describing the code related to this comment.

(docletSrc, meta = {})

Source from the content-addressed store, hash-verified

264 * @param {object=} meta - Properties describing the code related to this comment.
265 */
266 constructor(docletSrc, meta = {}) {
267 let newTags = [];
268
269 /** The original text of the comment from the source code. */
270 this.comment = docletSrc;
271 this.setMeta(meta);
272
273 docletSrc = unwrap(docletSrc);
274 docletSrc = fixDescription(docletSrc, meta);
275
276 newTags = toTags.call(this, docletSrc);
277
278 for (let i = 0, l = newTags.length; i < l; i++) {
279 this.addTag(newTags[i].title, newTags[i].text);
280 }
281
282 this.postProcess();
283 }
284
285 /** Called once after all tags have been added. */
286 postProcess() {

Callers

nothing calls this directly

Calls 5

setMetaMethod · 0.95
addTagMethod · 0.95
postProcessMethod · 0.95
unwrapFunction · 0.85
fixDescriptionFunction · 0.85

Tested by

no test coverage detected