JSDOC/ScopeParser.vala
authorAlan Knowles <alan@roojs.com>
Fri, 6 Nov 2015 08:44:37 +0000 (16:44 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 6 Nov 2015 08:44:37 +0000 (16:44 +0800)
JSDOC/ScopeParser.vala

index bab64ae..74091fe 100644 (file)
@@ -252,7 +252,7 @@ namespace JSDOC {
                         //this.logR("parseScope GOT VAR  : <B>" + token.toString() + "</B>"); 
                         if (token.type != "NAME") {
                                
-                            for(var i = Int.max(this.ts.cursor-10,0); i < this.ts.cursor+1; i++) {
+                            for(var i = int.max(this.ts.cursor-10,0); i < this.ts.cursor+1; i++) {
                                 print(this.ts.tokens[i].toString());
                             }
                             
@@ -554,7 +554,7 @@ namespace JSDOC {
         //print("<<<<<<<EXIT SCOPE ERR?" +this.scopes.length);
     }
 
-    expN : 0,
+    int expN : 0,
     parseExpression : function(scope) {
 
         // Parse the expression until we encounter a comma or a semi-colon