NestingSelector.js 440 B

12345678910111213141516171819202122
  1. import { Delim } from '../../tokenizer/index.js';
  2. const AMPERSAND = 0x0026; // U+0026 AMPERSAND (&)
  3. export const name = 'NestingSelector';
  4. export const structure = {
  5. };
  6. export function parse() {
  7. const start = this.tokenStart;
  8. this.eatDelim(AMPERSAND);
  9. return {
  10. type: 'NestingSelector',
  11. loc: this.getLocation(start, this.tokenStart)
  12. };
  13. }
  14. export function generate() {
  15. this.token(Delim, '&');
  16. }