literal.js 416 B

1234567891011121314151617181920212223
  1. 'use strict';
  2. const Container = require('postcss/lib/container');
  3. /**
  4. * Represents a JS literal
  5. *
  6. * @extends Container
  7. *
  8. * @example
  9. * const root = postcss.parse('{}');
  10. * const literal = root.first;
  11. * literal.type //=> 'literal'
  12. * literal.toString() //=> 'a{}'
  13. */
  14. class Literal extends Container {
  15. constructor(defaults) {
  16. super(defaults);
  17. this.type = 'literal';
  18. }
  19. }
  20. module.exports = Literal;