CDO.js 354 B

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