JSDOC/TokenReader.js
[gnome.introspection-doc-generator] / JSDOC / Scope.vala
index a168cae..5397009 100644 (file)
@@ -243,7 +243,7 @@ namespace JSDOC
                                return;
                        }
                        
-                   string[] all;
+                   string[] all = {};
                    var iter = this.identifiers.map_iterator();
                    while (iter.next()) {
                        all += iter.get_key();
@@ -352,12 +352,12 @@ namespace JSDOC
                        Scope.ones = "A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z".split(",");
                        var n = "A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,0,1,2,3,4,5,6,7,8,9".split(",");
 
-
+                       string[] twos = {};
                        for(var i = 0; i < Scope.ones.length; i++) {
                            for(var j = 0; j < n.length; j++) {
                                string tw = Scope.ones[i] + n[j];
                                if (Scope.skips.index_of(tw) < 0) {
-                                   Scope.twos += tw;
+                                   twos += tw;
                                }
                                    
                                /*
@@ -373,6 +373,7 @@ namespace JSDOC
                                */
                            }
                        }
+                       Scope.twos = twos;
                        //println("done creating var list");
                        //println("threes="+ this.threes.toSource());
                        //throw "DONE";