private Gee.HashMap<string,Symbol> __index = null;
+
+ public Json.Object toJson()
+ {
+ var ret = new Json.Object();
+ foreach(var k in this._index.keys) {
+ ret.set_object_member(k, this._index.get(k).toJson());
+ }
+ return ret;
+ }
+
+
public Gee.HashMap<string,Symbol> _index {
get {
if (this.__index == null) {
return this.__index;
}
}
-
+ // CTOR - do nothing..?
public SymbolSet ()
{
}
//print("looking for memberOf: " + symbol.memberOf + " FOR " + symbol.alias);
// add to parent's methods or properties list
+ GLib.debug("Trying to add '%s' to '%s'", symbol.alias, symbol.memberOf);
+
if (symbol.memberOf.length > 0) {
var container = this.getSymbol(symbol.memberOf);
if (container == null) {
+ GLib.debug("Could not find container for '%s'", symbol.memberOf);
if (SymbolSet.isBuiltin(symbol.memberOf)) {
container = DocParser.addBuiltin(symbol.memberOf);
}
}
}
- if (container != null && !container.isNamespace) {
+ if (container != null && (!container.isNamespace || container.isStatic)) {
+ GLib.debug("Calling addMember for '%s' onto '%s'", symbol.alias, container.alias);
container.addMember(symbol);
}
}
if (contributer != null) {
- contributer.childClasses.add(symbol.alias);
+ //contributer.childClasses.add(symbol.alias); << removed we do this in one go later.
symbol.inheritsFrom.add(contributer.alias);
//if (!isUnique(symbol.inheritsFrom)) {
// imports.BuildDocs.Options.LOG.warn("Can't resolve augments: Circular reference: "+symbol.alias+" inherits from "+contributer.alias+" more than once.");