diff options
Diffstat (limited to 'assets/node_modules/@babel/types/lib/validators/isPlaceholderType.js')
-rw-r--r-- | assets/node_modules/@babel/types/lib/validators/isPlaceholderType.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/assets/node_modules/@babel/types/lib/validators/isPlaceholderType.js b/assets/node_modules/@babel/types/lib/validators/isPlaceholderType.js new file mode 100644 index 0000000..e8271de --- /dev/null +++ b/assets/node_modules/@babel/types/lib/validators/isPlaceholderType.js @@ -0,0 +1,21 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isPlaceholderType; + +var _definitions = require("../definitions"); + +function isPlaceholderType(placeholderType, targetType) { + if (placeholderType === targetType) return true; + const aliases = _definitions.PLACEHOLDERS_ALIAS[placeholderType]; + + if (aliases) { + for (const alias of aliases) { + if (targetType === alias) return true; + } + } + + return false; +}
\ No newline at end of file |