src/JsRender/Node.vala
authorAlan Knowles <alan@roojs.com>
Tue, 19 May 2015 06:05:12 +0000 (14:05 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 19 May 2015 06:05:12 +0000 (14:05 +0800)
src/JsRender/Node.vala

index ff2f669..a05accb 100644 (file)
@@ -104,9 +104,9 @@ public class JsRender.Node : Object {
        public string xvala_id; // item id or ""
        public int line_start;
        public int line_end;
+       public Gee.ArrayList<int> lines;
+       public Gee.HashMap<int,string> line_map;
        
-       public Gee.HashMap<string,int> proplines;
-       public Gee.HashMap<string,int> listenlines;
 
 
        public Node()
@@ -120,12 +120,13 @@ public class JsRender.Node : Object {
                this.parent = null;
                this.line_start = -1;
                this.line_end = -1;             
-               this.proplines = new Gee.HashMap<string,int>();
-               this.listenlines = Gee.HashMap<string,int>();
+               this.lines = new Gee.ArrayList();
+               this.line_map = new Gee.HashMap<int,string>();
                
        }
 
        
+       
        public string uid()
        {
                if (this.props.get("id") == null) {