diff options
Diffstat (limited to 'vanilla/node_modules/css-tree/cjs/syntax/node/CDO.cjs')
| -rw-r--r-- | vanilla/node_modules/css-tree/cjs/syntax/node/CDO.cjs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/vanilla/node_modules/css-tree/cjs/syntax/node/CDO.cjs b/vanilla/node_modules/css-tree/cjs/syntax/node/CDO.cjs new file mode 100644 index 0000000..0e98217 --- /dev/null +++ b/vanilla/node_modules/css-tree/cjs/syntax/node/CDO.cjs @@ -0,0 +1,26 @@ +'use strict'; + +const types = require('../../tokenizer/types.cjs'); + +const name = 'CDO'; +const structure = []; + +function parse() { + const start = this.tokenStart; + + this.eat(types.CDO); // <!-- + + return { + type: 'CDO', + loc: this.getLocation(start, this.tokenStart) + }; +} + +function generate() { + this.token(types.CDO, '<!--'); +} + +exports.generate = generate; +exports.name = name; +exports.parse = parse; +exports.structure = structure; |
