CDO.js 395 B

12345678910111213141516171819
  1. var CDO = require('../../tokenizer').TYPE.CDO;
  2. module.exports = {
  3. name: 'CDO',
  4. structure: [],
  5. parse: function() {
  6. var start = this.scanner.tokenStart;
  7. this.eat(CDO); // <!--
  8. return {
  9. type: 'CDO',
  10. loc: this.getLocation(start, this.scanner.tokenStart)
  11. };
  12. },
  13. generate: function() {
  14. this.chunk('<!--');
  15. }
  16. };