JSDOC/Packer.vala
authorAlan Knowles <alan@roojs.com>
Wed, 28 Oct 2015 09:41:40 +0000 (17:41 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 28 Oct 2015 09:41:40 +0000 (17:41 +0800)
JSDOC/Packer.vala

index 265b49c..85d21b6 100644 (file)
@@ -132,37 +132,37 @@ namespace JSDOC
    
                
  
-   
-    /**
-     * load a dependancy list -f option
-     * @param {String} srcfile sourcefile to parse
-     * 
-     */
-    
-    loadSourceIndexes : function(srcfile)
-    {
-        var lines = File.read(srcfile).split("\n");
-        var _this = this;
-        lines.forEach(function(f) {
-            
-            if (/^\s*\//.test(f) || !/[a-z]+/i.test(f)) { // skip comments..
-                return;
-            }
-            if (/\.js$/.test(f)) {
-                _this.files.push( f);
-                // js file..
-                return;
-            }
-            
-            //println("ADD"+ f.replace(/\./g, '/'));
-            var add = f.replace(/\./g, '/').replace(/\s+/g,'')+'.js';
-            if (_this.files.indexOf(f) > -1) {
-                return;
-            }
-            _this.files.push( add );
-            
-        })
-    },
+          
+               /**
+                * load a dependancy list -f option
+                * @param {String} srcfile sourcefile to parse
+                
+                */
+               
+               public void loadSourceIndex(string srcfile)
+               {
+                   var lines = File.read(srcfile).split("\n");
+                   var _this = this;
+                   lines.forEach(function(f) {
+                       
+                       if (/^\s*\//.test(f) || !/[a-z]+/i.test(f)) { // skip comments..
+                           return;
+                       }
+                       if (/\.js$/.test(f)) {
+                           _this.files.push( f);
+                           // js file..
+                           return;
+                       }
+                       
+                       //println("ADD"+ f.replace(/\./g, '/'));
+                       var add = f.replace(/\./g, '/').replace(/\s+/g,'')+'.js';
+                       if (_this.files.indexOf(f) > -1) {
+                           return;
+                       }
+                       _this.files.push( add );
+                       
+                   })
+               },
     
     
     packAll : function()  // do the packing (run from constructor)