fix overwrite symbols - not sure why it was enabled?
authorAlan <alan@roojs.com>
Mon, 3 Jan 2022 07:46:37 +0000 (15:46 +0800)
committerAlan <alan@roojs.com>
Mon, 3 Jan 2022 07:46:37 +0000 (15:46 +0800)
roojspacker/DocBuilder.vala
roojspacker/SymbolSet.vala

index 0147b67..301496d 100644 (file)
@@ -452,6 +452,7 @@ namespace JSDOC
                    this.class_tree_map = new Gee.HashMap<string,Json.Object>();
                    foreach (var cls in classes) {
                        if(cls.alias.length < 1 || cls.alias == "this" || cls.alias == "_global_") {
+                               GLib.debug("Skip alias|global %s", cls.name);
                                continue;
                        }
                        bool is_new;
index 05b572e..ef279bb 100644 (file)
@@ -62,7 +62,8 @@ namespace JSDOC {
             
              
             if (this.hasSymbol(symbol.alias)) {
-                GLib.warning("Overwriting symbol documentation for: %s.",symbol.alias);
+                GLib.warning("Skip Overwriting symbol documentation for: %s.",symbol.alias);
+                return;
             }
             this._index.set(symbol.alias,  symbol);
         }