CDC.js 393 B

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