template/util/template.js
function docletChildren(context, doclet, kinds) {
  if (!kinds) {
    kinds = mainDocletKinds;
  }
  var results = {};
  _.each(kinds, function(k) {
    var q = {
      kind: k,
      memberof: doclet ? doclet.longname : {isUndefined: true}
    };
    results[k] = helper.find(context.data, q);
  });
  logger.debug((doclet ? doclet.longname : '<global>'),
               'doclet children',
               'kinds:', kinds,
               'results:', results);
  return results;
}
function docletChildren(context, doclet, kinds) {
  if (!kinds) {
    kinds = mainDocletKinds;
  }
  var results = {};
  _.each(kinds, function(k) {
    var q = {
      kind: k,
      memberof: doclet ? doclet.longname : {isUndefined: true}
    };
    results[k] = helper.find(context.data, q);
  });
  logger.debug((doclet ? doclet.longname : '<global>'),
               'doclet children',
               'kinds:', kinds,
               'results:', results);
  return results;
}
function docletChildren ( context , doclet , kinds ) { if ( ! kinds ) { kinds = mainDocletKinds ; } var results = { } ; _ . each ( kinds , function ( k ) { var q = { kind : k , memberof : doclet ? doclet . longname : { isUndefined : true } } ; results [ k ] = helper . find ( context . data , q ) ; } ) ; logger . debug ( ( doclet ? doclet . longname : '<global>' ) , 'doclet children' , 'kinds:' , kinds , 'results:' , results ) ; return results ; }
Find the doclet children of a given type.

@param  {object} context the jsdoc context
@param  {object} doclet  the doclet to use
@param  {string} kinds   the kind of children to return (function, module, ...)
@return {array}          All the children doclet matching the parameters
Find the doclet children of a given type .