first commit

This commit is contained in:
s.golasch
2023-08-01 13:49:46 +02:00
commit 1fc239fd54
20238 changed files with 3112246 additions and 0 deletions

31
build/node_modules/css-tree/lib/lexer/grammar/walk.js generated vendored Normal file
View File

@@ -0,0 +1,31 @@
'use strict';
module.exports = function walk(node, fn, context) {
switch (node.type) {
case 'Group':
node.terms.forEach(function(term) {
walk(term, fn, context);
});
break;
case 'Function':
case 'Parentheses':
walk(node.children, fn, context);
break;
case 'Keyword':
case 'Type':
case 'Property':
case 'Combinator':
case 'Comma':
case 'Slash':
case 'String':
case 'Percent':
break;
default:
throw new Error('Unknown type: ' + node.type);
}
fn.call(context, node);
};