From d4c1bf951401d8a940fb4eeea6c9b5f22ecb22fd Mon Sep 17 00:00:00 2001 From: Peter Droogmans Date: Sun, 27 Jan 2013 20:12:12 +0100 Subject: [PATCH 1/3] removed lineno added back --- lib/jsdoc/doclet.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/jsdoc/doclet.js b/lib/jsdoc/doclet.js index c9a04e77..c096b04f 100644 --- a/lib/jsdoc/doclet.js +++ b/lib/jsdoc/doclet.js @@ -278,7 +278,14 @@ exports.Doclet.prototype.setMeta = function(meta) { */ this.meta = {}; } - + + if (meta.lineno) { + /** + The line number of the code associated with this doclet. + @type number + */ + this.meta.lineno = meta.lineno; + } if (meta.range) { /** The positions of the first and last characters of the code associated with this doclet. From 787741314d08f95b2d8e5a795365504c98e166ea Mon Sep 17 00:00:00 2001 From: Peter Droogmans Date: Sun, 27 Jan 2013 21:29:42 +0100 Subject: [PATCH 2/3] Revert "removed lineno added back" This reverts commit d4c1bf951401d8a940fb4eeea6c9b5f22ecb22fd. --- lib/jsdoc/doclet.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/jsdoc/doclet.js b/lib/jsdoc/doclet.js index c096b04f..c9a04e77 100644 --- a/lib/jsdoc/doclet.js +++ b/lib/jsdoc/doclet.js @@ -278,14 +278,7 @@ exports.Doclet.prototype.setMeta = function(meta) { */ this.meta = {}; } - - if (meta.lineno) { - /** - The line number of the code associated with this doclet. - @type number - */ - this.meta.lineno = meta.lineno; - } + if (meta.range) { /** The positions of the first and last characters of the code associated with this doclet. From 151a38a344c887b4ba533c1ccdf1f5d6bd73ca41 Mon Sep 17 00:00:00 2001 From: Peter Droogmans Date: Sun, 27 Jan 2013 21:32:15 +0100 Subject: [PATCH 3/3] removed lineno added back --- lib/jsdoc/doclet.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/jsdoc/doclet.js b/lib/jsdoc/doclet.js index c9a04e77..4d6f8f5a 100644 --- a/lib/jsdoc/doclet.js +++ b/lib/jsdoc/doclet.js @@ -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 !== '.') {