JSDOC/Symbol.js
[gnome.introspection-doc-generator] / JSDOC / Symbol.js
index efc8235..e61f74b 100644 (file)
@@ -356,6 +356,7 @@ Symbol = XObject.define(
             // @class
             var classes = this.comment.getTag("class");
             if (classes.length) {
+                print(JSON.stringify(this,null,4));
                 this.isa = "CONSTRUCTOR";
                 this.classDesc = classes[0].desc; // desc can't apply to the constructor as there is none.
                 if (!this.classDesc) {
@@ -451,9 +452,10 @@ Symbol = XObject.define(
                 // @static
             if (this.comment.getTag("singleton").length) {
                 this.isStatic = true;
-                //if (this.isa == "CONSTRUCTOR") {
-                //     this.isNamespace = true;
-                //}
+                print('------------- got singleton ---------------' + this.isa);
+                if (this.isa == "CONSTRUCTOR") {
+                       this.isNamespace = true;
+                }
             }
             
             
@@ -663,6 +665,11 @@ Symbol = XObject.define(
             if (memberOfs.length) {
                 this.memberOf = memberOfs[0].desc;
                 this.memberOf = this.memberOf.replace(/\.prototype\.?/g, "#");
+                this.name = this.name.split('.').pop();
+                this.name = this.name.split('#').pop();
+                this.name = this.memberOf + this.name;
+                this._name = this.name
+                this.alias = this.name;
             }
 
             /*~t
@@ -820,4 +827,4 @@ Symbol.fromDump = function(t)
         ns[i] = t[i];
     }
     return ns;
-}
\ No newline at end of file
+}