projects
/
app.Builder.js
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
resources/RooUsage.txt
[app.Builder.js]
/
src
/
Main.vala
diff --git
a/src/Main.vala
b/src/Main.vala
index
edd851c
..
df5d6f4
100644
(file)
--- a/
src/Main.vala
+++ b/
src/Main.vala
@@
-72,11
+72,25
@@
int main (string[] args) {
file.loadItems();
var str = file.toSourceCode();
file.loadItems();
var str = file.toSourceCode();
+
+ if (!BuilderApplication.opt_debug) {
+ print("%s", str);
+ GLib.Process.exit(Posix.EXIT_SUCCESS);
+ }
+
+ // dump the node tree
+ file.tree.dumpProps();
+
+
var str_ar = str.split("\n");
for(var i =0;i<str_ar.length;i++) {
var str_ar = str.split("\n");
for(var i =0;i<str_ar.length;i++) {
- var node = file.tree.lineToNode(i);
- print("%d: %s : %s",
+ var node = file.tree.lineToNode(i+1);
+ var prop = node == null ? null : node.lineToProp(i+1);
+ print("%d: %s : %s\n",
i+1,
i+1,
+ node == null ? "......" : (prop == null ? "????????" : prop),
+ str_ar[i]
+ );
}
GLib.Process.exit(Posix.EXIT_SUCCESS);
}
GLib.Process.exit(Posix.EXIT_SUCCESS);