Symbol.regex_prototype = new GLib.Regex("\\.prototype\\.?");
}
+ private string private_string_name = "";
private string private_name {
set {
var n = Symbol.regex_global(value, value.length, 0, "");
n = n.substring(0, n.length-1);
}
- this.private_name = n;
+ this.private_string_name = n;
}
}
public string name {
- get { return this.private_name; }
+ get { return this.private_string_name; }
}
string defaultValue = "";
-
- private Gee.ArrayList<DocTag> private_params{
- set {
- for (var i = 0; i < value.size; i++) {
-
- this.private_params.add(v.get(i));
- }
- //this.params = this._params;
- }
- }
+ private Gee.ArrayList<DocTag> private_doctag_params;
+
+ private Gee.ArrayList<DocTag> private_params{
+ set {
+ for (var i = 0; i < value.size; i++) {
+
+ this.private_doctag_params.add(v.get(i));
+ }
+ //this.params = this._params;
+ }
+ }
- private Gee.ArrayList<string> private_string_params{
- set {
- for (var i = 0; i < value.size; i++) {
-
- //var ty = v[i].hasOwnProperty('type') ? v[i].type : '';
- this._params[i] = new DocTag(value.get(i));
- //"param"+((ty)?" {"+ty+"}":"")+" "+v[i].name);
- //"param"+((ty)?" {"+ty+"}":"")+" "+v.get(i).name);
- }
- //else {
- // this._params[i] = v[i];
- //}
- this.private_params.add(v.get(i));
- }
- //this.params = this._params;
- }
- }
- public Gee.ArrayList<DocTag> params {
- get {
- return this.private_params;
- }
-
- }
-
- private Gee.ArrayList<DocTag> augments ;
-
- private Gee.ArrayList<DocTag> exceptions ;
-
- private Gee.ArrayList<DocTag> inherits;
- private Gee.ArrayList<DocTag> methods;
+ Gee.ArrayList<string> private_string_params{
+ set {
+ for (var i = 0; i < value.size; i++) {
+
+ //var ty = v[i].hasOwnProperty('type') ? v[i].type : '';
+ this.private_doctag_params.add( new DocTag(value.get(i)));
+
+ //"param"+((ty)?" {"+ty+"}":"")+" "+v.get(i).name);
+
+ }
+
+ }
+ }
+ public Gee.ArrayList<DocTag> params {
+ get {
+ return this.private_doctag_params;
+ }
+
+ }
+
+ private Gee.ArrayList<DocTag> augments ;
+
+ private Gee.ArrayList<DocTag> exceptions ;
+
+ private Gee.ArrayList<DocTag> inherits;
+ private Gee.ArrayList<DocTag> methods;
private Gee.ArrayList<DocTag> properties;
- private Gee.ArrayList<DocTag> requires;
- private Gee.ArrayList<DocTag> returns;
- private Gee.ArrayList<DocTag> see ;
+ private Gee.ArrayList<DocTag> requires;
+ private Gee.ArrayList<DocTag> returns;
+ private Gee.ArrayList<DocTag> see ;
//childClasses : [],
this.alias = this.srcFile;
}
- this.setTags();
+ this.tagsFromComment();
- },
+ }
- setTags : function() {
+ void tagsFromComment() {
// @author
var authors = this.comment.getTag("author");
- if (authors.length) {
- this.author = authors.map(function($){return $.desc;}).join(", ");
+ if (authors.size) {
+ // turns author into a string....
+ this.author = "";
+ foreach(var a in authors) {
+ this.author += (this.author == "") ? "": ", ";
+ this.author += a.desc;
+ }
}
/*~t
// @desc
var descs = this.comment.getTag("desc");
if (descs.length) {
- this.desc = descs.map(function($){return $.desc;}).join("\n"); // multiple descriptions are concatenated into one
+ this.desc = "";
+ foreach(var d in desc) {
+ this.desc = this.desc == "" ? "": "\n";
+ this.desc += d.desc;
+ }
+
}
/*~t
var overviews = this.comment.getTag("overview");
if (overviews.length) {
- this.desc = [this.desc].concat(overviews.map(function($){return $.desc;})).join("\n");
+ foreach(var d in overviews) {
+ this.desc = this.desc == "" ? "": "\n";
+ this.desc += d.desc;
+ }
}
}
// @since
var sinces = this.comment.getTag("since");
if (sinces.length) {
- this.since = sinces.map(function($){return $.desc;}).join(", ");
+ this.since = "";
+ foreach(var d in sinces) {
+ this.since = this.since == "" ? "": "\n";
+ this.since += d.desc;
+ }
}
/*~t
// @constant
if (this.comment.getTag("constant").length) {
this.isConstant = true;
- this.isa = 'OBJECT';
+ this.isa = "OBJECT";
}
/*~t
// @version
var versions = this.comment.getTag("version");
if (versions.length) {
- this.version = versions.map(function($){return $.desc;}).join(", ");
+ this.version = "";
+ foreach(var d in versions) {
+ this.version = this.version == "" ? "": "\n";
+ this.version += d.desc;
+ }
}
/*~t
// @deprecated
var deprecateds = this.comment.getTag("deprecated");
if (deprecateds.length) {
- this.deprecated = deprecateds.map(function($){return $.desc;}).join("\n");
+ this.deprecated = "";
+ foreach(var d in deprecateds) {
+ this.deprecated = this.deprecated == "" ? "": "\n";
+ this.deprecated += d.desc;
+ }
}
/*~t