Option name | Type | Description |
---|---|---|
symbols | Array | array of symbols |
file | String | filename |
Return the structure of a parsed file
function structure(symbols, file){
return _.compact(symbols.map(function(method){
if (!method.ctx || !method.ctx.name){return null;}
return {
targetFile:file,
name:method.ctx.name,
type:method.ctx.type
};
})) || [];
}