Merge pull request #323 from attiks/lineno_fix

fix missing lineno in doclets (#319)
This commit is contained in:
Jeff Williams 2013-01-27 19:08:32 -08:00
commit 3b08098642

View File

@ -293,6 +293,11 @@ exports.Doclet.prototype.setMeta = function(meta) {
@type string
*/
this.meta.filename = path.basename(meta.filename);
/**
The line number of the code associated with this doclet.
@type number
*/
this.meta.lineno = meta.lineno;
var pathname = path.dirname(meta.filename);
if (pathname && pathname !== '.') {