lib/panino/plugins/parsers/javascript/jsd/ast_esprima.js
function() {
    // First deal only with doc-comments
    doc_comments = _.filter(docs, function(d) {
      return d["type"] == "doc_comment";
    });

    // Detect code in each docset.  Sometimes a docset has already
    // been detected as part of detecting some previous docset (like
    // Class detecting all of its configs) - in such case, skip.
    _.each(doc_comments, function(docset) {
      code = docset["code"];
      
      if ( !(code && code["tagname"]) )
        docset["code"] = detect(code);
      else
        docset["code"] = "";
    });

    // Return all doc-comments + other comments for which related
    // code was detected.
    return _.filter(docs, function(d) {
      return d["type"] == "doc_comment" || d["code"] && d["code"]["tagname"];
    });
  }
function() {
    // First deal only with doc-comments
    doc_comments = _.filter(docs, function(d) {
      return d["type"] == "doc_comment";
    });

    // Detect code in each docset.  Sometimes a docset has already
    // been detected as part of detecting some previous docset (like
    // Class detecting all of its configs) - in such case, skip.
    _.each(doc_comments, function(docset) {
      code = docset["code"];
      
      if ( !(code && code["tagname"]) )
        docset["code"] = detect(code);
      else
        docset["code"] = "";
    });

    // Return all doc-comments + other comments for which related
    // code was detected.
    return _.filter(docs, function(d) {
      return d["type"] == "doc_comment" || d["code"] && d["code"]["tagname"];
    });
  }
function ( ) { // First deal only with doc-comments doc_comments = _ . filter ( docs , function ( d ) { return d [ "type" ] == "doc_comment" ; } ) ; // Detect code in each docset.  Sometimes a docset has already // been detected as part of detecting some previous docset (like // Class detecting all of its configs) - in such case, skip. _ . each ( doc_comments , function ( docset ) { code = docset [ "code" ] ; if ( ! ( code && code [ "tagname" ] ) ) docset [ "code" ] = detect ( code ) ; else docset [ "code" ] = "" ; } ) ; // Return all doc-comments + other comments for which related // code was detected. return _ . filter ( docs , function ( d ) { return d [ "type" ] == "doc_comment" || d [ "code" ] && d [ "code" ] [ "tagname" ] ; } ) ; }
Performs the detection of code in all docsets.  @returns the processed array of docsets. (But it does it destructively by modifying the passed-in docsets.)
Performs the detection of code in all docsets .