UNPKG

@icebreakers/wxml

Version:

wxml parser and serializer. fork form wxml and improve. thanks to vivaxy and roadupcc

19 lines (18 loc) 493 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const base_1 = require("./base"); const node_types_1 = require("../types/node-types"); class CommentNode extends base_1.default { comment; constructor(comment) { super(node_types_1.default.COMMENT); this.comment = comment; } toJSON() { return { type: this.type, comment: this.comment }; } } exports.default = CommentNode;