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
// @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