src/jsdoc/Symbol.vala
authorAlan Knowles <alan@roojs.com>
Wed, 11 Jul 2018 14:25:39 +0000 (22:25 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 11 Jul 2018 14:25:39 +0000 (22:25 +0800)
src/jsdoc/Symbol.vala

index 9ff5a03..5ca1703 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