JSDOC/BuildDocs.js
[gnome.introspection-doc-generator] / JSDOC / Symbol.js
index 3620491..55bf159 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;
+                }
             }