From: Alan Knowles Date: Wed, 1 Dec 2010 09:11:08 +0000 (+0800) Subject: tools/build_gtk_tree.js X-Git-Url: http://git.roojs.org/?p=app.Builder.js;a=commitdiff_plain;h=d7491e29e21cd219d428c0a977b67e1509d31dca tools/build_gtk_tree.js --- diff --git a/tools/build_gtk_tree.js b/tools/build_gtk_tree.js index dfe698bf1..d2cb26e92 100644 --- a/tools/build_gtk_tree.js +++ b/tools/build_gtk_tree.js @@ -51,12 +51,29 @@ ns_list.forEach(function(ns_name) { print("Looping throught namespaces"); var ns_idx = []; var implementations = {}; - +var methods = {} + for (cls in classes) { var odata = classes[cls]; + methods[cls] = {} + implementations[odata.alias] = odata.titleType == 'Class' ? odata.childClasses : odata.implementedBy; print(JSON.stringify(odata.methods,null,4)); - + odata.methods.forEach(function(m) { + + m.params.forEach(function(p) { + + if (!p.type || typeof(classes[p.type]) == 'undefined') { + return; + } + if (typeof(methods[cls][p.type]) == 'undefined') { + methods[cls][p.type] = []; + } + methods[cls][p.type].push( + + } + + } //for(method in odata.methods) { // print(method.name); //}