fix vala code gen
authorAlan <alan@roojs.com>
Thu, 9 Jun 2022 08:18:18 +0000 (16:18 +0800)
committerAlan <alan@roojs.com>
Thu, 9 Jun 2022 08:18:18 +0000 (16:18 +0800)
src/Builder4/Editor.bjs
src/Builder4/Editor.vala
src/JsRender/NodeToVala.vala

index ecf5411..c485ade 100644 (file)
    ],
    "| void forwardSearch" : [
     "(bool change_focus) {",
-    "",
+    " ",
     "\tif (this.searchcontext == null) {",
     "\t\treturn;",
     "\t}",
index 6e09c4e..2db0296 100644 (file)
@@ -151,7 +151,7 @@ public class Editor : Object
     
     }
     public void forwardSearch (bool change_focus) {
-    
+     
        if (this.searchcontext == null) {
                return;
        }
index d4ab721..76108dc 100644 (file)
@@ -356,7 +356,7 @@ public class JsRender.NodeToVala : Object {
                        
                        this.node.setLine(this.cur_line, "p", prop.name);
                        
-                       this.addLine(this.pad + "public " + prop.name + ";"); // definer - does not include value.
+                       this.addLine(this.pad + "public " + prop.rtype + " " + prop.name + ";"); // definer - does not include value.
 
 
                        prop.end_line = this.cur_line;