projects
/
app.Builder.js
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "File.js"
[app.Builder.js]
/
DependTree
/
BuildLists.js
diff --git
a/DependTree/BuildLists.js
b/DependTree/BuildLists.js
index
c51d2eb
..
da200d5
100644
(file)
--- a/
DependTree/BuildLists.js
+++ b/
DependTree/BuildLists.js
@@
-68,10
+68,12
@@
function BuildLists () {
var implementations = {};
var methods = {};
var allmethods = [];
var implementations = {};
var methods = {};
var allmethods = [];
+ var allchildren = [];
+
for (cls in classes) {
var odata = classes[cls];
for (cls in classes) {
var odata = classes[cls];
- methods[cls] = {}
+
//
methods[cls] = {}
implementations[odata.alias] = odata.titleType == 'Class' ? odata.childClasses : odata.implementedBy;
//print(JSON.stringify(odata.methods,null,4));
implementations[odata.alias] = odata.titleType == 'Class' ? odata.childClasses : odata.implementedBy;
//print(JSON.stringify(odata.methods,null,4));
@@
-87,6
+89,14
@@
function BuildLists () {
if (!p.type || typeof(classes[p.type]) == 'undefined') {
return;
}
if (!p.type || typeof(classes[p.type]) == 'undefined') {
return;
}
+ if (allchildren.indexOf(p.type) < 0) {
+ allchildren.push(p.type);
+ }
+
+ if (typeof(methods[cls]) == 'undefined') {
+ methods[cls] = {}
+ }
+
if (typeof(methods[cls][p.type]) == 'undefined') {
methods[cls][p.type] = [];
}
if (typeof(methods[cls][p.type]) == 'undefined') {
methods[cls][p.type] = [];
}
@@
-112,14
+122,23
@@
function BuildLists () {
}
this.methods = methods;
}
this.methods = methods;
- this.allmethods = methods;
+ this.allmethods = allmethods;
+ this.allchildren = allchildren;
+
this.implementations = implementations;
this.implementations = implementations;
+
//print(JSON.stringify(methods,null,4));
//print(JSON.stringify(implementations,null,4));
}
//print(JSON.stringify(methods,null,4));
//print(JSON.stringify(implementations,null,4));
}
+
+
+
+
+
+
// we now have a list of classes / methods that can be used..
// we now need a ui to flag stuff as "don't bother with"
// we now have a list of classes / methods that can be used..
// we now need a ui to flag stuff as "don't bother with"