1 | "use strict";
|
---|
2 |
|
---|
3 | exports.__esModule = true;
|
---|
4 | exports.default = void 0;
|
---|
5 |
|
---|
6 | var _node = _interopRequireDefault(require("./node"));
|
---|
7 |
|
---|
8 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
---|
9 |
|
---|
10 | function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
---|
11 |
|
---|
12 | /**
|
---|
13 | * Represents a comment between declarations or statements (rule and at-rules).
|
---|
14 | *
|
---|
15 | * Comments inside selectors, at-rule parameters, or declaration values
|
---|
16 | * will be stored in the `raws` properties explained above.
|
---|
17 | *
|
---|
18 | * @extends Node
|
---|
19 | */
|
---|
20 | var Comment = /*#__PURE__*/function (_Node) {
|
---|
21 | _inheritsLoose(Comment, _Node);
|
---|
22 |
|
---|
23 | function Comment(defaults) {
|
---|
24 | var _this;
|
---|
25 |
|
---|
26 | _this = _Node.call(this, defaults) || this;
|
---|
27 | _this.type = 'comment';
|
---|
28 | return _this;
|
---|
29 | }
|
---|
30 | /**
|
---|
31 | * @memberof Comment#
|
---|
32 | * @member {string} text The comment’s text.
|
---|
33 | */
|
---|
34 |
|
---|
35 | /**
|
---|
36 | * @memberof Comment#
|
---|
37 | * @member {object} raws Information to generate byte-to-byte equal
|
---|
38 | * node string as it was in the origin input.
|
---|
39 | *
|
---|
40 | * Every parser saves its own properties,
|
---|
41 | * but the default CSS parser uses:
|
---|
42 | *
|
---|
43 | * * `before`: the space symbols before the node.
|
---|
44 | * * `left`: the space symbols between `/*` and the comment’s text.
|
---|
45 | * * `right`: the space symbols between the comment’s text.
|
---|
46 | */
|
---|
47 |
|
---|
48 |
|
---|
49 | return Comment;
|
---|
50 | }(_node.default);
|
---|
51 |
|
---|
52 | var _default = Comment;
|
---|
53 | exports.default = _default;
|
---|
54 | module.exports = exports.default;
|
---|
55 | //# sourceMappingURL=data:application/json;charset=utf8;base64,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