src/jsdoc/Symbol.vala
authorAlan Knowles <alan@roojs.com>
Wed, 29 Mar 2017 07:57:24 +0000 (15:57 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 29 Mar 2017 07:57:24 +0000 (15:57 +0800)
src/jsdoc/Symbol.vala

index 3f7b100..e855177 100644 (file)
@@ -78,65 +78,8 @@ namespace JSDOC {
         
         
         
-            
-       /* 
-        toJSON : function()
-        {
-            
-           
-            var ret = { '*object' : 'Symbol' };
-            for (var i in this) {
-                if (Symbol.hide.indexOf(i) > -1) {
-                    continue;
-                }
-                switch (typeof(this[i])) {
-                    case 'function':
-                        continue;
-                    case 'object':
-                        switch(i) {
-                            //arrays..
-                            case 'params' : 
-                            case 'augments' :                             
-                            case 'exceptions' :  
-                            case 'inherits' :
-                            case 'methods' :
-                            case '_params': 
-                            case 'properties': 
-                            case 'requires':
-                            case 'returns':
-                            case 'see':
-                            case 'cfgs': // key val of doctags..
-                            case 'comment' :
-                                ret[i] = this[i]
-                                continue; 
-                            
-                            //skip
-                            case 'inheritsFrom':
-                            case 'childClasses':
-                                continue;
-            
-                            default:
-                                print("object? :" + i);
-                                Seed.quit();
-                        }
-                        
-                        
-                    case 'string':
-                    case 'number':
-                    case 'boolean':
-                        ret[i] = this[i]; continue;
-                    default:
-                        
-                        print("unknown type:" + typeof(this[i]));
-                        print(JSON.stringify(this));
-                        Seed.quit();
-                   }
-            }
-            return ret;
-            
-        },
-        */
-        init : function() 
+        
+        public Symbol() 
         {
             // only initialize arrays / objects..
             this.params = [];