aboutsummaryrefslogtreecommitdiffstats
path: root/vanilla/node_modules/css-tree/lib/syntax/node/MediaQueryList.js
diff options
context:
space:
mode:
Diffstat (limited to 'vanilla/node_modules/css-tree/lib/syntax/node/MediaQueryList.js')
-rw-r--r--vanilla/node_modules/css-tree/lib/syntax/node/MediaQueryList.js34
1 files changed, 34 insertions, 0 deletions
diff --git a/vanilla/node_modules/css-tree/lib/syntax/node/MediaQueryList.js b/vanilla/node_modules/css-tree/lib/syntax/node/MediaQueryList.js
new file mode 100644
index 0000000..1c16bcd
--- /dev/null
+++ b/vanilla/node_modules/css-tree/lib/syntax/node/MediaQueryList.js
@@ -0,0 +1,34 @@
+import { Comma } from '../../tokenizer/index.js';
+
+export const name = 'MediaQueryList';
+export const structure = {
+ children: [[
+ 'MediaQuery'
+ ]]
+};
+
+export function parse() {
+ const children = this.createList();
+
+ this.skipSC();
+
+ while (!this.eof) {
+ children.push(this.MediaQuery());
+
+ if (this.tokenType !== Comma) {
+ break;
+ }
+
+ this.next();
+ }
+
+ return {
+ type: 'MediaQueryList',
+ loc: this.getLocationFromList(children),
+ children
+ };
+}
+
+export function generate(node) {
+ this.children(node, () => this.token(Comma, ','));
+}