if (namespaces.length) {
// scope for this file...
this.classDesc = namespaces[0].desc+"\n"+this.desc; // desc can't apply to the constructor as there is none.
+ if (!this.classDesc) {
+ this.classDesc = this.desc;
+ }
this.isNamespace = true;
}
if (this.comment.getTag("singleton").length) {
this.isStatic = true;
if (this.isa == "CONSTRUCTOR") {
- this.isNamespace = true;
+ this.isNamespace = true;
}
}
inherit : function(symbol) {
if (!this.hasMember(symbol.name) && !symbol.isInner) {
- if (symbol.is("FUNCTION"))
+ if (symbol.is("FUNCTION")) {
this.methods.push(symbol);
- else if (symbol.is("OBJECT"))
+ } else if (symbol.is("OBJECT") || symbol.is("PROPERTY") ) {
this.properties.push(symbol);
+ }
}
},
},
addMember : function(symbol) {
- //println("ADDMEMBER: " + this.name + " ++ " + symbol.name);
+ //print("ADDMEMBER: " + this.name + " + " + symbol.name);
if (this.is("FUNCTION")) {
this.isa = "OBJECT";
}
this.addMethod(symbol);
return true;
}
- if (symbol.is("OBJECT")) {
+ if (symbol.is("OBJECT") || symbol.is("PROPERTY") ) {
this.addProperty(symbol);
return true;
}
+ //print("addSomething?: " + JSON.stringify(symbol, null,4)); Seed.exit();
+
return false;
},
},
addProperty : function(symbol) {
+ //print("addProperty: " + this.name + " + " + symbol.name);
var propertyAlias = symbol.alias;
var thisProperties = this.properties;
for (var i = 0, l = thisProperties.length; i < l; i++) {