first
This commit is contained in:
23
node_modules/@rgrove/parse-xml/dist/lib/XmlComment.js
generated
vendored
Normal file
23
node_modules/@rgrove/parse-xml/dist/lib/XmlComment.js
generated
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.XmlComment = void 0;
|
||||
const XmlNode_js_1 = require("./XmlNode.js");
|
||||
/**
|
||||
* A comment within an XML document.
|
||||
*/
|
||||
class XmlComment extends XmlNode_js_1.XmlNode {
|
||||
constructor(content = '') {
|
||||
super();
|
||||
this.content = content;
|
||||
}
|
||||
get type() {
|
||||
return XmlNode_js_1.XmlNode.TYPE_COMMENT;
|
||||
}
|
||||
toJSON() {
|
||||
return Object.assign(XmlNode_js_1.XmlNode.prototype.toJSON.call(this), {
|
||||
content: this.content,
|
||||
});
|
||||
}
|
||||
}
|
||||
exports.XmlComment = XmlComment;
|
||||
//# sourceMappingURL=XmlComment.js.map
|
||||
Reference in New Issue
Block a user