diff --git a/package.json b/package.json index e1124327..b39343b6 100644 --- a/package.json +++ b/package.json @@ -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": [ diff --git a/rhino_modules/jsdoc/src/parser.js b/rhino_modules/jsdoc/src/parser.js index 8ad6e573..23187570 100644 --- a/rhino_modules/jsdoc/src/parser.js +++ b/rhino_modules/jsdoc/src/parser.js @@ -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)