init : function() {
this._index = {};
- }
+ },
keys : function() {
var found = [];
found.push(p);
}
return found;
- }
+ },
hasSymbol : function(alias) {
return this.keys().indexOf(alias) > -1;
- }
+ },
addSymbol : function(symbol) {
println("ADDING SYMBOL:"+symbol.alias.toString());
Options.LOG.warn("Overwriting symbol documentation for: "+symbol.alias + ".");
}
this._index[symbol.alias] = symbol;
- }
+ },
getSymbol : function(alias) {
if (this.hasSymbol(alias)) return this._index[alias];
return false;
- }
+ },
toArray : function() {
var found = [];
found.push(this._index[p]);
}
return found;
- }
+ },
deleteSymbol : function(alias) {
if (!this.hasSymbol(alias)) return;
delete this._index[alias];
- }
+ },
renameSymbol : function(oldName, newName) {
// todo: should check if oldname or newname already exist
this.deleteSymbol(oldName);
this._index[newName].alias = newName;
return newName;
- }
+ },
relate : function() {
this.resolveBorrows();
this.resolveMemberOf();
this.resolveAugments();
- }
+ },
resolveBorrows : function() {
for (p in this._index) {
this.addSymbol(clone);
}
}
- }
+ },
resolveMemberOf : function() {
for (var p in this._index) {
if (container && !container.isNamespace) container.addMember(symbol);
}
}
- }
+ },
resolveAugments : function() {
// does this sort out multiple extends???
}
}
- }
+ },
buildAugmentsList : function(symbol)
{