code: function groups_to_docsets(groups, docset) {
    var results = [{
      "tagname": "class",
      "type": docset["type"],
      "comment": groups["class"],
      "code": docset["code"],
      "linenr": docset["linenr"]
    }];
  
    _.each(groups["cfg"], function(cfg) {
      results.push({
        "tagname": "cfg",
        "type": docset["type"],
        "comment": cfg,
        "code": {},
        "linenr": docset["linenr"]
      });
    });
  
    if (groups["Constructor"].length > 0) {
      // Remember that a constructor is already found and ignore if a
      // constructor is detected from code.
      var constructor_found = true
  
      results.push({
        "tagname": "method",
        "type": docset["type"],
        "comment": groups["Constructor"],
        "code": {},
        "linenr": docset["linenr"]
      });
    }
    
    return results;
  }
docs: Turns groups hash into list of docsets