lib/panino/plugins/parsers/javascript/jsd/ast_esprima.js
function apply_autodetected(m, ast, inheritable) {
  docset = find_docset(ast);
  var inheritable = inheritable || true;
  
  if (!docset || docset["type"] != "doc_comment") {
    if (inheritable)
      m["inheritdoc"] = {};
    else
      m["private"] = true;
      
    m["autodetected"] = true;
  }

  if (docset) {
    docset["code"] = m;
    return false;
  }
  else {
    // Get line number from third place at range array.
    // This third item exists in forked EsprimaJS at
    // https://github.com/nene/esprima/tree/linenr-in-range
    m["linenr"] = ast["range"][2];
    return true;
  }
}
function apply_autodetected(m, ast, inheritable) {
  docset = find_docset(ast);
  var inheritable = inheritable || true;
  
  if (!docset || docset["type"] != "doc_comment") {
    if (inheritable)
      m["inheritdoc"] = {};
    else
      m["private"] = true;
      
    m["autodetected"] = true;
  }

  if (docset) {
    docset["code"] = m;
    return false;
  }
  else {
    // Get line number from third place at range array.
    // This third item exists in forked EsprimaJS at
    // https://github.com/nene/esprima/tree/linenr-in-range
    m["linenr"] = ast["range"][2];
    return true;
  }
}
function apply_autodetected ( m , ast , inheritable ) { docset = find_docset ( ast ) ; var inheritable = inheritable || true ; if ( ! docset || docset [ "type" ] != "doc_comment" ) { if ( inheritable ) m [ "inheritdoc" ] = { } ; else m [ "private" ] = true ; m [ "autodetected" ] = true ; } if ( docset ) { docset [ "code" ] = m ; return false ; } else { // Get line number from third place at range array. // This third item exists in forked EsprimaJS at // https://github.com/nene/esprima/tree/linenr-in-range m [ "linenr" ] = ast [ "range" ] [ 2 ] ; return true ; } }
When member has a comment, adds code to the related docset and returns false. Otherwise detects the line number of member and returns true.
When member has a comment adds code to the related docset and returns false . Otherwise detects the line number of member and returns true .