Fixed error in reporting the line number of some symbols found in the source code. Closes #48.

This commit is contained in:
Michael Mathews 2011-10-13 22:59:19 +01:00
parent a9963a0167
commit bd7a5631c1
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
{
"name": "JSDoc",
"version": "3.0.0alpha",
"revision": "1318321029363",
"revision": "1318543155292",
"description": "An automatic documentation generator for javascript.",
"keywords": [ "documentation", "javascript" ],
"licenses": [

View File

@ -269,7 +269,7 @@ function visitNode(node) {
e = {
id: 'astnode'+node.hashCode(), // the id of the ASSIGN node
comment: String(node.jsDoc||'@undocumented'),
lineno: node.getLineno(),
lineno: node.left.getLineno(),
filename: currentSourceName,
astnode: node,
code: aboutNode(node)
@ -291,7 +291,7 @@ function visitNode(node) {
e = {
id: 'astnode'+node.hashCode(), // the id of the COLON node
comment: String(node.left.jsDoc||'@undocumented'),
lineno: node.getLineno(),
lineno: node.left.getLineno(),
filename: currentSourceName,
astnode: node,
code: aboutNode(node)