Security update for Core, with self-updated composer
[yaffs-website] / node_modules / uncss / node_modules / postcss / lib / comment.js
1 'use strict';
2
3 exports.__esModule = true;
4
5 var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
6
7 var _warnOnce = require('./warn-once');
8
9 var _warnOnce2 = _interopRequireDefault(_warnOnce);
10
11 var _node = require('./node');
12
13 var _node2 = _interopRequireDefault(_node);
14
15 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
17 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
18
19 function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
20
21 function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
22
23 var Comment = function (_Node) {
24     _inherits(Comment, _Node);
25
26     function Comment(defaults) {
27         _classCallCheck(this, Comment);
28
29         var _this = _possibleConstructorReturn(this, _Node.call(this, defaults));
30
31         _this.type = 'comment';
32         return _this;
33     }
34
35     /* istanbul ignore next */
36
37
38     _createClass(Comment, [{
39         key: 'left',
40         get: function get() {
41             (0, _warnOnce2.default)('Comment#left was deprecated. Use Comment#raws.left');
42             return this.raws.left;
43         }
44
45         /* istanbul ignore next */
46         ,
47         set: function set(val) {
48             (0, _warnOnce2.default)('Comment#left was deprecated. Use Comment#raws.left');
49             this.raws.left = val;
50         }
51
52         /* istanbul ignore next */
53
54     }, {
55         key: 'right',
56         get: function get() {
57             (0, _warnOnce2.default)('Comment#right was deprecated. Use Comment#raws.right');
58             return this.raws.right;
59         }
60
61         /* istanbul ignore next */
62         ,
63         set: function set(val) {
64             (0, _warnOnce2.default)('Comment#right was deprecated. Use Comment#raws.right');
65             this.raws.right = val;
66         }
67     }]);
68
69     return Comment;
70 }(_node2.default);
71
72 exports.default = Comment;
73 module.exports = exports['default'];