Gazebo_simulation-Frontend/node_modules/.cache/babel-loader/502c10f5c53aee29a8023303c1c0d33e.json
2020-12-31 20:18:50 +00:00

1 line
974 B
JSON

{"ast":null,"code":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = buildChildren;\n\nvar _generated = require(\"../../validators/generated\");\n\nvar _cleanJSXElementLiteralChild = _interopRequireDefault(require(\"../../utils/react/cleanJSXElementLiteralChild\"));\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction buildChildren(node) {\n var elements = [];\n\n for (var i = 0; i < node.children.length; i++) {\n var child = node.children[i];\n\n if ((0, _generated.isJSXText)(child)) {\n (0, _cleanJSXElementLiteralChild.default)(child, elements);\n continue;\n }\n\n if ((0, _generated.isJSXExpressionContainer)(child)) child = child.expression;\n if ((0, _generated.isJSXEmptyExpression)(child)) continue;\n elements.push(child);\n }\n\n return elements;\n}","map":null,"metadata":{},"sourceType":"script"}