Files
the-beacon/node_modules/css-tree/lib/syntax/node/SupportsDeclaration.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

35 lines
694 B
JavaScript

import {
LeftParenthesis,
RightParenthesis
} from '../../tokenizer/index.js';
export const name = 'SupportsDeclaration';
export const structure = {
declaration: 'Declaration'
};
export function parse() {
const start = this.tokenStart;
this.eat(LeftParenthesis);
this.skipSC();
const declaration = this.Declaration();
if (!this.eof) {
this.eat(RightParenthesis);
}
return {
type: 'SupportsDeclaration',
loc: this.getLocation(start, this.tokenStart),
declaration
};
}
export function generate(node) {
this.token(LeftParenthesis, '(');
this.node(node.declaration);
this.token(RightParenthesis, ')');
}