30 lines
2.5 KiB
JavaScript
30 lines
2.5 KiB
JavaScript
'use strict';
|
|
|
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
|
|
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; }
|
|
|
|
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; }
|
|
|
|
var Container = require('postcss/lib/container');
|
|
|
|
var NestedDeclaration = function (_Container) {
|
|
_inherits(NestedDeclaration, _Container);
|
|
|
|
function NestedDeclaration(defaults) {
|
|
_classCallCheck(this, NestedDeclaration);
|
|
|
|
var _this = _possibleConstructorReturn(this, _Container.call(this, defaults));
|
|
|
|
_this.type = 'decl';
|
|
_this.isNested = true;
|
|
if (!_this.nodes) _this.nodes = [];
|
|
return _this;
|
|
}
|
|
|
|
return NestedDeclaration;
|
|
}(Container);
|
|
|
|
module.exports = NestedDeclaration;
|
|
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5lc3RlZC1kZWNsYXJhdGlvbi5lczYiXSwibmFtZXMiOlsiQ29udGFpbmVyIiwicmVxdWlyZSIsIk5lc3RlZERlY2xhcmF0aW9uIiwiZGVmYXVsdHMiLCJ0eXBlIiwiaXNOZXN0ZWQiLCJub2RlcyIsIm1vZHVsZSIsImV4cG9ydHMiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBQUEsSUFBTUEsWUFBWUMsUUFBUSx1QkFBUixDQUFsQjs7SUFFTUMsaUI7OztBQUNKLDZCQUFhQyxRQUFiLEV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