JSDOC/Walker2.js
[gnome.introspection-doc-generator] / JSDOC / TokenReader.js
index 6a71e19..9c95240 100644 (file)
@@ -149,7 +149,7 @@ TokenReader = XObject.define(
          */
         read_newline : function(/**JSDOC.TokenStream*/stream, tokens) {
             var found = "";
-            
+            var line = this.line;
             while (!stream.look().eof && Lang.isNewline(stream.look())) {
                 this.line++;
                 found += stream.next();
@@ -168,7 +168,7 @@ TokenReader = XObject.define(
                     tokens.push(last);
                 }
                 
-                tokens.push(new Token(found, "WHIT", "NEWLINE", this.line));
+                tokens.push(new Token(found, "WHIT", "NEWLINE", line));
             }
             return true;
         },