projects
/
app.Builder.js
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
eeaf0cc
)
src/JsRender/Node.vala
author
Alan Knowles
<alan@roojs.com>
Mon, 30 May 2016 08:09:47 +0000
(16:09 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 30 May 2016 08:09:47 +0000
(16:09 +0800)
src/JsRender/Node.vala
patch
|
blob
|
history
diff --git
a/src/JsRender/Node.vala
b/src/JsRender/Node.vala
index
7948594
..
bf9ee8b
100644
(file)
--- a/
src/JsRender/Node.vala
+++ b/
src/JsRender/Node.vala
@@
-134,11
+134,13
@@
public class JsRender.Node : Object {
//print("Add node @ %d\n", line);
this.node_lines.add(line);
this.node_lines_map.set(line, node);
//print("Add node @ %d\n", line);
this.node_lines.add(line);
this.node_lines_map.set(line, node);
+
}
public void setLine(int line, string type, string prop) {
this.lines.add(line);
this.line_map.set(line, type + ":" + prop);
}
public void setLine(int line, string type, string prop) {
this.lines.add(line);
this.line_map.set(line, type + ":" + prop);
+ GLib.debug("setLine %d, %s", line, type + ":" + prop);
}
public void sortLines() {
//print("sortLines\n");
}
public void sortLines() {
//print("sortLines\n");
@@
-221,6
+223,16
@@
public class JsRender.Node : Object {
return null;
}
return null;
}
+ void dumpProps(string indent = "")
+ {
+ print("%s:\n" + this.fqn());
+ foreach(int el in this.node_lines) {
+ print("%s %s\n", indent, this.line_map.get(el));
+ }
+ foreach(Node n in this.items) {
+ n.dumpProps(indent + " ");
+ }
+ }