Fix #5829 - Messing around with flutter API
[roobuilder] / src / Palete / Palete.vala
index 8a744e3..f29cc01 100644 (file)
@@ -44,7 +44,7 @@ namespace Palete
 
        
 
-    static Gee.HashMap<string,Palete>? cache = null;
+   //static Gee.HashMap<string,Palete>? cache = null;
     
     /*
     public static Palete factory(project)
@@ -105,9 +105,9 @@ namespace Palete
 
             
          
-
+               // this is the old verison using 'Usage'... see flutter for a better version..
            
-               public string[] getChildList(string in_rval)
+               public string[] original_getChildList(string in_rval)
         {
 
                        if (this.map == null) {
@@ -150,7 +150,8 @@ namespace Palete
         }
 
            
-        public string[] getDropList(string rval)
+           
+        public string[] default_getDropList(string rval)
         {
 
                        if (this.map == null) {
@@ -431,12 +432,16 @@ namespace Palete
                        // it should highlight errors before we actually push live the code.
                        
                        // standard error format:  file %s, line %s, Error 
+                       
+                       var cfg = new JSDOC.PackerRun();
+                       cfg.opt_keep_whitespace = false;
+                       cfg.opt_skip_scope = false;
+                       cfg.opt_dump_tokens = false;                    
+                       cfg.opt_clean_cache = false;
+                       
 
-                       var p = new JSDOC.Packer();
-                       p.keepWhite = false;
-                       p.skipScope = false;
-                       p.dumpTokens = false;
-                       p.cleanup = false; 
+                       var p = new JSDOC.Packer(cfg);
+                        
                 
                         
                        p.packFile(code, file.path,"");
@@ -465,6 +470,10 @@ namespace Palete
                                string key,
                                string complete_string
                );
+               public abstract string[] getChildList(string in_rval);
+               public abstract string[] getDropList(string rval);              
+               
+               
        }