Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/flo-bit/shapecraft. flo-bit.dev/shapecraft
Something went wrong. Try again.
676 B · 35 lines
JavaScript
at commit da69385e
123456789101112131415161718192021222324252627282930313233343536import { Comma } from '../../tokenizer/index.js';
export const name = 'SelectorList';export const walkContext = 'selector';export const structure = { children: [[ 'Selector', 'Raw' ]]};
export function parse() { const children = this.createList();
while (!this.eof) { children.push(this.Selector());
if (this.tokenType === Comma) { this.next(); continue; }
break; }
return { type: 'SelectorList', loc: this.getLocationFromList(children), children };}
export function generate(node) { this.children(node, () => this.token(Comma, ','));}