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