parser.js 755 B

12345678910111213141516171819202122232425
  1. module.exports = {
  2. parseContext: {
  3. default: 'StyleSheet',
  4. stylesheet: 'StyleSheet',
  5. atrule: 'Atrule',
  6. atrulePrelude: function(options) {
  7. return this.AtrulePrelude(options.atrule ? String(options.atrule) : null);
  8. },
  9. mediaQueryList: 'MediaQueryList',
  10. mediaQuery: 'MediaQuery',
  11. rule: 'Rule',
  12. selectorList: 'SelectorList',
  13. selector: 'Selector',
  14. block: function() {
  15. return this.Block(true);
  16. },
  17. declarationList: 'DeclarationList',
  18. declaration: 'Declaration',
  19. value: 'Value'
  20. },
  21. scope: require('../scope'),
  22. atrule: require('../atrule'),
  23. pseudo: require('../pseudo'),
  24. node: require('../node')
  25. };