pseudo.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. "use strict";
  2. exports.__esModule = true;
  3. exports["default"] = void 0;
  4. var _container = _interopRequireDefault(require("./container"));
  5. var _types = require("./types");
  6. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
  7. function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
  8. function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
  9. var Pseudo = /*#__PURE__*/function (_Container) {
  10. _inheritsLoose(Pseudo, _Container);
  11. function Pseudo(opts) {
  12. var _this;
  13. _this = _Container.call(this, opts) || this;
  14. _this.type = _types.PSEUDO;
  15. return _this;
  16. }
  17. var _proto = Pseudo.prototype;
  18. _proto.toString = function toString() {
  19. var params = this.length ? '(' + this.map(String).join(',') + ')' : '';
  20. return [this.rawSpaceBefore, this.stringifyProperty("value"), params, this.rawSpaceAfter].join('');
  21. };
  22. return Pseudo;
  23. }(_container["default"]);
  24. exports["default"] = Pseudo;
  25. module.exports = exports.default;