* 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 = {})
| 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() { |
nothing calls this directly
no test coverage detected