src/ExportMap.js
function captureJsDoc(comments) {
  let doc

  // capture XSDoc
  comments.forEach(comment => {
    // skip non-block comments
    if (comment.type !== 'Block') return
    try {
      doc = doctrine.parse(comment.value, { unwrap: true })
    } catch (err) {
      /* don't care, for now? maybe add to `errors?` */
    }
  })

  return doc
}
function captureJsDoc(comments) {
  let doc

  // capture XSDoc
  comments.forEach(comment => {
    // skip non-block comments
    if (comment.type !== 'Block') return
    try {
      doc = doctrine.parse(comment.value, { unwrap: true })
    } catch (err) {
      /* don't care, for now? maybe add to `errors?` */
    }
  })

  return doc
}
function captureJsDoc ( comments ) { let doc // capture XSDoc comments . forEach ( comment => { // skip non-block comments if ( comment . type !== 'Block' ) return try { doc = doctrine . parse ( comment . value , { unwrap : true } ) } catch ( err ) { /* don't care, for now? maybe add to `errors?` */ } } ) return doc }
parse JSDoc from leading comments
@param  {...[type]} comments [description]
@return {{doc: object}}
parse JSDoc from leading comments