Gazebo_simulation-Frontend/node_modules/.cache/babel-loader/c844636ca05d4e5cfbe37e9e62d...

1 line
1.0 KiB
JSON

{"ast":null,"code":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = is;\n\nvar _shallowEqual = _interopRequireDefault(require(\"../utils/shallowEqual\"));\n\nvar _isType = _interopRequireDefault(require(\"./isType\"));\n\nvar _isPlaceholderType = _interopRequireDefault(require(\"./isPlaceholderType\"));\n\nvar _definitions = require(\"../definitions\");\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction is(type, node, opts) {\n if (!node) return false;\n var matches = (0, _isType.default)(node.type, type);\n\n if (!matches) {\n if (!opts && node.type === \"Placeholder\" && type in _definitions.FLIPPED_ALIAS_KEYS) {\n return (0, _isPlaceholderType.default)(node.expectedNode, type);\n }\n\n return false;\n }\n\n if (typeof opts === \"undefined\") {\n return true;\n } else {\n return (0, _shallowEqual.default)(node, opts);\n }\n}","map":null,"metadata":{},"sourceType":"script"}