vire穷极优化

This commit is contained in:
shuaiplus committed 2025-05-24 15:01:01 +08:00
1 parent 4a0c0311a4
commit f2cc3fd546
2646 files changed
+191803 -14376

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
import { 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, ','));
}