Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/flo-bit/shapecraft. flo-bit.dev/shapecraft
Something went wrong. Try again.
663 B · 36 lines
JavaScript
at commit da69385e
12345678910111213141516171819202122232425262728293031323334353637import { Comma } from '../../tokenizer/index.js';
export const name = 'LayerList';export const structure = { children: [[ 'Layer' ]]};
export function parse() { const children = this.createList();
this.skipSC();
while (!this.eof) { children.push(this.Layer());
if (this.lookupTypeNonSC(0) !== Comma) { break; }
this.skipSC(); this.next(); this.skipSC(); }
return { type: 'LayerList', loc: this.getLocationFromList(children), children };}
export function generate(node) { this.children(node, () => this.token(Comma, ','));}