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