HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/firetech.komma.pro/node_modules/css-tree/lib/lexer/grammar/walk.js
'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);
};