src/JsRender/NodeToVala.vala
authorAlan Knowles <alan@roojs.com>
Tue, 19 May 2015 05:02:47 +0000 (13:02 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 19 May 2015 05:02:47 +0000 (13:02 +0800)
src/JsRender/NodeToVala.vala

index 89bd9ee..68bd97d 100644 (file)
@@ -389,8 +389,9 @@ public class JsRender.NodeToVala : Object {
                        }
        
                if (this.depth < 1) {
+                       this.node.ctorline = this.curline;
                        this.addLine(this.pad + "public " + this.xcls + "(" + 
-                               cargs_str +")\n" + this.pad + "{\n");
+                               cargs_str +")\n" + this.pad + "{");
                } else {
                                
                                        //code