aboutsummaryrefslogtreecommitdiffstats
path: root/vanilla/node_modules/css-tree/cjs/convertor/create.cjs
diff options
context:
space:
mode:
Diffstat (limited to 'vanilla/node_modules/css-tree/cjs/convertor/create.cjs')
-rw-r--r--vanilla/node_modules/css-tree/cjs/convertor/create.cjs32
1 files changed, 0 insertions, 32 deletions
diff --git a/vanilla/node_modules/css-tree/cjs/convertor/create.cjs b/vanilla/node_modules/css-tree/cjs/convertor/create.cjs
deleted file mode 100644
index 55c655b..0000000
--- a/vanilla/node_modules/css-tree/cjs/convertor/create.cjs
+++ /dev/null
@@ -1,32 +0,0 @@
-'use strict';
-
-const List = require('../utils/List.cjs');
-
-function createConvertor(walk) {
- return {
- fromPlainObject(ast) {
- walk(ast, {
- enter(node) {
- if (node.children && node.children instanceof List.List === false) {
- node.children = new List.List().fromArray(node.children);
- }
- }
- });
-
- return ast;
- },
- toPlainObject(ast) {
- walk(ast, {
- leave(node) {
- if (node.children && node.children instanceof List.List) {
- node.children = node.children.toArray();
- }
- }
- });
-
- return ast;
- }
- };
-}
-
-exports.createConvertor = createConvertor;