Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/rollup/dist/shared/parseAst.js
rd565449 r0c6b92a 1 1 /* 2 2 @license 3 Rollup.js v4.2 0.04 Sat, 03 Aug 2024 04:48:21 GMT - commit df12edfea6e9c1a71bda1a01bed1ab787b7514d53 Rollup.js v4.27.4 4 Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824 5 5 6 6 https://github.com/rollup/rollup … … 250 250 const URL_TREATING_MODULE_AS_EXTERNAL_DEPENDENCY = 'troubleshooting/#warning-treating-module-as-external-dependency'; 251 251 const URL_SOURCEMAP_IS_LIKELY_TO_BE_INCORRECT = 'troubleshooting/#warning-sourcemap-is-likely-to-be-incorrect'; 252 // configuration-options 253 const URL_JSX = 'configuration-options/#jsx'; 252 254 const URL_OUTPUT_AMD_ID = 'configuration-options/#output-amd-id'; 253 255 const URL_OUTPUT_AMD_BASEPATH = 'configuration-options/#output-amd-basepath'; … … 274 276 const URL_BUNDLE_CONFIG_AS_CJS = 'command-line-interface/#bundleconfigascjs'; 275 277 const URL_CONFIGURATION_FILES = 'command-line-interface/#configuration-files'; 278 const URL_GENERATEBUNDLE = 'plugin-development/#generatebundle'; 276 279 277 280 function error(base) { … … 322 325 prefix += `${relativeId(id)}${position}: `; 323 326 } 327 const oldMessage = log.message; 324 328 log.message = prefix + log.message; 329 tweakStackMessage(log, oldMessage); 325 330 } 326 331 // Error codes should be sorted alphabetically while errors should be sorted by 327 332 // error code below 328 const ADDON_ERROR = 'ADDON_ERROR', ALREADY_CLOSED = 'ALREADY_CLOSED', AMBIGUOUS_EXTERNAL_NAMESPACES = 'AMBIGUOUS_EXTERNAL_NAMESPACES', ANONYMOUS_PLUGIN_CACHE = 'ANONYMOUS_PLUGIN_CACHE', ASSET_NOT_FINALISED = 'ASSET_NOT_FINALISED', ASSET_NOT_FOUND = 'ASSET_NOT_FOUND', ASSET_SOURCE_ALREADY_SET = 'ASSET_SOURCE_ALREADY_SET', ASSET_SOURCE_MISSING = 'ASSET_SOURCE_MISSING', BAD_LOADER = 'BAD_LOADER', CANNOT_CALL_NAMESPACE = 'CANNOT_CALL_NAMESPACE', CANNOT_EMIT_FROM_OPTIONS_HOOK = 'CANNOT_EMIT_FROM_OPTIONS_HOOK', CHUNK_NOT_GENERATED = 'CHUNK_NOT_GENERATED', CHUNK_INVALID = 'CHUNK_INVALID', CIRCULAR_DEPENDENCY = 'CIRCULAR_DEPENDENCY', CIRCULAR_REEXPORT = 'CIRCULAR_REEXPORT', CONST_REASSIGN = 'CONST_REASSIGN', CYCLIC_CROSS_CHUNK_REEXPORT = 'CYCLIC_CROSS_CHUNK_REEXPORT', DEPRECATED_FEATURE = 'DEPRECATED_FEATURE', DUPLICATE_ARGUMENT_NAME = 'DUPLICATE_ARGUMENT_NAME', DUPLICATE_EXPORT = 'DUPLICATE_EXPORT', DUPLICATE_IMPORT_OPTIONS = 'DUPLICATE_IMPORT_OPTIONS', DUPLICATE_PLUGIN_NAME = 'DUPLICATE_PLUGIN_NAME', EMPTY_BUNDLE = 'EMPTY_BUNDLE', EVAL = 'EVAL', EXTERNAL_MODULES_CANNOT_BE_INCLUDED_IN_MANUAL_CHUNKS = 'EXTERNAL_MODULES_CANNOT_BE_INCLUDED_IN_MANUAL_CHUNKS', EXTERNAL_MODULES_CANNOT_BE_TRANSFORMED_TO_MODULES = 'EXTERNAL_MODULES_CANNOT_BE_TRANSFORMED_TO_MODULES', EXTERNAL_SYNTHETIC_EXPORTS = 'EXTERNAL_SYNTHETIC_EXPORTS', FAIL_AFTER_WARNINGS = 'FAIL_AFTER_WARNINGS', FILE_NAME_CONFLICT = 'FILE_NAME_CONFLICT', FILE_NOT_FOUND = 'FILE_NOT_FOUND', FIRST_SIDE_EFFECT = 'FIRST_SIDE_EFFECT', ILLEGAL_IDENTIFIER_AS_NAME = 'ILLEGAL_IDENTIFIER_AS_NAME', ILLEGAL_REASSIGNMENT = 'ILLEGAL_REASSIGNMENT', INCONSISTENT_IMPORT_ATTRIBUTES = 'INCONSISTENT_IMPORT_ATTRIBUTES', INVALID_ANNOTATION = 'INVALID_ANNOTATION', INPUT_HOOK_IN_OUTPUT_PLUGIN = 'INPUT_HOOK_IN_OUTPUT_PLUGIN', INVALID_CHUNK = 'INVALID_CHUNK', INVALID_CONFIG_MODULE_FORMAT = 'INVALID_CONFIG_MODULE_FORMAT', INVALID_EXPORT_OPTION = 'INVALID_EXPORT_OPTION', INVALID_EXTERNAL_ID = 'INVALID_EXTERNAL_ID', INVALID_IMPORT_ATTRIBUTE = 'INVALID_IMPORT_ATTRIBUTE', INVALID_LOG_POSITION = 'INVALID_LOG_POSITION', INVALID_OPTION = 'INVALID_OPTION', INVALID_PLUGIN_HOOK = 'INVALID_PLUGIN_HOOK', INVALID_ROLLUP_PHASE = 'INVALID_ROLLUP_PHASE', INVALID_SETASSETSOURCE = 'INVALID_SETASSETSOURCE', INVALID_TLA_FORMAT = 'INVALID_TLA_FORMAT', MISSING_CONFIG = 'MISSING_CONFIG', MISSING_EXPORT = 'MISSING_EXPORT', MISSING_EXTERNAL_CONFIG = 'MISSING_EXTERNAL_CONFIG', MISSING_GLOBAL_NAME = 'MISSING_GLOBAL_NAME', MISSING_IMPLICIT_DEPENDANT = 'MISSING_IMPLICIT_DEPENDANT', MISSING_ NAME_OPTION_FOR_IIFE_EXPORT = 'MISSING_NAME_OPTION_FOR_IIFE_EXPORT', MISSING_NODE_BUILTINS = 'MISSING_NODE_BUILTINS', MISSING_OPTION = 'MISSING_OPTION', MIXED_EXPORTS = 'MIXED_EXPORTS', MODULE_LEVEL_DIRECTIVE = 'MODULE_LEVEL_DIRECTIVE', NAMESPACE_CONFLICT = 'NAMESPACE_CONFLICT', NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE = 'NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE', ONLY_INLINE_SOURCEMAPS = 'ONLY_INLINE_SOURCEMAPS', OPTIMIZE_CHUNK_STATUS = 'OPTIMIZE_CHUNK_STATUS', PARSE_ERROR = 'PARSE_ERROR', PLUGIN_ERROR = 'PLUGIN_ERROR', REDECLARATION_ERROR = 'REDECLARATION_ERROR', SHIMMED_EXPORT = 'SHIMMED_EXPORT', SOURCEMAP_BROKEN = 'SOURCEMAP_BROKEN', SOURCEMAP_ERROR = 'SOURCEMAP_ERROR', SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT = 'SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT', THIS_IS_UNDEFINED = 'THIS_IS_UNDEFINED', UNEXPECTED_NAMED_IMPORT = 'UNEXPECTED_NAMED_IMPORT', UNKNOWN_OPTION = 'UNKNOWN_OPTION', UNRESOLVED_ENTRY = 'UNRESOLVED_ENTRY', UNRESOLVED_IMPORT = 'UNRESOLVED_IMPORT', UNUSED_EXTERNAL_IMPORT = 'UNUSED_EXTERNAL_IMPORT', VALIDATION_ERROR = 'VALIDATION_ERROR';333 const ADDON_ERROR = 'ADDON_ERROR', ALREADY_CLOSED = 'ALREADY_CLOSED', AMBIGUOUS_EXTERNAL_NAMESPACES = 'AMBIGUOUS_EXTERNAL_NAMESPACES', ANONYMOUS_PLUGIN_CACHE = 'ANONYMOUS_PLUGIN_CACHE', ASSET_NOT_FINALISED = 'ASSET_NOT_FINALISED', ASSET_NOT_FOUND = 'ASSET_NOT_FOUND', ASSET_SOURCE_ALREADY_SET = 'ASSET_SOURCE_ALREADY_SET', ASSET_SOURCE_MISSING = 'ASSET_SOURCE_MISSING', BAD_LOADER = 'BAD_LOADER', CANNOT_CALL_NAMESPACE = 'CANNOT_CALL_NAMESPACE', CANNOT_EMIT_FROM_OPTIONS_HOOK = 'CANNOT_EMIT_FROM_OPTIONS_HOOK', CHUNK_NOT_GENERATED = 'CHUNK_NOT_GENERATED', CHUNK_INVALID = 'CHUNK_INVALID', CIRCULAR_DEPENDENCY = 'CIRCULAR_DEPENDENCY', CIRCULAR_REEXPORT = 'CIRCULAR_REEXPORT', CONST_REASSIGN = 'CONST_REASSIGN', CYCLIC_CROSS_CHUNK_REEXPORT = 'CYCLIC_CROSS_CHUNK_REEXPORT', DEPRECATED_FEATURE = 'DEPRECATED_FEATURE', DUPLICATE_ARGUMENT_NAME = 'DUPLICATE_ARGUMENT_NAME', DUPLICATE_EXPORT = 'DUPLICATE_EXPORT', DUPLICATE_IMPORT_OPTIONS = 'DUPLICATE_IMPORT_OPTIONS', DUPLICATE_PLUGIN_NAME = 'DUPLICATE_PLUGIN_NAME', EMPTY_BUNDLE = 'EMPTY_BUNDLE', EVAL = 'EVAL', EXTERNAL_MODULES_CANNOT_BE_INCLUDED_IN_MANUAL_CHUNKS = 'EXTERNAL_MODULES_CANNOT_BE_INCLUDED_IN_MANUAL_CHUNKS', EXTERNAL_MODULES_CANNOT_BE_TRANSFORMED_TO_MODULES = 'EXTERNAL_MODULES_CANNOT_BE_TRANSFORMED_TO_MODULES', EXTERNAL_SYNTHETIC_EXPORTS = 'EXTERNAL_SYNTHETIC_EXPORTS', FAIL_AFTER_WARNINGS = 'FAIL_AFTER_WARNINGS', FILE_NAME_CONFLICT = 'FILE_NAME_CONFLICT', FILE_NOT_FOUND = 'FILE_NOT_FOUND', FIRST_SIDE_EFFECT = 'FIRST_SIDE_EFFECT', ILLEGAL_IDENTIFIER_AS_NAME = 'ILLEGAL_IDENTIFIER_AS_NAME', ILLEGAL_REASSIGNMENT = 'ILLEGAL_REASSIGNMENT', INCONSISTENT_IMPORT_ATTRIBUTES = 'INCONSISTENT_IMPORT_ATTRIBUTES', INVALID_ANNOTATION = 'INVALID_ANNOTATION', INPUT_HOOK_IN_OUTPUT_PLUGIN = 'INPUT_HOOK_IN_OUTPUT_PLUGIN', INVALID_CHUNK = 'INVALID_CHUNK', INVALID_CONFIG_MODULE_FORMAT = 'INVALID_CONFIG_MODULE_FORMAT', INVALID_EXPORT_OPTION = 'INVALID_EXPORT_OPTION', INVALID_EXTERNAL_ID = 'INVALID_EXTERNAL_ID', INVALID_IMPORT_ATTRIBUTE = 'INVALID_IMPORT_ATTRIBUTE', INVALID_LOG_POSITION = 'INVALID_LOG_POSITION', INVALID_OPTION = 'INVALID_OPTION', INVALID_PLUGIN_HOOK = 'INVALID_PLUGIN_HOOK', INVALID_ROLLUP_PHASE = 'INVALID_ROLLUP_PHASE', INVALID_SETASSETSOURCE = 'INVALID_SETASSETSOURCE', INVALID_TLA_FORMAT = 'INVALID_TLA_FORMAT', MISSING_CONFIG = 'MISSING_CONFIG', MISSING_EXPORT = 'MISSING_EXPORT', MISSING_EXTERNAL_CONFIG = 'MISSING_EXTERNAL_CONFIG', MISSING_GLOBAL_NAME = 'MISSING_GLOBAL_NAME', MISSING_IMPLICIT_DEPENDANT = 'MISSING_IMPLICIT_DEPENDANT', MISSING_JSX_EXPORT = 'MISSING_JSX_EXPORT', MISSING_NAME_OPTION_FOR_IIFE_EXPORT = 'MISSING_NAME_OPTION_FOR_IIFE_EXPORT', MISSING_NODE_BUILTINS = 'MISSING_NODE_BUILTINS', MISSING_OPTION = 'MISSING_OPTION', MIXED_EXPORTS = 'MIXED_EXPORTS', MODULE_LEVEL_DIRECTIVE = 'MODULE_LEVEL_DIRECTIVE', NAMESPACE_CONFLICT = 'NAMESPACE_CONFLICT', NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE = 'NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE', ONLY_INLINE_SOURCEMAPS = 'ONLY_INLINE_SOURCEMAPS', OPTIMIZE_CHUNK_STATUS = 'OPTIMIZE_CHUNK_STATUS', PARSE_ERROR = 'PARSE_ERROR', PLUGIN_ERROR = 'PLUGIN_ERROR', REDECLARATION_ERROR = 'REDECLARATION_ERROR', RESERVED_NAMESPACE = 'RESERVED_NAMESPACE', SHIMMED_EXPORT = 'SHIMMED_EXPORT', SOURCEMAP_BROKEN = 'SOURCEMAP_BROKEN', SOURCEMAP_ERROR = 'SOURCEMAP_ERROR', SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT = 'SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT', THIS_IS_UNDEFINED = 'THIS_IS_UNDEFINED', UNEXPECTED_NAMED_IMPORT = 'UNEXPECTED_NAMED_IMPORT', UNKNOWN_OPTION = 'UNKNOWN_OPTION', UNRESOLVED_ENTRY = 'UNRESOLVED_ENTRY', UNRESOLVED_IMPORT = 'UNRESOLVED_IMPORT', UNUSED_EXTERNAL_IMPORT = 'UNUSED_EXTERNAL_IMPORT', VALIDATION_ERROR = 'VALIDATION_ERROR'; 329 334 function logAddonNotGenerated(message, hook, plugin) { 330 335 return { … … 560 565 }; 561 566 } 567 function tweakStackMessage(error, oldMessage) { 568 if (!error.stack) { 569 return error; 570 } 571 error.stack = error.stack.replace(oldMessage, error.message); 572 return error; 573 } 562 574 function logCannotBundleConfigAsEsm(originalError) { 563 return {575 return tweakStackMessage({ 564 576 cause: originalError, 565 577 code: INVALID_CONFIG_MODULE_FORMAT, … … 567 579 stack: originalError.stack, 568 580 url: getRollupUrl(URL_BUNDLE_CONFIG_AS_CJS) 569 } ;581 }, originalError.message); 570 582 } 571 583 function logCannotLoadConfigAsCjs(originalError) { 572 return {584 return tweakStackMessage({ 573 585 cause: originalError, 574 586 code: INVALID_CONFIG_MODULE_FORMAT, … … 576 588 stack: originalError.stack, 577 589 url: getRollupUrl(URL_BUNDLE_CONFIG_AS_CJS) 578 } ;590 }, originalError.message); 579 591 } 580 592 function logCannotLoadConfigAsEsm(originalError) { 581 return {593 return tweakStackMessage({ 582 594 cause: originalError, 583 595 code: INVALID_CONFIG_MODULE_FORMAT, … … 585 597 stack: originalError.stack, 586 598 url: getRollupUrl(URL_BUNDLE_CONFIG_AS_CJS) 587 } ;599 }, originalError.message); 588 600 } 589 601 function logInvalidExportOptionValue(optionValue) { … … 730 742 }; 731 743 } 744 function logMissingJsxExport(name, exporter, importer) { 745 return { 746 code: MISSING_JSX_EXPORT, 747 exporter, 748 id: importer, 749 message: `Export "${name}" is not defined in module "${relativeId(exporter)}" even though it is needed in "${relativeId(importer)}" to provide JSX syntax. Please check your "jsx" option.`, 750 names: [name], 751 url: getRollupUrl(URL_JSX) 752 }; 753 } 732 754 function logMissingNameOptionForIifeExport() { 733 755 return { … … 751 773 }; 752 774 } 753 // eslint-disable-next-line unicorn/prevent-abbreviations754 775 function logMissingFileOrDirOption() { 755 776 return { … … 813 834 }; 814 835 } 836 function logReservedNamespace(namespace) { 837 return { 838 code: RESERVED_NAMESPACE, 839 message: `You have overided reserved namespace "${namespace}"` 840 }; 841 } 815 842 function logModuleParseError(error, moduleId) { 816 843 let message = error.message.replace(/ \(\d+:\d+\)$/, ''); … … 821 848 message += ' (Note that you need plugins to import files that are not JavaScript)'; 822 849 } 823 return {850 return tweakStackMessage({ 824 851 cause: error, 825 852 code: PARSE_ERROR, … … 827 854 message, 828 855 stack: error.stack 829 } ;856 }, error.message); 830 857 } 831 858 function logPluginError(error, plugin, { hook, id } = {}) { … … 984 1011 } 985 1012 function warnDeprecationWithOptions(deprecation, urlSnippet, activeDeprecation, log, strictDeprecations, plugin) { 986 {1013 if (activeDeprecation || strictDeprecations) { 987 1014 const warning = logDeprecation(deprecation, urlSnippet); 988 1015 if (strictDeprecations) { … … 1012 1039 const Identifier = 'Identifier'; 1013 1040 const Literal = 'Literal'; 1041 const ObjectExpression = 'ObjectExpression'; 1014 1042 const PanicError = 'PanicError'; 1015 1043 const ParseError = 'ParseError'; … … 1095 1123 return EMPTY_ARRAY; 1096 1124 const length = buffer[position++]; 1097 const list = [];1125 const list = new Array(length); 1098 1126 for (let index = 0; index < length; index++) { 1099 list .push(convertAnnotation(buffer[position++], buffer));1127 list[index] = convertAnnotation(buffer[position++], buffer); 1100 1128 } 1101 1129 return list; … … 1548 1576 }; 1549 1577 }, 1578 function jsxAttribute(position, buffer) { 1579 const valuePosition = buffer[position + 3]; 1580 return { 1581 type: 'JSXAttribute', 1582 start: buffer[position], 1583 end: buffer[position + 1], 1584 name: convertNode(buffer[position + 2], buffer), 1585 value: valuePosition === 0 ? null : convertNode(valuePosition, buffer) 1586 }; 1587 }, 1588 function jsxClosingElement(position, buffer) { 1589 return { 1590 type: 'JSXClosingElement', 1591 start: buffer[position], 1592 end: buffer[position + 1], 1593 name: convertNode(buffer[position + 2], buffer) 1594 }; 1595 }, 1596 function jsxClosingFragment(position, buffer) { 1597 return { 1598 type: 'JSXClosingFragment', 1599 start: buffer[position], 1600 end: buffer[position + 1] 1601 }; 1602 }, 1603 function jsxElement(position, buffer) { 1604 const closingElementPosition = buffer[position + 4]; 1605 return { 1606 type: 'JSXElement', 1607 start: buffer[position], 1608 end: buffer[position + 1], 1609 openingElement: convertNode(buffer[position + 2], buffer), 1610 children: convertNodeList(buffer[position + 3], buffer), 1611 closingElement: closingElementPosition === 0 ? null : convertNode(closingElementPosition, buffer) 1612 }; 1613 }, 1614 function jsxEmptyExpression(position, buffer) { 1615 return { 1616 type: 'JSXEmptyExpression', 1617 start: buffer[position], 1618 end: buffer[position + 1] 1619 }; 1620 }, 1621 function jsxExpressionContainer(position, buffer) { 1622 return { 1623 type: 'JSXExpressionContainer', 1624 start: buffer[position], 1625 end: buffer[position + 1], 1626 expression: convertNode(buffer[position + 2], buffer) 1627 }; 1628 }, 1629 function jsxFragment(position, buffer) { 1630 return { 1631 type: 'JSXFragment', 1632 start: buffer[position], 1633 end: buffer[position + 1], 1634 openingFragment: convertNode(buffer[position + 2], buffer), 1635 children: convertNodeList(buffer[position + 3], buffer), 1636 closingFragment: convertNode(buffer[position + 4], buffer) 1637 }; 1638 }, 1639 function jsxIdentifier(position, buffer) { 1640 return { 1641 type: 'JSXIdentifier', 1642 start: buffer[position], 1643 end: buffer[position + 1], 1644 name: buffer.convertString(buffer[position + 2]) 1645 }; 1646 }, 1647 function jsxMemberExpression(position, buffer) { 1648 return { 1649 type: 'JSXMemberExpression', 1650 start: buffer[position], 1651 end: buffer[position + 1], 1652 object: convertNode(buffer[position + 2], buffer), 1653 property: convertNode(buffer[position + 3], buffer) 1654 }; 1655 }, 1656 function jsxNamespacedName(position, buffer) { 1657 return { 1658 type: 'JSXNamespacedName', 1659 start: buffer[position], 1660 end: buffer[position + 1], 1661 namespace: convertNode(buffer[position + 2], buffer), 1662 name: convertNode(buffer[position + 3], buffer) 1663 }; 1664 }, 1665 function jsxOpeningElement(position, buffer) { 1666 const flags = buffer[position + 2]; 1667 return { 1668 type: 'JSXOpeningElement', 1669 start: buffer[position], 1670 end: buffer[position + 1], 1671 selfClosing: (flags & 1) === 1, 1672 name: convertNode(buffer[position + 3], buffer), 1673 attributes: convertNodeList(buffer[position + 4], buffer) 1674 }; 1675 }, 1676 function jsxOpeningFragment(position, buffer) { 1677 return { 1678 type: 'JSXOpeningFragment', 1679 start: buffer[position], 1680 end: buffer[position + 1], 1681 attributes: [], 1682 selfClosing: false 1683 }; 1684 }, 1685 function jsxSpreadAttribute(position, buffer) { 1686 return { 1687 type: 'JSXSpreadAttribute', 1688 start: buffer[position], 1689 end: buffer[position + 1], 1690 argument: convertNode(buffer[position + 2], buffer) 1691 }; 1692 }, 1693 function jsxSpreadChild(position, buffer) { 1694 return { 1695 type: 'JSXSpreadChild', 1696 start: buffer[position], 1697 end: buffer[position + 1], 1698 expression: convertNode(buffer[position + 2], buffer) 1699 }; 1700 }, 1701 function jsxText(position, buffer) { 1702 return { 1703 type: 'JSXText', 1704 start: buffer[position], 1705 end: buffer[position + 1], 1706 value: buffer.convertString(buffer[position + 2]), 1707 raw: buffer.convertString(buffer[position + 3]) 1708 }; 1709 }, 1550 1710 function labeledStatement(position, buffer) { 1551 1711 return { … … 1941 2101 return EMPTY_ARRAY; 1942 2102 const length = buffer[position++]; 1943 const list = [];2103 const list = new Array(length); 1944 2104 for (let index = 0; index < length; index++) { 1945 2105 const nodePosition = buffer[position++]; 1946 list .push(nodePosition ? convertNode(nodePosition, buffer) : null);2106 list[index] = nodePosition ? convertNode(nodePosition, buffer) : null; 1947 2107 } 1948 2108 return list; … … 1970 2130 } 1971 2131 1972 const parseAst = (input, { allowReturnOutsideFunction = false } = {}) => convertProgram(getAstBuffer(native_js.parse(input, allowReturnOutsideFunction)));1973 const parseAstAsync = async (input, { allowReturnOutsideFunction = false, signal } = {}) => convertProgram(getAstBuffer(await native_js.parseAsync(input, allowReturnOutsideFunction, signal)));2132 const parseAst = (input, { allowReturnOutsideFunction = false, jsx = false } = {}) => convertProgram(getAstBuffer(native_js.parse(input, allowReturnOutsideFunction, jsx))); 2133 const parseAstAsync = async (input, { allowReturnOutsideFunction = false, jsx = false, signal } = {}) => convertProgram(getAstBuffer(await native_js.parseAsync(input, allowReturnOutsideFunction, jsx, signal))); 1974 2134 1975 2135 exports.ANNOTATION_KEY = ANNOTATION_KEY; … … 1992 2152 exports.LOGLEVEL_WARN = LOGLEVEL_WARN; 1993 2153 exports.Literal = Literal; 2154 exports.ObjectExpression = ObjectExpression; 1994 2155 exports.Program = Program; 1995 2156 exports.Property = Property; … … 1998 2159 exports.TemplateLiteral = TemplateLiteral; 1999 2160 exports.URL_AVOIDING_EVAL = URL_AVOIDING_EVAL; 2161 exports.URL_GENERATEBUNDLE = URL_GENERATEBUNDLE; 2162 exports.URL_JSX = URL_JSX; 2000 2163 exports.URL_NAME_IS_NOT_EXPORTED = URL_NAME_IS_NOT_EXPORTED; 2001 2164 exports.URL_OUTPUT_AMD_BASEPATH = URL_OUTPUT_AMD_BASEPATH; … … 2099 2262 exports.logMissingFileOrDirOption = logMissingFileOrDirOption; 2100 2263 exports.logMissingGlobalName = logMissingGlobalName; 2264 exports.logMissingJsxExport = logMissingJsxExport; 2101 2265 exports.logMissingNameOptionForIifeExport = logMissingNameOptionForIifeExport; 2102 2266 exports.logMissingNameOptionForUmdExport = logMissingNameOptionForUmdExport; … … 2113 2277 exports.logPluginError = logPluginError; 2114 2278 exports.logRedeclarationError = logRedeclarationError; 2279 exports.logReservedNamespace = logReservedNamespace; 2115 2280 exports.logShimmedExport = logShimmedExport; 2116 2281 exports.logSourcemapBroken = logSourcemapBroken;
Note:
See TracChangeset
for help on using the changeset viewer.