Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/flo-bit/shapecraft. flo-bit.dev/shapecraft
Something went wrong. Try again.
628 B · 34 lines
JavaScript
at commit da69385e
1234567891011121314151617181920212223242526272829303132333435import { 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, ','));}