Changed src/JsRender/NodeToValaWrapped.vala
authorAlan Knowles <alan@roojs.com>
Sat, 3 Feb 2024 09:56:44 +0000 (17:56 +0800)
committerAlan Knowles <alan@roojs.com>
Sat, 3 Feb 2024 09:56:44 +0000 (17:56 +0800)
src/JsRender/NodeToValaWrapped.vala

index a641c69..c232099 100644 (file)
@@ -56,12 +56,13 @@ public class JsRender.NodeToValaWrapped : NodeToVala {
        {
                //return this.mungeToString(this.node);
                if (this.node.as_source_version > 0 && 
-                       this.node.as_source_version == this.node.updated_count
+                       this.node.as_source_version == this.node.updated_count &&
+                       this.node_as_source_start_line == cur_line
                        && this.node.as_source != ""
                ) {
                        return this.node.as_source;
                }
-       
+               this.node_as_source_start_line = cur_line;
                
                this.namespaceHeader();
                this.globalVars();
@@ -86,7 +87,7 @@ public class JsRender.NodeToValaWrapped : NodeToVala {
                this.iterChildren();
                this.namespaceFooter();
                
-               
+               this.node_as_source_end_line = cur_line;
                this.node.as_source_version = this.node.updated_count;
                this.node.as_source == this.ret;
                return this.ret;