addSymbol : function(symbol) {
//print("ADDING SYMBOL:"+symbol.alias.toString());
+
if (this.hasSymbol(symbol.alias)) {
imports.BuildDocs.Options.LOG.warn("Overwriting symbol documentation for: "+symbol.alias + ".");
}
/**
* for serializing
*/
- toObject : function() {
- var ret = {}
- for (var p in this._index) {
- ret[p] = this._index[p].toObject();
- }
- return ret;
+ toJSON : function() {
+ return {
+ '*object' : 'SymbolSet',
+ _index : this._index
+ };
+
},