@vivaxy/wxml
Version:
🌇WXML parser and serializer.
23 lines (22 loc) • 516 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @since 20180808 11:11
* @author vivaxy
*/
const base_1 = require("./base");
const node_types_1 = require("../types/node-types");
class CommentNode extends base_1.default {
constructor(comment) {
super(node_types_1.default.COMMENT);
this.comment = comment;
}
toJSON() {
return {
type: this.type,
comment: this.comment,
};
}
}
exports.default = CommentNode;
;