lib/entry.js
function getValue(entry, tagName) {
  var parsed = entry.parsed,
      result = parsed.description,
      tag = getTag(entry, tagName);

  if (tagName == 'alias') {
    result = _.get(tag, 'name') ;

    // Doctrine can't parse alias tags containing multiple values so extract
    // them from the error message.
    var error = _.first(_.get(tag, 'errors'));
    if (error) {
      result += error.replace(/^[^']*'|'[^']*$/g, '');
    }
  }
  else if (tagName == 'type') {
    result = _.get(tag, 'type.name');
  }
  else if (tagName != 'description') {
    result = _.get(tag, 'name') || _.get(tag, 'description');
  }
  return tagName == 'example'
    ? _.toString(result)
    : util.format(result);
}
function getValue(entry, tagName) {
  var parsed = entry.parsed,
      result = parsed.description,
      tag = getTag(entry, tagName);

  if (tagName == 'alias') {
    result = _.get(tag, 'name') ;

    // Doctrine can't parse alias tags containing multiple values so extract
    // them from the error message.
    var error = _.first(_.get(tag, 'errors'));
    if (error) {
      result += error.replace(/^[^']*'|'[^']*$/g, '');
    }
  }
  else if (tagName == 'type') {
    result = _.get(tag, 'type.name');
  }
  else if (tagName != 'description') {
    result = _.get(tag, 'name') || _.get(tag, 'description');
  }
  return tagName == 'example'
    ? _.toString(result)
    : util.format(result);
}
function getValue ( entry , tagName ) { var parsed = entry . parsed , result = parsed . description , tag = getTag ( entry , tagName ) ; if ( tagName == 'alias' ) { result = _ . get ( tag , 'name' ) ; // Doctrine can't parse alias tags containing multiple values so extract // them from the error message. var error = _ . first ( _ . get ( tag , 'errors' ) ) ; if ( error ) { result += error . replace ( / ^[^']*'|'[^']*$ / g , '' ) ; } } else if ( tagName == 'type' ) { result = _ . get ( tag , 'type.name' ) ; } else if ( tagName != 'description' ) { result = _ . get ( tag , 'name' ) || _ . get ( tag , 'description' ) ; } return tagName == 'example' ? _ . toString ( result ) : util . format ( result ) ; }
Gets an `entry` tag value by `tagName`.

@private
@param {Object} entry The entry to inspect.
@param {string} tagName The name of the tag.
@returns {string} Returns the tag value.
Gets an entry tag value by tagName .