Files
the-beacon/node_modules/css-tree/lib/syntax/node/Layer.js
Alexander Whitestone a1ae4bf59a
Some checks failed
Accessibility Checks / a11y-audit (pull_request) Successful in 13s
Smoke Test / smoke (pull_request) Failing after 28s
fix: feat: strategy engine game theory tournaments (#5) (closes #217)
2026-04-21 23:35:43 -04:00

29 lines
582 B
JavaScript

import { Ident, Delim } from '../../tokenizer/index.js';
const FULLSTOP = 0x002E; // U+002E FULL STOP (.)
export const name = 'Layer';
export const structure = {
name: String
};
export function parse() {
let tokenStart = this.tokenStart;
let name = this.consume(Ident);
while (this.isDelim(FULLSTOP)) {
this.eat(Delim);
name += '.' + this.consume(Ident);
}
return {
type: 'Layer',
loc: this.getLocation(tokenStart, this.tokenStart),
name
};
}
export function generate(node) {
this.tokenize(node.name);
}