|
"use strict";
|
|
|
|
exports.__esModule = true;
|
|
exports.default = void 0;
|
|
|
|
var _node = _interopRequireDefault(require("./node"));
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
|
|
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
|
|
|
/**
|
|
* Represents a comment between declarations or statements (rule and at-rules).
|
|
*
|
|
* Comments inside selectors, at-rule parameters, or declaration values
|
|
* will be stored in the `raws` properties explained above.
|
|
*
|
|
* @extends Node
|
|
*/
|
|
var Comment =
|
|
/*#__PURE__*/
|
|
function (_Node) {
|
|
_inheritsLoose(Comment, _Node);
|
|
|
|
function Comment(defaults) {
|
|
var _this;
|
|
|
|
_this = _Node.call(this, defaults) || this;
|
|
_this.type = 'comment';
|
|
return _this;
|
|
}
|
|
/**
|
|
* @memberof Comment#
|
|
* @member {string} text The comment’s text.
|
|
*/
|
|
|
|
/**
|
|
* @memberof Comment#
|
|
* @member {object} raws Information to generate byte-to-byte equal
|
|
* node string as it was in the origin input.
|
|
*
|
|
* Every parser saves its own properties,
|
|
* but the default CSS parser uses:
|
|
*
|
|
* * `before`: the space symbols before the node.
|
|
* * `left`: the space symbols between `/*` and the comment’s text.
|
|
* * `right`: the space symbols between the comment’s text.
|
|
*/
|
|
|
|
|
|
return Comment;
|
|
}(_node.default);
|
|
|
|
var _default = Comment;
|
|
exports.default = _default;
|
|
module.exports = exports.default;
|
|
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbW1lbnQuZXM2Il0sIm5hbWVzIjpbIkNvbW1lbnQiLCJkZWZhdWx0cyIsInR5cGUiLCJOb2RlIl0sIm1hcHBpbmdzIjoiOzs7OztBQUFBOzs7Ozs7QUFFQTs7Ozs7Ozs7SUFRTUEsTzs7Ozs7QUFDSixtQkFBYUMsUUFBYixFQUF1QjtBQUF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