UNPKG

542 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3class CommentTag {
4 constructor(tagName, paramName, text) {
5 this.tagName = tagName;
6 this.paramName = paramName || '';
7 this.text = text || '';
8 }
9 toObject() {
10 const result = {
11 tag: this.tagName,
12 text: this.text
13 };
14 if (this.paramName) {
15 result.param = this.paramName;
16 }
17 return result;
18 }
19}
20exports.CommentTag = CommentTag;
21//# sourceMappingURL=tag.js.map
\No newline at end of file