X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=tools%2Fbuild_gtk_tree.js;h=d2cb26e923a0ca76c83efc2d26c683b9d0400608;hb=d7491e29e21cd219d428c0a977b67e1509d31dca;hp=dfe698bf1ae41bbf62781b9940580be9b79ac5e9;hpb=2c244bee861f3f2adb01a287ea998d17ea542401;p=app.Builder.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); //}