src/jsdoc/Symbol.vala
[roojspacker] / src / jsdoc / Symbol.vala
index 9ff5a03..0b2d9db 100644 (file)
@@ -579,8 +579,13 @@ namespace JSDOC {
             var returns = this.comment.getTag("return");
             if (returns.length) { // there can be many return tags in a single doclet
                 this.returns = returns;
-                this.type = returns.map(function($){return $.type}).join(", ");
-            }
+
+                this.type = "";
+                foreach(var r in returns) {
+                    this.type += this.type == "" ? "": ", ";
+                    this.type += r.type;
+                } 
+             }
             
             /*~t
                 // todo
@@ -596,7 +601,10 @@ namespace JSDOC {
             // @requires
             var requires = this.comment.getTag("requires");
             if (requires.length) {
-                this.requires = requires.map(function($){return $.desc});
+                this.requires = new Gee.ArrayList<string>();
+                foreach(var r in requires) {
+                    this.requires.push(r.desc);
+                }
             }
             
             /*~t