diff options
Diffstat (limited to 'node_modules/cssnano-utils/src/getArguments.js')
| -rw-r--r-- | node_modules/cssnano-utils/src/getArguments.js | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/node_modules/cssnano-utils/src/getArguments.js b/node_modules/cssnano-utils/src/getArguments.js deleted file mode 100644 index 7c8e48aa..00000000 --- a/node_modules/cssnano-utils/src/getArguments.js +++ /dev/null @@ -1,19 +0,0 @@ -'use strict'; -/** - * Extracts the arguments of a CSS function or AtRule. - * - * @param {import('postcss-value-parser').ParsedValue | import('postcss-value-parser').FunctionNode} node - * @return {import('postcss-value-parser').Node[][]} - */ -module.exports = function getArguments(node) { - /** @type {import('postcss-value-parser').Node[][]} */ - const list = [[]]; - for (const child of node.nodes) { - if (child.type !== 'div') { - list[list.length - 1].push(child); - } else { - list.push([]); - } - } - return list; -}; |
