aboutsummaryrefslogtreecommitdiffstats
path: root/vanilla/node_modules/css-tree/cjs/syntax/node/WhiteSpace.cjs
diff options
context:
space:
mode:
Diffstat (limited to 'vanilla/node_modules/css-tree/cjs/syntax/node/WhiteSpace.cjs')
-rw-r--r--vanilla/node_modules/css-tree/cjs/syntax/node/WhiteSpace.cjs34
1 files changed, 34 insertions, 0 deletions
diff --git a/vanilla/node_modules/css-tree/cjs/syntax/node/WhiteSpace.cjs b/vanilla/node_modules/css-tree/cjs/syntax/node/WhiteSpace.cjs
new file mode 100644
index 0000000..50c1982
--- /dev/null
+++ b/vanilla/node_modules/css-tree/cjs/syntax/node/WhiteSpace.cjs
@@ -0,0 +1,34 @@
+'use strict';
+
+const types = require('../../tokenizer/types.cjs');
+
+const SPACE = Object.freeze({
+ type: 'WhiteSpace',
+ loc: null,
+ value: ' '
+});
+
+const name = 'WhiteSpace';
+const structure = {
+ value: String
+};
+
+function parse() {
+ this.eat(types.WhiteSpace);
+ return SPACE;
+
+ // return {
+ // type: 'WhiteSpace',
+ // loc: this.getLocation(this.tokenStart, this.tokenEnd),
+ // value: this.consume(WHITESPACE)
+ // };
+}
+
+function generate(node) {
+ this.token(types.WhiteSpace, node.value);
+}
+
+exports.generate = generate;
+exports.name = name;
+exports.parse = parse;
+exports.structure = structure;