annotate-extension
annotate-extension copied to clipboard
Not working inside your own extension
I tried it on your own main.js and it only shows me your no function found alert
function generateComment(fname, params,returnsValue, prefix) {
var output = [];
output.push("/**");
// Assume function is private if it starts with an underscore
if (fname.charAt(0) === "_") {
output.push(" * @private");
}
// Add description
output.push(" * Description");
// Add parameters
if (params.length > 0) {
var i;
for (i = 0; i < params.length; i++) {
var param = params[i];
output.push(" * @param {type} " + param + " Description");
}
}
if (returnsValue) output.push(" * @returns {type} Description");
// TODO use if 'return' is found in the function body?
//output += " * @return {type} ???\n";
output.push(" */");
return prefix + output.join("\n" + prefix) + "\n";
}