JSDOC/ScopeParser.js
[gnome.introspection-doc-generator] / JSDOC / ScopeParser.js
index a3cffad..dbc42b1 100644 (file)
@@ -303,11 +303,12 @@ ScopeParser.prototype = {
                             var nts = [];
                             while (true) {
                                 var n = this.ts.lookTok();
-                                if (n.data == ',') {
+                                
+                                if (!n || n.type == 'VOID' || n.data == ',') {
                                     break;
                                 }
                                 nts.push(n);
-                                this.nextTok();
+                                this.ts.nextTok();
                             }
                             if (nts.length) {
                                 var TS = this.ts;