Urara-Blog/node_modules/.pnpm-store/v3/files/0e/ec153b0418cd11d7dcb478e2a6ebb0a6435a6aef5b03f7ca77d04b2593060c9e00511a496d49d6d59167ece33378b086894ead0ef55fc7fe14e9a6760058bd
2022-08-14 01:14:53 +08:00

36 lines
789 B
Text

var COMMA = require('../../tokenizer').TYPE.Comma;
module.exports = {
name: 'MediaQueryList',
structure: {
children: [[
'MediaQuery'
]]
},
parse: function(relative) {
var children = this.createList();
this.scanner.skipSC();
while (!this.scanner.eof) {
children.push(this.MediaQuery(relative));
if (this.scanner.tokenType !== COMMA) {
break;
}
this.scanner.next();
}
return {
type: 'MediaQueryList',
loc: this.getLocationFromList(children),
children: children
};
},
generate: function(node) {
this.children(node, function() {
this.chunk(',');
});
}
};