immosquare-cleaner 0.1.64 → 0.1.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/immosquare-cleaner/version.rb +1 -1
- data/lib/immosquare-cleaner.rb +53 -52
- data/lib/tasks/immosquare_cleaner.rake +17 -1
- data/linters/eslint.config.mjs +14 -0
- data/linters/rubocop/cop/custom_cops/style/font_awesome_normalization.rb +2 -0
- data/node_modules/@babel/compat-data/data/plugins.json +6 -7
- data/node_modules/@babel/compat-data/package.json +2 -2
- data/node_modules/@babel/core/lib/config/files/configuration.js +3 -0
- data/node_modules/@babel/core/lib/config/files/configuration.js.map +1 -1
- data/node_modules/@babel/core/lib/config/files/module-types.js +74 -63
- data/node_modules/@babel/core/lib/config/files/module-types.js.map +1 -1
- data/node_modules/@babel/core/lib/config/files/plugins.js +1 -0
- data/node_modules/@babel/core/lib/config/files/plugins.js.map +1 -1
- data/node_modules/@babel/core/lib/config/partial.js +1 -1
- data/node_modules/@babel/core/lib/config/partial.js.map +1 -1
- data/node_modules/@babel/core/lib/index.js +1 -2
- data/node_modules/@babel/core/lib/index.js.map +1 -1
- data/node_modules/@babel/core/lib/parser/index.js.map +1 -1
- data/node_modules/@babel/core/lib/transformation/file/babel-7-helpers.cjs +3 -1
- data/node_modules/@babel/core/lib/transformation/file/babel-7-helpers.cjs.map +1 -1
- data/node_modules/@babel/core/lib/transformation/file/file.js +2 -4
- data/node_modules/@babel/core/lib/transformation/file/file.js.map +1 -1
- data/node_modules/@babel/core/lib/transformation/normalize-file.js.map +1 -1
- data/node_modules/@babel/core/lib/transformation/util/clone-deep.js +27 -7
- data/node_modules/@babel/core/lib/transformation/util/clone-deep.js.map +1 -1
- data/node_modules/@babel/core/package.json +13 -14
- data/node_modules/@babel/generator/lib/generators/classes.js +7 -4
- data/node_modules/@babel/generator/lib/generators/classes.js.map +1 -1
- data/node_modules/@babel/generator/lib/generators/deprecated.js +28 -0
- data/node_modules/@babel/generator/lib/generators/deprecated.js.map +1 -0
- data/node_modules/@babel/generator/lib/generators/expressions.js +9 -3
- data/node_modules/@babel/generator/lib/generators/expressions.js.map +1 -1
- data/node_modules/@babel/generator/lib/generators/jsx.js +6 -1
- data/node_modules/@babel/generator/lib/generators/jsx.js.map +1 -1
- data/node_modules/@babel/generator/lib/generators/template-literals.js +16 -11
- data/node_modules/@babel/generator/lib/generators/template-literals.js.map +1 -1
- data/node_modules/@babel/generator/lib/generators/types.js +0 -9
- data/node_modules/@babel/generator/lib/generators/types.js.map +1 -1
- data/node_modules/@babel/generator/lib/generators/typescript.js +36 -18
- data/node_modules/@babel/generator/lib/generators/typescript.js.map +1 -1
- data/node_modules/@babel/generator/lib/node/parentheses.js +40 -3
- data/node_modules/@babel/generator/lib/node/parentheses.js.map +1 -1
- data/node_modules/@babel/generator/lib/printer.js +4 -3
- data/node_modules/@babel/generator/lib/printer.js.map +1 -1
- data/node_modules/@babel/generator/package.json +5 -5
- data/node_modules/@babel/helper-compilation-targets/lib/index.js +1 -1
- data/node_modules/@babel/helper-compilation-targets/lib/index.js.map +1 -1
- data/node_modules/@babel/helper-compilation-targets/package.json +2 -2
- data/node_modules/@babel/helper-create-class-features-plugin/lib/decorators-2018-09.js +1 -9
- data/node_modules/@babel/helper-create-class-features-plugin/lib/decorators-2018-09.js.map +1 -1
- data/node_modules/@babel/helper-create-class-features-plugin/lib/decorators.js +9 -0
- data/node_modules/@babel/helper-create-class-features-plugin/lib/decorators.js.map +1 -1
- data/node_modules/@babel/helper-create-class-features-plugin/lib/features.js +1 -1
- data/node_modules/@babel/helper-create-class-features-plugin/lib/features.js.map +1 -1
- data/node_modules/@babel/helper-create-class-features-plugin/lib/index.js +8 -8
- data/node_modules/@babel/helper-create-class-features-plugin/lib/index.js.map +1 -1
- data/node_modules/@babel/helper-create-class-features-plugin/package.json +5 -5
- data/node_modules/@babel/helper-plugin-utils/lib/index.js.map +1 -1
- data/node_modules/@babel/helper-plugin-utils/package.json +2 -2
- data/node_modules/@babel/helper-replace-supers/lib/index.js.map +1 -1
- data/node_modules/@babel/helper-replace-supers/package.json +3 -3
- data/node_modules/@babel/helpers/lib/helpers/asyncIterator.js.map +1 -1
- data/node_modules/@babel/helpers/lib/helpers/isNativeFunction.js.map +1 -1
- data/node_modules/@babel/helpers/lib/helpers/objectWithoutProperties.js +1 -1
- data/node_modules/@babel/helpers/lib/helpers/objectWithoutProperties.js.map +1 -1
- data/node_modules/@babel/helpers/lib/helpers/objectWithoutPropertiesLoose.js +1 -1
- data/node_modules/@babel/helpers/lib/helpers/objectWithoutPropertiesLoose.js.map +1 -1
- data/node_modules/@babel/helpers/lib/helpers/wrapRegExp.js +7 -3
- data/node_modules/@babel/helpers/lib/helpers/wrapRegExp.js.map +1 -1
- data/node_modules/@babel/helpers/lib/helpers-generated.js +3 -3
- data/node_modules/@babel/helpers/lib/helpers-generated.js.map +1 -1
- data/node_modules/@babel/helpers/package.json +5 -5
- data/node_modules/@babel/parser/lib/index.js +426 -236
- data/node_modules/@babel/parser/lib/index.js.map +1 -1
- data/node_modules/@babel/parser/package.json +2 -2
- data/node_modules/@babel/parser/typings/babel-parser.d.ts +127 -164
- data/node_modules/@babel/plugin-transform-flow-strip-types/lib/index.js +6 -0
- data/node_modules/@babel/plugin-transform-flow-strip-types/lib/index.js.map +1 -1
- data/node_modules/@babel/plugin-transform-flow-strip-types/package.json +4 -4
- data/node_modules/@babel/plugin-transform-nullish-coalescing-operator/lib/index.js +3 -2
- data/node_modules/@babel/plugin-transform-nullish-coalescing-operator/lib/index.js.map +1 -1
- data/node_modules/@babel/plugin-transform-nullish-coalescing-operator/package.json +3 -3
- data/node_modules/@babel/plugin-transform-typescript/lib/const-enum.js +3 -1
- data/node_modules/@babel/plugin-transform-typescript/lib/const-enum.js.map +1 -1
- data/node_modules/@babel/plugin-transform-typescript/lib/enum.js +24 -11
- data/node_modules/@babel/plugin-transform-typescript/lib/enum.js.map +1 -1
- data/node_modules/@babel/plugin-transform-typescript/lib/index.js +38 -9
- data/node_modules/@babel/plugin-transform-typescript/lib/index.js.map +1 -1
- data/node_modules/@babel/plugin-transform-typescript/lib/namespace.js +2 -0
- data/node_modules/@babel/plugin-transform-typescript/lib/namespace.js.map +1 -1
- data/node_modules/@babel/plugin-transform-typescript/package.json +5 -5
- data/node_modules/@babel/template/lib/options.js.map +1 -1
- data/node_modules/@babel/template/lib/parse.js.map +1 -1
- data/node_modules/@babel/template/package.json +4 -4
- data/node_modules/@babel/traverse/lib/cache.js +4 -5
- data/node_modules/@babel/traverse/lib/cache.js.map +1 -1
- data/node_modules/@babel/traverse/lib/path/conversion.js +1 -2
- data/node_modules/@babel/traverse/lib/path/conversion.js.map +1 -1
- data/node_modules/@babel/traverse/lib/path/evaluation.js +17 -0
- data/node_modules/@babel/traverse/lib/path/evaluation.js.map +1 -1
- data/node_modules/@babel/traverse/lib/path/lib/hoister.js.map +1 -1
- data/node_modules/@babel/traverse/lib/path/modification.js +1 -1
- data/node_modules/@babel/traverse/lib/path/modification.js.map +1 -1
- data/node_modules/@babel/traverse/lib/path/replacement.js.map +1 -1
- data/node_modules/@babel/traverse/lib/scope/index.js +9 -2
- data/node_modules/@babel/traverse/lib/scope/index.js.map +1 -1
- data/node_modules/@babel/traverse/lib/visitors.js +1 -1
- data/node_modules/@babel/traverse/lib/visitors.js.map +1 -1
- data/node_modules/@babel/traverse/package.json +6 -6
- data/node_modules/@babel/types/lib/asserts/generated/index.js +8 -0
- data/node_modules/@babel/types/lib/asserts/generated/index.js.map +1 -1
- data/node_modules/@babel/types/lib/ast-types/generated/index.js.map +1 -1
- data/node_modules/@babel/types/lib/builders/generated/index.js +22 -2858
- data/node_modules/@babel/types/lib/builders/generated/index.js.map +1 -1
- data/node_modules/@babel/types/lib/builders/generated/lowercase.js +2886 -0
- data/node_modules/@babel/types/lib/builders/generated/lowercase.js.map +1 -0
- data/node_modules/@babel/types/lib/builders/generated/uppercase.js +267 -255
- data/node_modules/@babel/types/lib/builders/generated/uppercase.js.map +1 -1
- data/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js.map +1 -1
- data/node_modules/@babel/types/lib/converters/toSequenceExpression.js.map +1 -1
- data/node_modules/@babel/types/lib/definitions/core.js +26 -17
- data/node_modules/@babel/types/lib/definitions/core.js.map +1 -1
- data/node_modules/@babel/types/lib/definitions/flow.js +6 -3
- data/node_modules/@babel/types/lib/definitions/flow.js.map +1 -1
- data/node_modules/@babel/types/lib/definitions/jsx.js +9 -4
- data/node_modules/@babel/types/lib/definitions/jsx.js.map +1 -1
- data/node_modules/@babel/types/lib/definitions/typescript.js +51 -26
- data/node_modules/@babel/types/lib/definitions/typescript.js.map +1 -1
- data/node_modules/@babel/types/lib/definitions/utils.js +2 -2
- data/node_modules/@babel/types/lib/definitions/utils.js.map +1 -1
- data/node_modules/@babel/types/lib/index-legacy.d.ts +27 -7
- data/node_modules/@babel/types/lib/index.d.ts +1178 -1156
- data/node_modules/@babel/types/lib/index.js +10 -21
- data/node_modules/@babel/types/lib/index.js.flow +26 -6
- data/node_modules/@babel/types/lib/index.js.map +1 -1
- data/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js +9 -8
- data/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js.map +1 -1
- data/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js +1 -0
- data/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js.map +1 -1
- data/node_modules/@babel/types/lib/validators/generated/index.js +17 -0
- data/node_modules/@babel/types/lib/validators/generated/index.js.map +1 -1
- data/node_modules/@babel/types/package.json +12 -12
- data/node_modules/@eslint-community/eslint-utils/index.js +21 -1
- data/node_modules/@eslint-community/eslint-utils/index.js.map +1 -1
- data/node_modules/@eslint-community/eslint-utils/index.mjs +21 -1
- data/node_modules/@eslint-community/eslint-utils/index.mjs.map +1 -1
- data/node_modules/@eslint-community/eslint-utils/package.json +1 -1
- data/node_modules/acorn/CHANGELOG.md +12 -0
- data/node_modules/acorn/dist/acorn.js +33 -24
- data/node_modules/acorn/dist/acorn.mjs +33 -24
- data/node_modules/acorn/package.json +1 -1
- data/node_modules/async-function/CHANGELOG.md +16 -0
- data/node_modules/{jscodeshift → async-function}/LICENSE +1 -1
- data/node_modules/async-function/README.md +51 -0
- data/node_modules/async-function/index.d.mts +3 -0
- data/node_modules/async-function/index.d.ts +13 -0
- data/node_modules/async-function/index.js +8 -0
- data/node_modules/async-function/index.mjs +4 -0
- data/node_modules/async-function/legacy.js +18 -0
- data/node_modules/async-function/package.json +86 -0
- data/node_modules/async-function/require.mjs +5 -0
- data/node_modules/async-function/test/index.js +40 -0
- data/node_modules/async-function/tsconfig.json +9 -0
- data/node_modules/browserslist/index.js +23 -4
- data/node_modules/browserslist/node.js +69 -60
- data/node_modules/browserslist/package.json +1 -1
- data/node_modules/call-bind-apply-helpers/CHANGELOG.md +7 -0
- data/node_modules/call-bind-apply-helpers/index.d.ts +38 -20
- data/node_modules/call-bind-apply-helpers/index.js +1 -1
- data/node_modules/call-bind-apply-helpers/package.json +8 -8
- data/node_modules/call-bind-apply-helpers/test/index.js +4 -4
- data/node_modules/call-bound/CHANGELOG.md +8 -0
- data/node_modules/call-bound/index.d.ts +91 -10
- data/node_modules/call-bound/index.js +4 -3
- data/node_modules/call-bound/package.json +10 -10
- data/node_modules/call-bound/test/index.js +11 -4
- data/node_modules/call-bound/tsconfig.json +2 -1
- data/node_modules/caniuse-lite/data/agents.js +1 -1
- data/node_modules/caniuse-lite/data/browserVersions.js +1 -1
- data/node_modules/caniuse-lite/data/features/aac.js +1 -1
- data/node_modules/caniuse-lite/data/features/abortcontroller.js +1 -1
- data/node_modules/caniuse-lite/data/features/ac3-ec3.js +1 -1
- data/node_modules/caniuse-lite/data/features/accelerometer.js +1 -1
- data/node_modules/caniuse-lite/data/features/addeventlistener.js +1 -1
- data/node_modules/caniuse-lite/data/features/alternate-stylesheet.js +1 -1
- data/node_modules/caniuse-lite/data/features/ambient-light.js +1 -1
- data/node_modules/caniuse-lite/data/features/apng.js +1 -1
- data/node_modules/caniuse-lite/data/features/array-find-index.js +1 -1
- data/node_modules/caniuse-lite/data/features/array-find.js +1 -1
- data/node_modules/caniuse-lite/data/features/array-flat.js +1 -1
- data/node_modules/caniuse-lite/data/features/array-includes.js +1 -1
- data/node_modules/caniuse-lite/data/features/arrow-functions.js +1 -1
- data/node_modules/caniuse-lite/data/features/asmjs.js +1 -1
- data/node_modules/caniuse-lite/data/features/async-clipboard.js +1 -1
- data/node_modules/caniuse-lite/data/features/async-functions.js +1 -1
- data/node_modules/caniuse-lite/data/features/atob-btoa.js +1 -1
- data/node_modules/caniuse-lite/data/features/audio-api.js +1 -1
- data/node_modules/caniuse-lite/data/features/audio.js +1 -1
- data/node_modules/caniuse-lite/data/features/audiotracks.js +1 -1
- data/node_modules/caniuse-lite/data/features/autofocus.js +1 -1
- data/node_modules/caniuse-lite/data/features/auxclick.js +1 -1
- data/node_modules/caniuse-lite/data/features/av1.js +1 -1
- data/node_modules/caniuse-lite/data/features/avif.js +1 -1
- data/node_modules/caniuse-lite/data/features/background-attachment.js +1 -1
- data/node_modules/caniuse-lite/data/features/background-clip-text.js +1 -1
- data/node_modules/caniuse-lite/data/features/background-img-opts.js +1 -1
- data/node_modules/caniuse-lite/data/features/background-position-x-y.js +1 -1
- data/node_modules/caniuse-lite/data/features/background-repeat-round-space.js +1 -1
- data/node_modules/caniuse-lite/data/features/background-sync.js +1 -1
- data/node_modules/caniuse-lite/data/features/battery-status.js +1 -1
- data/node_modules/caniuse-lite/data/features/beacon.js +1 -1
- data/node_modules/caniuse-lite/data/features/beforeafterprint.js +1 -1
- data/node_modules/caniuse-lite/data/features/bigint.js +1 -1
- data/node_modules/caniuse-lite/data/features/blobbuilder.js +1 -1
- data/node_modules/caniuse-lite/data/features/bloburls.js +1 -1
- data/node_modules/caniuse-lite/data/features/border-image.js +1 -1
- data/node_modules/caniuse-lite/data/features/border-radius.js +1 -1
- data/node_modules/caniuse-lite/data/features/broadcastchannel.js +1 -1
- data/node_modules/caniuse-lite/data/features/brotli.js +1 -1
- data/node_modules/caniuse-lite/data/features/calc.js +1 -1
- data/node_modules/caniuse-lite/data/features/canvas-blending.js +1 -1
- data/node_modules/caniuse-lite/data/features/canvas-text.js +1 -1
- data/node_modules/caniuse-lite/data/features/canvas.js +1 -1
- data/node_modules/caniuse-lite/data/features/ch-unit.js +1 -1
- data/node_modules/caniuse-lite/data/features/chacha20-poly1305.js +1 -1
- data/node_modules/caniuse-lite/data/features/channel-messaging.js +1 -1
- data/node_modules/caniuse-lite/data/features/childnode-remove.js +1 -1
- data/node_modules/caniuse-lite/data/features/classlist.js +1 -1
- data/node_modules/caniuse-lite/data/features/client-hints-dpr-width-viewport.js +1 -1
- data/node_modules/caniuse-lite/data/features/clipboard.js +1 -1
- data/node_modules/caniuse-lite/data/features/colr-v1.js +1 -1
- data/node_modules/caniuse-lite/data/features/colr.js +1 -1
- data/node_modules/caniuse-lite/data/features/comparedocumentposition.js +1 -1
- data/node_modules/caniuse-lite/data/features/console-basic.js +1 -1
- data/node_modules/caniuse-lite/data/features/console-time.js +1 -1
- data/node_modules/caniuse-lite/data/features/const.js +1 -1
- data/node_modules/caniuse-lite/data/features/constraint-validation.js +1 -1
- data/node_modules/caniuse-lite/data/features/contenteditable.js +1 -1
- data/node_modules/caniuse-lite/data/features/contentsecuritypolicy.js +1 -1
- data/node_modules/caniuse-lite/data/features/contentsecuritypolicy2.js +1 -1
- data/node_modules/caniuse-lite/data/features/cookie-store-api.js +1 -1
- data/node_modules/caniuse-lite/data/features/cors.js +1 -1
- data/node_modules/caniuse-lite/data/features/createimagebitmap.js +1 -1
- data/node_modules/caniuse-lite/data/features/credential-management.js +1 -1
- data/node_modules/caniuse-lite/data/features/cryptography.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-all.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-anchor-positioning.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-animation.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-any-link.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-appearance.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-at-counter-style.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-autofill.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-backdrop-filter.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-background-offsets.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-backgroundblendmode.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-boxdecorationbreak.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-boxshadow.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-canvas.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-caret-color.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-cascade-layers.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-cascade-scope.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-case-insensitive.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-clip-path.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-color-adjust.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-color-function.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-conic-gradients.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-container-queries-style.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-container-queries.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-container-query-units.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-containment.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-content-visibility.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-counters.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-crisp-edges.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-cross-fade.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-default-pseudo.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-descendant-gtgt.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-deviceadaptation.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-dir-pseudo.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-display-contents.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-element-function.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-env-function.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-exclusions.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-featurequeries.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-file-selector-button.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-filter-function.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-filters.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-first-letter.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-first-line.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-fixed.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-focus-visible.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-focus-within.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-font-palette.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-font-rendering-controls.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-font-stretch.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-gencontent.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-gradients.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-grid-animation.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-grid.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-hanging-punctuation.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-has.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-hyphens.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-image-orientation.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-image-set.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-in-out-of-range.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-indeterminate-pseudo.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-initial-letter.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-initial-value.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-lch-lab.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-letter-spacing.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-line-clamp.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-logical-props.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-marker-pseudo.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-masks.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-matches-pseudo.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-math-functions.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-media-interaction.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-media-range-syntax.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-media-resolution.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-media-scripting.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-mediaqueries.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-mixblendmode.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-module-scripts.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-motion-paths.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-namespaces.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-nesting.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-not-sel-list.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-nth-child-of.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-opacity.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-optional-pseudo.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-overflow-anchor.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-overflow-overlay.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-overflow.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-overscroll-behavior.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-page-break.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-paged-media.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-paint-api.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-placeholder-shown.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-placeholder.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-print-color-adjust.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-read-only-write.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-rebeccapurple.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-reflections.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-regions.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-relative-colors.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-repeating-gradients.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-resize.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-revert-value.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-rrggbbaa.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-scroll-behavior.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-scrollbar.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-sel2.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-sel3.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-selection.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-shapes.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-snappoints.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-sticky.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-subgrid.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-supports-api.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-table.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-text-align-last.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-text-box-trim.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-text-indent.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-text-justify.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-text-orientation.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-text-spacing.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-text-wrap-balance.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-textshadow.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-touch-action.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-transitions.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-unicode-bidi.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-unset-value.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-variables.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-when-else.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-widows-orphans.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-width-stretch.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-writing-mode.js +1 -1
- data/node_modules/caniuse-lite/data/features/css-zoom.js +1 -1
- data/node_modules/caniuse-lite/data/features/css3-attr.js +1 -1
- data/node_modules/caniuse-lite/data/features/css3-boxsizing.js +1 -1
- data/node_modules/caniuse-lite/data/features/css3-colors.js +1 -1
- data/node_modules/caniuse-lite/data/features/css3-cursors-grab.js +1 -1
- data/node_modules/caniuse-lite/data/features/css3-cursors-newer.js +1 -1
- data/node_modules/caniuse-lite/data/features/css3-cursors.js +1 -1
- data/node_modules/caniuse-lite/data/features/css3-tabsize.js +1 -1
- data/node_modules/caniuse-lite/data/features/currentcolor.js +1 -1
- data/node_modules/caniuse-lite/data/features/custom-elements.js +1 -1
- data/node_modules/caniuse-lite/data/features/custom-elementsv1.js +1 -1
- data/node_modules/caniuse-lite/data/features/customevent.js +1 -1
- data/node_modules/caniuse-lite/data/features/datalist.js +1 -1
- data/node_modules/caniuse-lite/data/features/dataset.js +1 -1
- data/node_modules/caniuse-lite/data/features/datauri.js +1 -1
- data/node_modules/caniuse-lite/data/features/date-tolocaledatestring.js +1 -1
- data/node_modules/caniuse-lite/data/features/declarative-shadow-dom.js +1 -1
- data/node_modules/caniuse-lite/data/features/decorators.js +1 -1
- data/node_modules/caniuse-lite/data/features/details.js +1 -1
- data/node_modules/caniuse-lite/data/features/deviceorientation.js +1 -1
- data/node_modules/caniuse-lite/data/features/devicepixelratio.js +1 -1
- data/node_modules/caniuse-lite/data/features/dialog.js +1 -1
- data/node_modules/caniuse-lite/data/features/dispatchevent.js +1 -1
- data/node_modules/caniuse-lite/data/features/dnssec.js +1 -1
- data/node_modules/caniuse-lite/data/features/do-not-track.js +1 -1
- data/node_modules/caniuse-lite/data/features/document-currentscript.js +1 -1
- data/node_modules/caniuse-lite/data/features/document-evaluate-xpath.js +1 -1
- data/node_modules/caniuse-lite/data/features/document-execcommand.js +1 -1
- data/node_modules/caniuse-lite/data/features/document-policy.js +1 -1
- data/node_modules/caniuse-lite/data/features/document-scrollingelement.js +1 -1
- data/node_modules/caniuse-lite/data/features/documenthead.js +1 -1
- data/node_modules/caniuse-lite/data/features/dom-manip-convenience.js +1 -1
- data/node_modules/caniuse-lite/data/features/dom-range.js +1 -1
- data/node_modules/caniuse-lite/data/features/domcontentloaded.js +1 -1
- data/node_modules/caniuse-lite/data/features/dommatrix.js +1 -1
- data/node_modules/caniuse-lite/data/features/download.js +1 -1
- data/node_modules/caniuse-lite/data/features/dragndrop.js +1 -1
- data/node_modules/caniuse-lite/data/features/element-closest.js +1 -1
- data/node_modules/caniuse-lite/data/features/element-from-point.js +1 -1
- data/node_modules/caniuse-lite/data/features/element-scroll-methods.js +1 -1
- data/node_modules/caniuse-lite/data/features/eme.js +1 -1
- data/node_modules/caniuse-lite/data/features/eot.js +1 -1
- data/node_modules/caniuse-lite/data/features/es5.js +1 -1
- data/node_modules/caniuse-lite/data/features/es6-class.js +1 -1
- data/node_modules/caniuse-lite/data/features/es6-generators.js +1 -1
- data/node_modules/caniuse-lite/data/features/es6-module-dynamic-import.js +1 -1
- data/node_modules/caniuse-lite/data/features/es6-module.js +1 -1
- data/node_modules/caniuse-lite/data/features/es6-number.js +1 -1
- data/node_modules/caniuse-lite/data/features/es6-string-includes.js +1 -1
- data/node_modules/caniuse-lite/data/features/es6.js +1 -1
- data/node_modules/caniuse-lite/data/features/eventsource.js +1 -1
- data/node_modules/caniuse-lite/data/features/extended-system-fonts.js +1 -1
- data/node_modules/caniuse-lite/data/features/feature-policy.js +1 -1
- data/node_modules/caniuse-lite/data/features/fetch.js +1 -1
- data/node_modules/caniuse-lite/data/features/fieldset-disabled.js +1 -1
- data/node_modules/caniuse-lite/data/features/fileapi.js +1 -1
- data/node_modules/caniuse-lite/data/features/filereader.js +1 -1
- data/node_modules/caniuse-lite/data/features/filereadersync.js +1 -1
- data/node_modules/caniuse-lite/data/features/filesystem.js +1 -1
- data/node_modules/caniuse-lite/data/features/flac.js +1 -1
- data/node_modules/caniuse-lite/data/features/flexbox-gap.js +1 -1
- data/node_modules/caniuse-lite/data/features/flexbox.js +1 -1
- data/node_modules/caniuse-lite/data/features/flow-root.js +1 -1
- data/node_modules/caniuse-lite/data/features/focusin-focusout-events.js +1 -1
- data/node_modules/caniuse-lite/data/features/font-family-system-ui.js +1 -1
- data/node_modules/caniuse-lite/data/features/font-feature.js +1 -1
- data/node_modules/caniuse-lite/data/features/font-kerning.js +1 -1
- data/node_modules/caniuse-lite/data/features/font-loading.js +1 -1
- data/node_modules/caniuse-lite/data/features/font-size-adjust.js +1 -1
- data/node_modules/caniuse-lite/data/features/font-smooth.js +1 -1
- data/node_modules/caniuse-lite/data/features/font-unicode-range.js +1 -1
- data/node_modules/caniuse-lite/data/features/font-variant-alternates.js +1 -1
- data/node_modules/caniuse-lite/data/features/font-variant-numeric.js +1 -1
- data/node_modules/caniuse-lite/data/features/fontface.js +1 -1
- data/node_modules/caniuse-lite/data/features/form-attribute.js +1 -1
- data/node_modules/caniuse-lite/data/features/form-submit-attributes.js +1 -1
- data/node_modules/caniuse-lite/data/features/form-validation.js +1 -1
- data/node_modules/caniuse-lite/data/features/forms.js +1 -1
- data/node_modules/caniuse-lite/data/features/fullscreen.js +1 -1
- data/node_modules/caniuse-lite/data/features/gamepad.js +1 -1
- data/node_modules/caniuse-lite/data/features/geolocation.js +1 -1
- data/node_modules/caniuse-lite/data/features/getboundingclientrect.js +1 -1
- data/node_modules/caniuse-lite/data/features/getcomputedstyle.js +1 -1
- data/node_modules/caniuse-lite/data/features/getelementsbyclassname.js +1 -1
- data/node_modules/caniuse-lite/data/features/getrandomvalues.js +1 -1
- data/node_modules/caniuse-lite/data/features/gyroscope.js +1 -1
- data/node_modules/caniuse-lite/data/features/hardwareconcurrency.js +1 -1
- data/node_modules/caniuse-lite/data/features/hashchange.js +1 -1
- data/node_modules/caniuse-lite/data/features/heif.js +1 -1
- data/node_modules/caniuse-lite/data/features/hevc.js +1 -1
- data/node_modules/caniuse-lite/data/features/hidden.js +1 -1
- data/node_modules/caniuse-lite/data/features/high-resolution-time.js +1 -1
- data/node_modules/caniuse-lite/data/features/history.js +1 -1
- data/node_modules/caniuse-lite/data/features/html-media-capture.js +1 -1
- data/node_modules/caniuse-lite/data/features/html5semantic.js +1 -1
- data/node_modules/caniuse-lite/data/features/http-live-streaming.js +1 -1
- data/node_modules/caniuse-lite/data/features/http2.js +1 -1
- data/node_modules/caniuse-lite/data/features/http3.js +1 -1
- data/node_modules/caniuse-lite/data/features/iframe-sandbox.js +1 -1
- data/node_modules/caniuse-lite/data/features/iframe-seamless.js +1 -1
- data/node_modules/caniuse-lite/data/features/iframe-srcdoc.js +1 -1
- data/node_modules/caniuse-lite/data/features/imagecapture.js +1 -1
- data/node_modules/caniuse-lite/data/features/ime.js +1 -1
- data/node_modules/caniuse-lite/data/features/img-naturalwidth-naturalheight.js +1 -1
- data/node_modules/caniuse-lite/data/features/import-maps.js +1 -1
- data/node_modules/caniuse-lite/data/features/imports.js +1 -1
- data/node_modules/caniuse-lite/data/features/indeterminate-checkbox.js +1 -1
- data/node_modules/caniuse-lite/data/features/indexeddb.js +1 -1
- data/node_modules/caniuse-lite/data/features/indexeddb2.js +1 -1
- data/node_modules/caniuse-lite/data/features/inline-block.js +1 -1
- data/node_modules/caniuse-lite/data/features/innertext.js +1 -1
- data/node_modules/caniuse-lite/data/features/input-autocomplete-onoff.js +1 -1
- data/node_modules/caniuse-lite/data/features/input-color.js +1 -1
- data/node_modules/caniuse-lite/data/features/input-datetime.js +1 -1
- data/node_modules/caniuse-lite/data/features/input-email-tel-url.js +1 -1
- data/node_modules/caniuse-lite/data/features/input-event.js +1 -1
- data/node_modules/caniuse-lite/data/features/input-file-accept.js +1 -1
- data/node_modules/caniuse-lite/data/features/input-file-directory.js +1 -1
- data/node_modules/caniuse-lite/data/features/input-file-multiple.js +1 -1
- data/node_modules/caniuse-lite/data/features/input-inputmode.js +1 -1
- data/node_modules/caniuse-lite/data/features/input-minlength.js +1 -1
- data/node_modules/caniuse-lite/data/features/input-number.js +1 -1
- data/node_modules/caniuse-lite/data/features/input-pattern.js +1 -1
- data/node_modules/caniuse-lite/data/features/input-placeholder.js +1 -1
- data/node_modules/caniuse-lite/data/features/input-range.js +1 -1
- data/node_modules/caniuse-lite/data/features/input-search.js +1 -1
- data/node_modules/caniuse-lite/data/features/input-selection.js +1 -1
- data/node_modules/caniuse-lite/data/features/insert-adjacent.js +1 -1
- data/node_modules/caniuse-lite/data/features/insertadjacenthtml.js +1 -1
- data/node_modules/caniuse-lite/data/features/internationalization.js +1 -1
- data/node_modules/caniuse-lite/data/features/intersectionobserver-v2.js +1 -1
- data/node_modules/caniuse-lite/data/features/intersectionobserver.js +1 -1
- data/node_modules/caniuse-lite/data/features/intl-pluralrules.js +1 -1
- data/node_modules/caniuse-lite/data/features/intrinsic-width.js +1 -1
- data/node_modules/caniuse-lite/data/features/jpeg2000.js +1 -1
- data/node_modules/caniuse-lite/data/features/jpegxl.js +1 -1
- data/node_modules/caniuse-lite/data/features/jpegxr.js +1 -1
- data/node_modules/caniuse-lite/data/features/js-regexp-lookbehind.js +1 -1
- data/node_modules/caniuse-lite/data/features/json.js +1 -1
- data/node_modules/caniuse-lite/data/features/justify-content-space-evenly.js +1 -1
- data/node_modules/caniuse-lite/data/features/kerning-pairs-ligatures.js +1 -1
- data/node_modules/caniuse-lite/data/features/keyboardevent-charcode.js +1 -1
- data/node_modules/caniuse-lite/data/features/keyboardevent-code.js +1 -1
- data/node_modules/caniuse-lite/data/features/keyboardevent-getmodifierstate.js +1 -1
- data/node_modules/caniuse-lite/data/features/keyboardevent-key.js +1 -1
- data/node_modules/caniuse-lite/data/features/keyboardevent-location.js +1 -1
- data/node_modules/caniuse-lite/data/features/keyboardevent-which.js +1 -1
- data/node_modules/caniuse-lite/data/features/lazyload.js +1 -1
- data/node_modules/caniuse-lite/data/features/let.js +1 -1
- data/node_modules/caniuse-lite/data/features/link-icon-png.js +1 -1
- data/node_modules/caniuse-lite/data/features/link-icon-svg.js +1 -1
- data/node_modules/caniuse-lite/data/features/link-rel-dns-prefetch.js +1 -1
- data/node_modules/caniuse-lite/data/features/link-rel-modulepreload.js +1 -1
- data/node_modules/caniuse-lite/data/features/link-rel-preconnect.js +1 -1
- data/node_modules/caniuse-lite/data/features/link-rel-prefetch.js +1 -1
- data/node_modules/caniuse-lite/data/features/link-rel-preload.js +1 -1
- data/node_modules/caniuse-lite/data/features/link-rel-prerender.js +1 -1
- data/node_modules/caniuse-lite/data/features/loading-lazy-attr.js +1 -1
- data/node_modules/caniuse-lite/data/features/localecompare.js +1 -1
- data/node_modules/caniuse-lite/data/features/magnetometer.js +1 -1
- data/node_modules/caniuse-lite/data/features/matchesselector.js +1 -1
- data/node_modules/caniuse-lite/data/features/matchmedia.js +1 -1
- data/node_modules/caniuse-lite/data/features/mathml.js +1 -1
- data/node_modules/caniuse-lite/data/features/maxlength.js +1 -1
- data/node_modules/caniuse-lite/data/features/mdn-css-backdrop-pseudo-element.js +1 -1
- data/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate-override.js +1 -1
- data/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate.js +1 -1
- data/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-plaintext.js +1 -1
- data/node_modules/caniuse-lite/data/features/mdn-text-decoration-color.js +1 -1
- data/node_modules/caniuse-lite/data/features/mdn-text-decoration-line.js +1 -1
- data/node_modules/caniuse-lite/data/features/mdn-text-decoration-shorthand.js +1 -1
- data/node_modules/caniuse-lite/data/features/mdn-text-decoration-style.js +1 -1
- data/node_modules/caniuse-lite/data/features/media-fragments.js +1 -1
- data/node_modules/caniuse-lite/data/features/mediacapture-fromelement.js +1 -1
- data/node_modules/caniuse-lite/data/features/mediarecorder.js +1 -1
- data/node_modules/caniuse-lite/data/features/mediasource.js +1 -1
- data/node_modules/caniuse-lite/data/features/menu.js +1 -1
- data/node_modules/caniuse-lite/data/features/meta-theme-color.js +1 -1
- data/node_modules/caniuse-lite/data/features/meter.js +1 -1
- data/node_modules/caniuse-lite/data/features/midi.js +1 -1
- data/node_modules/caniuse-lite/data/features/minmaxwh.js +1 -1
- data/node_modules/caniuse-lite/data/features/mp3.js +1 -1
- data/node_modules/caniuse-lite/data/features/mpeg-dash.js +1 -1
- data/node_modules/caniuse-lite/data/features/mpeg4.js +1 -1
- data/node_modules/caniuse-lite/data/features/multibackgrounds.js +1 -1
- data/node_modules/caniuse-lite/data/features/multicolumn.js +1 -1
- data/node_modules/caniuse-lite/data/features/mutation-events.js +1 -1
- data/node_modules/caniuse-lite/data/features/mutationobserver.js +1 -1
- data/node_modules/caniuse-lite/data/features/namevalue-storage.js +1 -1
- data/node_modules/caniuse-lite/data/features/native-filesystem-api.js +1 -1
- data/node_modules/caniuse-lite/data/features/nav-timing.js +1 -1
- data/node_modules/caniuse-lite/data/features/netinfo.js +1 -1
- data/node_modules/caniuse-lite/data/features/notifications.js +1 -1
- data/node_modules/caniuse-lite/data/features/object-entries.js +1 -1
- data/node_modules/caniuse-lite/data/features/object-fit.js +1 -1
- data/node_modules/caniuse-lite/data/features/object-observe.js +1 -1
- data/node_modules/caniuse-lite/data/features/object-values.js +1 -1
- data/node_modules/caniuse-lite/data/features/objectrtc.js +1 -1
- data/node_modules/caniuse-lite/data/features/offline-apps.js +1 -1
- data/node_modules/caniuse-lite/data/features/offscreencanvas.js +1 -1
- data/node_modules/caniuse-lite/data/features/ogg-vorbis.js +1 -1
- data/node_modules/caniuse-lite/data/features/ogv.js +1 -1
- data/node_modules/caniuse-lite/data/features/ol-reversed.js +1 -1
- data/node_modules/caniuse-lite/data/features/once-event-listener.js +1 -1
- data/node_modules/caniuse-lite/data/features/online-status.js +1 -1
- data/node_modules/caniuse-lite/data/features/opus.js +1 -1
- data/node_modules/caniuse-lite/data/features/orientation-sensor.js +1 -1
- data/node_modules/caniuse-lite/data/features/outline.js +1 -1
- data/node_modules/caniuse-lite/data/features/pad-start-end.js +1 -1
- data/node_modules/caniuse-lite/data/features/page-transition-events.js +1 -1
- data/node_modules/caniuse-lite/data/features/pagevisibility.js +1 -1
- data/node_modules/caniuse-lite/data/features/passive-event-listener.js +1 -1
- data/node_modules/caniuse-lite/data/features/passkeys.js +1 -1
- data/node_modules/caniuse-lite/data/features/passwordrules.js +1 -1
- data/node_modules/caniuse-lite/data/features/path2d.js +1 -1
- data/node_modules/caniuse-lite/data/features/payment-request.js +1 -1
- data/node_modules/caniuse-lite/data/features/pdf-viewer.js +1 -1
- data/node_modules/caniuse-lite/data/features/permissions-api.js +1 -1
- data/node_modules/caniuse-lite/data/features/permissions-policy.js +1 -1
- data/node_modules/caniuse-lite/data/features/picture-in-picture.js +1 -1
- data/node_modules/caniuse-lite/data/features/picture.js +1 -1
- data/node_modules/caniuse-lite/data/features/ping.js +1 -1
- data/node_modules/caniuse-lite/data/features/png-alpha.js +1 -1
- data/node_modules/caniuse-lite/data/features/pointer-events.js +1 -1
- data/node_modules/caniuse-lite/data/features/pointer.js +1 -1
- data/node_modules/caniuse-lite/data/features/pointerlock.js +1 -1
- data/node_modules/caniuse-lite/data/features/portals.js +1 -1
- data/node_modules/caniuse-lite/data/features/prefers-color-scheme.js +1 -1
- data/node_modules/caniuse-lite/data/features/prefers-reduced-motion.js +1 -1
- data/node_modules/caniuse-lite/data/features/progress.js +1 -1
- data/node_modules/caniuse-lite/data/features/promise-finally.js +1 -1
- data/node_modules/caniuse-lite/data/features/promises.js +1 -1
- data/node_modules/caniuse-lite/data/features/proximity.js +1 -1
- data/node_modules/caniuse-lite/data/features/proxy.js +1 -1
- data/node_modules/caniuse-lite/data/features/publickeypinning.js +1 -1
- data/node_modules/caniuse-lite/data/features/push-api.js +1 -1
- data/node_modules/caniuse-lite/data/features/queryselector.js +1 -1
- data/node_modules/caniuse-lite/data/features/readonly-attr.js +1 -1
- data/node_modules/caniuse-lite/data/features/referrer-policy.js +1 -1
- data/node_modules/caniuse-lite/data/features/registerprotocolhandler.js +1 -1
- data/node_modules/caniuse-lite/data/features/rel-noopener.js +1 -1
- data/node_modules/caniuse-lite/data/features/rel-noreferrer.js +1 -1
- data/node_modules/caniuse-lite/data/features/rellist.js +1 -1
- data/node_modules/caniuse-lite/data/features/rem.js +1 -1
- data/node_modules/caniuse-lite/data/features/requestanimationframe.js +1 -1
- data/node_modules/caniuse-lite/data/features/requestidlecallback.js +1 -1
- data/node_modules/caniuse-lite/data/features/resizeobserver.js +1 -1
- data/node_modules/caniuse-lite/data/features/resource-timing.js +1 -1
- data/node_modules/caniuse-lite/data/features/rest-parameters.js +1 -1
- data/node_modules/caniuse-lite/data/features/rtcpeerconnection.js +1 -1
- data/node_modules/caniuse-lite/data/features/ruby.js +1 -1
- data/node_modules/caniuse-lite/data/features/run-in.js +1 -1
- data/node_modules/caniuse-lite/data/features/same-site-cookie-attribute.js +1 -1
- data/node_modules/caniuse-lite/data/features/screen-orientation.js +1 -1
- data/node_modules/caniuse-lite/data/features/script-async.js +1 -1
- data/node_modules/caniuse-lite/data/features/script-defer.js +1 -1
- data/node_modules/caniuse-lite/data/features/scrollintoview.js +1 -1
- data/node_modules/caniuse-lite/data/features/scrollintoviewifneeded.js +1 -1
- data/node_modules/caniuse-lite/data/features/sdch.js +1 -1
- data/node_modules/caniuse-lite/data/features/selection-api.js +1 -1
- data/node_modules/caniuse-lite/data/features/selectlist.js +1 -1
- data/node_modules/caniuse-lite/data/features/server-timing.js +1 -1
- data/node_modules/caniuse-lite/data/features/serviceworkers.js +1 -1
- data/node_modules/caniuse-lite/data/features/setimmediate.js +1 -1
- data/node_modules/caniuse-lite/data/features/shadowdom.js +1 -1
- data/node_modules/caniuse-lite/data/features/shadowdomv1.js +1 -1
- data/node_modules/caniuse-lite/data/features/sharedarraybuffer.js +1 -1
- data/node_modules/caniuse-lite/data/features/sharedworkers.js +1 -1
- data/node_modules/caniuse-lite/data/features/sni.js +1 -1
- data/node_modules/caniuse-lite/data/features/spdy.js +1 -1
- data/node_modules/caniuse-lite/data/features/speech-recognition.js +1 -1
- data/node_modules/caniuse-lite/data/features/speech-synthesis.js +1 -1
- data/node_modules/caniuse-lite/data/features/spellcheck-attribute.js +1 -1
- data/node_modules/caniuse-lite/data/features/sql-storage.js +1 -1
- data/node_modules/caniuse-lite/data/features/srcset.js +1 -1
- data/node_modules/caniuse-lite/data/features/stream.js +1 -1
- data/node_modules/caniuse-lite/data/features/streams.js +1 -1
- data/node_modules/caniuse-lite/data/features/stricttransportsecurity.js +1 -1
- data/node_modules/caniuse-lite/data/features/style-scoped.js +1 -1
- data/node_modules/caniuse-lite/data/features/subresource-bundling.js +1 -1
- data/node_modules/caniuse-lite/data/features/subresource-integrity.js +1 -1
- data/node_modules/caniuse-lite/data/features/svg-css.js +1 -1
- data/node_modules/caniuse-lite/data/features/svg-filters.js +1 -1
- data/node_modules/caniuse-lite/data/features/svg-fonts.js +1 -1
- data/node_modules/caniuse-lite/data/features/svg-fragment.js +1 -1
- data/node_modules/caniuse-lite/data/features/svg-html.js +1 -1
- data/node_modules/caniuse-lite/data/features/svg-html5.js +1 -1
- data/node_modules/caniuse-lite/data/features/svg-img.js +1 -1
- data/node_modules/caniuse-lite/data/features/svg-smil.js +1 -1
- data/node_modules/caniuse-lite/data/features/svg.js +1 -1
- data/node_modules/caniuse-lite/data/features/sxg.js +1 -1
- data/node_modules/caniuse-lite/data/features/tabindex-attr.js +1 -1
- data/node_modules/caniuse-lite/data/features/template-literals.js +1 -1
- data/node_modules/caniuse-lite/data/features/template.js +1 -1
- data/node_modules/caniuse-lite/data/features/temporal.js +1 -1
- data/node_modules/caniuse-lite/data/features/testfeat.js +1 -1
- data/node_modules/caniuse-lite/data/features/text-decoration.js +1 -1
- data/node_modules/caniuse-lite/data/features/text-emphasis.js +1 -1
- data/node_modules/caniuse-lite/data/features/text-overflow.js +1 -1
- data/node_modules/caniuse-lite/data/features/text-size-adjust.js +1 -1
- data/node_modules/caniuse-lite/data/features/text-stroke.js +1 -1
- data/node_modules/caniuse-lite/data/features/textcontent.js +1 -1
- data/node_modules/caniuse-lite/data/features/textencoder.js +1 -1
- data/node_modules/caniuse-lite/data/features/tls1-1.js +1 -1
- data/node_modules/caniuse-lite/data/features/tls1-2.js +1 -1
- data/node_modules/caniuse-lite/data/features/tls1-3.js +1 -1
- data/node_modules/caniuse-lite/data/features/touch.js +1 -1
- data/node_modules/caniuse-lite/data/features/transforms2d.js +1 -1
- data/node_modules/caniuse-lite/data/features/transforms3d.js +1 -1
- data/node_modules/caniuse-lite/data/features/trusted-types.js +1 -1
- data/node_modules/caniuse-lite/data/features/ttf.js +1 -1
- data/node_modules/caniuse-lite/data/features/typedarrays.js +1 -1
- data/node_modules/caniuse-lite/data/features/u2f.js +1 -1
- data/node_modules/caniuse-lite/data/features/unhandledrejection.js +1 -1
- data/node_modules/caniuse-lite/data/features/upgradeinsecurerequests.js +1 -1
- data/node_modules/caniuse-lite/data/features/url-scroll-to-text-fragment.js +1 -1
- data/node_modules/caniuse-lite/data/features/url.js +1 -1
- data/node_modules/caniuse-lite/data/features/urlsearchparams.js +1 -1
- data/node_modules/caniuse-lite/data/features/use-strict.js +1 -1
- data/node_modules/caniuse-lite/data/features/user-select-none.js +1 -1
- data/node_modules/caniuse-lite/data/features/user-timing.js +1 -1
- data/node_modules/caniuse-lite/data/features/variable-fonts.js +1 -1
- data/node_modules/caniuse-lite/data/features/vector-effect.js +1 -1
- data/node_modules/caniuse-lite/data/features/vibration.js +1 -1
- data/node_modules/caniuse-lite/data/features/video.js +1 -1
- data/node_modules/caniuse-lite/data/features/videotracks.js +1 -1
- data/node_modules/caniuse-lite/data/features/view-transitions.js +1 -1
- data/node_modules/caniuse-lite/data/features/viewport-unit-variants.js +1 -1
- data/node_modules/caniuse-lite/data/features/viewport-units.js +1 -1
- data/node_modules/caniuse-lite/data/features/wai-aria.js +1 -1
- data/node_modules/caniuse-lite/data/features/wake-lock.js +1 -1
- data/node_modules/caniuse-lite/data/features/wasm-bigint.js +1 -1
- data/node_modules/caniuse-lite/data/features/wasm-bulk-memory.js +1 -1
- data/node_modules/caniuse-lite/data/features/wasm-extended-const.js +1 -1
- data/node_modules/caniuse-lite/data/features/wasm-gc.js +1 -1
- data/node_modules/caniuse-lite/data/features/wasm-multi-memory.js +1 -1
- data/node_modules/caniuse-lite/data/features/wasm-multi-value.js +1 -1
- data/node_modules/caniuse-lite/data/features/wasm-mutable-globals.js +1 -1
- data/node_modules/caniuse-lite/data/features/wasm-nontrapping-fptoint.js +1 -1
- data/node_modules/caniuse-lite/data/features/wasm-reference-types.js +1 -1
- data/node_modules/caniuse-lite/data/features/wasm-relaxed-simd.js +1 -1
- data/node_modules/caniuse-lite/data/features/wasm-signext.js +1 -1
- data/node_modules/caniuse-lite/data/features/wasm-simd.js +1 -1
- data/node_modules/caniuse-lite/data/features/wasm-tail-calls.js +1 -1
- data/node_modules/caniuse-lite/data/features/wasm-threads.js +1 -1
- data/node_modules/caniuse-lite/data/features/wasm.js +1 -1
- data/node_modules/caniuse-lite/data/features/wav.js +1 -1
- data/node_modules/caniuse-lite/data/features/wbr-element.js +1 -1
- data/node_modules/caniuse-lite/data/features/web-animation.js +1 -1
- data/node_modules/caniuse-lite/data/features/web-app-manifest.js +1 -1
- data/node_modules/caniuse-lite/data/features/web-bluetooth.js +1 -1
- data/node_modules/caniuse-lite/data/features/web-serial.js +1 -1
- data/node_modules/caniuse-lite/data/features/web-share.js +1 -1
- data/node_modules/caniuse-lite/data/features/webauthn.js +1 -1
- data/node_modules/caniuse-lite/data/features/webcodecs.js +1 -1
- data/node_modules/caniuse-lite/data/features/webgl.js +1 -1
- data/node_modules/caniuse-lite/data/features/webgl2.js +1 -1
- data/node_modules/caniuse-lite/data/features/webgpu.js +1 -1
- data/node_modules/caniuse-lite/data/features/webhid.js +1 -1
- data/node_modules/caniuse-lite/data/features/webkit-user-drag.js +1 -1
- data/node_modules/caniuse-lite/data/features/webm.js +1 -1
- data/node_modules/caniuse-lite/data/features/webnfc.js +1 -1
- data/node_modules/caniuse-lite/data/features/webp.js +1 -1
- data/node_modules/caniuse-lite/data/features/websockets.js +1 -1
- data/node_modules/caniuse-lite/data/features/webtransport.js +1 -1
- data/node_modules/caniuse-lite/data/features/webusb.js +1 -1
- data/node_modules/caniuse-lite/data/features/webvr.js +1 -1
- data/node_modules/caniuse-lite/data/features/webvtt.js +1 -1
- data/node_modules/caniuse-lite/data/features/webworkers.js +1 -1
- data/node_modules/caniuse-lite/data/features/webxr.js +1 -1
- data/node_modules/caniuse-lite/data/features/will-change.js +1 -1
- data/node_modules/caniuse-lite/data/features/woff.js +1 -1
- data/node_modules/caniuse-lite/data/features/woff2.js +1 -1
- data/node_modules/caniuse-lite/data/features/word-break.js +1 -1
- data/node_modules/caniuse-lite/data/features/wordwrap.js +1 -1
- data/node_modules/caniuse-lite/data/features/x-doc-messaging.js +1 -1
- data/node_modules/caniuse-lite/data/features/x-frame-options.js +1 -1
- data/node_modules/caniuse-lite/data/features/xhr2.js +1 -1
- data/node_modules/caniuse-lite/data/features/xhtml.js +1 -1
- data/node_modules/caniuse-lite/data/features/xhtmlsmil.js +1 -1
- data/node_modules/caniuse-lite/data/features/xml-serializer.js +1 -1
- data/node_modules/caniuse-lite/data/features/zstd.js +1 -1
- data/node_modules/caniuse-lite/data/regions/AD.js +1 -1
- data/node_modules/caniuse-lite/data/regions/AE.js +1 -1
- data/node_modules/caniuse-lite/data/regions/AF.js +1 -1
- data/node_modules/caniuse-lite/data/regions/AG.js +1 -1
- data/node_modules/caniuse-lite/data/regions/AI.js +1 -1
- data/node_modules/caniuse-lite/data/regions/AL.js +1 -1
- data/node_modules/caniuse-lite/data/regions/AM.js +1 -1
- data/node_modules/caniuse-lite/data/regions/AO.js +1 -1
- data/node_modules/caniuse-lite/data/regions/AR.js +1 -1
- data/node_modules/caniuse-lite/data/regions/AS.js +1 -1
- data/node_modules/caniuse-lite/data/regions/AT.js +1 -1
- data/node_modules/caniuse-lite/data/regions/AU.js +1 -1
- data/node_modules/caniuse-lite/data/regions/AW.js +1 -1
- data/node_modules/caniuse-lite/data/regions/AX.js +1 -1
- data/node_modules/caniuse-lite/data/regions/AZ.js +1 -1
- data/node_modules/caniuse-lite/data/regions/BA.js +1 -1
- data/node_modules/caniuse-lite/data/regions/BB.js +1 -1
- data/node_modules/caniuse-lite/data/regions/BD.js +1 -1
- data/node_modules/caniuse-lite/data/regions/BE.js +1 -1
- data/node_modules/caniuse-lite/data/regions/BF.js +1 -1
- data/node_modules/caniuse-lite/data/regions/BG.js +1 -1
- data/node_modules/caniuse-lite/data/regions/BH.js +1 -1
- data/node_modules/caniuse-lite/data/regions/BI.js +1 -1
- data/node_modules/caniuse-lite/data/regions/BJ.js +1 -1
- data/node_modules/caniuse-lite/data/regions/BM.js +1 -1
- data/node_modules/caniuse-lite/data/regions/BN.js +1 -1
- data/node_modules/caniuse-lite/data/regions/BO.js +1 -1
- data/node_modules/caniuse-lite/data/regions/BR.js +1 -1
- data/node_modules/caniuse-lite/data/regions/BS.js +1 -1
- data/node_modules/caniuse-lite/data/regions/BT.js +1 -1
- data/node_modules/caniuse-lite/data/regions/BW.js +1 -1
- data/node_modules/caniuse-lite/data/regions/BY.js +1 -1
- data/node_modules/caniuse-lite/data/regions/BZ.js +1 -1
- data/node_modules/caniuse-lite/data/regions/CA.js +1 -1
- data/node_modules/caniuse-lite/data/regions/CD.js +1 -1
- data/node_modules/caniuse-lite/data/regions/CF.js +1 -1
- data/node_modules/caniuse-lite/data/regions/CG.js +1 -1
- data/node_modules/caniuse-lite/data/regions/CH.js +1 -1
- data/node_modules/caniuse-lite/data/regions/CI.js +1 -1
- data/node_modules/caniuse-lite/data/regions/CK.js +1 -1
- data/node_modules/caniuse-lite/data/regions/CL.js +1 -1
- data/node_modules/caniuse-lite/data/regions/CM.js +1 -1
- data/node_modules/caniuse-lite/data/regions/CN.js +1 -1
- data/node_modules/caniuse-lite/data/regions/CO.js +1 -1
- data/node_modules/caniuse-lite/data/regions/CR.js +1 -1
- data/node_modules/caniuse-lite/data/regions/CU.js +1 -1
- data/node_modules/caniuse-lite/data/regions/CV.js +1 -1
- data/node_modules/caniuse-lite/data/regions/CX.js +1 -1
- data/node_modules/caniuse-lite/data/regions/CY.js +1 -1
- data/node_modules/caniuse-lite/data/regions/CZ.js +1 -1
- data/node_modules/caniuse-lite/data/regions/DE.js +1 -1
- data/node_modules/caniuse-lite/data/regions/DJ.js +1 -1
- data/node_modules/caniuse-lite/data/regions/DK.js +1 -1
- data/node_modules/caniuse-lite/data/regions/DM.js +1 -1
- data/node_modules/caniuse-lite/data/regions/DO.js +1 -1
- data/node_modules/caniuse-lite/data/regions/DZ.js +1 -1
- data/node_modules/caniuse-lite/data/regions/EC.js +1 -1
- data/node_modules/caniuse-lite/data/regions/EE.js +1 -1
- data/node_modules/caniuse-lite/data/regions/EG.js +1 -1
- data/node_modules/caniuse-lite/data/regions/ER.js +1 -1
- data/node_modules/caniuse-lite/data/regions/ES.js +1 -1
- data/node_modules/caniuse-lite/data/regions/ET.js +1 -1
- data/node_modules/caniuse-lite/data/regions/FI.js +1 -1
- data/node_modules/caniuse-lite/data/regions/FJ.js +1 -1
- data/node_modules/caniuse-lite/data/regions/FK.js +1 -1
- data/node_modules/caniuse-lite/data/regions/FM.js +1 -1
- data/node_modules/caniuse-lite/data/regions/FO.js +1 -1
- data/node_modules/caniuse-lite/data/regions/FR.js +1 -1
- data/node_modules/caniuse-lite/data/regions/GA.js +1 -1
- data/node_modules/caniuse-lite/data/regions/GB.js +1 -1
- data/node_modules/caniuse-lite/data/regions/GD.js +1 -1
- data/node_modules/caniuse-lite/data/regions/GE.js +1 -1
- data/node_modules/caniuse-lite/data/regions/GF.js +1 -1
- data/node_modules/caniuse-lite/data/regions/GG.js +1 -1
- data/node_modules/caniuse-lite/data/regions/GH.js +1 -1
- data/node_modules/caniuse-lite/data/regions/GI.js +1 -1
- data/node_modules/caniuse-lite/data/regions/GL.js +1 -1
- data/node_modules/caniuse-lite/data/regions/GM.js +1 -1
- data/node_modules/caniuse-lite/data/regions/GN.js +1 -1
- data/node_modules/caniuse-lite/data/regions/GP.js +1 -1
- data/node_modules/caniuse-lite/data/regions/GQ.js +1 -1
- data/node_modules/caniuse-lite/data/regions/GR.js +1 -1
- data/node_modules/caniuse-lite/data/regions/GT.js +1 -1
- data/node_modules/caniuse-lite/data/regions/GU.js +1 -1
- data/node_modules/caniuse-lite/data/regions/GW.js +1 -1
- data/node_modules/caniuse-lite/data/regions/GY.js +1 -1
- data/node_modules/caniuse-lite/data/regions/HK.js +1 -1
- data/node_modules/caniuse-lite/data/regions/HN.js +1 -1
- data/node_modules/caniuse-lite/data/regions/HR.js +1 -1
- data/node_modules/caniuse-lite/data/regions/HT.js +1 -1
- data/node_modules/caniuse-lite/data/regions/HU.js +1 -1
- data/node_modules/caniuse-lite/data/regions/ID.js +1 -1
- data/node_modules/caniuse-lite/data/regions/IE.js +1 -1
- data/node_modules/caniuse-lite/data/regions/IL.js +1 -1
- data/node_modules/caniuse-lite/data/regions/IM.js +1 -1
- data/node_modules/caniuse-lite/data/regions/IN.js +1 -1
- data/node_modules/caniuse-lite/data/regions/IQ.js +1 -1
- data/node_modules/caniuse-lite/data/regions/IR.js +1 -1
- data/node_modules/caniuse-lite/data/regions/IS.js +1 -1
- data/node_modules/caniuse-lite/data/regions/IT.js +1 -1
- data/node_modules/caniuse-lite/data/regions/JE.js +1 -1
- data/node_modules/caniuse-lite/data/regions/JM.js +1 -1
- data/node_modules/caniuse-lite/data/regions/JO.js +1 -1
- data/node_modules/caniuse-lite/data/regions/JP.js +1 -1
- data/node_modules/caniuse-lite/data/regions/KE.js +1 -1
- data/node_modules/caniuse-lite/data/regions/KG.js +1 -1
- data/node_modules/caniuse-lite/data/regions/KH.js +1 -1
- data/node_modules/caniuse-lite/data/regions/KI.js +1 -1
- data/node_modules/caniuse-lite/data/regions/KM.js +1 -1
- data/node_modules/caniuse-lite/data/regions/KN.js +1 -1
- data/node_modules/caniuse-lite/data/regions/KP.js +1 -1
- data/node_modules/caniuse-lite/data/regions/KR.js +1 -1
- data/node_modules/caniuse-lite/data/regions/KW.js +1 -1
- data/node_modules/caniuse-lite/data/regions/KY.js +1 -1
- data/node_modules/caniuse-lite/data/regions/KZ.js +1 -1
- data/node_modules/caniuse-lite/data/regions/LA.js +1 -1
- data/node_modules/caniuse-lite/data/regions/LB.js +1 -1
- data/node_modules/caniuse-lite/data/regions/LC.js +1 -1
- data/node_modules/caniuse-lite/data/regions/LI.js +1 -1
- data/node_modules/caniuse-lite/data/regions/LK.js +1 -1
- data/node_modules/caniuse-lite/data/regions/LR.js +1 -1
- data/node_modules/caniuse-lite/data/regions/LS.js +1 -1
- data/node_modules/caniuse-lite/data/regions/LT.js +1 -1
- data/node_modules/caniuse-lite/data/regions/LU.js +1 -1
- data/node_modules/caniuse-lite/data/regions/LV.js +1 -1
- data/node_modules/caniuse-lite/data/regions/LY.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MA.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MC.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MD.js +1 -1
- data/node_modules/caniuse-lite/data/regions/ME.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MG.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MH.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MK.js +1 -1
- data/node_modules/caniuse-lite/data/regions/ML.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MM.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MN.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MO.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MP.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MQ.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MR.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MS.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MT.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MU.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MV.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MW.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MX.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MY.js +1 -1
- data/node_modules/caniuse-lite/data/regions/MZ.js +1 -1
- data/node_modules/caniuse-lite/data/regions/NA.js +1 -1
- data/node_modules/caniuse-lite/data/regions/NC.js +1 -1
- data/node_modules/caniuse-lite/data/regions/NE.js +1 -1
- data/node_modules/caniuse-lite/data/regions/NF.js +1 -1
- data/node_modules/caniuse-lite/data/regions/NG.js +1 -1
- data/node_modules/caniuse-lite/data/regions/NI.js +1 -1
- data/node_modules/caniuse-lite/data/regions/NL.js +1 -1
- data/node_modules/caniuse-lite/data/regions/NO.js +1 -1
- data/node_modules/caniuse-lite/data/regions/NP.js +1 -1
- data/node_modules/caniuse-lite/data/regions/NR.js +1 -1
- data/node_modules/caniuse-lite/data/regions/NU.js +1 -1
- data/node_modules/caniuse-lite/data/regions/NZ.js +1 -1
- data/node_modules/caniuse-lite/data/regions/OM.js +1 -1
- data/node_modules/caniuse-lite/data/regions/PA.js +1 -1
- data/node_modules/caniuse-lite/data/regions/PE.js +1 -1
- data/node_modules/caniuse-lite/data/regions/PF.js +1 -1
- data/node_modules/caniuse-lite/data/regions/PG.js +1 -1
- data/node_modules/caniuse-lite/data/regions/PH.js +1 -1
- data/node_modules/caniuse-lite/data/regions/PK.js +1 -1
- data/node_modules/caniuse-lite/data/regions/PL.js +1 -1
- data/node_modules/caniuse-lite/data/regions/PM.js +1 -1
- data/node_modules/caniuse-lite/data/regions/PN.js +1 -1
- data/node_modules/caniuse-lite/data/regions/PR.js +1 -1
- data/node_modules/caniuse-lite/data/regions/PS.js +1 -1
- data/node_modules/caniuse-lite/data/regions/PT.js +1 -1
- data/node_modules/caniuse-lite/data/regions/PW.js +1 -1
- data/node_modules/caniuse-lite/data/regions/PY.js +1 -1
- data/node_modules/caniuse-lite/data/regions/QA.js +1 -1
- data/node_modules/caniuse-lite/data/regions/RE.js +1 -1
- data/node_modules/caniuse-lite/data/regions/RO.js +1 -1
- data/node_modules/caniuse-lite/data/regions/RS.js +1 -1
- data/node_modules/caniuse-lite/data/regions/RU.js +1 -1
- data/node_modules/caniuse-lite/data/regions/RW.js +1 -1
- data/node_modules/caniuse-lite/data/regions/SA.js +1 -1
- data/node_modules/caniuse-lite/data/regions/SB.js +1 -1
- data/node_modules/caniuse-lite/data/regions/SC.js +1 -1
- data/node_modules/caniuse-lite/data/regions/SD.js +1 -1
- data/node_modules/caniuse-lite/data/regions/SE.js +1 -1
- data/node_modules/caniuse-lite/data/regions/SG.js +1 -1
- data/node_modules/caniuse-lite/data/regions/SH.js +1 -1
- data/node_modules/caniuse-lite/data/regions/SI.js +1 -1
- data/node_modules/caniuse-lite/data/regions/SK.js +1 -1
- data/node_modules/caniuse-lite/data/regions/SL.js +1 -1
- data/node_modules/caniuse-lite/data/regions/SM.js +1 -1
- data/node_modules/caniuse-lite/data/regions/SN.js +1 -1
- data/node_modules/caniuse-lite/data/regions/SO.js +1 -1
- data/node_modules/caniuse-lite/data/regions/SR.js +1 -1
- data/node_modules/caniuse-lite/data/regions/ST.js +1 -1
- data/node_modules/caniuse-lite/data/regions/SV.js +1 -1
- data/node_modules/caniuse-lite/data/regions/SY.js +1 -1
- data/node_modules/caniuse-lite/data/regions/SZ.js +1 -1
- data/node_modules/caniuse-lite/data/regions/TC.js +1 -1
- data/node_modules/caniuse-lite/data/regions/TD.js +1 -1
- data/node_modules/caniuse-lite/data/regions/TG.js +1 -1
- data/node_modules/caniuse-lite/data/regions/TH.js +1 -1
- data/node_modules/caniuse-lite/data/regions/TJ.js +1 -1
- data/node_modules/caniuse-lite/data/regions/TL.js +1 -1
- data/node_modules/caniuse-lite/data/regions/TM.js +1 -1
- data/node_modules/caniuse-lite/data/regions/TN.js +1 -1
- data/node_modules/caniuse-lite/data/regions/TO.js +1 -1
- data/node_modules/caniuse-lite/data/regions/TR.js +1 -1
- data/node_modules/caniuse-lite/data/regions/TT.js +1 -1
- data/node_modules/caniuse-lite/data/regions/TV.js +1 -1
- data/node_modules/caniuse-lite/data/regions/TW.js +1 -1
- data/node_modules/caniuse-lite/data/regions/TZ.js +1 -1
- data/node_modules/caniuse-lite/data/regions/UA.js +1 -1
- data/node_modules/caniuse-lite/data/regions/UG.js +1 -1
- data/node_modules/caniuse-lite/data/regions/US.js +1 -1
- data/node_modules/caniuse-lite/data/regions/UY.js +1 -1
- data/node_modules/caniuse-lite/data/regions/UZ.js +1 -1
- data/node_modules/caniuse-lite/data/regions/VA.js +1 -1
- data/node_modules/caniuse-lite/data/regions/VC.js +1 -1
- data/node_modules/caniuse-lite/data/regions/VE.js +1 -1
- data/node_modules/caniuse-lite/data/regions/VG.js +1 -1
- data/node_modules/caniuse-lite/data/regions/VI.js +1 -1
- data/node_modules/caniuse-lite/data/regions/VN.js +1 -1
- data/node_modules/caniuse-lite/data/regions/VU.js +1 -1
- data/node_modules/caniuse-lite/data/regions/WF.js +1 -1
- data/node_modules/caniuse-lite/data/regions/WS.js +1 -1
- data/node_modules/caniuse-lite/data/regions/YE.js +1 -1
- data/node_modules/caniuse-lite/data/regions/YT.js +1 -1
- data/node_modules/caniuse-lite/data/regions/ZA.js +1 -1
- data/node_modules/caniuse-lite/data/regions/ZM.js +1 -1
- data/node_modules/caniuse-lite/data/regions/ZW.js +1 -1
- data/node_modules/caniuse-lite/data/regions/alt-af.js +1 -1
- data/node_modules/caniuse-lite/data/regions/alt-an.js +1 -1
- data/node_modules/caniuse-lite/data/regions/alt-as.js +1 -1
- data/node_modules/caniuse-lite/data/regions/alt-eu.js +1 -1
- data/node_modules/caniuse-lite/data/regions/alt-na.js +1 -1
- data/node_modules/caniuse-lite/data/regions/alt-oc.js +1 -1
- data/node_modules/caniuse-lite/data/regions/alt-sa.js +1 -1
- data/node_modules/caniuse-lite/data/regions/alt-ww.js +1 -1
- data/node_modules/caniuse-lite/package.json +1 -1
- data/node_modules/electron-to-chromium/chromium-versions.js +4 -1
- data/node_modules/electron-to-chromium/chromium-versions.json +1 -1
- data/node_modules/electron-to-chromium/full-chromium-versions.js +75 -3
- data/node_modules/electron-to-chromium/full-chromium-versions.json +1 -1
- data/node_modules/electron-to-chromium/full-versions.js +45 -1
- data/node_modules/electron-to-chromium/full-versions.json +1 -1
- data/node_modules/electron-to-chromium/package.json +1 -1
- data/node_modules/electron-to-chromium/versions.js +8 -1
- data/node_modules/electron-to-chromium/versions.json +1 -1
- data/node_modules/es-object-atoms/CHANGELOG.md +21 -0
- data/node_modules/es-object-atoms/README.md +7 -0
- data/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +2 -2
- data/node_modules/es-object-atoms/ToObject.d.ts +6 -2
- data/node_modules/es-object-atoms/isObject.d.ts +3 -0
- data/node_modules/es-object-atoms/isObject.js +6 -0
- data/node_modules/es-object-atoms/package.json +9 -8
- data/node_modules/es-object-atoms/test/index.js +11 -1
- data/node_modules/es-shim-unscopables/CHANGELOG.md +8 -0
- data/node_modules/es-shim-unscopables/index.d.ts +8 -0
- data/node_modules/es-shim-unscopables/index.js +2 -1
- data/node_modules/es-shim-unscopables/package.json +20 -11
- data/node_modules/es-shim-unscopables/test/index.js +4 -1
- data/node_modules/es-shim-unscopables/test/with.js +8 -0
- data/node_modules/es-shim-unscopables/tsconfig.json +10 -0
- data/node_modules/eslint-plugin-erb/LICENSE +21 -0
- data/node_modules/eslint-plugin-erb/README.md +257 -0
- data/node_modules/eslint-plugin-erb/index.js +3 -0
- data/node_modules/eslint-plugin-erb/lib/autofix.js +44 -0
- data/node_modules/eslint-plugin-erb/lib/cache.js +21 -0
- data/node_modules/eslint-plugin-erb/lib/dummy_replacements_map.js +30 -0
- data/node_modules/eslint-plugin-erb/lib/file_coordinates.js +41 -0
- data/node_modules/eslint-plugin-erb/lib/index.js +50 -0
- data/node_modules/eslint-plugin-erb/lib/offset_calculation.js +50 -0
- data/node_modules/eslint-plugin-erb/lib/offset_map.js +111 -0
- data/node_modules/eslint-plugin-erb/lib/postprocess.js +72 -0
- data/node_modules/eslint-plugin-erb/lib/preprocess.js +113 -0
- data/node_modules/eslint-plugin-erb/package.json +50 -0
- data/node_modules/flatted/index.js +3 -3
- data/node_modules/flatted/min.js +1 -1
- data/node_modules/flatted/package.json +21 -8
- data/node_modules/flatted/python/flatted.py +4 -4
- data/node_modules/flow-parser/flow_parser.js +5550 -5530
- data/node_modules/flow-parser/package.json +1 -1
- data/node_modules/for-each/CHANGELOG.md +107 -0
- data/node_modules/for-each/README.md +0 -4
- data/node_modules/for-each/index.d.ts +35 -0
- data/node_modules/for-each/index.js +11 -4
- data/node_modules/for-each/package.json +47 -36
- data/node_modules/for-each/test/test.js +54 -12
- data/node_modules/for-each/tsconfig.json +8 -0
- data/node_modules/get-intrinsic/CHANGELOG.md +8 -0
- data/node_modules/get-intrinsic/index.js +1 -0
- data/node_modules/get-intrinsic/package.json +8 -8
- data/node_modules/import-fresh/index.js +2 -1
- data/node_modules/import-fresh/package.json +6 -1
- data/node_modules/import-fresh/readme.md +14 -8
- data/node_modules/is-async-function/CHANGELOG.md +13 -0
- data/node_modules/is-async-function/index.d.ts +4 -2
- data/node_modules/is-async-function/index.js +3 -18
- data/node_modules/is-async-function/package.json +8 -3
- data/node_modules/is-boolean-object/CHANGELOG.md +11 -0
- data/node_modules/is-boolean-object/index.js +1 -1
- data/node_modules/is-boolean-object/package.json +8 -6
- data/node_modules/is-boolean-object/test/index.js +24 -1
- data/node_modules/is-weakref/CHANGELOG.md +8 -0
- data/node_modules/is-weakref/index.d.ts +1 -1
- data/node_modules/is-weakref/index.js +3 -1
- data/node_modules/is-weakref/package.json +6 -6
- data/node_modules/object-inspect/CHANGELOG.md +8 -0
- data/node_modules/object-inspect/index.js +10 -7
- data/node_modules/object-inspect/package.json +5 -4
- data/node_modules/object-inspect/test/values.js +50 -0
- data/node_modules/possible-typed-array-names/CHANGELOG.md +14 -0
- data/node_modules/possible-typed-array-names/README.md +4 -2
- data/node_modules/possible-typed-array-names/index.d.ts +1 -0
- data/node_modules/possible-typed-array-names/index.js +1 -0
- data/node_modules/possible-typed-array-names/package.json +10 -9
- data/node_modules/possible-typed-array-names/test/index.js +6 -3
- data/node_modules/possible-typed-array-names/tsconfig.json +2 -42
- data/node_modules/recast/lib/lines.d.ts +2 -2
- data/node_modules/recast/lib/printer.js +17 -5
- data/node_modules/recast/package.json +1 -1
- data/node_modules/typescript/README.md +1 -1
- data/node_modules/typescript/lib/_tsc.js +931 -500
- data/node_modules/typescript/lib/_tsserver.js +43 -7
- data/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +14 -8
- data/node_modules/typescript/lib/de/diagnosticMessages.generated.json +14 -8
- data/node_modules/typescript/lib/es/diagnosticMessages.generated.json +14 -8
- data/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +14 -8
- data/node_modules/typescript/lib/it/diagnosticMessages.generated.json +14 -8
- data/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +14 -8
- data/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +14 -8
- data/node_modules/typescript/lib/lib.dom.d.ts +769 -142
- data/node_modules/typescript/lib/lib.dom.iterable.d.ts +9 -7
- data/node_modules/typescript/lib/lib.es2015.iterable.d.ts +69 -54
- data/node_modules/typescript/lib/lib.es2020.bigint.d.ts +41 -7
- data/node_modules/typescript/lib/lib.es2023.array.d.ts +24 -24
- data/node_modules/typescript/lib/lib.es5.d.ts +60 -51
- data/node_modules/typescript/lib/lib.esnext.d.ts +2 -0
- data/node_modules/typescript/lib/lib.esnext.float16.d.ts +443 -0
- data/node_modules/typescript/lib/lib.esnext.iterator.d.ts +1 -1
- data/node_modules/typescript/lib/lib.esnext.promise.d.ts +34 -0
- data/node_modules/typescript/lib/lib.webworker.d.ts +262 -55
- data/node_modules/typescript/lib/lib.webworker.iterable.d.ts +6 -7
- data/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +14 -8
- data/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +14 -8
- data/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +14 -8
- data/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +14 -8
- data/node_modules/typescript/lib/typescript.d.ts +14 -3
- data/node_modules/typescript/lib/typescript.js +1035 -570
- data/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +14 -8
- data/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +14 -8
- data/node_modules/typescript/package.json +22 -22
- data/node_modules/update-browserslist-db/index.js +5 -7
- data/node_modules/update-browserslist-db/package.json +2 -2
- data/node_modules/which-typed-array/CHANGELOG.md +10 -0
- data/node_modules/which-typed-array/index.js +21 -20
- data/node_modules/which-typed-array/package.json +9 -7
- data/node_modules/which-typed-array/tsconfig.json +1 -1
- data/package.json +1 -1
- metadata +39 -196
- data/linters/jscodeshift/arrow-function-transform.js +0 -42
- data/node_modules/.bin/jscodeshift +0 -1
- data/node_modules/@babel/eslint-parser/LICENSE +0 -22
- data/node_modules/@babel/eslint-parser/README.md +0 -142
- data/node_modules/@babel/eslint-parser/lib/analyze-scope.cjs +0 -322
- data/node_modules/@babel/eslint-parser/lib/analyze-scope.cjs.map +0 -1
- data/node_modules/@babel/eslint-parser/lib/client.cjs +0 -106
- data/node_modules/@babel/eslint-parser/lib/client.cjs.map +0 -1
- data/node_modules/@babel/eslint-parser/lib/configuration.cjs +0 -23
- data/node_modules/@babel/eslint-parser/lib/configuration.cjs.map +0 -1
- data/node_modules/@babel/eslint-parser/lib/convert/convertAST.cjs +0 -134
- data/node_modules/@babel/eslint-parser/lib/convert/convertAST.cjs.map +0 -1
- data/node_modules/@babel/eslint-parser/lib/convert/convertComments.cjs +0 -10
- data/node_modules/@babel/eslint-parser/lib/convert/convertComments.cjs.map +0 -1
- data/node_modules/@babel/eslint-parser/lib/convert/convertTokens.cjs +0 -159
- data/node_modules/@babel/eslint-parser/lib/convert/convertTokens.cjs.map +0 -1
- data/node_modules/@babel/eslint-parser/lib/convert/index.cjs +0 -25
- data/node_modules/@babel/eslint-parser/lib/convert/index.cjs.map +0 -1
- data/node_modules/@babel/eslint-parser/lib/experimental-worker.cjs +0 -32
- data/node_modules/@babel/eslint-parser/lib/experimental-worker.cjs.map +0 -1
- data/node_modules/@babel/eslint-parser/lib/index.cjs +0 -32
- data/node_modules/@babel/eslint-parser/lib/index.cjs.map +0 -1
- data/node_modules/@babel/eslint-parser/lib/parse.cjs +0 -37
- data/node_modules/@babel/eslint-parser/lib/parse.cjs.map +0 -1
- data/node_modules/@babel/eslint-parser/lib/utils/eslint-version.cjs +0 -5
- data/node_modules/@babel/eslint-parser/lib/utils/eslint-version.cjs.map +0 -1
- data/node_modules/@babel/eslint-parser/lib/worker/ast-info.cjs +0 -37
- data/node_modules/@babel/eslint-parser/lib/worker/ast-info.cjs.map +0 -1
- data/node_modules/@babel/eslint-parser/lib/worker/babel-core.cjs +0 -21
- data/node_modules/@babel/eslint-parser/lib/worker/babel-core.cjs.map +0 -1
- data/node_modules/@babel/eslint-parser/lib/worker/configuration.cjs +0 -91
- data/node_modules/@babel/eslint-parser/lib/worker/configuration.cjs.map +0 -1
- data/node_modules/@babel/eslint-parser/lib/worker/extract-parser-options-plugin.cjs +0 -11
- data/node_modules/@babel/eslint-parser/lib/worker/extract-parser-options-plugin.cjs.map +0 -1
- data/node_modules/@babel/eslint-parser/lib/worker/handle-message.cjs +0 -32
- data/node_modules/@babel/eslint-parser/lib/worker/handle-message.cjs.map +0 -1
- data/node_modules/@babel/eslint-parser/lib/worker/index.cjs +0 -39
- data/node_modules/@babel/eslint-parser/lib/worker/index.cjs.map +0 -1
- data/node_modules/@babel/eslint-parser/lib/worker/maybeParse.cjs +0 -48
- data/node_modules/@babel/eslint-parser/lib/worker/maybeParse.cjs.map +0 -1
- data/node_modules/@babel/eslint-parser/node_modules/eslint-visitor-keys/CHANGELOG.md +0 -36
- data/node_modules/@babel/eslint-parser/node_modules/eslint-visitor-keys/LICENSE +0 -201
- data/node_modules/@babel/eslint-parser/node_modules/eslint-visitor-keys/README.md +0 -98
- data/node_modules/@babel/eslint-parser/node_modules/eslint-visitor-keys/lib/index.js +0 -81
- data/node_modules/@babel/eslint-parser/node_modules/eslint-visitor-keys/lib/visitor-keys.json +0 -289
- data/node_modules/@babel/eslint-parser/node_modules/eslint-visitor-keys/package.json +0 -39
- data/node_modules/@babel/eslint-parser/node_modules/semver/LICENSE +0 -15
- data/node_modules/@babel/eslint-parser/node_modules/semver/README.md +0 -443
- data/node_modules/@babel/eslint-parser/node_modules/semver/bin/semver.js +0 -174
- data/node_modules/@babel/eslint-parser/node_modules/semver/package.json +0 -38
- data/node_modules/@babel/eslint-parser/node_modules/semver/range.bnf +0 -16
- data/node_modules/@babel/eslint-parser/node_modules/semver/semver.js +0 -1643
- data/node_modules/@babel/eslint-parser/package.json +0 -53
- data/node_modules/@babel/eslint-parser/types.d.cts +0 -9
- data/node_modules/@babel/plugin-proposal-decorators/LICENSE +0 -22
- data/node_modules/@babel/plugin-proposal-decorators/README.md +0 -19
- data/node_modules/@babel/plugin-proposal-decorators/lib/index.js +0 -41
- data/node_modules/@babel/plugin-proposal-decorators/lib/index.js.map +0 -1
- data/node_modules/@babel/plugin-proposal-decorators/lib/transformer-legacy.js +0 -165
- data/node_modules/@babel/plugin-proposal-decorators/lib/transformer-legacy.js.map +0 -1
- data/node_modules/@babel/plugin-proposal-decorators/package.json +0 -42
- data/node_modules/@babel/plugin-syntax-decorators/LICENSE +0 -22
- data/node_modules/@babel/plugin-syntax-decorators/README.md +0 -19
- data/node_modules/@babel/plugin-syntax-decorators/lib/index.js +0 -81
- data/node_modules/@babel/plugin-syntax-decorators/lib/index.js.map +0 -1
- data/node_modules/@babel/plugin-syntax-decorators/package.json +0 -33
- data/node_modules/@babel/plugin-transform-react-display-name/LICENSE +0 -22
- data/node_modules/@babel/plugin-transform-react-display-name/README.md +0 -19
- data/node_modules/@babel/plugin-transform-react-display-name/lib/index.js +0 -92
- data/node_modules/@babel/plugin-transform-react-display-name/lib/index.js.map +0 -1
- data/node_modules/@babel/plugin-transform-react-display-name/package.json +0 -34
- data/node_modules/@babel/plugin-transform-react-jsx/LICENSE +0 -22
- data/node_modules/@babel/plugin-transform-react-jsx/README.md +0 -19
- data/node_modules/@babel/plugin-transform-react-jsx/lib/create-plugin.js +0 -505
- data/node_modules/@babel/plugin-transform-react-jsx/lib/create-plugin.js.map +0 -1
- data/node_modules/@babel/plugin-transform-react-jsx/lib/development.js +0 -13
- data/node_modules/@babel/plugin-transform-react-jsx/lib/development.js.map +0 -1
- data/node_modules/@babel/plugin-transform-react-jsx/lib/index.js +0 -13
- data/node_modules/@babel/plugin-transform-react-jsx/lib/index.js.map +0 -1
- data/node_modules/@babel/plugin-transform-react-jsx/package.json +0 -39
- data/node_modules/@babel/plugin-transform-react-jsx-development/LICENSE +0 -22
- data/node_modules/@babel/plugin-transform-react-jsx-development/README.md +0 -19
- data/node_modules/@babel/plugin-transform-react-jsx-development/lib/index.js +0 -10
- data/node_modules/@babel/plugin-transform-react-jsx-development/lib/index.js.map +0 -1
- data/node_modules/@babel/plugin-transform-react-jsx-development/package.json +0 -33
- data/node_modules/@babel/plugin-transform-react-pure-annotations/LICENSE +0 -22
- data/node_modules/@babel/plugin-transform-react-pure-annotations/README.md +0 -19
- data/node_modules/@babel/plugin-transform-react-pure-annotations/lib/index.js +0 -49
- data/node_modules/@babel/plugin-transform-react-pure-annotations/lib/index.js.map +0 -1
- data/node_modules/@babel/plugin-transform-react-pure-annotations/package.json +0 -34
- data/node_modules/@babel/preset-react/LICENSE +0 -22
- data/node_modules/@babel/preset-react/README.md +0 -19
- data/node_modules/@babel/preset-react/lib/index.js +0 -79
- data/node_modules/@babel/preset-react/lib/index.js.map +0 -1
- data/node_modules/@babel/preset-react/package.json +0 -37
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/LICENSE +0 -7
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/index.js +0 -8
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/CHANGELOG.md +0 -70
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/LICENSE +0 -22
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/README.md +0 -54
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/lib/definition.js +0 -86
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/lib/index.js +0 -165
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/lib/pattern-visitor.js +0 -152
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/lib/reference.js +0 -167
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/lib/referencer.js +0 -629
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/lib/scope-manager.js +0 -247
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/lib/scope.js +0 -748
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/lib/variable.js +0 -88
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/node_modules/estraverse/LICENSE.BSD +0 -19
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/node_modules/estraverse/README.md +0 -153
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/node_modules/estraverse/estraverse.js +0 -782
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/node_modules/estraverse/gulpfile.js +0 -70
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/node_modules/estraverse/package.json +0 -40
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/package.json +0 -48
- data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/package.json +0 -14
- data/node_modules/flatted/python/test.py +0 -63
- data/node_modules/jscodeshift/CHANGELOG.md +0 -226
- data/node_modules/jscodeshift/CODE_OF_CONDUCT.md +0 -3
- data/node_modules/jscodeshift/CONTRIBUTING.md +0 -48
- data/node_modules/jscodeshift/README.md +0 -671
- data/node_modules/jscodeshift/bin/jscodeshift.js +0 -182
- data/node_modules/jscodeshift/bin/jscodeshift.sh +0 -12
- data/node_modules/jscodeshift/dist/Collection.js +0 -472
- data/node_modules/jscodeshift/dist/Runner.js +0 -322
- data/node_modules/jscodeshift/dist/Worker.js +0 -210
- data/node_modules/jscodeshift/dist/__testfixtures__/test-async-transform.input.js +0 -1
- data/node_modules/jscodeshift/dist/__testfixtures__/test-async-transform.js +0 -11
- data/node_modules/jscodeshift/dist/__testfixtures__/test-async-transform.output.js +0 -1
- data/node_modules/jscodeshift/dist/__testfixtures__/test-sync-transform.input.js +0 -1
- data/node_modules/jscodeshift/dist/__testfixtures__/test-sync-transform.js +0 -7
- data/node_modules/jscodeshift/dist/__testfixtures__/test-sync-transform.output.js +0 -1
- data/node_modules/jscodeshift/dist/argsParser.js +0 -273
- data/node_modules/jscodeshift/dist/collections/ImportDeclaration.js +0 -113
- data/node_modules/jscodeshift/dist/collections/JSXElement.js +0 -221
- data/node_modules/jscodeshift/dist/collections/Node.js +0 -187
- data/node_modules/jscodeshift/dist/collections/VariableDeclarator.js +0 -210
- data/node_modules/jscodeshift/dist/collections/index.js +0 -14
- data/node_modules/jscodeshift/dist/core.js +0 -183
- data/node_modules/jscodeshift/dist/getParser.js +0 -25
- data/node_modules/jscodeshift/dist/ignoreFiles.js +0 -68
- data/node_modules/jscodeshift/dist/matchNode.js +0 -40
- data/node_modules/jscodeshift/dist/template.js +0 -173
- data/node_modules/jscodeshift/dist/testUtils.js +0 -173
- data/node_modules/jscodeshift/dist/utils/intersection.js +0 -27
- data/node_modules/jscodeshift/dist/utils/once.js +0 -21
- data/node_modules/jscodeshift/dist/utils/union.js +0 -20
- data/node_modules/jscodeshift/index.js +0 -9
- data/node_modules/jscodeshift/package.json +0 -74
- data/node_modules/jscodeshift/parser/babel5Compat.js +0 -50
- data/node_modules/jscodeshift/parser/babylon.js +0 -57
- data/node_modules/jscodeshift/parser/flow.js +0 -34
- data/node_modules/jscodeshift/parser/ts.js +0 -24
- data/node_modules/jscodeshift/parser/tsOptions.js +0 -46
- data/node_modules/jscodeshift/parser/tsx.js +0 -27
- data/node_modules/jscodeshift/src/Collection.js +0 -472
- data/node_modules/jscodeshift/src/Runner.js +0 -322
- data/node_modules/jscodeshift/src/Worker.js +0 -210
- data/node_modules/jscodeshift/src/__testfixtures__/test-async-transform.input.js +0 -1
- data/node_modules/jscodeshift/src/__testfixtures__/test-async-transform.js +0 -11
- data/node_modules/jscodeshift/src/__testfixtures__/test-async-transform.output.js +0 -1
- data/node_modules/jscodeshift/src/__testfixtures__/test-sync-transform.input.js +0 -1
- data/node_modules/jscodeshift/src/__testfixtures__/test-sync-transform.js +0 -7
- data/node_modules/jscodeshift/src/__testfixtures__/test-sync-transform.output.js +0 -1
- data/node_modules/jscodeshift/src/argsParser.js +0 -273
- data/node_modules/jscodeshift/src/collections/ImportDeclaration.js +0 -113
- data/node_modules/jscodeshift/src/collections/JSXElement.js +0 -221
- data/node_modules/jscodeshift/src/collections/Node.js +0 -187
- data/node_modules/jscodeshift/src/collections/VariableDeclarator.js +0 -210
- data/node_modules/jscodeshift/src/collections/index.js +0 -14
- data/node_modules/jscodeshift/src/core.js +0 -183
- data/node_modules/jscodeshift/src/getParser.js +0 -25
- data/node_modules/jscodeshift/src/ignoreFiles.js +0 -68
- data/node_modules/jscodeshift/src/matchNode.js +0 -40
- data/node_modules/jscodeshift/src/template.js +0 -173
- data/node_modules/jscodeshift/src/testUtils.js +0 -173
- data/node_modules/jscodeshift/src/utils/intersection.js +0 -27
- data/node_modules/jscodeshift/src/utils/once.js +0 -21
- data/node_modules/jscodeshift/src/utils/union.js +0 -20
- data/node_modules/jscodeshift/utils/requirePackage.js +0 -24
- data/node_modules/jscodeshift/utils/testUtils.js +0 -49
- data/node_modules/jscodeshift/website/README.md +0 -44
- data/node_modules/jscodeshift/website/astro.config.mjs +0 -36
- data/node_modules/jscodeshift/website/package.json +0 -17
- data/node_modules/jscodeshift/website/public/favicon.svg +0 -1
- data/node_modules/jscodeshift/website/src/assets/houston.webp +0 -0
- data/node_modules/jscodeshift/website/src/content/config.ts +0 -6
- data/node_modules/jscodeshift/website/src/content/docs/build/api-reference.mdx +0 -406
- data/node_modules/jscodeshift/website/src/content/docs/build/ast-grammar.mdx +0 -3086
- data/node_modules/jscodeshift/website/src/content/docs/index.mdx +0 -15
- data/node_modules/jscodeshift/website/src/content/docs/overview/introduction.mdx +0 -45
- data/node_modules/jscodeshift/website/src/content/docs/run/cli.mdx +0 -161
- data/node_modules/jscodeshift/website/src/env.d.ts +0 -2
- data/node_modules/jscodeshift/website/tsconfig.json +0 -3
- data/node_modules/typescript/lib/cancellationToken.js +0 -90
@@ -436,6 +436,7 @@ __export(typescript_exports, {
|
|
436
436
|
createPrinterWithRemoveCommentsNeverAsciiEscape: () => createPrinterWithRemoveCommentsNeverAsciiEscape,
|
437
437
|
createPrinterWithRemoveCommentsOmitTrailingSemicolon: () => createPrinterWithRemoveCommentsOmitTrailingSemicolon,
|
438
438
|
createProgram: () => createProgram,
|
439
|
+
createProgramDiagnostics: () => createProgramDiagnostics,
|
439
440
|
createProgramHost: () => createProgramHost,
|
440
441
|
createPropertyNameNodeForIdentifierOrLiteral: () => createPropertyNameNodeForIdentifierOrLiteral,
|
441
442
|
createQueue: () => createQueue,
|
@@ -605,6 +606,8 @@ __export(typescript_exports, {
|
|
605
606
|
forEachLeadingCommentRange: () => forEachLeadingCommentRange,
|
606
607
|
forEachNameInAccessChainWalkingLeft: () => forEachNameInAccessChainWalkingLeft,
|
607
608
|
forEachNameOfDefaultExport: () => forEachNameOfDefaultExport,
|
609
|
+
forEachOptionsSyntaxByName: () => forEachOptionsSyntaxByName,
|
610
|
+
forEachProjectReference: () => forEachProjectReference,
|
608
611
|
forEachPropertyAssignment: () => forEachPropertyAssignment,
|
609
612
|
forEachResolvedProjectReference: () => forEachResolvedProjectReference,
|
610
613
|
forEachReturnStatement: () => forEachReturnStatement,
|
@@ -844,6 +847,8 @@ __export(typescript_exports, {
|
|
844
847
|
getLeadingCommentRangesOfNode: () => getLeadingCommentRangesOfNode,
|
845
848
|
getLeftmostAccessExpression: () => getLeftmostAccessExpression,
|
846
849
|
getLeftmostExpression: () => getLeftmostExpression,
|
850
|
+
getLibFileNameFromLibReference: () => getLibFileNameFromLibReference,
|
851
|
+
getLibNameFromLibReference: () => getLibNameFromLibReference,
|
847
852
|
getLibraryNameFromLibFileName: () => getLibraryNameFromLibFileName,
|
848
853
|
getLineAndCharacterOfPosition: () => getLineAndCharacterOfPosition,
|
849
854
|
getLineInfo: () => getLineInfo,
|
@@ -916,6 +921,8 @@ __export(typescript_exports, {
|
|
916
921
|
getOptionFromName: () => getOptionFromName,
|
917
922
|
getOptionsForLibraryResolution: () => getOptionsForLibraryResolution,
|
918
923
|
getOptionsNameMap: () => getOptionsNameMap,
|
924
|
+
getOptionsSyntaxByArrayElementValue: () => getOptionsSyntaxByArrayElementValue,
|
925
|
+
getOptionsSyntaxByValue: () => getOptionsSyntaxByValue,
|
919
926
|
getOrCreateEmitNode: () => getOrCreateEmitNode,
|
920
927
|
getOrUpdate: () => getOrUpdate,
|
921
928
|
getOriginalNode: () => getOriginalNode,
|
@@ -952,7 +959,6 @@ __export(typescript_exports, {
|
|
952
959
|
getPrivateIdentifier: () => getPrivateIdentifier,
|
953
960
|
getProperties: () => getProperties,
|
954
961
|
getProperty: () => getProperty,
|
955
|
-
getPropertyArrayElementValue: () => getPropertyArrayElementValue,
|
956
962
|
getPropertyAssignmentAliasLikeExpression: () => getPropertyAssignmentAliasLikeExpression,
|
957
963
|
getPropertyNameForPropertyNameNode: () => getPropertyNameForPropertyNameNode,
|
958
964
|
getPropertyNameFromType: () => getPropertyNameFromType,
|
@@ -1863,6 +1869,7 @@ __export(typescript_exports, {
|
|
1863
1869
|
moduleResolutionUsesNodeModules: () => moduleResolutionUsesNodeModules,
|
1864
1870
|
moduleSpecifierToValidIdentifier: () => moduleSpecifierToValidIdentifier,
|
1865
1871
|
moduleSpecifiers: () => ts_moduleSpecifiers_exports,
|
1872
|
+
moduleSupportsImportAttributes: () => moduleSupportsImportAttributes,
|
1866
1873
|
moduleSymbolToValidIdentifier: () => moduleSymbolToValidIdentifier,
|
1867
1874
|
moveEmitHelpers: () => moveEmitHelpers,
|
1868
1875
|
moveRangeEnd: () => moveRangeEnd,
|
@@ -2277,8 +2284,8 @@ __export(typescript_exports, {
|
|
2277
2284
|
module.exports = __toCommonJS(typescript_exports);
|
2278
2285
|
|
2279
2286
|
// src/compiler/corePublic.ts
|
2280
|
-
var versionMajorMinor = "5.
|
2281
|
-
var version = "5.
|
2287
|
+
var versionMajorMinor = "5.8";
|
2288
|
+
var version = "5.8.2";
|
2282
2289
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
2283
2290
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
2284
2291
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
@@ -6727,6 +6734,7 @@ var ModuleKind = /* @__PURE__ */ ((ModuleKind3) => {
|
|
6727
6734
|
ModuleKind3[ModuleKind3["ES2022"] = 7] = "ES2022";
|
6728
6735
|
ModuleKind3[ModuleKind3["ESNext"] = 99] = "ESNext";
|
6729
6736
|
ModuleKind3[ModuleKind3["Node16"] = 100] = "Node16";
|
6737
|
+
ModuleKind3[ModuleKind3["Node18"] = 101] = "Node18";
|
6730
6738
|
ModuleKind3[ModuleKind3["NodeNext"] = 199] = "NodeNext";
|
6731
6739
|
ModuleKind3[ModuleKind3["Preserve"] = 200] = "Preserve";
|
6732
6740
|
return ModuleKind3;
|
@@ -7141,8 +7149,9 @@ var OuterExpressionKinds = /* @__PURE__ */ ((OuterExpressionKinds2) => {
|
|
7141
7149
|
OuterExpressionKinds2[OuterExpressionKinds2["NonNullAssertions"] = 4] = "NonNullAssertions";
|
7142
7150
|
OuterExpressionKinds2[OuterExpressionKinds2["PartiallyEmittedExpressions"] = 8] = "PartiallyEmittedExpressions";
|
7143
7151
|
OuterExpressionKinds2[OuterExpressionKinds2["ExpressionsWithTypeArguments"] = 16] = "ExpressionsWithTypeArguments";
|
7144
|
-
OuterExpressionKinds2[OuterExpressionKinds2["
|
7145
|
-
OuterExpressionKinds2[OuterExpressionKinds2["
|
7152
|
+
OuterExpressionKinds2[OuterExpressionKinds2["Satisfies"] = 32] = "Satisfies";
|
7153
|
+
OuterExpressionKinds2[OuterExpressionKinds2["Assertions"] = 38] = "Assertions";
|
7154
|
+
OuterExpressionKinds2[OuterExpressionKinds2["All"] = 63] = "All";
|
7146
7155
|
OuterExpressionKinds2[OuterExpressionKinds2["ExcludeJSDocTypeAssertion"] = -2147483648] = "ExcludeJSDocTypeAssertion";
|
7147
7156
|
return OuterExpressionKinds2;
|
7148
7157
|
})(OuterExpressionKinds || {});
|
@@ -8871,23 +8880,105 @@ function resolvePath(path, ...paths) {
|
|
8871
8880
|
function getNormalizedPathComponents(path, currentDirectory) {
|
8872
8881
|
return reducePathComponents(getPathComponents(path, currentDirectory));
|
8873
8882
|
}
|
8874
|
-
function getNormalizedAbsolutePath(
|
8875
|
-
|
8883
|
+
function getNormalizedAbsolutePath(path, currentDirectory) {
|
8884
|
+
let rootLength = getRootLength(path);
|
8885
|
+
if (rootLength === 0 && currentDirectory) {
|
8886
|
+
path = combinePaths(currentDirectory, path);
|
8887
|
+
rootLength = getRootLength(path);
|
8888
|
+
} else {
|
8889
|
+
path = normalizeSlashes(path);
|
8890
|
+
}
|
8891
|
+
const simpleNormalized = simpleNormalizePath(path);
|
8892
|
+
if (simpleNormalized !== void 0) {
|
8893
|
+
return simpleNormalized.length > rootLength ? removeTrailingDirectorySeparator(simpleNormalized) : simpleNormalized;
|
8894
|
+
}
|
8895
|
+
const length2 = path.length;
|
8896
|
+
const root = path.substring(0, rootLength);
|
8897
|
+
let normalized;
|
8898
|
+
let index = rootLength;
|
8899
|
+
let segmentStart = index;
|
8900
|
+
let normalizedUpTo = index;
|
8901
|
+
let seenNonDotDotSegment = rootLength !== 0;
|
8902
|
+
while (index < length2) {
|
8903
|
+
segmentStart = index;
|
8904
|
+
let ch = path.charCodeAt(index);
|
8905
|
+
while (ch === 47 /* slash */ && index + 1 < length2) {
|
8906
|
+
index++;
|
8907
|
+
ch = path.charCodeAt(index);
|
8908
|
+
}
|
8909
|
+
if (index > segmentStart) {
|
8910
|
+
normalized ?? (normalized = path.substring(0, segmentStart - 1));
|
8911
|
+
segmentStart = index;
|
8912
|
+
}
|
8913
|
+
let segmentEnd = path.indexOf(directorySeparator, index + 1);
|
8914
|
+
if (segmentEnd === -1) {
|
8915
|
+
segmentEnd = length2;
|
8916
|
+
}
|
8917
|
+
const segmentLength = segmentEnd - segmentStart;
|
8918
|
+
if (segmentLength === 1 && path.charCodeAt(index) === 46 /* dot */) {
|
8919
|
+
normalized ?? (normalized = path.substring(0, normalizedUpTo));
|
8920
|
+
} else if (segmentLength === 2 && path.charCodeAt(index) === 46 /* dot */ && path.charCodeAt(index + 1) === 46 /* dot */) {
|
8921
|
+
if (!seenNonDotDotSegment) {
|
8922
|
+
if (normalized !== void 0) {
|
8923
|
+
normalized += normalized.length === rootLength ? ".." : "/..";
|
8924
|
+
} else {
|
8925
|
+
normalizedUpTo = index + 2;
|
8926
|
+
}
|
8927
|
+
} else if (normalized === void 0) {
|
8928
|
+
if (normalizedUpTo - 2 >= 0) {
|
8929
|
+
normalized = path.substring(0, Math.max(rootLength, path.lastIndexOf(directorySeparator, normalizedUpTo - 2)));
|
8930
|
+
} else {
|
8931
|
+
normalized = path.substring(0, normalizedUpTo);
|
8932
|
+
}
|
8933
|
+
} else {
|
8934
|
+
const lastSlash = normalized.lastIndexOf(directorySeparator);
|
8935
|
+
if (lastSlash !== -1) {
|
8936
|
+
normalized = normalized.substring(0, Math.max(rootLength, lastSlash));
|
8937
|
+
} else {
|
8938
|
+
normalized = root;
|
8939
|
+
}
|
8940
|
+
if (normalized.length === rootLength) {
|
8941
|
+
seenNonDotDotSegment = rootLength !== 0;
|
8942
|
+
}
|
8943
|
+
}
|
8944
|
+
} else if (normalized !== void 0) {
|
8945
|
+
if (normalized.length !== rootLength) {
|
8946
|
+
normalized += directorySeparator;
|
8947
|
+
}
|
8948
|
+
seenNonDotDotSegment = true;
|
8949
|
+
normalized += path.substring(segmentStart, segmentEnd);
|
8950
|
+
} else {
|
8951
|
+
seenNonDotDotSegment = true;
|
8952
|
+
normalizedUpTo = segmentEnd;
|
8953
|
+
}
|
8954
|
+
index = segmentEnd + 1;
|
8955
|
+
}
|
8956
|
+
return normalized ?? (length2 > rootLength ? removeTrailingDirectorySeparator(path) : path);
|
8876
8957
|
}
|
8877
8958
|
function normalizePath(path) {
|
8878
8959
|
path = normalizeSlashes(path);
|
8960
|
+
let normalized = simpleNormalizePath(path);
|
8961
|
+
if (normalized !== void 0) {
|
8962
|
+
return normalized;
|
8963
|
+
}
|
8964
|
+
normalized = getNormalizedAbsolutePath(path, "");
|
8965
|
+
return normalized && hasTrailingDirectorySeparator(path) ? ensureTrailingDirectorySeparator(normalized) : normalized;
|
8966
|
+
}
|
8967
|
+
function simpleNormalizePath(path) {
|
8879
8968
|
if (!relativePathSegmentRegExp.test(path)) {
|
8880
8969
|
return path;
|
8881
8970
|
}
|
8882
|
-
|
8971
|
+
let simplified = path.replace(/\/\.\//g, "/");
|
8972
|
+
if (simplified.startsWith("./")) {
|
8973
|
+
simplified = simplified.slice(2);
|
8974
|
+
}
|
8883
8975
|
if (simplified !== path) {
|
8884
8976
|
path = simplified;
|
8885
8977
|
if (!relativePathSegmentRegExp.test(path)) {
|
8886
8978
|
return path;
|
8887
8979
|
}
|
8888
8980
|
}
|
8889
|
-
|
8890
|
-
return normalized && hasTrailingDirectorySeparator(path) ? ensureTrailingDirectorySeparator(normalized) : normalized;
|
8981
|
+
return void 0;
|
8891
8982
|
}
|
8892
8983
|
function getPathWithoutRoot(pathComponents2) {
|
8893
8984
|
if (pathComponents2.length === 0) return "";
|
@@ -9315,6 +9406,7 @@ var Diagnostics = {
|
|
9315
9406
|
_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported: diag(1291, 1 /* Error */, "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291", "'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),
|
9316
9407
|
_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default: diag(1292, 1 /* Error */, "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292", "'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),
|
9317
9408
|
ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve: diag(1293, 1 /* Error */, "ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293", "ESM syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'."),
|
9409
|
+
This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled: diag(1294, 1 /* Error */, "This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294", "This syntax is not allowed when 'erasableSyntaxOnly' is enabled."),
|
9318
9410
|
with_statements_are_not_allowed_in_an_async_function_block: diag(1300, 1 /* Error */, "with_statements_are_not_allowed_in_an_async_function_block_1300", "'with' statements are not allowed in an async function block."),
|
9319
9411
|
await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules: diag(1308, 1 /* Error */, "await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308", "'await' expressions are only allowed within async functions and at the top levels of modules."),
|
9320
9412
|
The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level: diag(1309, 1 /* Error */, "The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309", "The current file is a CommonJS module and cannot use 'await' at the top level."),
|
@@ -9329,8 +9421,8 @@ var Diagnostics = {
|
|
9329
9421
|
Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: diag(1320, 1 /* Error */, "Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320", "Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),
|
9330
9422
|
Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: diag(1321, 1 /* Error */, "Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321", "Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),
|
9331
9423
|
Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: diag(1322, 1 /* Error */, "Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322", "Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),
|
9332
|
-
|
9333
|
-
|
9424
|
+
Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_or_nodenext: diag(1323, 1 /* Error */, "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323", "Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', or 'nodenext'."),
|
9425
|
+
Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_nodenext_or_preserve: diag(1324, 1 /* Error */, "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324", "Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'node18', 'nodenext', or 'preserve'."),
|
9334
9426
|
Argument_of_dynamic_import_cannot_be_spread_element: diag(1325, 1 /* Error */, "Argument_of_dynamic_import_cannot_be_spread_element_1325", "Argument of dynamic import cannot be spread element."),
|
9335
9427
|
This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments: diag(1326, 1 /* Error */, "This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326", "This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),
|
9336
9428
|
String_literal_with_double_quotes_expected: diag(1327, 1 /* Error */, "String_literal_with_double_quotes_expected_1327", "String literal with double quotes expected."),
|
@@ -9347,7 +9439,7 @@ var Diagnostics = {
|
|
9347
9439
|
Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here: diag(1339, 1 /* Error */, "Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339", "Module '{0}' does not refer to a value, but is used as a value here."),
|
9348
9440
|
Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0: diag(1340, 1 /* Error */, "Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340", "Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),
|
9349
9441
|
Class_constructor_may_not_be_an_accessor: diag(1341, 1 /* Error */, "Class_constructor_may_not_be_an_accessor_1341", "Class constructor may not be an accessor."),
|
9350
|
-
|
9442
|
+
The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_or_nodenext: diag(1343, 1 /* Error */, "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343", "The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', 'node18', or 'nodenext'."),
|
9351
9443
|
A_label_is_not_allowed_here: diag(1344, 1 /* Error */, "A_label_is_not_allowed_here_1344", "'A label is not allowed here."),
|
9352
9444
|
An_expression_of_type_void_cannot_be_tested_for_truthiness: diag(1345, 1 /* Error */, "An_expression_of_type_void_cannot_be_tested_for_truthiness_1345", "An expression of type 'void' cannot be tested for truthiness."),
|
9353
9445
|
This_parameter_is_not_allowed_with_use_strict_directive: diag(1346, 1 /* Error */, "This_parameter_is_not_allowed_with_use_strict_directive_1346", "This parameter is not allowed with 'use strict' directive."),
|
@@ -9377,7 +9469,7 @@ var Diagnostics = {
|
|
9377
9469
|
await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module: diag(1375, 1 /* Error */, "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375", "'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),
|
9378
9470
|
_0_was_imported_here: diag(1376, 3 /* Message */, "_0_was_imported_here_1376", "'{0}' was imported here."),
|
9379
9471
|
_0_was_exported_here: diag(1377, 3 /* Message */, "_0_was_exported_here_1377", "'{0}' was exported here."),
|
9380
|
-
|
9472
|
+
Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher: diag(1378, 1 /* Error */, "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378", "Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),
|
9381
9473
|
An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type: diag(1379, 1 /* Error */, "An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379", "An import alias cannot reference a declaration that was exported using 'export type'."),
|
9382
9474
|
An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type: diag(1380, 1 /* Error */, "An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380", "An import alias cannot reference a declaration that was imported using 'import type'."),
|
9383
9475
|
Unexpected_token_Did_you_mean_or_rbrace: diag(1381, 1 /* Error */, "Unexpected_token_Did_you_mean_or_rbrace_1381", "Unexpected token. Did you mean `{'}'}` or `}`?"),
|
@@ -9428,7 +9520,7 @@ var Diagnostics = {
|
|
9428
9520
|
File_redirects_to_file_0: diag(1429, 3 /* Message */, "File_redirects_to_file_0_1429", "File redirects to file '{0}'"),
|
9429
9521
|
The_file_is_in_the_program_because_Colon: diag(1430, 3 /* Message */, "The_file_is_in_the_program_because_Colon_1430", "The file is in the program because:"),
|
9430
9522
|
for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module: diag(1431, 1 /* Error */, "for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431", "'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),
|
9431
|
-
|
9523
|
+
Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher: diag(1432, 1 /* Error */, "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432", "Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),
|
9432
9524
|
Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters: diag(1433, 1 /* Error */, "Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433", "Neither decorators nor modifiers may be applied to 'this' parameters."),
|
9433
9525
|
Unexpected_keyword_or_identifier: diag(1434, 1 /* Error */, "Unexpected_keyword_or_identifier_1434", "Unexpected keyword or identifier."),
|
9434
9526
|
Unknown_keyword_or_identifier_Did_you_mean_0: diag(1435, 1 /* Error */, "Unknown_keyword_or_identifier_Did_you_mean_0_1435", "Unknown keyword or identifier. Did you mean '{0}'?"),
|
@@ -10070,9 +10162,9 @@ var Diagnostics = {
|
|
10070
10162
|
Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers: diag(2818, 1 /* Error */, "Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818", "Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),
|
10071
10163
|
Namespace_name_cannot_be_0: diag(2819, 1 /* Error */, "Namespace_name_cannot_be_0_2819", "Namespace name cannot be '{0}'."),
|
10072
10164
|
Type_0_is_not_assignable_to_type_1_Did_you_mean_2: diag(2820, 1 /* Error */, "Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820", "Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),
|
10073
|
-
|
10165
|
+
Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_preserve: diag(2821, 1 /* Error */, "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2821", "Import assertions are only supported when the '--module' option is set to 'esnext', 'node18', 'nodenext', or 'preserve'."),
|
10074
10166
|
Import_assertions_cannot_be_used_with_type_only_imports_or_exports: diag(2822, 1 /* Error */, "Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822", "Import assertions cannot be used with type-only imports or exports."),
|
10075
|
-
|
10167
|
+
Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_preserve: diag(2823, 1 /* Error */, "Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2823", "Import attributes are only supported when the '--module' option is set to 'esnext', 'node18', 'nodenext', or 'preserve'."),
|
10076
10168
|
Cannot_find_namespace_0_Did_you_mean_1: diag(2833, 1 /* Error */, "Cannot_find_namespace_0_Did_you_mean_1_2833", "Cannot find namespace '{0}'. Did you mean '{1}'?"),
|
10077
10169
|
Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path: diag(2834, 1 /* Error */, "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834", "Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),
|
10078
10170
|
Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0: diag(2835, 1 /* Error */, "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835", "Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),
|
@@ -10092,7 +10184,7 @@ var Diagnostics = {
|
|
10092
10184
|
The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined: diag(2851, 1 /* Error */, "The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851", "The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),
|
10093
10185
|
await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules: diag(2852, 1 /* Error */, "await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852", "'await using' statements are only allowed within async functions and at the top levels of modules."),
|
10094
10186
|
await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module: diag(2853, 1 /* Error */, "await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853", "'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),
|
10095
|
-
|
10187
|
+
Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher: diag(2854, 1 /* Error */, "Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854", "Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),
|
10096
10188
|
Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super: diag(2855, 1 /* Error */, "Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855", "Class field '{0}' defined by the parent class is not accessible in the child class via super."),
|
10097
10189
|
Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls: diag(2856, 1 /* Error */, "Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856", "Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),
|
10098
10190
|
Import_attributes_cannot_be_used_with_type_only_imports_or_exports: diag(2857, 1 /* Error */, "Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857", "Import attributes cannot be used with type-only imports or exports."),
|
@@ -10118,6 +10210,7 @@ var Diagnostics = {
|
|
10118
10210
|
This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path: diag(2877, 1 /* Error */, "This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877", "This import uses a '{0}' extension to resolve to an input TypeScript file, but will not be rewritten during emit because it is not a relative path."),
|
10119
10211
|
This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files: diag(2878, 1 /* Error */, "This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878", "This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files."),
|
10120
10212
|
Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found: diag(2879, 1 /* Error */, "Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879", "Using JSX fragments requires fragment factory '{0}' to be in scope, but it could not be found."),
|
10213
|
+
Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert: diag(2880, 1 /* Error */, "Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880", "Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'."),
|
10121
10214
|
Import_declaration_0_is_using_private_name_1: diag(4e3, 1 /* Error */, "Import_declaration_0_is_using_private_name_1_4000", "Import declaration '{0}' is using private name '{1}'."),
|
10122
10215
|
Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: diag(4002, 1 /* Error */, "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002", "Type parameter '{0}' of exported class has or is using private name '{1}'."),
|
10123
10216
|
Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: diag(4004, 1 /* Error */, "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004", "Type parameter '{0}' of exported interface has or is using private name '{1}'."),
|
@@ -10227,6 +10320,8 @@ var Diagnostics = {
|
|
10227
10320
|
Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next: diag(4124, 1 /* Error */, "Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124", "Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),
|
10228
10321
|
Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given: diag(4125, 1 /* Error */, "Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125", "Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),
|
10229
10322
|
One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value: diag(4126, 1 /* Error */, "One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126", "One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),
|
10323
|
+
This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic: diag(4127, 1 /* Error */, "This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127", "This member cannot have an 'override' modifier because its name is dynamic."),
|
10324
|
+
This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic: diag(4128, 1 /* Error */, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128", "This member cannot have a JSDoc comment with an '@override' tag because its name is dynamic."),
|
10230
10325
|
The_current_host_does_not_support_the_0_option: diag(5001, 1 /* Error */, "The_current_host_does_not_support_the_0_option_5001", "The current host does not support the '{0}' option."),
|
10231
10326
|
Cannot_find_the_common_subdirectory_path_for_the_input_files: diag(5009, 1 /* Error */, "Cannot_find_the_common_subdirectory_path_for_the_input_files_5009", "Cannot find the common subdirectory path for the input files."),
|
10232
10327
|
File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0: diag(5010, 1 /* Error */, "File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010", "File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),
|
@@ -10799,11 +10894,13 @@ var Diagnostics = {
|
|
10799
10894
|
Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types: diag(6718, 3 /* Message */, "Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718", "Specify emit/checking behavior for imports that are only used for types."),
|
10800
10895
|
Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files: diag(6719, 3 /* Message */, "Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719", "Require sufficient annotation on exports so other tools can trivially generate declaration files."),
|
10801
10896
|
Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any: diag(6720, 3 /* Message */, "Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720", "Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'."),
|
10897
|
+
Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript: diag(6721, 3 /* Message */, "Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721", "Do not allow runtime constructs that are not part of ECMAScript."),
|
10802
10898
|
Default_catch_clause_variables_as_unknown_instead_of_any: diag(6803, 3 /* Message */, "Default_catch_clause_variables_as_unknown_instead_of_any_6803", "Default catch clause variables as 'unknown' instead of 'any'."),
|
10803
10899
|
Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting: diag(6804, 3 /* Message */, "Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804", "Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),
|
10804
10900
|
Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported: diag(6805, 3 /* Message */, "Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805", "Disable full type checking (only critical parse and emit errors will be reported)."),
|
10805
10901
|
Check_side_effect_imports: diag(6806, 3 /* Message */, "Check_side_effect_imports_6806", "Check side effect imports."),
|
10806
10902
|
This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2: diag(6807, 1 /* Error */, "This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807", "This operation can be simplified. This shift is identical to `{0} {1} {2}`."),
|
10903
|
+
Enable_lib_replacement: diag(6808, 3 /* Message */, "Enable_lib_replacement_6808", "Enable lib replacement."),
|
10807
10904
|
one_of_Colon: diag(6900, 3 /* Message */, "one_of_Colon_6900", "one of:"),
|
10808
10905
|
one_or_more_Colon: diag(6901, 3 /* Message */, "one_or_more_Colon_6901", "one or more:"),
|
10809
10906
|
type_Colon: diag(6902, 3 /* Message */, "type_Colon_6902", "type:"),
|
@@ -14547,6 +14644,7 @@ function sortAndDeduplicateDiagnostics(diagnostics) {
|
|
14547
14644
|
}
|
14548
14645
|
var targetToLibMap = /* @__PURE__ */ new Map([
|
14549
14646
|
[99 /* ESNext */, "lib.esnext.full.d.ts"],
|
14647
|
+
[11 /* ES2024 */, "lib.es2024.full.d.ts"],
|
14550
14648
|
[10 /* ES2023 */, "lib.es2023.full.d.ts"],
|
14551
14649
|
[9 /* ES2022 */, "lib.es2022.full.d.ts"],
|
14552
14650
|
[8 /* ES2021 */, "lib.es2021.full.d.ts"],
|
@@ -14562,6 +14660,7 @@ function getDefaultLibFileName(options) {
|
|
14562
14660
|
const target = getEmitScriptTarget(options);
|
14563
14661
|
switch (target) {
|
14564
14662
|
case 99 /* ESNext */:
|
14663
|
+
case 11 /* ES2024 */:
|
14565
14664
|
case 10 /* ES2023 */:
|
14566
14665
|
case 9 /* ES2022 */:
|
14567
14666
|
case 8 /* ES2021 */:
|
@@ -16769,6 +16868,9 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
16769
16868
|
"trunc",
|
16770
16869
|
"fround",
|
16771
16870
|
"cbrt"
|
16871
|
+
],
|
16872
|
+
esnext: [
|
16873
|
+
"f16round"
|
16772
16874
|
]
|
16773
16875
|
})),
|
16774
16876
|
Map: new Map(Object.entries({
|
@@ -16938,6 +17040,10 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
16938
17040
|
"setBigUint64",
|
16939
17041
|
"getBigInt64",
|
16940
17042
|
"getBigUint64"
|
17043
|
+
],
|
17044
|
+
esnext: [
|
17045
|
+
"setFloat16",
|
17046
|
+
"getFloat16"
|
16941
17047
|
]
|
16942
17048
|
})),
|
16943
17049
|
BigInt: new Map(Object.entries({
|
@@ -17041,6 +17147,9 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
17041
17147
|
"with"
|
17042
17148
|
]
|
17043
17149
|
})),
|
17150
|
+
Float16Array: new Map(Object.entries({
|
17151
|
+
esnext: emptyArray
|
17152
|
+
})),
|
17044
17153
|
Float32Array: new Map(Object.entries({
|
17045
17154
|
es2022: [
|
17046
17155
|
"at"
|
@@ -17220,7 +17329,7 @@ function getNonAugmentationDeclaration(symbol) {
|
|
17220
17329
|
return (_a = symbol.declarations) == null ? void 0 : _a.find((d) => !isExternalModuleAugmentation(d) && !(isModuleDeclaration(d) && isGlobalScopeAugmentation(d)));
|
17221
17330
|
}
|
17222
17331
|
function isCommonJSContainingModuleKind(kind) {
|
17223
|
-
return kind === 1 /* CommonJS */ ||
|
17332
|
+
return kind === 1 /* CommonJS */ || 100 /* Node16 */ <= kind && kind <= 199 /* NodeNext */;
|
17224
17333
|
}
|
17225
17334
|
function isEffectiveExternalModule(node, compilerOptions) {
|
17226
17335
|
return isExternalModule(node) || isCommonJSContainingModuleKind(getEmitModuleKind(compilerOptions)) && !!node.commonJsModuleIndicator;
|
@@ -17934,9 +18043,6 @@ function forEachPropertyAssignment(objectLiteral, key, callback, key2) {
|
|
17934
18043
|
return key === propName || key2 && key2 === propName ? callback(property) : void 0;
|
17935
18044
|
});
|
17936
18045
|
}
|
17937
|
-
function getPropertyArrayElementValue(objectLiteral, propKey, elementValue) {
|
17938
|
-
return forEachPropertyAssignment(objectLiteral, propKey, (property) => isArrayLiteralExpression(property.initializer) ? find(property.initializer.elements, (element) => isStringLiteral(element) && element.text === elementValue) : void 0);
|
17939
|
-
}
|
17940
18046
|
function getTsConfigObjectLiteralExpression(tsConfigSourceFile) {
|
17941
18047
|
if (tsConfigSourceFile && tsConfigSourceFile.statements.length) {
|
17942
18048
|
const expression = tsConfigSourceFile.statements[0].expression;
|
@@ -21765,7 +21871,7 @@ var _computedOptions = createComputedCompilerOptions({
|
|
21765
21871
|
dependencies: ["module"],
|
21766
21872
|
computeValue: (compilerOptions) => {
|
21767
21873
|
const target = compilerOptions.target === 0 /* ES3 */ ? void 0 : compilerOptions.target;
|
21768
|
-
return target ?? (compilerOptions.module === 100 /* Node16 */ && 9 /* ES2022 */ || compilerOptions.module === 199 /* NodeNext */ && 99 /* ESNext */ || 1 /* ES5 */);
|
21874
|
+
return target ?? (compilerOptions.module === 100 /* Node16 */ && 9 /* ES2022 */ || compilerOptions.module === 101 /* Node18 */ && 9 /* ES2022 */ || compilerOptions.module === 199 /* NodeNext */ && 99 /* ESNext */ || 1 /* ES5 */);
|
21769
21875
|
}
|
21770
21876
|
},
|
21771
21877
|
module: {
|
@@ -21784,6 +21890,7 @@ var _computedOptions = createComputedCompilerOptions({
|
|
21784
21890
|
moduleResolution = 2 /* Node10 */;
|
21785
21891
|
break;
|
21786
21892
|
case 100 /* Node16 */:
|
21893
|
+
case 101 /* Node18 */:
|
21787
21894
|
moduleResolution = 3 /* Node16 */;
|
21788
21895
|
break;
|
21789
21896
|
case 199 /* NodeNext */:
|
@@ -21803,7 +21910,11 @@ var _computedOptions = createComputedCompilerOptions({
|
|
21803
21910
|
moduleDetection: {
|
21804
21911
|
dependencies: ["module", "target"],
|
21805
21912
|
computeValue: (compilerOptions) => {
|
21806
|
-
|
21913
|
+
if (compilerOptions.moduleDetection !== void 0) {
|
21914
|
+
return compilerOptions.moduleDetection;
|
21915
|
+
}
|
21916
|
+
const moduleKind = _computedOptions.module.computeValue(compilerOptions);
|
21917
|
+
return 100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */ ? 3 /* Force */ : 2 /* Auto */;
|
21807
21918
|
}
|
21808
21919
|
},
|
21809
21920
|
isolatedModules: {
|
@@ -21820,6 +21931,7 @@ var _computedOptions = createComputedCompilerOptions({
|
|
21820
21931
|
}
|
21821
21932
|
switch (_computedOptions.module.computeValue(compilerOptions)) {
|
21822
21933
|
case 100 /* Node16 */:
|
21934
|
+
case 101 /* Node18 */:
|
21823
21935
|
case 199 /* NodeNext */:
|
21824
21936
|
case 200 /* Preserve */:
|
21825
21937
|
return true;
|
@@ -22013,6 +22125,9 @@ function unusedLabelIsError(options) {
|
|
22013
22125
|
function moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution) {
|
22014
22126
|
return moduleResolution >= 3 /* Node16 */ && moduleResolution <= 99 /* NodeNext */ || moduleResolution === 100 /* Bundler */;
|
22015
22127
|
}
|
22128
|
+
function moduleSupportsImportAttributes(moduleKind) {
|
22129
|
+
return 101 /* Node18 */ <= moduleKind && moduleKind <= 199 /* NodeNext */ || moduleKind === 200 /* Preserve */ || moduleKind === 99 /* ESNext */;
|
22130
|
+
}
|
22016
22131
|
function getStrictOptionValue(compilerOptions, flag) {
|
22017
22132
|
return compilerOptions[flag] === void 0 ? !!compilerOptions.strict : !!compilerOptions[flag];
|
22018
22133
|
}
|
@@ -22763,7 +22878,7 @@ function isValidBigIntString(s, roundTripOnly) {
|
|
22763
22878
|
return success && result === 10 /* BigIntLiteral */ && scanner2.getTokenEnd() === s.length + 1 && !(flags & 512 /* ContainsSeparator */) && (!roundTripOnly || s === pseudoBigIntToString({ negative, base10Value: parsePseudoBigInt(scanner2.getTokenValue()) }));
|
22764
22879
|
}
|
22765
22880
|
function isValidTypeOnlyAliasUseSite(useSite) {
|
22766
|
-
return !!(useSite.flags & 33554432 /* Ambient */) || isPartOfTypeQuery(useSite) || isIdentifierInNonEmittingHeritageClause(useSite) || isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(useSite) || !(isExpressionNode(useSite) || isShorthandPropertyNameUseSite(useSite));
|
22881
|
+
return !!(useSite.flags & 33554432 /* Ambient */) || isInJSDoc(useSite) || isPartOfTypeQuery(useSite) || isIdentifierInNonEmittingHeritageClause(useSite) || isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(useSite) || !(isExpressionNode(useSite) || isShorthandPropertyNameUseSite(useSite));
|
22767
22882
|
}
|
22768
22883
|
function isShorthandPropertyNameUseSite(useSite) {
|
22769
22884
|
return isIdentifier(useSite) && isShorthandPropertyAssignment(useSite.parent) && useSite.parent.name === useSite;
|
@@ -23935,6 +24050,64 @@ function getNodeAtPosition(sourceFile, position, includeJSDoc) {
|
|
23935
24050
|
function isNewScopeNode(node) {
|
23936
24051
|
return isFunctionLike(node) || isJSDocSignature(node) || isMappedTypeNode(node);
|
23937
24052
|
}
|
24053
|
+
function getLibNameFromLibReference(libReference) {
|
24054
|
+
return toFileNameLowerCase(libReference.fileName);
|
24055
|
+
}
|
24056
|
+
function getLibFileNameFromLibReference(libReference) {
|
24057
|
+
const libName = getLibNameFromLibReference(libReference);
|
24058
|
+
return libMap.get(libName);
|
24059
|
+
}
|
24060
|
+
function forEachResolvedProjectReference(resolvedProjectReferences, cb) {
|
24061
|
+
return forEachProjectReference(
|
24062
|
+
/*projectReferences*/
|
24063
|
+
void 0,
|
24064
|
+
resolvedProjectReferences,
|
24065
|
+
(resolvedRef, parent2) => resolvedRef && cb(resolvedRef, parent2)
|
24066
|
+
);
|
24067
|
+
}
|
24068
|
+
function forEachProjectReference(projectReferences, resolvedProjectReferences, cbResolvedRef, cbRef) {
|
24069
|
+
let seenResolvedRefs;
|
24070
|
+
return worker(
|
24071
|
+
projectReferences,
|
24072
|
+
resolvedProjectReferences,
|
24073
|
+
/*parent*/
|
24074
|
+
void 0
|
24075
|
+
);
|
24076
|
+
function worker(projectReferences2, resolvedProjectReferences2, parent2) {
|
24077
|
+
if (cbRef) {
|
24078
|
+
const result = cbRef(projectReferences2, parent2);
|
24079
|
+
if (result) return result;
|
24080
|
+
}
|
24081
|
+
let skipChildren;
|
24082
|
+
return forEach(
|
24083
|
+
resolvedProjectReferences2,
|
24084
|
+
(resolvedRef, index) => {
|
24085
|
+
if (resolvedRef && (seenResolvedRefs == null ? void 0 : seenResolvedRefs.has(resolvedRef.sourceFile.path))) {
|
24086
|
+
(skipChildren ?? (skipChildren = /* @__PURE__ */ new Set())).add(resolvedRef);
|
24087
|
+
return void 0;
|
24088
|
+
}
|
24089
|
+
const result = cbResolvedRef(resolvedRef, parent2, index);
|
24090
|
+
if (result || !resolvedRef) return result;
|
24091
|
+
(seenResolvedRefs || (seenResolvedRefs = /* @__PURE__ */ new Set())).add(resolvedRef.sourceFile.path);
|
24092
|
+
}
|
24093
|
+
) || forEach(
|
24094
|
+
resolvedProjectReferences2,
|
24095
|
+
(resolvedRef) => resolvedRef && !(skipChildren == null ? void 0 : skipChildren.has(resolvedRef)) ? worker(resolvedRef.commandLine.projectReferences, resolvedRef.references, resolvedRef) : void 0
|
24096
|
+
);
|
24097
|
+
}
|
24098
|
+
}
|
24099
|
+
function getOptionsSyntaxByArrayElementValue(optionsObject, name, value) {
|
24100
|
+
return optionsObject && getPropertyArrayElementValue(optionsObject, name, value);
|
24101
|
+
}
|
24102
|
+
function getPropertyArrayElementValue(objectLiteral, propKey, elementValue) {
|
24103
|
+
return forEachPropertyAssignment(objectLiteral, propKey, (property) => isArrayLiteralExpression(property.initializer) ? find(property.initializer.elements, (element) => isStringLiteral(element) && element.text === elementValue) : void 0);
|
24104
|
+
}
|
24105
|
+
function getOptionsSyntaxByValue(optionsObject, name, value) {
|
24106
|
+
return forEachOptionsSyntaxByName(optionsObject, name, (property) => isStringLiteral(property.initializer) && property.initializer.text === value ? property.initializer : void 0);
|
24107
|
+
}
|
24108
|
+
function forEachOptionsSyntaxByName(optionsObject, name, callback) {
|
24109
|
+
return forEachPropertyAssignment(optionsObject, name, callback);
|
24110
|
+
}
|
23938
24111
|
|
23939
24112
|
// src/compiler/factory/baseNodeFactory.ts
|
23940
24113
|
function createBaseNodeFactory() {
|
@@ -26552,6 +26725,8 @@ function createNodeFactory(flags, baseFactory2) {
|
|
26552
26725
|
node.colonToken = colonToken ?? createToken(59 /* ColonToken */);
|
26553
26726
|
node.whenFalse = parenthesizerRules().parenthesizeBranchOfConditionalExpression(whenFalse);
|
26554
26727
|
node.transformFlags |= propagateChildFlags(node.condition) | propagateChildFlags(node.questionToken) | propagateChildFlags(node.whenTrue) | propagateChildFlags(node.colonToken) | propagateChildFlags(node.whenFalse);
|
26728
|
+
node.flowNodeWhenFalse = void 0;
|
26729
|
+
node.flowNodeWhenTrue = void 0;
|
26555
26730
|
return node;
|
26556
26731
|
}
|
26557
26732
|
function updateConditionalExpression(node, condition, questionToken, whenTrue, colonToken, whenFalse) {
|
@@ -28355,7 +28530,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
28355
28530
|
function isIgnorableParen(node) {
|
28356
28531
|
return isParenthesizedExpression(node) && nodeIsSynthesized(node) && nodeIsSynthesized(getSourceMapRange(node)) && nodeIsSynthesized(getCommentRange(node)) && !some(getSyntheticLeadingComments(node)) && !some(getSyntheticTrailingComments(node));
|
28357
28532
|
}
|
28358
|
-
function restoreOuterExpressions(outerExpression, innerExpression, kinds =
|
28533
|
+
function restoreOuterExpressions(outerExpression, innerExpression, kinds = 63 /* All */) {
|
28359
28534
|
if (outerExpression && isOuterExpression(outerExpression, kinds) && !isIgnorableParen(outerExpression)) {
|
28360
28535
|
return updateOuterExpression(
|
28361
28536
|
outerExpression,
|
@@ -28401,7 +28576,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
28401
28576
|
}
|
28402
28577
|
}
|
28403
28578
|
function createCallBinding(expression, recordTempVariable, languageVersion, cacheIdentifiers = false) {
|
28404
|
-
const callee = skipOuterExpressions(expression,
|
28579
|
+
const callee = skipOuterExpressions(expression, 63 /* All */);
|
28405
28580
|
let thisArg;
|
28406
28581
|
let target;
|
28407
28582
|
if (isSuperProperty(callee)) {
|
@@ -31404,7 +31579,7 @@ function getJSDocTypeAssertionType(node) {
|
|
31404
31579
|
Debug.assertIsDefined(type);
|
31405
31580
|
return type;
|
31406
31581
|
}
|
31407
|
-
function isOuterExpression(node, kinds =
|
31582
|
+
function isOuterExpression(node, kinds = 63 /* All */) {
|
31408
31583
|
switch (node.kind) {
|
31409
31584
|
case 217 /* ParenthesizedExpression */:
|
31410
31585
|
if (kinds & -2147483648 /* ExcludeJSDocTypeAssertion */ && isJSDocTypeAssertion(node)) {
|
@@ -31413,8 +31588,9 @@ function isOuterExpression(node, kinds = 31 /* All */) {
|
|
31413
31588
|
return (kinds & 1 /* Parentheses */) !== 0;
|
31414
31589
|
case 216 /* TypeAssertionExpression */:
|
31415
31590
|
case 234 /* AsExpression */:
|
31416
|
-
case 238 /* SatisfiesExpression */:
|
31417
31591
|
return (kinds & 2 /* TypeAssertions */) !== 0;
|
31592
|
+
case 238 /* SatisfiesExpression */:
|
31593
|
+
return (kinds & (2 /* TypeAssertions */ | 32 /* Satisfies */)) !== 0;
|
31418
31594
|
case 233 /* ExpressionWithTypeArguments */:
|
31419
31595
|
return (kinds & 16 /* ExpressionsWithTypeArguments */) !== 0;
|
31420
31596
|
case 235 /* NonNullExpression */:
|
@@ -31424,13 +31600,13 @@ function isOuterExpression(node, kinds = 31 /* All */) {
|
|
31424
31600
|
}
|
31425
31601
|
return false;
|
31426
31602
|
}
|
31427
|
-
function skipOuterExpressions(node, kinds =
|
31603
|
+
function skipOuterExpressions(node, kinds = 63 /* All */) {
|
31428
31604
|
while (isOuterExpression(node, kinds)) {
|
31429
31605
|
node = node.expression;
|
31430
31606
|
}
|
31431
31607
|
return node;
|
31432
31608
|
}
|
31433
|
-
function walkUpOuterExpressions(node, kinds =
|
31609
|
+
function walkUpOuterExpressions(node, kinds = 63 /* All */) {
|
31434
31610
|
let parent2 = node.parent;
|
31435
31611
|
while (isOuterExpression(parent2, kinds)) {
|
31436
31612
|
parent2 = parent2.parent;
|
@@ -39306,6 +39482,7 @@ var Parser;
|
|
39306
39482
|
const node = factory2.createExpressionWithTypeArguments(expression, typeArguments);
|
39307
39483
|
const res = finishNode(node, pos);
|
39308
39484
|
if (usedBrace) {
|
39485
|
+
skipWhitespace();
|
39309
39486
|
parseExpected(20 /* CloseBraceToken */);
|
39310
39487
|
}
|
39311
39488
|
return res;
|
@@ -40351,6 +40528,8 @@ var libEntries = [
|
|
40351
40528
|
["esnext.regexp", "lib.es2024.regexp.d.ts"],
|
40352
40529
|
["esnext.string", "lib.es2024.string.d.ts"],
|
40353
40530
|
["esnext.iterator", "lib.esnext.iterator.d.ts"],
|
40531
|
+
["esnext.promise", "lib.esnext.promise.d.ts"],
|
40532
|
+
["esnext.float16", "lib.esnext.float16.d.ts"],
|
40354
40533
|
["decorators", "lib.decorators.d.ts"],
|
40355
40534
|
["decorators.legacy", "lib.decorators.legacy.d.ts"]
|
40356
40535
|
];
|
@@ -40677,6 +40856,7 @@ var moduleOptionDeclaration = {
|
|
40677
40856
|
es2022: 7 /* ES2022 */,
|
40678
40857
|
esnext: 99 /* ESNext */,
|
40679
40858
|
node16: 100 /* Node16 */,
|
40859
|
+
node18: 101 /* Node18 */,
|
40680
40860
|
nodenext: 199 /* NodeNext */,
|
40681
40861
|
preserve: 200 /* Preserve */
|
40682
40862
|
})),
|
@@ -40929,6 +41109,23 @@ var commandOptionsWithoutBuild = [
|
|
40929
41109
|
affectsBuildInfo: true,
|
40930
41110
|
affectsSemanticDiagnostics: true
|
40931
41111
|
},
|
41112
|
+
{
|
41113
|
+
name: "erasableSyntaxOnly",
|
41114
|
+
type: "boolean",
|
41115
|
+
category: Diagnostics.Interop_Constraints,
|
41116
|
+
description: Diagnostics.Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript,
|
41117
|
+
defaultValueDescription: false,
|
41118
|
+
affectsBuildInfo: true,
|
41119
|
+
affectsSemanticDiagnostics: true
|
41120
|
+
},
|
41121
|
+
{
|
41122
|
+
name: "libReplacement",
|
41123
|
+
type: "boolean",
|
41124
|
+
affectsProgramStructure: true,
|
41125
|
+
category: Diagnostics.Language_and_Environment,
|
41126
|
+
description: Diagnostics.Enable_lib_replacement,
|
41127
|
+
defaultValueDescription: true
|
41128
|
+
},
|
40932
41129
|
// Strict Type Checks
|
40933
41130
|
{
|
40934
41131
|
name: "strict",
|
@@ -45099,9 +45296,7 @@ function tryFileLookup(fileName, onlyRecordFailures, state) {
|
|
45099
45296
|
}
|
45100
45297
|
function loadNodeModuleFromDirectory(extensions, candidate, onlyRecordFailures, state, considerPackageJson = true) {
|
45101
45298
|
const packageInfo = considerPackageJson ? getPackageJsonInfo(candidate, onlyRecordFailures, state) : void 0;
|
45102
|
-
|
45103
|
-
const versionPaths = packageInfo && getVersionPathsOfPackageJsonInfo(packageInfo, state);
|
45104
|
-
return withPackageId(packageInfo, loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, packageJsonContent, versionPaths), state);
|
45299
|
+
return withPackageId(packageInfo, loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, packageInfo), state);
|
45105
45300
|
}
|
45106
45301
|
function getEntrypointsFromPackageJsonInfo(packageJsonInfo, options, host, cache, resolveJs) {
|
45107
45302
|
if (!resolveJs && packageJsonInfo.contents.resolvedEntrypoints !== void 0) {
|
@@ -45119,8 +45314,7 @@ function getEntrypointsFromPackageJsonInfo(packageJsonInfo, options, host, cache
|
|
45119
45314
|
/*onlyRecordFailures*/
|
45120
45315
|
false,
|
45121
45316
|
loadPackageJsonMainState,
|
45122
|
-
packageJsonInfo
|
45123
|
-
getVersionPathsOfPackageJsonInfo(packageJsonInfo, loadPackageJsonMainState)
|
45317
|
+
packageJsonInfo
|
45124
45318
|
);
|
45125
45319
|
entrypoints = append(entrypoints, mainResolution == null ? void 0 : mainResolution.path);
|
45126
45320
|
if (features & 8 /* Exports */ && packageJsonInfo.contents.packageJsonContent.exports) {
|
@@ -45323,13 +45517,14 @@ function getPackageJsonInfo(packageDirectory, onlyRecordFailures, state) {
|
|
45323
45517
|
(_f = state.failedLookupLocations) == null ? void 0 : _f.push(packageJsonPath);
|
45324
45518
|
}
|
45325
45519
|
}
|
45326
|
-
function loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state,
|
45520
|
+
function loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, packageJson) {
|
45521
|
+
const versionPaths = packageJson && getVersionPathsOfPackageJsonInfo(packageJson, state);
|
45327
45522
|
let packageFile;
|
45328
|
-
if (
|
45523
|
+
if (packageJson && arePathsEqual(packageJson == null ? void 0 : packageJson.packageDirectory, candidate, state.host)) {
|
45329
45524
|
if (state.isConfigLookup) {
|
45330
|
-
packageFile = readPackageJsonTSConfigField(
|
45525
|
+
packageFile = readPackageJsonTSConfigField(packageJson.contents.packageJsonContent, packageJson.packageDirectory, state);
|
45331
45526
|
} else {
|
45332
|
-
packageFile = extensions & 4 /* Declaration */ && readPackageJsonTypesFields(
|
45527
|
+
packageFile = extensions & 4 /* Declaration */ && readPackageJsonTypesFields(packageJson.contents.packageJsonContent, packageJson.packageDirectory, state) || extensions & (3 /* ImplementationFiles */ | 4 /* Declaration */) && readPackageJsonMainField(packageJson.contents.packageJsonContent, packageJson.packageDirectory, state) || void 0;
|
45333
45528
|
}
|
45334
45529
|
}
|
45335
45530
|
const loader = (extensions2, candidate2, onlyRecordFailures2, state2) => {
|
@@ -45348,7 +45543,7 @@ function loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFail
|
|
45348
45543
|
const features = state2.features;
|
45349
45544
|
const candidateIsFromPackageJsonField = state2.candidateIsFromPackageJsonField;
|
45350
45545
|
state2.candidateIsFromPackageJsonField = true;
|
45351
|
-
if ((
|
45546
|
+
if ((packageJson == null ? void 0 : packageJson.contents.packageJsonContent.type) !== "module") {
|
45352
45547
|
state2.features &= ~32 /* EsmMode */;
|
45353
45548
|
}
|
45354
45549
|
const result = nodeLoadModuleByRelativeName(
|
@@ -45619,6 +45814,7 @@ function hasOneAsterisk(patternKey) {
|
|
45619
45814
|
function getLoadModuleFromTargetExportOrImport(extensions, state, cache, redirectedReference, moduleName, scope, isImports) {
|
45620
45815
|
return loadModuleFromTargetExportOrImport;
|
45621
45816
|
function loadModuleFromTargetExportOrImport(target, subpath, pattern, key) {
|
45817
|
+
var _a, _b;
|
45622
45818
|
if (typeof target === "string") {
|
45623
45819
|
if (!pattern && subpath.length > 0 && !endsWith(target, "/")) {
|
45624
45820
|
if (state.traceEnabled) {
|
@@ -45647,6 +45843,8 @@ function getLoadModuleFromTargetExportOrImport(extensions, state, cache, redirec
|
|
45647
45843
|
redirectedReference,
|
45648
45844
|
state.conditions
|
45649
45845
|
);
|
45846
|
+
(_a = state.failedLookupLocations) == null ? void 0 : _a.push(...result.failedLookupLocations ?? emptyArray);
|
45847
|
+
(_b = state.affectingLocations) == null ? void 0 : _b.push(...result.affectingLocations ?? emptyArray);
|
45650
45848
|
return toSearchResult(
|
45651
45849
|
result.resolvedModule ? {
|
45652
45850
|
path: result.resolvedModule.resolvedFileName,
|
@@ -45756,20 +45954,20 @@ function getLoadModuleFromTargetExportOrImport(extensions, state, cache, redirec
|
|
45756
45954
|
void 0
|
45757
45955
|
);
|
45758
45956
|
function toAbsolutePath(path) {
|
45759
|
-
var
|
45957
|
+
var _a2, _b2;
|
45760
45958
|
if (path === void 0) return path;
|
45761
|
-
return getNormalizedAbsolutePath(path, (
|
45959
|
+
return getNormalizedAbsolutePath(path, (_b2 = (_a2 = state.host).getCurrentDirectory) == null ? void 0 : _b2.call(_a2));
|
45762
45960
|
}
|
45763
45961
|
function combineDirectoryPath(root, dir) {
|
45764
45962
|
return ensureTrailingDirectorySeparator(combinePaths(root, dir));
|
45765
45963
|
}
|
45766
45964
|
function tryLoadInputFileForPath(finalPath, entry, packagePath, isImports2) {
|
45767
|
-
var
|
45965
|
+
var _a2, _b2, _c, _d;
|
45768
45966
|
if (!state.isConfigLookup && (state.compilerOptions.declarationDir || state.compilerOptions.outDir) && !finalPath.includes("/node_modules/") && (state.compilerOptions.configFile ? containsPath(scope.packageDirectory, toAbsolutePath(state.compilerOptions.configFile.fileName), !useCaseSensitiveFileNames(state)) : true)) {
|
45769
45967
|
const getCanonicalFileName = hostGetCanonicalFileName({ useCaseSensitiveFileNames: () => useCaseSensitiveFileNames(state) });
|
45770
45968
|
const commonSourceDirGuesses = [];
|
45771
45969
|
if (state.compilerOptions.rootDir || state.compilerOptions.composite && state.compilerOptions.configFilePath) {
|
45772
|
-
const commonDir = toAbsolutePath(getCommonSourceDirectory(state.compilerOptions, () => [], ((
|
45970
|
+
const commonDir = toAbsolutePath(getCommonSourceDirectory(state.compilerOptions, () => [], ((_b2 = (_a2 = state.host).getCurrentDirectory) == null ? void 0 : _b2.call(_a2)) || "", getCanonicalFileName));
|
45773
45971
|
commonSourceDirGuesses.push(commonDir);
|
45774
45972
|
} else if (state.requestContainingDirectory) {
|
45775
45973
|
const requestingFile = toAbsolutePath(combinePaths(state.requestContainingDirectory, "index.ts"));
|
@@ -45825,8 +46023,8 @@ function getLoadModuleFromTargetExportOrImport(extensions, state, cache, redirec
|
|
45825
46023
|
}
|
45826
46024
|
return void 0;
|
45827
46025
|
function getOutputDirectoriesForBaseDirectory(commonSourceDirGuess) {
|
45828
|
-
var
|
45829
|
-
const currentDir = state.compilerOptions.configFile ? ((
|
46026
|
+
var _a3, _b3;
|
46027
|
+
const currentDir = state.compilerOptions.configFile ? ((_b3 = (_a3 = state.host).getCurrentDirectory) == null ? void 0 : _b3.call(_a3)) || "" : commonSourceDirGuess;
|
45830
46028
|
const candidateDirectories = [];
|
45831
46029
|
if (state.compilerOptions.declarationDir) {
|
45832
46030
|
candidateDirectories.push(toAbsolutePath(combineDirectoryPath(currentDir, state.compilerOptions.declarationDir)));
|
@@ -45873,7 +46071,7 @@ function loadModuleFromNearestNodeModulesDirectoryTypesScope(moduleName, directo
|
|
45873
46071
|
);
|
45874
46072
|
}
|
45875
46073
|
function loadModuleFromNearestNodeModulesDirectoryWorker(extensions, moduleName, directory, state, typesScopeOnly, cache, redirectedReference) {
|
45876
|
-
const mode = state.features === 0 ? void 0 : state.features & 32 /* EsmMode */ ? 99 /* ESNext */ : 1 /* CommonJS */;
|
46074
|
+
const mode = state.features === 0 ? void 0 : state.features & 32 /* EsmMode */ || state.conditions.includes("import") ? 99 /* ESNext */ : 1 /* CommonJS */;
|
45877
46075
|
const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */);
|
45878
46076
|
const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */);
|
45879
46077
|
if (priorityExtensions) {
|
@@ -45951,8 +46149,7 @@ function loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, node
|
|
45951
46149
|
candidate,
|
45952
46150
|
!nodeModulesDirectoryExists,
|
45953
46151
|
state,
|
45954
|
-
packageInfo
|
45955
|
-
getVersionPathsOfPackageJsonInfo(packageInfo, state)
|
46152
|
+
packageInfo
|
45956
46153
|
);
|
45957
46154
|
return withPackageId(packageInfo, fromDirectory, state);
|
45958
46155
|
}
|
@@ -45962,10 +46159,9 @@ function loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, node
|
|
45962
46159
|
candidate2,
|
45963
46160
|
onlyRecordFailures,
|
45964
46161
|
state2,
|
45965
|
-
packageInfo
|
45966
|
-
packageInfo && getVersionPathsOfPackageJsonInfo(packageInfo, state2)
|
46162
|
+
packageInfo
|
45967
46163
|
);
|
45968
|
-
if (!pathAndExtension && packageInfo && (packageInfo.contents.packageJsonContent.exports === void 0 || packageInfo.contents.packageJsonContent.exports === null) && state2.features & 32 /* EsmMode */) {
|
46164
|
+
if (!pathAndExtension && !rest && packageInfo && (packageInfo.contents.packageJsonContent.exports === void 0 || packageInfo.contents.packageJsonContent.exports === null) && state2.features & 32 /* EsmMode */) {
|
45969
46165
|
pathAndExtension = loadModuleFromFile(extensions2, combinePaths(candidate2, "index.js"), onlyRecordFailures, state2);
|
45970
46166
|
}
|
45971
46167
|
return withPackageId(packageInfo, pathAndExtension, state2);
|
@@ -46411,6 +46607,7 @@ function createBinder() {
|
|
46411
46607
|
var preSwitchCaseFlow;
|
46412
46608
|
var activeLabelList;
|
46413
46609
|
var hasExplicitReturn;
|
46610
|
+
var inReturnPosition;
|
46414
46611
|
var hasFlowEffects;
|
46415
46612
|
var emitFlags;
|
46416
46613
|
var inStrictMode;
|
@@ -46483,6 +46680,7 @@ function createBinder() {
|
|
46483
46680
|
currentExceptionTarget = void 0;
|
46484
46681
|
activeLabelList = void 0;
|
46485
46682
|
hasExplicitReturn = false;
|
46683
|
+
inReturnPosition = false;
|
46486
46684
|
hasFlowEffects = false;
|
46487
46685
|
inAssignmentPattern = false;
|
46488
46686
|
emitFlags = 0 /* None */;
|
@@ -46719,6 +46917,8 @@ function createBinder() {
|
|
46719
46917
|
const saveContainer = container;
|
46720
46918
|
const saveThisParentContainer = thisParentContainer;
|
46721
46919
|
const savedBlockScopeContainer = blockScopeContainer;
|
46920
|
+
const savedInReturnPosition = inReturnPosition;
|
46921
|
+
if (node.kind === 219 /* ArrowFunction */ && node.body.kind !== 241 /* Block */) inReturnPosition = true;
|
46722
46922
|
if (containerFlags & 1 /* IsContainer */) {
|
46723
46923
|
if (node.kind !== 219 /* ArrowFunction */) {
|
46724
46924
|
thisParentContainer = container;
|
@@ -46796,6 +46996,7 @@ function createBinder() {
|
|
46796
46996
|
} else {
|
46797
46997
|
bindChildren(node);
|
46798
46998
|
}
|
46999
|
+
inReturnPosition = savedInReturnPosition;
|
46799
47000
|
container = saveContainer;
|
46800
47001
|
thisParentContainer = saveThisParentContainer;
|
46801
47002
|
blockScopeContainer = savedBlockScopeContainer;
|
@@ -46817,6 +47018,9 @@ function createBinder() {
|
|
46817
47018
|
const saveInAssignmentPattern = inAssignmentPattern;
|
46818
47019
|
inAssignmentPattern = false;
|
46819
47020
|
if (checkUnreachable(node)) {
|
47021
|
+
if (canHaveFlowNode(node) && node.flowNode) {
|
47022
|
+
node.flowNode = void 0;
|
47023
|
+
}
|
46820
47024
|
bindEachChild(node);
|
46821
47025
|
bindJSDoc(node);
|
46822
47026
|
inAssignmentPattern = saveInAssignmentPattern;
|
@@ -47012,7 +47216,9 @@ function createBinder() {
|
|
47012
47216
|
case 36 /* ExclamationEqualsToken */:
|
47013
47217
|
case 37 /* EqualsEqualsEqualsToken */:
|
47014
47218
|
case 38 /* ExclamationEqualsEqualsToken */:
|
47015
|
-
|
47219
|
+
const left = skipParentheses(expr.left);
|
47220
|
+
const right = skipParentheses(expr.right);
|
47221
|
+
return isNarrowableOperand(left) || isNarrowableOperand(right) || isNarrowingTypeofOperands(right, left) || isNarrowingTypeofOperands(left, right) || (isBooleanLiteral(right) && isNarrowingExpression(left) || isBooleanLiteral(left) && isNarrowingExpression(right));
|
47016
47222
|
case 104 /* InstanceOfKeyword */:
|
47017
47223
|
return isNarrowableOperand(expr.left);
|
47018
47224
|
case 103 /* InKeyword */:
|
@@ -47204,13 +47410,16 @@ function createBinder() {
|
|
47204
47410
|
function bindForStatement(node) {
|
47205
47411
|
const preLoopLabel = setContinueTarget(node, createLoopLabel());
|
47206
47412
|
const preBodyLabel = createBranchLabel();
|
47413
|
+
const preIncrementorLabel = createBranchLabel();
|
47207
47414
|
const postLoopLabel = createBranchLabel();
|
47208
47415
|
bind(node.initializer);
|
47209
47416
|
addAntecedent(preLoopLabel, currentFlow);
|
47210
47417
|
currentFlow = preLoopLabel;
|
47211
47418
|
bindCondition(node.condition, preBodyLabel, postLoopLabel);
|
47212
47419
|
currentFlow = finishFlowLabel(preBodyLabel);
|
47213
|
-
bindIterativeStatement(node.statement, postLoopLabel,
|
47420
|
+
bindIterativeStatement(node.statement, postLoopLabel, preIncrementorLabel);
|
47421
|
+
addAntecedent(preIncrementorLabel, currentFlow);
|
47422
|
+
currentFlow = finishFlowLabel(preIncrementorLabel);
|
47214
47423
|
bind(node.incrementor);
|
47215
47424
|
addAntecedent(preLoopLabel, currentFlow);
|
47216
47425
|
currentFlow = finishFlowLabel(postLoopLabel);
|
@@ -47247,7 +47456,10 @@ function createBinder() {
|
|
47247
47456
|
currentFlow = finishFlowLabel(postIfLabel);
|
47248
47457
|
}
|
47249
47458
|
function bindReturnOrThrow(node) {
|
47459
|
+
const savedInReturnPosition = inReturnPosition;
|
47460
|
+
inReturnPosition = true;
|
47250
47461
|
bind(node.expression);
|
47462
|
+
inReturnPosition = savedInReturnPosition;
|
47251
47463
|
if (node.kind === 253 /* ReturnStatement */) {
|
47252
47464
|
hasExplicitReturn = true;
|
47253
47465
|
if (currentReturnTarget) {
|
@@ -47608,10 +47820,16 @@ function createBinder() {
|
|
47608
47820
|
hasFlowEffects = false;
|
47609
47821
|
bindCondition(node.condition, trueLabel, falseLabel);
|
47610
47822
|
currentFlow = finishFlowLabel(trueLabel);
|
47823
|
+
if (inReturnPosition) {
|
47824
|
+
node.flowNodeWhenTrue = currentFlow;
|
47825
|
+
}
|
47611
47826
|
bind(node.questionToken);
|
47612
47827
|
bind(node.whenTrue);
|
47613
47828
|
addAntecedent(postExpressionLabel, currentFlow);
|
47614
47829
|
currentFlow = finishFlowLabel(falseLabel);
|
47830
|
+
if (inReturnPosition) {
|
47831
|
+
node.flowNodeWhenFalse = currentFlow;
|
47832
|
+
}
|
47615
47833
|
bind(node.colonToken);
|
47616
47834
|
bind(node.whenFalse);
|
47617
47835
|
addAntecedent(postExpressionLabel, currentFlow);
|
@@ -50885,6 +51103,7 @@ function createTypeChecker(host) {
|
|
50885
51103
|
getNumberLiteralType,
|
50886
51104
|
getBigIntType: () => bigintType,
|
50887
51105
|
getBigIntLiteralType,
|
51106
|
+
getUnknownType: () => unknownType,
|
50888
51107
|
createPromiseType,
|
50889
51108
|
createArrayType,
|
50890
51109
|
getElementTypeOfArrayType,
|
@@ -51001,8 +51220,13 @@ function createTypeChecker(host) {
|
|
51001
51220
|
getMemberOverrideModifierStatus,
|
51002
51221
|
isTypeParameterPossiblyReferenced,
|
51003
51222
|
typeHasCallOrConstructSignatures,
|
51004
|
-
getSymbolFlags
|
51223
|
+
getSymbolFlags,
|
51224
|
+
getTypeArgumentsForResolvedSignature
|
51005
51225
|
};
|
51226
|
+
function getTypeArgumentsForResolvedSignature(signature) {
|
51227
|
+
if (signature.mapper === void 0) return void 0;
|
51228
|
+
return instantiateTypes((signature.target || signature).typeParameters, signature.mapper);
|
51229
|
+
}
|
51006
51230
|
function getCandidateSignaturesForStringLiteralCompletions(call, editingArgument) {
|
51007
51231
|
const candidatesSet = /* @__PURE__ */ new Set();
|
51008
51232
|
const candidates = [];
|
@@ -51379,6 +51603,12 @@ function createTypeChecker(host) {
|
|
51379
51603
|
/*isReadonly*/
|
51380
51604
|
true
|
51381
51605
|
);
|
51606
|
+
var anyBaseTypeIndexInfo = createIndexInfo(
|
51607
|
+
stringType,
|
51608
|
+
anyType,
|
51609
|
+
/*isReadonly*/
|
51610
|
+
false
|
51611
|
+
);
|
51382
51612
|
var iterationTypesCache = /* @__PURE__ */ new Map();
|
51383
51613
|
var noIterationTypes = {
|
51384
51614
|
get yieldType() {
|
@@ -52418,9 +52648,9 @@ function createTypeChecker(host) {
|
|
52418
52648
|
const containerKind = grandparent.parent.kind;
|
52419
52649
|
if (containerKind === 264 /* InterfaceDeclaration */ && heritageKind === 96 /* ExtendsKeyword */) {
|
52420
52650
|
error2(errorLocation, Diagnostics.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types, unescapeLeadingUnderscores(name));
|
52421
|
-
} else if (
|
52651
|
+
} else if (isClassLike(grandparent.parent) && heritageKind === 96 /* ExtendsKeyword */) {
|
52422
52652
|
error2(errorLocation, Diagnostics.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values, unescapeLeadingUnderscores(name));
|
52423
|
-
} else if (
|
52653
|
+
} else if (isClassLike(grandparent.parent) && heritageKind === 119 /* ImplementsKeyword */) {
|
52424
52654
|
error2(errorLocation, Diagnostics.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types, unescapeLeadingUnderscores(name));
|
52425
52655
|
}
|
52426
52656
|
} else {
|
@@ -53596,7 +53826,7 @@ function createTypeChecker(host) {
|
|
53596
53826
|
moduleReference
|
53597
53827
|
);
|
53598
53828
|
}
|
53599
|
-
if (errorNode && (
|
53829
|
+
if (errorNode && (moduleKind === 100 /* Node16 */ || moduleKind === 101 /* Node18 */)) {
|
53600
53830
|
const isSyncImport = currentSourceFile.impliedNodeFormat === 1 /* CommonJS */ && !findAncestor(location, isImportCall) || !!findAncestor(location, isImportEqualsDeclaration);
|
53601
53831
|
const overrideHost = findAncestor(location, (l) => isImportTypeNode(l) || isExportDeclaration(l) || isImportDeclaration(l) || isJSDocImportTag(l));
|
53602
53832
|
if (isSyncImport && sourceFile.impliedNodeFormat === 99 /* ESNext */ && !hasResolutionModeOverride(overrideHost)) {
|
@@ -54837,12 +55067,7 @@ function createTypeChecker(host) {
|
|
54837
55067
|
enterNewScope(context, node) {
|
54838
55068
|
if (isFunctionLike(node) || isJSDocSignature(node)) {
|
54839
55069
|
const signature = getSignatureFromDeclaration(node);
|
54840
|
-
|
54841
|
-
signature,
|
54842
|
-
/*skipUnionExpanding*/
|
54843
|
-
true
|
54844
|
-
)[0];
|
54845
|
-
return enterNewScope(context, node, expandedParams, signature.typeParameters);
|
55070
|
+
return enterNewScope(context, node, signature.parameters, signature.typeParameters);
|
54846
55071
|
} else {
|
54847
55072
|
const typeParameters = isConditionalTypeNode(node) ? getInferTypeParameters(node) : [getDeclaredTypeOfTypeParameter(getSymbolOfDeclaration(node.typeParameter))];
|
54848
55073
|
return enterNewScope(
|
@@ -54922,7 +55147,7 @@ function createTypeChecker(host) {
|
|
54922
55147
|
return true;
|
54923
55148
|
}
|
54924
55149
|
if (requiresAddingUndefined && annotationType) {
|
54925
|
-
annotationType =
|
55150
|
+
annotationType = addOptionality(annotationType, !isParameter(node));
|
54926
55151
|
}
|
54927
55152
|
return !!annotationType && typeNodeIsEquivalentToType(node, type, annotationType) && existingTypeNodeIsNotReferenceOrIsReferenceWithCompatibleTypeArgumentCount(existing, type);
|
54928
55153
|
}
|
@@ -55495,7 +55720,7 @@ function createTypeChecker(host) {
|
|
55495
55720
|
function shouldWriteTypeOfFunctionSymbol() {
|
55496
55721
|
var _a3;
|
55497
55722
|
const isStaticMethodSymbol = !!(symbol.flags & 8192 /* Method */) && // typeof static method
|
55498
|
-
some(symbol.declarations, (declaration) => isStatic(declaration));
|
55723
|
+
some(symbol.declarations, (declaration) => isStatic(declaration) && !isLateBindableIndexSignature(getNameOfDeclaration(declaration)));
|
55499
55724
|
const isNonLocalFunctionSymbol = !!(symbol.flags & 16 /* Function */) && (symbol.parent || // is exported function symbol
|
55500
55725
|
forEach(symbol.declarations, (declaration) => declaration.parent.kind === 307 /* SourceFile */ || declaration.parent.kind === 268 /* ModuleBlock */));
|
55501
55726
|
if (isStaticMethodSymbol || isNonLocalFunctionSymbol) {
|
@@ -55798,6 +56023,38 @@ function createTypeChecker(host) {
|
|
55798
56023
|
ids.unshift(state);
|
55799
56024
|
return ids;
|
55800
56025
|
}
|
56026
|
+
function indexInfoToObjectComputedNamesOrSignatureDeclaration(indexInfo, context2, typeNode) {
|
56027
|
+
if (indexInfo.components) {
|
56028
|
+
const allComponentComputedNamesSerializable = every(indexInfo.components, (e) => {
|
56029
|
+
var _a2;
|
56030
|
+
return !!(e.name && isComputedPropertyName(e.name) && isEntityNameExpression(e.name.expression) && context2.enclosingDeclaration && ((_a2 = isEntityNameVisible(
|
56031
|
+
e.name.expression,
|
56032
|
+
context2.enclosingDeclaration,
|
56033
|
+
/*shouldComputeAliasToMakeVisible*/
|
56034
|
+
false
|
56035
|
+
)) == null ? void 0 : _a2.accessibility) === 0 /* Accessible */);
|
56036
|
+
});
|
56037
|
+
if (allComponentComputedNamesSerializable) {
|
56038
|
+
const newComponents = filter(indexInfo.components, (e) => {
|
56039
|
+
return !hasLateBindableName(e);
|
56040
|
+
});
|
56041
|
+
return map(newComponents, (e) => {
|
56042
|
+
trackComputedName(e.name.expression, context2.enclosingDeclaration, context2);
|
56043
|
+
return setTextRange2(
|
56044
|
+
context2,
|
56045
|
+
factory.createPropertySignature(
|
56046
|
+
indexInfo.isReadonly ? [factory.createModifier(148 /* ReadonlyKeyword */)] : void 0,
|
56047
|
+
e.name,
|
56048
|
+
(isPropertySignature(e) || isPropertyDeclaration(e) || isMethodSignature(e) || isMethodDeclaration(e) || isGetAccessor(e) || isSetAccessor(e)) && e.questionToken ? factory.createToken(58 /* QuestionToken */) : void 0,
|
56049
|
+
typeNode || typeToTypeNodeHelper(getTypeOfSymbol(e.symbol), context2)
|
56050
|
+
),
|
56051
|
+
e
|
56052
|
+
);
|
56053
|
+
});
|
56054
|
+
}
|
56055
|
+
}
|
56056
|
+
return [indexInfoToIndexSignatureDeclarationHelper(indexInfo, context2, typeNode)];
|
56057
|
+
}
|
55801
56058
|
function createTypeNodesFromResolvedType(resolvedType) {
|
55802
56059
|
if (checkTruncationLength(context)) {
|
55803
56060
|
if (context.flags & 1 /* NoTruncation */) {
|
@@ -55822,7 +56079,7 @@ function createTypeChecker(host) {
|
|
55822
56079
|
typeElements.push(signatureToSignatureDeclarationHelper(signature, 180 /* ConstructSignature */, context));
|
55823
56080
|
}
|
55824
56081
|
for (const info of resolvedType.indexInfos) {
|
55825
|
-
typeElements.push(
|
56082
|
+
typeElements.push(...indexInfoToObjectComputedNamesOrSignatureDeclaration(info, context, resolvedType.objectFlags & 1024 /* ReverseMapped */ ? createElidedInformationPlaceholder(context) : void 0));
|
55826
56083
|
}
|
55827
56084
|
const properties = resolvedType.properties;
|
55828
56085
|
if (!properties) {
|
@@ -56511,7 +56768,7 @@ function createTypeChecker(host) {
|
|
56511
56768
|
if (!context.tracker.canTrackSymbol) return;
|
56512
56769
|
const firstIdentifier = getFirstIdentifier(accessExpression);
|
56513
56770
|
const name = resolveName(
|
56514
|
-
|
56771
|
+
enclosingDeclaration,
|
56515
56772
|
firstIdentifier.escapedText,
|
56516
56773
|
111551 /* Value */ | 1048576 /* ExportValue */,
|
56517
56774
|
/*nameNotFoundMessage*/
|
@@ -56521,6 +56778,19 @@ function createTypeChecker(host) {
|
|
56521
56778
|
);
|
56522
56779
|
if (name) {
|
56523
56780
|
context.tracker.trackSymbol(name, enclosingDeclaration, 111551 /* Value */);
|
56781
|
+
} else {
|
56782
|
+
const fallback = resolveName(
|
56783
|
+
firstIdentifier,
|
56784
|
+
firstIdentifier.escapedText,
|
56785
|
+
111551 /* Value */ | 1048576 /* ExportValue */,
|
56786
|
+
/*nameNotFoundMessage*/
|
56787
|
+
void 0,
|
56788
|
+
/*isUse*/
|
56789
|
+
true
|
56790
|
+
);
|
56791
|
+
if (fallback) {
|
56792
|
+
context.tracker.trackSymbol(fallback, enclosingDeclaration, 111551 /* Value */);
|
56793
|
+
}
|
56524
56794
|
}
|
56525
56795
|
}
|
56526
56796
|
function lookupSymbolChain(symbol, context, meaning, yieldModuleSymbol) {
|
@@ -61180,12 +61450,7 @@ function createTypeChecker(host) {
|
|
61180
61450
|
addInheritedMembers(members, getPropertiesOfType(instantiatedBaseType));
|
61181
61451
|
callSignatures = concatenate(callSignatures, getSignaturesOfType(instantiatedBaseType, 0 /* Call */));
|
61182
61452
|
constructSignatures = concatenate(constructSignatures, getSignaturesOfType(instantiatedBaseType, 1 /* Construct */));
|
61183
|
-
const inheritedIndexInfos = instantiatedBaseType !== anyType ? getIndexInfosOfType(instantiatedBaseType) : [
|
61184
|
-
stringType,
|
61185
|
-
anyType,
|
61186
|
-
/*isReadonly*/
|
61187
|
-
false
|
61188
|
-
)];
|
61453
|
+
const inheritedIndexInfos = instantiatedBaseType !== anyType ? getIndexInfosOfType(instantiatedBaseType) : [anyBaseTypeIndexInfo];
|
61189
61454
|
indexInfos = concatenate(indexInfos, filter(inheritedIndexInfos, (info) => !findIndexInfo(indexInfos, info.keyType)));
|
61190
61455
|
}
|
61191
61456
|
}
|
@@ -61711,12 +61976,7 @@ function createTypeChecker(host) {
|
|
61711
61976
|
members = createSymbolTable(getNamedOrIndexSignatureMembers(members));
|
61712
61977
|
addInheritedMembers(members, getPropertiesOfType(baseConstructorType));
|
61713
61978
|
} else if (baseConstructorType === anyType) {
|
61714
|
-
baseConstructorIndexInfo =
|
61715
|
-
stringType,
|
61716
|
-
anyType,
|
61717
|
-
/*isReadonly*/
|
61718
|
-
false
|
61719
|
-
);
|
61979
|
+
baseConstructorIndexInfo = anyBaseTypeIndexInfo;
|
61720
61980
|
}
|
61721
61981
|
}
|
61722
61982
|
const indexSymbol = getIndexSymbolFromSymbolTable(members);
|
@@ -63345,8 +63605,8 @@ function createTypeChecker(host) {
|
|
63345
63605
|
function getIndexSymbolFromSymbolTable(symbolTable) {
|
63346
63606
|
return symbolTable.get("__index" /* Index */);
|
63347
63607
|
}
|
63348
|
-
function createIndexInfo(keyType, type, isReadonly, declaration) {
|
63349
|
-
return { keyType, type, isReadonly, declaration };
|
63608
|
+
function createIndexInfo(keyType, type, isReadonly, declaration, components) {
|
63609
|
+
return { keyType, type, isReadonly, declaration, components };
|
63350
63610
|
}
|
63351
63611
|
function getIndexInfosOfSymbol(symbol) {
|
63352
63612
|
const indexSymbol = getIndexSymbol(symbol);
|
@@ -63859,6 +64119,9 @@ function createTypeChecker(host) {
|
|
63859
64119
|
case "Number":
|
63860
64120
|
checkNoTypeArguments(node);
|
63861
64121
|
return numberType;
|
64122
|
+
case "BigInt":
|
64123
|
+
checkNoTypeArguments(node);
|
64124
|
+
return bigintType;
|
63862
64125
|
case "Boolean":
|
63863
64126
|
checkNoTypeArguments(node);
|
63864
64127
|
return booleanType;
|
@@ -66412,7 +66675,7 @@ function createTypeChecker(host) {
|
|
66412
66675
|
return result;
|
66413
66676
|
}
|
66414
66677
|
function getIndexInfoWithReadonly(info, readonly) {
|
66415
|
-
return info.isReadonly !== readonly ? createIndexInfo(info.keyType, info.type, readonly, info.declaration) : info;
|
66678
|
+
return info.isReadonly !== readonly ? createIndexInfo(info.keyType, info.type, readonly, info.declaration, info.components) : info;
|
66416
66679
|
}
|
66417
66680
|
function createLiteralType(flags, value, symbol, regularType) {
|
66418
66681
|
const type = createTypeWithSymbol(flags, symbol);
|
@@ -67171,7 +67434,7 @@ function createTypeChecker(host) {
|
|
67171
67434
|
return type.restrictiveInstantiation;
|
67172
67435
|
}
|
67173
67436
|
function instantiateIndexInfo(info, mapper) {
|
67174
|
-
return createIndexInfo(info.keyType, instantiateType(info.type, mapper), info.isReadonly, info.declaration);
|
67437
|
+
return createIndexInfo(info.keyType, instantiateType(info.type, mapper), info.isReadonly, info.declaration, info.components);
|
67175
67438
|
}
|
67176
67439
|
function isContextSensitive(node) {
|
67177
67440
|
Debug.assert(node.kind !== 174 /* MethodDeclaration */ || isObjectLiteralMethod(node));
|
@@ -71302,7 +71565,7 @@ function createTypeChecker(host) {
|
|
71302
71565
|
}
|
71303
71566
|
}
|
71304
71567
|
}
|
71305
|
-
const result = createAnonymousType(type.symbol, members, emptyArray, emptyArray, sameMap(getIndexInfosOfType(type), (info) => createIndexInfo(info.keyType, getWidenedType(info.type), info.isReadonly)));
|
71568
|
+
const result = createAnonymousType(type.symbol, members, emptyArray, emptyArray, sameMap(getIndexInfosOfType(type), (info) => createIndexInfo(info.keyType, getWidenedType(info.type), info.isReadonly, info.declaration, info.components)));
|
71306
71569
|
result.objectFlags |= getObjectFlags(type) & (4096 /* JSLiteral */ | 262144 /* NonInferrableType */);
|
71307
71570
|
return result;
|
71308
71571
|
}
|
@@ -72744,6 +73007,7 @@ function createTypeChecker(host) {
|
|
72744
73007
|
return target.kind === 108 /* SuperKeyword */;
|
72745
73008
|
case 235 /* NonNullExpression */:
|
72746
73009
|
case 217 /* ParenthesizedExpression */:
|
73010
|
+
case 238 /* SatisfiesExpression */:
|
72747
73011
|
return isMatchingReference(source.expression, target);
|
72748
73012
|
case 211 /* PropertyAccessExpression */:
|
72749
73013
|
case 212 /* ElementAccessExpression */:
|
@@ -74594,6 +74858,7 @@ function createTypeChecker(host) {
|
|
74594
74858
|
if (checkDerived) {
|
74595
74859
|
return filterType(type, (t) => !isTypeDerivedFrom(t, candidate));
|
74596
74860
|
}
|
74861
|
+
type = type.flags & 2 /* Unknown */ ? unknownUnionType : type;
|
74597
74862
|
const trueType2 = getNarrowedType(
|
74598
74863
|
type,
|
74599
74864
|
candidate,
|
@@ -74602,7 +74867,7 @@ function createTypeChecker(host) {
|
|
74602
74867
|
/*checkDerived*/
|
74603
74868
|
false
|
74604
74869
|
);
|
74605
|
-
return filterType(type, (t) => !isTypeSubsetOf(t, trueType2));
|
74870
|
+
return recombineUnknownType(filterType(type, (t) => !isTypeSubsetOf(t, trueType2)));
|
74606
74871
|
}
|
74607
74872
|
if (type.flags & 3 /* AnyOrUnknown */) {
|
74608
74873
|
return candidate;
|
@@ -74700,6 +74965,7 @@ function createTypeChecker(host) {
|
|
74700
74965
|
return narrowTypeByCallExpression(type, expr, assumeTrue);
|
74701
74966
|
case 217 /* ParenthesizedExpression */:
|
74702
74967
|
case 235 /* NonNullExpression */:
|
74968
|
+
case 238 /* SatisfiesExpression */:
|
74703
74969
|
return narrowType(type, expr.expression, assumeTrue);
|
74704
74970
|
case 226 /* BinaryExpression */:
|
74705
74971
|
return narrowTypeByBinaryExpression(type, expr, assumeTrue);
|
@@ -75063,12 +75329,13 @@ function createTypeChecker(host) {
|
|
75063
75329
|
const jsxFactoryRefErr = diagnostics && compilerOptions.jsx === 2 /* React */ ? Diagnostics.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found : void 0;
|
75064
75330
|
const jsxFactoryNamespace = getJsxNamespace(node);
|
75065
75331
|
const jsxFactoryLocation = isJsxOpeningLikeElement(node) ? node.tagName : node;
|
75332
|
+
const shouldFactoryRefErr = compilerOptions.jsx !== 1 /* Preserve */ && compilerOptions.jsx !== 3 /* ReactNative */;
|
75066
75333
|
let jsxFactorySym;
|
75067
75334
|
if (!(isJsxOpeningFragment(node) && jsxFactoryNamespace === "null")) {
|
75068
75335
|
jsxFactorySym = resolveName(
|
75069
75336
|
jsxFactoryLocation,
|
75070
75337
|
jsxFactoryNamespace,
|
75071
|
-
|
75338
|
+
shouldFactoryRefErr ? 111551 /* Value */ : 111551 /* Value */ & ~384 /* Enum */,
|
75072
75339
|
jsxFactoryRefErr,
|
75073
75340
|
/*isUse*/
|
75074
75341
|
true
|
@@ -75082,12 +75349,13 @@ function createTypeChecker(host) {
|
|
75082
75349
|
}
|
75083
75350
|
if (isJsxOpeningFragment(node)) {
|
75084
75351
|
const file = getSourceFileOfNode(node);
|
75085
|
-
const
|
75086
|
-
if (
|
75352
|
+
const entity = getJsxFactoryEntity(file);
|
75353
|
+
if (entity) {
|
75354
|
+
const localJsxNamespace = getFirstIdentifier(entity).escapedText;
|
75087
75355
|
resolveName(
|
75088
75356
|
jsxFactoryLocation,
|
75089
75357
|
localJsxNamespace,
|
75090
|
-
|
75358
|
+
shouldFactoryRefErr ? 111551 /* Value */ : 111551 /* Value */ & ~384 /* Enum */,
|
75091
75359
|
jsxFactoryRefErr,
|
75092
75360
|
/*isUse*/
|
75093
75361
|
true
|
@@ -77321,16 +77589,33 @@ function createTypeChecker(host) {
|
|
77321
77589
|
const firstDecl = (_a = symbol.declarations) == null ? void 0 : _a[0];
|
77322
77590
|
return isKnownSymbol(symbol) || firstDecl && isNamedDeclaration(firstDecl) && isComputedPropertyName(firstDecl.name) && isTypeAssignableToKind(checkComputedPropertyName(firstDecl.name), 4096 /* ESSymbol */);
|
77323
77591
|
}
|
77592
|
+
function isSymbolWithComputedName(symbol) {
|
77593
|
+
var _a;
|
77594
|
+
const firstDecl = (_a = symbol.declarations) == null ? void 0 : _a[0];
|
77595
|
+
return firstDecl && isNamedDeclaration(firstDecl) && isComputedPropertyName(firstDecl.name);
|
77596
|
+
}
|
77324
77597
|
function getObjectLiteralIndexInfo(isReadonly, offset, properties, keyType) {
|
77598
|
+
var _a;
|
77325
77599
|
const propTypes = [];
|
77600
|
+
let components;
|
77326
77601
|
for (let i = offset; i < properties.length; i++) {
|
77327
77602
|
const prop = properties[i];
|
77328
77603
|
if (keyType === stringType && !isSymbolWithSymbolName(prop) || keyType === numberType && isSymbolWithNumericName(prop) || keyType === esSymbolType && isSymbolWithSymbolName(prop)) {
|
77329
77604
|
propTypes.push(getTypeOfSymbol(properties[i]));
|
77605
|
+
if (isSymbolWithComputedName(properties[i])) {
|
77606
|
+
components = append(components, (_a = properties[i].declarations) == null ? void 0 : _a[0]);
|
77607
|
+
}
|
77330
77608
|
}
|
77331
77609
|
}
|
77332
77610
|
const unionType = propTypes.length ? getUnionType(propTypes, 2 /* Subtype */) : undefinedType;
|
77333
|
-
return createIndexInfo(
|
77611
|
+
return createIndexInfo(
|
77612
|
+
keyType,
|
77613
|
+
unionType,
|
77614
|
+
isReadonly,
|
77615
|
+
/*declaration*/
|
77616
|
+
void 0,
|
77617
|
+
components
|
77618
|
+
);
|
77334
77619
|
}
|
77335
77620
|
function getImmediateAliasedSymbol(symbol) {
|
77336
77621
|
Debug.assert((symbol.flags & 2097152 /* Alias */) !== 0, "Should only get Alias here.");
|
@@ -77865,6 +78150,9 @@ function createTypeChecker(host) {
|
|
77865
78150
|
return getNameFromJsxElementAttributesContainer(JsxNames.ElementAttributesPropertyNameContainer, jsxNamespace);
|
77866
78151
|
}
|
77867
78152
|
function getJsxElementChildrenPropertyName(jsxNamespace) {
|
78153
|
+
if (compilerOptions.jsx === 4 /* ReactJSX */ || compilerOptions.jsx === 5 /* ReactJSXDev */) {
|
78154
|
+
return "children";
|
78155
|
+
}
|
77868
78156
|
return getNameFromJsxElementAttributesContainer(JsxNames.ElementChildrenAttributeNameContainer, jsxNamespace);
|
77869
78157
|
}
|
77870
78158
|
function getUninstantiatedJsxSignaturesOfType(elementType, caller) {
|
@@ -78648,6 +78936,13 @@ function createTypeChecker(host) {
|
|
78648
78936
|
return getIntersectionType(x);
|
78649
78937
|
}
|
78650
78938
|
function reportNonexistentProperty(propNode, containingType, isUncheckedJS) {
|
78939
|
+
const links = getNodeLinks(propNode);
|
78940
|
+
const cache = links.nonExistentPropCheckCache || (links.nonExistentPropCheckCache = /* @__PURE__ */ new Set());
|
78941
|
+
const key = `${getTypeId(containingType)}|${isUncheckedJS}`;
|
78942
|
+
if (cache.has(key)) {
|
78943
|
+
return;
|
78944
|
+
}
|
78945
|
+
cache.add(key);
|
78651
78946
|
let errorInfo;
|
78652
78947
|
let relatedInfo;
|
78653
78948
|
if (!isPrivateIdentifier(propNode) && containingType.flags & 1048576 /* Union */ && !(containingType.flags & 402784252 /* Primitive */)) {
|
@@ -79416,8 +79711,8 @@ function createTypeChecker(host) {
|
|
79416
79711
|
}
|
79417
79712
|
}
|
79418
79713
|
function getEffectiveCheckNode(argument) {
|
79419
|
-
|
79420
|
-
return
|
79714
|
+
const flags = isInJSFile(argument) ? 1 /* Parentheses */ | 32 /* Satisfies */ | -2147483648 /* ExcludeJSDocTypeAssertion */ : 1 /* Parentheses */ | 32 /* Satisfies */;
|
79715
|
+
return skipOuterExpressions(argument, flags);
|
79421
79716
|
}
|
79422
79717
|
function getSignatureApplicabilityError(node, args, signature, relation, checkMode, reportErrors2, containingMessageChain, inferenceContext) {
|
79423
79718
|
const errorOutputContainer = { errors: void 0, skipLogging: true };
|
@@ -79842,11 +80137,16 @@ function createTypeChecker(host) {
|
|
79842
80137
|
if (!result) {
|
79843
80138
|
result = chooseOverload(candidates, assignableRelation, isSingleNonGenericCandidate, signatureHelpTrailingComma);
|
79844
80139
|
}
|
80140
|
+
const links = getNodeLinks(node);
|
80141
|
+
if (links.resolvedSignature !== resolvingSignature && !candidatesOutArray) {
|
80142
|
+
Debug.assert(links.resolvedSignature);
|
80143
|
+
return links.resolvedSignature;
|
80144
|
+
}
|
79845
80145
|
if (result) {
|
79846
80146
|
return result;
|
79847
80147
|
}
|
79848
80148
|
result = getCandidateForOverloadFailure(node, candidates, args, !!candidatesOutArray, checkMode);
|
79849
|
-
|
80149
|
+
links.resolvedSignature = result;
|
79850
80150
|
if (reportErrors2) {
|
79851
80151
|
if (!headMessage && isInstanceof) {
|
79852
80152
|
headMessage = Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method;
|
@@ -80606,12 +80906,14 @@ function createTypeChecker(host) {
|
|
80606
80906
|
const sourceFileLinks = getNodeLinks(getSourceFileOfNode(node));
|
80607
80907
|
if (sourceFileLinks.jsxFragmentType !== void 0) return sourceFileLinks.jsxFragmentType;
|
80608
80908
|
const jsxFragmentFactoryName = getJsxNamespace(node);
|
80609
|
-
|
80909
|
+
const shouldResolveFactoryReference = (compilerOptions.jsx === 2 /* React */ || compilerOptions.jsxFragmentFactory !== void 0) && jsxFragmentFactoryName !== "null";
|
80910
|
+
if (!shouldResolveFactoryReference) return sourceFileLinks.jsxFragmentType = anyType;
|
80911
|
+
const shouldModuleRefErr = compilerOptions.jsx !== 1 /* Preserve */ && compilerOptions.jsx !== 3 /* ReactNative */;
|
80610
80912
|
const jsxFactoryRefErr = diagnostics ? Diagnostics.Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found : void 0;
|
80611
80913
|
const jsxFactorySymbol = getJsxNamespaceContainerForImplicitImport(node) ?? resolveName(
|
80612
80914
|
node,
|
80613
80915
|
jsxFragmentFactoryName,
|
80614
|
-
|
80916
|
+
shouldModuleRefErr ? 111551 /* Value */ : 111551 /* Value */ & ~384 /* Enum */,
|
80615
80917
|
/*nameNotFoundMessage*/
|
80616
80918
|
jsxFactoryRefErr,
|
80617
80919
|
/*isUse*/
|
@@ -80730,12 +81032,9 @@ function createTypeChecker(host) {
|
|
80730
81032
|
resolutionStart = resolutionTargets.length;
|
80731
81033
|
}
|
80732
81034
|
links.resolvedSignature = resolvingSignature;
|
80733
|
-
|
81035
|
+
const result = resolveSignature(node, candidatesOutArray, checkMode || 0 /* Normal */);
|
80734
81036
|
resolutionStart = saveResolutionStart;
|
80735
81037
|
if (result !== resolvingSignature) {
|
80736
|
-
if (links.resolvedSignature !== resolvingSignature) {
|
80737
|
-
result = links.resolvedSignature;
|
80738
|
-
}
|
80739
81038
|
links.resolvedSignature = flowLoopStart === flowLoopCount ? result : cached;
|
80740
81039
|
}
|
80741
81040
|
return result;
|
@@ -81314,12 +81613,12 @@ function createTypeChecker(host) {
|
|
81314
81613
|
}
|
81315
81614
|
}
|
81316
81615
|
function checkImportMetaProperty(node) {
|
81317
|
-
if (
|
81616
|
+
if (100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */) {
|
81318
81617
|
if (getSourceFileOfNode(node).impliedNodeFormat !== 99 /* ESNext */) {
|
81319
81618
|
error2(node, Diagnostics.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output);
|
81320
81619
|
}
|
81321
81620
|
} else if (moduleKind < 6 /* ES2020 */ && moduleKind !== 4 /* System */) {
|
81322
|
-
error2(node, Diagnostics.
|
81621
|
+
error2(node, Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_or_nodenext);
|
81323
81622
|
}
|
81324
81623
|
const file = getSourceFileOfNode(node);
|
81325
81624
|
Debug.assert(!!(file.flags & 8388608 /* PossiblyContainsImportMeta */), "Containing file is missing import meta node flag.");
|
@@ -82148,7 +82447,7 @@ function createTypeChecker(host) {
|
|
82148
82447
|
}
|
82149
82448
|
return !someType(operandConstraint, (t) => getTypeFacts(t, notEqualFacts) === notEqualFacts);
|
82150
82449
|
}
|
82151
|
-
const type = checkExpressionCached(node.expression);
|
82450
|
+
const type = getBaseConstraintOrType(checkExpressionCached(node.expression));
|
82152
82451
|
if (!isLiteralType(type)) {
|
82153
82452
|
return false;
|
82154
82453
|
}
|
@@ -82411,19 +82710,7 @@ function createTypeChecker(host) {
|
|
82411
82710
|
const exprType = checkExpression(node.body);
|
82412
82711
|
const returnOrPromisedType = returnType && unwrapReturnType(returnType, functionFlags);
|
82413
82712
|
if (returnOrPromisedType) {
|
82414
|
-
|
82415
|
-
if ((functionFlags & 3 /* AsyncGenerator */) === 2 /* Async */) {
|
82416
|
-
const awaitedType = checkAwaitedType(
|
82417
|
-
exprType,
|
82418
|
-
/*withAlias*/
|
82419
|
-
false,
|
82420
|
-
effectiveCheckNode,
|
82421
|
-
Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member
|
82422
|
-
);
|
82423
|
-
checkTypeAssignableToAndOptionallyElaborate(awaitedType, returnOrPromisedType, effectiveCheckNode, effectiveCheckNode);
|
82424
|
-
} else {
|
82425
|
-
checkTypeAssignableToAndOptionallyElaborate(exprType, returnOrPromisedType, effectiveCheckNode, effectiveCheckNode);
|
82426
|
-
}
|
82713
|
+
checkReturnExpression(node, returnOrPromisedType, node.body, node.body, exprType);
|
82427
82714
|
}
|
82428
82715
|
}
|
82429
82716
|
}
|
@@ -82477,7 +82764,7 @@ function createTypeChecker(host) {
|
|
82477
82764
|
}
|
82478
82765
|
if (isReadonlySymbol(symbol)) {
|
82479
82766
|
if (symbol.flags & 4 /* Property */ && isAccessExpression(expr) && expr.expression.kind === 110 /* ThisKeyword */) {
|
82480
|
-
const ctor =
|
82767
|
+
const ctor = getControlFlowContainer(expr);
|
82481
82768
|
if (!(ctor && (ctor.kind === 176 /* Constructor */ || isJSConstructor(ctor)))) {
|
82482
82769
|
return true;
|
82483
82770
|
}
|
@@ -82506,7 +82793,7 @@ function createTypeChecker(host) {
|
|
82506
82793
|
return false;
|
82507
82794
|
}
|
82508
82795
|
function checkReferenceExpression(expr, invalidReferenceMessage, invalidOptionalChainMessage) {
|
82509
|
-
const node = skipOuterExpressions(expr,
|
82796
|
+
const node = skipOuterExpressions(expr, 38 /* Assertions */ | 1 /* Parentheses */);
|
82510
82797
|
if (node.kind !== 80 /* Identifier */ && !isAccessExpression(node)) {
|
82511
82798
|
error2(expr, invalidReferenceMessage);
|
82512
82799
|
return false;
|
@@ -82573,6 +82860,7 @@ function createTypeChecker(host) {
|
|
82573
82860
|
}
|
82574
82861
|
switch (moduleKind) {
|
82575
82862
|
case 100 /* Node16 */:
|
82863
|
+
case 101 /* Node18 */:
|
82576
82864
|
case 199 /* NodeNext */:
|
82577
82865
|
if (sourceFile.impliedNodeFormat === 1 /* CommonJS */) {
|
82578
82866
|
span ?? (span = getSpanOfTokenAtPosition(sourceFile, node.pos));
|
@@ -82593,7 +82881,7 @@ function createTypeChecker(host) {
|
|
82593
82881
|
// fallthrough
|
82594
82882
|
default:
|
82595
82883
|
span ?? (span = getSpanOfTokenAtPosition(sourceFile, node.pos));
|
82596
|
-
const message = isAwaitExpression(node) ? Diagnostics.
|
82884
|
+
const message = isAwaitExpression(node) ? Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher : Diagnostics.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;
|
82597
82885
|
diagnostics.add(createFileDiagnostic(sourceFile, span.start, span.length, message));
|
82598
82886
|
hasError = true;
|
82599
82887
|
break;
|
@@ -83157,7 +83445,7 @@ function createTypeChecker(host) {
|
|
83157
83445
|
if (isBinaryExpression(right) && (right.operatorToken.kind === 57 /* BarBarToken */ || right.operatorToken.kind === 56 /* AmpersandAmpersandToken */)) {
|
83158
83446
|
grammarErrorOnNode(right, Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses, tokenToString(right.operatorToken.kind), tokenToString(operatorToken.kind));
|
83159
83447
|
}
|
83160
|
-
const leftTarget = skipOuterExpressions(left,
|
83448
|
+
const leftTarget = skipOuterExpressions(left, 63 /* All */);
|
83161
83449
|
const nullishSemantics = getSyntacticNullishnessSemantics(leftTarget);
|
83162
83450
|
if (nullishSemantics !== 3 /* Sometimes */) {
|
83163
83451
|
if (node.parent.kind === 226 /* BinaryExpression */) {
|
@@ -83177,7 +83465,9 @@ function createTypeChecker(host) {
|
|
83177
83465
|
switch (node.kind) {
|
83178
83466
|
case 223 /* AwaitExpression */:
|
83179
83467
|
case 213 /* CallExpression */:
|
83468
|
+
case 215 /* TaggedTemplateExpression */:
|
83180
83469
|
case 212 /* ElementAccessExpression */:
|
83470
|
+
case 236 /* MetaProperty */:
|
83181
83471
|
case 214 /* NewExpression */:
|
83182
83472
|
case 211 /* PropertyAccessExpression */:
|
83183
83473
|
case 229 /* YieldExpression */:
|
@@ -83193,6 +83483,8 @@ function createTypeChecker(host) {
|
|
83193
83483
|
case 56 /* AmpersandAmpersandToken */:
|
83194
83484
|
case 77 /* AmpersandAmpersandEqualsToken */:
|
83195
83485
|
return 3 /* Sometimes */;
|
83486
|
+
case 28 /* CommaToken */:
|
83487
|
+
return getSyntacticNullishnessSemantics(node.right);
|
83196
83488
|
}
|
83197
83489
|
return 2 /* Never */;
|
83198
83490
|
case 227 /* ConditionalExpression */:
|
@@ -84372,6 +84664,9 @@ function createTypeChecker(host) {
|
|
84372
84664
|
checkVariableLikeDeclaration(node);
|
84373
84665
|
const func = getContainingFunction(node);
|
84374
84666
|
if (hasSyntacticModifier(node, 31 /* ParameterPropertyModifier */)) {
|
84667
|
+
if (compilerOptions.erasableSyntaxOnly) {
|
84668
|
+
error2(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
|
84669
|
+
}
|
84375
84670
|
if (!(func.kind === 176 /* Constructor */ && nodeIsPresent(func.body))) {
|
84376
84671
|
error2(node, Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation);
|
84377
84672
|
}
|
@@ -87645,7 +87940,6 @@ function createTypeChecker(host) {
|
|
87645
87940
|
}
|
87646
87941
|
const signature = getSignatureFromDeclaration(container);
|
87647
87942
|
const returnType = getReturnTypeOfSignature(signature);
|
87648
|
-
const functionFlags = getFunctionFlags(container);
|
87649
87943
|
if (strictNullChecks || node.expression || returnType.flags & 131072 /* Never */) {
|
87650
87944
|
const exprType = node.expression ? checkExpressionCached(node.expression) : undefinedType;
|
87651
87945
|
if (container.kind === 178 /* SetAccessor */) {
|
@@ -87653,26 +87947,57 @@ function createTypeChecker(host) {
|
|
87653
87947
|
error2(node, Diagnostics.Setters_cannot_return_a_value);
|
87654
87948
|
}
|
87655
87949
|
} else if (container.kind === 176 /* Constructor */) {
|
87656
|
-
|
87950
|
+
const exprType2 = node.expression ? checkExpressionCached(node.expression) : undefinedType;
|
87951
|
+
if (node.expression && !checkTypeAssignableToAndOptionallyElaborate(exprType2, returnType, node, node.expression)) {
|
87657
87952
|
error2(node, Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);
|
87658
87953
|
}
|
87659
87954
|
} else if (getReturnTypeFromAnnotation(container)) {
|
87660
|
-
const unwrappedReturnType = unwrapReturnType(returnType,
|
87661
|
-
|
87662
|
-
exprType,
|
87663
|
-
/*withAlias*/
|
87664
|
-
false,
|
87665
|
-
node,
|
87666
|
-
Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member
|
87667
|
-
) : exprType;
|
87668
|
-
if (unwrappedReturnType) {
|
87669
|
-
checkTypeAssignableToAndOptionallyElaborate(unwrappedExprType, unwrappedReturnType, node, node.expression);
|
87670
|
-
}
|
87955
|
+
const unwrappedReturnType = unwrapReturnType(returnType, getFunctionFlags(container)) ?? returnType;
|
87956
|
+
checkReturnExpression(container, unwrappedReturnType, node, node.expression, exprType);
|
87671
87957
|
}
|
87672
87958
|
} else if (container.kind !== 176 /* Constructor */ && compilerOptions.noImplicitReturns && !isUnwrappedReturnTypeUndefinedVoidOrAny(container, returnType)) {
|
87673
87959
|
error2(node, Diagnostics.Not_all_code_paths_return_a_value);
|
87674
87960
|
}
|
87675
87961
|
}
|
87962
|
+
function checkReturnExpression(container, unwrappedReturnType, node, expr, exprType, inConditionalExpression = false) {
|
87963
|
+
const excludeJSDocTypeAssertions = isInJSFile(node);
|
87964
|
+
const functionFlags = getFunctionFlags(container);
|
87965
|
+
if (expr) {
|
87966
|
+
const unwrappedExpr = skipParentheses(expr, excludeJSDocTypeAssertions);
|
87967
|
+
if (isConditionalExpression(unwrappedExpr)) {
|
87968
|
+
checkReturnExpression(
|
87969
|
+
container,
|
87970
|
+
unwrappedReturnType,
|
87971
|
+
node,
|
87972
|
+
unwrappedExpr.whenTrue,
|
87973
|
+
checkExpression(unwrappedExpr.whenTrue),
|
87974
|
+
/*inConditionalExpression*/
|
87975
|
+
true
|
87976
|
+
);
|
87977
|
+
checkReturnExpression(
|
87978
|
+
container,
|
87979
|
+
unwrappedReturnType,
|
87980
|
+
node,
|
87981
|
+
unwrappedExpr.whenFalse,
|
87982
|
+
checkExpression(unwrappedExpr.whenFalse),
|
87983
|
+
/*inConditionalExpression*/
|
87984
|
+
true
|
87985
|
+
);
|
87986
|
+
return;
|
87987
|
+
}
|
87988
|
+
}
|
87989
|
+
const inReturnStatement = node.kind === 253 /* ReturnStatement */;
|
87990
|
+
const unwrappedExprType = functionFlags & 2 /* Async */ ? checkAwaitedType(
|
87991
|
+
exprType,
|
87992
|
+
/*withAlias*/
|
87993
|
+
false,
|
87994
|
+
node,
|
87995
|
+
Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member
|
87996
|
+
) : exprType;
|
87997
|
+
const effectiveExpr = expr && getEffectiveCheckNode(expr);
|
87998
|
+
const errorNode = inReturnStatement && !inConditionalExpression ? node : effectiveExpr;
|
87999
|
+
checkTypeAssignableToAndOptionallyElaborate(unwrappedExprType, unwrappedReturnType, errorNode, effectiveExpr);
|
88000
|
+
}
|
87676
88001
|
function checkWithStatement(node) {
|
87677
88002
|
if (!checkGrammarStatementInAmbientContext(node)) {
|
87678
88003
|
if (node.flags & 65536 /* AwaitContext */) {
|
@@ -87804,7 +88129,7 @@ function createTypeChecker(host) {
|
|
87804
88129
|
const typeDeclaration = symbol.valueDeclaration;
|
87805
88130
|
if (typeDeclaration && isClassLike(typeDeclaration)) {
|
87806
88131
|
for (const member of typeDeclaration.members) {
|
87807
|
-
if (!isStatic(member) && !hasBindableName(member)) {
|
88132
|
+
if ((!isStaticIndex && !isStatic(member) || isStaticIndex && isStatic(member)) && !hasBindableName(member)) {
|
87808
88133
|
const symbol2 = getSymbolOfDeclaration(member);
|
87809
88134
|
checkIndexConstraintForProperty(type, symbol2, getTypeOfExpression(member.name.expression), getNonMissingTypeOfSymbol(symbol2));
|
87810
88135
|
}
|
@@ -88255,6 +88580,13 @@ function createTypeChecker(host) {
|
|
88255
88580
|
function checkMemberForOverrideModifier(node, staticType, baseStaticType, baseWithThis, type, typeWithThis, memberHasOverrideModifier, memberHasAbstractModifier, memberIsStatic, memberIsParameterProperty, member, errorNode) {
|
88256
88581
|
const isJs = isInJSFile(node);
|
88257
88582
|
const nodeInAmbientContext = !!(node.flags & 33554432 /* Ambient */);
|
88583
|
+
if (memberHasOverrideModifier && (member == null ? void 0 : member.valueDeclaration) && isClassElement(member.valueDeclaration) && member.valueDeclaration.name && isNonBindableDynamicName(member.valueDeclaration.name)) {
|
88584
|
+
error2(
|
88585
|
+
errorNode,
|
88586
|
+
isJs ? Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic : Diagnostics.This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic
|
88587
|
+
);
|
88588
|
+
return 2 /* HasInvalidOverride */;
|
88589
|
+
}
|
88258
88590
|
if (baseWithThis && (memberHasOverrideModifier || compilerOptions.noImplicitOverride)) {
|
88259
88591
|
const thisType = memberIsStatic ? staticType : typeWithThis;
|
88260
88592
|
const baseType = memberIsStatic ? baseStaticType : baseWithThis;
|
@@ -88847,6 +89179,9 @@ function createTypeChecker(host) {
|
|
88847
89179
|
checkCollisionsForDeclarationName(node, node.name);
|
88848
89180
|
checkExportsOnMergedDeclarations(node);
|
88849
89181
|
node.members.forEach(checkEnumMember);
|
89182
|
+
if (compilerOptions.erasableSyntaxOnly && !(node.flags & 33554432 /* Ambient */)) {
|
89183
|
+
error2(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
|
89184
|
+
}
|
88850
89185
|
computeEnumMemberValues(node);
|
88851
89186
|
const enumSymbol = getSymbolOfDeclaration(node);
|
88852
89187
|
const firstDeclaration = getDeclarationOfKind(enumSymbol, node.kind);
|
@@ -88948,6 +89283,9 @@ function createTypeChecker(host) {
|
|
88948
89283
|
checkExportsOnMergedDeclarations(node);
|
88949
89284
|
const symbol = getSymbolOfDeclaration(node);
|
88950
89285
|
if (symbol.flags & 512 /* ValueModule */ && !inAmbientContext && isInstantiatedModule(node, shouldPreserveConstEnums(compilerOptions))) {
|
89286
|
+
if (compilerOptions.erasableSyntaxOnly) {
|
89287
|
+
error2(node.name, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
|
89288
|
+
}
|
88951
89289
|
if (getIsolatedModules(compilerOptions) && !getSourceFileOfNode(node).externalModuleIndicator) {
|
88952
89290
|
error2(node.name, Diagnostics.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement, isolatedModulesLikeFlagName);
|
88953
89291
|
}
|
@@ -89261,10 +89599,20 @@ function createTypeChecker(host) {
|
|
89261
89599
|
if (validForTypeAttributes && override) {
|
89262
89600
|
return;
|
89263
89601
|
}
|
89264
|
-
|
89265
|
-
|
89266
|
-
|
89267
|
-
|
89602
|
+
if (!moduleSupportsImportAttributes(moduleKind)) {
|
89603
|
+
return grammarErrorOnNode(
|
89604
|
+
node,
|
89605
|
+
isImportAttributes2 ? Diagnostics.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_preserve : Diagnostics.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_preserve
|
89606
|
+
);
|
89607
|
+
}
|
89608
|
+
if (moduleKind === 199 /* NodeNext */ && !isImportAttributes2) {
|
89609
|
+
return grammarErrorOnFirstToken(node, Diagnostics.Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert);
|
89610
|
+
}
|
89611
|
+
if (declaration.moduleSpecifier && getEmitSyntaxForModuleSpecifierExpression(declaration.moduleSpecifier) === 1 /* CommonJS */) {
|
89612
|
+
return grammarErrorOnNode(
|
89613
|
+
node,
|
89614
|
+
isImportAttributes2 ? Diagnostics.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls : Diagnostics.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls
|
89615
|
+
);
|
89268
89616
|
}
|
89269
89617
|
const isTypeOnly = isJSDocImportTag(declaration) || (isImportDeclaration(declaration) ? (_a = declaration.importClause) == null ? void 0 : _a.isTypeOnly : declaration.isTypeOnly);
|
89270
89618
|
if (isTypeOnly) {
|
@@ -89305,7 +89653,7 @@ function createTypeChecker(host) {
|
|
89305
89653
|
}
|
89306
89654
|
}
|
89307
89655
|
}
|
89308
|
-
if (isOnlyImportableAsDefault(node.moduleSpecifier, resolvedModule) && !hasTypeJsonImportAttribute(node)) {
|
89656
|
+
if (!importClause.isTypeOnly && 101 /* Node18 */ <= moduleKind && moduleKind <= 199 /* NodeNext */ && isOnlyImportableAsDefault(node.moduleSpecifier, resolvedModule) && !hasTypeJsonImportAttribute(node)) {
|
89309
89657
|
error2(node.moduleSpecifier, Diagnostics.Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0, ModuleKind[moduleKind]);
|
89310
89658
|
}
|
89311
89659
|
} else if (noUncheckedSideEffectImports && !importClause) {
|
@@ -89325,6 +89673,9 @@ function createTypeChecker(host) {
|
|
89325
89673
|
return;
|
89326
89674
|
}
|
89327
89675
|
checkGrammarModifiers(node);
|
89676
|
+
if (compilerOptions.erasableSyntaxOnly && !(node.flags & 33554432 /* Ambient */)) {
|
89677
|
+
error2(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
|
89678
|
+
}
|
89328
89679
|
if (isInternalModuleImportEqualsDeclaration(node) || checkExternalImportOrExportDeclaration(node)) {
|
89329
89680
|
checkImportBinding(node);
|
89330
89681
|
markLinkedReferences(node, 6 /* ExportImportEquals */);
|
@@ -89445,6 +89796,9 @@ function createTypeChecker(host) {
|
|
89445
89796
|
if (checkGrammarModuleElementContext(node, illegalContextMessage)) {
|
89446
89797
|
return;
|
89447
89798
|
}
|
89799
|
+
if (compilerOptions.erasableSyntaxOnly && node.isExportEquals && !(node.flags & 33554432 /* Ambient */)) {
|
89800
|
+
error2(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
|
89801
|
+
}
|
89448
89802
|
const container = node.parent.kind === 307 /* SourceFile */ ? node.parent : node.parent.parent;
|
89449
89803
|
if (container.kind === 267 /* ModuleDeclaration */ && !isAmbientModule(container)) {
|
89450
89804
|
if (node.isExportEquals) {
|
@@ -90442,7 +90796,7 @@ function createTypeChecker(host) {
|
|
90442
90796
|
name,
|
90443
90797
|
meaning,
|
90444
90798
|
/*ignoreErrors*/
|
90445
|
-
|
90799
|
+
true,
|
90446
90800
|
/*dontResolveAlias*/
|
90447
90801
|
true
|
90448
90802
|
);
|
@@ -90452,7 +90806,9 @@ function createTypeChecker(host) {
|
|
90452
90806
|
return resolveEntityName(
|
90453
90807
|
name,
|
90454
90808
|
/*meaning*/
|
90455
|
-
1 /* FunctionScopedVariable
|
90809
|
+
1 /* FunctionScopedVariable */,
|
90810
|
+
/*ignoreErrors*/
|
90811
|
+
true
|
90456
90812
|
);
|
90457
90813
|
}
|
90458
90814
|
return void 0;
|
@@ -90637,7 +90993,12 @@ function createTypeChecker(host) {
|
|
90637
90993
|
}
|
90638
90994
|
function getShorthandAssignmentValueSymbol(location) {
|
90639
90995
|
if (location && location.kind === 304 /* ShorthandPropertyAssignment */) {
|
90640
|
-
return resolveEntityName(
|
90996
|
+
return resolveEntityName(
|
90997
|
+
location.name,
|
90998
|
+
111551 /* Value */ | 2097152 /* Alias */,
|
90999
|
+
/*ignoreErrors*/
|
91000
|
+
true
|
91001
|
+
);
|
90641
91002
|
}
|
90642
91003
|
return void 0;
|
90643
91004
|
}
|
@@ -90646,10 +91007,20 @@ function createTypeChecker(host) {
|
|
90646
91007
|
const name = node.propertyName || node.name;
|
90647
91008
|
return node.parent.parent.moduleSpecifier ? getExternalModuleMember(node.parent.parent, node) : name.kind === 11 /* StringLiteral */ ? void 0 : (
|
90648
91009
|
// Skip for invalid syntax like this: export { "x" }
|
90649
|
-
resolveEntityName(
|
91010
|
+
resolveEntityName(
|
91011
|
+
name,
|
91012
|
+
111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */,
|
91013
|
+
/*ignoreErrors*/
|
91014
|
+
true
|
91015
|
+
)
|
90650
91016
|
);
|
90651
91017
|
} else {
|
90652
|
-
return resolveEntityName(
|
91018
|
+
return resolveEntityName(
|
91019
|
+
node,
|
91020
|
+
111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */,
|
91021
|
+
/*ignoreErrors*/
|
91022
|
+
true
|
91023
|
+
);
|
90653
91024
|
}
|
90654
91025
|
}
|
90655
91026
|
function getTypeOfNode(node) {
|
@@ -91589,6 +91960,36 @@ function createTypeChecker(host) {
|
|
91589
91960
|
result || (result = []);
|
91590
91961
|
for (const info of infoList) {
|
91591
91962
|
if (info.declaration) continue;
|
91963
|
+
if (info === anyBaseTypeIndexInfo) continue;
|
91964
|
+
if (info.components) {
|
91965
|
+
const allComponentComputedNamesSerializable = every(info.components, (e) => {
|
91966
|
+
var _a;
|
91967
|
+
return !!(e.name && isComputedPropertyName(e.name) && isEntityNameExpression(e.name.expression) && enclosing && ((_a = isEntityNameVisible(
|
91968
|
+
e.name.expression,
|
91969
|
+
enclosing,
|
91970
|
+
/*shouldComputeAliasToMakeVisible*/
|
91971
|
+
false
|
91972
|
+
)) == null ? void 0 : _a.accessibility) === 0 /* Accessible */);
|
91973
|
+
});
|
91974
|
+
if (allComponentComputedNamesSerializable) {
|
91975
|
+
const newComponents = filter(info.components, (e) => {
|
91976
|
+
return !hasLateBindableName(e);
|
91977
|
+
});
|
91978
|
+
result.push(...map(newComponents, (e) => {
|
91979
|
+
trackComputedName(e.name.expression);
|
91980
|
+
const mods = infoList === staticInfos ? [factory.createModifier(126 /* StaticKeyword */)] : void 0;
|
91981
|
+
return factory.createPropertyDeclaration(
|
91982
|
+
append(mods, info.isReadonly ? factory.createModifier(148 /* ReadonlyKeyword */) : void 0),
|
91983
|
+
e.name,
|
91984
|
+
(isPropertySignature(e) || isPropertyDeclaration(e) || isMethodSignature(e) || isMethodDeclaration(e) || isGetAccessor(e) || isSetAccessor(e)) && e.questionToken ? factory.createToken(58 /* QuestionToken */) : void 0,
|
91985
|
+
nodeBuilder.typeToTypeNode(getTypeOfSymbol(e.symbol), enclosing, flags, internalFlags, tracker),
|
91986
|
+
/*initializer*/
|
91987
|
+
void 0
|
91988
|
+
);
|
91989
|
+
}));
|
91990
|
+
continue;
|
91991
|
+
}
|
91992
|
+
}
|
91592
91993
|
const node = nodeBuilder.indexInfoToIndexSignatureDeclaration(info, enclosing, flags, internalFlags, tracker);
|
91593
91994
|
if (node && infoList === staticInfos) {
|
91594
91995
|
(node.modifiers || (node.modifiers = factory.createNodeArray())).unshift(factory.createModifier(126 /* StaticKeyword */));
|
@@ -91599,6 +92000,22 @@ function createTypeChecker(host) {
|
|
91599
92000
|
}
|
91600
92001
|
}
|
91601
92002
|
return result;
|
92003
|
+
function trackComputedName(accessExpression) {
|
92004
|
+
if (!tracker.trackSymbol) return;
|
92005
|
+
const firstIdentifier = getFirstIdentifier(accessExpression);
|
92006
|
+
const name = resolveName(
|
92007
|
+
firstIdentifier,
|
92008
|
+
firstIdentifier.escapedText,
|
92009
|
+
111551 /* Value */ | 1048576 /* ExportValue */,
|
92010
|
+
/*nameNotFoundMessage*/
|
92011
|
+
void 0,
|
92012
|
+
/*isUse*/
|
92013
|
+
true
|
92014
|
+
);
|
92015
|
+
if (name) {
|
92016
|
+
tracker.trackSymbol(name, enclosing, 111551 /* Value */);
|
92017
|
+
}
|
92018
|
+
}
|
91602
92019
|
}
|
91603
92020
|
};
|
91604
92021
|
function isImportRequiredByAugmentation(node) {
|
@@ -92680,6 +93097,7 @@ function createTypeChecker(host) {
|
|
92680
93097
|
}
|
92681
93098
|
switch (moduleKind) {
|
92682
93099
|
case 100 /* Node16 */:
|
93100
|
+
case 101 /* Node18 */:
|
92683
93101
|
case 199 /* NodeNext */:
|
92684
93102
|
if (sourceFile.impliedNodeFormat === 1 /* CommonJS */) {
|
92685
93103
|
diagnostics.add(
|
@@ -92698,7 +93116,7 @@ function createTypeChecker(host) {
|
|
92698
93116
|
// fallthrough
|
92699
93117
|
default:
|
92700
93118
|
diagnostics.add(
|
92701
|
-
createDiagnosticForNode(forInOrOfStatement.awaitModifier, Diagnostics.
|
93119
|
+
createDiagnosticForNode(forInOrOfStatement.awaitModifier, Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher)
|
92702
93120
|
);
|
92703
93121
|
break;
|
92704
93122
|
}
|
@@ -92842,7 +93260,7 @@ function createTypeChecker(host) {
|
|
92842
93260
|
}
|
92843
93261
|
}
|
92844
93262
|
function checkGrammarForInvalidDynamicName(node, message) {
|
92845
|
-
if (isNonBindableDynamicName(node)) {
|
93263
|
+
if (isNonBindableDynamicName(node) && !isEntityNameExpression(isElementAccessExpression(node) ? skipParentheses(node.argumentExpression) : node.expression)) {
|
92846
93264
|
return grammarErrorOnNode(node, message);
|
92847
93265
|
}
|
92848
93266
|
}
|
@@ -93301,17 +93719,17 @@ function createTypeChecker(host) {
|
|
93301
93719
|
return grammarErrorOnNode(node, Diagnostics.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);
|
93302
93720
|
}
|
93303
93721
|
if (moduleKind === 5 /* ES2015 */) {
|
93304
|
-
return grammarErrorOnNode(node, Diagnostics.
|
93722
|
+
return grammarErrorOnNode(node, Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_or_nodenext);
|
93305
93723
|
}
|
93306
93724
|
if (node.typeArguments) {
|
93307
93725
|
return grammarErrorOnNode(node, Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);
|
93308
93726
|
}
|
93309
93727
|
const nodeArguments = node.arguments;
|
93310
|
-
if (
|
93728
|
+
if (!(100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */) && moduleKind !== 99 /* ESNext */ && moduleKind !== 200 /* Preserve */) {
|
93311
93729
|
checkGrammarForDisallowedTrailingComma(nodeArguments);
|
93312
93730
|
if (nodeArguments.length > 1) {
|
93313
93731
|
const importAttributesArgument = nodeArguments[1];
|
93314
|
-
return grammarErrorOnNode(importAttributesArgument, Diagnostics.
|
93732
|
+
return grammarErrorOnNode(importAttributesArgument, Diagnostics.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_nodenext_or_preserve);
|
93315
93733
|
}
|
93316
93734
|
}
|
93317
93735
|
if (nodeArguments.length === 0 || nodeArguments.length > 2) {
|
@@ -97828,7 +98246,7 @@ function transformTypeScript(context) {
|
|
97828
98246
|
return updated;
|
97829
98247
|
}
|
97830
98248
|
function visitParenthesizedExpression(node) {
|
97831
|
-
const innerExpression = skipOuterExpressions(node.expression, ~(
|
98249
|
+
const innerExpression = skipOuterExpressions(node.expression, ~(38 /* Assertions */ | 16 /* ExpressionsWithTypeArguments */));
|
97832
98250
|
if (isAssertionExpression(innerExpression) || isSatisfiesExpression(innerExpression)) {
|
97833
98251
|
const expression = visitNode(node.expression, visitor, isExpression);
|
97834
98252
|
Debug.assert(expression);
|
@@ -116250,7 +116668,7 @@ function transformECMAScriptModule(context) {
|
|
116250
116668
|
if (node === (importsAndRequiresToRewriteOrShim == null ? void 0 : importsAndRequiresToRewriteOrShim[0])) {
|
116251
116669
|
return visitImportOrRequireCall(importsAndRequiresToRewriteOrShim.shift());
|
116252
116670
|
}
|
116253
|
-
|
116671
|
+
// fallthrough
|
116254
116672
|
default:
|
116255
116673
|
if ((importsAndRequiresToRewriteOrShim == null ? void 0 : importsAndRequiresToRewriteOrShim.length) && rangeContainsRange(node, importsAndRequiresToRewriteOrShim[0])) {
|
116256
116674
|
return visitEachChild(node, visitor, context);
|
@@ -116987,11 +117405,7 @@ function createGetIsolatedDeclarationErrors(resolver) {
|
|
116987
117405
|
if (isSetAccessor(node.parent)) {
|
116988
117406
|
return createAccessorTypeError(node.parent);
|
116989
117407
|
}
|
116990
|
-
const addUndefined = resolver.requiresAddingImplicitUndefined(
|
116991
|
-
node,
|
116992
|
-
/*enclosingDeclaration*/
|
116993
|
-
void 0
|
116994
|
-
);
|
117408
|
+
const addUndefined = resolver.requiresAddingImplicitUndefined(node, node.parent);
|
116995
117409
|
if (!addUndefined && node.initializer) {
|
116996
117410
|
return createExpressionError(node.initializer);
|
116997
117411
|
}
|
@@ -118675,6 +119089,7 @@ function getModuleTransformer(moduleKind) {
|
|
118675
119089
|
case 6 /* ES2020 */:
|
118676
119090
|
case 5 /* ES2015 */:
|
118677
119091
|
case 100 /* Node16 */:
|
119092
|
+
case 101 /* Node18 */:
|
118678
119093
|
case 199 /* NodeNext */:
|
118679
119094
|
case 1 /* CommonJS */:
|
118680
119095
|
return transformImpliedNodeFormatDependentModule;
|
@@ -125234,45 +125649,6 @@ function loadWithModeAwareCache(entries, containingFile, redirectedReference, op
|
|
125234
125649
|
}
|
125235
125650
|
return resolutions;
|
125236
125651
|
}
|
125237
|
-
function forEachResolvedProjectReference(resolvedProjectReferences, cb) {
|
125238
|
-
return forEachProjectReference(
|
125239
|
-
/*projectReferences*/
|
125240
|
-
void 0,
|
125241
|
-
resolvedProjectReferences,
|
125242
|
-
(resolvedRef, parent2) => resolvedRef && cb(resolvedRef, parent2)
|
125243
|
-
);
|
125244
|
-
}
|
125245
|
-
function forEachProjectReference(projectReferences, resolvedProjectReferences, cbResolvedRef, cbRef) {
|
125246
|
-
let seenResolvedRefs;
|
125247
|
-
return worker(
|
125248
|
-
projectReferences,
|
125249
|
-
resolvedProjectReferences,
|
125250
|
-
/*parent*/
|
125251
|
-
void 0
|
125252
|
-
);
|
125253
|
-
function worker(projectReferences2, resolvedProjectReferences2, parent2) {
|
125254
|
-
if (cbRef) {
|
125255
|
-
const result = cbRef(projectReferences2, parent2);
|
125256
|
-
if (result) return result;
|
125257
|
-
}
|
125258
|
-
let skipChildren;
|
125259
|
-
return forEach(
|
125260
|
-
resolvedProjectReferences2,
|
125261
|
-
(resolvedRef, index) => {
|
125262
|
-
if (resolvedRef && (seenResolvedRefs == null ? void 0 : seenResolvedRefs.has(resolvedRef.sourceFile.path))) {
|
125263
|
-
(skipChildren ?? (skipChildren = /* @__PURE__ */ new Set())).add(resolvedRef);
|
125264
|
-
return void 0;
|
125265
|
-
}
|
125266
|
-
const result = cbResolvedRef(resolvedRef, parent2, index);
|
125267
|
-
if (result || !resolvedRef) return result;
|
125268
|
-
(seenResolvedRefs || (seenResolvedRefs = /* @__PURE__ */ new Set())).add(resolvedRef.sourceFile.path);
|
125269
|
-
}
|
125270
|
-
) || forEach(
|
125271
|
-
resolvedProjectReferences2,
|
125272
|
-
(resolvedRef) => resolvedRef && !(skipChildren == null ? void 0 : skipChildren.has(resolvedRef)) ? worker(resolvedRef.commandLine.projectReferences, resolvedRef.references, resolvedRef) : void 0
|
125273
|
-
);
|
125274
|
-
}
|
125275
|
-
}
|
125276
125652
|
var inferredTypesContainingFile = "__inferred type names__.ts";
|
125277
125653
|
function getInferredLibraryNameResolveFrom(options, currentDirectory, libFileName) {
|
125278
125654
|
const containingDirectory = options.configFilePath ? getDirectoryPath(options.configFilePath) : currentDirectory;
|
@@ -125288,13 +125664,6 @@ function getLibraryNameFromLibFileName(libFileName) {
|
|
125288
125664
|
}
|
125289
125665
|
return "@typescript/lib-" + path;
|
125290
125666
|
}
|
125291
|
-
function getLibNameFromLibReference(libReference) {
|
125292
|
-
return toFileNameLowerCase(libReference.fileName);
|
125293
|
-
}
|
125294
|
-
function getLibFileNameFromLibReference(libReference) {
|
125295
|
-
const libName = getLibNameFromLibReference(libReference);
|
125296
|
-
return libMap.get(libName);
|
125297
|
-
}
|
125298
125667
|
function isReferencedFile(reason) {
|
125299
125668
|
switch (reason == null ? void 0 : reason.kind) {
|
125300
125669
|
case 3 /* Import */:
|
@@ -125512,11 +125881,13 @@ function createCreateProgramOptions(rootNames, options, host, oldProgram, config
|
|
125512
125881
|
typeScriptVersion: typeScriptVersion3
|
125513
125882
|
};
|
125514
125883
|
}
|
125515
|
-
function createProgram(
|
125884
|
+
function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _configFileParsingDiagnostics) {
|
125516
125885
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
|
125517
|
-
|
125518
|
-
const { rootNames, options, configFileParsingDiagnostics, projectReferences, typeScriptVersion: typeScriptVersion3 } =
|
125519
|
-
let { oldProgram } =
|
125886
|
+
let _createProgramOptions = isArray(_rootNamesOrOptions) ? createCreateProgramOptions(_rootNamesOrOptions, _options, _host, _oldProgram, _configFileParsingDiagnostics) : _rootNamesOrOptions;
|
125887
|
+
const { rootNames, options, configFileParsingDiagnostics, projectReferences, typeScriptVersion: typeScriptVersion3, host: createProgramOptionsHost } = _createProgramOptions;
|
125888
|
+
let { oldProgram } = _createProgramOptions;
|
125889
|
+
_createProgramOptions = void 0;
|
125890
|
+
_rootNamesOrOptions = void 0;
|
125520
125891
|
for (const option of commandLineOptionOfCustomType) {
|
125521
125892
|
if (hasProperty(options, option.name)) {
|
125522
125893
|
if (typeof options[option.name] === "string") {
|
@@ -125529,16 +125900,12 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
125529
125900
|
let processingOtherFiles;
|
125530
125901
|
let files;
|
125531
125902
|
let symlinks;
|
125532
|
-
let commonSourceDirectory;
|
125533
125903
|
let typeChecker;
|
125534
125904
|
let classifiableNames;
|
125535
|
-
let fileReasons = createMultiMap();
|
125536
125905
|
let filesWithReferencesProcessed;
|
125537
|
-
let fileReasonsToChain;
|
125538
|
-
let reasonToRelatedInfo;
|
125539
125906
|
let cachedBindAndCheckDiagnosticsForFile;
|
125540
125907
|
let cachedDeclarationDiagnosticsForFile;
|
125541
|
-
|
125908
|
+
const programDiagnostics = createProgramDiagnostics(getCompilerOptionsObjectLiteralSyntax);
|
125542
125909
|
let automaticTypeDirectiveNames;
|
125543
125910
|
let automaticTypeDirectiveResolutions;
|
125544
125911
|
let resolvedLibReferences;
|
@@ -125560,13 +125927,12 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
125560
125927
|
true
|
125561
125928
|
);
|
125562
125929
|
mark("beforeProgram");
|
125563
|
-
const host =
|
125930
|
+
const host = createProgramOptionsHost || createCompilerHost(options);
|
125564
125931
|
const configParsingHost = parseConfigHostFromCompilerHostLike(host);
|
125565
125932
|
let skipDefaultLib = options.noLib;
|
125566
125933
|
const getDefaultLibraryFileName = memoize(() => host.getDefaultLibFileName(options));
|
125567
125934
|
const defaultLibraryPath = host.getDefaultLibLocation ? host.getDefaultLibLocation() : getDirectoryPath(getDefaultLibraryFileName());
|
125568
|
-
|
125569
|
-
let lazyProgramDiagnosticExplainingFile = [];
|
125935
|
+
let skipVerifyCompilerOptions = false;
|
125570
125936
|
const currentDirectory = host.getCurrentDirectory();
|
125571
125937
|
const supportedExtensions = getSupportedExtensions(options);
|
125572
125938
|
const supportedExtensionsWithJsonIfResolveJsonModule = getSupportedExtensionsWithJsonIfResolveJsonModule(options, supportedExtensions);
|
@@ -125844,7 +126210,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
125844
126210
|
getTypeCount: () => getTypeChecker().getTypeCount(),
|
125845
126211
|
getInstantiationCount: () => getTypeChecker().getInstantiationCount(),
|
125846
126212
|
getRelationCacheSizes: () => getTypeChecker().getRelationCacheSizes(),
|
125847
|
-
getFileProcessingDiagnostics: () =>
|
126213
|
+
getFileProcessingDiagnostics: () => programDiagnostics.getFileProcessingDiagnostics(),
|
125848
126214
|
getAutomaticTypeDirectiveNames: () => automaticTypeDirectiveNames,
|
125849
126215
|
getAutomaticTypeDirectiveResolutions: () => automaticTypeDirectiveResolutions,
|
125850
126216
|
isSourceFileFromExternalLibrary,
|
@@ -125860,6 +126226,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
125860
126226
|
resolvedModules,
|
125861
126227
|
resolvedTypeReferenceDirectiveNames,
|
125862
126228
|
resolvedLibReferences,
|
126229
|
+
getProgramDiagnosticsContainer: () => programDiagnostics,
|
125863
126230
|
getResolvedModule,
|
125864
126231
|
getResolvedModuleFromModuleSpecifier,
|
125865
126232
|
getResolvedTypeReferenceDirective,
|
@@ -125892,70 +126259,19 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
125892
126259
|
realpath: (_o = host.realpath) == null ? void 0 : _o.bind(host),
|
125893
126260
|
useCaseSensitiveFileNames: () => host.useCaseSensitiveFileNames(),
|
125894
126261
|
getCanonicalFileName,
|
125895
|
-
getFileIncludeReasons: () =>
|
126262
|
+
getFileIncludeReasons: () => programDiagnostics.getFileReasons(),
|
125896
126263
|
structureIsReused,
|
125897
126264
|
writeFile: writeFile2,
|
125898
126265
|
getGlobalTypingsCacheLocation: maybeBind(host, host.getGlobalTypingsCacheLocation)
|
125899
126266
|
};
|
125900
126267
|
onProgramCreateComplete();
|
125901
|
-
|
126268
|
+
if (!skipVerifyCompilerOptions) {
|
126269
|
+
verifyCompilerOptions();
|
126270
|
+
}
|
125902
126271
|
mark("afterProgram");
|
125903
126272
|
measure("Program", "beforeProgram", "afterProgram");
|
125904
126273
|
(_p = tracing) == null ? void 0 : _p.pop();
|
125905
126274
|
return program;
|
125906
|
-
function updateAndGetProgramDiagnostics() {
|
125907
|
-
if (lazyProgramDiagnosticExplainingFile) {
|
125908
|
-
fileProcessingDiagnostics == null ? void 0 : fileProcessingDiagnostics.forEach((diagnostic) => {
|
125909
|
-
switch (diagnostic.kind) {
|
125910
|
-
case 1 /* FilePreprocessingFileExplainingDiagnostic */:
|
125911
|
-
return programDiagnostics.add(
|
125912
|
-
createDiagnosticExplainingFile(
|
125913
|
-
diagnostic.file && getSourceFileByPath(diagnostic.file),
|
125914
|
-
diagnostic.fileProcessingReason,
|
125915
|
-
diagnostic.diagnostic,
|
125916
|
-
diagnostic.args || emptyArray
|
125917
|
-
)
|
125918
|
-
);
|
125919
|
-
case 0 /* FilePreprocessingLibReferenceDiagnostic */:
|
125920
|
-
return programDiagnostics.add(filePreprocessingLibreferenceDiagnostic(diagnostic));
|
125921
|
-
case 2 /* ResolutionDiagnostics */:
|
125922
|
-
return diagnostic.diagnostics.forEach((d) => programDiagnostics.add(d));
|
125923
|
-
default:
|
125924
|
-
Debug.assertNever(diagnostic);
|
125925
|
-
}
|
125926
|
-
});
|
125927
|
-
lazyProgramDiagnosticExplainingFile.forEach(
|
125928
|
-
({ file, diagnostic, args }) => programDiagnostics.add(
|
125929
|
-
createDiagnosticExplainingFile(
|
125930
|
-
file,
|
125931
|
-
/*fileProcessingReason*/
|
125932
|
-
void 0,
|
125933
|
-
diagnostic,
|
125934
|
-
args
|
125935
|
-
)
|
125936
|
-
)
|
125937
|
-
);
|
125938
|
-
lazyProgramDiagnosticExplainingFile = void 0;
|
125939
|
-
fileReasonsToChain = void 0;
|
125940
|
-
reasonToRelatedInfo = void 0;
|
125941
|
-
}
|
125942
|
-
return programDiagnostics;
|
125943
|
-
}
|
125944
|
-
function filePreprocessingLibreferenceDiagnostic({ reason }) {
|
125945
|
-
const { file, pos, end } = getReferencedFileLocation(program, reason);
|
125946
|
-
const libReference = file.libReferenceDirectives[reason.index];
|
125947
|
-
const libName = getLibNameFromLibReference(libReference);
|
125948
|
-
const unqualifiedLibName = removeSuffix(removePrefix(libName, "lib."), ".d.ts");
|
125949
|
-
const suggestion = getSpellingSuggestion(unqualifiedLibName, libs, identity);
|
125950
|
-
return createFileDiagnostic(
|
125951
|
-
file,
|
125952
|
-
Debug.checkDefined(pos),
|
125953
|
-
Debug.checkDefined(end) - pos,
|
125954
|
-
suggestion ? Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1 : Diagnostics.Cannot_find_lib_definition_for_0,
|
125955
|
-
libName,
|
125956
|
-
suggestion
|
125957
|
-
);
|
125958
|
-
}
|
125959
126275
|
function getResolvedModule(file, moduleName, mode) {
|
125960
126276
|
var _a2;
|
125961
126277
|
return (_a2 = resolvedModules == null ? void 0 : resolvedModules.get(file.path)) == null ? void 0 : _a2.get(moduleName, mode);
|
@@ -126004,7 +126320,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
126004
126320
|
function addResolutionDiagnostics(resolution) {
|
126005
126321
|
var _a2;
|
126006
126322
|
if (!((_a2 = resolution.resolutionDiagnostics) == null ? void 0 : _a2.length)) return;
|
126007
|
-
|
126323
|
+
programDiagnostics.addFileProcessingDiagnostic({
|
126008
126324
|
kind: 2 /* ResolutionDiagnostics */,
|
126009
126325
|
diagnostics: resolution.resolutionDiagnostics
|
126010
126326
|
});
|
@@ -126098,16 +126414,19 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
126098
126414
|
return toPath(fileName, currentDirectory, getCanonicalFileName);
|
126099
126415
|
}
|
126100
126416
|
function getCommonSourceDirectory2() {
|
126101
|
-
|
126102
|
-
|
126103
|
-
commonSourceDirectory
|
126104
|
-
options,
|
126105
|
-
() => mapDefined(emittedFiles, (file) => file.isDeclarationFile ? void 0 : file.fileName),
|
126106
|
-
currentDirectory,
|
126107
|
-
getCanonicalFileName,
|
126108
|
-
(commonSourceDirectory2) => checkSourceFilesBelongToPath(emittedFiles, commonSourceDirectory2)
|
126109
|
-
);
|
126417
|
+
let commonSourceDirectory = programDiagnostics.getCommonSourceDirectory();
|
126418
|
+
if (commonSourceDirectory !== void 0) {
|
126419
|
+
return commonSourceDirectory;
|
126110
126420
|
}
|
126421
|
+
const emittedFiles = filter(files, (file) => sourceFileMayBeEmitted(file, program));
|
126422
|
+
commonSourceDirectory = getCommonSourceDirectory(
|
126423
|
+
options,
|
126424
|
+
() => mapDefined(emittedFiles, (file) => file.isDeclarationFile ? void 0 : file.fileName),
|
126425
|
+
currentDirectory,
|
126426
|
+
getCanonicalFileName,
|
126427
|
+
(commonSourceDirectory2) => checkSourceFilesBelongToPath(emittedFiles, commonSourceDirectory2)
|
126428
|
+
);
|
126429
|
+
programDiagnostics.setCommonSourceDirectory(commonSourceDirectory);
|
126111
126430
|
return commonSourceDirectory;
|
126112
126431
|
}
|
126113
126432
|
function getClassifiableNames() {
|
@@ -126418,9 +126737,10 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
126418
126737
|
}
|
126419
126738
|
filesByName.set(path, filesByName.get(oldFile.path));
|
126420
126739
|
});
|
126740
|
+
const isConfigIdentical = oldOptions.configFile && oldOptions.configFile === options.configFile || !oldOptions.configFile && !options.configFile && !optionsHaveChanges(oldOptions, options, optionDeclarations);
|
126741
|
+
programDiagnostics.reuseStateFromOldProgram(oldProgram.getProgramDiagnosticsContainer(), isConfigIdentical);
|
126742
|
+
skipVerifyCompilerOptions = isConfigIdentical;
|
126421
126743
|
files = newSourceFiles;
|
126422
|
-
fileReasons = oldProgram.getFileIncludeReasons();
|
126423
|
-
fileProcessingDiagnostics = oldProgram.getFileProcessingDiagnostics();
|
126424
126744
|
automaticTypeDirectiveNames = oldProgram.getAutomaticTypeDirectiveNames();
|
126425
126745
|
automaticTypeDirectiveResolutions = oldProgram.getAutomaticTypeDirectiveResolutions();
|
126426
126746
|
sourceFileToPackageName = oldProgram.sourceFileToPackageName;
|
@@ -126636,7 +126956,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
126636
126956
|
if (skipTypeChecking(sourceFile, options, program)) {
|
126637
126957
|
return emptyArray;
|
126638
126958
|
}
|
126639
|
-
const programDiagnosticsInFile =
|
126959
|
+
const programDiagnosticsInFile = programDiagnostics.getCombinedDiagnostics(program).getDiagnostics(sourceFile.fileName);
|
126640
126960
|
if (!((_a2 = sourceFile.commentDirectives) == null ? void 0 : _a2.length)) {
|
126641
126961
|
return programDiagnosticsInFile;
|
126642
126962
|
}
|
@@ -126994,15 +127314,15 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
126994
127314
|
}
|
126995
127315
|
function getOptionsDiagnostics() {
|
126996
127316
|
return sortAndDeduplicateDiagnostics(concatenate(
|
126997
|
-
|
127317
|
+
programDiagnostics.getCombinedDiagnostics(program).getGlobalDiagnostics(),
|
126998
127318
|
getOptionsDiagnosticsOfConfigFile()
|
126999
127319
|
));
|
127000
127320
|
}
|
127001
127321
|
function getOptionsDiagnosticsOfConfigFile() {
|
127002
127322
|
if (!options.configFile) return emptyArray;
|
127003
|
-
let diagnostics =
|
127323
|
+
let diagnostics = programDiagnostics.getCombinedDiagnostics(program).getDiagnostics(options.configFile.fileName);
|
127004
127324
|
forEachResolvedProjectReference2((resolvedRef) => {
|
127005
|
-
diagnostics = concatenate(diagnostics,
|
127325
|
+
diagnostics = concatenate(diagnostics, programDiagnostics.getCombinedDiagnostics(program).getDiagnostics(resolvedRef.sourceFile.fileName));
|
127006
127326
|
});
|
127007
127327
|
return diagnostics;
|
127008
127328
|
}
|
@@ -127209,7 +127529,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
127209
127529
|
);
|
127210
127530
|
}
|
127211
127531
|
function reportFileNamesDifferOnlyInCasingError(fileName, existingFile, reason) {
|
127212
|
-
const hasExistingReasonToReportErrorOn = !isReferencedFile(reason) && some(
|
127532
|
+
const hasExistingReasonToReportErrorOn = !isReferencedFile(reason) && some(programDiagnostics.getFileReasons().get(existingFile.path), isReferencedFile);
|
127213
127533
|
if (hasExistingReasonToReportErrorOn) {
|
127214
127534
|
addFilePreprocessingFileExplainingDiagnostic(existingFile, reason, Diagnostics.Already_included_file_name_0_differs_from_file_name_1_only_in_casing, [existingFile.fileName, fileName]);
|
127215
127535
|
} else {
|
@@ -127396,7 +127716,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
127396
127716
|
}
|
127397
127717
|
function addFileIncludeReason(file, reason, checkExisting) {
|
127398
127718
|
if (file && (!checkExisting || !isReferencedFile(reason) || !(filesWithReferencesProcessed == null ? void 0 : filesWithReferencesProcessed.has(reason.file)))) {
|
127399
|
-
|
127719
|
+
programDiagnostics.getFileReasons().add(file.path, reason);
|
127400
127720
|
return true;
|
127401
127721
|
}
|
127402
127722
|
return false;
|
@@ -127548,6 +127868,16 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
127548
127868
|
var _a2, _b2, _c2, _d2, _e2;
|
127549
127869
|
const existing = resolvedLibProcessing == null ? void 0 : resolvedLibProcessing.get(libFileName);
|
127550
127870
|
if (existing) return existing;
|
127871
|
+
if (options.libReplacement === false) {
|
127872
|
+
const result2 = {
|
127873
|
+
resolution: {
|
127874
|
+
resolvedModule: void 0
|
127875
|
+
},
|
127876
|
+
actual: combinePaths(defaultLibraryPath, libFileName)
|
127877
|
+
};
|
127878
|
+
(resolvedLibProcessing ?? (resolvedLibProcessing = /* @__PURE__ */ new Map())).set(libFileName, result2);
|
127879
|
+
return result2;
|
127880
|
+
}
|
127551
127881
|
if (structureIsReused !== 0 /* Not */ && oldProgram && !hasInvalidatedLibResolutions(libFileName)) {
|
127552
127882
|
const oldResolution = (_a2 = oldProgram.resolvedLibReferences) == null ? void 0 : _a2.get(libFileName);
|
127553
127883
|
if (oldResolution) {
|
@@ -127595,7 +127925,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
127595
127925
|
{ kind: 7 /* LibReferenceDirective */, file: file.path, index }
|
127596
127926
|
);
|
127597
127927
|
} else {
|
127598
|
-
|
127928
|
+
programDiagnostics.addFileProcessingDiagnostic({
|
127599
127929
|
kind: 0 /* FilePreprocessingLibReferenceDiagnostic */,
|
127600
127930
|
reason: { kind: 7 /* LibReferenceDirective */, file: file.path, index }
|
127601
127931
|
});
|
@@ -127658,10 +127988,11 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
127658
127988
|
if (!sourceFile.isDeclarationFile) {
|
127659
127989
|
const absoluteSourceFilePath = host.getCanonicalFileName(getNormalizedAbsolutePath(sourceFile.fileName, currentDirectory));
|
127660
127990
|
if (absoluteSourceFilePath.indexOf(absoluteRootDirectoryPath) !== 0) {
|
127661
|
-
|
127991
|
+
programDiagnostics.addLazyConfigDiagnostic(
|
127662
127992
|
sourceFile,
|
127663
127993
|
Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,
|
127664
|
-
|
127994
|
+
sourceFile.fileName,
|
127995
|
+
rootDirectory
|
127665
127996
|
);
|
127666
127997
|
allFilesBelongToPath = false;
|
127667
127998
|
}
|
@@ -127776,7 +128107,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
127776
128107
|
}
|
127777
128108
|
const outputFile = options.outFile;
|
127778
128109
|
if (!options.tsBuildInfoFile && options.incremental && !outputFile && !options.configFilePath) {
|
127779
|
-
programDiagnostics.
|
128110
|
+
programDiagnostics.addConfigDiagnostic(createCompilerDiagnostic(Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified));
|
127780
128111
|
}
|
127781
128112
|
verifyDeprecatedCompilerOptions();
|
127782
128113
|
verifyProjectReferences();
|
@@ -127784,10 +128115,11 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
127784
128115
|
const rootPaths = new Set(rootNames.map(toPath3));
|
127785
128116
|
for (const file of files) {
|
127786
128117
|
if (sourceFileMayBeEmitted(file, program) && !rootPaths.has(file.path)) {
|
127787
|
-
|
128118
|
+
programDiagnostics.addLazyConfigDiagnostic(
|
127788
128119
|
file,
|
127789
128120
|
Diagnostics.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,
|
127790
|
-
|
128121
|
+
file.fileName,
|
128122
|
+
options.configFilePath || ""
|
127791
128123
|
);
|
127792
128124
|
}
|
127793
128125
|
}
|
@@ -127878,14 +128210,14 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
127878
128210
|
}
|
127879
128211
|
} else if (firstNonAmbientExternalModuleSourceFile && languageVersion < 2 /* ES2015 */ && options.module === 0 /* None */) {
|
127880
128212
|
const span = getErrorSpanForNode(firstNonAmbientExternalModuleSourceFile, typeof firstNonAmbientExternalModuleSourceFile.externalModuleIndicator === "boolean" ? firstNonAmbientExternalModuleSourceFile : firstNonAmbientExternalModuleSourceFile.externalModuleIndicator);
|
127881
|
-
programDiagnostics.
|
128213
|
+
programDiagnostics.addConfigDiagnostic(createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none));
|
127882
128214
|
}
|
127883
128215
|
if (outputFile && !options.emitDeclarationOnly) {
|
127884
128216
|
if (options.module && !(options.module === 2 /* AMD */ || options.module === 4 /* System */)) {
|
127885
128217
|
createDiagnosticForOptionName(Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0, "outFile", "module");
|
127886
128218
|
} else if (options.module === void 0 && firstNonAmbientExternalModuleSourceFile) {
|
127887
128219
|
const span = getErrorSpanForNode(firstNonAmbientExternalModuleSourceFile, typeof firstNonAmbientExternalModuleSourceFile.externalModuleIndicator === "boolean" ? firstNonAmbientExternalModuleSourceFile : firstNonAmbientExternalModuleSourceFile.externalModuleIndicator);
|
127888
|
-
programDiagnostics.
|
128220
|
+
programDiagnostics.addConfigDiagnostic(createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system, "outFile"));
|
127889
128221
|
}
|
127890
128222
|
}
|
127891
128223
|
if (getResolveJsonModule(options)) {
|
@@ -127974,7 +128306,8 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
127974
128306
|
}
|
127975
128307
|
if (ModuleKind[moduleKind] && (100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */) && !(3 /* Node16 */ <= moduleResolution && moduleResolution <= 99 /* NodeNext */)) {
|
127976
128308
|
const moduleKindName = ModuleKind[moduleKind];
|
127977
|
-
|
128309
|
+
const moduleResolutionName = ModuleResolutionKind[moduleKindName] ? moduleKindName : "Node16";
|
128310
|
+
createOptionValueDiagnostic("moduleResolution", Diagnostics.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1, moduleResolutionName, moduleKindName);
|
127978
128311
|
} else if (ModuleResolutionKind[moduleResolution] && (3 /* Node16 */ <= moduleResolution && moduleResolution <= 99 /* NodeNext */) && !(100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */)) {
|
127979
128312
|
const moduleResolutionName = ModuleResolutionKind[moduleResolution];
|
127980
128313
|
createOptionValueDiagnostic("module", Diagnostics.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1, moduleResolutionName, moduleResolutionName);
|
@@ -128136,90 +128469,8 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
128136
128469
|
}
|
128137
128470
|
});
|
128138
128471
|
}
|
128139
|
-
function createDiagnosticExplainingFile(file, fileProcessingReason, diagnostic, args) {
|
128140
|
-
let seenReasons;
|
128141
|
-
const reasons = file && fileReasons.get(file.path);
|
128142
|
-
let fileIncludeReasons;
|
128143
|
-
let relatedInfo;
|
128144
|
-
let locationReason = isReferencedFile(fileProcessingReason) ? fileProcessingReason : void 0;
|
128145
|
-
let fileIncludeReasonDetails;
|
128146
|
-
let redirectInfo;
|
128147
|
-
let cachedChain = file && (fileReasonsToChain == null ? void 0 : fileReasonsToChain.get(file.path));
|
128148
|
-
let chain;
|
128149
|
-
if (cachedChain) {
|
128150
|
-
if (cachedChain.fileIncludeReasonDetails) {
|
128151
|
-
seenReasons = new Set(reasons);
|
128152
|
-
reasons == null ? void 0 : reasons.forEach(populateRelatedInfo);
|
128153
|
-
} else {
|
128154
|
-
reasons == null ? void 0 : reasons.forEach(processReason);
|
128155
|
-
}
|
128156
|
-
redirectInfo = cachedChain.redirectInfo;
|
128157
|
-
} else {
|
128158
|
-
reasons == null ? void 0 : reasons.forEach(processReason);
|
128159
|
-
redirectInfo = file && explainIfFileIsRedirectAndImpliedFormat(file, getCompilerOptionsForFile(file));
|
128160
|
-
}
|
128161
|
-
if (fileProcessingReason) processReason(fileProcessingReason);
|
128162
|
-
const processedExtraReason = (seenReasons == null ? void 0 : seenReasons.size) !== (reasons == null ? void 0 : reasons.length);
|
128163
|
-
if (locationReason && (seenReasons == null ? void 0 : seenReasons.size) === 1) seenReasons = void 0;
|
128164
|
-
if (seenReasons && cachedChain) {
|
128165
|
-
if (cachedChain.details && !processedExtraReason) {
|
128166
|
-
chain = chainDiagnosticMessages(cachedChain.details, diagnostic, ...args || emptyArray);
|
128167
|
-
} else if (cachedChain.fileIncludeReasonDetails) {
|
128168
|
-
if (!processedExtraReason) {
|
128169
|
-
if (!cachedFileIncludeDetailsHasProcessedExtraReason()) {
|
128170
|
-
fileIncludeReasonDetails = cachedChain.fileIncludeReasonDetails;
|
128171
|
-
} else {
|
128172
|
-
fileIncludeReasons = cachedChain.fileIncludeReasonDetails.next.slice(0, reasons.length);
|
128173
|
-
}
|
128174
|
-
} else {
|
128175
|
-
if (!cachedFileIncludeDetailsHasProcessedExtraReason()) {
|
128176
|
-
fileIncludeReasons = [...cachedChain.fileIncludeReasonDetails.next, fileIncludeReasons[0]];
|
128177
|
-
} else {
|
128178
|
-
fileIncludeReasons = append(cachedChain.fileIncludeReasonDetails.next.slice(0, reasons.length), fileIncludeReasons[0]);
|
128179
|
-
}
|
128180
|
-
}
|
128181
|
-
}
|
128182
|
-
}
|
128183
|
-
if (!chain) {
|
128184
|
-
if (!fileIncludeReasonDetails) fileIncludeReasonDetails = seenReasons && chainDiagnosticMessages(fileIncludeReasons, Diagnostics.The_file_is_in_the_program_because_Colon);
|
128185
|
-
chain = chainDiagnosticMessages(
|
128186
|
-
redirectInfo ? fileIncludeReasonDetails ? [fileIncludeReasonDetails, ...redirectInfo] : redirectInfo : fileIncludeReasonDetails,
|
128187
|
-
diagnostic,
|
128188
|
-
...args || emptyArray
|
128189
|
-
);
|
128190
|
-
}
|
128191
|
-
if (file) {
|
128192
|
-
if (cachedChain) {
|
128193
|
-
if (!cachedChain.fileIncludeReasonDetails || !processedExtraReason && fileIncludeReasonDetails) {
|
128194
|
-
cachedChain.fileIncludeReasonDetails = fileIncludeReasonDetails;
|
128195
|
-
}
|
128196
|
-
} else {
|
128197
|
-
(fileReasonsToChain ?? (fileReasonsToChain = /* @__PURE__ */ new Map())).set(file.path, cachedChain = { fileIncludeReasonDetails, redirectInfo });
|
128198
|
-
}
|
128199
|
-
if (!cachedChain.details && !processedExtraReason) cachedChain.details = chain.next;
|
128200
|
-
}
|
128201
|
-
const location = locationReason && getReferencedFileLocation(program, locationReason);
|
128202
|
-
return location && isReferenceFileLocation(location) ? createFileDiagnosticFromMessageChain(location.file, location.pos, location.end - location.pos, chain, relatedInfo) : createCompilerDiagnosticFromMessageChain(chain, relatedInfo);
|
128203
|
-
function processReason(reason) {
|
128204
|
-
if (seenReasons == null ? void 0 : seenReasons.has(reason)) return;
|
128205
|
-
(seenReasons ?? (seenReasons = /* @__PURE__ */ new Set())).add(reason);
|
128206
|
-
(fileIncludeReasons ?? (fileIncludeReasons = [])).push(fileIncludeReasonToDiagnostics(program, reason));
|
128207
|
-
populateRelatedInfo(reason);
|
128208
|
-
}
|
128209
|
-
function populateRelatedInfo(reason) {
|
128210
|
-
if (!locationReason && isReferencedFile(reason)) {
|
128211
|
-
locationReason = reason;
|
128212
|
-
} else if (locationReason !== reason) {
|
128213
|
-
relatedInfo = append(relatedInfo, getFileIncludeReasonToRelatedInformation(reason));
|
128214
|
-
}
|
128215
|
-
}
|
128216
|
-
function cachedFileIncludeDetailsHasProcessedExtraReason() {
|
128217
|
-
var _a2;
|
128218
|
-
return ((_a2 = cachedChain.fileIncludeReasonDetails.next) == null ? void 0 : _a2.length) !== (reasons == null ? void 0 : reasons.length);
|
128219
|
-
}
|
128220
|
-
}
|
128221
128472
|
function addFilePreprocessingFileExplainingDiagnostic(file, fileProcessingReason, diagnostic, args) {
|
128222
|
-
|
128473
|
+
programDiagnostics.addFileProcessingDiagnostic({
|
128223
128474
|
kind: 1 /* FilePreprocessingFileExplainingDiagnostic */,
|
128224
128475
|
file: file && file.path,
|
128225
128476
|
fileProcessingReason,
|
@@ -128227,99 +128478,6 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
128227
128478
|
args
|
128228
128479
|
});
|
128229
128480
|
}
|
128230
|
-
function addLazyProgramDiagnosticExplainingFile(file, diagnostic, args) {
|
128231
|
-
lazyProgramDiagnosticExplainingFile.push({ file, diagnostic, args });
|
128232
|
-
}
|
128233
|
-
function getFileIncludeReasonToRelatedInformation(reason) {
|
128234
|
-
let relatedInfo = reasonToRelatedInfo == null ? void 0 : reasonToRelatedInfo.get(reason);
|
128235
|
-
if (relatedInfo === void 0) (reasonToRelatedInfo ?? (reasonToRelatedInfo = /* @__PURE__ */ new Map())).set(reason, relatedInfo = fileIncludeReasonToRelatedInformation(reason) ?? false);
|
128236
|
-
return relatedInfo || void 0;
|
128237
|
-
}
|
128238
|
-
function fileIncludeReasonToRelatedInformation(reason) {
|
128239
|
-
if (isReferencedFile(reason)) {
|
128240
|
-
const referenceLocation = getReferencedFileLocation(program, reason);
|
128241
|
-
let message2;
|
128242
|
-
switch (reason.kind) {
|
128243
|
-
case 3 /* Import */:
|
128244
|
-
message2 = Diagnostics.File_is_included_via_import_here;
|
128245
|
-
break;
|
128246
|
-
case 4 /* ReferenceFile */:
|
128247
|
-
message2 = Diagnostics.File_is_included_via_reference_here;
|
128248
|
-
break;
|
128249
|
-
case 5 /* TypeReferenceDirective */:
|
128250
|
-
message2 = Diagnostics.File_is_included_via_type_library_reference_here;
|
128251
|
-
break;
|
128252
|
-
case 7 /* LibReferenceDirective */:
|
128253
|
-
message2 = Diagnostics.File_is_included_via_library_reference_here;
|
128254
|
-
break;
|
128255
|
-
default:
|
128256
|
-
Debug.assertNever(reason);
|
128257
|
-
}
|
128258
|
-
return isReferenceFileLocation(referenceLocation) ? createFileDiagnostic(
|
128259
|
-
referenceLocation.file,
|
128260
|
-
referenceLocation.pos,
|
128261
|
-
referenceLocation.end - referenceLocation.pos,
|
128262
|
-
message2
|
128263
|
-
) : void 0;
|
128264
|
-
}
|
128265
|
-
if (!options.configFile) return void 0;
|
128266
|
-
let configFileNode;
|
128267
|
-
let message;
|
128268
|
-
switch (reason.kind) {
|
128269
|
-
case 0 /* RootFile */:
|
128270
|
-
if (!options.configFile.configFileSpecs) return void 0;
|
128271
|
-
const fileName = getNormalizedAbsolutePath(rootNames[reason.index], currentDirectory);
|
128272
|
-
const matchedByFiles = getMatchedFileSpec(program, fileName);
|
128273
|
-
if (matchedByFiles) {
|
128274
|
-
configFileNode = getTsConfigPropArrayElementValue(options.configFile, "files", matchedByFiles);
|
128275
|
-
message = Diagnostics.File_is_matched_by_files_list_specified_here;
|
128276
|
-
break;
|
128277
|
-
}
|
128278
|
-
const matchedByInclude = getMatchedIncludeSpec(program, fileName);
|
128279
|
-
if (!matchedByInclude || !isString(matchedByInclude)) return void 0;
|
128280
|
-
configFileNode = getTsConfigPropArrayElementValue(options.configFile, "include", matchedByInclude);
|
128281
|
-
message = Diagnostics.File_is_matched_by_include_pattern_specified_here;
|
128282
|
-
break;
|
128283
|
-
case 1 /* SourceFromProjectReference */:
|
128284
|
-
case 2 /* OutputFromProjectReference */:
|
128285
|
-
const referencedResolvedRef = Debug.checkDefined(resolvedProjectReferences == null ? void 0 : resolvedProjectReferences[reason.index]);
|
128286
|
-
const referenceInfo = forEachProjectReference(
|
128287
|
-
projectReferences,
|
128288
|
-
resolvedProjectReferences,
|
128289
|
-
(resolvedRef, parent2, index2) => resolvedRef === referencedResolvedRef ? { sourceFile: (parent2 == null ? void 0 : parent2.sourceFile) || options.configFile, index: index2 } : void 0
|
128290
|
-
);
|
128291
|
-
if (!referenceInfo) return void 0;
|
128292
|
-
const { sourceFile, index } = referenceInfo;
|
128293
|
-
const referencesSyntax = forEachTsConfigPropArray(sourceFile, "references", (property) => isArrayLiteralExpression(property.initializer) ? property.initializer : void 0);
|
128294
|
-
return referencesSyntax && referencesSyntax.elements.length > index ? createDiagnosticForNodeInSourceFile(
|
128295
|
-
sourceFile,
|
128296
|
-
referencesSyntax.elements[index],
|
128297
|
-
reason.kind === 2 /* OutputFromProjectReference */ ? Diagnostics.File_is_output_from_referenced_project_specified_here : Diagnostics.File_is_source_from_referenced_project_specified_here
|
128298
|
-
) : void 0;
|
128299
|
-
case 8 /* AutomaticTypeDirectiveFile */:
|
128300
|
-
if (!options.types) return void 0;
|
128301
|
-
configFileNode = getOptionsSyntaxByArrayElementValue("types", reason.typeReference);
|
128302
|
-
message = Diagnostics.File_is_entry_point_of_type_library_specified_here;
|
128303
|
-
break;
|
128304
|
-
case 6 /* LibFile */:
|
128305
|
-
if (reason.index !== void 0) {
|
128306
|
-
configFileNode = getOptionsSyntaxByArrayElementValue("lib", options.lib[reason.index]);
|
128307
|
-
message = Diagnostics.File_is_library_specified_here;
|
128308
|
-
break;
|
128309
|
-
}
|
128310
|
-
const target = getNameOfScriptTarget(getEmitScriptTarget(options));
|
128311
|
-
configFileNode = target ? getOptionsSyntaxByValue("target", target) : void 0;
|
128312
|
-
message = Diagnostics.File_is_default_library_for_target_specified_here;
|
128313
|
-
break;
|
128314
|
-
default:
|
128315
|
-
Debug.assertNever(reason);
|
128316
|
-
}
|
128317
|
-
return configFileNode && createDiagnosticForNodeInSourceFile(
|
128318
|
-
options.configFile,
|
128319
|
-
configFileNode,
|
128320
|
-
message
|
128321
|
-
);
|
128322
|
-
}
|
128323
128481
|
function verifyProjectReferences() {
|
128324
128482
|
const buildInfoPath = !options.suppressOutputPathCheck ? getTsBuildInfoEmitOutputFilePath(options) : void 0;
|
128325
128483
|
forEachProjectReference(
|
@@ -128355,7 +128513,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
128355
128513
|
forEachPropertyAssignment(pathProp.initializer, key, (keyProps) => {
|
128356
128514
|
const initializer = keyProps.initializer;
|
128357
128515
|
if (isArrayLiteralExpression(initializer) && initializer.elements.length > valueIndex) {
|
128358
|
-
programDiagnostics.
|
128516
|
+
programDiagnostics.addConfigDiagnostic(createDiagnosticForNodeInSourceFile(options.configFile, initializer.elements[valueIndex], message, ...args));
|
128359
128517
|
needCompilerDiagnostic = false;
|
128360
128518
|
}
|
128361
128519
|
});
|
@@ -128384,18 +128542,8 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
128384
128542
|
createCompilerOptionsDiagnostic(message, ...args);
|
128385
128543
|
}
|
128386
128544
|
}
|
128387
|
-
function forEachOptionsSyntaxByName(name, callback) {
|
128388
|
-
return forEachPropertyAssignment(getCompilerOptionsObjectLiteralSyntax(), name, callback);
|
128389
|
-
}
|
128390
128545
|
function forEachOptionPathsSyntax(callback) {
|
128391
|
-
return forEachOptionsSyntaxByName("paths", callback);
|
128392
|
-
}
|
128393
|
-
function getOptionsSyntaxByValue(name, value) {
|
128394
|
-
return forEachOptionsSyntaxByName(name, (property) => isStringLiteral(property.initializer) && property.initializer.text === value ? property.initializer : void 0);
|
128395
|
-
}
|
128396
|
-
function getOptionsSyntaxByArrayElementValue(name, value) {
|
128397
|
-
const compilerOptionsObjectLiteralSyntax = getCompilerOptionsObjectLiteralSyntax();
|
128398
|
-
return compilerOptionsObjectLiteralSyntax && getPropertyArrayElementValue(compilerOptionsObjectLiteralSyntax, name, value);
|
128546
|
+
return forEachOptionsSyntaxByName(getCompilerOptionsObjectLiteralSyntax(), "paths", callback);
|
128399
128547
|
}
|
128400
128548
|
function createDiagnosticForOptionName(message, option1, option2, option3) {
|
128401
128549
|
createDiagnosticForOption(
|
@@ -128423,9 +128571,9 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
128423
128571
|
function createDiagnosticForReference(sourceFile, index, message, ...args) {
|
128424
128572
|
const referencesSyntax = forEachTsConfigPropArray(sourceFile || options.configFile, "references", (property) => isArrayLiteralExpression(property.initializer) ? property.initializer : void 0);
|
128425
128573
|
if (referencesSyntax && referencesSyntax.elements.length > index) {
|
128426
|
-
programDiagnostics.
|
128574
|
+
programDiagnostics.addConfigDiagnostic(createDiagnosticForNodeInSourceFile(sourceFile || options.configFile, referencesSyntax.elements[index], message, ...args));
|
128427
128575
|
} else {
|
128428
|
-
programDiagnostics.
|
128576
|
+
programDiagnostics.addConfigDiagnostic(createCompilerDiagnostic(message, ...args));
|
128429
128577
|
}
|
128430
128578
|
}
|
128431
128579
|
function createDiagnosticForOption(onKey, option1, option2, message, ...args) {
|
@@ -128439,14 +128587,14 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
128439
128587
|
const compilerOptionsProperty = getCompilerOptionsPropertySyntax();
|
128440
128588
|
if (compilerOptionsProperty) {
|
128441
128589
|
if ("messageText" in message) {
|
128442
|
-
programDiagnostics.
|
128590
|
+
programDiagnostics.addConfigDiagnostic(createDiagnosticForNodeFromMessageChain(options.configFile, compilerOptionsProperty.name, message));
|
128443
128591
|
} else {
|
128444
|
-
programDiagnostics.
|
128592
|
+
programDiagnostics.addConfigDiagnostic(createDiagnosticForNodeInSourceFile(options.configFile, compilerOptionsProperty.name, message, ...args));
|
128445
128593
|
}
|
128446
128594
|
} else if ("messageText" in message) {
|
128447
|
-
programDiagnostics.
|
128595
|
+
programDiagnostics.addConfigDiagnostic(createCompilerDiagnosticFromMessageChain(message));
|
128448
128596
|
} else {
|
128449
|
-
programDiagnostics.
|
128597
|
+
programDiagnostics.addConfigDiagnostic(createCompilerDiagnostic(message, ...args));
|
128450
128598
|
}
|
128451
128599
|
}
|
128452
128600
|
function getCompilerOptionsObjectLiteralSyntax() {
|
@@ -128470,9 +128618,9 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
128470
128618
|
let needsCompilerDiagnostic = false;
|
128471
128619
|
forEachPropertyAssignment(objectLiteral, key1, (prop) => {
|
128472
128620
|
if ("messageText" in message) {
|
128473
|
-
programDiagnostics.
|
128621
|
+
programDiagnostics.addConfigDiagnostic(createDiagnosticForNodeFromMessageChain(options.configFile, onKey ? prop.name : prop.initializer, message));
|
128474
128622
|
} else {
|
128475
|
-
programDiagnostics.
|
128623
|
+
programDiagnostics.addConfigDiagnostic(createDiagnosticForNodeInSourceFile(options.configFile, onKey ? prop.name : prop.initializer, message, ...args));
|
128476
128624
|
}
|
128477
128625
|
needsCompilerDiagnostic = true;
|
128478
128626
|
}, key2);
|
@@ -128480,7 +128628,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
128480
128628
|
}
|
128481
128629
|
function blockEmittingOfFile(emitFileName, diag2) {
|
128482
128630
|
hasEmitBlockingDiagnostics.set(toPath3(emitFileName), true);
|
128483
|
-
programDiagnostics.
|
128631
|
+
programDiagnostics.addConfigDiagnostic(diag2);
|
128484
128632
|
}
|
128485
128633
|
function isEmittedFile(file) {
|
128486
128634
|
if (options.noEmit) {
|
@@ -128803,6 +128951,293 @@ function getModuleNameStringLiteralAt({ imports, moduleAugmentations }, index) {
|
|
128803
128951
|
Debug.fail("should never ask for module name at index higher than possible module name");
|
128804
128952
|
}
|
128805
128953
|
|
128954
|
+
// src/compiler/programDiagnostics.ts
|
128955
|
+
function createProgramDiagnostics(getCompilerOptionsObjectLiteralSyntax) {
|
128956
|
+
let computedDiagnostics;
|
128957
|
+
let fileReasons = createMultiMap();
|
128958
|
+
let fileProcessingDiagnostics;
|
128959
|
+
let commonSourceDirectory;
|
128960
|
+
let configDiagnostics;
|
128961
|
+
let lazyConfigDiagnostics;
|
128962
|
+
let fileReasonsToChain;
|
128963
|
+
let reasonToRelatedInfo;
|
128964
|
+
return {
|
128965
|
+
addConfigDiagnostic(diag2) {
|
128966
|
+
Debug.assert(computedDiagnostics === void 0, "Cannot modify program diagnostic state after requesting combined diagnostics");
|
128967
|
+
(configDiagnostics ?? (configDiagnostics = createDiagnosticCollection())).add(diag2);
|
128968
|
+
},
|
128969
|
+
addLazyConfigDiagnostic(file, message, ...args) {
|
128970
|
+
Debug.assert(computedDiagnostics === void 0, "Cannot modify program diagnostic state after requesting combined diagnostics");
|
128971
|
+
(lazyConfigDiagnostics ?? (lazyConfigDiagnostics = [])).push({ file, diagnostic: message, args });
|
128972
|
+
},
|
128973
|
+
addFileProcessingDiagnostic(diag2) {
|
128974
|
+
Debug.assert(computedDiagnostics === void 0, "Cannot modify program diagnostic state after requesting combined diagnostics");
|
128975
|
+
(fileProcessingDiagnostics ?? (fileProcessingDiagnostics = [])).push(diag2);
|
128976
|
+
},
|
128977
|
+
setCommonSourceDirectory(directory) {
|
128978
|
+
commonSourceDirectory = directory;
|
128979
|
+
},
|
128980
|
+
reuseStateFromOldProgram(oldProgramDiagnostics, isConfigIdentical) {
|
128981
|
+
fileReasons = oldProgramDiagnostics.getFileReasons();
|
128982
|
+
fileProcessingDiagnostics = oldProgramDiagnostics.getFileProcessingDiagnostics();
|
128983
|
+
if (isConfigIdentical) {
|
128984
|
+
commonSourceDirectory = oldProgramDiagnostics.getCommonSourceDirectory();
|
128985
|
+
configDiagnostics = oldProgramDiagnostics.getConfigDiagnostics();
|
128986
|
+
lazyConfigDiagnostics = oldProgramDiagnostics.getLazyConfigDiagnostics();
|
128987
|
+
}
|
128988
|
+
},
|
128989
|
+
getFileProcessingDiagnostics() {
|
128990
|
+
return fileProcessingDiagnostics;
|
128991
|
+
},
|
128992
|
+
getFileReasons() {
|
128993
|
+
return fileReasons;
|
128994
|
+
},
|
128995
|
+
getCommonSourceDirectory() {
|
128996
|
+
return commonSourceDirectory;
|
128997
|
+
},
|
128998
|
+
getConfigDiagnostics() {
|
128999
|
+
return configDiagnostics;
|
129000
|
+
},
|
129001
|
+
getLazyConfigDiagnostics() {
|
129002
|
+
return lazyConfigDiagnostics;
|
129003
|
+
},
|
129004
|
+
getCombinedDiagnostics(program) {
|
129005
|
+
if (computedDiagnostics) {
|
129006
|
+
return computedDiagnostics;
|
129007
|
+
}
|
129008
|
+
computedDiagnostics = createDiagnosticCollection();
|
129009
|
+
configDiagnostics == null ? void 0 : configDiagnostics.getDiagnostics().forEach((d) => computedDiagnostics.add(d));
|
129010
|
+
fileProcessingDiagnostics == null ? void 0 : fileProcessingDiagnostics.forEach((diagnostic) => {
|
129011
|
+
switch (diagnostic.kind) {
|
129012
|
+
case 1 /* FilePreprocessingFileExplainingDiagnostic */:
|
129013
|
+
return computedDiagnostics.add(
|
129014
|
+
createDiagnosticExplainingFile(
|
129015
|
+
program,
|
129016
|
+
diagnostic.file && program.getSourceFileByPath(diagnostic.file),
|
129017
|
+
diagnostic.fileProcessingReason,
|
129018
|
+
diagnostic.diagnostic,
|
129019
|
+
diagnostic.args || emptyArray
|
129020
|
+
)
|
129021
|
+
);
|
129022
|
+
case 0 /* FilePreprocessingLibReferenceDiagnostic */:
|
129023
|
+
return computedDiagnostics.add(filePreprocessingLibreferenceDiagnostic(program, diagnostic));
|
129024
|
+
case 2 /* ResolutionDiagnostics */:
|
129025
|
+
return diagnostic.diagnostics.forEach((d) => computedDiagnostics.add(d));
|
129026
|
+
default:
|
129027
|
+
Debug.assertNever(diagnostic);
|
129028
|
+
}
|
129029
|
+
});
|
129030
|
+
lazyConfigDiagnostics == null ? void 0 : lazyConfigDiagnostics.forEach(
|
129031
|
+
({ file, diagnostic, args }) => computedDiagnostics.add(
|
129032
|
+
createDiagnosticExplainingFile(
|
129033
|
+
program,
|
129034
|
+
file,
|
129035
|
+
/*fileProcessingReason*/
|
129036
|
+
void 0,
|
129037
|
+
diagnostic,
|
129038
|
+
args
|
129039
|
+
)
|
129040
|
+
)
|
129041
|
+
);
|
129042
|
+
fileReasonsToChain = void 0;
|
129043
|
+
reasonToRelatedInfo = void 0;
|
129044
|
+
return computedDiagnostics;
|
129045
|
+
}
|
129046
|
+
};
|
129047
|
+
function filePreprocessingLibreferenceDiagnostic(program, { reason }) {
|
129048
|
+
const { file, pos, end } = getReferencedFileLocation(program, reason);
|
129049
|
+
const libReference = file.libReferenceDirectives[reason.index];
|
129050
|
+
const libName = getLibNameFromLibReference(libReference);
|
129051
|
+
const unqualifiedLibName = removeSuffix(removePrefix(libName, "lib."), ".d.ts");
|
129052
|
+
const suggestion = getSpellingSuggestion(unqualifiedLibName, libs, identity);
|
129053
|
+
return createFileDiagnostic(
|
129054
|
+
file,
|
129055
|
+
Debug.checkDefined(pos),
|
129056
|
+
Debug.checkDefined(end) - pos,
|
129057
|
+
suggestion ? Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1 : Diagnostics.Cannot_find_lib_definition_for_0,
|
129058
|
+
libName,
|
129059
|
+
suggestion
|
129060
|
+
);
|
129061
|
+
}
|
129062
|
+
function createDiagnosticExplainingFile(program, file, fileProcessingReason, diagnostic, args) {
|
129063
|
+
let seenReasons;
|
129064
|
+
let fileIncludeReasons;
|
129065
|
+
let relatedInfo;
|
129066
|
+
let fileIncludeReasonDetails;
|
129067
|
+
let redirectInfo;
|
129068
|
+
let chain;
|
129069
|
+
const reasons = file && fileReasons.get(file.path);
|
129070
|
+
let locationReason = isReferencedFile(fileProcessingReason) ? fileProcessingReason : void 0;
|
129071
|
+
let cachedChain = file && (fileReasonsToChain == null ? void 0 : fileReasonsToChain.get(file.path));
|
129072
|
+
if (cachedChain) {
|
129073
|
+
if (cachedChain.fileIncludeReasonDetails) {
|
129074
|
+
seenReasons = new Set(reasons);
|
129075
|
+
reasons == null ? void 0 : reasons.forEach(populateRelatedInfo);
|
129076
|
+
} else {
|
129077
|
+
reasons == null ? void 0 : reasons.forEach(processReason);
|
129078
|
+
}
|
129079
|
+
redirectInfo = cachedChain.redirectInfo;
|
129080
|
+
} else {
|
129081
|
+
reasons == null ? void 0 : reasons.forEach(processReason);
|
129082
|
+
redirectInfo = file && explainIfFileIsRedirectAndImpliedFormat(file, program.getCompilerOptionsForFile(file));
|
129083
|
+
}
|
129084
|
+
if (fileProcessingReason) processReason(fileProcessingReason);
|
129085
|
+
const processedExtraReason = (seenReasons == null ? void 0 : seenReasons.size) !== (reasons == null ? void 0 : reasons.length);
|
129086
|
+
if (locationReason && (seenReasons == null ? void 0 : seenReasons.size) === 1) seenReasons = void 0;
|
129087
|
+
if (seenReasons && cachedChain) {
|
129088
|
+
if (cachedChain.details && !processedExtraReason) {
|
129089
|
+
chain = chainDiagnosticMessages(cachedChain.details, diagnostic, ...args ?? emptyArray);
|
129090
|
+
} else if (cachedChain.fileIncludeReasonDetails) {
|
129091
|
+
if (!processedExtraReason) {
|
129092
|
+
if (!cachedFileIncludeDetailsHasProcessedExtraReason()) {
|
129093
|
+
fileIncludeReasonDetails = cachedChain.fileIncludeReasonDetails;
|
129094
|
+
} else {
|
129095
|
+
fileIncludeReasons = cachedChain.fileIncludeReasonDetails.next.slice(0, reasons.length);
|
129096
|
+
}
|
129097
|
+
} else {
|
129098
|
+
if (!cachedFileIncludeDetailsHasProcessedExtraReason()) {
|
129099
|
+
fileIncludeReasons = [...cachedChain.fileIncludeReasonDetails.next, fileIncludeReasons[0]];
|
129100
|
+
} else {
|
129101
|
+
fileIncludeReasons = append(cachedChain.fileIncludeReasonDetails.next.slice(0, reasons.length), fileIncludeReasons[0]);
|
129102
|
+
}
|
129103
|
+
}
|
129104
|
+
}
|
129105
|
+
}
|
129106
|
+
if (!chain) {
|
129107
|
+
if (!fileIncludeReasonDetails) fileIncludeReasonDetails = seenReasons && chainDiagnosticMessages(fileIncludeReasons, Diagnostics.The_file_is_in_the_program_because_Colon);
|
129108
|
+
chain = chainDiagnosticMessages(
|
129109
|
+
redirectInfo ? fileIncludeReasonDetails ? [fileIncludeReasonDetails, ...redirectInfo] : redirectInfo : fileIncludeReasonDetails,
|
129110
|
+
diagnostic,
|
129111
|
+
...args || emptyArray
|
129112
|
+
);
|
129113
|
+
}
|
129114
|
+
if (file) {
|
129115
|
+
if (cachedChain) {
|
129116
|
+
if (!cachedChain.fileIncludeReasonDetails || !processedExtraReason && fileIncludeReasonDetails) {
|
129117
|
+
cachedChain.fileIncludeReasonDetails = fileIncludeReasonDetails;
|
129118
|
+
}
|
129119
|
+
} else {
|
129120
|
+
(fileReasonsToChain ?? (fileReasonsToChain = /* @__PURE__ */ new Map())).set(file.path, cachedChain = { fileIncludeReasonDetails, redirectInfo });
|
129121
|
+
}
|
129122
|
+
if (!cachedChain.details && !processedExtraReason) cachedChain.details = chain.next;
|
129123
|
+
}
|
129124
|
+
const location = locationReason && getReferencedFileLocation(program, locationReason);
|
129125
|
+
return location && isReferenceFileLocation(location) ? createFileDiagnosticFromMessageChain(location.file, location.pos, location.end - location.pos, chain, relatedInfo) : createCompilerDiagnosticFromMessageChain(chain, relatedInfo);
|
129126
|
+
function processReason(reason) {
|
129127
|
+
if (seenReasons == null ? void 0 : seenReasons.has(reason)) return;
|
129128
|
+
(seenReasons ?? (seenReasons = /* @__PURE__ */ new Set())).add(reason);
|
129129
|
+
(fileIncludeReasons ?? (fileIncludeReasons = [])).push(fileIncludeReasonToDiagnostics(program, reason));
|
129130
|
+
populateRelatedInfo(reason);
|
129131
|
+
}
|
129132
|
+
function populateRelatedInfo(reason) {
|
129133
|
+
if (!locationReason && isReferencedFile(reason)) {
|
129134
|
+
locationReason = reason;
|
129135
|
+
} else if (locationReason !== reason) {
|
129136
|
+
relatedInfo = append(relatedInfo, getFileIncludeReasonToRelatedInformation(program, reason));
|
129137
|
+
}
|
129138
|
+
}
|
129139
|
+
function cachedFileIncludeDetailsHasProcessedExtraReason() {
|
129140
|
+
var _a;
|
129141
|
+
return ((_a = cachedChain.fileIncludeReasonDetails.next) == null ? void 0 : _a.length) !== (reasons == null ? void 0 : reasons.length);
|
129142
|
+
}
|
129143
|
+
}
|
129144
|
+
function getFileIncludeReasonToRelatedInformation(program, reason) {
|
129145
|
+
let relatedInfo = reasonToRelatedInfo == null ? void 0 : reasonToRelatedInfo.get(reason);
|
129146
|
+
if (relatedInfo === void 0) (reasonToRelatedInfo ?? (reasonToRelatedInfo = /* @__PURE__ */ new Map())).set(reason, relatedInfo = fileIncludeReasonToRelatedInformation(program, reason) ?? false);
|
129147
|
+
return relatedInfo || void 0;
|
129148
|
+
}
|
129149
|
+
function fileIncludeReasonToRelatedInformation(program, reason) {
|
129150
|
+
if (isReferencedFile(reason)) {
|
129151
|
+
const referenceLocation = getReferencedFileLocation(program, reason);
|
129152
|
+
let message2;
|
129153
|
+
switch (reason.kind) {
|
129154
|
+
case 3 /* Import */:
|
129155
|
+
message2 = Diagnostics.File_is_included_via_import_here;
|
129156
|
+
break;
|
129157
|
+
case 4 /* ReferenceFile */:
|
129158
|
+
message2 = Diagnostics.File_is_included_via_reference_here;
|
129159
|
+
break;
|
129160
|
+
case 5 /* TypeReferenceDirective */:
|
129161
|
+
message2 = Diagnostics.File_is_included_via_type_library_reference_here;
|
129162
|
+
break;
|
129163
|
+
case 7 /* LibReferenceDirective */:
|
129164
|
+
message2 = Diagnostics.File_is_included_via_library_reference_here;
|
129165
|
+
break;
|
129166
|
+
default:
|
129167
|
+
Debug.assertNever(reason);
|
129168
|
+
}
|
129169
|
+
return isReferenceFileLocation(referenceLocation) ? createFileDiagnostic(
|
129170
|
+
referenceLocation.file,
|
129171
|
+
referenceLocation.pos,
|
129172
|
+
referenceLocation.end - referenceLocation.pos,
|
129173
|
+
message2
|
129174
|
+
) : void 0;
|
129175
|
+
}
|
129176
|
+
const currentDirectory = program.getCurrentDirectory();
|
129177
|
+
const rootNames = program.getRootFileNames();
|
129178
|
+
const options = program.getCompilerOptions();
|
129179
|
+
if (!options.configFile) return void 0;
|
129180
|
+
let configFileNode;
|
129181
|
+
let message;
|
129182
|
+
switch (reason.kind) {
|
129183
|
+
case 0 /* RootFile */:
|
129184
|
+
if (!options.configFile.configFileSpecs) return void 0;
|
129185
|
+
const fileName = getNormalizedAbsolutePath(rootNames[reason.index], currentDirectory);
|
129186
|
+
const matchedByFiles = getMatchedFileSpec(program, fileName);
|
129187
|
+
if (matchedByFiles) {
|
129188
|
+
configFileNode = getTsConfigPropArrayElementValue(options.configFile, "files", matchedByFiles);
|
129189
|
+
message = Diagnostics.File_is_matched_by_files_list_specified_here;
|
129190
|
+
break;
|
129191
|
+
}
|
129192
|
+
const matchedByInclude = getMatchedIncludeSpec(program, fileName);
|
129193
|
+
if (!matchedByInclude || !isString(matchedByInclude)) return void 0;
|
129194
|
+
configFileNode = getTsConfigPropArrayElementValue(options.configFile, "include", matchedByInclude);
|
129195
|
+
message = Diagnostics.File_is_matched_by_include_pattern_specified_here;
|
129196
|
+
break;
|
129197
|
+
case 1 /* SourceFromProjectReference */:
|
129198
|
+
case 2 /* OutputFromProjectReference */:
|
129199
|
+
const resolvedProjectReferences = program.getResolvedProjectReferences();
|
129200
|
+
const projectReferences = program.getProjectReferences();
|
129201
|
+
const referencedResolvedRef = Debug.checkDefined(resolvedProjectReferences == null ? void 0 : resolvedProjectReferences[reason.index]);
|
129202
|
+
const referenceInfo = forEachProjectReference(
|
129203
|
+
projectReferences,
|
129204
|
+
resolvedProjectReferences,
|
129205
|
+
(resolvedRef, parent2, index2) => resolvedRef === referencedResolvedRef ? { sourceFile: (parent2 == null ? void 0 : parent2.sourceFile) || options.configFile, index: index2 } : void 0
|
129206
|
+
);
|
129207
|
+
if (!referenceInfo) return void 0;
|
129208
|
+
const { sourceFile, index } = referenceInfo;
|
129209
|
+
const referencesSyntax = forEachTsConfigPropArray(sourceFile, "references", (property) => isArrayLiteralExpression(property.initializer) ? property.initializer : void 0);
|
129210
|
+
return referencesSyntax && referencesSyntax.elements.length > index ? createDiagnosticForNodeInSourceFile(
|
129211
|
+
sourceFile,
|
129212
|
+
referencesSyntax.elements[index],
|
129213
|
+
reason.kind === 2 /* OutputFromProjectReference */ ? Diagnostics.File_is_output_from_referenced_project_specified_here : Diagnostics.File_is_source_from_referenced_project_specified_here
|
129214
|
+
) : void 0;
|
129215
|
+
case 8 /* AutomaticTypeDirectiveFile */:
|
129216
|
+
if (!options.types) return void 0;
|
129217
|
+
configFileNode = getOptionsSyntaxByArrayElementValue(getCompilerOptionsObjectLiteralSyntax(), "types", reason.typeReference);
|
129218
|
+
message = Diagnostics.File_is_entry_point_of_type_library_specified_here;
|
129219
|
+
break;
|
129220
|
+
case 6 /* LibFile */:
|
129221
|
+
if (reason.index !== void 0) {
|
129222
|
+
configFileNode = getOptionsSyntaxByArrayElementValue(getCompilerOptionsObjectLiteralSyntax(), "lib", options.lib[reason.index]);
|
129223
|
+
message = Diagnostics.File_is_library_specified_here;
|
129224
|
+
break;
|
129225
|
+
}
|
129226
|
+
const target = getNameOfScriptTarget(getEmitScriptTarget(options));
|
129227
|
+
configFileNode = target ? getOptionsSyntaxByValue(getCompilerOptionsObjectLiteralSyntax(), "target", target) : void 0;
|
129228
|
+
message = Diagnostics.File_is_default_library_for_target_specified_here;
|
129229
|
+
break;
|
129230
|
+
default:
|
129231
|
+
Debug.assertNever(reason);
|
129232
|
+
}
|
129233
|
+
return configFileNode && createDiagnosticForNodeInSourceFile(
|
129234
|
+
options.configFile,
|
129235
|
+
configFileNode,
|
129236
|
+
message
|
129237
|
+
);
|
129238
|
+
}
|
129239
|
+
}
|
129240
|
+
|
128806
129241
|
// src/compiler/builderState.ts
|
128807
129242
|
function getFileEmitOutput(program, sourceFile, emitOnlyDtsFiles, cancellationToken, customTransformers, forceDtsEmit) {
|
128808
129243
|
const outputFiles = [];
|
@@ -136663,9 +137098,9 @@ function createSyntacticTypeNodeBuilder(options, resolver) {
|
|
136663
137098
|
}
|
136664
137099
|
if (!result && node.kind === 303 /* PropertyAssignment */) {
|
136665
137100
|
const initializer = node.initializer;
|
136666
|
-
const
|
136667
|
-
if (
|
136668
|
-
result = serializeExistingTypeNode(
|
137101
|
+
const assertionNode = isJSDocTypeAssertion(initializer) ? getJSDocTypeAssertionType(initializer) : initializer.kind === 234 /* AsExpression */ || initializer.kind === 216 /* TypeAssertionExpression */ ? initializer.type : void 0;
|
137102
|
+
if (assertionNode && !isConstTypeReference(assertionNode) && resolver.canReuseTypeNodeAnnotation(context, node, assertionNode, symbol)) {
|
137103
|
+
result = serializeExistingTypeNode(assertionNode, context);
|
136669
137104
|
}
|
136670
137105
|
}
|
136671
137106
|
return result ?? inferTypeOfDeclaration(
|
@@ -136958,18 +137393,21 @@ function createSyntacticTypeNodeBuilder(options, resolver) {
|
|
136958
137393
|
return failed;
|
136959
137394
|
}
|
136960
137395
|
function typeFromFunctionLikeExpression(fnNode, context) {
|
136961
|
-
const
|
136962
|
-
context.noInferenceFallback = true;
|
136963
|
-
createReturnFromSignature(
|
137396
|
+
const returnType = createReturnFromSignature(
|
136964
137397
|
fnNode,
|
136965
137398
|
/*symbol*/
|
136966
137399
|
void 0,
|
136967
137400
|
context
|
136968
137401
|
);
|
136969
|
-
reuseTypeParameters(fnNode.typeParameters, context);
|
136970
|
-
fnNode.parameters.map((p) => ensureParameter(p, context));
|
136971
|
-
|
136972
|
-
|
137402
|
+
const typeParameters = reuseTypeParameters(fnNode.typeParameters, context);
|
137403
|
+
const parameters = fnNode.parameters.map((p) => ensureParameter(p, context));
|
137404
|
+
return syntacticResult(
|
137405
|
+
factory.createFunctionTypeNode(
|
137406
|
+
typeParameters,
|
137407
|
+
parameters,
|
137408
|
+
returnType
|
137409
|
+
)
|
137410
|
+
);
|
136973
137411
|
}
|
136974
137412
|
function canGetTypeFromArrayLiteral(arrayLiteral, context, isConstContext) {
|
136975
137413
|
if (!isConstContext) {
|
@@ -140525,7 +140963,7 @@ function moduleSymbolToValidIdentifier(moduleSymbol, target, forceCapitalize) {
|
|
140525
140963
|
return moduleSpecifierToValidIdentifier(removeFileExtension(stripQuotes(moduleSymbol.name)), target, forceCapitalize);
|
140526
140964
|
}
|
140527
140965
|
function moduleSpecifierToValidIdentifier(moduleSpecifier, target, forceCapitalize) {
|
140528
|
-
const baseName = getBaseFileName(removeSuffix(moduleSpecifier, "/index"));
|
140966
|
+
const baseName = getBaseFileName(removeSuffix(removeFileExtension(moduleSpecifier), "/index"));
|
140529
140967
|
let res = "";
|
140530
140968
|
let lastCharWasValid = true;
|
140531
140969
|
const firstCharCode = baseName.charCodeAt(0);
|
@@ -146430,7 +146868,7 @@ function getUsageInfo(oldFile, toMove, checker, existingTargetLocals = /* @__PUR
|
|
146430
146868
|
const unusedImportsFromOldFile = /* @__PURE__ */ new Set();
|
146431
146869
|
for (const statement of toMove) {
|
146432
146870
|
forEachReference(statement, checker, enclosingRange, (symbol, isValidTypeOnlyUseSite) => {
|
146433
|
-
if (!symbol.declarations) {
|
146871
|
+
if (!some(symbol.declarations)) {
|
146434
146872
|
return;
|
146435
146873
|
}
|
146436
146874
|
if (existingTargetLocals.has(skipAlias(symbol, checker))) {
|
@@ -156842,6 +157280,7 @@ var errorCodes19 = [
|
|
156842
157280
|
Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode.code,
|
156843
157281
|
Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig.code,
|
156844
157282
|
Diagnostics.Cannot_find_namespace_0_Did_you_mean_1.code,
|
157283
|
+
Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code,
|
156845
157284
|
Diagnostics.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found.code
|
156846
157285
|
];
|
156847
157286
|
registerCodeFix({
|
@@ -157945,6 +158384,7 @@ function getUmdImportKind(importingFile, program, forceImportKeyword) {
|
|
157945
158384
|
case 200 /* Preserve */:
|
157946
158385
|
return 2 /* Namespace */;
|
157947
158386
|
case 100 /* Node16 */:
|
158387
|
+
case 101 /* Node18 */:
|
157948
158388
|
case 199 /* NodeNext */:
|
157949
158389
|
return getImpliedNodeFormatForEmit(importingFile, program) === 99 /* ESNext */ ? 2 /* Namespace */ : 3 /* CommonJS */;
|
157950
158390
|
default:
|
@@ -159356,7 +159796,8 @@ var errorCodes28 = [
|
|
159356
159796
|
Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,
|
159357
159797
|
Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,
|
159358
159798
|
Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,
|
159359
|
-
Diagnostics.Cannot_find_name_0.code
|
159799
|
+
Diagnostics.Cannot_find_name_0.code,
|
159800
|
+
Diagnostics.Type_0_does_not_satisfy_the_expected_type_1.code
|
159360
159801
|
];
|
159361
159802
|
registerCodeFix({
|
159362
159803
|
errorCodes: errorCodes28,
|
@@ -159393,9 +159834,9 @@ registerCodeFix({
|
|
159393
159834
|
return createCombinedCodeActions(ts_textChanges_exports.ChangeTracker.with(context, (changes) => {
|
159394
159835
|
eachDiagnostic(context, errorCodes28, (diag2) => {
|
159395
159836
|
const info = getInfo10(diag2.file, diag2.start, diag2.code, checker, context.program);
|
159396
|
-
if (
|
159397
|
-
|
159398
|
-
|
159837
|
+
if (info === void 0) return;
|
159838
|
+
const nodeId = getNodeId(info.parentDeclaration) + "#" + (info.kind === 3 /* ObjectLiteral */ ? info.identifier || getNodeId(info.token) : info.token.text);
|
159839
|
+
if (!addToSeen(seen, nodeId)) return;
|
159399
159840
|
if (fixId56 === fixMissingFunctionDeclaration && (info.kind === 2 /* Function */ || info.kind === 5 /* Signature */)) {
|
159400
159841
|
addFunctionDeclaration(changes, context, info);
|
159401
159842
|
} else if (fixId56 === fixMissingProperties && info.kind === 3 /* ObjectLiteral */) {
|
@@ -159439,7 +159880,7 @@ registerCodeFix({
|
|
159439
159880
|
}
|
159440
159881
|
});
|
159441
159882
|
function getInfo10(sourceFile, tokenPos, errorCode, checker, program) {
|
159442
|
-
var _a, _b
|
159883
|
+
var _a, _b;
|
159443
159884
|
const token = getTokenAtPosition(sourceFile, tokenPos);
|
159444
159885
|
const parent2 = token.parent;
|
159445
159886
|
if (errorCode === Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code) {
|
@@ -159461,23 +159902,25 @@ function getInfo10(sourceFile, tokenPos, errorCode, checker, program) {
|
|
159461
159902
|
if (!length(properties)) return void 0;
|
159462
159903
|
return { kind: 3 /* ObjectLiteral */, token: param.name, identifier: param.name.text, properties, parentDeclaration: parent2 };
|
159463
159904
|
}
|
159464
|
-
if (token.kind === 19 /* OpenBraceToken */
|
159465
|
-
const
|
159466
|
-
|
159467
|
-
checker.
|
159468
|
-
|
159469
|
-
|
159470
|
-
|
159471
|
-
|
159472
|
-
|
159473
|
-
|
159474
|
-
|
159475
|
-
|
159476
|
-
|
159905
|
+
if (token.kind === 19 /* OpenBraceToken */ || isSatisfiesExpression(parent2) || isReturnStatement(parent2)) {
|
159906
|
+
const expression = (isSatisfiesExpression(parent2) || isReturnStatement(parent2)) && parent2.expression ? parent2.expression : parent2;
|
159907
|
+
if (isObjectLiteralExpression(expression)) {
|
159908
|
+
const targetType = isSatisfiesExpression(parent2) ? checker.getTypeFromTypeNode(parent2.type) : checker.getContextualType(expression) || checker.getTypeAtLocation(expression);
|
159909
|
+
const properties = arrayFrom(checker.getUnmatchedProperties(
|
159910
|
+
checker.getTypeAtLocation(parent2),
|
159911
|
+
targetType.getNonNullableType(),
|
159912
|
+
/*requireOptionalProperties*/
|
159913
|
+
false,
|
159914
|
+
/*matchDiscriminantProperties*/
|
159915
|
+
false
|
159916
|
+
));
|
159917
|
+
if (!length(properties)) return void 0;
|
159918
|
+
return { kind: 3 /* ObjectLiteral */, token: parent2, identifier: void 0, properties, parentDeclaration: expression, indentation: isReturnStatement(expression.parent) || isYieldExpression(expression.parent) ? 0 : void 0 };
|
159919
|
+
}
|
159477
159920
|
}
|
159478
159921
|
if (!isMemberName(token)) return void 0;
|
159479
159922
|
if (isIdentifier(token) && hasInitializer(parent2) && parent2.initializer && isObjectLiteralExpression(parent2.initializer)) {
|
159480
|
-
const targetType = (
|
159923
|
+
const targetType = (_a = checker.getContextualType(token) || checker.getTypeAtLocation(token)) == null ? void 0 : _a.getNonNullableType();
|
159481
159924
|
const properties = arrayFrom(checker.getUnmatchedProperties(
|
159482
159925
|
checker.getTypeAtLocation(parent2.initializer),
|
159483
159926
|
targetType,
|
@@ -159496,7 +159939,7 @@ function getInfo10(sourceFile, tokenPos, errorCode, checker, program) {
|
|
159496
159939
|
return { kind: 4 /* JsxAttributes */, token, attributes, parentDeclaration: token.parent };
|
159497
159940
|
}
|
159498
159941
|
if (isIdentifier(token)) {
|
159499
|
-
const type = (
|
159942
|
+
const type = (_b = checker.getContextualType(token)) == null ? void 0 : _b.getNonNullableType();
|
159500
159943
|
if (type && getObjectFlags(type) & 16 /* Anonymous */) {
|
159501
159944
|
const signature = firstOrUndefined(checker.getSignaturesOfType(type, 0 /* Call */));
|
159502
159945
|
if (signature === void 0) return void 0;
|
@@ -160499,9 +160942,9 @@ function getSuggestion(messageText) {
|
|
160499
160942
|
// src/services/codefixes/fixModuleAndTargetOptions.ts
|
160500
160943
|
registerCodeFix({
|
160501
160944
|
errorCodes: [
|
160502
|
-
Diagnostics.
|
160503
|
-
Diagnostics.
|
160504
|
-
Diagnostics.
|
160945
|
+
Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,
|
160946
|
+
Diagnostics.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,
|
160947
|
+
Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code
|
160505
160948
|
],
|
160506
160949
|
getCodeActions: function getCodeActionsToFixModuleAndTarget(context) {
|
160507
160950
|
const compilerOptions = context.program.getCompilerOptions();
|
@@ -160970,6 +161413,8 @@ registerCodeFix({
|
|
160970
161413
|
break;
|
160971
161414
|
} else if (canDeleteEntireVariableStatement(sourceFile, token)) {
|
160972
161415
|
deleteEntireVariableStatement(changes, sourceFile, token.parent);
|
161416
|
+
} else if (isIdentifier(token) && isFunctionDeclaration(token.parent)) {
|
161417
|
+
deleteFunctionLikeDeclaration(changes, sourceFile, token.parent);
|
160973
161418
|
} else {
|
160974
161419
|
tryDeleteDeclaration(
|
160975
161420
|
sourceFile,
|
@@ -163937,12 +164382,10 @@ function typeToAutoImportableTypeNode(checker, importAdder, type, contextNode, s
|
|
163937
164382
|
return typeNodeToAutoImportableTypeNode(typeNode, importAdder, scriptTarget);
|
163938
164383
|
}
|
163939
164384
|
function typeNodeToAutoImportableTypeNode(typeNode, importAdder, scriptTarget) {
|
163940
|
-
|
163941
|
-
|
163942
|
-
|
163943
|
-
|
163944
|
-
typeNode = importableReference.typeNode;
|
163945
|
-
}
|
164385
|
+
const importableReference = tryGetAutoImportableReferenceFromTypeNode(typeNode, scriptTarget);
|
164386
|
+
if (importableReference) {
|
164387
|
+
importSymbols(importAdder, importableReference.symbols);
|
164388
|
+
typeNode = importableReference.typeNode;
|
163946
164389
|
}
|
163947
164390
|
return getSynthesizedDeepClone(typeNode);
|
163948
164391
|
}
|
@@ -172461,7 +172904,7 @@ var Core;
|
|
172461
172904
|
} else {
|
172462
172905
|
addIfImplementation(body);
|
172463
172906
|
}
|
172464
|
-
} else if (isAssertionExpression(typeHavingNode)) {
|
172907
|
+
} else if (isAssertionExpression(typeHavingNode) || isSatisfiesExpression(typeHavingNode)) {
|
172465
172908
|
addIfImplementation(typeHavingNode.expression);
|
172466
172909
|
}
|
172467
172910
|
}
|
@@ -172900,7 +173343,10 @@ function getDefinitionAtPosition(program, sourceFile, position, searchOtherFiles
|
|
172900
173343
|
const { parent: parent2 } = node;
|
172901
173344
|
const typeChecker = program.getTypeChecker();
|
172902
173345
|
if (node.kind === 164 /* OverrideKeyword */ || isIdentifier(node) && isJSDocOverrideTag(parent2) && parent2.tagName === node) {
|
172903
|
-
|
173346
|
+
const def = getDefinitionFromOverriddenMember(typeChecker, node);
|
173347
|
+
if (def !== void 0 || node.kind !== 164 /* OverrideKeyword */) {
|
173348
|
+
return def || emptyArray;
|
173349
|
+
}
|
172904
173350
|
}
|
172905
173351
|
if (isJumpStatementTarget(node)) {
|
172906
173352
|
const label = getTargetLabel(node.parent, node.text);
|
@@ -172914,9 +173360,6 @@ function getDefinitionAtPosition(program, sourceFile, position, searchOtherFiles
|
|
172914
173360
|
)] : void 0;
|
172915
173361
|
}
|
172916
173362
|
switch (node.kind) {
|
172917
|
-
case 107 /* ReturnKeyword */:
|
172918
|
-
const functionDeclaration = findAncestor(node.parent, (n) => isClassStaticBlockDeclaration(n) ? "quit" : isFunctionLikeDeclaration(n));
|
172919
|
-
return functionDeclaration ? [createDefinitionFromSignatureDeclaration(typeChecker, functionDeclaration)] : void 0;
|
172920
173363
|
case 90 /* DefaultKeyword */:
|
172921
173364
|
if (!isDefaultClause(node.parent)) {
|
172922
173365
|
break;
|
@@ -172929,15 +173372,14 @@ function getDefinitionAtPosition(program, sourceFile, position, searchOtherFiles
|
|
172929
173372
|
}
|
172930
173373
|
break;
|
172931
173374
|
}
|
172932
|
-
|
172933
|
-
|
172934
|
-
|
172935
|
-
|
172936
|
-
|
172937
|
-
|
172938
|
-
|
172939
|
-
|
172940
|
-
return isGeneratorFunction ? [createDefinitionFromSignatureDeclaration(typeChecker, functionDeclaration)] : void 0;
|
173375
|
+
let findFunctionDecl;
|
173376
|
+
switch (node.kind) {
|
173377
|
+
case 107 /* ReturnKeyword */:
|
173378
|
+
case 135 /* AwaitKeyword */:
|
173379
|
+
case 127 /* YieldKeyword */:
|
173380
|
+
findFunctionDecl = isFunctionLikeDeclaration;
|
173381
|
+
const functionDeclaration = findAncestor(node, findFunctionDecl);
|
173382
|
+
return functionDeclaration ? [createDefinitionFromSignatureDeclaration(typeChecker, functionDeclaration)] : void 0;
|
172941
173383
|
}
|
172942
173384
|
if (isStaticModifier(node) && isClassStaticBlockDeclaration(node.parent)) {
|
172943
173385
|
const classDecl = node.parent.parent;
|
@@ -172987,6 +173429,9 @@ function getDefinitionAtPosition(program, sourceFile, position, searchOtherFiles
|
|
172987
173429
|
}];
|
172988
173430
|
}
|
172989
173431
|
}
|
173432
|
+
if (isModifier(node) && (isClassElement(parent2) || isNamedDeclaration(parent2))) {
|
173433
|
+
symbol = parent2.symbol;
|
173434
|
+
}
|
172990
173435
|
if (!symbol) {
|
172991
173436
|
return concatenate(fileReferenceDefinition, getDefinitionInfoForIndexSignatures(node, typeChecker));
|
172992
173437
|
}
|
@@ -173183,12 +173628,16 @@ function getTypeDefinitionAtPosition(typeChecker, sourceFile, position) {
|
|
173183
173628
|
false
|
173184
173629
|
);
|
173185
173630
|
}
|
173186
|
-
|
173631
|
+
let { symbol, failedAliasResolution } = getSymbol(
|
173187
173632
|
node,
|
173188
173633
|
typeChecker,
|
173189
173634
|
/*stopAtAlias*/
|
173190
173635
|
false
|
173191
173636
|
);
|
173637
|
+
if (isModifier(node) && (isClassElement(node.parent) || isNamedDeclaration(node.parent))) {
|
173638
|
+
symbol = node.parent.symbol;
|
173639
|
+
failedAliasResolution = false;
|
173640
|
+
}
|
173192
173641
|
if (!symbol) return void 0;
|
173193
173642
|
const typeAtLocation = typeChecker.getTypeOfSymbolAtLocation(symbol, node);
|
173194
173643
|
const returnType = tryGetReturnTypeOfFunction(symbol, typeAtLocation, typeChecker);
|
@@ -173693,22 +174142,24 @@ function provideInlayHints(context) {
|
|
173693
174142
|
if (!signature) {
|
173694
174143
|
return;
|
173695
174144
|
}
|
173696
|
-
|
173697
|
-
|
173698
|
-
if (
|
173699
|
-
|
173700
|
-
}
|
173701
|
-
const effectiveTypeAnnotation = getEffectiveTypeAnnotationNode(param);
|
173702
|
-
if (effectiveTypeAnnotation) {
|
173703
|
-
continue;
|
174145
|
+
let pos = 0;
|
174146
|
+
for (const param of node.parameters) {
|
174147
|
+
if (isHintableDeclaration(param)) {
|
174148
|
+
addParameterTypeHint(param, parameterIsThisKeyword(param) ? signature.thisParameter : signature.parameters[pos]);
|
173704
174149
|
}
|
173705
|
-
|
173706
|
-
if (!typeHints) {
|
174150
|
+
if (parameterIsThisKeyword(param)) {
|
173707
174151
|
continue;
|
173708
174152
|
}
|
173709
|
-
|
174153
|
+
pos++;
|
173710
174154
|
}
|
173711
174155
|
}
|
174156
|
+
function addParameterTypeHint(node, symbol) {
|
174157
|
+
const effectiveTypeAnnotation = getEffectiveTypeAnnotationNode(node);
|
174158
|
+
if (effectiveTypeAnnotation || symbol === void 0) return;
|
174159
|
+
const typeHints = getParameterDeclarationTypeHints(symbol);
|
174160
|
+
if (typeHints === void 0) return;
|
174161
|
+
addTypeHints(typeHints, node.questionToken ? node.questionToken.end : node.name.end);
|
174162
|
+
}
|
173712
174163
|
function getParameterDeclarationTypeHints(symbol) {
|
173713
174164
|
const valueDeclaration = symbol.valueDeclaration;
|
173714
174165
|
if (!valueDeclaration || !isParameter(valueDeclaration)) {
|
@@ -182067,6 +182518,7 @@ __export(ts_exports2, {
|
|
182067
182518
|
createPrinterWithRemoveCommentsNeverAsciiEscape: () => createPrinterWithRemoveCommentsNeverAsciiEscape,
|
182068
182519
|
createPrinterWithRemoveCommentsOmitTrailingSemicolon: () => createPrinterWithRemoveCommentsOmitTrailingSemicolon,
|
182069
182520
|
createProgram: () => createProgram,
|
182521
|
+
createProgramDiagnostics: () => createProgramDiagnostics,
|
182070
182522
|
createProgramHost: () => createProgramHost,
|
182071
182523
|
createPropertyNameNodeForIdentifierOrLiteral: () => createPropertyNameNodeForIdentifierOrLiteral,
|
182072
182524
|
createQueue: () => createQueue,
|
@@ -182236,6 +182688,8 @@ __export(ts_exports2, {
|
|
182236
182688
|
forEachLeadingCommentRange: () => forEachLeadingCommentRange,
|
182237
182689
|
forEachNameInAccessChainWalkingLeft: () => forEachNameInAccessChainWalkingLeft,
|
182238
182690
|
forEachNameOfDefaultExport: () => forEachNameOfDefaultExport,
|
182691
|
+
forEachOptionsSyntaxByName: () => forEachOptionsSyntaxByName,
|
182692
|
+
forEachProjectReference: () => forEachProjectReference,
|
182239
182693
|
forEachPropertyAssignment: () => forEachPropertyAssignment,
|
182240
182694
|
forEachResolvedProjectReference: () => forEachResolvedProjectReference,
|
182241
182695
|
forEachReturnStatement: () => forEachReturnStatement,
|
@@ -182475,6 +182929,8 @@ __export(ts_exports2, {
|
|
182475
182929
|
getLeadingCommentRangesOfNode: () => getLeadingCommentRangesOfNode,
|
182476
182930
|
getLeftmostAccessExpression: () => getLeftmostAccessExpression,
|
182477
182931
|
getLeftmostExpression: () => getLeftmostExpression,
|
182932
|
+
getLibFileNameFromLibReference: () => getLibFileNameFromLibReference,
|
182933
|
+
getLibNameFromLibReference: () => getLibNameFromLibReference,
|
182478
182934
|
getLibraryNameFromLibFileName: () => getLibraryNameFromLibFileName,
|
182479
182935
|
getLineAndCharacterOfPosition: () => getLineAndCharacterOfPosition,
|
182480
182936
|
getLineInfo: () => getLineInfo,
|
@@ -182547,6 +183003,8 @@ __export(ts_exports2, {
|
|
182547
183003
|
getOptionFromName: () => getOptionFromName,
|
182548
183004
|
getOptionsForLibraryResolution: () => getOptionsForLibraryResolution,
|
182549
183005
|
getOptionsNameMap: () => getOptionsNameMap,
|
183006
|
+
getOptionsSyntaxByArrayElementValue: () => getOptionsSyntaxByArrayElementValue,
|
183007
|
+
getOptionsSyntaxByValue: () => getOptionsSyntaxByValue,
|
182550
183008
|
getOrCreateEmitNode: () => getOrCreateEmitNode,
|
182551
183009
|
getOrUpdate: () => getOrUpdate,
|
182552
183010
|
getOriginalNode: () => getOriginalNode,
|
@@ -182583,7 +183041,6 @@ __export(ts_exports2, {
|
|
182583
183041
|
getPrivateIdentifier: () => getPrivateIdentifier,
|
182584
183042
|
getProperties: () => getProperties,
|
182585
183043
|
getProperty: () => getProperty,
|
182586
|
-
getPropertyArrayElementValue: () => getPropertyArrayElementValue,
|
182587
183044
|
getPropertyAssignmentAliasLikeExpression: () => getPropertyAssignmentAliasLikeExpression,
|
182588
183045
|
getPropertyNameForPropertyNameNode: () => getPropertyNameForPropertyNameNode,
|
182589
183046
|
getPropertyNameFromType: () => getPropertyNameFromType,
|
@@ -183494,6 +183951,7 @@ __export(ts_exports2, {
|
|
183494
183951
|
moduleResolutionUsesNodeModules: () => moduleResolutionUsesNodeModules,
|
183495
183952
|
moduleSpecifierToValidIdentifier: () => moduleSpecifierToValidIdentifier,
|
183496
183953
|
moduleSpecifiers: () => ts_moduleSpecifiers_exports,
|
183954
|
+
moduleSupportsImportAttributes: () => moduleSupportsImportAttributes,
|
183497
183955
|
moduleSymbolToValidIdentifier: () => moduleSymbolToValidIdentifier,
|
183498
183956
|
moveEmitHelpers: () => moveEmitHelpers,
|
183499
183957
|
moveRangeEnd: () => moveRangeEnd,
|
@@ -184868,6 +185326,7 @@ var ModuleKind2 = /* @__PURE__ */ ((ModuleKind3) => {
|
|
184868
185326
|
ModuleKind3["ES2022"] = "es2022";
|
184869
185327
|
ModuleKind3["ESNext"] = "esnext";
|
184870
185328
|
ModuleKind3["Node16"] = "node16";
|
185329
|
+
ModuleKind3["Node18"] = "node18";
|
184871
185330
|
ModuleKind3["NodeNext"] = "nodenext";
|
184872
185331
|
ModuleKind3["Preserve"] = "preserve";
|
184873
185332
|
return ModuleKind3;
|
@@ -194897,20 +195356,19 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
|
|
194897
195356
|
try {
|
194898
195357
|
codeActions = project.getLanguageService().getCodeFixesAtPosition(file, startPosition, endPosition, args.errorCodes, this.getFormatOptions(file), this.getPreferences(file));
|
194899
195358
|
} catch (e) {
|
195359
|
+
const error2 = e instanceof Error ? e : new Error(e);
|
194900
195360
|
const ls = project.getLanguageService();
|
194901
195361
|
const existingDiagCodes = [
|
194902
195362
|
...ls.getSyntacticDiagnostics(file),
|
194903
195363
|
...ls.getSemanticDiagnostics(file),
|
194904
195364
|
...ls.getSuggestionDiagnostics(file)
|
194905
|
-
].map(
|
194906
|
-
(d) => decodedTextSpanIntersectsWith(startPosition, endPosition - startPosition, d.start, d.length) && d.code
|
194907
|
-
);
|
195365
|
+
].filter((d) => decodedTextSpanIntersectsWith(startPosition, endPosition - startPosition, d.start, d.length)).map((d) => d.code);
|
194908
195366
|
const badCode = args.errorCodes.find((c) => !existingDiagCodes.includes(c));
|
194909
195367
|
if (badCode !== void 0) {
|
194910
|
-
|
194911
|
-
${
|
195368
|
+
error2.message += `
|
195369
|
+
Additional information: BADCLIENT: Bad error code, ${badCode} not found in range ${startPosition}..${endPosition} (found: ${existingDiagCodes.join(", ")})`;
|
194912
195370
|
}
|
194913
|
-
throw
|
195371
|
+
throw error2;
|
194914
195372
|
}
|
194915
195373
|
return simplifiedResult ? codeActions.map((codeAction) => this.mapCodeFixAction(codeAction)) : codeActions;
|
194916
195374
|
}
|
@@ -196813,6 +197271,7 @@ if (typeof console !== "undefined") {
|
|
196813
197271
|
createPrinterWithRemoveCommentsNeverAsciiEscape,
|
196814
197272
|
createPrinterWithRemoveCommentsOmitTrailingSemicolon,
|
196815
197273
|
createProgram,
|
197274
|
+
createProgramDiagnostics,
|
196816
197275
|
createProgramHost,
|
196817
197276
|
createPropertyNameNodeForIdentifierOrLiteral,
|
196818
197277
|
createQueue,
|
@@ -196982,6 +197441,8 @@ if (typeof console !== "undefined") {
|
|
196982
197441
|
forEachLeadingCommentRange,
|
196983
197442
|
forEachNameInAccessChainWalkingLeft,
|
196984
197443
|
forEachNameOfDefaultExport,
|
197444
|
+
forEachOptionsSyntaxByName,
|
197445
|
+
forEachProjectReference,
|
196985
197446
|
forEachPropertyAssignment,
|
196986
197447
|
forEachResolvedProjectReference,
|
196987
197448
|
forEachReturnStatement,
|
@@ -197221,6 +197682,8 @@ if (typeof console !== "undefined") {
|
|
197221
197682
|
getLeadingCommentRangesOfNode,
|
197222
197683
|
getLeftmostAccessExpression,
|
197223
197684
|
getLeftmostExpression,
|
197685
|
+
getLibFileNameFromLibReference,
|
197686
|
+
getLibNameFromLibReference,
|
197224
197687
|
getLibraryNameFromLibFileName,
|
197225
197688
|
getLineAndCharacterOfPosition,
|
197226
197689
|
getLineInfo,
|
@@ -197293,6 +197756,8 @@ if (typeof console !== "undefined") {
|
|
197293
197756
|
getOptionFromName,
|
197294
197757
|
getOptionsForLibraryResolution,
|
197295
197758
|
getOptionsNameMap,
|
197759
|
+
getOptionsSyntaxByArrayElementValue,
|
197760
|
+
getOptionsSyntaxByValue,
|
197296
197761
|
getOrCreateEmitNode,
|
197297
197762
|
getOrUpdate,
|
197298
197763
|
getOriginalNode,
|
@@ -197329,7 +197794,6 @@ if (typeof console !== "undefined") {
|
|
197329
197794
|
getPrivateIdentifier,
|
197330
197795
|
getProperties,
|
197331
197796
|
getProperty,
|
197332
|
-
getPropertyArrayElementValue,
|
197333
197797
|
getPropertyAssignmentAliasLikeExpression,
|
197334
197798
|
getPropertyNameForPropertyNameNode,
|
197335
197799
|
getPropertyNameFromType,
|
@@ -198240,6 +198704,7 @@ if (typeof console !== "undefined") {
|
|
198240
198704
|
moduleResolutionUsesNodeModules,
|
198241
198705
|
moduleSpecifierToValidIdentifier,
|
198242
198706
|
moduleSpecifiers,
|
198707
|
+
moduleSupportsImportAttributes,
|
198243
198708
|
moduleSymbolToValidIdentifier,
|
198244
198709
|
moveEmitHelpers,
|
198245
198710
|
moveRangeEnd,
|