CDC.js 352 B

12345678910111213141516171819
  1. import { CDC } from '../../tokenizer/index.js';
  2. export const name = 'CDC';
  3. export const structure = [];
  4. export function parse() {
  5. const start = this.tokenStart;
  6. this.eat(CDC); // -->
  7. return {
  8. type: 'CDC',
  9. loc: this.getLocation(start, this.tokenStart)
  10. };
  11. }
  12. export function generate() {
  13. this.token(CDC, '-->');
  14. }