Urara-Blog/node_modules/.pnpm-store/v3/files/50/5a19fd16fdc797b754c77863789f0d72cb1bb89250df873cbaa963635bb6314b4ebacafbabd3ab8734d8e4ed83c00a33888441fd2085f873a82b0507d50534
2022-08-14 01:14:53 +08:00

34 lines
628 B
Text

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, ','));
}