You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.8 KiB

4 years ago
  1. 'use strict';
  2. exports.__esModule = true;
  3. var _container = require('./container');
  4. var _container2 = _interopRequireDefault(_container);
  5. var _types = require('./types');
  6. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  7. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  8. 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; }
  9. 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; }
  10. var Pseudo = function (_Container) {
  11. _inherits(Pseudo, _Container);
  12. function Pseudo(opts) {
  13. _classCallCheck(this, Pseudo);
  14. var _this = _possibleConstructorReturn(this, _Container.call(this, opts));
  15. _this.type = _types.PSEUDO;
  16. return _this;
  17. }
  18. Pseudo.prototype.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. }(_container2.default);
  24. exports.default = Pseudo;
  25. module.exports = exports['default'];