src/Palete/Palete.vala
authorAlan Knowles <alan@roojs.com>
Fri, 15 May 2015 06:14:19 +0000 (14:14 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 15 May 2015 06:14:19 +0000 (14:14 +0800)
src/Palete/Palete.vala

index 9795e6c..bf7ff65 100644 (file)
@@ -334,30 +334,28 @@ namespace Palete
        {   
 
                 print("validate code (%s) %s\n", file.language, code);
-                var ret = new Gee.HashMap<int,string>();
+                
                
                 
                if (file.language != "vala" ) { // not sure if we need to validate property
-                       return ret;
+                       return;
                }
                // file.project , file.path, file.build_module, ""
-               public ValaSource(Project.Gtk project, string filepath, string build_module, string original_filepath) {
+               
                
-               
-               this.vs = new ValaSource(file.project, file.filepath, file.build_module, "");
+               this.vs = new ValaSource(file.project, file.path, file.build_module, "");
                //var cd = new JSCore.ClassDefinitionEmpty();
-                vs.checkFileWithNodePropChange(
+               vs.checkFileWithNodePropChange(
                                node, 
                                property, 
                                ptype,
                                code,
                                (res) => { 
-                                       print("go result");
+                                       print("got result");
                                }
                                        
                 );
                 
-               return ret;
 
        }
        public   Gee.HashMap<int,string>  validateJavascript(