- var ret = { };
- for (var i in this) {
- switch (typeof(this[i])) {
- case 'function':
- continue;
- continue;
-
- case 'string':
- case 'number':
- case 'boolean':
- ret[i] = this[i]; continue;
- default:
- print("unknown type:" + typeof(this[i]));
- Seed.quit();
- }
- }
+ var ret = { '*object' : 'DocComment' };
+
+ var _this = this;
+ ['isUserComment','src', 'meta', 'tags'].forEach(function(k) {
+ ret[k] = _this[k];
+ })
+