wice_grid 7.1.0 → 7.1.1
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/CHANGELOG.md +8 -1
- data/Gemfile.lock +44 -44
- data/README.md +1 -1
- data/lib/wice_grid.rb +15 -0
- data/package.json +0 -3
- data/wice_grid.gemspec +1 -1
- metadata +2 -2485
- data/node_modules/.bin/browserslist +0 -1
- data/node_modules/.bin/cake +0 -1
- data/node_modules/.bin/coffee +0 -1
- data/node_modules/.bin/decaffeinate +0 -1
- data/node_modules/.bin/esparse +0 -1
- data/node_modules/.bin/esvalidate +0 -1
- data/node_modules/.bin/is-ci +0 -1
- data/node_modules/.bin/is-ci-cli +0 -1
- data/node_modules/.bin/jsesc +0 -1
- data/node_modules/.bin/json5 +0 -1
- data/node_modules/.bin/node-which +0 -1
- data/node_modules/.bin/parser +0 -1
- data/node_modules/.bin/resolve +0 -1
- data/node_modules/.bin/semver +0 -1
- data/node_modules/.bin/update-browserslist-db +0 -1
- data/node_modules/.yarn-integrity +0 -131
- data/node_modules/@ampproject/remapping/LICENSE +0 -202
- data/node_modules/@ampproject/remapping/README.md +0 -218
- data/node_modules/@ampproject/remapping/dist/remapping.mjs +0 -197
- data/node_modules/@ampproject/remapping/dist/remapping.mjs.map +0 -1
- data/node_modules/@ampproject/remapping/dist/remapping.umd.js +0 -202
- data/node_modules/@ampproject/remapping/dist/remapping.umd.js.map +0 -1
- data/node_modules/@ampproject/remapping/dist/types/build-source-map-tree.d.ts +0 -14
- data/node_modules/@ampproject/remapping/dist/types/remapping.d.ts +0 -20
- data/node_modules/@ampproject/remapping/dist/types/source-map-tree.d.ts +0 -45
- data/node_modules/@ampproject/remapping/dist/types/source-map.d.ts +0 -18
- data/node_modules/@ampproject/remapping/dist/types/types.d.ts +0 -15
- data/node_modules/@ampproject/remapping/package.json +0 -75
- data/node_modules/@babel/code-frame/LICENSE +0 -22
- data/node_modules/@babel/code-frame/README.md +0 -19
- data/node_modules/@babel/code-frame/lib/index.js +0 -156
- data/node_modules/@babel/code-frame/lib/index.js.map +0 -1
- data/node_modules/@babel/code-frame/package.json +0 -30
- data/node_modules/@babel/compat-data/LICENSE +0 -22
- data/node_modules/@babel/compat-data/README.md +0 -19
- data/node_modules/@babel/compat-data/corejs2-built-ins.js +0 -2
- data/node_modules/@babel/compat-data/corejs3-shipped-proposals.js +0 -2
- data/node_modules/@babel/compat-data/data/corejs2-built-ins.json +0 -2090
- data/node_modules/@babel/compat-data/data/corejs3-shipped-proposals.json +0 -5
- data/node_modules/@babel/compat-data/data/native-modules.json +0 -18
- data/node_modules/@babel/compat-data/data/overlapping-plugins.json +0 -33
- data/node_modules/@babel/compat-data/data/plugin-bugfixes.json +0 -213
- data/node_modules/@babel/compat-data/data/plugins.json +0 -794
- data/node_modules/@babel/compat-data/native-modules.js +0 -1
- data/node_modules/@babel/compat-data/overlapping-plugins.js +0 -1
- data/node_modules/@babel/compat-data/package.json +0 -40
- data/node_modules/@babel/compat-data/plugin-bugfixes.js +0 -1
- data/node_modules/@babel/compat-data/plugins.js +0 -1
- data/node_modules/@babel/core/LICENSE +0 -22
- data/node_modules/@babel/core/README.md +0 -19
- data/node_modules/@babel/core/cjs-proxy.cjs +0 -59
- data/node_modules/@babel/core/lib/config/cache-contexts.js +0 -3
- data/node_modules/@babel/core/lib/config/cache-contexts.js.map +0 -1
- data/node_modules/@babel/core/lib/config/caching.js +0 -261
- data/node_modules/@babel/core/lib/config/caching.js.map +0 -1
- data/node_modules/@babel/core/lib/config/config-chain.js +0 -469
- data/node_modules/@babel/core/lib/config/config-chain.js.map +0 -1
- data/node_modules/@babel/core/lib/config/config-descriptors.js +0 -190
- data/node_modules/@babel/core/lib/config/config-descriptors.js.map +0 -1
- data/node_modules/@babel/core/lib/config/files/configuration.js +0 -286
- data/node_modules/@babel/core/lib/config/files/configuration.js.map +0 -1
- data/node_modules/@babel/core/lib/config/files/import.cjs +0 -6
- data/node_modules/@babel/core/lib/config/files/import.cjs.map +0 -1
- data/node_modules/@babel/core/lib/config/files/index-browser.js +0 -58
- data/node_modules/@babel/core/lib/config/files/index-browser.js.map +0 -1
- data/node_modules/@babel/core/lib/config/files/index.js +0 -78
- data/node_modules/@babel/core/lib/config/files/index.js.map +0 -1
- data/node_modules/@babel/core/lib/config/files/module-types.js +0 -176
- data/node_modules/@babel/core/lib/config/files/module-types.js.map +0 -1
- data/node_modules/@babel/core/lib/config/files/package.js +0 -61
- data/node_modules/@babel/core/lib/config/files/package.js.map +0 -1
- data/node_modules/@babel/core/lib/config/files/plugins.js +0 -217
- data/node_modules/@babel/core/lib/config/files/plugins.js.map +0 -1
- data/node_modules/@babel/core/lib/config/files/types.js +0 -3
- data/node_modules/@babel/core/lib/config/files/types.js.map +0 -1
- data/node_modules/@babel/core/lib/config/files/utils.js +0 -36
- data/node_modules/@babel/core/lib/config/files/utils.js.map +0 -1
- data/node_modules/@babel/core/lib/config/full.js +0 -310
- data/node_modules/@babel/core/lib/config/full.js.map +0 -1
- data/node_modules/@babel/core/lib/config/helpers/config-api.js +0 -84
- data/node_modules/@babel/core/lib/config/helpers/config-api.js.map +0 -1
- data/node_modules/@babel/core/lib/config/helpers/deep-array.js +0 -23
- data/node_modules/@babel/core/lib/config/helpers/deep-array.js.map +0 -1
- data/node_modules/@babel/core/lib/config/helpers/environment.js +0 -12
- data/node_modules/@babel/core/lib/config/helpers/environment.js.map +0 -1
- data/node_modules/@babel/core/lib/config/index.js +0 -93
- data/node_modules/@babel/core/lib/config/index.js.map +0 -1
- data/node_modules/@babel/core/lib/config/item.js +0 -67
- data/node_modules/@babel/core/lib/config/item.js.map +0 -1
- data/node_modules/@babel/core/lib/config/partial.js +0 -158
- data/node_modules/@babel/core/lib/config/partial.js.map +0 -1
- data/node_modules/@babel/core/lib/config/pattern-to-regex.js +0 -38
- data/node_modules/@babel/core/lib/config/pattern-to-regex.js.map +0 -1
- data/node_modules/@babel/core/lib/config/plugin.js +0 -33
- data/node_modules/@babel/core/lib/config/plugin.js.map +0 -1
- data/node_modules/@babel/core/lib/config/printer.js +0 -113
- data/node_modules/@babel/core/lib/config/printer.js.map +0 -1
- data/node_modules/@babel/core/lib/config/resolve-targets-browser.js +0 -41
- data/node_modules/@babel/core/lib/config/resolve-targets-browser.js.map +0 -1
- data/node_modules/@babel/core/lib/config/resolve-targets.js +0 -61
- data/node_modules/@babel/core/lib/config/resolve-targets.js.map +0 -1
- data/node_modules/@babel/core/lib/config/util.js +0 -31
- data/node_modules/@babel/core/lib/config/util.js.map +0 -1
- data/node_modules/@babel/core/lib/config/validation/option-assertions.js +0 -277
- data/node_modules/@babel/core/lib/config/validation/option-assertions.js.map +0 -1
- data/node_modules/@babel/core/lib/config/validation/options.js +0 -189
- data/node_modules/@babel/core/lib/config/validation/options.js.map +0 -1
- data/node_modules/@babel/core/lib/config/validation/plugins.js +0 -67
- data/node_modules/@babel/core/lib/config/validation/plugins.js.map +0 -1
- data/node_modules/@babel/core/lib/config/validation/removed.js +0 -68
- data/node_modules/@babel/core/lib/config/validation/removed.js.map +0 -1
- data/node_modules/@babel/core/lib/errors/config-error.js +0 -18
- data/node_modules/@babel/core/lib/errors/config-error.js.map +0 -1
- data/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js +0 -98
- data/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js.map +0 -1
- data/node_modules/@babel/core/lib/gensync-utils/async.js +0 -90
- data/node_modules/@babel/core/lib/gensync-utils/async.js.map +0 -1
- data/node_modules/@babel/core/lib/gensync-utils/fs.js +0 -31
- data/node_modules/@babel/core/lib/gensync-utils/fs.js.map +0 -1
- data/node_modules/@babel/core/lib/gensync-utils/functional.js +0 -58
- data/node_modules/@babel/core/lib/gensync-utils/functional.js.map +0 -1
- data/node_modules/@babel/core/lib/index.js +0 -242
- data/node_modules/@babel/core/lib/index.js.map +0 -1
- data/node_modules/@babel/core/lib/parse.js +0 -47
- data/node_modules/@babel/core/lib/parse.js.map +0 -1
- data/node_modules/@babel/core/lib/parser/index.js +0 -79
- data/node_modules/@babel/core/lib/parser/index.js.map +0 -1
- data/node_modules/@babel/core/lib/parser/util/missing-plugin-helper.js +0 -339
- data/node_modules/@babel/core/lib/parser/util/missing-plugin-helper.js.map +0 -1
- data/node_modules/@babel/core/lib/tools/build-external-helpers.js +0 -144
- data/node_modules/@babel/core/lib/tools/build-external-helpers.js.map +0 -1
- data/node_modules/@babel/core/lib/transform-ast.js +0 -50
- data/node_modules/@babel/core/lib/transform-ast.js.map +0 -1
- data/node_modules/@babel/core/lib/transform-file-browser.js +0 -23
- data/node_modules/@babel/core/lib/transform-file-browser.js.map +0 -1
- data/node_modules/@babel/core/lib/transform-file.js +0 -40
- data/node_modules/@babel/core/lib/transform-file.js.map +0 -1
- data/node_modules/@babel/core/lib/transform.js +0 -49
- data/node_modules/@babel/core/lib/transform.js.map +0 -1
- data/node_modules/@babel/core/lib/transformation/block-hoist-plugin.js +0 -84
- data/node_modules/@babel/core/lib/transformation/block-hoist-plugin.js.map +0 -1
- data/node_modules/@babel/core/lib/transformation/file/file.js +0 -216
- data/node_modules/@babel/core/lib/transformation/file/file.js.map +0 -1
- data/node_modules/@babel/core/lib/transformation/file/generate.js +0 -84
- data/node_modules/@babel/core/lib/transformation/file/generate.js.map +0 -1
- data/node_modules/@babel/core/lib/transformation/file/merge-map.js +0 -37
- data/node_modules/@babel/core/lib/transformation/file/merge-map.js.map +0 -1
- data/node_modules/@babel/core/lib/transformation/index.js +0 -101
- data/node_modules/@babel/core/lib/transformation/index.js.map +0 -1
- data/node_modules/@babel/core/lib/transformation/normalize-file.js +0 -129
- data/node_modules/@babel/core/lib/transformation/normalize-file.js.map +0 -1
- data/node_modules/@babel/core/lib/transformation/normalize-opts.js +0 -59
- data/node_modules/@babel/core/lib/transformation/normalize-opts.js.map +0 -1
- data/node_modules/@babel/core/lib/transformation/plugin-pass.js +0 -48
- data/node_modules/@babel/core/lib/transformation/plugin-pass.js.map +0 -1
- data/node_modules/@babel/core/lib/transformation/util/clone-deep.js +0 -36
- data/node_modules/@babel/core/lib/transformation/util/clone-deep.js.map +0 -1
- data/node_modules/@babel/core/lib/vendor/import-meta-resolve.js +0 -1043
- data/node_modules/@babel/core/lib/vendor/import-meta-resolve.js.map +0 -1
- data/node_modules/@babel/core/node_modules/.bin/json5 +0 -1
- data/node_modules/@babel/core/node_modules/.bin/parser +0 -1
- data/node_modules/@babel/core/node_modules/.bin/semver +0 -1
- data/node_modules/@babel/core/package.json +0 -82
- data/node_modules/@babel/core/src/config/files/index-browser.ts +0 -109
- data/node_modules/@babel/core/src/config/files/index.ts +0 -29
- data/node_modules/@babel/core/src/config/resolve-targets-browser.ts +0 -40
- data/node_modules/@babel/core/src/config/resolve-targets.ts +0 -56
- data/node_modules/@babel/core/src/transform-file-browser.ts +0 -31
- data/node_modules/@babel/core/src/transform-file.ts +0 -55
- data/node_modules/@babel/generator/LICENSE +0 -22
- data/node_modules/@babel/generator/README.md +0 -19
- data/node_modules/@babel/generator/lib/buffer.js +0 -323
- data/node_modules/@babel/generator/lib/buffer.js.map +0 -1
- data/node_modules/@babel/generator/lib/generators/base.js +0 -92
- data/node_modules/@babel/generator/lib/generators/base.js.map +0 -1
- data/node_modules/@babel/generator/lib/generators/classes.js +0 -177
- data/node_modules/@babel/generator/lib/generators/classes.js.map +0 -1
- data/node_modules/@babel/generator/lib/generators/expressions.js +0 -309
- data/node_modules/@babel/generator/lib/generators/expressions.js.map +0 -1
- data/node_modules/@babel/generator/lib/generators/flow.js +0 -668
- data/node_modules/@babel/generator/lib/generators/flow.js.map +0 -1
- data/node_modules/@babel/generator/lib/generators/index.js +0 -128
- data/node_modules/@babel/generator/lib/generators/index.js.map +0 -1
- data/node_modules/@babel/generator/lib/generators/jsx.js +0 -123
- data/node_modules/@babel/generator/lib/generators/jsx.js.map +0 -1
- data/node_modules/@babel/generator/lib/generators/methods.js +0 -173
- data/node_modules/@babel/generator/lib/generators/methods.js.map +0 -1
- data/node_modules/@babel/generator/lib/generators/modules.js +0 -274
- data/node_modules/@babel/generator/lib/generators/modules.js.map +0 -1
- data/node_modules/@babel/generator/lib/generators/statements.js +0 -275
- data/node_modules/@babel/generator/lib/generators/statements.js.map +0 -1
- data/node_modules/@babel/generator/lib/generators/template-literals.js +0 -31
- data/node_modules/@babel/generator/lib/generators/template-literals.js.map +0 -1
- data/node_modules/@babel/generator/lib/generators/types.js +0 -225
- data/node_modules/@babel/generator/lib/generators/types.js.map +0 -1
- data/node_modules/@babel/generator/lib/generators/typescript.js +0 -690
- data/node_modules/@babel/generator/lib/generators/typescript.js.map +0 -1
- data/node_modules/@babel/generator/lib/index.js +0 -89
- data/node_modules/@babel/generator/lib/index.js.map +0 -1
- data/node_modules/@babel/generator/lib/node/index.js +0 -76
- data/node_modules/@babel/generator/lib/node/index.js.map +0 -1
- data/node_modules/@babel/generator/lib/node/parentheses.js +0 -225
- data/node_modules/@babel/generator/lib/node/parentheses.js.map +0 -1
- data/node_modules/@babel/generator/lib/node/whitespace.js +0 -145
- data/node_modules/@babel/generator/lib/node/whitespace.js.map +0 -1
- data/node_modules/@babel/generator/lib/printer.js +0 -684
- data/node_modules/@babel/generator/lib/printer.js.map +0 -1
- data/node_modules/@babel/generator/lib/source-map.js +0 -85
- data/node_modules/@babel/generator/lib/source-map.js.map +0 -1
- data/node_modules/@babel/generator/node_modules/.bin/jsesc +0 -1
- data/node_modules/@babel/generator/package.json +0 -38
- data/node_modules/@babel/helper-compilation-targets/LICENSE +0 -22
- data/node_modules/@babel/helper-compilation-targets/README.md +0 -19
- data/node_modules/@babel/helper-compilation-targets/lib/debug.js +0 -28
- data/node_modules/@babel/helper-compilation-targets/lib/debug.js.map +0 -1
- data/node_modules/@babel/helper-compilation-targets/lib/filter-items.js +0 -67
- data/node_modules/@babel/helper-compilation-targets/lib/filter-items.js.map +0 -1
- data/node_modules/@babel/helper-compilation-targets/lib/index.js +0 -224
- data/node_modules/@babel/helper-compilation-targets/lib/index.js.map +0 -1
- data/node_modules/@babel/helper-compilation-targets/lib/options.js +0 -24
- data/node_modules/@babel/helper-compilation-targets/lib/options.js.map +0 -1
- data/node_modules/@babel/helper-compilation-targets/lib/pretty.js +0 -40
- data/node_modules/@babel/helper-compilation-targets/lib/pretty.js.map +0 -1
- data/node_modules/@babel/helper-compilation-targets/lib/targets.js +0 -28
- data/node_modules/@babel/helper-compilation-targets/lib/targets.js.map +0 -1
- data/node_modules/@babel/helper-compilation-targets/lib/utils.js +0 -58
- data/node_modules/@babel/helper-compilation-targets/lib/utils.js.map +0 -1
- data/node_modules/@babel/helper-compilation-targets/node_modules/.bin/browserslist +0 -1
- data/node_modules/@babel/helper-compilation-targets/node_modules/.bin/semver +0 -1
- data/node_modules/@babel/helper-compilation-targets/package.json +0 -43
- data/node_modules/@babel/helper-environment-visitor/LICENSE +0 -22
- data/node_modules/@babel/helper-environment-visitor/README.md +0 -19
- data/node_modules/@babel/helper-environment-visitor/lib/index.js +0 -51
- data/node_modules/@babel/helper-environment-visitor/lib/index.js.map +0 -1
- data/node_modules/@babel/helper-environment-visitor/package.json +0 -34
- data/node_modules/@babel/helper-function-name/LICENSE +0 -22
- data/node_modules/@babel/helper-function-name/README.md +0 -19
- data/node_modules/@babel/helper-function-name/lib/index.js +0 -170
- data/node_modules/@babel/helper-function-name/lib/index.js.map +0 -1
- data/node_modules/@babel/helper-function-name/package.json +0 -28
- data/node_modules/@babel/helper-hoist-variables/LICENSE +0 -22
- data/node_modules/@babel/helper-hoist-variables/README.md +0 -19
- data/node_modules/@babel/helper-hoist-variables/lib/index.js +0 -50
- data/node_modules/@babel/helper-hoist-variables/lib/index.js.map +0 -1
- data/node_modules/@babel/helper-hoist-variables/package.json +0 -27
- data/node_modules/@babel/helper-module-imports/LICENSE +0 -22
- data/node_modules/@babel/helper-module-imports/README.md +0 -19
- data/node_modules/@babel/helper-module-imports/lib/import-builder.js +0 -122
- data/node_modules/@babel/helper-module-imports/lib/import-builder.js.map +0 -1
- data/node_modules/@babel/helper-module-imports/lib/import-injector.js +0 -304
- data/node_modules/@babel/helper-module-imports/lib/import-injector.js.map +0 -1
- data/node_modules/@babel/helper-module-imports/lib/index.js +0 -37
- data/node_modules/@babel/helper-module-imports/lib/index.js.map +0 -1
- data/node_modules/@babel/helper-module-imports/lib/is-module.js +0 -11
- data/node_modules/@babel/helper-module-imports/lib/is-module.js.map +0 -1
- data/node_modules/@babel/helper-module-imports/package.json +0 -28
- data/node_modules/@babel/helper-module-transforms/LICENSE +0 -22
- data/node_modules/@babel/helper-module-transforms/README.md +0 -19
- data/node_modules/@babel/helper-module-transforms/lib/dynamic-import.js +0 -48
- data/node_modules/@babel/helper-module-transforms/lib/dynamic-import.js.map +0 -1
- data/node_modules/@babel/helper-module-transforms/lib/get-module-name.js +0 -48
- data/node_modules/@babel/helper-module-transforms/lib/get-module-name.js.map +0 -1
- data/node_modules/@babel/helper-module-transforms/lib/index.js +0 -380
- data/node_modules/@babel/helper-module-transforms/lib/index.js.map +0 -1
- data/node_modules/@babel/helper-module-transforms/lib/lazy-modules.js +0 -31
- data/node_modules/@babel/helper-module-transforms/lib/lazy-modules.js.map +0 -1
- data/node_modules/@babel/helper-module-transforms/lib/normalize-and-load-metadata.js +0 -358
- data/node_modules/@babel/helper-module-transforms/lib/normalize-and-load-metadata.js.map +0 -1
- data/node_modules/@babel/helper-module-transforms/lib/rewrite-live-references.js +0 -376
- data/node_modules/@babel/helper-module-transforms/lib/rewrite-live-references.js.map +0 -1
- data/node_modules/@babel/helper-module-transforms/lib/rewrite-this.js +0 -24
- data/node_modules/@babel/helper-module-transforms/lib/rewrite-this.js.map +0 -1
- data/node_modules/@babel/helper-module-transforms/package.json +0 -34
- data/node_modules/@babel/helper-simple-access/LICENSE +0 -22
- data/node_modules/@babel/helper-simple-access/README.md +0 -19
- data/node_modules/@babel/helper-simple-access/lib/index.js +0 -91
- data/node_modules/@babel/helper-simple-access/lib/index.js.map +0 -1
- data/node_modules/@babel/helper-simple-access/package.json +0 -28
- data/node_modules/@babel/helper-split-export-declaration/LICENSE +0 -22
- data/node_modules/@babel/helper-split-export-declaration/README.md +0 -19
- data/node_modules/@babel/helper-split-export-declaration/lib/index.js +0 -59
- data/node_modules/@babel/helper-split-export-declaration/lib/index.js.map +0 -1
- data/node_modules/@babel/helper-split-export-declaration/package.json +0 -27
- data/node_modules/@babel/helper-string-parser/LICENSE +0 -22
- data/node_modules/@babel/helper-string-parser/README.md +0 -19
- data/node_modules/@babel/helper-string-parser/lib/index.js +0 -295
- data/node_modules/@babel/helper-string-parser/lib/index.js.map +0 -1
- data/node_modules/@babel/helper-string-parser/package.json +0 -31
- data/node_modules/@babel/helper-validator-identifier/LICENSE +0 -22
- data/node_modules/@babel/helper-validator-identifier/README.md +0 -19
- data/node_modules/@babel/helper-validator-identifier/lib/identifier.js +0 -70
- data/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +0 -1
- data/node_modules/@babel/helper-validator-identifier/lib/index.js +0 -57
- data/node_modules/@babel/helper-validator-identifier/lib/index.js.map +0 -1
- data/node_modules/@babel/helper-validator-identifier/lib/keyword.js +0 -35
- data/node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +0 -1
- data/node_modules/@babel/helper-validator-identifier/package.json +0 -31
- data/node_modules/@babel/helper-validator-identifier/scripts/generate-identifier-regex.js +0 -73
- data/node_modules/@babel/helper-validator-option/LICENSE +0 -22
- data/node_modules/@babel/helper-validator-option/README.md +0 -19
- data/node_modules/@babel/helper-validator-option/lib/find-suggestion.js +0 -39
- data/node_modules/@babel/helper-validator-option/lib/find-suggestion.js.map +0 -1
- data/node_modules/@babel/helper-validator-option/lib/index.js +0 -21
- data/node_modules/@babel/helper-validator-option/lib/index.js.map +0 -1
- data/node_modules/@babel/helper-validator-option/lib/validator.js +0 -48
- data/node_modules/@babel/helper-validator-option/lib/validator.js.map +0 -1
- data/node_modules/@babel/helper-validator-option/package.json +0 -27
- data/node_modules/@babel/helpers/LICENSE +0 -22
- data/node_modules/@babel/helpers/README.md +0 -19
- data/node_modules/@babel/helpers/lib/helpers/AwaitValue.js +0 -11
- data/node_modules/@babel/helpers/lib/helpers/AwaitValue.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/OverloadYield.js +0 -12
- data/node_modules/@babel/helpers/lib/helpers/OverloadYield.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/applyDecoratedDescriptor.js +0 -31
- data/node_modules/@babel/helpers/lib/helpers/applyDecoratedDescriptor.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/applyDecs.js +0 -459
- data/node_modules/@babel/helpers/lib/helpers/applyDecs.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/applyDecs2203.js +0 -363
- data/node_modules/@babel/helpers/lib/helpers/applyDecs2203.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/applyDecs2203R.js +0 -376
- data/node_modules/@babel/helpers/lib/helpers/applyDecs2203R.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/applyDecs2301.js +0 -421
- data/node_modules/@babel/helpers/lib/helpers/applyDecs2301.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/applyDecs2305.js +0 -235
- data/node_modules/@babel/helpers/lib/helpers/applyDecs2305.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/applyDecs2311.js +0 -236
- data/node_modules/@babel/helpers/lib/helpers/applyDecs2311.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/arrayLikeToArray.js +0 -13
- data/node_modules/@babel/helpers/lib/helpers/arrayLikeToArray.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/arrayWithHoles.js +0 -11
- data/node_modules/@babel/helpers/lib/helpers/arrayWithHoles.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/arrayWithoutHoles.js +0 -12
- data/node_modules/@babel/helpers/lib/helpers/arrayWithoutHoles.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/assertClassBrand.js +0 -14
- data/node_modules/@babel/helpers/lib/helpers/assertClassBrand.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/assertThisInitialized.js +0 -14
- data/node_modules/@babel/helpers/lib/helpers/assertThisInitialized.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/asyncGeneratorDelegate.js +0 -52
- data/node_modules/@babel/helpers/lib/helpers/asyncGeneratorDelegate.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/asyncIterator.js +0 -70
- data/node_modules/@babel/helpers/lib/helpers/asyncIterator.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/asyncToGenerator.js +0 -38
- data/node_modules/@babel/helpers/lib/helpers/asyncToGenerator.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/awaitAsyncGenerator.js +0 -12
- data/node_modules/@babel/helpers/lib/helpers/awaitAsyncGenerator.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/callSuper.js +0 -15
- data/node_modules/@babel/helpers/lib/helpers/callSuper.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/checkInRHS.js +0 -14
- data/node_modules/@babel/helpers/lib/helpers/checkInRHS.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/checkPrivateRedeclaration.js +0 -13
- data/node_modules/@babel/helpers/lib/helpers/checkPrivateRedeclaration.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/classApplyDescriptorDestructureSet.js +0 -25
- data/node_modules/@babel/helpers/lib/helpers/classApplyDescriptorDestructureSet.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/classApplyDescriptorGet.js +0 -14
- data/node_modules/@babel/helpers/lib/helpers/classApplyDescriptorGet.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/classApplyDescriptorSet.js +0 -18
- data/node_modules/@babel/helpers/lib/helpers/classApplyDescriptorSet.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/classCallCheck.js +0 -13
- data/node_modules/@babel/helpers/lib/helpers/classCallCheck.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/classCheckPrivateStaticAccess.js +0 -12
- data/node_modules/@babel/helpers/lib/helpers/classCheckPrivateStaticAccess.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/classCheckPrivateStaticFieldDescriptor.js +0 -13
- data/node_modules/@babel/helpers/lib/helpers/classCheckPrivateStaticFieldDescriptor.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/classExtractFieldDescriptor.js +0 -12
- data/node_modules/@babel/helpers/lib/helpers/classExtractFieldDescriptor.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/classNameTDZError.js +0 -11
- data/node_modules/@babel/helpers/lib/helpers/classNameTDZError.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldDestructureSet.js +0 -14
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldDestructureSet.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldGet.js +0 -14
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldGet.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldGet2.js +0 -12
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldGet2.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldInitSpec.js +0 -13
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldInitSpec.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldLooseBase.js +0 -14
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldLooseBase.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldLooseKey.js +0 -12
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldLooseKey.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldSet.js +0 -15
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldSet.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldSet2.js +0 -13
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldSet2.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/classPrivateGetter.js +0 -12
- data/node_modules/@babel/helpers/lib/helpers/classPrivateGetter.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/classPrivateMethodGet.js +0 -13
- data/node_modules/@babel/helpers/lib/helpers/classPrivateMethodGet.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/classPrivateMethodInitSpec.js +0 -13
- data/node_modules/@babel/helpers/lib/helpers/classPrivateMethodInitSpec.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/classPrivateMethodSet.js +0 -11
- data/node_modules/@babel/helpers/lib/helpers/classPrivateMethodSet.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/classPrivateSetter.js +0 -13
- data/node_modules/@babel/helpers/lib/helpers/classPrivateSetter.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateFieldDestructureSet.js +0 -16
- data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateFieldDestructureSet.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateFieldSpecGet.js +0 -16
- data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateFieldSpecGet.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateFieldSpecSet.js +0 -17
- data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateFieldSpecSet.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateMethodGet.js +0 -13
- data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateMethodGet.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateMethodSet.js +0 -11
- data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateMethodSet.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/construct.js +0 -20
- data/node_modules/@babel/helpers/lib/helpers/construct.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/createClass.js +0 -26
- data/node_modules/@babel/helpers/lib/helpers/createClass.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/createForOfIteratorHelper.js +0 -60
- data/node_modules/@babel/helpers/lib/helpers/createForOfIteratorHelper.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/createForOfIteratorHelperLoose.js +0 -27
- data/node_modules/@babel/helpers/lib/helpers/createForOfIteratorHelperLoose.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/createSuper.js +0 -25
- data/node_modules/@babel/helpers/lib/helpers/createSuper.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/decorate.js +0 -350
- data/node_modules/@babel/helpers/lib/helpers/decorate.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/defaults.js +0 -18
- data/node_modules/@babel/helpers/lib/helpers/defaults.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/defineAccessor.js +0 -16
- data/node_modules/@babel/helpers/lib/helpers/defineAccessor.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/defineEnumerableProperties.js +0 -27
- data/node_modules/@babel/helpers/lib/helpers/defineEnumerableProperties.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/defineProperty.js +0 -23
- data/node_modules/@babel/helpers/lib/helpers/defineProperty.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/dispose.js +0 -47
- data/node_modules/@babel/helpers/lib/helpers/dispose.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/extends.js +0 -22
- data/node_modules/@babel/helpers/lib/helpers/extends.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/get.js +0 -25
- data/node_modules/@babel/helpers/lib/helpers/get.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/getPrototypeOf.js +0 -14
- data/node_modules/@babel/helpers/lib/helpers/getPrototypeOf.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/identity.js +0 -11
- data/node_modules/@babel/helpers/lib/helpers/identity.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/importDeferProxy.js +0 -35
- data/node_modules/@babel/helpers/lib/helpers/importDeferProxy.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/inherits.js +0 -25
- data/node_modules/@babel/helpers/lib/helpers/inherits.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/inheritsLoose.js +0 -14
- data/node_modules/@babel/helpers/lib/helpers/inheritsLoose.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/initializerDefineProperty.js +0 -17
- data/node_modules/@babel/helpers/lib/helpers/initializerDefineProperty.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/initializerWarningHelper.js +0 -11
- data/node_modules/@babel/helpers/lib/helpers/initializerWarningHelper.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/instanceof.js +0 -15
- data/node_modules/@babel/helpers/lib/helpers/instanceof.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/interopRequireDefault.js +0 -13
- data/node_modules/@babel/helpers/lib/helpers/interopRequireDefault.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/interopRequireWildcard.js +0 -49
- data/node_modules/@babel/helpers/lib/helpers/interopRequireWildcard.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/isNativeFunction.js +0 -15
- data/node_modules/@babel/helpers/lib/helpers/isNativeFunction.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/isNativeReflectConstruct.js +0 -16
- data/node_modules/@babel/helpers/lib/helpers/isNativeReflectConstruct.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/iterableToArray.js +0 -13
- data/node_modules/@babel/helpers/lib/helpers/iterableToArray.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/iterableToArrayLimit.js +0 -41
- data/node_modules/@babel/helpers/lib/helpers/iterableToArrayLimit.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/jsx.js +0 -47
- data/node_modules/@babel/helpers/lib/helpers/jsx.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/maybeArrayLike.js +0 -16
- data/node_modules/@babel/helpers/lib/helpers/maybeArrayLike.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/newArrowCheck.js +0 -13
- data/node_modules/@babel/helpers/lib/helpers/newArrowCheck.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/nonIterableRest.js +0 -11
- data/node_modules/@babel/helpers/lib/helpers/nonIterableRest.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/nonIterableSpread.js +0 -11
- data/node_modules/@babel/helpers/lib/helpers/nonIterableSpread.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/nullishReceiverError.js +0 -11
- data/node_modules/@babel/helpers/lib/helpers/nullishReceiverError.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/objectDestructuringEmpty.js +0 -11
- data/node_modules/@babel/helpers/lib/helpers/objectDestructuringEmpty.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/objectSpread.js +0 -24
- data/node_modules/@babel/helpers/lib/helpers/objectSpread.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/objectSpread2.js +0 -39
- data/node_modules/@babel/helpers/lib/helpers/objectSpread2.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/objectWithoutProperties.js +0 -24
- data/node_modules/@babel/helpers/lib/helpers/objectWithoutProperties.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/objectWithoutPropertiesLoose.js +0 -19
- data/node_modules/@babel/helpers/lib/helpers/objectWithoutPropertiesLoose.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/possibleConstructorReturn.js +0 -17
- data/node_modules/@babel/helpers/lib/helpers/possibleConstructorReturn.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/readOnlyError.js +0 -11
- data/node_modules/@babel/helpers/lib/helpers/readOnlyError.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/regeneratorRuntime.js +0 -499
- data/node_modules/@babel/helpers/lib/helpers/regeneratorRuntime.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/set.js +0 -48
- data/node_modules/@babel/helpers/lib/helpers/set.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/setFunctionName.js +0 -21
- data/node_modules/@babel/helpers/lib/helpers/setFunctionName.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/setPrototypeOf.js +0 -15
- data/node_modules/@babel/helpers/lib/helpers/setPrototypeOf.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/skipFirstGeneratorNext.js +0 -15
- data/node_modules/@babel/helpers/lib/helpers/skipFirstGeneratorNext.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/slicedToArray.js +0 -15
- data/node_modules/@babel/helpers/lib/helpers/slicedToArray.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/superPropBase.js +0 -16
- data/node_modules/@babel/helpers/lib/helpers/superPropBase.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/taggedTemplateLiteral.js +0 -18
- data/node_modules/@babel/helpers/lib/helpers/taggedTemplateLiteral.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/taggedTemplateLiteralLoose.js +0 -15
- data/node_modules/@babel/helpers/lib/helpers/taggedTemplateLiteralLoose.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/tdz.js +0 -11
- data/node_modules/@babel/helpers/lib/helpers/tdz.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/temporalRef.js +0 -13
- data/node_modules/@babel/helpers/lib/helpers/temporalRef.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/temporalUndefined.js +0 -9
- data/node_modules/@babel/helpers/lib/helpers/temporalUndefined.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/toArray.js +0 -15
- data/node_modules/@babel/helpers/lib/helpers/toArray.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/toConsumableArray.js +0 -15
- data/node_modules/@babel/helpers/lib/helpers/toConsumableArray.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/toPrimitive.js +0 -18
- data/node_modules/@babel/helpers/lib/helpers/toPrimitive.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/toPropertyKey.js +0 -13
- data/node_modules/@babel/helpers/lib/helpers/toPropertyKey.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/toSetter.js +0 -18
- data/node_modules/@babel/helpers/lib/helpers/toSetter.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/typeof.js +0 -22
- data/node_modules/@babel/helpers/lib/helpers/typeof.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/unsupportedIterableToArray.js +0 -19
- data/node_modules/@babel/helpers/lib/helpers/unsupportedIterableToArray.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/using.js +0 -29
- data/node_modules/@babel/helpers/lib/helpers/using.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/usingCtx.js +0 -73
- data/node_modules/@babel/helpers/lib/helpers/usingCtx.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/wrapAsyncGenerator.js +0 -97
- data/node_modules/@babel/helpers/lib/helpers/wrapAsyncGenerator.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/wrapNativeSuper.js +0 -38
- data/node_modules/@babel/helpers/lib/helpers/wrapNativeSuper.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/wrapRegExp.js +0 -66
- data/node_modules/@babel/helpers/lib/helpers/wrapRegExp.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/writeOnlyError.js +0 -11
- data/node_modules/@babel/helpers/lib/helpers/writeOnlyError.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers-generated.js +0 -1207
- data/node_modules/@babel/helpers/lib/helpers-generated.js.map +0 -1
- data/node_modules/@babel/helpers/lib/index.js +0 -121
- data/node_modules/@babel/helpers/lib/index.js.map +0 -1
- data/node_modules/@babel/helpers/package.json +0 -31
- data/node_modules/@babel/helpers/scripts/build-helper-metadata.js +0 -209
- data/node_modules/@babel/helpers/scripts/generate-helpers.js +0 -207
- data/node_modules/@babel/helpers/scripts/generate-regenerator-runtime.js +0 -63
- data/node_modules/@babel/highlight/LICENSE +0 -22
- data/node_modules/@babel/highlight/README.md +0 -19
- data/node_modules/@babel/highlight/lib/index.js +0 -119
- data/node_modules/@babel/highlight/lib/index.js.map +0 -1
- data/node_modules/@babel/highlight/package.json +0 -30
- data/node_modules/@babel/parser/CHANGELOG.md +0 -1073
- data/node_modules/@babel/parser/LICENSE +0 -19
- data/node_modules/@babel/parser/README.md +0 -19
- data/node_modules/@babel/parser/bin/babel-parser.js +0 -15
- data/node_modules/@babel/parser/index.cjs +0 -5
- data/node_modules/@babel/parser/lib/index.js +0 -13989
- data/node_modules/@babel/parser/lib/index.js.map +0 -1
- data/node_modules/@babel/parser/package.json +0 -47
- data/node_modules/@babel/parser/typings/babel-parser.d.ts +0 -251
- data/node_modules/@babel/template/LICENSE +0 -22
- data/node_modules/@babel/template/README.md +0 -19
- data/node_modules/@babel/template/lib/builder.js +0 -69
- data/node_modules/@babel/template/lib/builder.js.map +0 -1
- data/node_modules/@babel/template/lib/formatters.js +0 -61
- data/node_modules/@babel/template/lib/formatters.js.map +0 -1
- data/node_modules/@babel/template/lib/index.js +0 -23
- data/node_modules/@babel/template/lib/index.js.map +0 -1
- data/node_modules/@babel/template/lib/literal.js +0 -69
- data/node_modules/@babel/template/lib/literal.js.map +0 -1
- data/node_modules/@babel/template/lib/options.js +0 -73
- data/node_modules/@babel/template/lib/options.js.map +0 -1
- data/node_modules/@babel/template/lib/parse.js +0 -160
- data/node_modules/@babel/template/lib/parse.js.map +0 -1
- data/node_modules/@babel/template/lib/populate.js +0 -122
- data/node_modules/@babel/template/lib/populate.js.map +0 -1
- data/node_modules/@babel/template/lib/string.js +0 -20
- data/node_modules/@babel/template/lib/string.js.map +0 -1
- data/node_modules/@babel/template/node_modules/.bin/parser +0 -1
- data/node_modules/@babel/template/package.json +0 -27
- data/node_modules/@babel/traverse/LICENSE +0 -22
- data/node_modules/@babel/traverse/README.md +0 -19
- data/node_modules/@babel/traverse/lib/cache.js +0 -44
- data/node_modules/@babel/traverse/lib/cache.js.map +0 -1
- data/node_modules/@babel/traverse/lib/context.js +0 -118
- data/node_modules/@babel/traverse/lib/context.js.map +0 -1
- data/node_modules/@babel/traverse/lib/hub.js +0 -19
- data/node_modules/@babel/traverse/lib/hub.js.map +0 -1
- data/node_modules/@babel/traverse/lib/index.js +0 -94
- data/node_modules/@babel/traverse/lib/index.js.map +0 -1
- data/node_modules/@babel/traverse/lib/path/ancestry.js +0 -141
- data/node_modules/@babel/traverse/lib/path/ancestry.js.map +0 -1
- data/node_modules/@babel/traverse/lib/path/comments.js +0 -52
- data/node_modules/@babel/traverse/lib/path/comments.js.map +0 -1
- data/node_modules/@babel/traverse/lib/path/context.js +0 -222
- data/node_modules/@babel/traverse/lib/path/context.js.map +0 -1
- data/node_modules/@babel/traverse/lib/path/conversion.js +0 -468
- data/node_modules/@babel/traverse/lib/path/conversion.js.map +0 -1
- data/node_modules/@babel/traverse/lib/path/evaluation.js +0 -347
- data/node_modules/@babel/traverse/lib/path/evaluation.js.map +0 -1
- data/node_modules/@babel/traverse/lib/path/family.js +0 -335
- data/node_modules/@babel/traverse/lib/path/family.js.map +0 -1
- data/node_modules/@babel/traverse/lib/path/index.js +0 -282
- data/node_modules/@babel/traverse/lib/path/index.js.map +0 -1
- data/node_modules/@babel/traverse/lib/path/inference/index.js +0 -149
- data/node_modules/@babel/traverse/lib/path/inference/index.js.map +0 -1
- data/node_modules/@babel/traverse/lib/path/inference/inferer-reference.js +0 -151
- data/node_modules/@babel/traverse/lib/path/inference/inferer-reference.js.map +0 -1
- data/node_modules/@babel/traverse/lib/path/inference/inferers.js +0 -207
- data/node_modules/@babel/traverse/lib/path/inference/inferers.js.map +0 -1
- data/node_modules/@babel/traverse/lib/path/inference/util.js +0 -30
- data/node_modules/@babel/traverse/lib/path/inference/util.js.map +0 -1
- data/node_modules/@babel/traverse/lib/path/introspection.js +0 -397
- data/node_modules/@babel/traverse/lib/path/introspection.js.map +0 -1
- data/node_modules/@babel/traverse/lib/path/lib/hoister.js +0 -171
- data/node_modules/@babel/traverse/lib/path/lib/hoister.js.map +0 -1
- data/node_modules/@babel/traverse/lib/path/lib/removal-hooks.js +0 -37
- data/node_modules/@babel/traverse/lib/path/lib/removal-hooks.js.map +0 -1
- data/node_modules/@babel/traverse/lib/path/lib/virtual-types-validator.js +0 -163
- data/node_modules/@babel/traverse/lib/path/lib/virtual-types-validator.js.map +0 -1
- data/node_modules/@babel/traverse/lib/path/lib/virtual-types.js +0 -26
- data/node_modules/@babel/traverse/lib/path/lib/virtual-types.js.map +0 -1
- data/node_modules/@babel/traverse/lib/path/modification.js +0 -226
- data/node_modules/@babel/traverse/lib/path/modification.js.map +0 -1
- data/node_modules/@babel/traverse/lib/path/removal.js +0 -66
- data/node_modules/@babel/traverse/lib/path/removal.js.map +0 -1
- data/node_modules/@babel/traverse/lib/path/replacement.js +0 -264
- data/node_modules/@babel/traverse/lib/path/replacement.js.map +0 -1
- data/node_modules/@babel/traverse/lib/scope/binding.js +0 -83
- data/node_modules/@babel/traverse/lib/scope/binding.js.map +0 -1
- data/node_modules/@babel/traverse/lib/scope/index.js +0 -904
- data/node_modules/@babel/traverse/lib/scope/index.js.map +0 -1
- data/node_modules/@babel/traverse/lib/scope/lib/renamer.js +0 -115
- data/node_modules/@babel/traverse/lib/scope/lib/renamer.js.map +0 -1
- data/node_modules/@babel/traverse/lib/traverse-node.js +0 -29
- data/node_modules/@babel/traverse/lib/traverse-node.js.map +0 -1
- data/node_modules/@babel/traverse/lib/types.js +0 -3
- data/node_modules/@babel/traverse/lib/types.js.map +0 -1
- data/node_modules/@babel/traverse/lib/visitors.js +0 -221
- data/node_modules/@babel/traverse/lib/visitors.js.map +0 -1
- data/node_modules/@babel/traverse/node_modules/.bin/parser +0 -1
- data/node_modules/@babel/traverse/package.json +0 -38
- data/node_modules/@babel/types/LICENSE +0 -22
- data/node_modules/@babel/types/README.md +0 -19
- data/node_modules/@babel/types/lib/asserts/assertNode.js +0 -16
- data/node_modules/@babel/types/lib/asserts/assertNode.js.map +0 -1
- data/node_modules/@babel/types/lib/asserts/generated/index.js +0 -1235
- data/node_modules/@babel/types/lib/asserts/generated/index.js.map +0 -1
- data/node_modules/@babel/types/lib/ast-types/generated/index.js +0 -3
- data/node_modules/@babel/types/lib/ast-types/generated/index.js.map +0 -1
- data/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js +0 -18
- data/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js.map +0 -1
- data/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js +0 -31
- data/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js.map +0 -1
- data/node_modules/@babel/types/lib/builders/generated/index.js +0 -1991
- data/node_modules/@babel/types/lib/builders/generated/index.js.map +0 -1
- data/node_modules/@babel/types/lib/builders/generated/uppercase.js +0 -1532
- data/node_modules/@babel/types/lib/builders/generated/uppercase.js.map +0 -1
- data/node_modules/@babel/types/lib/builders/productions.js +0 -12
- data/node_modules/@babel/types/lib/builders/productions.js.map +0 -1
- data/node_modules/@babel/types/lib/builders/react/buildChildren.js +0 -24
- data/node_modules/@babel/types/lib/builders/react/buildChildren.js.map +0 -1
- data/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js +0 -22
- data/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js.map +0 -1
- data/node_modules/@babel/types/lib/builders/validateNode.js +0 -17
- data/node_modules/@babel/types/lib/builders/validateNode.js.map +0 -1
- data/node_modules/@babel/types/lib/clone/clone.js +0 -12
- data/node_modules/@babel/types/lib/clone/clone.js.map +0 -1
- data/node_modules/@babel/types/lib/clone/cloneDeep.js +0 -12
- data/node_modules/@babel/types/lib/clone/cloneDeep.js.map +0 -1
- data/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js +0 -12
- data/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js.map +0 -1
- data/node_modules/@babel/types/lib/clone/cloneNode.js +0 -104
- data/node_modules/@babel/types/lib/clone/cloneNode.js.map +0 -1
- data/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js +0 -12
- data/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js.map +0 -1
- data/node_modules/@babel/types/lib/comments/addComment.js +0 -15
- data/node_modules/@babel/types/lib/comments/addComment.js.map +0 -1
- data/node_modules/@babel/types/lib/comments/addComments.js +0 -22
- data/node_modules/@babel/types/lib/comments/addComments.js.map +0 -1
- data/node_modules/@babel/types/lib/comments/inheritInnerComments.js +0 -12
- data/node_modules/@babel/types/lib/comments/inheritInnerComments.js.map +0 -1
- data/node_modules/@babel/types/lib/comments/inheritLeadingComments.js +0 -12
- data/node_modules/@babel/types/lib/comments/inheritLeadingComments.js.map +0 -1
- data/node_modules/@babel/types/lib/comments/inheritTrailingComments.js +0 -12
- data/node_modules/@babel/types/lib/comments/inheritTrailingComments.js.map +0 -1
- data/node_modules/@babel/types/lib/comments/inheritsComments.js +0 -17
- data/node_modules/@babel/types/lib/comments/inheritsComments.js.map +0 -1
- data/node_modules/@babel/types/lib/comments/removeComments.js +0 -15
- data/node_modules/@babel/types/lib/comments/removeComments.js.map +0 -1
- data/node_modules/@babel/types/lib/constants/generated/index.js +0 -59
- data/node_modules/@babel/types/lib/constants/generated/index.js.map +0 -1
- data/node_modules/@babel/types/lib/constants/index.js +0 -31
- data/node_modules/@babel/types/lib/constants/index.js.map +0 -1
- data/node_modules/@babel/types/lib/converters/ensureBlock.js +0 -14
- data/node_modules/@babel/types/lib/converters/ensureBlock.js.map +0 -1
- data/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js +0 -66
- data/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js.map +0 -1
- data/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js +0 -14
- data/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js.map +0 -1
- data/node_modules/@babel/types/lib/converters/toBlock.js +0 -29
- data/node_modules/@babel/types/lib/converters/toBlock.js.map +0 -1
- data/node_modules/@babel/types/lib/converters/toComputedKey.js +0 -14
- data/node_modules/@babel/types/lib/converters/toComputedKey.js.map +0 -1
- data/node_modules/@babel/types/lib/converters/toExpression.js +0 -27
- data/node_modules/@babel/types/lib/converters/toExpression.js.map +0 -1
- data/node_modules/@babel/types/lib/converters/toIdentifier.js +0 -25
- data/node_modules/@babel/types/lib/converters/toIdentifier.js.map +0 -1
- data/node_modules/@babel/types/lib/converters/toKeyAlias.js +0 -38
- data/node_modules/@babel/types/lib/converters/toKeyAlias.js.map +0 -1
- data/node_modules/@babel/types/lib/converters/toSequenceExpression.js +0 -20
- data/node_modules/@babel/types/lib/converters/toSequenceExpression.js.map +0 -1
- data/node_modules/@babel/types/lib/converters/toStatement.js +0 -39
- data/node_modules/@babel/types/lib/converters/toStatement.js.map +0 -1
- data/node_modules/@babel/types/lib/converters/valueToNode.js +0 -76
- data/node_modules/@babel/types/lib/converters/valueToNode.js.map +0 -1
- data/node_modules/@babel/types/lib/definitions/core.js +0 -1689
- data/node_modules/@babel/types/lib/definitions/core.js.map +0 -1
- data/node_modules/@babel/types/lib/definitions/deprecated-aliases.js +0 -11
- data/node_modules/@babel/types/lib/definitions/deprecated-aliases.js.map +0 -1
- data/node_modules/@babel/types/lib/definitions/experimental.js +0 -134
- data/node_modules/@babel/types/lib/definitions/experimental.js.map +0 -1
- data/node_modules/@babel/types/lib/definitions/flow.js +0 -488
- data/node_modules/@babel/types/lib/definitions/flow.js.map +0 -1
- data/node_modules/@babel/types/lib/definitions/index.js +0 -96
- data/node_modules/@babel/types/lib/definitions/index.js.map +0 -1
- data/node_modules/@babel/types/lib/definitions/jsx.js +0 -158
- data/node_modules/@babel/types/lib/definitions/jsx.js.map +0 -1
- data/node_modules/@babel/types/lib/definitions/misc.js +0 -32
- data/node_modules/@babel/types/lib/definitions/misc.js.map +0 -1
- data/node_modules/@babel/types/lib/definitions/placeholders.js +0 -27
- data/node_modules/@babel/types/lib/definitions/placeholders.js.map +0 -1
- data/node_modules/@babel/types/lib/definitions/typescript.js +0 -493
- data/node_modules/@babel/types/lib/definitions/typescript.js.map +0 -1
- data/node_modules/@babel/types/lib/definitions/utils.js +0 -273
- data/node_modules/@babel/types/lib/definitions/utils.js.map +0 -1
- data/node_modules/@babel/types/lib/index-legacy.d.ts +0 -2758
- data/node_modules/@babel/types/lib/index.d.ts +0 -3269
- data/node_modules/@babel/types/lib/index.js +0 -576
- data/node_modules/@babel/types/lib/index.js.flow +0 -2612
- data/node_modules/@babel/types/lib/index.js.map +0 -1
- data/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js +0 -15
- data/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js.map +0 -1
- data/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js +0 -65
- data/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js.map +0 -1
- data/node_modules/@babel/types/lib/modifications/inherits.js +0 -28
- data/node_modules/@babel/types/lib/modifications/inherits.js.map +0 -1
- data/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js +0 -17
- data/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js.map +0 -1
- data/node_modules/@babel/types/lib/modifications/removeProperties.js +0 -24
- data/node_modules/@babel/types/lib/modifications/removeProperties.js.map +0 -1
- data/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js +0 -14
- data/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js.map +0 -1
- data/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js +0 -65
- data/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js.map +0 -1
- data/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js +0 -96
- data/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js.map +0 -1
- data/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js +0 -13
- data/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js.map +0 -1
- data/node_modules/@babel/types/lib/traverse/traverse.js +0 -50
- data/node_modules/@babel/types/lib/traverse/traverse.js.map +0 -1
- data/node_modules/@babel/types/lib/traverse/traverseFast.js +0 -26
- data/node_modules/@babel/types/lib/traverse/traverseFast.js.map +0 -1
- data/node_modules/@babel/types/lib/utils/deprecationWarning.js +0 -44
- data/node_modules/@babel/types/lib/utils/deprecationWarning.js.map +0 -1
- data/node_modules/@babel/types/lib/utils/inherit.js +0 -13
- data/node_modules/@babel/types/lib/utils/inherit.js.map +0 -1
- data/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js +0 -40
- data/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js.map +0 -1
- data/node_modules/@babel/types/lib/utils/shallowEqual.js +0 -17
- data/node_modules/@babel/types/lib/utils/shallowEqual.js.map +0 -1
- data/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js +0 -13
- data/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js.map +0 -1
- data/node_modules/@babel/types/lib/validators/generated/index.js +0 -2752
- data/node_modules/@babel/types/lib/validators/generated/index.js.map +0 -1
- data/node_modules/@babel/types/lib/validators/is.js +0 -27
- data/node_modules/@babel/types/lib/validators/is.js.map +0 -1
- data/node_modules/@babel/types/lib/validators/isBinding.js +0 -27
- data/node_modules/@babel/types/lib/validators/isBinding.js.map +0 -1
- data/node_modules/@babel/types/lib/validators/isBlockScoped.js +0 -13
- data/node_modules/@babel/types/lib/validators/isBlockScoped.js.map +0 -1
- data/node_modules/@babel/types/lib/validators/isImmutable.js +0 -21
- data/node_modules/@babel/types/lib/validators/isImmutable.js.map +0 -1
- data/node_modules/@babel/types/lib/validators/isLet.js +0 -13
- data/node_modules/@babel/types/lib/validators/isLet.js.map +0 -1
- data/node_modules/@babel/types/lib/validators/isNode.js +0 -12
- data/node_modules/@babel/types/lib/validators/isNode.js.map +0 -1
- data/node_modules/@babel/types/lib/validators/isNodesEquivalent.js +0 -57
- data/node_modules/@babel/types/lib/validators/isNodesEquivalent.js.map +0 -1
- data/node_modules/@babel/types/lib/validators/isPlaceholderType.js +0 -19
- data/node_modules/@babel/types/lib/validators/isPlaceholderType.js.map +0 -1
- data/node_modules/@babel/types/lib/validators/isReferenced.js +0 -96
- data/node_modules/@babel/types/lib/validators/isReferenced.js.map +0 -1
- data/node_modules/@babel/types/lib/validators/isScope.js +0 -18
- data/node_modules/@babel/types/lib/validators/isScope.js.map +0 -1
- data/node_modules/@babel/types/lib/validators/isSpecifierDefault.js +0 -14
- data/node_modules/@babel/types/lib/validators/isSpecifierDefault.js.map +0 -1
- data/node_modules/@babel/types/lib/validators/isType.js +0 -22
- data/node_modules/@babel/types/lib/validators/isType.js.map +0 -1
- data/node_modules/@babel/types/lib/validators/isValidES3Identifier.js +0 -13
- data/node_modules/@babel/types/lib/validators/isValidES3Identifier.js.map +0 -1
- data/node_modules/@babel/types/lib/validators/isValidIdentifier.js +0 -18
- data/node_modules/@babel/types/lib/validators/isValidIdentifier.js.map +0 -1
- data/node_modules/@babel/types/lib/validators/isVar.js +0 -15
- data/node_modules/@babel/types/lib/validators/isVar.js.map +0 -1
- data/node_modules/@babel/types/lib/validators/matchesPattern.js +0 -36
- data/node_modules/@babel/types/lib/validators/matchesPattern.js.map +0 -1
- data/node_modules/@babel/types/lib/validators/react/isCompatTag.js +0 -11
- data/node_modules/@babel/types/lib/validators/react/isCompatTag.js.map +0 -1
- data/node_modules/@babel/types/lib/validators/react/isReactComponent.js +0 -11
- data/node_modules/@babel/types/lib/validators/react/isReactComponent.js.map +0 -1
- data/node_modules/@babel/types/lib/validators/validate.js +0 -30
- data/node_modules/@babel/types/lib/validators/validate.js.map +0 -1
- data/node_modules/@babel/types/package.json +0 -40
- data/node_modules/@codemod/core/LICENSE.txt +0 -202
- data/node_modules/@codemod/core/README.md +0 -41
- data/node_modules/@codemod/core/build/AllSyntaxPlugin.d.ts +0 -3
- data/node_modules/@codemod/core/build/AllSyntaxPlugin.js +0 -20
- data/node_modules/@codemod/core/build/AllSyntaxPlugin.js.map +0 -1
- data/node_modules/@codemod/core/build/BabelPluginTypes.d.ts +0 -17
- data/node_modules/@codemod/core/build/BabelPluginTypes.js +0 -3
- data/node_modules/@codemod/core/build/BabelPluginTypes.js.map +0 -1
- data/node_modules/@codemod/core/build/RecastPlugin.d.ts +0 -9
- data/node_modules/@codemod/core/build/RecastPlugin.js +0 -26
- data/node_modules/@codemod/core/build/RecastPlugin.js.map +0 -1
- data/node_modules/@codemod/core/build/index.d.ts +0 -1
- data/node_modules/@codemod/core/build/index.js +0 -14
- data/node_modules/@codemod/core/build/index.js.map +0 -1
- data/node_modules/@codemod/core/build/transform.d.ts +0 -7
- data/node_modules/@codemod/core/build/transform.js +0 -22
- data/node_modules/@codemod/core/build/transform.js.map +0 -1
- data/node_modules/@codemod/core/node_modules/.bin/is-ci +0 -1
- data/node_modules/@codemod/core/node_modules/.bin/is-ci-cli +0 -1
- data/node_modules/@codemod/core/node_modules/.bin/resolve +0 -1
- data/node_modules/@codemod/core/package.json +0 -45
- data/node_modules/@codemod/parser/LICENSE.txt +0 -202
- data/node_modules/@codemod/parser/README.md +0 -33
- data/node_modules/@codemod/parser/build/index.d.ts +0 -8
- data/node_modules/@codemod/parser/build/index.js +0 -16
- data/node_modules/@codemod/parser/build/index.js.map +0 -1
- data/node_modules/@codemod/parser/build/options.d.ts +0 -20
- data/node_modules/@codemod/parser/build/options.js +0 -180
- data/node_modules/@codemod/parser/build/options.js.map +0 -1
- data/node_modules/@codemod/parser/node_modules/.bin/parser +0 -1
- data/node_modules/@codemod/parser/package.json +0 -38
- data/node_modules/@jridgewell/gen-mapping/LICENSE +0 -19
- data/node_modules/@jridgewell/gen-mapping/README.md +0 -227
- data/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs +0 -230
- data/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs.map +0 -1
- data/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js +0 -246
- data/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js.map +0 -1
- data/node_modules/@jridgewell/gen-mapping/dist/types/gen-mapping.d.ts +0 -88
- data/node_modules/@jridgewell/gen-mapping/dist/types/sourcemap-segment.d.ts +0 -12
- data/node_modules/@jridgewell/gen-mapping/dist/types/types.d.ts +0 -36
- data/node_modules/@jridgewell/gen-mapping/package.json +0 -76
- data/node_modules/@jridgewell/resolve-uri/LICENSE +0 -19
- data/node_modules/@jridgewell/resolve-uri/README.md +0 -40
- data/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs +0 -232
- data/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs.map +0 -1
- data/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js +0 -240
- data/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js.map +0 -1
- data/node_modules/@jridgewell/resolve-uri/dist/types/resolve-uri.d.ts +0 -4
- data/node_modules/@jridgewell/resolve-uri/package.json +0 -69
- data/node_modules/@jridgewell/set-array/LICENSE +0 -19
- data/node_modules/@jridgewell/set-array/README.md +0 -37
- data/node_modules/@jridgewell/set-array/dist/set-array.mjs +0 -69
- data/node_modules/@jridgewell/set-array/dist/set-array.mjs.map +0 -1
- data/node_modules/@jridgewell/set-array/dist/set-array.umd.js +0 -83
- data/node_modules/@jridgewell/set-array/dist/set-array.umd.js.map +0 -1
- data/node_modules/@jridgewell/set-array/dist/types/set-array.d.ts +0 -32
- data/node_modules/@jridgewell/set-array/package.json +0 -65
- data/node_modules/@jridgewell/sourcemap-codec/LICENSE +0 -21
- data/node_modules/@jridgewell/sourcemap-codec/README.md +0 -200
- data/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +0 -164
- data/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +0 -1
- data/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +0 -175
- data/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +0 -1
- data/node_modules/@jridgewell/sourcemap-codec/dist/types/sourcemap-codec.d.ts +0 -6
- data/node_modules/@jridgewell/sourcemap-codec/package.json +0 -74
- data/node_modules/@jridgewell/trace-mapping/LICENSE +0 -19
- data/node_modules/@jridgewell/trace-mapping/README.md +0 -257
- data/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs +0 -580
- data/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map +0 -1
- data/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js +0 -600
- data/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map +0 -1
- data/node_modules/@jridgewell/trace-mapping/dist/types/any-map.d.ts +0 -8
- data/node_modules/@jridgewell/trace-mapping/dist/types/binary-search.d.ts +0 -32
- data/node_modules/@jridgewell/trace-mapping/dist/types/by-source.d.ts +0 -7
- data/node_modules/@jridgewell/trace-mapping/dist/types/resolve.d.ts +0 -1
- data/node_modules/@jridgewell/trace-mapping/dist/types/sort.d.ts +0 -2
- data/node_modules/@jridgewell/trace-mapping/dist/types/sourcemap-segment.d.ts +0 -16
- data/node_modules/@jridgewell/trace-mapping/dist/types/strip-filename.d.ts +0 -4
- data/node_modules/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts +0 -79
- data/node_modules/@jridgewell/trace-mapping/dist/types/types.d.ts +0 -99
- data/node_modules/@jridgewell/trace-mapping/package.json +0 -77
- data/node_modules/@resugar/codemod-declarations-block-scope/LICENSE +0 -7
- data/node_modules/@resugar/codemod-declarations-block-scope/package.json +0 -28
- data/node_modules/@resugar/codemod-declarations-block-scope/src/index.d.ts +0 -8
- data/node_modules/@resugar/codemod-declarations-block-scope/src/index.js +0 -45
- data/node_modules/@resugar/codemod-declarations-block-scope/src/index.js.map +0 -1
- data/node_modules/@resugar/codemod-declarations-block-scope/src/mostRestrictiveKindForDeclaration.d.ts +0 -10
- data/node_modules/@resugar/codemod-declarations-block-scope/src/mostRestrictiveKindForDeclaration.js +0 -136
- data/node_modules/@resugar/codemod-declarations-block-scope/src/mostRestrictiveKindForDeclaration.js.map +0 -1
- data/node_modules/@resugar/codemod-functions-arrow/LICENSE +0 -7
- data/node_modules/@resugar/codemod-functions-arrow/package.json +0 -32
- data/node_modules/@resugar/codemod-functions-arrow/src/index.d.ts +0 -2
- data/node_modules/@resugar/codemod-functions-arrow/src/index.js +0 -138
- data/node_modules/@resugar/codemod-functions-arrow/src/index.js.map +0 -1
- data/node_modules/@resugar/codemod-modules-commonjs/LICENSE +0 -7
- data/node_modules/@resugar/codemod-modules-commonjs/package.json +0 -33
- data/node_modules/@resugar/codemod-modules-commonjs/src/bindings.d.ts +0 -28
- data/node_modules/@resugar/codemod-modules-commonjs/src/bindings.js +0 -88
- data/node_modules/@resugar/codemod-modules-commonjs/src/bindings.js.map +0 -1
- data/node_modules/@resugar/codemod-modules-commonjs/src/getFirstUnsafeLocation.d.ts +0 -8
- data/node_modules/@resugar/codemod-modules-commonjs/src/getFirstUnsafeLocation.js +0 -80
- data/node_modules/@resugar/codemod-modules-commonjs/src/getFirstUnsafeLocation.js.map +0 -1
- data/node_modules/@resugar/codemod-modules-commonjs/src/index.d.ts +0 -8
- data/node_modules/@resugar/codemod-modules-commonjs/src/index.js +0 -644
- data/node_modules/@resugar/codemod-modules-commonjs/src/index.js.map +0 -1
- data/node_modules/@resugar/codemod-objects-concise/LICENSE +0 -7
- data/node_modules/@resugar/codemod-objects-concise/package.json +0 -28
- data/node_modules/@resugar/codemod-objects-concise/src/index.d.ts +0 -2
- data/node_modules/@resugar/codemod-objects-concise/src/index.js +0 -26
- data/node_modules/@resugar/codemod-objects-concise/src/index.js.map +0 -1
- data/node_modules/@resugar/codemod-objects-destructuring/LICENSE +0 -7
- data/node_modules/@resugar/codemod-objects-destructuring/package.json +0 -29
- data/node_modules/@resugar/codemod-objects-destructuring/src/index.d.ts +0 -2
- data/node_modules/@resugar/codemod-objects-destructuring/src/index.js +0 -103
- data/node_modules/@resugar/codemod-objects-destructuring/src/index.js.map +0 -1
- data/node_modules/@resugar/codemod-objects-shorthand/LICENSE +0 -7
- data/node_modules/@resugar/codemod-objects-shorthand/package.json +0 -32
- data/node_modules/@resugar/codemod-objects-shorthand/src/index.d.ts +0 -2
- data/node_modules/@resugar/codemod-objects-shorthand/src/index.js +0 -26
- data/node_modules/@resugar/codemod-objects-shorthand/src/index.js.map +0 -1
- data/node_modules/@resugar/codemod-strings-template/LICENSE +0 -7
- data/node_modules/@resugar/codemod-strings-template/package.json +0 -30
- data/node_modules/@resugar/codemod-strings-template/src/convertStringEscaping.d.ts +0 -5
- data/node_modules/@resugar/codemod-strings-template/src/convertStringEscaping.js +0 -40
- data/node_modules/@resugar/codemod-strings-template/src/convertStringEscaping.js.map +0 -1
- data/node_modules/@resugar/codemod-strings-template/src/index.d.ts +0 -2
- data/node_modules/@resugar/codemod-strings-template/src/index.js +0 -134
- data/node_modules/@resugar/codemod-strings-template/src/index.js.map +0 -1
- data/node_modules/@resugar/helper-comments/LICENSE +0 -7
- data/node_modules/@resugar/helper-comments/package.json +0 -25
- data/node_modules/@resugar/helper-comments/src/index.d.ts +0 -16
- data/node_modules/@resugar/helper-comments/src/index.js +0 -68
- data/node_modules/@resugar/helper-comments/src/index.js.map +0 -1
- data/node_modules/add-variable-declarations/LICENSE +0 -7
- data/node_modules/add-variable-declarations/README.md +0 -66
- data/node_modules/add-variable-declarations/dist/index.d.ts +0 -13
- data/node_modules/add-variable-declarations/dist/index.js +0 -498
- data/node_modules/add-variable-declarations/dist/index.mjs +0 -463
- data/node_modules/add-variable-declarations/package.json +0 -62
- data/node_modules/ansi-styles/index.js +0 -165
- data/node_modules/ansi-styles/license +0 -9
- data/node_modules/ansi-styles/package.json +0 -56
- data/node_modules/ansi-styles/readme.md +0 -147
- data/node_modules/any-promise/.jshintrc +0 -4
- data/node_modules/any-promise/.npmignore +0 -7
- data/node_modules/any-promise/LICENSE +0 -19
- data/node_modules/any-promise/README.md +0 -161
- data/node_modules/any-promise/implementation.d.ts +0 -3
- data/node_modules/any-promise/implementation.js +0 -1
- data/node_modules/any-promise/index.d.ts +0 -73
- data/node_modules/any-promise/index.js +0 -1
- data/node_modules/any-promise/loader.js +0 -78
- data/node_modules/any-promise/optional.js +0 -6
- data/node_modules/any-promise/package.json +0 -45
- data/node_modules/any-promise/register/bluebird.d.ts +0 -1
- data/node_modules/any-promise/register/bluebird.js +0 -2
- data/node_modules/any-promise/register/es6-promise.d.ts +0 -1
- data/node_modules/any-promise/register/es6-promise.js +0 -2
- data/node_modules/any-promise/register/lie.d.ts +0 -1
- data/node_modules/any-promise/register/lie.js +0 -2
- data/node_modules/any-promise/register/native-promise-only.d.ts +0 -1
- data/node_modules/any-promise/register/native-promise-only.js +0 -2
- data/node_modules/any-promise/register/pinkie.d.ts +0 -1
- data/node_modules/any-promise/register/pinkie.js +0 -2
- data/node_modules/any-promise/register/promise.d.ts +0 -1
- data/node_modules/any-promise/register/promise.js +0 -2
- data/node_modules/any-promise/register/q.d.ts +0 -1
- data/node_modules/any-promise/register/q.js +0 -2
- data/node_modules/any-promise/register/rsvp.d.ts +0 -1
- data/node_modules/any-promise/register/rsvp.js +0 -2
- data/node_modules/any-promise/register/vow.d.ts +0 -1
- data/node_modules/any-promise/register/vow.js +0 -2
- data/node_modules/any-promise/register/when.d.ts +0 -1
- data/node_modules/any-promise/register/when.js +0 -2
- data/node_modules/any-promise/register-shim.js +0 -18
- data/node_modules/any-promise/register.d.ts +0 -17
- data/node_modules/any-promise/register.js +0 -94
- data/node_modules/ast-types/.travis.yml +0 -11
- data/node_modules/ast-types/LICENSE +0 -20
- data/node_modules/ast-types/README.md +0 -512
- data/node_modules/ast-types/def/babel-core.d.ts +0 -2
- data/node_modules/ast-types/def/babel-core.js +0 -258
- data/node_modules/ast-types/def/babel.d.ts +0 -2
- data/node_modules/ast-types/def/babel.js +0 -13
- data/node_modules/ast-types/def/core.d.ts +0 -2
- data/node_modules/ast-types/def/core.js +0 -300
- data/node_modules/ast-types/def/es-proposals.d.ts +0 -2
- data/node_modules/ast-types/def/es-proposals.js +0 -35
- data/node_modules/ast-types/def/es2020.d.ts +0 -2
- data/node_modules/ast-types/def/es2020.js +0 -18
- data/node_modules/ast-types/def/es6.d.ts +0 -2
- data/node_modules/ast-types/def/es6.js +0 -212
- data/node_modules/ast-types/def/es7.d.ts +0 -2
- data/node_modules/ast-types/def/es7.js +0 -36
- data/node_modules/ast-types/def/esNext.d.ts +0 -2
- data/node_modules/ast-types/def/esNext.js +0 -57
- data/node_modules/ast-types/def/esprima.d.ts +0 -2
- data/node_modules/ast-types/def/esprima.js +0 -51
- data/node_modules/ast-types/def/flow.d.ts +0 -2
- data/node_modules/ast-types/def/flow.js +0 -294
- data/node_modules/ast-types/def/jsx.d.ts +0 -2
- data/node_modules/ast-types/def/jsx.js +0 -105
- data/node_modules/ast-types/def/type-annotations.d.ts +0 -7
- data/node_modules/ast-types/def/type-annotations.js +0 -42
- data/node_modules/ast-types/def/typescript.d.ts +0 -2
- data/node_modules/ast-types/def/typescript.js +0 -339
- data/node_modules/ast-types/fork.d.ts +0 -42
- data/node_modules/ast-types/fork.js +0 -54
- data/node_modules/ast-types/gen/builders.d.ts +0 -2572
- data/node_modules/ast-types/gen/builders.js +0 -2
- data/node_modules/ast-types/gen/kinds.d.ts +0 -263
- data/node_modules/ast-types/gen/kinds.js +0 -2
- data/node_modules/ast-types/gen/namedTypes.d.ts +0 -1800
- data/node_modules/ast-types/gen/namedTypes.js +0 -5
- data/node_modules/ast-types/gen/nodes.d.ts +0 -1265
- data/node_modules/ast-types/gen/nodes.js +0 -2
- data/node_modules/ast-types/gen/visitor.d.ts +0 -267
- data/node_modules/ast-types/gen/visitor.js +0 -2
- data/node_modules/ast-types/lib/equiv.d.ts +0 -5
- data/node_modules/ast-types/lib/equiv.js +0 -156
- data/node_modules/ast-types/lib/node-path.d.ts +0 -22
- data/node_modules/ast-types/lib/node-path.js +0 -413
- data/node_modules/ast-types/lib/path-visitor.d.ts +0 -52
- data/node_modules/ast-types/lib/path-visitor.js +0 -345
- data/node_modules/ast-types/lib/path.d.ts +0 -25
- data/node_modules/ast-types/lib/path.js +0 -333
- data/node_modules/ast-types/lib/scope.d.ts +0 -26
- data/node_modules/ast-types/lib/scope.js +0 -317
- data/node_modules/ast-types/lib/shared.d.ts +0 -13
- data/node_modules/ast-types/lib/shared.js +0 -49
- data/node_modules/ast-types/lib/types.d.ts +0 -136
- data/node_modules/ast-types/lib/types.js +0 -781
- data/node_modules/ast-types/main.d.ts +0 -28
- data/node_modules/ast-types/main.js +0 -54
- data/node_modules/ast-types/package.json +0 -63
- data/node_modules/ast-types/tsconfig.json +0 -20
- data/node_modules/ast-types/types.d.ts +0 -6
- data/node_modules/ast-types/types.js +0 -2
- data/node_modules/automatic-semicolon-insertion/LICENSE +0 -7
- data/node_modules/automatic-semicolon-insertion/README.md +0 -26
- data/node_modules/automatic-semicolon-insertion/build/index.cjs +0 -216
- data/node_modules/automatic-semicolon-insertion/build/index.d.ts +0 -38
- data/node_modules/automatic-semicolon-insertion/build/index.mjs +0 -192
- data/node_modules/automatic-semicolon-insertion/build/traverse.d.ts +0 -17
- data/node_modules/automatic-semicolon-insertion/package.json +0 -58
- data/node_modules/browserslist/LICENSE +0 -20
- data/node_modules/browserslist/README.md +0 -67
- data/node_modules/browserslist/browser.js +0 -52
- data/node_modules/browserslist/cli.js +0 -156
- data/node_modules/browserslist/error.d.ts +0 -7
- data/node_modules/browserslist/error.js +0 -12
- data/node_modules/browserslist/index.d.ts +0 -201
- data/node_modules/browserslist/index.js +0 -1206
- data/node_modules/browserslist/node.js +0 -420
- data/node_modules/browserslist/node_modules/.bin/update-browserslist-db +0 -1
- data/node_modules/browserslist/package.json +0 -44
- data/node_modules/browserslist/parse.js +0 -78
- data/node_modules/caniuse-lite/LICENSE +0 -395
- data/node_modules/caniuse-lite/README.md +0 -6
- data/node_modules/caniuse-lite/data/agents.js +0 -1
- data/node_modules/caniuse-lite/data/browserVersions.js +0 -1
- data/node_modules/caniuse-lite/data/browsers.js +0 -1
- data/node_modules/caniuse-lite/data/features/aac.js +0 -1
- data/node_modules/caniuse-lite/data/features/abortcontroller.js +0 -1
- data/node_modules/caniuse-lite/data/features/ac3-ec3.js +0 -1
- data/node_modules/caniuse-lite/data/features/accelerometer.js +0 -1
- data/node_modules/caniuse-lite/data/features/addeventlistener.js +0 -1
- data/node_modules/caniuse-lite/data/features/alternate-stylesheet.js +0 -1
- data/node_modules/caniuse-lite/data/features/ambient-light.js +0 -1
- data/node_modules/caniuse-lite/data/features/apng.js +0 -1
- data/node_modules/caniuse-lite/data/features/array-find-index.js +0 -1
- data/node_modules/caniuse-lite/data/features/array-find.js +0 -1
- data/node_modules/caniuse-lite/data/features/array-flat.js +0 -1
- data/node_modules/caniuse-lite/data/features/array-includes.js +0 -1
- data/node_modules/caniuse-lite/data/features/arrow-functions.js +0 -1
- data/node_modules/caniuse-lite/data/features/asmjs.js +0 -1
- data/node_modules/caniuse-lite/data/features/async-clipboard.js +0 -1
- data/node_modules/caniuse-lite/data/features/async-functions.js +0 -1
- data/node_modules/caniuse-lite/data/features/atob-btoa.js +0 -1
- data/node_modules/caniuse-lite/data/features/audio-api.js +0 -1
- data/node_modules/caniuse-lite/data/features/audio.js +0 -1
- data/node_modules/caniuse-lite/data/features/audiotracks.js +0 -1
- data/node_modules/caniuse-lite/data/features/autofocus.js +0 -1
- data/node_modules/caniuse-lite/data/features/auxclick.js +0 -1
- data/node_modules/caniuse-lite/data/features/av1.js +0 -1
- data/node_modules/caniuse-lite/data/features/avif.js +0 -1
- data/node_modules/caniuse-lite/data/features/background-attachment.js +0 -1
- data/node_modules/caniuse-lite/data/features/background-clip-text.js +0 -1
- data/node_modules/caniuse-lite/data/features/background-img-opts.js +0 -1
- data/node_modules/caniuse-lite/data/features/background-position-x-y.js +0 -1
- data/node_modules/caniuse-lite/data/features/background-repeat-round-space.js +0 -1
- data/node_modules/caniuse-lite/data/features/background-sync.js +0 -1
- data/node_modules/caniuse-lite/data/features/battery-status.js +0 -1
- data/node_modules/caniuse-lite/data/features/beacon.js +0 -1
- data/node_modules/caniuse-lite/data/features/beforeafterprint.js +0 -1
- data/node_modules/caniuse-lite/data/features/bigint.js +0 -1
- data/node_modules/caniuse-lite/data/features/blobbuilder.js +0 -1
- data/node_modules/caniuse-lite/data/features/bloburls.js +0 -1
- data/node_modules/caniuse-lite/data/features/border-image.js +0 -1
- data/node_modules/caniuse-lite/data/features/border-radius.js +0 -1
- data/node_modules/caniuse-lite/data/features/broadcastchannel.js +0 -1
- data/node_modules/caniuse-lite/data/features/brotli.js +0 -1
- data/node_modules/caniuse-lite/data/features/calc.js +0 -1
- data/node_modules/caniuse-lite/data/features/canvas-blending.js +0 -1
- data/node_modules/caniuse-lite/data/features/canvas-text.js +0 -1
- data/node_modules/caniuse-lite/data/features/canvas.js +0 -1
- data/node_modules/caniuse-lite/data/features/ch-unit.js +0 -1
- data/node_modules/caniuse-lite/data/features/chacha20-poly1305.js +0 -1
- data/node_modules/caniuse-lite/data/features/channel-messaging.js +0 -1
- data/node_modules/caniuse-lite/data/features/childnode-remove.js +0 -1
- data/node_modules/caniuse-lite/data/features/classlist.js +0 -1
- data/node_modules/caniuse-lite/data/features/client-hints-dpr-width-viewport.js +0 -1
- data/node_modules/caniuse-lite/data/features/clipboard.js +0 -1
- data/node_modules/caniuse-lite/data/features/colr-v1.js +0 -1
- data/node_modules/caniuse-lite/data/features/colr.js +0 -1
- data/node_modules/caniuse-lite/data/features/comparedocumentposition.js +0 -1
- data/node_modules/caniuse-lite/data/features/console-basic.js +0 -1
- data/node_modules/caniuse-lite/data/features/console-time.js +0 -1
- data/node_modules/caniuse-lite/data/features/const.js +0 -1
- data/node_modules/caniuse-lite/data/features/constraint-validation.js +0 -1
- data/node_modules/caniuse-lite/data/features/contenteditable.js +0 -1
- data/node_modules/caniuse-lite/data/features/contentsecuritypolicy.js +0 -1
- data/node_modules/caniuse-lite/data/features/contentsecuritypolicy2.js +0 -1
- data/node_modules/caniuse-lite/data/features/cookie-store-api.js +0 -1
- data/node_modules/caniuse-lite/data/features/cors.js +0 -1
- data/node_modules/caniuse-lite/data/features/createimagebitmap.js +0 -1
- data/node_modules/caniuse-lite/data/features/credential-management.js +0 -1
- data/node_modules/caniuse-lite/data/features/cryptography.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-all.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-anchor-positioning.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-animation.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-any-link.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-appearance.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-at-counter-style.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-autofill.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-backdrop-filter.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-background-offsets.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-backgroundblendmode.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-boxdecorationbreak.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-boxshadow.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-canvas.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-caret-color.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-cascade-layers.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-cascade-scope.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-case-insensitive.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-clip-path.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-color-adjust.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-color-function.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-conic-gradients.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-container-queries-style.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-container-queries.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-container-query-units.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-containment.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-content-visibility.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-counters.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-crisp-edges.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-cross-fade.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-default-pseudo.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-descendant-gtgt.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-deviceadaptation.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-dir-pseudo.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-display-contents.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-element-function.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-env-function.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-exclusions.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-featurequeries.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-file-selector-button.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-filter-function.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-filters.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-first-letter.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-first-line.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-fixed.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-focus-visible.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-focus-within.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-font-palette.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-font-rendering-controls.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-font-stretch.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-gencontent.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-gradients.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-grid-animation.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-grid.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-hanging-punctuation.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-has.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-hyphens.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-image-orientation.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-image-set.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-in-out-of-range.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-indeterminate-pseudo.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-initial-letter.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-initial-value.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-lch-lab.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-letter-spacing.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-line-clamp.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-logical-props.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-marker-pseudo.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-masks.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-matches-pseudo.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-math-functions.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-media-interaction.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-media-range-syntax.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-media-resolution.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-media-scripting.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-mediaqueries.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-mixblendmode.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-module-scripts.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-motion-paths.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-namespaces.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-nesting.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-not-sel-list.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-nth-child-of.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-opacity.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-optional-pseudo.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-overflow-anchor.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-overflow-overlay.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-overflow.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-overscroll-behavior.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-page-break.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-paged-media.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-paint-api.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-placeholder-shown.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-placeholder.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-print-color-adjust.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-read-only-write.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-rebeccapurple.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-reflections.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-regions.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-relative-colors.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-repeating-gradients.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-resize.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-revert-value.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-rrggbbaa.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-scroll-behavior.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-scroll-timeline.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-scrollbar.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-sel2.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-sel3.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-selection.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-shapes.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-snappoints.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-sticky.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-subgrid.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-supports-api.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-table.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-text-align-last.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-text-box-trim.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-text-indent.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-text-justify.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-text-orientation.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-text-spacing.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-text-wrap-balance.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-textshadow.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-touch-action.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-transitions.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-unicode-bidi.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-unset-value.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-variables.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-when-else.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-widows-orphans.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-width-stretch.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-writing-mode.js +0 -1
- data/node_modules/caniuse-lite/data/features/css-zoom.js +0 -1
- data/node_modules/caniuse-lite/data/features/css3-attr.js +0 -1
- data/node_modules/caniuse-lite/data/features/css3-boxsizing.js +0 -1
- data/node_modules/caniuse-lite/data/features/css3-colors.js +0 -1
- data/node_modules/caniuse-lite/data/features/css3-cursors-grab.js +0 -1
- data/node_modules/caniuse-lite/data/features/css3-cursors-newer.js +0 -1
- data/node_modules/caniuse-lite/data/features/css3-cursors.js +0 -1
- data/node_modules/caniuse-lite/data/features/css3-tabsize.js +0 -1
- data/node_modules/caniuse-lite/data/features/currentcolor.js +0 -1
- data/node_modules/caniuse-lite/data/features/custom-elements.js +0 -1
- data/node_modules/caniuse-lite/data/features/custom-elementsv1.js +0 -1
- data/node_modules/caniuse-lite/data/features/customevent.js +0 -1
- data/node_modules/caniuse-lite/data/features/datalist.js +0 -1
- data/node_modules/caniuse-lite/data/features/dataset.js +0 -1
- data/node_modules/caniuse-lite/data/features/datauri.js +0 -1
- data/node_modules/caniuse-lite/data/features/date-tolocaledatestring.js +0 -1
- data/node_modules/caniuse-lite/data/features/declarative-shadow-dom.js +0 -1
- data/node_modules/caniuse-lite/data/features/decorators.js +0 -1
- data/node_modules/caniuse-lite/data/features/details.js +0 -1
- data/node_modules/caniuse-lite/data/features/deviceorientation.js +0 -1
- data/node_modules/caniuse-lite/data/features/devicepixelratio.js +0 -1
- data/node_modules/caniuse-lite/data/features/dialog.js +0 -1
- data/node_modules/caniuse-lite/data/features/dispatchevent.js +0 -1
- data/node_modules/caniuse-lite/data/features/dnssec.js +0 -1
- data/node_modules/caniuse-lite/data/features/do-not-track.js +0 -1
- data/node_modules/caniuse-lite/data/features/document-currentscript.js +0 -1
- data/node_modules/caniuse-lite/data/features/document-evaluate-xpath.js +0 -1
- data/node_modules/caniuse-lite/data/features/document-execcommand.js +0 -1
- data/node_modules/caniuse-lite/data/features/document-policy.js +0 -1
- data/node_modules/caniuse-lite/data/features/document-scrollingelement.js +0 -1
- data/node_modules/caniuse-lite/data/features/documenthead.js +0 -1
- data/node_modules/caniuse-lite/data/features/dom-manip-convenience.js +0 -1
- data/node_modules/caniuse-lite/data/features/dom-range.js +0 -1
- data/node_modules/caniuse-lite/data/features/domcontentloaded.js +0 -1
- data/node_modules/caniuse-lite/data/features/dommatrix.js +0 -1
- data/node_modules/caniuse-lite/data/features/download.js +0 -1
- data/node_modules/caniuse-lite/data/features/dragndrop.js +0 -1
- data/node_modules/caniuse-lite/data/features/element-closest.js +0 -1
- data/node_modules/caniuse-lite/data/features/element-from-point.js +0 -1
- data/node_modules/caniuse-lite/data/features/element-scroll-methods.js +0 -1
- data/node_modules/caniuse-lite/data/features/eme.js +0 -1
- data/node_modules/caniuse-lite/data/features/eot.js +0 -1
- data/node_modules/caniuse-lite/data/features/es5.js +0 -1
- data/node_modules/caniuse-lite/data/features/es6-class.js +0 -1
- data/node_modules/caniuse-lite/data/features/es6-generators.js +0 -1
- data/node_modules/caniuse-lite/data/features/es6-module-dynamic-import.js +0 -1
- data/node_modules/caniuse-lite/data/features/es6-module.js +0 -1
- data/node_modules/caniuse-lite/data/features/es6-number.js +0 -1
- data/node_modules/caniuse-lite/data/features/es6-string-includes.js +0 -1
- data/node_modules/caniuse-lite/data/features/es6.js +0 -1
- data/node_modules/caniuse-lite/data/features/eventsource.js +0 -1
- data/node_modules/caniuse-lite/data/features/extended-system-fonts.js +0 -1
- data/node_modules/caniuse-lite/data/features/feature-policy.js +0 -1
- data/node_modules/caniuse-lite/data/features/fetch.js +0 -1
- data/node_modules/caniuse-lite/data/features/fieldset-disabled.js +0 -1
- data/node_modules/caniuse-lite/data/features/fileapi.js +0 -1
- data/node_modules/caniuse-lite/data/features/filereader.js +0 -1
- data/node_modules/caniuse-lite/data/features/filereadersync.js +0 -1
- data/node_modules/caniuse-lite/data/features/filesystem.js +0 -1
- data/node_modules/caniuse-lite/data/features/flac.js +0 -1
- data/node_modules/caniuse-lite/data/features/flexbox-gap.js +0 -1
- data/node_modules/caniuse-lite/data/features/flexbox.js +0 -1
- data/node_modules/caniuse-lite/data/features/flow-root.js +0 -1
- data/node_modules/caniuse-lite/data/features/focusin-focusout-events.js +0 -1
- data/node_modules/caniuse-lite/data/features/font-family-system-ui.js +0 -1
- data/node_modules/caniuse-lite/data/features/font-feature.js +0 -1
- data/node_modules/caniuse-lite/data/features/font-kerning.js +0 -1
- data/node_modules/caniuse-lite/data/features/font-loading.js +0 -1
- data/node_modules/caniuse-lite/data/features/font-size-adjust.js +0 -1
- data/node_modules/caniuse-lite/data/features/font-smooth.js +0 -1
- data/node_modules/caniuse-lite/data/features/font-unicode-range.js +0 -1
- data/node_modules/caniuse-lite/data/features/font-variant-alternates.js +0 -1
- data/node_modules/caniuse-lite/data/features/font-variant-numeric.js +0 -1
- data/node_modules/caniuse-lite/data/features/fontface.js +0 -1
- data/node_modules/caniuse-lite/data/features/form-attribute.js +0 -1
- data/node_modules/caniuse-lite/data/features/form-submit-attributes.js +0 -1
- data/node_modules/caniuse-lite/data/features/form-validation.js +0 -1
- data/node_modules/caniuse-lite/data/features/forms.js +0 -1
- data/node_modules/caniuse-lite/data/features/fullscreen.js +0 -1
- data/node_modules/caniuse-lite/data/features/gamepad.js +0 -1
- data/node_modules/caniuse-lite/data/features/geolocation.js +0 -1
- data/node_modules/caniuse-lite/data/features/getboundingclientrect.js +0 -1
- data/node_modules/caniuse-lite/data/features/getcomputedstyle.js +0 -1
- data/node_modules/caniuse-lite/data/features/getelementsbyclassname.js +0 -1
- data/node_modules/caniuse-lite/data/features/getrandomvalues.js +0 -1
- data/node_modules/caniuse-lite/data/features/gyroscope.js +0 -1
- data/node_modules/caniuse-lite/data/features/hardwareconcurrency.js +0 -1
- data/node_modules/caniuse-lite/data/features/hashchange.js +0 -1
- data/node_modules/caniuse-lite/data/features/heif.js +0 -1
- data/node_modules/caniuse-lite/data/features/hevc.js +0 -1
- data/node_modules/caniuse-lite/data/features/hidden.js +0 -1
- data/node_modules/caniuse-lite/data/features/high-resolution-time.js +0 -1
- data/node_modules/caniuse-lite/data/features/history.js +0 -1
- data/node_modules/caniuse-lite/data/features/html-media-capture.js +0 -1
- data/node_modules/caniuse-lite/data/features/html5semantic.js +0 -1
- data/node_modules/caniuse-lite/data/features/http-live-streaming.js +0 -1
- data/node_modules/caniuse-lite/data/features/http2.js +0 -1
- data/node_modules/caniuse-lite/data/features/http3.js +0 -1
- data/node_modules/caniuse-lite/data/features/iframe-sandbox.js +0 -1
- data/node_modules/caniuse-lite/data/features/iframe-seamless.js +0 -1
- data/node_modules/caniuse-lite/data/features/iframe-srcdoc.js +0 -1
- data/node_modules/caniuse-lite/data/features/imagecapture.js +0 -1
- data/node_modules/caniuse-lite/data/features/ime.js +0 -1
- data/node_modules/caniuse-lite/data/features/img-naturalwidth-naturalheight.js +0 -1
- data/node_modules/caniuse-lite/data/features/import-maps.js +0 -1
- data/node_modules/caniuse-lite/data/features/imports.js +0 -1
- data/node_modules/caniuse-lite/data/features/indeterminate-checkbox.js +0 -1
- data/node_modules/caniuse-lite/data/features/indexeddb.js +0 -1
- data/node_modules/caniuse-lite/data/features/indexeddb2.js +0 -1
- data/node_modules/caniuse-lite/data/features/inline-block.js +0 -1
- data/node_modules/caniuse-lite/data/features/innertext.js +0 -1
- data/node_modules/caniuse-lite/data/features/input-autocomplete-onoff.js +0 -1
- data/node_modules/caniuse-lite/data/features/input-color.js +0 -1
- data/node_modules/caniuse-lite/data/features/input-datetime.js +0 -1
- data/node_modules/caniuse-lite/data/features/input-email-tel-url.js +0 -1
- data/node_modules/caniuse-lite/data/features/input-event.js +0 -1
- data/node_modules/caniuse-lite/data/features/input-file-accept.js +0 -1
- data/node_modules/caniuse-lite/data/features/input-file-directory.js +0 -1
- data/node_modules/caniuse-lite/data/features/input-file-multiple.js +0 -1
- data/node_modules/caniuse-lite/data/features/input-inputmode.js +0 -1
- data/node_modules/caniuse-lite/data/features/input-minlength.js +0 -1
- data/node_modules/caniuse-lite/data/features/input-number.js +0 -1
- data/node_modules/caniuse-lite/data/features/input-pattern.js +0 -1
- data/node_modules/caniuse-lite/data/features/input-placeholder.js +0 -1
- data/node_modules/caniuse-lite/data/features/input-range.js +0 -1
- data/node_modules/caniuse-lite/data/features/input-search.js +0 -1
- data/node_modules/caniuse-lite/data/features/input-selection.js +0 -1
- data/node_modules/caniuse-lite/data/features/insert-adjacent.js +0 -1
- data/node_modules/caniuse-lite/data/features/insertadjacenthtml.js +0 -1
- data/node_modules/caniuse-lite/data/features/internationalization.js +0 -1
- data/node_modules/caniuse-lite/data/features/intersectionobserver-v2.js +0 -1
- data/node_modules/caniuse-lite/data/features/intersectionobserver.js +0 -1
- data/node_modules/caniuse-lite/data/features/intl-pluralrules.js +0 -1
- data/node_modules/caniuse-lite/data/features/intrinsic-width.js +0 -1
- data/node_modules/caniuse-lite/data/features/jpeg2000.js +0 -1
- data/node_modules/caniuse-lite/data/features/jpegxl.js +0 -1
- data/node_modules/caniuse-lite/data/features/jpegxr.js +0 -1
- data/node_modules/caniuse-lite/data/features/js-regexp-lookbehind.js +0 -1
- data/node_modules/caniuse-lite/data/features/json.js +0 -1
- data/node_modules/caniuse-lite/data/features/justify-content-space-evenly.js +0 -1
- data/node_modules/caniuse-lite/data/features/kerning-pairs-ligatures.js +0 -1
- data/node_modules/caniuse-lite/data/features/keyboardevent-charcode.js +0 -1
- data/node_modules/caniuse-lite/data/features/keyboardevent-code.js +0 -1
- data/node_modules/caniuse-lite/data/features/keyboardevent-getmodifierstate.js +0 -1
- data/node_modules/caniuse-lite/data/features/keyboardevent-key.js +0 -1
- data/node_modules/caniuse-lite/data/features/keyboardevent-location.js +0 -1
- data/node_modules/caniuse-lite/data/features/keyboardevent-which.js +0 -1
- data/node_modules/caniuse-lite/data/features/lazyload.js +0 -1
- data/node_modules/caniuse-lite/data/features/let.js +0 -1
- data/node_modules/caniuse-lite/data/features/link-icon-png.js +0 -1
- data/node_modules/caniuse-lite/data/features/link-icon-svg.js +0 -1
- data/node_modules/caniuse-lite/data/features/link-rel-dns-prefetch.js +0 -1
- data/node_modules/caniuse-lite/data/features/link-rel-modulepreload.js +0 -1
- data/node_modules/caniuse-lite/data/features/link-rel-preconnect.js +0 -1
- data/node_modules/caniuse-lite/data/features/link-rel-prefetch.js +0 -1
- data/node_modules/caniuse-lite/data/features/link-rel-preload.js +0 -1
- data/node_modules/caniuse-lite/data/features/link-rel-prerender.js +0 -1
- data/node_modules/caniuse-lite/data/features/loading-lazy-attr.js +0 -1
- data/node_modules/caniuse-lite/data/features/localecompare.js +0 -1
- data/node_modules/caniuse-lite/data/features/magnetometer.js +0 -1
- data/node_modules/caniuse-lite/data/features/matchesselector.js +0 -1
- data/node_modules/caniuse-lite/data/features/matchmedia.js +0 -1
- data/node_modules/caniuse-lite/data/features/mathml.js +0 -1
- data/node_modules/caniuse-lite/data/features/maxlength.js +0 -1
- data/node_modules/caniuse-lite/data/features/mdn-css-backdrop-pseudo-element.js +0 -1
- data/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate-override.js +0 -1
- data/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate.js +0 -1
- data/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-plaintext.js +0 -1
- data/node_modules/caniuse-lite/data/features/mdn-text-decoration-color.js +0 -1
- data/node_modules/caniuse-lite/data/features/mdn-text-decoration-line.js +0 -1
- data/node_modules/caniuse-lite/data/features/mdn-text-decoration-shorthand.js +0 -1
- data/node_modules/caniuse-lite/data/features/mdn-text-decoration-style.js +0 -1
- data/node_modules/caniuse-lite/data/features/media-fragments.js +0 -1
- data/node_modules/caniuse-lite/data/features/mediacapture-fromelement.js +0 -1
- data/node_modules/caniuse-lite/data/features/mediarecorder.js +0 -1
- data/node_modules/caniuse-lite/data/features/mediasource.js +0 -1
- data/node_modules/caniuse-lite/data/features/menu.js +0 -1
- data/node_modules/caniuse-lite/data/features/meta-theme-color.js +0 -1
- data/node_modules/caniuse-lite/data/features/meter.js +0 -1
- data/node_modules/caniuse-lite/data/features/midi.js +0 -1
- data/node_modules/caniuse-lite/data/features/minmaxwh.js +0 -1
- data/node_modules/caniuse-lite/data/features/mp3.js +0 -1
- data/node_modules/caniuse-lite/data/features/mpeg-dash.js +0 -1
- data/node_modules/caniuse-lite/data/features/mpeg4.js +0 -1
- data/node_modules/caniuse-lite/data/features/multibackgrounds.js +0 -1
- data/node_modules/caniuse-lite/data/features/multicolumn.js +0 -1
- data/node_modules/caniuse-lite/data/features/mutation-events.js +0 -1
- data/node_modules/caniuse-lite/data/features/mutationobserver.js +0 -1
- data/node_modules/caniuse-lite/data/features/namevalue-storage.js +0 -1
- data/node_modules/caniuse-lite/data/features/native-filesystem-api.js +0 -1
- data/node_modules/caniuse-lite/data/features/nav-timing.js +0 -1
- data/node_modules/caniuse-lite/data/features/netinfo.js +0 -1
- data/node_modules/caniuse-lite/data/features/notifications.js +0 -1
- data/node_modules/caniuse-lite/data/features/object-entries.js +0 -1
- data/node_modules/caniuse-lite/data/features/object-fit.js +0 -1
- data/node_modules/caniuse-lite/data/features/object-observe.js +0 -1
- data/node_modules/caniuse-lite/data/features/object-values.js +0 -1
- data/node_modules/caniuse-lite/data/features/objectrtc.js +0 -1
- data/node_modules/caniuse-lite/data/features/offline-apps.js +0 -1
- data/node_modules/caniuse-lite/data/features/offscreencanvas.js +0 -1
- data/node_modules/caniuse-lite/data/features/ogg-vorbis.js +0 -1
- data/node_modules/caniuse-lite/data/features/ogv.js +0 -1
- data/node_modules/caniuse-lite/data/features/ol-reversed.js +0 -1
- data/node_modules/caniuse-lite/data/features/once-event-listener.js +0 -1
- data/node_modules/caniuse-lite/data/features/online-status.js +0 -1
- data/node_modules/caniuse-lite/data/features/opus.js +0 -1
- data/node_modules/caniuse-lite/data/features/orientation-sensor.js +0 -1
- data/node_modules/caniuse-lite/data/features/outline.js +0 -1
- data/node_modules/caniuse-lite/data/features/pad-start-end.js +0 -1
- data/node_modules/caniuse-lite/data/features/page-transition-events.js +0 -1
- data/node_modules/caniuse-lite/data/features/pagevisibility.js +0 -1
- data/node_modules/caniuse-lite/data/features/passive-event-listener.js +0 -1
- data/node_modules/caniuse-lite/data/features/passkeys.js +0 -1
- data/node_modules/caniuse-lite/data/features/passwordrules.js +0 -1
- data/node_modules/caniuse-lite/data/features/path2d.js +0 -1
- data/node_modules/caniuse-lite/data/features/payment-request.js +0 -1
- data/node_modules/caniuse-lite/data/features/pdf-viewer.js +0 -1
- data/node_modules/caniuse-lite/data/features/permissions-api.js +0 -1
- data/node_modules/caniuse-lite/data/features/permissions-policy.js +0 -1
- data/node_modules/caniuse-lite/data/features/picture-in-picture.js +0 -1
- data/node_modules/caniuse-lite/data/features/picture.js +0 -1
- data/node_modules/caniuse-lite/data/features/ping.js +0 -1
- data/node_modules/caniuse-lite/data/features/png-alpha.js +0 -1
- data/node_modules/caniuse-lite/data/features/pointer-events.js +0 -1
- data/node_modules/caniuse-lite/data/features/pointer.js +0 -1
- data/node_modules/caniuse-lite/data/features/pointerlock.js +0 -1
- data/node_modules/caniuse-lite/data/features/portals.js +0 -1
- data/node_modules/caniuse-lite/data/features/prefers-color-scheme.js +0 -1
- data/node_modules/caniuse-lite/data/features/prefers-reduced-motion.js +0 -1
- data/node_modules/caniuse-lite/data/features/progress.js +0 -1
- data/node_modules/caniuse-lite/data/features/promise-finally.js +0 -1
- data/node_modules/caniuse-lite/data/features/promises.js +0 -1
- data/node_modules/caniuse-lite/data/features/proximity.js +0 -1
- data/node_modules/caniuse-lite/data/features/proxy.js +0 -1
- data/node_modules/caniuse-lite/data/features/publickeypinning.js +0 -1
- data/node_modules/caniuse-lite/data/features/push-api.js +0 -1
- data/node_modules/caniuse-lite/data/features/queryselector.js +0 -1
- data/node_modules/caniuse-lite/data/features/readonly-attr.js +0 -1
- data/node_modules/caniuse-lite/data/features/referrer-policy.js +0 -1
- data/node_modules/caniuse-lite/data/features/registerprotocolhandler.js +0 -1
- data/node_modules/caniuse-lite/data/features/rel-noopener.js +0 -1
- data/node_modules/caniuse-lite/data/features/rel-noreferrer.js +0 -1
- data/node_modules/caniuse-lite/data/features/rellist.js +0 -1
- data/node_modules/caniuse-lite/data/features/rem.js +0 -1
- data/node_modules/caniuse-lite/data/features/requestanimationframe.js +0 -1
- data/node_modules/caniuse-lite/data/features/requestidlecallback.js +0 -1
- data/node_modules/caniuse-lite/data/features/resizeobserver.js +0 -1
- data/node_modules/caniuse-lite/data/features/resource-timing.js +0 -1
- data/node_modules/caniuse-lite/data/features/rest-parameters.js +0 -1
- data/node_modules/caniuse-lite/data/features/rtcpeerconnection.js +0 -1
- data/node_modules/caniuse-lite/data/features/ruby.js +0 -1
- data/node_modules/caniuse-lite/data/features/run-in.js +0 -1
- data/node_modules/caniuse-lite/data/features/same-site-cookie-attribute.js +0 -1
- data/node_modules/caniuse-lite/data/features/screen-orientation.js +0 -1
- data/node_modules/caniuse-lite/data/features/script-async.js +0 -1
- data/node_modules/caniuse-lite/data/features/script-defer.js +0 -1
- data/node_modules/caniuse-lite/data/features/scrollintoview.js +0 -1
- data/node_modules/caniuse-lite/data/features/scrollintoviewifneeded.js +0 -1
- data/node_modules/caniuse-lite/data/features/sdch.js +0 -1
- data/node_modules/caniuse-lite/data/features/selection-api.js +0 -1
- data/node_modules/caniuse-lite/data/features/selectlist.js +0 -1
- data/node_modules/caniuse-lite/data/features/server-timing.js +0 -1
- data/node_modules/caniuse-lite/data/features/serviceworkers.js +0 -1
- data/node_modules/caniuse-lite/data/features/setimmediate.js +0 -1
- data/node_modules/caniuse-lite/data/features/shadowdom.js +0 -1
- data/node_modules/caniuse-lite/data/features/shadowdomv1.js +0 -1
- data/node_modules/caniuse-lite/data/features/sharedarraybuffer.js +0 -1
- data/node_modules/caniuse-lite/data/features/sharedworkers.js +0 -1
- data/node_modules/caniuse-lite/data/features/sni.js +0 -1
- data/node_modules/caniuse-lite/data/features/spdy.js +0 -1
- data/node_modules/caniuse-lite/data/features/speech-recognition.js +0 -1
- data/node_modules/caniuse-lite/data/features/speech-synthesis.js +0 -1
- data/node_modules/caniuse-lite/data/features/spellcheck-attribute.js +0 -1
- data/node_modules/caniuse-lite/data/features/sql-storage.js +0 -1
- data/node_modules/caniuse-lite/data/features/srcset.js +0 -1
- data/node_modules/caniuse-lite/data/features/stream.js +0 -1
- data/node_modules/caniuse-lite/data/features/streams.js +0 -1
- data/node_modules/caniuse-lite/data/features/stricttransportsecurity.js +0 -1
- data/node_modules/caniuse-lite/data/features/style-scoped.js +0 -1
- data/node_modules/caniuse-lite/data/features/subresource-bundling.js +0 -1
- data/node_modules/caniuse-lite/data/features/subresource-integrity.js +0 -1
- data/node_modules/caniuse-lite/data/features/svg-css.js +0 -1
- data/node_modules/caniuse-lite/data/features/svg-filters.js +0 -1
- data/node_modules/caniuse-lite/data/features/svg-fonts.js +0 -1
- data/node_modules/caniuse-lite/data/features/svg-fragment.js +0 -1
- data/node_modules/caniuse-lite/data/features/svg-html.js +0 -1
- data/node_modules/caniuse-lite/data/features/svg-html5.js +0 -1
- data/node_modules/caniuse-lite/data/features/svg-img.js +0 -1
- data/node_modules/caniuse-lite/data/features/svg-smil.js +0 -1
- data/node_modules/caniuse-lite/data/features/svg.js +0 -1
- data/node_modules/caniuse-lite/data/features/sxg.js +0 -1
- data/node_modules/caniuse-lite/data/features/tabindex-attr.js +0 -1
- data/node_modules/caniuse-lite/data/features/template-literals.js +0 -1
- data/node_modules/caniuse-lite/data/features/template.js +0 -1
- data/node_modules/caniuse-lite/data/features/temporal.js +0 -1
- data/node_modules/caniuse-lite/data/features/testfeat.js +0 -1
- data/node_modules/caniuse-lite/data/features/text-decoration.js +0 -1
- data/node_modules/caniuse-lite/data/features/text-emphasis.js +0 -1
- data/node_modules/caniuse-lite/data/features/text-overflow.js +0 -1
- data/node_modules/caniuse-lite/data/features/text-size-adjust.js +0 -1
- data/node_modules/caniuse-lite/data/features/text-stroke.js +0 -1
- data/node_modules/caniuse-lite/data/features/textcontent.js +0 -1
- data/node_modules/caniuse-lite/data/features/textencoder.js +0 -1
- data/node_modules/caniuse-lite/data/features/tls1-1.js +0 -1
- data/node_modules/caniuse-lite/data/features/tls1-2.js +0 -1
- data/node_modules/caniuse-lite/data/features/tls1-3.js +0 -1
- data/node_modules/caniuse-lite/data/features/touch.js +0 -1
- data/node_modules/caniuse-lite/data/features/transforms2d.js +0 -1
- data/node_modules/caniuse-lite/data/features/transforms3d.js +0 -1
- data/node_modules/caniuse-lite/data/features/trusted-types.js +0 -1
- data/node_modules/caniuse-lite/data/features/ttf.js +0 -1
- data/node_modules/caniuse-lite/data/features/typedarrays.js +0 -1
- data/node_modules/caniuse-lite/data/features/u2f.js +0 -1
- data/node_modules/caniuse-lite/data/features/unhandledrejection.js +0 -1
- data/node_modules/caniuse-lite/data/features/upgradeinsecurerequests.js +0 -1
- data/node_modules/caniuse-lite/data/features/url-scroll-to-text-fragment.js +0 -1
- data/node_modules/caniuse-lite/data/features/url.js +0 -1
- data/node_modules/caniuse-lite/data/features/urlsearchparams.js +0 -1
- data/node_modules/caniuse-lite/data/features/use-strict.js +0 -1
- data/node_modules/caniuse-lite/data/features/user-select-none.js +0 -1
- data/node_modules/caniuse-lite/data/features/user-timing.js +0 -1
- data/node_modules/caniuse-lite/data/features/variable-fonts.js +0 -1
- data/node_modules/caniuse-lite/data/features/vector-effect.js +0 -1
- data/node_modules/caniuse-lite/data/features/vibration.js +0 -1
- data/node_modules/caniuse-lite/data/features/video.js +0 -1
- data/node_modules/caniuse-lite/data/features/videotracks.js +0 -1
- data/node_modules/caniuse-lite/data/features/view-transitions.js +0 -1
- data/node_modules/caniuse-lite/data/features/viewport-unit-variants.js +0 -1
- data/node_modules/caniuse-lite/data/features/viewport-units.js +0 -1
- data/node_modules/caniuse-lite/data/features/wai-aria.js +0 -1
- data/node_modules/caniuse-lite/data/features/wake-lock.js +0 -1
- data/node_modules/caniuse-lite/data/features/wasm-bigint.js +0 -1
- data/node_modules/caniuse-lite/data/features/wasm-bulk-memory.js +0 -1
- data/node_modules/caniuse-lite/data/features/wasm-extended-const.js +0 -1
- data/node_modules/caniuse-lite/data/features/wasm-gc.js +0 -1
- data/node_modules/caniuse-lite/data/features/wasm-multi-memory.js +0 -1
- data/node_modules/caniuse-lite/data/features/wasm-multi-value.js +0 -1
- data/node_modules/caniuse-lite/data/features/wasm-mutable-globals.js +0 -1
- data/node_modules/caniuse-lite/data/features/wasm-nontrapping-fptoint.js +0 -1
- data/node_modules/caniuse-lite/data/features/wasm-reference-types.js +0 -1
- data/node_modules/caniuse-lite/data/features/wasm-relaxed-simd.js +0 -1
- data/node_modules/caniuse-lite/data/features/wasm-signext.js +0 -1
- data/node_modules/caniuse-lite/data/features/wasm-simd.js +0 -1
- data/node_modules/caniuse-lite/data/features/wasm-tail-calls.js +0 -1
- data/node_modules/caniuse-lite/data/features/wasm-threads.js +0 -1
- data/node_modules/caniuse-lite/data/features/wasm.js +0 -1
- data/node_modules/caniuse-lite/data/features/wav.js +0 -1
- data/node_modules/caniuse-lite/data/features/wbr-element.js +0 -1
- data/node_modules/caniuse-lite/data/features/web-animation.js +0 -1
- data/node_modules/caniuse-lite/data/features/web-app-manifest.js +0 -1
- data/node_modules/caniuse-lite/data/features/web-bluetooth.js +0 -1
- data/node_modules/caniuse-lite/data/features/web-serial.js +0 -1
- data/node_modules/caniuse-lite/data/features/web-share.js +0 -1
- data/node_modules/caniuse-lite/data/features/webauthn.js +0 -1
- data/node_modules/caniuse-lite/data/features/webcodecs.js +0 -1
- data/node_modules/caniuse-lite/data/features/webgl.js +0 -1
- data/node_modules/caniuse-lite/data/features/webgl2.js +0 -1
- data/node_modules/caniuse-lite/data/features/webgpu.js +0 -1
- data/node_modules/caniuse-lite/data/features/webhid.js +0 -1
- data/node_modules/caniuse-lite/data/features/webkit-user-drag.js +0 -1
- data/node_modules/caniuse-lite/data/features/webm.js +0 -1
- data/node_modules/caniuse-lite/data/features/webnfc.js +0 -1
- data/node_modules/caniuse-lite/data/features/webp.js +0 -1
- data/node_modules/caniuse-lite/data/features/websockets.js +0 -1
- data/node_modules/caniuse-lite/data/features/webtransport.js +0 -1
- data/node_modules/caniuse-lite/data/features/webusb.js +0 -1
- data/node_modules/caniuse-lite/data/features/webvr.js +0 -1
- data/node_modules/caniuse-lite/data/features/webvtt.js +0 -1
- data/node_modules/caniuse-lite/data/features/webworkers.js +0 -1
- data/node_modules/caniuse-lite/data/features/webxr.js +0 -1
- data/node_modules/caniuse-lite/data/features/will-change.js +0 -1
- data/node_modules/caniuse-lite/data/features/woff.js +0 -1
- data/node_modules/caniuse-lite/data/features/woff2.js +0 -1
- data/node_modules/caniuse-lite/data/features/word-break.js +0 -1
- data/node_modules/caniuse-lite/data/features/wordwrap.js +0 -1
- data/node_modules/caniuse-lite/data/features/x-doc-messaging.js +0 -1
- data/node_modules/caniuse-lite/data/features/x-frame-options.js +0 -1
- data/node_modules/caniuse-lite/data/features/xhr2.js +0 -1
- data/node_modules/caniuse-lite/data/features/xhtml.js +0 -1
- data/node_modules/caniuse-lite/data/features/xhtmlsmil.js +0 -1
- data/node_modules/caniuse-lite/data/features/xml-serializer.js +0 -1
- data/node_modules/caniuse-lite/data/features/zstd.js +0 -1
- data/node_modules/caniuse-lite/data/features.js +0 -1
- data/node_modules/caniuse-lite/data/regions/AD.js +0 -1
- data/node_modules/caniuse-lite/data/regions/AE.js +0 -1
- data/node_modules/caniuse-lite/data/regions/AF.js +0 -1
- data/node_modules/caniuse-lite/data/regions/AG.js +0 -1
- data/node_modules/caniuse-lite/data/regions/AI.js +0 -1
- data/node_modules/caniuse-lite/data/regions/AL.js +0 -1
- data/node_modules/caniuse-lite/data/regions/AM.js +0 -1
- data/node_modules/caniuse-lite/data/regions/AO.js +0 -1
- data/node_modules/caniuse-lite/data/regions/AR.js +0 -1
- data/node_modules/caniuse-lite/data/regions/AS.js +0 -1
- data/node_modules/caniuse-lite/data/regions/AT.js +0 -1
- data/node_modules/caniuse-lite/data/regions/AU.js +0 -1
- data/node_modules/caniuse-lite/data/regions/AW.js +0 -1
- data/node_modules/caniuse-lite/data/regions/AX.js +0 -1
- data/node_modules/caniuse-lite/data/regions/AZ.js +0 -1
- data/node_modules/caniuse-lite/data/regions/BA.js +0 -1
- data/node_modules/caniuse-lite/data/regions/BB.js +0 -1
- data/node_modules/caniuse-lite/data/regions/BD.js +0 -1
- data/node_modules/caniuse-lite/data/regions/BE.js +0 -1
- data/node_modules/caniuse-lite/data/regions/BF.js +0 -1
- data/node_modules/caniuse-lite/data/regions/BG.js +0 -1
- data/node_modules/caniuse-lite/data/regions/BH.js +0 -1
- data/node_modules/caniuse-lite/data/regions/BI.js +0 -1
- data/node_modules/caniuse-lite/data/regions/BJ.js +0 -1
- data/node_modules/caniuse-lite/data/regions/BM.js +0 -1
- data/node_modules/caniuse-lite/data/regions/BN.js +0 -1
- data/node_modules/caniuse-lite/data/regions/BO.js +0 -1
- data/node_modules/caniuse-lite/data/regions/BR.js +0 -1
- data/node_modules/caniuse-lite/data/regions/BS.js +0 -1
- data/node_modules/caniuse-lite/data/regions/BT.js +0 -1
- data/node_modules/caniuse-lite/data/regions/BW.js +0 -1
- data/node_modules/caniuse-lite/data/regions/BY.js +0 -1
- data/node_modules/caniuse-lite/data/regions/BZ.js +0 -1
- data/node_modules/caniuse-lite/data/regions/CA.js +0 -1
- data/node_modules/caniuse-lite/data/regions/CD.js +0 -1
- data/node_modules/caniuse-lite/data/regions/CF.js +0 -1
- data/node_modules/caniuse-lite/data/regions/CG.js +0 -1
- data/node_modules/caniuse-lite/data/regions/CH.js +0 -1
- data/node_modules/caniuse-lite/data/regions/CI.js +0 -1
- data/node_modules/caniuse-lite/data/regions/CK.js +0 -1
- data/node_modules/caniuse-lite/data/regions/CL.js +0 -1
- data/node_modules/caniuse-lite/data/regions/CM.js +0 -1
- data/node_modules/caniuse-lite/data/regions/CN.js +0 -1
- data/node_modules/caniuse-lite/data/regions/CO.js +0 -1
- data/node_modules/caniuse-lite/data/regions/CR.js +0 -1
- data/node_modules/caniuse-lite/data/regions/CU.js +0 -1
- data/node_modules/caniuse-lite/data/regions/CV.js +0 -1
- data/node_modules/caniuse-lite/data/regions/CX.js +0 -1
- data/node_modules/caniuse-lite/data/regions/CY.js +0 -1
- data/node_modules/caniuse-lite/data/regions/CZ.js +0 -1
- data/node_modules/caniuse-lite/data/regions/DE.js +0 -1
- data/node_modules/caniuse-lite/data/regions/DJ.js +0 -1
- data/node_modules/caniuse-lite/data/regions/DK.js +0 -1
- data/node_modules/caniuse-lite/data/regions/DM.js +0 -1
- data/node_modules/caniuse-lite/data/regions/DO.js +0 -1
- data/node_modules/caniuse-lite/data/regions/DZ.js +0 -1
- data/node_modules/caniuse-lite/data/regions/EC.js +0 -1
- data/node_modules/caniuse-lite/data/regions/EE.js +0 -1
- data/node_modules/caniuse-lite/data/regions/EG.js +0 -1
- data/node_modules/caniuse-lite/data/regions/ER.js +0 -1
- data/node_modules/caniuse-lite/data/regions/ES.js +0 -1
- data/node_modules/caniuse-lite/data/regions/ET.js +0 -1
- data/node_modules/caniuse-lite/data/regions/FI.js +0 -1
- data/node_modules/caniuse-lite/data/regions/FJ.js +0 -1
- data/node_modules/caniuse-lite/data/regions/FK.js +0 -1
- data/node_modules/caniuse-lite/data/regions/FM.js +0 -1
- data/node_modules/caniuse-lite/data/regions/FO.js +0 -1
- data/node_modules/caniuse-lite/data/regions/FR.js +0 -1
- data/node_modules/caniuse-lite/data/regions/GA.js +0 -1
- data/node_modules/caniuse-lite/data/regions/GB.js +0 -1
- data/node_modules/caniuse-lite/data/regions/GD.js +0 -1
- data/node_modules/caniuse-lite/data/regions/GE.js +0 -1
- data/node_modules/caniuse-lite/data/regions/GF.js +0 -1
- data/node_modules/caniuse-lite/data/regions/GG.js +0 -1
- data/node_modules/caniuse-lite/data/regions/GH.js +0 -1
- data/node_modules/caniuse-lite/data/regions/GI.js +0 -1
- data/node_modules/caniuse-lite/data/regions/GL.js +0 -1
- data/node_modules/caniuse-lite/data/regions/GM.js +0 -1
- data/node_modules/caniuse-lite/data/regions/GN.js +0 -1
- data/node_modules/caniuse-lite/data/regions/GP.js +0 -1
- data/node_modules/caniuse-lite/data/regions/GQ.js +0 -1
- data/node_modules/caniuse-lite/data/regions/GR.js +0 -1
- data/node_modules/caniuse-lite/data/regions/GT.js +0 -1
- data/node_modules/caniuse-lite/data/regions/GU.js +0 -1
- data/node_modules/caniuse-lite/data/regions/GW.js +0 -1
- data/node_modules/caniuse-lite/data/regions/GY.js +0 -1
- data/node_modules/caniuse-lite/data/regions/HK.js +0 -1
- data/node_modules/caniuse-lite/data/regions/HN.js +0 -1
- data/node_modules/caniuse-lite/data/regions/HR.js +0 -1
- data/node_modules/caniuse-lite/data/regions/HT.js +0 -1
- data/node_modules/caniuse-lite/data/regions/HU.js +0 -1
- data/node_modules/caniuse-lite/data/regions/ID.js +0 -1
- data/node_modules/caniuse-lite/data/regions/IE.js +0 -1
- data/node_modules/caniuse-lite/data/regions/IL.js +0 -1
- data/node_modules/caniuse-lite/data/regions/IM.js +0 -1
- data/node_modules/caniuse-lite/data/regions/IN.js +0 -1
- data/node_modules/caniuse-lite/data/regions/IQ.js +0 -1
- data/node_modules/caniuse-lite/data/regions/IR.js +0 -1
- data/node_modules/caniuse-lite/data/regions/IS.js +0 -1
- data/node_modules/caniuse-lite/data/regions/IT.js +0 -1
- data/node_modules/caniuse-lite/data/regions/JE.js +0 -1
- data/node_modules/caniuse-lite/data/regions/JM.js +0 -1
- data/node_modules/caniuse-lite/data/regions/JO.js +0 -1
- data/node_modules/caniuse-lite/data/regions/JP.js +0 -1
- data/node_modules/caniuse-lite/data/regions/KE.js +0 -1
- data/node_modules/caniuse-lite/data/regions/KG.js +0 -1
- data/node_modules/caniuse-lite/data/regions/KH.js +0 -1
- data/node_modules/caniuse-lite/data/regions/KI.js +0 -1
- data/node_modules/caniuse-lite/data/regions/KM.js +0 -1
- data/node_modules/caniuse-lite/data/regions/KN.js +0 -1
- data/node_modules/caniuse-lite/data/regions/KP.js +0 -1
- data/node_modules/caniuse-lite/data/regions/KR.js +0 -1
- data/node_modules/caniuse-lite/data/regions/KW.js +0 -1
- data/node_modules/caniuse-lite/data/regions/KY.js +0 -1
- data/node_modules/caniuse-lite/data/regions/KZ.js +0 -1
- data/node_modules/caniuse-lite/data/regions/LA.js +0 -1
- data/node_modules/caniuse-lite/data/regions/LB.js +0 -1
- data/node_modules/caniuse-lite/data/regions/LC.js +0 -1
- data/node_modules/caniuse-lite/data/regions/LI.js +0 -1
- data/node_modules/caniuse-lite/data/regions/LK.js +0 -1
- data/node_modules/caniuse-lite/data/regions/LR.js +0 -1
- data/node_modules/caniuse-lite/data/regions/LS.js +0 -1
- data/node_modules/caniuse-lite/data/regions/LT.js +0 -1
- data/node_modules/caniuse-lite/data/regions/LU.js +0 -1
- data/node_modules/caniuse-lite/data/regions/LV.js +0 -1
- data/node_modules/caniuse-lite/data/regions/LY.js +0 -1
- data/node_modules/caniuse-lite/data/regions/MA.js +0 -1
- data/node_modules/caniuse-lite/data/regions/MC.js +0 -1
- data/node_modules/caniuse-lite/data/regions/MD.js +0 -1
- data/node_modules/caniuse-lite/data/regions/ME.js +0 -1
- data/node_modules/caniuse-lite/data/regions/MG.js +0 -1
- data/node_modules/caniuse-lite/data/regions/MH.js +0 -1
- data/node_modules/caniuse-lite/data/regions/MK.js +0 -1
- data/node_modules/caniuse-lite/data/regions/ML.js +0 -1
- data/node_modules/caniuse-lite/data/regions/MM.js +0 -1
- data/node_modules/caniuse-lite/data/regions/MN.js +0 -1
- data/node_modules/caniuse-lite/data/regions/MO.js +0 -1
- data/node_modules/caniuse-lite/data/regions/MP.js +0 -1
- data/node_modules/caniuse-lite/data/regions/MQ.js +0 -1
- data/node_modules/caniuse-lite/data/regions/MR.js +0 -1
- data/node_modules/caniuse-lite/data/regions/MS.js +0 -1
- data/node_modules/caniuse-lite/data/regions/MT.js +0 -1
- data/node_modules/caniuse-lite/data/regions/MU.js +0 -1
- data/node_modules/caniuse-lite/data/regions/MV.js +0 -1
- data/node_modules/caniuse-lite/data/regions/MW.js +0 -1
- data/node_modules/caniuse-lite/data/regions/MX.js +0 -1
- data/node_modules/caniuse-lite/data/regions/MY.js +0 -1
- data/node_modules/caniuse-lite/data/regions/MZ.js +0 -1
- data/node_modules/caniuse-lite/data/regions/NA.js +0 -1
- data/node_modules/caniuse-lite/data/regions/NC.js +0 -1
- data/node_modules/caniuse-lite/data/regions/NE.js +0 -1
- data/node_modules/caniuse-lite/data/regions/NF.js +0 -1
- data/node_modules/caniuse-lite/data/regions/NG.js +0 -1
- data/node_modules/caniuse-lite/data/regions/NI.js +0 -1
- data/node_modules/caniuse-lite/data/regions/NL.js +0 -1
- data/node_modules/caniuse-lite/data/regions/NO.js +0 -1
- data/node_modules/caniuse-lite/data/regions/NP.js +0 -1
- data/node_modules/caniuse-lite/data/regions/NR.js +0 -1
- data/node_modules/caniuse-lite/data/regions/NU.js +0 -1
- data/node_modules/caniuse-lite/data/regions/NZ.js +0 -1
- data/node_modules/caniuse-lite/data/regions/OM.js +0 -1
- data/node_modules/caniuse-lite/data/regions/PA.js +0 -1
- data/node_modules/caniuse-lite/data/regions/PE.js +0 -1
- data/node_modules/caniuse-lite/data/regions/PF.js +0 -1
- data/node_modules/caniuse-lite/data/regions/PG.js +0 -1
- data/node_modules/caniuse-lite/data/regions/PH.js +0 -1
- data/node_modules/caniuse-lite/data/regions/PK.js +0 -1
- data/node_modules/caniuse-lite/data/regions/PL.js +0 -1
- data/node_modules/caniuse-lite/data/regions/PM.js +0 -1
- data/node_modules/caniuse-lite/data/regions/PN.js +0 -1
- data/node_modules/caniuse-lite/data/regions/PR.js +0 -1
- data/node_modules/caniuse-lite/data/regions/PS.js +0 -1
- data/node_modules/caniuse-lite/data/regions/PT.js +0 -1
- data/node_modules/caniuse-lite/data/regions/PW.js +0 -1
- data/node_modules/caniuse-lite/data/regions/PY.js +0 -1
- data/node_modules/caniuse-lite/data/regions/QA.js +0 -1
- data/node_modules/caniuse-lite/data/regions/RE.js +0 -1
- data/node_modules/caniuse-lite/data/regions/RO.js +0 -1
- data/node_modules/caniuse-lite/data/regions/RS.js +0 -1
- data/node_modules/caniuse-lite/data/regions/RU.js +0 -1
- data/node_modules/caniuse-lite/data/regions/RW.js +0 -1
- data/node_modules/caniuse-lite/data/regions/SA.js +0 -1
- data/node_modules/caniuse-lite/data/regions/SB.js +0 -1
- data/node_modules/caniuse-lite/data/regions/SC.js +0 -1
- data/node_modules/caniuse-lite/data/regions/SD.js +0 -1
- data/node_modules/caniuse-lite/data/regions/SE.js +0 -1
- data/node_modules/caniuse-lite/data/regions/SG.js +0 -1
- data/node_modules/caniuse-lite/data/regions/SH.js +0 -1
- data/node_modules/caniuse-lite/data/regions/SI.js +0 -1
- data/node_modules/caniuse-lite/data/regions/SK.js +0 -1
- data/node_modules/caniuse-lite/data/regions/SL.js +0 -1
- data/node_modules/caniuse-lite/data/regions/SM.js +0 -1
- data/node_modules/caniuse-lite/data/regions/SN.js +0 -1
- data/node_modules/caniuse-lite/data/regions/SO.js +0 -1
- data/node_modules/caniuse-lite/data/regions/SR.js +0 -1
- data/node_modules/caniuse-lite/data/regions/ST.js +0 -1
- data/node_modules/caniuse-lite/data/regions/SV.js +0 -1
- data/node_modules/caniuse-lite/data/regions/SY.js +0 -1
- data/node_modules/caniuse-lite/data/regions/SZ.js +0 -1
- data/node_modules/caniuse-lite/data/regions/TC.js +0 -1
- data/node_modules/caniuse-lite/data/regions/TD.js +0 -1
- data/node_modules/caniuse-lite/data/regions/TG.js +0 -1
- data/node_modules/caniuse-lite/data/regions/TH.js +0 -1
- data/node_modules/caniuse-lite/data/regions/TJ.js +0 -1
- data/node_modules/caniuse-lite/data/regions/TK.js +0 -1
- data/node_modules/caniuse-lite/data/regions/TL.js +0 -1
- data/node_modules/caniuse-lite/data/regions/TM.js +0 -1
- data/node_modules/caniuse-lite/data/regions/TN.js +0 -1
- data/node_modules/caniuse-lite/data/regions/TO.js +0 -1
- data/node_modules/caniuse-lite/data/regions/TR.js +0 -1
- data/node_modules/caniuse-lite/data/regions/TT.js +0 -1
- data/node_modules/caniuse-lite/data/regions/TV.js +0 -1
- data/node_modules/caniuse-lite/data/regions/TW.js +0 -1
- data/node_modules/caniuse-lite/data/regions/TZ.js +0 -1
- data/node_modules/caniuse-lite/data/regions/UA.js +0 -1
- data/node_modules/caniuse-lite/data/regions/UG.js +0 -1
- data/node_modules/caniuse-lite/data/regions/US.js +0 -1
- data/node_modules/caniuse-lite/data/regions/UY.js +0 -1
- data/node_modules/caniuse-lite/data/regions/UZ.js +0 -1
- data/node_modules/caniuse-lite/data/regions/VA.js +0 -1
- data/node_modules/caniuse-lite/data/regions/VC.js +0 -1
- data/node_modules/caniuse-lite/data/regions/VE.js +0 -1
- data/node_modules/caniuse-lite/data/regions/VG.js +0 -1
- data/node_modules/caniuse-lite/data/regions/VI.js +0 -1
- data/node_modules/caniuse-lite/data/regions/VN.js +0 -1
- data/node_modules/caniuse-lite/data/regions/VU.js +0 -1
- data/node_modules/caniuse-lite/data/regions/WF.js +0 -1
- data/node_modules/caniuse-lite/data/regions/WS.js +0 -1
- data/node_modules/caniuse-lite/data/regions/YE.js +0 -1
- data/node_modules/caniuse-lite/data/regions/YT.js +0 -1
- data/node_modules/caniuse-lite/data/regions/ZA.js +0 -1
- data/node_modules/caniuse-lite/data/regions/ZM.js +0 -1
- data/node_modules/caniuse-lite/data/regions/ZW.js +0 -1
- data/node_modules/caniuse-lite/data/regions/alt-af.js +0 -1
- data/node_modules/caniuse-lite/data/regions/alt-an.js +0 -1
- data/node_modules/caniuse-lite/data/regions/alt-as.js +0 -1
- data/node_modules/caniuse-lite/data/regions/alt-eu.js +0 -1
- data/node_modules/caniuse-lite/data/regions/alt-na.js +0 -1
- data/node_modules/caniuse-lite/data/regions/alt-oc.js +0 -1
- data/node_modules/caniuse-lite/data/regions/alt-sa.js +0 -1
- data/node_modules/caniuse-lite/data/regions/alt-ww.js +0 -1
- data/node_modules/caniuse-lite/dist/lib/statuses.js +0 -9
- data/node_modules/caniuse-lite/dist/lib/supported.js +0 -9
- data/node_modules/caniuse-lite/dist/unpacker/agents.js +0 -47
- data/node_modules/caniuse-lite/dist/unpacker/browserVersions.js +0 -1
- data/node_modules/caniuse-lite/dist/unpacker/browsers.js +0 -1
- data/node_modules/caniuse-lite/dist/unpacker/feature.js +0 -52
- data/node_modules/caniuse-lite/dist/unpacker/features.js +0 -6
- data/node_modules/caniuse-lite/dist/unpacker/index.js +0 -4
- data/node_modules/caniuse-lite/dist/unpacker/region.js +0 -22
- data/node_modules/caniuse-lite/package.json +0 -34
- data/node_modules/chalk/index.js +0 -228
- data/node_modules/chalk/index.js.flow +0 -93
- data/node_modules/chalk/license +0 -9
- data/node_modules/chalk/package.json +0 -71
- data/node_modules/chalk/readme.md +0 -314
- data/node_modules/chalk/templates.js +0 -128
- data/node_modules/chalk/types/index.d.ts +0 -97
- data/node_modules/ci-info/CHANGELOG.md +0 -78
- data/node_modules/ci-info/LICENSE +0 -21
- data/node_modules/ci-info/README.md +0 -108
- data/node_modules/ci-info/index.js +0 -66
- data/node_modules/ci-info/package.json +0 -36
- data/node_modules/ci-info/vendors.json +0 -153
- data/node_modules/coffee-lex/LICENSE +0 -7
- data/node_modules/coffee-lex/README.md +0 -144
- data/node_modules/coffee-lex/dist/index.d.ts +0 -313
- data/node_modules/coffee-lex/dist/index.js +0 -1565
- data/node_modules/coffee-lex/dist/index.mjs +0 -1530
- data/node_modules/coffee-lex/package.json +0 -81
- data/node_modules/color-convert/CHANGELOG.md +0 -54
- data/node_modules/color-convert/LICENSE +0 -21
- data/node_modules/color-convert/README.md +0 -68
- data/node_modules/color-convert/conversions.js +0 -868
- data/node_modules/color-convert/index.js +0 -78
- data/node_modules/color-convert/package.json +0 -46
- data/node_modules/color-convert/route.js +0 -97
- data/node_modules/color-name/.eslintrc.json +0 -43
- data/node_modules/color-name/.npmignore +0 -107
- data/node_modules/color-name/LICENSE +0 -8
- data/node_modules/color-name/README.md +0 -11
- data/node_modules/color-name/index.js +0 -152
- data/node_modules/color-name/package.json +0 -25
- data/node_modules/color-name/test.js +0 -7
- data/node_modules/convert-source-map/LICENSE +0 -23
- data/node_modules/convert-source-map/README.md +0 -206
- data/node_modules/convert-source-map/index.js +0 -233
- data/node_modules/convert-source-map/package.json +0 -38
- data/node_modules/cross-spawn/CHANGELOG.md +0 -130
- data/node_modules/cross-spawn/LICENSE +0 -21
- data/node_modules/cross-spawn/README.md +0 -96
- data/node_modules/cross-spawn/index.js +0 -39
- data/node_modules/cross-spawn/lib/enoent.js +0 -59
- data/node_modules/cross-spawn/lib/parse.js +0 -91
- data/node_modules/cross-spawn/lib/util/escape.js +0 -45
- data/node_modules/cross-spawn/lib/util/readShebang.js +0 -23
- data/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -52
- data/node_modules/cross-spawn/node_modules/.bin/node-which +0 -1
- data/node_modules/cross-spawn/package.json +0 -73
- data/node_modules/debug/LICENSE +0 -20
- data/node_modules/debug/README.md +0 -481
- data/node_modules/debug/package.json +0 -60
- data/node_modules/debug/src/browser.js +0 -269
- data/node_modules/debug/src/common.js +0 -274
- data/node_modules/debug/src/index.js +0 -10
- data/node_modules/debug/src/node.js +0 -263
- data/node_modules/decaffeinate/LICENSE +0 -7
- data/node_modules/decaffeinate/README.md +0 -196
- data/node_modules/decaffeinate/bin/decaffeinate +0 -3
- data/node_modules/decaffeinate/dist/index.d.ts +0 -72
- data/node_modules/decaffeinate/dist/index.js +0 -10542
- data/node_modules/decaffeinate/dist/index.mjs +0 -10582
- data/node_modules/decaffeinate/node_modules/.bin/cake +0 -1
- data/node_modules/decaffeinate/node_modules/.bin/coffee +0 -1
- data/node_modules/decaffeinate/node_modules/.bin/is-ci +0 -1
- data/node_modules/decaffeinate/node_modules/.bin/is-ci-cli +0 -1
- data/node_modules/decaffeinate/package.json +0 -133
- data/node_modules/decaffeinate-coffeescript/LICENSE +0 -22
- data/node_modules/decaffeinate-coffeescript/README.md +0 -47
- data/node_modules/decaffeinate-coffeescript/bin/cake +0 -18
- data/node_modules/decaffeinate-coffeescript/bin/coffee +0 -18
- data/node_modules/decaffeinate-coffeescript/lib/coffee-script/browser.js +0 -132
- data/node_modules/decaffeinate-coffeescript/lib/coffee-script/cake.js +0 -114
- data/node_modules/decaffeinate-coffeescript/lib/coffee-script/coffee-script.d.ts +0 -60
- data/node_modules/decaffeinate-coffeescript/lib/coffee-script/coffee-script.js +0 -331
- data/node_modules/decaffeinate-coffeescript/lib/coffee-script/command.js +0 -610
- data/node_modules/decaffeinate-coffeescript/lib/coffee-script/grammar.js +0 -816
- data/node_modules/decaffeinate-coffeescript/lib/coffee-script/helpers.js +0 -249
- data/node_modules/decaffeinate-coffeescript/lib/coffee-script/index.js +0 -29
- data/node_modules/decaffeinate-coffeescript/lib/coffee-script/lexer.d.ts +0 -83
- data/node_modules/decaffeinate-coffeescript/lib/coffee-script/lexer.js +0 -1166
- data/node_modules/decaffeinate-coffeescript/lib/coffee-script/nodes.d.ts +0 -791
- data/node_modules/decaffeinate-coffeescript/lib/coffee-script/nodes.js +0 -3899
- data/node_modules/decaffeinate-coffeescript/lib/coffee-script/optparse.js +0 -139
- data/node_modules/decaffeinate-coffeescript/lib/coffee-script/parser.js +0 -887
- data/node_modules/decaffeinate-coffeescript/lib/coffee-script/register.js +0 -66
- data/node_modules/decaffeinate-coffeescript/lib/coffee-script/repl.js +0 -203
- data/node_modules/decaffeinate-coffeescript/lib/coffee-script/rewriter.js +0 -537
- data/node_modules/decaffeinate-coffeescript/lib/coffee-script/scope.d.ts +0 -3
- data/node_modules/decaffeinate-coffeescript/lib/coffee-script/scope.js +0 -165
- data/node_modules/decaffeinate-coffeescript/lib/coffee-script/sourcemap.d.ts +0 -13
- data/node_modules/decaffeinate-coffeescript/lib/coffee-script/sourcemap.js +0 -161
- data/node_modules/decaffeinate-coffeescript/package.json +0 -49
- data/node_modules/decaffeinate-coffeescript/register.js +0 -1
- data/node_modules/decaffeinate-coffeescript/repl.js +0 -1
- data/node_modules/decaffeinate-coffeescript2/LICENSE +0 -22
- data/node_modules/decaffeinate-coffeescript2/README.md +0 -47
- data/node_modules/decaffeinate-coffeescript2/bin/cake +0 -25
- data/node_modules/decaffeinate-coffeescript2/bin/coffee +0 -25
- data/node_modules/decaffeinate-coffeescript2/lib/coffeescript/browser.js +0 -140
- data/node_modules/decaffeinate-coffeescript2/lib/coffeescript/cake.js +0 -135
- data/node_modules/decaffeinate-coffeescript2/lib/coffeescript/coffeescript.d.ts +0 -60
- data/node_modules/decaffeinate-coffeescript2/lib/coffeescript/coffeescript.js +0 -306
- data/node_modules/decaffeinate-coffeescript2/lib/coffeescript/command.js +0 -719
- data/node_modules/decaffeinate-coffeescript2/lib/coffeescript/grammar.js +0 -2130
- data/node_modules/decaffeinate-coffeescript2/lib/coffeescript/helpers.js +0 -333
- data/node_modules/decaffeinate-coffeescript2/lib/coffeescript/index.js +0 -209
- data/node_modules/decaffeinate-coffeescript2/lib/coffeescript/lexer.d.ts +0 -83
- data/node_modules/decaffeinate-coffeescript2/lib/coffeescript/lexer.js +0 -1703
- data/node_modules/decaffeinate-coffeescript2/lib/coffeescript/nodes.d.ts +0 -809
- data/node_modules/decaffeinate-coffeescript2/lib/coffeescript/nodes.js +0 -5974
- data/node_modules/decaffeinate-coffeescript2/lib/coffeescript/optparse.js +0 -230
- data/node_modules/decaffeinate-coffeescript2/lib/coffeescript/parser.js +0 -1108
- data/node_modules/decaffeinate-coffeescript2/lib/coffeescript/register.js +0 -85
- data/node_modules/decaffeinate-coffeescript2/lib/coffeescript/repl.js +0 -296
- data/node_modules/decaffeinate-coffeescript2/lib/coffeescript/rewriter.js +0 -1014
- data/node_modules/decaffeinate-coffeescript2/lib/coffeescript/scope.d.ts +0 -3
- data/node_modules/decaffeinate-coffeescript2/lib/coffeescript/scope.js +0 -187
- data/node_modules/decaffeinate-coffeescript2/lib/coffeescript/sourcemap.d.ts +0 -13
- data/node_modules/decaffeinate-coffeescript2/lib/coffeescript/sourcemap.js +0 -211
- data/node_modules/decaffeinate-coffeescript2/package.json +0 -56
- data/node_modules/decaffeinate-coffeescript2/register.js +0 -1
- data/node_modules/decaffeinate-coffeescript2/repl.js +0 -1
- data/node_modules/decaffeinate-parser/LICENSE +0 -7
- data/node_modules/decaffeinate-parser/README.md +0 -34
- data/node_modules/decaffeinate-parser/dist/index.d.ts +0 -644
- data/node_modules/decaffeinate-parser/dist/index.js +0 -3458
- data/node_modules/decaffeinate-parser/dist/index.mjs +0 -3557
- data/node_modules/decaffeinate-parser/node_modules/.bin/cake +0 -1
- data/node_modules/decaffeinate-parser/node_modules/.bin/coffee +0 -1
- data/node_modules/decaffeinate-parser/package.json +0 -93
- data/node_modules/detect-indent/index.js +0 -120
- data/node_modules/detect-indent/license +0 -21
- data/node_modules/detect-indent/package.json +0 -46
- data/node_modules/detect-indent/readme.md +0 -110
- data/node_modules/electron-to-chromium/LICENSE +0 -5
- data/node_modules/electron-to-chromium/README.md +0 -186
- data/node_modules/electron-to-chromium/chromium-versions.js +0 -66
- data/node_modules/electron-to-chromium/chromium-versions.json +0 -1
- data/node_modules/electron-to-chromium/full-chromium-versions.js +0 -3308
- data/node_modules/electron-to-chromium/full-chromium-versions.json +0 -1
- data/node_modules/electron-to-chromium/full-versions.js +0 -2404
- data/node_modules/electron-to-chromium/full-versions.json +0 -1
- data/node_modules/electron-to-chromium/index.js +0 -36
- data/node_modules/electron-to-chromium/package.json +0 -44
- data/node_modules/electron-to-chromium/versions.js +0 -157
- data/node_modules/electron-to-chromium/versions.json +0 -1
- data/node_modules/escalade/dist/index.js +0 -22
- data/node_modules/escalade/dist/index.mjs +0 -22
- data/node_modules/escalade/index.d.ts +0 -3
- data/node_modules/escalade/license +0 -9
- data/node_modules/escalade/package.json +0 -63
- data/node_modules/escalade/readme.md +0 -211
- data/node_modules/escalade/sync/index.d.ts +0 -2
- data/node_modules/escalade/sync/index.js +0 -18
- data/node_modules/escalade/sync/index.mjs +0 -18
- data/node_modules/escape-string-regexp/index.js +0 -11
- data/node_modules/escape-string-regexp/license +0 -21
- data/node_modules/escape-string-regexp/package.json +0 -41
- data/node_modules/escape-string-regexp/readme.md +0 -27
- data/node_modules/esprima/ChangeLog +0 -235
- data/node_modules/esprima/LICENSE.BSD +0 -21
- data/node_modules/esprima/README.md +0 -46
- data/node_modules/esprima/bin/esparse.js +0 -139
- data/node_modules/esprima/bin/esvalidate.js +0 -236
- data/node_modules/esprima/dist/esprima.js +0 -6709
- data/node_modules/esprima/package.json +0 -112
- data/node_modules/function-bind/.eslintrc +0 -21
- data/node_modules/function-bind/.github/FUNDING.yml +0 -12
- data/node_modules/function-bind/.github/SECURITY.md +0 -3
- data/node_modules/function-bind/.nycrc +0 -13
- data/node_modules/function-bind/CHANGELOG.md +0 -136
- data/node_modules/function-bind/LICENSE +0 -20
- data/node_modules/function-bind/README.md +0 -46
- data/node_modules/function-bind/implementation.js +0 -84
- data/node_modules/function-bind/index.js +0 -5
- data/node_modules/function-bind/package.json +0 -87
- data/node_modules/function-bind/test/.eslintrc +0 -9
- data/node_modules/function-bind/test/index.js +0 -252
- data/node_modules/gensync/LICENSE +0 -7
- data/node_modules/gensync/README.md +0 -196
- data/node_modules/gensync/index.js +0 -373
- data/node_modules/gensync/index.js.flow +0 -32
- data/node_modules/gensync/package.json +0 -37
- data/node_modules/gensync/test/.babelrc +0 -5
- data/node_modules/gensync/test/index.test.js +0 -489
- data/node_modules/globals/globals.json +0 -1563
- data/node_modules/globals/index.js +0 -2
- data/node_modules/globals/license +0 -9
- data/node_modules/globals/package.json +0 -41
- data/node_modules/globals/readme.md +0 -41
- data/node_modules/has-flag/index.js +0 -8
- data/node_modules/has-flag/license +0 -9
- data/node_modules/has-flag/package.json +0 -44
- data/node_modules/has-flag/readme.md +0 -70
- data/node_modules/hasown/.eslintrc +0 -5
- data/node_modules/hasown/.github/FUNDING.yml +0 -12
- data/node_modules/hasown/.nycrc +0 -13
- data/node_modules/hasown/CHANGELOG.md +0 -40
- data/node_modules/hasown/LICENSE +0 -21
- data/node_modules/hasown/README.md +0 -40
- data/node_modules/hasown/index.d.ts +0 -3
- data/node_modules/hasown/index.js +0 -8
- data/node_modules/hasown/package.json +0 -92
- data/node_modules/hasown/tsconfig.json +0 -6
- data/node_modules/is-ci/CHANGELOG.md +0 -14
- data/node_modules/is-ci/LICENSE +0 -21
- data/node_modules/is-ci/README.md +0 -50
- data/node_modules/is-ci/bin.js +0 -4
- data/node_modules/is-ci/index.js +0 -3
- data/node_modules/is-ci/package.json +0 -38
- data/node_modules/is-ci-cli/LICENSE +0 -21
- data/node_modules/is-ci-cli/README.md +0 -29
- data/node_modules/is-ci-cli/cli.js +0 -46
- data/node_modules/is-ci-cli/node_modules/.bin/is-ci +0 -1
- data/node_modules/is-ci-cli/package.json +0 -39
- data/node_modules/is-core-module/.eslintrc +0 -18
- data/node_modules/is-core-module/.nycrc +0 -9
- data/node_modules/is-core-module/CHANGELOG.md +0 -180
- data/node_modules/is-core-module/LICENSE +0 -20
- data/node_modules/is-core-module/README.md +0 -40
- data/node_modules/is-core-module/core.json +0 -158
- data/node_modules/is-core-module/index.js +0 -69
- data/node_modules/is-core-module/package.json +0 -73
- data/node_modules/is-core-module/test/index.js +0 -133
- data/node_modules/is-finite/index.js +0 -5
- data/node_modules/is-finite/license +0 -9
- data/node_modules/is-finite/package.json +0 -34
- data/node_modules/is-finite/readme.md +0 -33
- data/node_modules/isexe/.npmignore +0 -2
- data/node_modules/isexe/LICENSE +0 -15
- data/node_modules/isexe/README.md +0 -51
- data/node_modules/isexe/index.js +0 -57
- data/node_modules/isexe/mode.js +0 -41
- data/node_modules/isexe/package.json +0 -31
- data/node_modules/isexe/test/basic.js +0 -221
- data/node_modules/isexe/windows.js +0 -42
- data/node_modules/js-tokens/CHANGELOG.md +0 -151
- data/node_modules/js-tokens/LICENSE +0 -21
- data/node_modules/js-tokens/README.md +0 -240
- data/node_modules/js-tokens/index.js +0 -23
- data/node_modules/js-tokens/package.json +0 -30
- data/node_modules/jsesc/LICENSE-MIT.txt +0 -20
- data/node_modules/jsesc/README.md +0 -421
- data/node_modules/jsesc/bin/jsesc +0 -148
- data/node_modules/jsesc/jsesc.js +0 -329
- data/node_modules/jsesc/man/jsesc.1 +0 -94
- data/node_modules/jsesc/package.json +0 -54
- data/node_modules/json5/LICENSE.md +0 -23
- data/node_modules/json5/README.md +0 -282
- data/node_modules/json5/dist/index.js +0 -1737
- data/node_modules/json5/dist/index.min.js +0 -1
- data/node_modules/json5/dist/index.min.mjs +0 -1
- data/node_modules/json5/dist/index.mjs +0 -1426
- data/node_modules/json5/lib/cli.js +0 -152
- data/node_modules/json5/lib/index.d.ts +0 -4
- data/node_modules/json5/lib/index.js +0 -9
- data/node_modules/json5/lib/parse.d.ts +0 -15
- data/node_modules/json5/lib/parse.js +0 -1114
- data/node_modules/json5/lib/register.js +0 -13
- data/node_modules/json5/lib/require.js +0 -4
- data/node_modules/json5/lib/stringify.d.ts +0 -89
- data/node_modules/json5/lib/stringify.js +0 -261
- data/node_modules/json5/lib/unicode.d.ts +0 -3
- data/node_modules/json5/lib/unicode.js +0 -4
- data/node_modules/json5/lib/util.d.ts +0 -5
- data/node_modules/json5/lib/util.js +0 -35
- data/node_modules/json5/package.json +0 -72
- data/node_modules/lines-and-columns/LICENSE +0 -21
- data/node_modules/lines-and-columns/README.md +0 -33
- data/node_modules/lines-and-columns/build/index.cjs +0 -61
- data/node_modules/lines-and-columns/build/index.d.ts +0 -12
- data/node_modules/lines-and-columns/build/index.mjs +0 -58
- data/node_modules/lines-and-columns/package.json +0 -61
- data/node_modules/lru-cache/LICENSE +0 -15
- data/node_modules/lru-cache/README.md +0 -166
- data/node_modules/lru-cache/index.js +0 -334
- data/node_modules/lru-cache/package.json +0 -32
- data/node_modules/magic-string/LICENSE +0 -7
- data/node_modules/magic-string/README.md +0 -304
- data/node_modules/magic-string/dist/magic-string.cjs.d.ts +0 -268
- data/node_modules/magic-string/dist/magic-string.cjs.js +0 -1547
- data/node_modules/magic-string/dist/magic-string.cjs.js.map +0 -1
- data/node_modules/magic-string/dist/magic-string.es.d.mts +0 -268
- data/node_modules/magic-string/dist/magic-string.es.mjs +0 -1541
- data/node_modules/magic-string/dist/magic-string.es.mjs.map +0 -1
- data/node_modules/magic-string/dist/magic-string.umd.js +0 -1639
- data/node_modules/magic-string/dist/magic-string.umd.js.map +0 -1
- data/node_modules/magic-string/package.json +0 -63
- data/node_modules/ms/index.js +0 -162
- data/node_modules/ms/license.md +0 -21
- data/node_modules/ms/package.json +0 -37
- data/node_modules/ms/readme.md +0 -60
- data/node_modules/mz/HISTORY.md +0 -66
- data/node_modules/mz/LICENSE +0 -22
- data/node_modules/mz/README.md +0 -106
- data/node_modules/mz/child_process.js +0 -8
- data/node_modules/mz/crypto.js +0 -9
- data/node_modules/mz/dns.js +0 -16
- data/node_modules/mz/fs.js +0 -62
- data/node_modules/mz/index.js +0 -8
- data/node_modules/mz/package.json +0 -44
- data/node_modules/mz/readline.js +0 -64
- data/node_modules/mz/zlib.js +0 -13
- data/node_modules/node-releases/LICENSE +0 -21
- data/node_modules/node-releases/README.md +0 -12
- data/node_modules/node-releases/data/processed/envs.json +0 -1
- data/node_modules/node-releases/data/release-schedule/release-schedule.json +0 -1
- data/node_modules/node-releases/package.json +0 -19
- data/node_modules/object-assign/index.js +0 -90
- data/node_modules/object-assign/license +0 -21
- data/node_modules/object-assign/package.json +0 -42
- data/node_modules/object-assign/readme.md +0 -61
- data/node_modules/path-key/index.d.ts +0 -40
- data/node_modules/path-key/index.js +0 -16
- data/node_modules/path-key/license +0 -9
- data/node_modules/path-key/package.json +0 -39
- data/node_modules/path-key/readme.md +0 -61
- data/node_modules/path-parse/LICENSE +0 -21
- data/node_modules/path-parse/README.md +0 -42
- data/node_modules/path-parse/index.js +0 -75
- data/node_modules/path-parse/package.json +0 -33
- data/node_modules/picocolors/LICENSE +0 -15
- data/node_modules/picocolors/README.md +0 -21
- data/node_modules/picocolors/package.json +0 -25
- data/node_modules/picocolors/picocolors.browser.js +0 -4
- data/node_modules/picocolors/picocolors.d.ts +0 -5
- data/node_modules/picocolors/picocolors.js +0 -65
- data/node_modules/picocolors/types.ts +0 -30
- data/node_modules/private/LICENSE +0 -20
- data/node_modules/private/README.md +0 -245
- data/node_modules/private/package.json +0 -39
- data/node_modules/private/private.js +0 -129
- data/node_modules/recast/.editorconfig +0 -2
- data/node_modules/recast/.node-version +0 -1
- data/node_modules/recast/.travis.yml +0 -20
- data/node_modules/recast/LICENSE +0 -20
- data/node_modules/recast/README.md +0 -208
- data/node_modules/recast/example/add-braces +0 -44
- data/node_modules/recast/example/generic-identity +0 -17
- data/node_modules/recast/example/identity +0 -8
- data/node_modules/recast/example/to-while +0 -84
- data/node_modules/recast/lib/comments.d.ts +0 -2
- data/node_modules/recast/lib/comments.js +0 -308
- data/node_modules/recast/lib/fast-path.d.ts +0 -25
- data/node_modules/recast/lib/fast-path.js +0 -545
- data/node_modules/recast/lib/lines.d.ts +0 -62
- data/node_modules/recast/lib/lines.js +0 -666
- data/node_modules/recast/lib/mapping.d.ts +0 -15
- data/node_modules/recast/lib/mapping.js +0 -202
- data/node_modules/recast/lib/options.d.ts +0 -148
- data/node_modules/recast/lib/options.js +0 -56
- data/node_modules/recast/lib/parser.d.ts +0 -2
- data/node_modules/recast/lib/parser.js +0 -257
- data/node_modules/recast/lib/patcher.d.ts +0 -12
- data/node_modules/recast/lib/patcher.js +0 -400
- data/node_modules/recast/lib/printer.d.ts +0 -14
- data/node_modules/recast/lib/printer.js +0 -2262
- data/node_modules/recast/lib/util.d.ts +0 -16
- data/node_modules/recast/lib/util.js +0 -339
- data/node_modules/recast/main.d.ts +0 -50
- data/node_modules/recast/main.js +0 -73
- data/node_modules/recast/node_modules/.bin/esparse +0 -1
- data/node_modules/recast/node_modules/.bin/esvalidate +0 -1
- data/node_modules/recast/package.json +0 -62
- data/node_modules/recast/parsers/_babel_options.d.ts +0 -8
- data/node_modules/recast/parsers/_babel_options.js +0 -42
- data/node_modules/recast/parsers/acorn.d.ts +0 -1
- data/node_modules/recast/parsers/acorn.js +0 -33
- data/node_modules/recast/parsers/babel.d.ts +0 -8
- data/node_modules/recast/parsers/babel.js +0 -30
- data/node_modules/recast/parsers/babylon.d.ts +0 -1
- data/node_modules/recast/parsers/babylon.js +0 -6
- data/node_modules/recast/parsers/esprima.d.ts +0 -1
- data/node_modules/recast/parsers/esprima.js +0 -29
- data/node_modules/recast/parsers/flow.d.ts +0 -2
- data/node_modules/recast/parsers/flow.js +0 -21
- data/node_modules/recast/parsers/typescript.d.ts +0 -2
- data/node_modules/recast/parsers/typescript.js +0 -21
- data/node_modules/recast/tsconfig.json +0 -20
- data/node_modules/repeating/index.js +0 -24
- data/node_modules/repeating/license +0 -21
- data/node_modules/repeating/package.json +0 -37
- data/node_modules/repeating/readme.md +0 -30
- data/node_modules/resolve/.editorconfig +0 -37
- data/node_modules/resolve/.eslintrc +0 -65
- data/node_modules/resolve/.github/FUNDING.yml +0 -12
- data/node_modules/resolve/LICENSE +0 -21
- data/node_modules/resolve/SECURITY.md +0 -3
- data/node_modules/resolve/async.js +0 -3
- data/node_modules/resolve/bin/resolve +0 -50
- data/node_modules/resolve/example/async.js +0 -5
- data/node_modules/resolve/example/sync.js +0 -3
- data/node_modules/resolve/index.js +0 -6
- data/node_modules/resolve/lib/async.js +0 -329
- data/node_modules/resolve/lib/caller.js +0 -8
- data/node_modules/resolve/lib/core.js +0 -12
- data/node_modules/resolve/lib/core.json +0 -158
- data/node_modules/resolve/lib/homedir.js +0 -24
- data/node_modules/resolve/lib/is-core.js +0 -5
- data/node_modules/resolve/lib/node-modules-paths.js +0 -42
- data/node_modules/resolve/lib/normalize-options.js +0 -10
- data/node_modules/resolve/lib/sync.js +0 -208
- data/node_modules/resolve/package.json +0 -72
- data/node_modules/resolve/readme.markdown +0 -301
- data/node_modules/resolve/sync.js +0 -3
- data/node_modules/resolve/test/core.js +0 -88
- data/node_modules/resolve/test/dotdot/abc/index.js +0 -2
- data/node_modules/resolve/test/dotdot/index.js +0 -1
- data/node_modules/resolve/test/dotdot.js +0 -29
- data/node_modules/resolve/test/faulty_basedir.js +0 -29
- data/node_modules/resolve/test/filter.js +0 -34
- data/node_modules/resolve/test/filter_sync.js +0 -33
- data/node_modules/resolve/test/home_paths.js +0 -127
- data/node_modules/resolve/test/home_paths_sync.js +0 -114
- data/node_modules/resolve/test/mock.js +0 -315
- data/node_modules/resolve/test/mock_sync.js +0 -214
- data/node_modules/resolve/test/module_dir/xmodules/aaa/index.js +0 -1
- data/node_modules/resolve/test/module_dir/ymodules/aaa/index.js +0 -1
- data/node_modules/resolve/test/module_dir/zmodules/bbb/main.js +0 -1
- data/node_modules/resolve/test/module_dir/zmodules/bbb/package.json +0 -3
- data/node_modules/resolve/test/module_dir.js +0 -56
- data/node_modules/resolve/test/node-modules-paths.js +0 -143
- data/node_modules/resolve/test/node_path/x/aaa/index.js +0 -1
- data/node_modules/resolve/test/node_path/x/ccc/index.js +0 -1
- data/node_modules/resolve/test/node_path/y/bbb/index.js +0 -1
- data/node_modules/resolve/test/node_path/y/ccc/index.js +0 -1
- data/node_modules/resolve/test/node_path.js +0 -70
- data/node_modules/resolve/test/nonstring.js +0 -9
- data/node_modules/resolve/test/pathfilter/deep_ref/main.js +0 -0
- data/node_modules/resolve/test/pathfilter.js +0 -75
- data/node_modules/resolve/test/precedence/aaa/index.js +0 -1
- data/node_modules/resolve/test/precedence/aaa/main.js +0 -1
- data/node_modules/resolve/test/precedence/aaa.js +0 -1
- data/node_modules/resolve/test/precedence/bbb/main.js +0 -1
- data/node_modules/resolve/test/precedence/bbb.js +0 -1
- data/node_modules/resolve/test/precedence.js +0 -23
- data/node_modules/resolve/test/resolver/baz/doom.js +0 -0
- data/node_modules/resolve/test/resolver/baz/package.json +0 -4
- data/node_modules/resolve/test/resolver/baz/quux.js +0 -1
- data/node_modules/resolve/test/resolver/browser_field/a.js +0 -0
- data/node_modules/resolve/test/resolver/browser_field/b.js +0 -0
- data/node_modules/resolve/test/resolver/browser_field/package.json +0 -5
- data/node_modules/resolve/test/resolver/cup.coffee +0 -1
- data/node_modules/resolve/test/resolver/dot_main/index.js +0 -1
- data/node_modules/resolve/test/resolver/dot_main/package.json +0 -3
- data/node_modules/resolve/test/resolver/dot_slash_main/index.js +0 -1
- data/node_modules/resolve/test/resolver/dot_slash_main/package.json +0 -3
- data/node_modules/resolve/test/resolver/false_main/index.js +0 -0
- data/node_modules/resolve/test/resolver/false_main/package.json +0 -4
- data/node_modules/resolve/test/resolver/foo.js +0 -1
- data/node_modules/resolve/test/resolver/incorrect_main/index.js +0 -2
- data/node_modules/resolve/test/resolver/incorrect_main/package.json +0 -3
- data/node_modules/resolve/test/resolver/invalid_main/package.json +0 -7
- data/node_modules/resolve/test/resolver/mug.coffee +0 -0
- data/node_modules/resolve/test/resolver/mug.js +0 -0
- data/node_modules/resolve/test/resolver/multirepo/lerna.json +0 -6
- data/node_modules/resolve/test/resolver/multirepo/package.json +0 -20
- data/node_modules/resolve/test/resolver/multirepo/packages/package-a/index.js +0 -35
- data/node_modules/resolve/test/resolver/multirepo/packages/package-a/package.json +0 -14
- data/node_modules/resolve/test/resolver/multirepo/packages/package-b/index.js +0 -0
- data/node_modules/resolve/test/resolver/multirepo/packages/package-b/package.json +0 -14
- data/node_modules/resolve/test/resolver/nested_symlinks/mylib/async.js +0 -26
- data/node_modules/resolve/test/resolver/nested_symlinks/mylib/package.json +0 -15
- data/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js +0 -12
- data/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
- data/node_modules/resolve/test/resolver/other_path/root.js +0 -0
- data/node_modules/resolve/test/resolver/quux/foo/index.js +0 -1
- data/node_modules/resolve/test/resolver/same_names/foo/index.js +0 -1
- data/node_modules/resolve/test/resolver/same_names/foo.js +0 -1
- data/node_modules/resolve/test/resolver/symlinked/_/node_modules/foo.js +0 -0
- data/node_modules/resolve/test/resolver/symlinked/_/symlink_target/.gitkeep +0 -0
- data/node_modules/resolve/test/resolver/symlinked/package/bar.js +0 -1
- data/node_modules/resolve/test/resolver/symlinked/package/package.json +0 -3
- data/node_modules/resolve/test/resolver/without_basedir/main.js +0 -5
- data/node_modules/resolve/test/resolver.js +0 -597
- data/node_modules/resolve/test/resolver_sync.js +0 -730
- data/node_modules/resolve/test/shadowed_core/node_modules/util/index.js +0 -0
- data/node_modules/resolve/test/shadowed_core.js +0 -54
- data/node_modules/resolve/test/subdirs.js +0 -13
- data/node_modules/resolve/test/symlinks.js +0 -176
- data/node_modules/semver/LICENSE +0 -15
- data/node_modules/semver/README.md +0 -443
- data/node_modules/semver/bin/semver.js +0 -174
- data/node_modules/semver/package.json +0 -38
- data/node_modules/semver/range.bnf +0 -16
- data/node_modules/semver/semver.js +0 -1643
- data/node_modules/shebang-command/index.js +0 -19
- data/node_modules/shebang-command/license +0 -9
- data/node_modules/shebang-command/package.json +0 -34
- data/node_modules/shebang-command/readme.md +0 -34
- data/node_modules/shebang-regex/index.d.ts +0 -22
- data/node_modules/shebang-regex/index.js +0 -2
- data/node_modules/shebang-regex/license +0 -9
- data/node_modules/shebang-regex/package.json +0 -35
- data/node_modules/shebang-regex/readme.md +0 -33
- data/node_modules/source-map/CHANGELOG.md +0 -301
- data/node_modules/source-map/LICENSE +0 -28
- data/node_modules/source-map/README.md +0 -742
- data/node_modules/source-map/dist/source-map.debug.js +0 -3234
- data/node_modules/source-map/dist/source-map.js +0 -3233
- data/node_modules/source-map/dist/source-map.min.js +0 -2
- data/node_modules/source-map/dist/source-map.min.js.map +0 -1
- data/node_modules/source-map/lib/array-set.js +0 -121
- data/node_modules/source-map/lib/base64-vlq.js +0 -140
- data/node_modules/source-map/lib/base64.js +0 -67
- data/node_modules/source-map/lib/binary-search.js +0 -111
- data/node_modules/source-map/lib/mapping-list.js +0 -79
- data/node_modules/source-map/lib/quick-sort.js +0 -114
- data/node_modules/source-map/lib/source-map-consumer.js +0 -1145
- data/node_modules/source-map/lib/source-map-generator.js +0 -425
- data/node_modules/source-map/lib/source-node.js +0 -413
- data/node_modules/source-map/lib/util.js +0 -488
- data/node_modules/source-map/package.json +0 -73
- data/node_modules/source-map/source-map.d.ts +0 -98
- data/node_modules/source-map/source-map.js +0 -8
- data/node_modules/supports-color/browser.js +0 -5
- data/node_modules/supports-color/index.js +0 -131
- data/node_modules/supports-color/license +0 -9
- data/node_modules/supports-color/package.json +0 -53
- data/node_modules/supports-color/readme.md +0 -66
- data/node_modules/supports-preserve-symlinks-flag/.eslintrc +0 -14
- data/node_modules/supports-preserve-symlinks-flag/.github/FUNDING.yml +0 -12
- data/node_modules/supports-preserve-symlinks-flag/.nycrc +0 -9
- data/node_modules/supports-preserve-symlinks-flag/CHANGELOG.md +0 -22
- data/node_modules/supports-preserve-symlinks-flag/LICENSE +0 -21
- data/node_modules/supports-preserve-symlinks-flag/README.md +0 -42
- data/node_modules/supports-preserve-symlinks-flag/browser.js +0 -3
- data/node_modules/supports-preserve-symlinks-flag/index.js +0 -9
- data/node_modules/supports-preserve-symlinks-flag/package.json +0 -70
- data/node_modules/supports-preserve-symlinks-flag/test/index.js +0 -29
- data/node_modules/thenify/History.md +0 -11
- data/node_modules/thenify/LICENSE +0 -22
- data/node_modules/thenify/README.md +0 -120
- data/node_modules/thenify/index.js +0 -77
- data/node_modules/thenify/package.json +0 -31
- data/node_modules/thenify-all/History.md +0 -11
- data/node_modules/thenify-all/LICENSE +0 -22
- data/node_modules/thenify-all/README.md +0 -66
- data/node_modules/thenify-all/index.js +0 -73
- data/node_modules/thenify-all/package.json +0 -34
- data/node_modules/to-fast-properties/index.js +0 -27
- data/node_modules/to-fast-properties/license +0 -10
- data/node_modules/to-fast-properties/package.json +0 -35
- data/node_modules/to-fast-properties/readme.md +0 -37
- data/node_modules/tslib/CopyrightNotice.txt +0 -15
- data/node_modules/tslib/LICENSE.txt +0 -12
- data/node_modules/tslib/README.md +0 -164
- data/node_modules/tslib/SECURITY.md +0 -41
- data/node_modules/tslib/modules/index.d.ts +0 -37
- data/node_modules/tslib/modules/index.js +0 -68
- data/node_modules/tslib/modules/package.json +0 -3
- data/node_modules/tslib/package.json +0 -47
- data/node_modules/tslib/tslib.d.ts +0 -453
- data/node_modules/tslib/tslib.es6.html +0 -1
- data/node_modules/tslib/tslib.es6.js +0 -374
- data/node_modules/tslib/tslib.es6.mjs +0 -373
- data/node_modules/tslib/tslib.html +0 -1
- data/node_modules/tslib/tslib.js +0 -424
- data/node_modules/update-browserslist-db/.devcontainer.json +0 -42
- data/node_modules/update-browserslist-db/LICENSE +0 -20
- data/node_modules/update-browserslist-db/README.md +0 -22
- data/node_modules/update-browserslist-db/check-npm-version.js +0 -17
- data/node_modules/update-browserslist-db/cli.js +0 -42
- data/node_modules/update-browserslist-db/index.d.ts +0 -6
- data/node_modules/update-browserslist-db/index.js +0 -333
- data/node_modules/update-browserslist-db/node_modules/.bin/browserslist +0 -1
- data/node_modules/update-browserslist-db/package.json +0 -40
- data/node_modules/update-browserslist-db/utils.js +0 -25
- data/node_modules/which/CHANGELOG.md +0 -166
- data/node_modules/which/LICENSE +0 -15
- data/node_modules/which/README.md +0 -54
- data/node_modules/which/bin/node-which +0 -52
- data/node_modules/which/package.json +0 -43
- data/node_modules/which/which.js +0 -125
- data/node_modules/yallist/LICENSE +0 -15
- data/node_modules/yallist/README.md +0 -204
- data/node_modules/yallist/iterator.js +0 -8
- data/node_modules/yallist/package.json +0 -29
- data/node_modules/yallist/yallist.js +0 -426
- data/yarn.lock +0 -710
@@ -1,3557 +0,0 @@
|
|
1
|
-
// src/parser.ts
|
2
|
-
import lex from "coffee-lex";
|
3
|
-
|
4
|
-
// src/ext/coffee-script.ts
|
5
|
-
import {
|
6
|
-
Base as CS1Base,
|
7
|
-
Op as CS1Op
|
8
|
-
} from "decaffeinate-coffeescript/lib/coffee-script/nodes.js";
|
9
|
-
import { Base, Op } from "decaffeinate-coffeescript2/lib/coffeescript/nodes.js";
|
10
|
-
function patchCoffeeScript() {
|
11
|
-
CS1Op.prototype.invert = invert;
|
12
|
-
CS1Base.prototype.invert = invert;
|
13
|
-
Op.prototype.invert = invert;
|
14
|
-
Base.prototype.invert = invert;
|
15
|
-
}
|
16
|
-
function invert() {
|
17
|
-
this.inverted = !this.inverted;
|
18
|
-
return this;
|
19
|
-
}
|
20
|
-
|
21
|
-
// src/nodes.ts
|
22
|
-
var Node = class {
|
23
|
-
constructor(type, line, column, start, end, raw) {
|
24
|
-
this.type = type;
|
25
|
-
this.line = line;
|
26
|
-
this.column = column;
|
27
|
-
this.start = start;
|
28
|
-
this.end = end;
|
29
|
-
this.raw = raw;
|
30
|
-
this.parentNode = null;
|
31
|
-
}
|
32
|
-
getChildren() {
|
33
|
-
const children = [];
|
34
|
-
for (const childField of this.getChildFields()) {
|
35
|
-
if (Array.isArray(childField)) {
|
36
|
-
children.push(...childField.filter((node) => node !== null));
|
37
|
-
} else if (childField) {
|
38
|
-
children.push(childField);
|
39
|
-
}
|
40
|
-
}
|
41
|
-
return children;
|
42
|
-
}
|
43
|
-
getChildFields() {
|
44
|
-
return this.getChildNames().map((name) => this[name]);
|
45
|
-
}
|
46
|
-
};
|
47
|
-
var Identifier = class extends Node {
|
48
|
-
constructor(line, column, start, end, raw, data) {
|
49
|
-
super("Identifier", line, column, start, end, raw);
|
50
|
-
this.data = data;
|
51
|
-
}
|
52
|
-
getChildNames() {
|
53
|
-
return [];
|
54
|
-
}
|
55
|
-
};
|
56
|
-
var Bool = class extends Node {
|
57
|
-
constructor(line, column, start, end, raw, data) {
|
58
|
-
super("Bool", line, column, start, end, raw);
|
59
|
-
this.data = data;
|
60
|
-
}
|
61
|
-
static true() {
|
62
|
-
return new Bool(0, 0, 0, 0, "", true);
|
63
|
-
}
|
64
|
-
static false() {
|
65
|
-
return new Bool(0, 0, 0, 0, "", false);
|
66
|
-
}
|
67
|
-
getChildNames() {
|
68
|
-
return [];
|
69
|
-
}
|
70
|
-
};
|
71
|
-
var JavaScript = class extends Node {
|
72
|
-
constructor(line, column, start, end, raw, data) {
|
73
|
-
super("JavaScript", line, column, start, end, raw);
|
74
|
-
this.data = data;
|
75
|
-
}
|
76
|
-
getChildNames() {
|
77
|
-
return [];
|
78
|
-
}
|
79
|
-
};
|
80
|
-
var Number = class extends Node {
|
81
|
-
constructor(type, line, column, start, end, raw, data) {
|
82
|
-
super(type, line, column, start, end, raw);
|
83
|
-
this.data = data;
|
84
|
-
}
|
85
|
-
getChildNames() {
|
86
|
-
return [];
|
87
|
-
}
|
88
|
-
};
|
89
|
-
var Float = class extends Number {
|
90
|
-
constructor(line, column, start, end, raw, data) {
|
91
|
-
super("Float", line, column, start, end, raw, data);
|
92
|
-
}
|
93
|
-
};
|
94
|
-
var Int = class extends Number {
|
95
|
-
constructor(line, column, start, end, raw, data) {
|
96
|
-
super("Int", line, column, start, end, raw, data);
|
97
|
-
}
|
98
|
-
};
|
99
|
-
var AccessOp = class extends Node {
|
100
|
-
constructor(type, line, column, start, end, raw, expression) {
|
101
|
-
super(type, line, column, start, end, raw);
|
102
|
-
this.expression = expression;
|
103
|
-
}
|
104
|
-
};
|
105
|
-
var MemberAccessOp = class extends AccessOp {
|
106
|
-
constructor(line, column, start, end, raw, expression, member) {
|
107
|
-
super("MemberAccessOp", line, column, start, end, raw, expression);
|
108
|
-
this.member = member;
|
109
|
-
}
|
110
|
-
getChildNames() {
|
111
|
-
return ["expression", "member"];
|
112
|
-
}
|
113
|
-
};
|
114
|
-
var ProtoMemberAccessOp = class extends AccessOp {
|
115
|
-
constructor(line, column, start, end, raw, expression) {
|
116
|
-
super("ProtoMemberAccessOp", line, column, start, end, raw, expression);
|
117
|
-
}
|
118
|
-
getChildNames() {
|
119
|
-
return ["expression"];
|
120
|
-
}
|
121
|
-
};
|
122
|
-
var SoakedMemberAccessOp = class extends AccessOp {
|
123
|
-
constructor(line, column, start, end, raw, expression, member) {
|
124
|
-
super("SoakedMemberAccessOp", line, column, start, end, raw, expression);
|
125
|
-
this.member = member;
|
126
|
-
}
|
127
|
-
getChildNames() {
|
128
|
-
return ["expression", "member"];
|
129
|
-
}
|
130
|
-
};
|
131
|
-
var SoakedProtoMemberAccessOp = class extends AccessOp {
|
132
|
-
constructor(line, column, start, end, raw, expression) {
|
133
|
-
super("SoakedProtoMemberAccessOp", line, column, start, end, raw, expression);
|
134
|
-
}
|
135
|
-
getChildNames() {
|
136
|
-
return ["expression"];
|
137
|
-
}
|
138
|
-
};
|
139
|
-
var DynamicMemberAccessOp = class extends AccessOp {
|
140
|
-
constructor(line, column, start, end, raw, expression, indexingExpr) {
|
141
|
-
super("DynamicMemberAccessOp", line, column, start, end, raw, expression);
|
142
|
-
this.indexingExpr = indexingExpr;
|
143
|
-
}
|
144
|
-
getChildNames() {
|
145
|
-
return ["expression", "indexingExpr"];
|
146
|
-
}
|
147
|
-
};
|
148
|
-
var SoakedDynamicMemberAccessOp = class extends AccessOp {
|
149
|
-
constructor(line, column, start, end, raw, expression, indexingExpr) {
|
150
|
-
super("SoakedDynamicMemberAccessOp", line, column, start, end, raw, expression);
|
151
|
-
this.indexingExpr = indexingExpr;
|
152
|
-
}
|
153
|
-
getChildNames() {
|
154
|
-
return ["expression", "indexingExpr"];
|
155
|
-
}
|
156
|
-
};
|
157
|
-
var Quasi = class extends Node {
|
158
|
-
constructor(line, column, start, end, raw, data) {
|
159
|
-
super("Quasi", line, column, start, end, raw);
|
160
|
-
this.data = data;
|
161
|
-
}
|
162
|
-
getChildNames() {
|
163
|
-
return [];
|
164
|
-
}
|
165
|
-
};
|
166
|
-
var String = class extends Node {
|
167
|
-
constructor(line, column, start, end, raw, quasis, expressions) {
|
168
|
-
super("String", line, column, start, end, raw);
|
169
|
-
this.quasis = quasis;
|
170
|
-
this.expressions = expressions;
|
171
|
-
}
|
172
|
-
getChildNames() {
|
173
|
-
return ["quasis", "expressions"];
|
174
|
-
}
|
175
|
-
};
|
176
|
-
var TaggedTemplateLiteral = class extends Node {
|
177
|
-
constructor(line, column, start, end, raw, tag, template) {
|
178
|
-
super("TaggedTemplateLiteral", line, column, start, end, raw);
|
179
|
-
this.tag = tag;
|
180
|
-
this.template = template;
|
181
|
-
}
|
182
|
-
getChildNames() {
|
183
|
-
return ["tag", "template"];
|
184
|
-
}
|
185
|
-
};
|
186
|
-
var ObjectInitialiser = class extends Node {
|
187
|
-
constructor(line, column, start, end, raw, members) {
|
188
|
-
super("ObjectInitialiser", line, column, start, end, raw);
|
189
|
-
this.members = members;
|
190
|
-
}
|
191
|
-
getChildNames() {
|
192
|
-
return ["members"];
|
193
|
-
}
|
194
|
-
};
|
195
|
-
var ObjectInitialiserMember = class extends Node {
|
196
|
-
constructor(line, column, start, end, raw, key, expression, isComputed) {
|
197
|
-
super("ObjectInitialiserMember", line, column, start, end, raw);
|
198
|
-
this.key = key;
|
199
|
-
this.expression = expression;
|
200
|
-
this.isComputed = isComputed;
|
201
|
-
}
|
202
|
-
getChildNames() {
|
203
|
-
return ["key", "expression"];
|
204
|
-
}
|
205
|
-
};
|
206
|
-
var Conditional = class extends Node {
|
207
|
-
constructor(line, column, start, end, raw, condition, consequent, alternate, isUnless) {
|
208
|
-
super("Conditional", line, column, start, end, raw);
|
209
|
-
this.condition = condition;
|
210
|
-
this.consequent = consequent;
|
211
|
-
this.alternate = alternate;
|
212
|
-
this.isUnless = isUnless;
|
213
|
-
}
|
214
|
-
getChildNames() {
|
215
|
-
return ["condition", "consequent", "alternate"];
|
216
|
-
}
|
217
|
-
};
|
218
|
-
var Program = class extends Node {
|
219
|
-
constructor(line, column, start, end, raw, body, context) {
|
220
|
-
super("Program", line, column, start, end, raw);
|
221
|
-
this.body = body;
|
222
|
-
this.context = context;
|
223
|
-
}
|
224
|
-
getChildNames() {
|
225
|
-
return ["body"];
|
226
|
-
}
|
227
|
-
};
|
228
|
-
var Block = class extends Node {
|
229
|
-
constructor(line, column, start, end, raw, statements, inline) {
|
230
|
-
super("Block", line, column, start, end, raw);
|
231
|
-
this.statements = statements;
|
232
|
-
this.inline = inline;
|
233
|
-
}
|
234
|
-
getChildNames() {
|
235
|
-
return ["statements"];
|
236
|
-
}
|
237
|
-
withInline(inline) {
|
238
|
-
return new Block(this.line, this.column, this.start, this.end, this.raw, this.statements, inline);
|
239
|
-
}
|
240
|
-
};
|
241
|
-
var Loop = class extends Node {
|
242
|
-
constructor(line, column, start, end, raw, body) {
|
243
|
-
super("Loop", line, column, start, end, raw);
|
244
|
-
this.body = body;
|
245
|
-
}
|
246
|
-
getChildNames() {
|
247
|
-
return ["body"];
|
248
|
-
}
|
249
|
-
};
|
250
|
-
var While = class extends Node {
|
251
|
-
constructor(line, column, start, end, raw, condition, guard, body, isUntil) {
|
252
|
-
super("While", line, column, start, end, raw);
|
253
|
-
this.condition = condition;
|
254
|
-
this.guard = guard;
|
255
|
-
this.body = body;
|
256
|
-
this.isUntil = isUntil;
|
257
|
-
}
|
258
|
-
getChildNames() {
|
259
|
-
return ["condition", "guard", "body"];
|
260
|
-
}
|
261
|
-
};
|
262
|
-
var For = class extends Node {
|
263
|
-
constructor(type, line, column, start, end, raw, keyAssignee, valAssignee, target, filter, body) {
|
264
|
-
super(type, line, column, start, end, raw);
|
265
|
-
this.keyAssignee = keyAssignee;
|
266
|
-
this.valAssignee = valAssignee;
|
267
|
-
this.target = target;
|
268
|
-
this.filter = filter;
|
269
|
-
this.body = body;
|
270
|
-
}
|
271
|
-
};
|
272
|
-
var ForOf = class extends For {
|
273
|
-
constructor(line, column, start, end, raw, keyAssignee, valAssignee, target, filter, body, isOwn) {
|
274
|
-
super("ForOf", line, column, start, end, raw, keyAssignee, valAssignee, target, filter, body);
|
275
|
-
this.isOwn = isOwn;
|
276
|
-
}
|
277
|
-
getChildNames() {
|
278
|
-
return ["keyAssignee", "valAssignee", "target", "filter", "body"];
|
279
|
-
}
|
280
|
-
};
|
281
|
-
var ForIn = class extends For {
|
282
|
-
constructor(line, column, start, end, raw, keyAssignee, valAssignee, target, filter, body, step) {
|
283
|
-
super("ForIn", line, column, start, end, raw, keyAssignee, valAssignee, target, filter, body);
|
284
|
-
this.step = step;
|
285
|
-
}
|
286
|
-
getChildNames() {
|
287
|
-
return ["keyAssignee", "valAssignee", "target", "step", "filter", "body"];
|
288
|
-
}
|
289
|
-
};
|
290
|
-
var ForFrom = class extends For {
|
291
|
-
constructor(line, column, start, end, raw, valAssignee, target, filter, body) {
|
292
|
-
super("ForFrom", line, column, start, end, raw, null, valAssignee, target, filter, body);
|
293
|
-
}
|
294
|
-
getChildNames() {
|
295
|
-
return ["keyAssignee", "valAssignee", "target", "filter", "body"];
|
296
|
-
}
|
297
|
-
};
|
298
|
-
var Switch = class extends Node {
|
299
|
-
constructor(line, column, start, end, raw, expression, cases, alternate) {
|
300
|
-
super("Switch", line, column, start, end, raw);
|
301
|
-
this.expression = expression;
|
302
|
-
this.cases = cases;
|
303
|
-
this.alternate = alternate;
|
304
|
-
}
|
305
|
-
getChildNames() {
|
306
|
-
return ["expression", "cases", "alternate"];
|
307
|
-
}
|
308
|
-
};
|
309
|
-
var SwitchCase = class extends Node {
|
310
|
-
constructor(line, column, start, end, raw, conditions, consequent) {
|
311
|
-
super("SwitchCase", line, column, start, end, raw);
|
312
|
-
this.conditions = conditions;
|
313
|
-
this.consequent = consequent;
|
314
|
-
}
|
315
|
-
getChildNames() {
|
316
|
-
return ["conditions", "consequent"];
|
317
|
-
}
|
318
|
-
};
|
319
|
-
var RegexFlags = class {
|
320
|
-
constructor(global, ignoreCase, multiline, unicode, sticky) {
|
321
|
-
this.global = global;
|
322
|
-
this.ignoreCase = ignoreCase;
|
323
|
-
this.multiline = multiline;
|
324
|
-
this.unicode = unicode;
|
325
|
-
this.sticky = sticky;
|
326
|
-
this.g = global;
|
327
|
-
this.i = ignoreCase;
|
328
|
-
this.m = multiline;
|
329
|
-
this.u = unicode;
|
330
|
-
this.y = sticky;
|
331
|
-
}
|
332
|
-
static parse(flags) {
|
333
|
-
let global = false;
|
334
|
-
let ignoreCase = false;
|
335
|
-
let multiline = false;
|
336
|
-
let unicode = false;
|
337
|
-
let sticky = false;
|
338
|
-
for (let i = 0; i < flags.length; i++) {
|
339
|
-
switch (flags.charCodeAt(i)) {
|
340
|
-
case 103:
|
341
|
-
global = true;
|
342
|
-
break;
|
343
|
-
case 105:
|
344
|
-
ignoreCase = true;
|
345
|
-
break;
|
346
|
-
case 109:
|
347
|
-
multiline = true;
|
348
|
-
break;
|
349
|
-
case 117:
|
350
|
-
unicode = true;
|
351
|
-
break;
|
352
|
-
case 121:
|
353
|
-
sticky = true;
|
354
|
-
break;
|
355
|
-
default:
|
356
|
-
throw new Error(`invalid regular expression flags: ${flags}`);
|
357
|
-
}
|
358
|
-
}
|
359
|
-
return new RegexFlags(global, ignoreCase, multiline, unicode, sticky);
|
360
|
-
}
|
361
|
-
};
|
362
|
-
var Heregex = class extends Node {
|
363
|
-
constructor(line, column, start, end, raw, quasis, expressions, flags) {
|
364
|
-
super("Heregex", line, column, start, end, raw);
|
365
|
-
this.quasis = quasis;
|
366
|
-
this.expressions = expressions;
|
367
|
-
this.flags = flags;
|
368
|
-
}
|
369
|
-
getChildNames() {
|
370
|
-
return ["quasis", "expressions"];
|
371
|
-
}
|
372
|
-
};
|
373
|
-
var Null = class extends Node {
|
374
|
-
constructor(line, column, start, end, raw) {
|
375
|
-
super("Null", line, column, start, end, raw);
|
376
|
-
}
|
377
|
-
getChildNames() {
|
378
|
-
return [];
|
379
|
-
}
|
380
|
-
};
|
381
|
-
var Undefined = class extends Node {
|
382
|
-
constructor(line, column, start, end, raw) {
|
383
|
-
super("Undefined", line, column, start, end, raw);
|
384
|
-
}
|
385
|
-
getChildNames() {
|
386
|
-
return [];
|
387
|
-
}
|
388
|
-
};
|
389
|
-
var Regex = class extends Node {
|
390
|
-
constructor(line, column, start, end, raw, pattern, flags) {
|
391
|
-
super("Regex", line, column, start, end, raw);
|
392
|
-
this.pattern = pattern;
|
393
|
-
this.flags = flags;
|
394
|
-
}
|
395
|
-
getChildNames() {
|
396
|
-
return [];
|
397
|
-
}
|
398
|
-
};
|
399
|
-
var Return = class extends Node {
|
400
|
-
constructor(line, column, start, end, raw, expression) {
|
401
|
-
super("Return", line, column, start, end, raw);
|
402
|
-
this.expression = expression;
|
403
|
-
}
|
404
|
-
getChildNames() {
|
405
|
-
return ["expression"];
|
406
|
-
}
|
407
|
-
};
|
408
|
-
var YieldReturn = class extends Node {
|
409
|
-
constructor(line, column, start, end, raw, expression) {
|
410
|
-
super("YieldReturn", line, column, start, end, raw);
|
411
|
-
this.expression = expression;
|
412
|
-
}
|
413
|
-
getChildNames() {
|
414
|
-
return ["expression"];
|
415
|
-
}
|
416
|
-
};
|
417
|
-
var AwaitReturn = class extends Node {
|
418
|
-
constructor(line, column, start, end, raw, expression) {
|
419
|
-
super("AwaitReturn", line, column, start, end, raw);
|
420
|
-
this.expression = expression;
|
421
|
-
}
|
422
|
-
getChildNames() {
|
423
|
-
return ["expression"];
|
424
|
-
}
|
425
|
-
};
|
426
|
-
var This = class extends Node {
|
427
|
-
constructor(line, column, start, end, raw) {
|
428
|
-
super("This", line, column, start, end, raw);
|
429
|
-
}
|
430
|
-
getChildNames() {
|
431
|
-
return [];
|
432
|
-
}
|
433
|
-
};
|
434
|
-
var Throw = class extends Node {
|
435
|
-
constructor(line, column, start, end, raw, expression) {
|
436
|
-
super("Throw", line, column, start, end, raw);
|
437
|
-
this.expression = expression;
|
438
|
-
}
|
439
|
-
getChildNames() {
|
440
|
-
return ["expression"];
|
441
|
-
}
|
442
|
-
};
|
443
|
-
var ArrayInitialiser = class extends Node {
|
444
|
-
constructor(line, column, start, end, raw, members) {
|
445
|
-
super("ArrayInitialiser", line, column, start, end, raw);
|
446
|
-
this.members = members;
|
447
|
-
}
|
448
|
-
getChildNames() {
|
449
|
-
return ["members"];
|
450
|
-
}
|
451
|
-
};
|
452
|
-
var DefaultParam = class extends Node {
|
453
|
-
constructor(line, column, start, end, raw, param, defaultValue) {
|
454
|
-
super("DefaultParam", line, column, start, end, raw);
|
455
|
-
this.param = param;
|
456
|
-
this.default = defaultValue;
|
457
|
-
}
|
458
|
-
getChildNames() {
|
459
|
-
return ["param", "default"];
|
460
|
-
}
|
461
|
-
};
|
462
|
-
var Rest = class extends Node {
|
463
|
-
constructor(line, column, start, end, raw, expression) {
|
464
|
-
super("Rest", line, column, start, end, raw);
|
465
|
-
this.expression = expression;
|
466
|
-
}
|
467
|
-
getChildNames() {
|
468
|
-
return ["expression"];
|
469
|
-
}
|
470
|
-
};
|
471
|
-
var Expansion = class extends Node {
|
472
|
-
constructor(line, column, start, end, raw) {
|
473
|
-
super("Expansion", line, column, start, end, raw);
|
474
|
-
}
|
475
|
-
getChildNames() {
|
476
|
-
return [];
|
477
|
-
}
|
478
|
-
};
|
479
|
-
var Elision = class extends Node {
|
480
|
-
constructor(line, column, start, end, raw) {
|
481
|
-
super("Elision", line, column, start, end, raw);
|
482
|
-
}
|
483
|
-
getChildNames() {
|
484
|
-
return [];
|
485
|
-
}
|
486
|
-
};
|
487
|
-
var Break = class extends Node {
|
488
|
-
constructor(line, column, start, end, raw) {
|
489
|
-
super("Break", line, column, start, end, raw);
|
490
|
-
}
|
491
|
-
getChildNames() {
|
492
|
-
return [];
|
493
|
-
}
|
494
|
-
};
|
495
|
-
var Continue = class extends Node {
|
496
|
-
constructor(line, column, start, end, raw) {
|
497
|
-
super("Continue", line, column, start, end, raw);
|
498
|
-
}
|
499
|
-
getChildNames() {
|
500
|
-
return [];
|
501
|
-
}
|
502
|
-
};
|
503
|
-
var Debugger = class extends Node {
|
504
|
-
constructor(line, column, start, end, raw) {
|
505
|
-
super("Debugger", line, column, start, end, raw);
|
506
|
-
}
|
507
|
-
getChildNames() {
|
508
|
-
return [];
|
509
|
-
}
|
510
|
-
};
|
511
|
-
var Spread = class extends Node {
|
512
|
-
constructor(line, column, start, end, raw, expression) {
|
513
|
-
super("Spread", line, column, start, end, raw);
|
514
|
-
this.expression = expression;
|
515
|
-
}
|
516
|
-
getChildNames() {
|
517
|
-
return ["expression"];
|
518
|
-
}
|
519
|
-
};
|
520
|
-
var Range = class extends Node {
|
521
|
-
constructor(line, column, start, end, raw, left, right, isInclusive) {
|
522
|
-
super("Range", line, column, start, end, raw);
|
523
|
-
this.left = left;
|
524
|
-
this.right = right;
|
525
|
-
this.isInclusive = isInclusive;
|
526
|
-
}
|
527
|
-
getChildNames() {
|
528
|
-
return ["left", "right"];
|
529
|
-
}
|
530
|
-
};
|
531
|
-
var BinaryOp = class extends Node {
|
532
|
-
constructor(type, line, column, start, end, raw, left, right) {
|
533
|
-
super(type, line, column, start, end, raw);
|
534
|
-
this.left = left;
|
535
|
-
this.right = right;
|
536
|
-
}
|
537
|
-
getChildNames() {
|
538
|
-
return ["left", "right"];
|
539
|
-
}
|
540
|
-
};
|
541
|
-
var UnaryOp = class extends Node {
|
542
|
-
constructor(type, line, column, start, end, raw, expression) {
|
543
|
-
super(type, line, column, start, end, raw);
|
544
|
-
this.expression = expression;
|
545
|
-
}
|
546
|
-
getChildNames() {
|
547
|
-
return ["expression"];
|
548
|
-
}
|
549
|
-
};
|
550
|
-
var ChainedComparisonOp = class extends Node {
|
551
|
-
constructor(line, column, start, end, raw, operands, operators) {
|
552
|
-
super("ChainedComparisonOp", line, column, start, end, raw);
|
553
|
-
this.operands = operands;
|
554
|
-
this.operators = operators;
|
555
|
-
}
|
556
|
-
getChildNames() {
|
557
|
-
return ["operands"];
|
558
|
-
}
|
559
|
-
};
|
560
|
-
var OperatorInfo = class {
|
561
|
-
constructor(operator, token) {
|
562
|
-
this.operator = operator;
|
563
|
-
this.token = token;
|
564
|
-
}
|
565
|
-
};
|
566
|
-
var EQOp = class extends BinaryOp {
|
567
|
-
constructor(line, column, start, end, raw, left, right) {
|
568
|
-
super("EQOp", line, column, start, end, raw, left, right);
|
569
|
-
}
|
570
|
-
};
|
571
|
-
var NEQOp = class extends BinaryOp {
|
572
|
-
constructor(line, column, start, end, raw, left, right) {
|
573
|
-
super("NEQOp", line, column, start, end, raw, left, right);
|
574
|
-
}
|
575
|
-
};
|
576
|
-
var LTOp = class extends BinaryOp {
|
577
|
-
constructor(line, column, start, end, raw, left, right) {
|
578
|
-
super("LTOp", line, column, start, end, raw, left, right);
|
579
|
-
}
|
580
|
-
};
|
581
|
-
var LTEOp = class extends BinaryOp {
|
582
|
-
constructor(line, column, start, end, raw, left, right) {
|
583
|
-
super("LTEOp", line, column, start, end, raw, left, right);
|
584
|
-
}
|
585
|
-
};
|
586
|
-
var GTOp = class extends BinaryOp {
|
587
|
-
constructor(line, column, start, end, raw, left, right) {
|
588
|
-
super("GTOp", line, column, start, end, raw, left, right);
|
589
|
-
}
|
590
|
-
};
|
591
|
-
var GTEOp = class extends BinaryOp {
|
592
|
-
constructor(line, column, start, end, raw, left, right) {
|
593
|
-
super("GTEOp", line, column, start, end, raw, left, right);
|
594
|
-
}
|
595
|
-
};
|
596
|
-
var LogicalNotOp = class extends UnaryOp {
|
597
|
-
constructor(line, column, start, end, raw, expression) {
|
598
|
-
super("LogicalNotOp", line, column, start, end, raw, expression);
|
599
|
-
}
|
600
|
-
};
|
601
|
-
var LogicalAndOp = class extends BinaryOp {
|
602
|
-
constructor(line, column, start, end, raw, left, right) {
|
603
|
-
super("LogicalAndOp", line, column, start, end, raw, left, right);
|
604
|
-
}
|
605
|
-
};
|
606
|
-
var LogicalOrOp = class extends BinaryOp {
|
607
|
-
constructor(line, column, start, end, raw, left, right) {
|
608
|
-
super("LogicalOrOp", line, column, start, end, raw, left, right);
|
609
|
-
}
|
610
|
-
};
|
611
|
-
var SubtractOp = class extends BinaryOp {
|
612
|
-
constructor(line, column, start, end, raw, left, right) {
|
613
|
-
super("SubtractOp", line, column, start, end, raw, left, right);
|
614
|
-
}
|
615
|
-
};
|
616
|
-
var PlusOp = class extends BinaryOp {
|
617
|
-
constructor(line, column, start, end, raw, left, right) {
|
618
|
-
super("PlusOp", line, column, start, end, raw, left, right);
|
619
|
-
}
|
620
|
-
};
|
621
|
-
var UnaryPlusOp = class extends UnaryOp {
|
622
|
-
constructor(line, column, start, end, raw, expression) {
|
623
|
-
super("UnaryPlusOp", line, column, start, end, raw, expression);
|
624
|
-
}
|
625
|
-
};
|
626
|
-
var MultiplyOp = class extends BinaryOp {
|
627
|
-
constructor(line, column, start, end, raw, left, right) {
|
628
|
-
super("MultiplyOp", line, column, start, end, raw, left, right);
|
629
|
-
}
|
630
|
-
};
|
631
|
-
var DivideOp = class extends BinaryOp {
|
632
|
-
constructor(line, column, start, end, raw, left, right) {
|
633
|
-
super("DivideOp", line, column, start, end, raw, left, right);
|
634
|
-
}
|
635
|
-
};
|
636
|
-
var FloorDivideOp = class extends BinaryOp {
|
637
|
-
constructor(line, column, start, end, raw, left, right) {
|
638
|
-
super("FloorDivideOp", line, column, start, end, raw, left, right);
|
639
|
-
}
|
640
|
-
};
|
641
|
-
var ExistsOp = class extends BinaryOp {
|
642
|
-
constructor(line, column, start, end, raw, left, right) {
|
643
|
-
super("ExistsOp", line, column, start, end, raw, left, right);
|
644
|
-
}
|
645
|
-
};
|
646
|
-
var UnaryExistsOp = class extends UnaryOp {
|
647
|
-
constructor(line, column, start, end, raw, expression) {
|
648
|
-
super("UnaryExistsOp", line, column, start, end, raw, expression);
|
649
|
-
}
|
650
|
-
};
|
651
|
-
var UnaryNegateOp = class extends UnaryOp {
|
652
|
-
constructor(line, column, start, end, raw, expression) {
|
653
|
-
super("UnaryNegateOp", line, column, start, end, raw, expression);
|
654
|
-
}
|
655
|
-
};
|
656
|
-
var BitNotOp = class extends UnaryOp {
|
657
|
-
constructor(line, column, start, end, raw, expression) {
|
658
|
-
super("BitNotOp", line, column, start, end, raw, expression);
|
659
|
-
}
|
660
|
-
};
|
661
|
-
var BitAndOp = class extends BinaryOp {
|
662
|
-
constructor(line, column, start, end, raw, left, right) {
|
663
|
-
super("BitAndOp", line, column, start, end, raw, left, right);
|
664
|
-
}
|
665
|
-
};
|
666
|
-
var BitOrOp = class extends BinaryOp {
|
667
|
-
constructor(line, column, start, end, raw, left, right) {
|
668
|
-
super("BitOrOp", line, column, start, end, raw, left, right);
|
669
|
-
}
|
670
|
-
};
|
671
|
-
var BitXorOp = class extends BinaryOp {
|
672
|
-
constructor(line, column, start, end, raw, left, right) {
|
673
|
-
super("BitXorOp", line, column, start, end, raw, left, right);
|
674
|
-
}
|
675
|
-
};
|
676
|
-
var LeftShiftOp = class extends BinaryOp {
|
677
|
-
constructor(line, column, start, end, raw, left, right) {
|
678
|
-
super("LeftShiftOp", line, column, start, end, raw, left, right);
|
679
|
-
}
|
680
|
-
};
|
681
|
-
var SignedRightShiftOp = class extends BinaryOp {
|
682
|
-
constructor(line, column, start, end, raw, left, right) {
|
683
|
-
super("SignedRightShiftOp", line, column, start, end, raw, left, right);
|
684
|
-
}
|
685
|
-
};
|
686
|
-
var UnsignedRightShiftOp = class extends BinaryOp {
|
687
|
-
constructor(line, column, start, end, raw, left, right) {
|
688
|
-
super("UnsignedRightShiftOp", line, column, start, end, raw, left, right);
|
689
|
-
}
|
690
|
-
};
|
691
|
-
var PreDecrementOp = class extends UnaryOp {
|
692
|
-
constructor(line, column, start, end, raw, expression) {
|
693
|
-
super("PreDecrementOp", line, column, start, end, raw, expression);
|
694
|
-
}
|
695
|
-
};
|
696
|
-
var PreIncrementOp = class extends UnaryOp {
|
697
|
-
constructor(line, column, start, end, raw, expression) {
|
698
|
-
super("PreIncrementOp", line, column, start, end, raw, expression);
|
699
|
-
}
|
700
|
-
};
|
701
|
-
var PostDecrementOp = class extends UnaryOp {
|
702
|
-
constructor(line, column, start, end, raw, expression) {
|
703
|
-
super("PostDecrementOp", line, column, start, end, raw, expression);
|
704
|
-
}
|
705
|
-
};
|
706
|
-
var PostIncrementOp = class extends UnaryOp {
|
707
|
-
constructor(line, column, start, end, raw, expression) {
|
708
|
-
super("PostIncrementOp", line, column, start, end, raw, expression);
|
709
|
-
}
|
710
|
-
};
|
711
|
-
var ExpOp = class extends BinaryOp {
|
712
|
-
constructor(line, column, start, end, raw, left, right) {
|
713
|
-
super("ExpOp", line, column, start, end, raw, left, right);
|
714
|
-
}
|
715
|
-
};
|
716
|
-
var RemOp = class extends BinaryOp {
|
717
|
-
constructor(line, column, start, end, raw, left, right) {
|
718
|
-
super("RemOp", line, column, start, end, raw, left, right);
|
719
|
-
}
|
720
|
-
};
|
721
|
-
var ModuloOp = class extends BinaryOp {
|
722
|
-
constructor(line, column, start, end, raw, left, right) {
|
723
|
-
super("ModuloOp", line, column, start, end, raw, left, right);
|
724
|
-
}
|
725
|
-
};
|
726
|
-
var InOp = class extends BinaryOp {
|
727
|
-
constructor(line, column, start, end, raw, left, right, isNot) {
|
728
|
-
super("InOp", line, column, start, end, raw, left, right);
|
729
|
-
this.isNot = isNot;
|
730
|
-
}
|
731
|
-
};
|
732
|
-
var BaseAssignOp = class extends Node {
|
733
|
-
constructor(type, line, column, start, end, raw, assignee, expression) {
|
734
|
-
super(type, line, column, start, end, raw);
|
735
|
-
this.assignee = assignee;
|
736
|
-
this.expression = expression;
|
737
|
-
}
|
738
|
-
getChildNames() {
|
739
|
-
return ["assignee", "expression"];
|
740
|
-
}
|
741
|
-
};
|
742
|
-
var AssignOp = class extends BaseAssignOp {
|
743
|
-
constructor(line, column, start, end, raw, assignee, expression) {
|
744
|
-
super("AssignOp", line, column, start, end, raw, assignee, expression);
|
745
|
-
}
|
746
|
-
withExpression(expression) {
|
747
|
-
return new AssignOp(this.line, this.column, this.start, this.end, this.raw, this.assignee, expression);
|
748
|
-
}
|
749
|
-
};
|
750
|
-
var CompoundAssignOp = class extends BaseAssignOp {
|
751
|
-
constructor(line, column, start, end, raw, assignee, expression, op) {
|
752
|
-
super("CompoundAssignOp", line, column, start, end, raw, assignee, expression);
|
753
|
-
this.op = op;
|
754
|
-
}
|
755
|
-
};
|
756
|
-
var ExtendsOp = class extends BinaryOp {
|
757
|
-
constructor(line, column, start, end, raw, left, right) {
|
758
|
-
super("ExtendsOp", line, column, start, end, raw, left, right);
|
759
|
-
}
|
760
|
-
};
|
761
|
-
var SeqOp = class extends BinaryOp {
|
762
|
-
constructor(line, column, start, end, raw, left, right) {
|
763
|
-
super("SeqOp", line, column, start, end, raw, left, right);
|
764
|
-
}
|
765
|
-
};
|
766
|
-
var TypeofOp = class extends UnaryOp {
|
767
|
-
constructor(line, column, start, end, raw, expression) {
|
768
|
-
super("TypeofOp", line, column, start, end, raw, expression);
|
769
|
-
}
|
770
|
-
};
|
771
|
-
var InstanceofOp = class extends BinaryOp {
|
772
|
-
constructor(line, column, start, end, raw, left, right, isNot) {
|
773
|
-
super("InstanceofOp", line, column, start, end, raw, left, right);
|
774
|
-
this.isNot = isNot;
|
775
|
-
}
|
776
|
-
};
|
777
|
-
var OfOp = class extends BinaryOp {
|
778
|
-
constructor(line, column, start, end, raw, left, right, isNot) {
|
779
|
-
super("OfOp", line, column, start, end, raw, left, right);
|
780
|
-
this.isNot = isNot;
|
781
|
-
}
|
782
|
-
};
|
783
|
-
var DeleteOp = class extends UnaryOp {
|
784
|
-
constructor(line, column, start, end, raw, expression) {
|
785
|
-
super("DeleteOp", line, column, start, end, raw, expression);
|
786
|
-
}
|
787
|
-
};
|
788
|
-
var Yield = class extends Node {
|
789
|
-
constructor(line, column, start, end, raw, expression) {
|
790
|
-
super("Yield", line, column, start, end, raw);
|
791
|
-
this.expression = expression;
|
792
|
-
}
|
793
|
-
getChildNames() {
|
794
|
-
return ["expression"];
|
795
|
-
}
|
796
|
-
};
|
797
|
-
var YieldFrom = class extends Node {
|
798
|
-
constructor(line, column, start, end, raw, expression) {
|
799
|
-
super("YieldFrom", line, column, start, end, raw);
|
800
|
-
this.expression = expression;
|
801
|
-
}
|
802
|
-
getChildNames() {
|
803
|
-
return ["expression"];
|
804
|
-
}
|
805
|
-
};
|
806
|
-
var Await = class extends Node {
|
807
|
-
constructor(line, column, start, end, raw, expression) {
|
808
|
-
super("Await", line, column, start, end, raw);
|
809
|
-
this.expression = expression;
|
810
|
-
}
|
811
|
-
getChildNames() {
|
812
|
-
return ["expression"];
|
813
|
-
}
|
814
|
-
};
|
815
|
-
var Slice = class extends Node {
|
816
|
-
constructor(line, column, start, end, raw, expression, left, right, isInclusive) {
|
817
|
-
super("Slice", line, column, start, end, raw);
|
818
|
-
this.expression = expression;
|
819
|
-
this.left = left;
|
820
|
-
this.right = right;
|
821
|
-
this.isInclusive = isInclusive;
|
822
|
-
}
|
823
|
-
getChildNames() {
|
824
|
-
return ["expression", "left", "right"];
|
825
|
-
}
|
826
|
-
};
|
827
|
-
var SoakedSlice = class extends Node {
|
828
|
-
constructor(line, column, start, end, raw, expression, left, right, isInclusive) {
|
829
|
-
super("SoakedSlice", line, column, start, end, raw);
|
830
|
-
this.expression = expression;
|
831
|
-
this.left = left;
|
832
|
-
this.right = right;
|
833
|
-
this.isInclusive = isInclusive;
|
834
|
-
}
|
835
|
-
getChildNames() {
|
836
|
-
return ["expression", "left", "right"];
|
837
|
-
}
|
838
|
-
};
|
839
|
-
var BaseFunction = class extends Node {
|
840
|
-
constructor(type, line, column, start, end, raw, parameters, body) {
|
841
|
-
super(type, line, column, start, end, raw);
|
842
|
-
this.parameters = parameters;
|
843
|
-
this.body = body;
|
844
|
-
}
|
845
|
-
getChildNames() {
|
846
|
-
return ["parameters", "body"];
|
847
|
-
}
|
848
|
-
};
|
849
|
-
var Function = class extends BaseFunction {
|
850
|
-
constructor(line, column, start, end, raw, parameters, body) {
|
851
|
-
super("Function", line, column, start, end, raw, parameters, body);
|
852
|
-
}
|
853
|
-
withParameters(parameters) {
|
854
|
-
return new Function(this.line, this.column, this.start, this.end, this.raw, parameters, this.body);
|
855
|
-
}
|
856
|
-
};
|
857
|
-
var BoundFunction = class extends BaseFunction {
|
858
|
-
constructor(line, column, start, end, raw, parameters, body) {
|
859
|
-
super("BoundFunction", line, column, start, end, raw, parameters, body);
|
860
|
-
}
|
861
|
-
withParameters(parameters) {
|
862
|
-
return new BoundFunction(this.line, this.column, this.start, this.end, this.raw, parameters, this.body);
|
863
|
-
}
|
864
|
-
};
|
865
|
-
var GeneratorFunction = class extends BaseFunction {
|
866
|
-
constructor(line, column, start, end, raw, parameters, body) {
|
867
|
-
super("GeneratorFunction", line, column, start, end, raw, parameters, body);
|
868
|
-
}
|
869
|
-
withParameters(parameters) {
|
870
|
-
return new GeneratorFunction(this.line, this.column, this.start, this.end, this.raw, parameters, this.body);
|
871
|
-
}
|
872
|
-
};
|
873
|
-
var BoundGeneratorFunction = class extends BaseFunction {
|
874
|
-
constructor(line, column, start, end, raw, parameters, body) {
|
875
|
-
super("BoundGeneratorFunction", line, column, start, end, raw, parameters, body);
|
876
|
-
}
|
877
|
-
withParameters(parameters) {
|
878
|
-
return new BoundGeneratorFunction(this.line, this.column, this.start, this.end, this.raw, parameters, this.body);
|
879
|
-
}
|
880
|
-
};
|
881
|
-
var AsyncFunction = class extends BaseFunction {
|
882
|
-
constructor(line, column, start, end, raw, parameters, body) {
|
883
|
-
super("AsyncFunction", line, column, start, end, raw, parameters, body);
|
884
|
-
}
|
885
|
-
withParameters(parameters) {
|
886
|
-
return new AsyncFunction(this.line, this.column, this.start, this.end, this.raw, parameters, this.body);
|
887
|
-
}
|
888
|
-
};
|
889
|
-
var BoundAsyncFunction = class extends BaseFunction {
|
890
|
-
constructor(line, column, start, end, raw, parameters, body) {
|
891
|
-
super("BoundAsyncFunction", line, column, start, end, raw, parameters, body);
|
892
|
-
}
|
893
|
-
withParameters(parameters) {
|
894
|
-
return new BoundAsyncFunction(this.line, this.column, this.start, this.end, this.raw, parameters, this.body);
|
895
|
-
}
|
896
|
-
};
|
897
|
-
var Try = class extends Node {
|
898
|
-
constructor(line, column, start, end, raw, body, catchAssignee, catchBody, finallyBody) {
|
899
|
-
super("Try", line, column, start, end, raw);
|
900
|
-
this.body = body;
|
901
|
-
this.catchAssignee = catchAssignee;
|
902
|
-
this.catchBody = catchBody;
|
903
|
-
this.finallyBody = finallyBody;
|
904
|
-
}
|
905
|
-
getChildNames() {
|
906
|
-
return ["body", "catchAssignee", "catchBody", "finallyBody"];
|
907
|
-
}
|
908
|
-
};
|
909
|
-
var Constructor = class extends BaseAssignOp {
|
910
|
-
constructor(line, column, start, end, raw, assignee, expression) {
|
911
|
-
super("Constructor", line, column, start, end, raw, assignee, expression);
|
912
|
-
}
|
913
|
-
};
|
914
|
-
var ClassProtoAssignOp = class extends BaseAssignOp {
|
915
|
-
constructor(line, column, start, end, raw, assignee, expression) {
|
916
|
-
super("ClassProtoAssignOp", line, column, start, end, raw, assignee, expression);
|
917
|
-
}
|
918
|
-
};
|
919
|
-
var Class = class extends Node {
|
920
|
-
constructor(line, column, start, end, raw, nameAssignee, name, body, boundMembers, parent, ctor) {
|
921
|
-
super("Class", line, column, start, end, raw);
|
922
|
-
this.nameAssignee = nameAssignee;
|
923
|
-
this.name = name;
|
924
|
-
this.body = body;
|
925
|
-
this.boundMembers = boundMembers;
|
926
|
-
this.parent = parent;
|
927
|
-
this.ctor = ctor;
|
928
|
-
}
|
929
|
-
getChildNames() {
|
930
|
-
return ["nameAssignee", "parent", "body"];
|
931
|
-
}
|
932
|
-
};
|
933
|
-
var FunctionApplication = class extends Node {
|
934
|
-
constructor(line, column, start, end, raw, fn, args) {
|
935
|
-
super("FunctionApplication", line, column, start, end, raw);
|
936
|
-
this.function = fn;
|
937
|
-
this.arguments = args;
|
938
|
-
}
|
939
|
-
getChildNames() {
|
940
|
-
return ["function", "arguments"];
|
941
|
-
}
|
942
|
-
};
|
943
|
-
var SoakedFunctionApplication = class extends Node {
|
944
|
-
constructor(line, column, start, end, raw, fn, args) {
|
945
|
-
super("SoakedFunctionApplication", line, column, start, end, raw);
|
946
|
-
this.function = fn;
|
947
|
-
this.arguments = args;
|
948
|
-
}
|
949
|
-
getChildNames() {
|
950
|
-
return ["function", "arguments"];
|
951
|
-
}
|
952
|
-
};
|
953
|
-
var Super = class extends Node {
|
954
|
-
constructor(line, column, start, end, raw) {
|
955
|
-
super("Super", line, column, start, end, raw);
|
956
|
-
}
|
957
|
-
getChildNames() {
|
958
|
-
return [];
|
959
|
-
}
|
960
|
-
};
|
961
|
-
var BareSuperFunctionApplication = class extends Node {
|
962
|
-
constructor(line, column, start, end, raw) {
|
963
|
-
super("BareSuperFunctionApplication", line, column, start, end, raw);
|
964
|
-
}
|
965
|
-
getChildNames() {
|
966
|
-
return [];
|
967
|
-
}
|
968
|
-
};
|
969
|
-
var NewOp = class extends Node {
|
970
|
-
constructor(line, column, start, end, raw, ctor, args) {
|
971
|
-
super("NewOp", line, column, start, end, raw);
|
972
|
-
this.ctor = ctor;
|
973
|
-
this.arguments = args;
|
974
|
-
}
|
975
|
-
getChildNames() {
|
976
|
-
return ["ctor", "arguments"];
|
977
|
-
}
|
978
|
-
};
|
979
|
-
var SoakedNewOp = class extends Node {
|
980
|
-
constructor(line, column, start, end, raw, ctor, args) {
|
981
|
-
super("SoakedNewOp", line, column, start, end, raw);
|
982
|
-
this.ctor = ctor;
|
983
|
-
this.arguments = args;
|
984
|
-
}
|
985
|
-
getChildNames() {
|
986
|
-
return ["ctor", "arguments"];
|
987
|
-
}
|
988
|
-
};
|
989
|
-
var DoOp = class extends Node {
|
990
|
-
constructor(line, column, start, end, raw, expression) {
|
991
|
-
super("DoOp", line, column, start, end, raw);
|
992
|
-
this.expression = expression;
|
993
|
-
}
|
994
|
-
getChildNames() {
|
995
|
-
return ["expression"];
|
996
|
-
}
|
997
|
-
};
|
998
|
-
var ImportDeclaration = class extends Node {
|
999
|
-
constructor(line, column, start, end, raw, defaultBinding, namespaceImport, namedImports, source) {
|
1000
|
-
super("ImportDeclaration", line, column, start, end, raw);
|
1001
|
-
this.defaultBinding = defaultBinding;
|
1002
|
-
this.namespaceImport = namespaceImport;
|
1003
|
-
this.namedImports = namedImports;
|
1004
|
-
this.source = source;
|
1005
|
-
}
|
1006
|
-
getChildNames() {
|
1007
|
-
return ["defaultBinding", "namespaceImport", "namedImports", "source"];
|
1008
|
-
}
|
1009
|
-
};
|
1010
|
-
var ExportNamedDeclaration = class extends Node {
|
1011
|
-
constructor(line, column, start, end, raw, expression) {
|
1012
|
-
super("ExportNamedDeclaration", line, column, start, end, raw);
|
1013
|
-
this.expression = expression;
|
1014
|
-
}
|
1015
|
-
getChildNames() {
|
1016
|
-
return ["expression"];
|
1017
|
-
}
|
1018
|
-
};
|
1019
|
-
var ExportBindingsDeclaration = class extends Node {
|
1020
|
-
constructor(line, column, start, end, raw, namedExports, source) {
|
1021
|
-
super("ExportBindingsDeclaration", line, column, start, end, raw);
|
1022
|
-
this.namedExports = namedExports;
|
1023
|
-
this.source = source;
|
1024
|
-
}
|
1025
|
-
getChildNames() {
|
1026
|
-
return ["namedExports", "source"];
|
1027
|
-
}
|
1028
|
-
};
|
1029
|
-
var ExportDefaultDeclaration = class extends Node {
|
1030
|
-
constructor(line, column, start, end, raw, expression) {
|
1031
|
-
super("ExportDefaultDeclaration", line, column, start, end, raw);
|
1032
|
-
this.expression = expression;
|
1033
|
-
}
|
1034
|
-
getChildNames() {
|
1035
|
-
return ["expression"];
|
1036
|
-
}
|
1037
|
-
};
|
1038
|
-
var ExportAllDeclaration = class extends Node {
|
1039
|
-
constructor(line, column, start, end, raw, source) {
|
1040
|
-
super("ExportAllDeclaration", line, column, start, end, raw);
|
1041
|
-
this.source = source;
|
1042
|
-
}
|
1043
|
-
getChildNames() {
|
1044
|
-
return ["source"];
|
1045
|
-
}
|
1046
|
-
};
|
1047
|
-
var ModuleSpecifier = class extends Node {
|
1048
|
-
constructor(line, column, start, end, raw, original, alias) {
|
1049
|
-
super("ModuleSpecifier", line, column, start, end, raw);
|
1050
|
-
this.original = original;
|
1051
|
-
this.alias = alias;
|
1052
|
-
}
|
1053
|
-
getChildNames() {
|
1054
|
-
return ["original", "alias"];
|
1055
|
-
}
|
1056
|
-
};
|
1057
|
-
var CSXElement = class extends Node {
|
1058
|
-
constructor(line, column, start, end, raw, properties, children) {
|
1059
|
-
super("CSXElement", line, column, start, end, raw);
|
1060
|
-
this.properties = properties;
|
1061
|
-
this.children = children;
|
1062
|
-
}
|
1063
|
-
getChildNames() {
|
1064
|
-
return ["properties", "children"];
|
1065
|
-
}
|
1066
|
-
};
|
1067
|
-
|
1068
|
-
// src/util/isCommentOnlyNode.ts
|
1069
|
-
import {
|
1070
|
-
PassthroughLiteral,
|
1071
|
-
Value
|
1072
|
-
} from "decaffeinate-coffeescript2/lib/coffeescript/nodes.js";
|
1073
|
-
function isCommentOnlyNode(base) {
|
1074
|
-
return base instanceof Value && base.base instanceof PassthroughLiteral && base.base.value === "";
|
1075
|
-
}
|
1076
|
-
|
1077
|
-
// src/mappers/mapBlock.ts
|
1078
|
-
import { SourceType as SourceType14 } from "coffee-lex";
|
1079
|
-
import {
|
1080
|
-
Assign as Assign4,
|
1081
|
-
Obj as Obj4,
|
1082
|
-
Value as Value10
|
1083
|
-
} from "decaffeinate-coffeescript2/lib/coffeescript/nodes.js";
|
1084
|
-
import { inspect as inspect8 } from "util";
|
1085
|
-
|
1086
|
-
// src/util/getLocation.ts
|
1087
|
-
import { SourceType } from "coffee-lex";
|
1088
|
-
import { inspect } from "util";
|
1089
|
-
function getLocation(context, node) {
|
1090
|
-
const loc = node.locationData;
|
1091
|
-
let start = context.linesAndColumns.indexForLocation({
|
1092
|
-
line: loc.first_line,
|
1093
|
-
column: loc.first_column
|
1094
|
-
});
|
1095
|
-
const last = context.linesAndColumns.indexForLocation({
|
1096
|
-
line: loc.last_line,
|
1097
|
-
column: loc.last_column
|
1098
|
-
});
|
1099
|
-
if (start === null || last === null) {
|
1100
|
-
throw new Error(`unable to determine range for location: ${inspect(loc)}}`);
|
1101
|
-
}
|
1102
|
-
const line = loc.first_line + 1;
|
1103
|
-
const column = loc.first_column + 1;
|
1104
|
-
let end = last + 1;
|
1105
|
-
if (start < 0) {
|
1106
|
-
start = 0;
|
1107
|
-
}
|
1108
|
-
if (end > context.source.length) {
|
1109
|
-
end = context.source.length;
|
1110
|
-
}
|
1111
|
-
const firstTokenOfNode = requireToken(firstSemanticTokenAfter(context, start), node);
|
1112
|
-
const lastTokenOfNode = requireToken(firstSemanticTokenBefore(context, end), node);
|
1113
|
-
start = firstTokenOfNode.start;
|
1114
|
-
end = lastTokenOfNode.end;
|
1115
|
-
const raw = context.source.slice(start, end);
|
1116
|
-
return { line, column, start, end, raw };
|
1117
|
-
}
|
1118
|
-
function firstSemanticTokenAfter(context, index) {
|
1119
|
-
const tokenIndex = context.sourceTokens.indexOfTokenMatchingPredicate((token) => {
|
1120
|
-
return token.start >= index && token.type !== SourceType.NEWLINE && token.type !== SourceType.COMMENT;
|
1121
|
-
}, context.sourceTokens.indexOfTokenNearSourceIndex(index));
|
1122
|
-
return tokenIndex === null ? null : context.sourceTokens.tokenAtIndex(tokenIndex);
|
1123
|
-
}
|
1124
|
-
function firstSemanticTokenBefore(context, index) {
|
1125
|
-
const tokenIndex = context.sourceTokens.lastIndexOfTokenMatchingPredicate((token) => {
|
1126
|
-
return token.end <= index && token.type !== SourceType.NEWLINE && token.type !== SourceType.COMMENT;
|
1127
|
-
}, context.sourceTokens.indexOfTokenNearSourceIndex(index));
|
1128
|
-
return tokenIndex === null ? null : context.sourceTokens.tokenAtIndex(tokenIndex);
|
1129
|
-
}
|
1130
|
-
function requireToken(token, node) {
|
1131
|
-
if (token === null) {
|
1132
|
-
throw new Error(`unable to find token for node: ${inspect(node)}`);
|
1133
|
-
}
|
1134
|
-
return token;
|
1135
|
-
}
|
1136
|
-
|
1137
|
-
// src/mappers/mapAny.ts
|
1138
|
-
import {
|
1139
|
-
Arr as Arr2,
|
1140
|
-
Assign as Assign3,
|
1141
|
-
Block as Block3,
|
1142
|
-
Call as Call4,
|
1143
|
-
Class as Class2,
|
1144
|
-
Code,
|
1145
|
-
ComputedPropertyName as ComputedPropertyName2,
|
1146
|
-
Elision as Elision2,
|
1147
|
-
Existence,
|
1148
|
-
Expansion as Expansion2,
|
1149
|
-
Extends,
|
1150
|
-
For as For3,
|
1151
|
-
If,
|
1152
|
-
In,
|
1153
|
-
Literal as Literal8,
|
1154
|
-
ModuleDeclaration as ModuleDeclaration2,
|
1155
|
-
Obj as Obj3,
|
1156
|
-
Op as Op7,
|
1157
|
-
Param,
|
1158
|
-
Parens as Parens2,
|
1159
|
-
Range as Range2,
|
1160
|
-
Return as Return2,
|
1161
|
-
Splat as Splat4,
|
1162
|
-
StringWithInterpolations as StringWithInterpolations4,
|
1163
|
-
Super as Super2,
|
1164
|
-
Switch as Switch2,
|
1165
|
-
TaggedTemplateCall,
|
1166
|
-
Throw as Throw2,
|
1167
|
-
Try as Try2,
|
1168
|
-
Value as Value9,
|
1169
|
-
While as While2
|
1170
|
-
} from "decaffeinate-coffeescript2/lib/coffeescript/nodes.js";
|
1171
|
-
|
1172
|
-
// src/util/UnsupportedNodeError.ts
|
1173
|
-
import { inspect as inspect2 } from "util";
|
1174
|
-
var UnsupportedNodeError = class extends Error {
|
1175
|
-
constructor(node, message = null) {
|
1176
|
-
const prefix = message ? `${message}
|
1177
|
-
|
1178
|
-
` : "";
|
1179
|
-
super(`${prefix}node type '${node.constructor.name}' is not supported: ${inspect2(node)}`);
|
1180
|
-
Object.setPrototypeOf(this, UnsupportedNodeError.prototype);
|
1181
|
-
this.node = node;
|
1182
|
-
}
|
1183
|
-
};
|
1184
|
-
|
1185
|
-
// src/mappers/mapArr.ts
|
1186
|
-
function mapArr(context, node) {
|
1187
|
-
const { line, column, start, end, raw } = getLocation(context, node);
|
1188
|
-
const members = node.objects.map((object) => mapAny(context, object));
|
1189
|
-
return new ArrayInitialiser(line, column, start, end, raw, members);
|
1190
|
-
}
|
1191
|
-
|
1192
|
-
// src/mappers/mapAssign.ts
|
1193
|
-
var COMPOUND_ASSIGN_OPS = {
|
1194
|
-
"-=": SubtractOp.name,
|
1195
|
-
"+=": PlusOp.name,
|
1196
|
-
"/=": DivideOp.name,
|
1197
|
-
"*=": MultiplyOp.name,
|
1198
|
-
"%=": RemOp.name,
|
1199
|
-
"||=": LogicalOrOp.name,
|
1200
|
-
"&&=": LogicalAndOp.name,
|
1201
|
-
"?=": ExistsOp.name,
|
1202
|
-
"<<=": LeftShiftOp.name,
|
1203
|
-
">>=": SignedRightShiftOp.name,
|
1204
|
-
">>>=": UnsignedRightShiftOp.name,
|
1205
|
-
"&=": BitAndOp.name,
|
1206
|
-
"^=": BitXorOp.name,
|
1207
|
-
"|=": BitOrOp.name,
|
1208
|
-
"**=": ExpOp.name,
|
1209
|
-
"//=": FloorDivideOp.name,
|
1210
|
-
"%%=": ModuloOp.name
|
1211
|
-
};
|
1212
|
-
function mapAssign(context, node) {
|
1213
|
-
if (node.context === "object") {
|
1214
|
-
throw new UnsupportedNodeError(node, "Unexpected object context when mapping regular assign op.");
|
1215
|
-
}
|
1216
|
-
const { line, column, start, end, raw } = getLocation(context, node);
|
1217
|
-
if (node.context) {
|
1218
|
-
const opName = COMPOUND_ASSIGN_OPS[node.context];
|
1219
|
-
if (!opName) {
|
1220
|
-
throw new UnsupportedNodeError(node, "Unexpected operator context for assign op.");
|
1221
|
-
}
|
1222
|
-
return new CompoundAssignOp(line, column, start, end, raw, mapAny(context, node.variable), mapAny(context, node.value), opName);
|
1223
|
-
} else {
|
1224
|
-
return new AssignOp(line, column, start, end, raw, mapAny(context, node.variable), mapAny(context, node.value));
|
1225
|
-
}
|
1226
|
-
}
|
1227
|
-
|
1228
|
-
// src/mappers/mapCall.ts
|
1229
|
-
import { SourceType as SourceType5 } from "coffee-lex";
|
1230
|
-
import {
|
1231
|
-
Literal as Literal3,
|
1232
|
-
Splat as Splat2,
|
1233
|
-
StringWithInterpolations as StringWithInterpolations2,
|
1234
|
-
SuperCall,
|
1235
|
-
Value as Value5
|
1236
|
-
} from "decaffeinate-coffeescript2/lib/coffeescript/nodes.js";
|
1237
|
-
import { inspect as inspect3 } from "util";
|
1238
|
-
|
1239
|
-
// src/util/isHeregexTemplateNode.ts
|
1240
|
-
import { SourceType as SourceType2 } from "coffee-lex";
|
1241
|
-
import {
|
1242
|
-
Call,
|
1243
|
-
Literal,
|
1244
|
-
Value as Value2
|
1245
|
-
} from "decaffeinate-coffeescript2/lib/coffeescript/nodes.js";
|
1246
|
-
function isHeregexTemplateNode(node, context) {
|
1247
|
-
if (!(node instanceof Call) || !node.variable || !(node.variable instanceof Value2) || !node.variable.base || !(node.variable.base instanceof Literal) || node.variable.base.value !== "RegExp") {
|
1248
|
-
return false;
|
1249
|
-
}
|
1250
|
-
const { sourceTokens, linesAndColumns } = context;
|
1251
|
-
const start = linesAndColumns.indexForLocation({
|
1252
|
-
line: node.locationData.first_line,
|
1253
|
-
column: node.locationData.first_column
|
1254
|
-
});
|
1255
|
-
if (start === null) {
|
1256
|
-
return false;
|
1257
|
-
}
|
1258
|
-
const startTokenIndex = sourceTokens.indexOfTokenContainingSourceIndex(start);
|
1259
|
-
if (startTokenIndex === null) {
|
1260
|
-
return false;
|
1261
|
-
}
|
1262
|
-
const startToken = sourceTokens.tokenAtIndex(startTokenIndex);
|
1263
|
-
if (startToken === null) {
|
1264
|
-
return false;
|
1265
|
-
}
|
1266
|
-
return startToken.type === SourceType2.HEREGEXP_START;
|
1267
|
-
}
|
1268
|
-
|
1269
|
-
// src/util/locationsEqual.ts
|
1270
|
-
function locationsEqual(first, second) {
|
1271
|
-
return first.first_line === second.first_line && first.first_column === second.first_column && first.last_line === second.last_line && first.last_column === second.last_column;
|
1272
|
-
}
|
1273
|
-
|
1274
|
-
// src/util/getTemplateLiteralComponents.ts
|
1275
|
-
import {
|
1276
|
-
SourceType as SourceType4
|
1277
|
-
} from "coffee-lex";
|
1278
|
-
import {
|
1279
|
-
Literal as Literal2,
|
1280
|
-
Op as Op2,
|
1281
|
-
Value as Value3
|
1282
|
-
} from "decaffeinate-coffeescript2/lib/coffeescript/nodes.js";
|
1283
|
-
|
1284
|
-
// src/util/isPlusTokenBetweenRanges.ts
|
1285
|
-
import { SourceType as SourceType3 } from "coffee-lex";
|
1286
|
-
function isPlusTokenBetweenRanges(leftRange, rightRange, context) {
|
1287
|
-
const tokens = context.sourceTokens;
|
1288
|
-
const leftEnd = tokens.indexOfTokenContainingSourceIndex(leftRange[1] - 1);
|
1289
|
-
const rightStart = tokens.indexOfTokenContainingSourceIndex(rightRange[0]);
|
1290
|
-
if (!leftEnd || !rightStart) {
|
1291
|
-
return false;
|
1292
|
-
}
|
1293
|
-
const afterLeftEnd = leftEnd.next();
|
1294
|
-
if (!afterLeftEnd) {
|
1295
|
-
return false;
|
1296
|
-
}
|
1297
|
-
const tokensBetweenOperands = tokens.slice(afterLeftEnd, rightStart);
|
1298
|
-
let foundPlusToken = false;
|
1299
|
-
tokensBetweenOperands.forEach(({ type, start, end }) => {
|
1300
|
-
if (type === SourceType3.OPERATOR && context.source.slice(start, end) === "+") {
|
1301
|
-
foundPlusToken = true;
|
1302
|
-
}
|
1303
|
-
});
|
1304
|
-
return foundPlusToken;
|
1305
|
-
}
|
1306
|
-
|
1307
|
-
// src/util/isImplicitPlusOp.ts
|
1308
|
-
function isImplicitPlusOp(op, context) {
|
1309
|
-
if (op.operator !== "+" || !op.second) {
|
1310
|
-
return false;
|
1311
|
-
}
|
1312
|
-
const firstRange = context.getRange(op.first);
|
1313
|
-
const secondRange = context.getRange(op.second);
|
1314
|
-
if (!firstRange || !secondRange) {
|
1315
|
-
throw new Error("Expected valid location data on plus operation.");
|
1316
|
-
}
|
1317
|
-
return !isPlusTokenBetweenRanges(firstRange, secondRange, context);
|
1318
|
-
}
|
1319
|
-
|
1320
|
-
// src/util/parseString.ts
|
1321
|
-
import { parse } from "@codemod/parser";
|
1322
|
-
function parseString(string) {
|
1323
|
-
const expressionStatement = parse(`(${string})`).program.body[0];
|
1324
|
-
const literal = expressionStatement.expression;
|
1325
|
-
return literal.value;
|
1326
|
-
}
|
1327
|
-
|
1328
|
-
// src/util/getTemplateLiteralComponents.ts
|
1329
|
-
function getTemplateLiteralComponents(context, node) {
|
1330
|
-
const tokens = context.sourceTokens;
|
1331
|
-
const quasis = [];
|
1332
|
-
const unmappedExpressions = [];
|
1333
|
-
const elements = getElements(node, context);
|
1334
|
-
const nodeRange = context.getRange(node);
|
1335
|
-
if (!nodeRange) {
|
1336
|
-
throw new Error("Expected valid range on template literal node.");
|
1337
|
-
}
|
1338
|
-
const { startTokenIndex, startToken } = getStartToken(nodeRange[0], tokens);
|
1339
|
-
let depth = 0;
|
1340
|
-
let lastToken = startToken;
|
1341
|
-
for (let tokenIndex = startTokenIndex; tokenIndex; tokenIndex = tokenIndex.next()) {
|
1342
|
-
const token = tokens.tokenAtIndex(tokenIndex);
|
1343
|
-
if (!token) {
|
1344
|
-
break;
|
1345
|
-
}
|
1346
|
-
if (token.type === SourceType4.INTERPOLATION_START || token.type === SourceType4.CSX_OPEN_TAG_START) {
|
1347
|
-
depth++;
|
1348
|
-
if (depth === 1) {
|
1349
|
-
quasis.push(findQuasi(lastToken, token, context, elements));
|
1350
|
-
lastToken = token;
|
1351
|
-
}
|
1352
|
-
} else if (token.type === SourceType4.INTERPOLATION_END || token.type === SourceType4.CSX_SELF_CLOSING_TAG_END || token.type === SourceType4.CSX_CLOSE_TAG_END) {
|
1353
|
-
depth--;
|
1354
|
-
if (depth === 0) {
|
1355
|
-
unmappedExpressions.push(findExpression(lastToken, token, context, elements));
|
1356
|
-
lastToken = token;
|
1357
|
-
}
|
1358
|
-
} else if (depth === 0 && isTemplateLiteralEnd(token)) {
|
1359
|
-
quasis.push(findQuasi(lastToken, token, context, elements));
|
1360
|
-
lastToken = token;
|
1361
|
-
break;
|
1362
|
-
}
|
1363
|
-
}
|
1364
|
-
return {
|
1365
|
-
quasis,
|
1366
|
-
unmappedExpressions,
|
1367
|
-
start: startToken.start,
|
1368
|
-
end: lastToken.end
|
1369
|
-
};
|
1370
|
-
}
|
1371
|
-
function getElements(node, context) {
|
1372
|
-
if (node instanceof Op2 && isImplicitPlusOp(node, context)) {
|
1373
|
-
if (!node.second) {
|
1374
|
-
throw new Error("Expected second operand on plus op.");
|
1375
|
-
}
|
1376
|
-
return [
|
1377
|
-
...getElements(node.first, context),
|
1378
|
-
...getElements(node.second, context)
|
1379
|
-
];
|
1380
|
-
}
|
1381
|
-
return [node];
|
1382
|
-
}
|
1383
|
-
function getStartToken(start, tokens) {
|
1384
|
-
let tokenIndex = tokens.indexOfTokenNearSourceIndex(start);
|
1385
|
-
for (let i = 0; i < 5; i++) {
|
1386
|
-
const token = tokens.tokenAtIndex(tokenIndex);
|
1387
|
-
if (!token) {
|
1388
|
-
throw new Error("Expected to find a start token in a template literal.");
|
1389
|
-
}
|
1390
|
-
if (isTemplateLiteralStart(token)) {
|
1391
|
-
return { startToken: token, startTokenIndex: tokenIndex };
|
1392
|
-
}
|
1393
|
-
const prevToken = tokenIndex.previous();
|
1394
|
-
if (!prevToken) {
|
1395
|
-
throw new Error("Expected a previous token when searching for a template start.");
|
1396
|
-
}
|
1397
|
-
tokenIndex = prevToken;
|
1398
|
-
}
|
1399
|
-
throw new Error("Expected a template literal start token.");
|
1400
|
-
}
|
1401
|
-
function findQuasi(leftToken, rightToken, context, elements) {
|
1402
|
-
const matchingElements = elements.filter((elem) => {
|
1403
|
-
const range = context.getRange(elem);
|
1404
|
-
if (!range) {
|
1405
|
-
throw new Error("Unexpected invalid range.");
|
1406
|
-
}
|
1407
|
-
return range[0] >= leftToken.start && range[1] <= rightToken.end;
|
1408
|
-
});
|
1409
|
-
const start = leftToken.end;
|
1410
|
-
const end = rightToken.start;
|
1411
|
-
const startLoc = context.linesAndColumns.locationForIndex(leftToken.end);
|
1412
|
-
if (!startLoc) {
|
1413
|
-
throw new Error(`Expected to find a location for index ${leftToken.end}.`);
|
1414
|
-
}
|
1415
|
-
const raw = context.source.slice(start, end);
|
1416
|
-
if (matchingElements.length === 0) {
|
1417
|
-
return new Quasi(startLoc.line + 1, startLoc.column + 1, start, end, raw, "");
|
1418
|
-
} else if (matchingElements.length === 1) {
|
1419
|
-
const element = matchingElements[0];
|
1420
|
-
let literal;
|
1421
|
-
if (element instanceof Literal2) {
|
1422
|
-
literal = element;
|
1423
|
-
} else if (element instanceof Value3 && element.properties.length === 0 && element.base instanceof Literal2) {
|
1424
|
-
literal = element.base;
|
1425
|
-
} else {
|
1426
|
-
throw new Error("Expected quasi element to be either a literal or a value containing only a literal.");
|
1427
|
-
}
|
1428
|
-
const stringValue = parseString(literal.value);
|
1429
|
-
return new Quasi(startLoc.line + 1, startLoc.column + 1, start, end, raw, stringValue !== void 0 ? stringValue : literal.value);
|
1430
|
-
} else {
|
1431
|
-
throw new Error("Unexpectedly found multiple elements in string interpolation.");
|
1432
|
-
}
|
1433
|
-
}
|
1434
|
-
function findExpression(leftToken, rightToken, context, elements) {
|
1435
|
-
const matchingElements = elements.filter((elem) => {
|
1436
|
-
const range = context.getRange(elem);
|
1437
|
-
if (!range) {
|
1438
|
-
throw new Error("Unexpected invalid range.");
|
1439
|
-
}
|
1440
|
-
return range[0] >= leftToken.start && range[1] <= rightToken.end;
|
1441
|
-
});
|
1442
|
-
if (matchingElements.length === 0) {
|
1443
|
-
return null;
|
1444
|
-
} else if (matchingElements.length === 1) {
|
1445
|
-
return matchingElements[0];
|
1446
|
-
} else {
|
1447
|
-
throw new Error("Unexpectedly found multiple elements in string interpolation.");
|
1448
|
-
}
|
1449
|
-
}
|
1450
|
-
function isTemplateLiteralStart(token) {
|
1451
|
-
return [
|
1452
|
-
SourceType4.DSTRING_START,
|
1453
|
-
SourceType4.SSTRING_START,
|
1454
|
-
SourceType4.TDSTRING_START,
|
1455
|
-
SourceType4.TSSTRING_START,
|
1456
|
-
SourceType4.HEREGEXP_START,
|
1457
|
-
SourceType4.CSX_OPEN_TAG_END
|
1458
|
-
].indexOf(token.type) >= 0;
|
1459
|
-
}
|
1460
|
-
function isTemplateLiteralEnd(token) {
|
1461
|
-
return [
|
1462
|
-
SourceType4.DSTRING_END,
|
1463
|
-
SourceType4.SSTRING_END,
|
1464
|
-
SourceType4.TDSTRING_END,
|
1465
|
-
SourceType4.TSSTRING_END,
|
1466
|
-
SourceType4.HEREGEXP_END,
|
1467
|
-
SourceType4.CSX_CLOSE_TAG_START
|
1468
|
-
].indexOf(token.type) >= 0;
|
1469
|
-
}
|
1470
|
-
|
1471
|
-
// src/util/makeHeregex.ts
|
1472
|
-
function makeHeregex(context, node, flags) {
|
1473
|
-
const { quasis, unmappedExpressions, start, end } = getTemplateLiteralComponents(context, node);
|
1474
|
-
const startLoc = context.linesAndColumns.locationForIndex(start);
|
1475
|
-
if (!startLoc) {
|
1476
|
-
throw new Error(`Expected to find a location for index ${start}.`);
|
1477
|
-
}
|
1478
|
-
const raw = context.source.slice(start, end);
|
1479
|
-
return new Heregex(startLoc.line + 1, startLoc.column + 1, start, end, raw, quasis, unmappedExpressions.map((expr) => expr ? mapAny(context, expr) : null), RegexFlags.parse(flags));
|
1480
|
-
}
|
1481
|
-
|
1482
|
-
// src/mappers/mapCSX.ts
|
1483
|
-
import {
|
1484
|
-
Arr,
|
1485
|
-
Assign,
|
1486
|
-
IdentifierLiteral,
|
1487
|
-
Obj,
|
1488
|
-
Splat,
|
1489
|
-
StringLiteral,
|
1490
|
-
StringWithInterpolations,
|
1491
|
-
Value as Value4
|
1492
|
-
} from "decaffeinate-coffeescript2/lib/coffeescript/nodes.js";
|
1493
|
-
function mapCSX(context, node) {
|
1494
|
-
const { line, column, start, end, raw } = getLocation(context, node);
|
1495
|
-
const [properties, children] = node.args;
|
1496
|
-
const mappedProperties = mapCSXProperties(context, properties);
|
1497
|
-
const mappedChildren = mapCSXChildren(context, children);
|
1498
|
-
return new CSXElement(line, column, start, end, raw, mappedProperties, mappedChildren);
|
1499
|
-
}
|
1500
|
-
function mapCSXProperties(context, properties) {
|
1501
|
-
if (!(properties instanceof Value4) || !(properties.base instanceof Arr)) {
|
1502
|
-
throw new Error("Expected a value for the CSX properties arg.");
|
1503
|
-
}
|
1504
|
-
const values = properties.base.objects;
|
1505
|
-
const resultProperties = [];
|
1506
|
-
for (const value of values) {
|
1507
|
-
if (!(value instanceof Value4)) {
|
1508
|
-
throw new Error("Expected value for CSX property.");
|
1509
|
-
}
|
1510
|
-
if (value.base instanceof Obj) {
|
1511
|
-
for (const propertyAssignment of value.base.objects) {
|
1512
|
-
if (propertyAssignment instanceof Splat) {
|
1513
|
-
resultProperties.push(mapAny(context, propertyAssignment));
|
1514
|
-
} else if (propertyAssignment instanceof Assign) {
|
1515
|
-
if (!(propertyAssignment.value instanceof Value4)) {
|
1516
|
-
throw new Error("Unexpected property assignment value.");
|
1517
|
-
}
|
1518
|
-
if (!(propertyAssignment.value.base instanceof StringLiteral)) {
|
1519
|
-
resultProperties.push(mapAny(context, propertyAssignment.value));
|
1520
|
-
}
|
1521
|
-
} else {
|
1522
|
-
throw new Error("Unexpected property assignment object field in CSX.");
|
1523
|
-
}
|
1524
|
-
}
|
1525
|
-
} else if (value.base instanceof IdentifierLiteral) {
|
1526
|
-
} else {
|
1527
|
-
throw new Error("Unexpected property assignment in CSX.");
|
1528
|
-
}
|
1529
|
-
}
|
1530
|
-
return resultProperties;
|
1531
|
-
}
|
1532
|
-
function mapCSXChildren(context, children) {
|
1533
|
-
if (!children) {
|
1534
|
-
return [];
|
1535
|
-
}
|
1536
|
-
if (!(children instanceof Value4)) {
|
1537
|
-
throw new Error("Expected a value for the CSX children arg.");
|
1538
|
-
}
|
1539
|
-
if (children.base instanceof StringLiteral) {
|
1540
|
-
return [];
|
1541
|
-
} else if (!(children.base instanceof StringWithInterpolations)) {
|
1542
|
-
throw new Error("Expected a valid CSX children arg.");
|
1543
|
-
}
|
1544
|
-
const childInterpolatedString = children.base.body.expressions[0];
|
1545
|
-
const { unmappedExpressions } = getTemplateLiteralComponents(context, childInterpolatedString);
|
1546
|
-
return unmappedExpressions.map((child) => child ? mapAny(context, child) : null);
|
1547
|
-
}
|
1548
|
-
|
1549
|
-
// src/mappers/mapCall.ts
|
1550
|
-
function mapCall(context, node) {
|
1551
|
-
const { line, column, start, end, raw } = getLocation(context, node);
|
1552
|
-
if (node.csx) {
|
1553
|
-
return mapCSX(context, node);
|
1554
|
-
}
|
1555
|
-
if (isHeregexTemplateNode(node, context)) {
|
1556
|
-
const firstArg = node.args[0];
|
1557
|
-
if (!(firstArg instanceof Value5) || !(firstArg.base instanceof StringWithInterpolations2)) {
|
1558
|
-
throw new Error("Expected a valid first heregex arg in the AST.");
|
1559
|
-
}
|
1560
|
-
const strNode = firstArg.base.body.expressions[0];
|
1561
|
-
let flags;
|
1562
|
-
if (node.args.length > 1) {
|
1563
|
-
const secondArg = node.args[1];
|
1564
|
-
if (!(secondArg instanceof Value5) || !(secondArg.base instanceof Literal3)) {
|
1565
|
-
throw new Error("Expected a string flags value in the heregex AST.");
|
1566
|
-
}
|
1567
|
-
flags = parseString(secondArg.base.value);
|
1568
|
-
} else {
|
1569
|
-
flags = "";
|
1570
|
-
}
|
1571
|
-
return makeHeregex(context, strNode, flags);
|
1572
|
-
}
|
1573
|
-
const args = node.args.map((arg) => mapAny(context, arg));
|
1574
|
-
if (node instanceof SuperCall) {
|
1575
|
-
if (node.args.length === 1 && node.args[0] instanceof Splat2 && locationsEqual(node.args[0].locationData, node.locationData)) {
|
1576
|
-
return new BareSuperFunctionApplication(line, column, start, end, raw);
|
1577
|
-
}
|
1578
|
-
const superIndex = context.sourceTokens.indexOfTokenStartingAtSourceIndex(start);
|
1579
|
-
const superToken = superIndex && context.sourceTokens.tokenAtIndex(superIndex);
|
1580
|
-
if (!superToken || superToken.type !== SourceType5.SUPER) {
|
1581
|
-
throw new Error(`unable to find SUPER token in 'super' function call: ${inspect3(node)}`);
|
1582
|
-
}
|
1583
|
-
const superLocation = context.linesAndColumns.locationForIndex(superToken.start);
|
1584
|
-
if (!superLocation) {
|
1585
|
-
throw new Error(`unable to locate SUPER token for 'super' function call: ${inspect3(node)}`);
|
1586
|
-
}
|
1587
|
-
return new FunctionApplication(line, column, start, end, raw, new Super(superLocation.line + 1, superLocation.column + 1, superToken.start, superToken.end, context.source.slice(superToken.start, superToken.end)), args);
|
1588
|
-
}
|
1589
|
-
if (!node.variable) {
|
1590
|
-
throw new Error("Expected non-super call to have a variable defined.");
|
1591
|
-
}
|
1592
|
-
const callee = mapAny(context, node.variable);
|
1593
|
-
if (node.isNew) {
|
1594
|
-
return mapNewOp(context, node);
|
1595
|
-
}
|
1596
|
-
if (node.soak) {
|
1597
|
-
return new SoakedFunctionApplication(line, column, start, end, raw, callee, args);
|
1598
|
-
}
|
1599
|
-
if (node.do) {
|
1600
|
-
return mapDoOp(context, node);
|
1601
|
-
}
|
1602
|
-
return new FunctionApplication(line, column, start, end, raw, callee, args);
|
1603
|
-
}
|
1604
|
-
function mapNewOp(context, node) {
|
1605
|
-
if (!node.variable) {
|
1606
|
-
throw new UnsupportedNodeError(node);
|
1607
|
-
}
|
1608
|
-
const { line, column, start, end, raw } = getLocation(context, node);
|
1609
|
-
const callee = mapAny(context, node.variable);
|
1610
|
-
const args = node.args.map((arg) => mapAny(context, arg));
|
1611
|
-
if (node.soak) {
|
1612
|
-
return new SoakedNewOp(line, column, start, end, raw, callee, args);
|
1613
|
-
} else {
|
1614
|
-
return new NewOp(line, column, start, end, raw, callee, args);
|
1615
|
-
}
|
1616
|
-
}
|
1617
|
-
function mapDoOp(context, node) {
|
1618
|
-
if (!node.variable) {
|
1619
|
-
throw new UnsupportedNodeError(node);
|
1620
|
-
}
|
1621
|
-
const { line, column, start, end, raw } = getLocation(context, node);
|
1622
|
-
let expression = mapAny(context, node.variable);
|
1623
|
-
const args = node.args.map((arg) => mapAny(context, arg));
|
1624
|
-
if (expression instanceof BaseFunction) {
|
1625
|
-
expression = augmentDoFunctionWithArgs(context, expression, args);
|
1626
|
-
} else if (expression instanceof AssignOp && expression.expression instanceof BaseFunction) {
|
1627
|
-
const newRhs = augmentDoFunctionWithArgs(context, expression.expression, args);
|
1628
|
-
expression = expression.withExpression(newRhs);
|
1629
|
-
}
|
1630
|
-
return new DoOp(line, column, start, end, raw, expression);
|
1631
|
-
}
|
1632
|
-
function augmentDoFunctionWithArgs(context, func, args) {
|
1633
|
-
const newParameters = func.parameters.map((param, i) => {
|
1634
|
-
const arg = args[i];
|
1635
|
-
if (arg instanceof Identifier && param instanceof Identifier && arg.data === param.data && arg.start === param.start && arg.end === param.end) {
|
1636
|
-
return param;
|
1637
|
-
}
|
1638
|
-
return new DefaultParam(param.line, param.column, param.start, arg.end, context.source.slice(param.start, arg.end), param, arg);
|
1639
|
-
});
|
1640
|
-
return func.withParameters(newParameters);
|
1641
|
-
}
|
1642
|
-
|
1643
|
-
// src/mappers/mapClass.ts
|
1644
|
-
function mapClass(context, node) {
|
1645
|
-
const { line, column, start, end, raw } = getLocation(context, node);
|
1646
|
-
const nameAssignee = node.variable ? mapAny(context, node.variable) : null;
|
1647
|
-
const parent = node.parent ? mapAny(context, node.parent) : null;
|
1648
|
-
const childContext = context.updateState((s) => s.pushCurrentClass());
|
1649
|
-
const body = mapPossiblyEmptyBlock(childContext, node.body);
|
1650
|
-
const boundMethods = childContext.parseState.currentClassBoundMethods;
|
1651
|
-
if (!boundMethods) {
|
1652
|
-
throw new Error("Expected a non-null bound method name array.");
|
1653
|
-
}
|
1654
|
-
return new Class(line, column, start, end, raw, nameAssignee, nameAssignee, body, boundMethods, parent, childContext.parseState.currentClassCtor);
|
1655
|
-
}
|
1656
|
-
|
1657
|
-
// src/mappers/mapCode.ts
|
1658
|
-
function mapCode(context, node) {
|
1659
|
-
const { line, column, start, end, raw } = getLocation(context, node);
|
1660
|
-
const Node12 = getNodeTypeForCode(node);
|
1661
|
-
const childContext = context.updateState((s) => s.dropCurrentClass());
|
1662
|
-
return new Node12(line, column, start, end, raw, node.params.map((param) => mapAny(childContext, param)), mapPossiblyEmptyBlock(childContext, node.body));
|
1663
|
-
}
|
1664
|
-
function getNodeTypeForCode(node) {
|
1665
|
-
if (node.isGenerator) {
|
1666
|
-
if (node.bound) {
|
1667
|
-
return BoundGeneratorFunction;
|
1668
|
-
} else {
|
1669
|
-
return GeneratorFunction;
|
1670
|
-
}
|
1671
|
-
} else if (node.isAsync) {
|
1672
|
-
if (node.bound) {
|
1673
|
-
return BoundAsyncFunction;
|
1674
|
-
} else {
|
1675
|
-
return AsyncFunction;
|
1676
|
-
}
|
1677
|
-
} else {
|
1678
|
-
if (node.bound) {
|
1679
|
-
return BoundFunction;
|
1680
|
-
} else {
|
1681
|
-
return Function;
|
1682
|
-
}
|
1683
|
-
}
|
1684
|
-
}
|
1685
|
-
|
1686
|
-
// src/mappers/mapComputedPropertyName.ts
|
1687
|
-
function mapComputedPropertyName(context, node) {
|
1688
|
-
return mapAny(context, node.value);
|
1689
|
-
}
|
1690
|
-
|
1691
|
-
// src/mappers/mapElision.ts
|
1692
|
-
function mapElision(context, node) {
|
1693
|
-
const { line, column, start, end, raw } = getLocation(context, node);
|
1694
|
-
return new Elision(line, column, start, end, raw);
|
1695
|
-
}
|
1696
|
-
|
1697
|
-
// src/mappers/mapExistence.ts
|
1698
|
-
function mapExistence(context, node) {
|
1699
|
-
const { line, column, start, end, raw } = getLocation(context, node);
|
1700
|
-
return new UnaryExistsOp(line, column, start, end, raw, mapAny(context, node.expression));
|
1701
|
-
}
|
1702
|
-
|
1703
|
-
// src/mappers/mapExpansion.ts
|
1704
|
-
function mapExpansion(context, node) {
|
1705
|
-
const { line, column, start, end, raw } = getLocation(context, node);
|
1706
|
-
return new Expansion(line, column, start, end, raw);
|
1707
|
-
}
|
1708
|
-
|
1709
|
-
// src/mappers/mapExtends.ts
|
1710
|
-
function mapExtends(context, node) {
|
1711
|
-
const { line, column, start, end, raw } = getLocation(context, node);
|
1712
|
-
return new ExtendsOp(line, column, start, end, raw, mapAny(context, node.child), mapAny(context, node.parent));
|
1713
|
-
}
|
1714
|
-
|
1715
|
-
// src/mappers/mapFor.ts
|
1716
|
-
function mapFor(context, node) {
|
1717
|
-
const { line, column, start, end, raw } = getLocation(context, node);
|
1718
|
-
const keyAssignee = node.index ? mapAny(context, node.index) : null;
|
1719
|
-
const valAssignee = node.name ? mapAny(context, node.name) : null;
|
1720
|
-
let body = mapPossiblyEmptyBlock(context, node.body);
|
1721
|
-
const target = mapAny(context, node.source);
|
1722
|
-
const filter = node.guard ? mapAny(context, node.guard) : null;
|
1723
|
-
if (body && body.start < target.start) {
|
1724
|
-
body = body.withInline(true);
|
1725
|
-
}
|
1726
|
-
if (node.object) {
|
1727
|
-
const isOwn = node.own;
|
1728
|
-
return new ForOf(line, column, start, end, raw, keyAssignee, valAssignee, target, filter, body, isOwn);
|
1729
|
-
} else {
|
1730
|
-
if (node.from) {
|
1731
|
-
if (keyAssignee) {
|
1732
|
-
throw new Error("Unexpected key assignee in for...from.");
|
1733
|
-
}
|
1734
|
-
return new ForFrom(line, column, start, end, raw, valAssignee, target, filter, body);
|
1735
|
-
} else {
|
1736
|
-
const step = node.step ? mapAny(context, node.step) : null;
|
1737
|
-
return new ForIn(line, column, start, end, raw, keyAssignee, valAssignee, target, filter, body, step);
|
1738
|
-
}
|
1739
|
-
}
|
1740
|
-
}
|
1741
|
-
|
1742
|
-
// src/mappers/mapIf.ts
|
1743
|
-
import { SourceType as SourceType6 } from "coffee-lex";
|
1744
|
-
function mapIf(context, node) {
|
1745
|
-
const { line, column, start, end, raw } = getLocation(context, node);
|
1746
|
-
const condition = mapAny(context, node.condition);
|
1747
|
-
let consequent = mapPossiblyEmptyBlock(context, node.body);
|
1748
|
-
const alternate = mapPossiblyEmptyBlock(context, node.elseBody);
|
1749
|
-
let isUnless = false;
|
1750
|
-
let left = null;
|
1751
|
-
let right = null;
|
1752
|
-
if (consequent && consequent.start < condition.start) {
|
1753
|
-
consequent = consequent.withInline(true);
|
1754
|
-
left = context.sourceTokens.indexOfTokenEndingAtSourceIndex(consequent.end);
|
1755
|
-
right = context.sourceTokens.indexOfTokenStartingAtSourceIndex(condition.start);
|
1756
|
-
} else {
|
1757
|
-
left = context.sourceTokens.indexOfTokenStartingAtSourceIndex(start);
|
1758
|
-
right = context.sourceTokens.indexOfTokenStartingAtSourceIndex(condition.start);
|
1759
|
-
}
|
1760
|
-
if (left && right) {
|
1761
|
-
isUnless = context.sourceTokens.indexOfTokenMatchingPredicate((token) => token.type === SourceType6.IF && context.source.slice(token.start, token.end) === "unless", left, right) !== null;
|
1762
|
-
}
|
1763
|
-
return new Conditional(line, column, start, end, raw, condition, consequent, alternate, isUnless);
|
1764
|
-
}
|
1765
|
-
|
1766
|
-
// src/mappers/mapIn.ts
|
1767
|
-
import { SourceType as SourceType7 } from "coffee-lex";
|
1768
|
-
function mapIn(context, node) {
|
1769
|
-
const { line, column, start, end, raw } = getLocation(context, node);
|
1770
|
-
const left = mapAny(context, node.object);
|
1771
|
-
const right = mapAny(context, node.array);
|
1772
|
-
let isNot = false;
|
1773
|
-
const lastTokenIndexOfLeft = context.sourceTokens.indexOfTokenEndingAtSourceIndex(left.end);
|
1774
|
-
const firstTokenIndexOfRight = context.sourceTokens.indexOfTokenStartingAtSourceIndex(right.start);
|
1775
|
-
const relationTokenIndex = context.sourceTokens.indexOfTokenMatchingPredicate((token) => token.type === SourceType7.RELATION, lastTokenIndexOfLeft, firstTokenIndexOfRight);
|
1776
|
-
if (relationTokenIndex) {
|
1777
|
-
const relationToken = context.sourceTokens.tokenAtIndex(relationTokenIndex);
|
1778
|
-
if (relationToken) {
|
1779
|
-
isNot = context.source.slice(relationToken.start, relationToken.end) !== "in";
|
1780
|
-
return new InOp(line, column, start, end, raw, left, right, isNot);
|
1781
|
-
}
|
1782
|
-
}
|
1783
|
-
throw new Error(`unable to find RELATION token between operands`);
|
1784
|
-
}
|
1785
|
-
|
1786
|
-
// src/mappers/mapLiteral.ts
|
1787
|
-
import {
|
1788
|
-
BooleanLiteral,
|
1789
|
-
IdentifierLiteral as IdentifierLiteral2,
|
1790
|
-
NullLiteral,
|
1791
|
-
NumberLiteral,
|
1792
|
-
PassthroughLiteral as PassthroughLiteral2,
|
1793
|
-
PropertyName,
|
1794
|
-
RegexLiteral,
|
1795
|
-
StatementLiteral,
|
1796
|
-
StringLiteral as StringLiteral2,
|
1797
|
-
ThisLiteral,
|
1798
|
-
UndefinedLiteral
|
1799
|
-
} from "decaffeinate-coffeescript2/lib/coffeescript/nodes.js";
|
1800
|
-
|
1801
|
-
// src/util/makeString.ts
|
1802
|
-
function makeString(context, node) {
|
1803
|
-
const { quasis, unmappedExpressions, start, end } = getTemplateLiteralComponents(context, node);
|
1804
|
-
const startLoc = context.linesAndColumns.locationForIndex(start);
|
1805
|
-
if (!startLoc) {
|
1806
|
-
throw new Error(`Expected to find a location for index ${start}.`);
|
1807
|
-
}
|
1808
|
-
const raw = context.source.slice(start, end);
|
1809
|
-
return new String(startLoc.line + 1, startLoc.column + 1, start, end, raw, quasis, unmappedExpressions.map((expr) => expr ? mapAny(context, expr) : null));
|
1810
|
-
}
|
1811
|
-
|
1812
|
-
// src/util/parseNumber.ts
|
1813
|
-
import { parse as parse2 } from "@codemod/parser";
|
1814
|
-
function parseNumber(string) {
|
1815
|
-
const expressionStatement = parse2(`(${string})`).program.body[0];
|
1816
|
-
const literal = expressionStatement.expression;
|
1817
|
-
return literal.value;
|
1818
|
-
}
|
1819
|
-
|
1820
|
-
// src/util/parseRegExp.ts
|
1821
|
-
import { parse as parse3 } from "@codemod/parser";
|
1822
|
-
function parseRegExp(string) {
|
1823
|
-
const expressionStatement = parse3(`(${string})`).program.body[0];
|
1824
|
-
const literal = expressionStatement.expression;
|
1825
|
-
return literal;
|
1826
|
-
}
|
1827
|
-
|
1828
|
-
// src/mappers/mapLiteral.ts
|
1829
|
-
var HEREGEX_PATTERN = /^\/\/\/((?:.|\s)*)\/\/\/([gimuy]*)$/;
|
1830
|
-
function mapLiteral(context, node) {
|
1831
|
-
const { line, column, start, end, raw } = getLocation(context, node);
|
1832
|
-
if (node instanceof ThisLiteral) {
|
1833
|
-
return new This(line, column, start, end, raw);
|
1834
|
-
} else if (node instanceof NullLiteral) {
|
1835
|
-
return new Null(line, column, start, end, raw);
|
1836
|
-
} else if (node instanceof UndefinedLiteral) {
|
1837
|
-
return new Undefined(line, column, start, end, raw);
|
1838
|
-
} else if (node instanceof BooleanLiteral) {
|
1839
|
-
return new Bool(line, column, start, end, raw, JSON.parse(node.value));
|
1840
|
-
} else if (node instanceof IdentifierLiteral2 || node instanceof PropertyName) {
|
1841
|
-
const value = node.value.valueOf();
|
1842
|
-
return new Identifier(line, column, start, end, raw, value);
|
1843
|
-
} else if (node instanceof PassthroughLiteral2) {
|
1844
|
-
return new JavaScript(line, column, start, end, raw, node.value);
|
1845
|
-
} else if (node instanceof NumberLiteral) {
|
1846
|
-
if (raw.includes(".")) {
|
1847
|
-
return new Float(line, column, start, end, raw, parseNumber(node.value));
|
1848
|
-
} else {
|
1849
|
-
return new Int(line, column, start, end, raw, parseNumber(node.value));
|
1850
|
-
}
|
1851
|
-
} else if (node instanceof RegexLiteral) {
|
1852
|
-
const heregexMatch = raw.match(HEREGEX_PATTERN);
|
1853
|
-
if (heregexMatch) {
|
1854
|
-
const flags = heregexMatch[2];
|
1855
|
-
return makeHeregex(context, node, flags);
|
1856
|
-
} else {
|
1857
|
-
const regExp = parseRegExp(node.value);
|
1858
|
-
return new Regex(line, column, start, end, raw, regExp.pattern, RegexFlags.parse(regExp.flags || ""));
|
1859
|
-
}
|
1860
|
-
} else if (node instanceof StringLiteral2) {
|
1861
|
-
return makeString(context, node);
|
1862
|
-
} else if (node instanceof StatementLiteral) {
|
1863
|
-
if (node.value === "break") {
|
1864
|
-
return new Break(line, column, start, end, raw);
|
1865
|
-
} else if (node.value === "continue") {
|
1866
|
-
return new Continue(line, column, start, end, raw);
|
1867
|
-
} else if (node.value === "debugger") {
|
1868
|
-
return new Debugger(line, column, start, end, raw);
|
1869
|
-
}
|
1870
|
-
}
|
1871
|
-
throw new Error(`Unexpected literal: ${JSON.stringify(node)}`);
|
1872
|
-
}
|
1873
|
-
|
1874
|
-
// src/mappers/mapModuleDeclaration.ts
|
1875
|
-
import {
|
1876
|
-
ExportAllDeclaration as CoffeeExportAllDeclaration,
|
1877
|
-
ExportDefaultDeclaration as CoffeeExportDefaultDeclaration,
|
1878
|
-
ExportNamedDeclaration as CoffeeExportNamedDeclaration,
|
1879
|
-
ExportSpecifierList,
|
1880
|
-
IdentifierLiteral as IdentifierLiteral3,
|
1881
|
-
ImportDeclaration as CoffeeImportDeclaration,
|
1882
|
-
ImportNamespaceSpecifier,
|
1883
|
-
ImportSpecifierList,
|
1884
|
-
Literal as Literal5
|
1885
|
-
} from "decaffeinate-coffeescript2/lib/coffeescript/nodes.js";
|
1886
|
-
|
1887
|
-
// src/util/notNull.ts
|
1888
|
-
function notNull(value) {
|
1889
|
-
if (typeof value === "undefined" || value === null) {
|
1890
|
-
throw new Error(`expected value not to be null/undefined: ${value}`);
|
1891
|
-
}
|
1892
|
-
return value;
|
1893
|
-
}
|
1894
|
-
|
1895
|
-
// src/mappers/mapModuleDeclaration.ts
|
1896
|
-
function mapModuleDeclaration(context, node) {
|
1897
|
-
const { line, column, start, end, raw } = getLocation(context, node);
|
1898
|
-
if (node instanceof CoffeeImportDeclaration) {
|
1899
|
-
const clause = node.clause;
|
1900
|
-
let defaultBinding = null;
|
1901
|
-
let namespaceImport = null;
|
1902
|
-
let namedImports = null;
|
1903
|
-
if (clause) {
|
1904
|
-
defaultBinding = clause.defaultBinding && mapIdentifierSpecifier(context, clause.defaultBinding);
|
1905
|
-
if (clause.namedImports instanceof ImportNamespaceSpecifier) {
|
1906
|
-
namespaceImport = mapStarSpecifier(context, clause.namedImports);
|
1907
|
-
} else if (clause.namedImports instanceof ImportSpecifierList) {
|
1908
|
-
namedImports = clause.namedImports.specifiers.map((specifier) => mapSpecifier(context, specifier));
|
1909
|
-
}
|
1910
|
-
}
|
1911
|
-
if (!node.source) {
|
1912
|
-
throw new Error("Expected non-null source for import.");
|
1913
|
-
}
|
1914
|
-
const source = mapSource(context, node.source);
|
1915
|
-
return new ImportDeclaration(line, column, start, end, raw, defaultBinding, namespaceImport, namedImports, source);
|
1916
|
-
} else if (node instanceof CoffeeExportNamedDeclaration) {
|
1917
|
-
if (node.clause instanceof ExportSpecifierList) {
|
1918
|
-
const namedExports = node.clause.specifiers.map((specifier) => mapSpecifier(context, specifier));
|
1919
|
-
const source = node.source ? mapSource(context, node.source) : null;
|
1920
|
-
return new ExportBindingsDeclaration(line, column, start, end, raw, namedExports, source);
|
1921
|
-
} else {
|
1922
|
-
const expression = mapAny(context, notNull(node.clause));
|
1923
|
-
return new ExportNamedDeclaration(line, column, start, end, raw, expression);
|
1924
|
-
}
|
1925
|
-
} else if (node instanceof CoffeeExportDefaultDeclaration) {
|
1926
|
-
const expression = mapAny(context, notNull(node.clause));
|
1927
|
-
return new ExportDefaultDeclaration(line, column, start, end, raw, expression);
|
1928
|
-
} else if (node instanceof CoffeeExportAllDeclaration) {
|
1929
|
-
if (!node.source) {
|
1930
|
-
throw new Error("Expected non-null source for star export.");
|
1931
|
-
}
|
1932
|
-
const source = mapSource(context, node.source);
|
1933
|
-
return new ExportAllDeclaration(line, column, start, end, raw, source);
|
1934
|
-
} else {
|
1935
|
-
throw new UnsupportedNodeError(node);
|
1936
|
-
}
|
1937
|
-
}
|
1938
|
-
function mapSource(context, coffeeSource) {
|
1939
|
-
const source = mapLiteral(context, coffeeSource);
|
1940
|
-
if (!(source instanceof String)) {
|
1941
|
-
throw new Error("Expected string literal as import source.");
|
1942
|
-
}
|
1943
|
-
return source;
|
1944
|
-
}
|
1945
|
-
function mapIdentifierSpecifier(context, specifier) {
|
1946
|
-
if (specifier.alias) {
|
1947
|
-
throw new Error("Expected no alias for identifier specifier.");
|
1948
|
-
}
|
1949
|
-
return mapLiteralToIdentifier(context, specifier.original);
|
1950
|
-
}
|
1951
|
-
function mapStarSpecifier(context, specifier) {
|
1952
|
-
if (specifier.original.value !== "*") {
|
1953
|
-
throw new Error("Expected a star on the LHS of a star specifier.");
|
1954
|
-
}
|
1955
|
-
if (!specifier.alias) {
|
1956
|
-
throw new Error("Expected node on the RHS of star specifier.");
|
1957
|
-
}
|
1958
|
-
return mapLiteralToIdentifier(context, specifier.alias);
|
1959
|
-
}
|
1960
|
-
function mapSpecifier(context, specifier) {
|
1961
|
-
const { line, column, start, end, raw } = getLocation(context, specifier);
|
1962
|
-
const original = mapLiteralToIdentifier(context, specifier.original);
|
1963
|
-
const alias = specifier.alias ? mapLiteralToIdentifier(context, specifier.alias) : null;
|
1964
|
-
return new ModuleSpecifier(line, column, start, end, raw, original, alias);
|
1965
|
-
}
|
1966
|
-
function mapLiteralToIdentifier(context, literal) {
|
1967
|
-
if (literal instanceof IdentifierLiteral3) {
|
1968
|
-
return mapLiteral(context, literal);
|
1969
|
-
} else if (literal.constructor === Literal5) {
|
1970
|
-
const { line, column, start, end, raw } = getLocation(context, literal);
|
1971
|
-
return new Identifier(line, column, start, end, raw, literal.value);
|
1972
|
-
} else {
|
1973
|
-
throw new Error("Expected identifier in module declaration.");
|
1974
|
-
}
|
1975
|
-
}
|
1976
|
-
|
1977
|
-
// src/mappers/mapObj.ts
|
1978
|
-
import {
|
1979
|
-
Assign as Assign2,
|
1980
|
-
ComputedPropertyName,
|
1981
|
-
Splat as Splat3,
|
1982
|
-
Value as Value7
|
1983
|
-
} from "decaffeinate-coffeescript2/lib/coffeescript/nodes.js";
|
1984
|
-
|
1985
|
-
// src/mappers/mapValue.ts
|
1986
|
-
import { SourceType as SourceType8 } from "coffee-lex";
|
1987
|
-
import {
|
1988
|
-
Access,
|
1989
|
-
Index,
|
1990
|
-
Literal as Literal6,
|
1991
|
-
Slice as CoffeeSlice
|
1992
|
-
} from "decaffeinate-coffeescript2/lib/coffeescript/nodes.js";
|
1993
|
-
import { inspect as inspect4 } from "util";
|
1994
|
-
function mapValue(context, node) {
|
1995
|
-
const location = getLocation(context, node);
|
1996
|
-
return node.properties.reduce((reduced, property) => reduceProperty(context, location, reduced, property), mapAny(context, node.base));
|
1997
|
-
}
|
1998
|
-
function reduceProperty(context, location, reduced, property) {
|
1999
|
-
if (property instanceof Access) {
|
2000
|
-
const name = property.name;
|
2001
|
-
if (!(name instanceof Literal6)) {
|
2002
|
-
throw new Error(`unexpected non-Literal property access name: ${inspect4(name)}`);
|
2003
|
-
}
|
2004
|
-
let startTokenIndex = tokenIndexAtLocation(context, property.locationData);
|
2005
|
-
let startToken = startTokenIndex && context.sourceTokens.tokenAtIndex(startTokenIndex);
|
2006
|
-
if (startToken && property.soak) {
|
2007
|
-
if (startToken.type !== SourceType8.EXISTENCE) {
|
2008
|
-
throw new Error(`expected EXISTENCE token ('?') but got ${SourceType8[startToken.type]}: ${inspect4(startToken)}`);
|
2009
|
-
}
|
2010
|
-
startTokenIndex = startTokenIndex && startTokenIndex.next();
|
2011
|
-
startToken = startTokenIndex && context.sourceTokens.tokenAtIndex(startTokenIndex);
|
2012
|
-
}
|
2013
|
-
if (!startToken) {
|
2014
|
-
throw new Error(`cannot find token at start of property: ${inspect4(property)}`);
|
2015
|
-
}
|
2016
|
-
const last = context.linesAndColumns.indexForLocation({
|
2017
|
-
line: property.locationData.last_line,
|
2018
|
-
column: property.locationData.last_column
|
2019
|
-
});
|
2020
|
-
if (last === null) {
|
2021
|
-
throw new Error(`cannot find offset of last character of property: ${inspect4(property)}`);
|
2022
|
-
}
|
2023
|
-
const isPrototypeAccess = startToken.type === SourceType8.PROTO;
|
2024
|
-
if (isPrototypeAccess) {
|
2025
|
-
const AccessOp2 = property.soak ? SoakedProtoMemberAccessOp : ProtoMemberAccessOp;
|
2026
|
-
return new AccessOp2(location.line, location.column, location.start, last + 1, context.source.slice(location.start, last + 1), reduced);
|
2027
|
-
} else {
|
2028
|
-
const member = mapAny(context, name);
|
2029
|
-
if (!(member instanceof Identifier)) {
|
2030
|
-
throw new Error(`unexpected non-Identifier access member: ${inspect4(member)}`);
|
2031
|
-
}
|
2032
|
-
const AccessOp2 = property.soak ? SoakedMemberAccessOp : MemberAccessOp;
|
2033
|
-
return new AccessOp2(location.line, location.column, location.start, last + 1, context.source.slice(location.start, last + 1), reduced, member);
|
2034
|
-
}
|
2035
|
-
} else if (property instanceof Index) {
|
2036
|
-
const NodeClass = property.soak ? SoakedDynamicMemberAccessOp : DynamicMemberAccessOp;
|
2037
|
-
const last = context.linesAndColumns.indexForLocation({
|
2038
|
-
line: property.locationData.last_line,
|
2039
|
-
column: property.locationData.last_column
|
2040
|
-
});
|
2041
|
-
if (last === null) {
|
2042
|
-
throw new Error(`cannot find offset of last character of index: ${inspect4(property)}`);
|
2043
|
-
}
|
2044
|
-
return new NodeClass(location.line, location.column, location.start, last + 1, context.source.slice(location.start, last + 1), reduced, mapAny(context, property.index));
|
2045
|
-
} else if (property instanceof CoffeeSlice) {
|
2046
|
-
const last = context.linesAndColumns.indexForLocation({
|
2047
|
-
line: property.locationData.last_line,
|
2048
|
-
column: property.locationData.last_column
|
2049
|
-
});
|
2050
|
-
if (last === null) {
|
2051
|
-
throw new Error(`cannot find offset of last character of slice: ${inspect4(property)}`);
|
2052
|
-
}
|
2053
|
-
const SliceClass = property.soak ? SoakedSlice : Slice;
|
2054
|
-
return new SliceClass(location.line, location.column, location.start, last + 1, context.source.slice(location.start, last + 1), reduced, property.range.from ? mapAny(context, property.range.from) : null, property.range.to ? mapAny(context, property.range.to) : null, !property.range.exclusive);
|
2055
|
-
} else {
|
2056
|
-
throw new UnsupportedNodeError(property, "Unexpected property access.");
|
2057
|
-
}
|
2058
|
-
}
|
2059
|
-
function tokenIndexAtLocation(context, location) {
|
2060
|
-
const start = context.linesAndColumns.indexForLocation({
|
2061
|
-
line: location.first_line,
|
2062
|
-
column: location.first_column
|
2063
|
-
});
|
2064
|
-
if (start === null) {
|
2065
|
-
return null;
|
2066
|
-
}
|
2067
|
-
return context.sourceTokens.indexOfTokenContainingSourceIndex(start);
|
2068
|
-
}
|
2069
|
-
|
2070
|
-
// src/mappers/mapObj.ts
|
2071
|
-
function mapObj(context, node) {
|
2072
|
-
const { line, column, start, end, raw } = getLocation(context, node);
|
2073
|
-
const members = [];
|
2074
|
-
for (const property of node.properties) {
|
2075
|
-
if (isCommentOnlyNode(property)) {
|
2076
|
-
continue;
|
2077
|
-
}
|
2078
|
-
const { line: line2, column: column2, start: start2, end: end2, raw: raw2 } = getLocation(context, property);
|
2079
|
-
if (property instanceof Value7) {
|
2080
|
-
const value = mapValue(context, property);
|
2081
|
-
const isComputed = property.base instanceof ComputedPropertyName;
|
2082
|
-
members.push(new ObjectInitialiserMember(line2, column2, start2, end2, raw2, value, null, isComputed));
|
2083
|
-
} else if (property instanceof Assign2 && property.context === "object") {
|
2084
|
-
const key = mapAny(context, property.variable);
|
2085
|
-
const expression = mapAny(context, property.value);
|
2086
|
-
const isComputed = property.variable instanceof Value7 && property.variable.base instanceof ComputedPropertyName;
|
2087
|
-
members.push(new ObjectInitialiserMember(line2, column2, start2, end2, raw2, key, expression, isComputed));
|
2088
|
-
} else if (property instanceof Assign2) {
|
2089
|
-
const assignee = mapAny(context, property.variable);
|
2090
|
-
const expression = mapAny(context, property.value);
|
2091
|
-
members.push(new AssignOp(line2, column2, start2, end2, raw2, assignee, expression));
|
2092
|
-
} else if (property instanceof Splat3) {
|
2093
|
-
members.push(new Spread(line2, column2, start2, end2, raw2, mapAny(context, property.name)));
|
2094
|
-
} else {
|
2095
|
-
throw new UnsupportedNodeError(property, "Unexpected object member.");
|
2096
|
-
}
|
2097
|
-
}
|
2098
|
-
return new ObjectInitialiser(line, column, start, end, raw, members);
|
2099
|
-
}
|
2100
|
-
|
2101
|
-
// src/mappers/mapOp.ts
|
2102
|
-
import { SourceType as SourceType10 } from "coffee-lex";
|
2103
|
-
import {
|
2104
|
-
Literal as Literal7,
|
2105
|
-
Value as Value8
|
2106
|
-
} from "decaffeinate-coffeescript2/lib/coffeescript/nodes.js";
|
2107
|
-
import { inspect as inspect6 } from "util";
|
2108
|
-
|
2109
|
-
// src/util/getOperatorInfoInRange.ts
|
2110
|
-
import { SourceType as SourceType9 } from "coffee-lex";
|
2111
|
-
function getOperatorInfoInRange(context, start, end) {
|
2112
|
-
const startIndex = context.sourceTokens.indexOfTokenNearSourceIndex(start);
|
2113
|
-
const endIndex = context.sourceTokens.indexOfTokenNearSourceIndex(end);
|
2114
|
-
if (!startIndex || !endIndex) {
|
2115
|
-
throw new Error(`cannot find token indexes of range bounds: [${start}, ${end}]`);
|
2116
|
-
}
|
2117
|
-
const operatorIndex = context.sourceTokens.indexOfTokenMatchingPredicate((token) => token.type !== SourceType9.LPAREN && token.type !== SourceType9.RPAREN, startIndex.next(), endIndex);
|
2118
|
-
const operatorToken = operatorIndex && context.sourceTokens.tokenAtIndex(operatorIndex);
|
2119
|
-
if (!operatorToken) {
|
2120
|
-
throw new Error(`cannot find operator token in range: [${start}, ${end}]`);
|
2121
|
-
}
|
2122
|
-
return new OperatorInfo(context.source.slice(operatorToken.start, operatorToken.end), operatorToken);
|
2123
|
-
}
|
2124
|
-
|
2125
|
-
// src/util/isChainedComparison.ts
|
2126
|
-
import { Op as Op4 } from "decaffeinate-coffeescript2/lib/coffeescript/nodes.js";
|
2127
|
-
|
2128
|
-
// src/util/isComparisonOperator.ts
|
2129
|
-
import { Op as Op3 } from "decaffeinate-coffeescript2/lib/coffeescript/nodes.js";
|
2130
|
-
function isComparisonOperator(node) {
|
2131
|
-
if (!(node instanceof Op3)) {
|
2132
|
-
return false;
|
2133
|
-
}
|
2134
|
-
switch (node.operator) {
|
2135
|
-
case "<":
|
2136
|
-
case ">":
|
2137
|
-
case "<=":
|
2138
|
-
case ">=":
|
2139
|
-
case "===":
|
2140
|
-
case "!==":
|
2141
|
-
return true;
|
2142
|
-
default:
|
2143
|
-
return false;
|
2144
|
-
}
|
2145
|
-
}
|
2146
|
-
|
2147
|
-
// src/util/isChainedComparison.ts
|
2148
|
-
function isChainedComparison(node) {
|
2149
|
-
if (node instanceof Op4 && isComparisonOperator(node)) {
|
2150
|
-
return isComparisonOperator(node.first) || (node.second ? isComparisonOperator(node.second) : false);
|
2151
|
-
} else {
|
2152
|
-
return false;
|
2153
|
-
}
|
2154
|
-
}
|
2155
|
-
|
2156
|
-
// src/util/unwindChainedComparison.ts
|
2157
|
-
import { Op as Op5 } from "decaffeinate-coffeescript2/lib/coffeescript/nodes.js";
|
2158
|
-
import { inspect as inspect5 } from "util";
|
2159
|
-
function unwindChainedComparison(node) {
|
2160
|
-
let operands = [];
|
2161
|
-
for (let link = node; ; ) {
|
2162
|
-
if (link instanceof Op5 && isComparisonOperator(link)) {
|
2163
|
-
const { first, second } = link;
|
2164
|
-
if (!second) {
|
2165
|
-
throw new Error(`unexpected unary operator inside chained comparison: ${inspect5(node)}`);
|
2166
|
-
}
|
2167
|
-
operands = [second, ...operands];
|
2168
|
-
link = first;
|
2169
|
-
} else {
|
2170
|
-
operands = [link, ...operands];
|
2171
|
-
break;
|
2172
|
-
}
|
2173
|
-
}
|
2174
|
-
return operands;
|
2175
|
-
}
|
2176
|
-
|
2177
|
-
// src/mappers/mapOp.ts
|
2178
|
-
function mapOp(context, node) {
|
2179
|
-
if (isChainedComparison(node)) {
|
2180
|
-
return mapChainedComparisonOp(context, node);
|
2181
|
-
} else {
|
2182
|
-
return mapOpWithoutChainedComparison(context, node);
|
2183
|
-
}
|
2184
|
-
}
|
2185
|
-
function mapChainedComparisonOp(context, node) {
|
2186
|
-
const { line, column, start, end, raw } = getLocation(context, node);
|
2187
|
-
const coffeeOperands = unwindChainedComparison(node);
|
2188
|
-
const operands = coffeeOperands.map((operand) => mapAny(context, operand));
|
2189
|
-
const operators = [];
|
2190
|
-
for (let i = 0; i < operands.length - 1; i++) {
|
2191
|
-
const left = operands[i];
|
2192
|
-
const right = operands[i + 1];
|
2193
|
-
operators.push(getOperatorInfoInRange(context, left.end - 1, right.start));
|
2194
|
-
}
|
2195
|
-
return new ChainedComparisonOp(line, column, start, end, raw, operands, operators);
|
2196
|
-
}
|
2197
|
-
function mapOpWithoutChainedComparison(context, node) {
|
2198
|
-
switch (node.operator) {
|
2199
|
-
case "===":
|
2200
|
-
return mapBinaryOp(context, node, EQOp);
|
2201
|
-
case "!==":
|
2202
|
-
return mapBinaryOp(context, node, NEQOp);
|
2203
|
-
case "!":
|
2204
|
-
return mapUnaryOp(context, node, LogicalNotOp);
|
2205
|
-
case "+":
|
2206
|
-
return mapPlusOp(context, node);
|
2207
|
-
case "-":
|
2208
|
-
return mapBinaryOrUnaryOp(context, node, SubtractOp, UnaryNegateOp);
|
2209
|
-
case "&&":
|
2210
|
-
return mapBinaryOp(context, node, LogicalAndOp);
|
2211
|
-
case "||":
|
2212
|
-
return mapBinaryOp(context, node, LogicalOrOp);
|
2213
|
-
case "*":
|
2214
|
-
return mapBinaryOp(context, node, MultiplyOp);
|
2215
|
-
case "/":
|
2216
|
-
return mapBinaryOp(context, node, DivideOp);
|
2217
|
-
case "//":
|
2218
|
-
return mapBinaryOp(context, node, FloorDivideOp);
|
2219
|
-
case "?":
|
2220
|
-
return mapBinaryOp(context, node, ExistsOp);
|
2221
|
-
case "<":
|
2222
|
-
return mapBinaryOp(context, node, LTOp);
|
2223
|
-
case "<=":
|
2224
|
-
return mapBinaryOp(context, node, LTEOp);
|
2225
|
-
case ">":
|
2226
|
-
return mapBinaryOp(context, node, GTOp);
|
2227
|
-
case ">=":
|
2228
|
-
return mapBinaryOp(context, node, GTEOp);
|
2229
|
-
case "++":
|
2230
|
-
return mapUnaryOp(context, node, node.flip ? PostIncrementOp : PreIncrementOp);
|
2231
|
-
case "--":
|
2232
|
-
return mapUnaryOp(context, node, node.flip ? PostDecrementOp : PreDecrementOp);
|
2233
|
-
case "typeof":
|
2234
|
-
return mapUnaryOp(context, node, TypeofOp);
|
2235
|
-
case "instanceof":
|
2236
|
-
return mapNegateableBinaryOp(context, node, InstanceofOp);
|
2237
|
-
case "delete":
|
2238
|
-
return mapUnaryOp(context, node, DeleteOp);
|
2239
|
-
case "in":
|
2240
|
-
return mapNegateableBinaryOp(context, node, OfOp);
|
2241
|
-
case "new":
|
2242
|
-
return mapNewOp2(context, node);
|
2243
|
-
case "**":
|
2244
|
-
return mapBinaryOp(context, node, ExpOp);
|
2245
|
-
case "%":
|
2246
|
-
return mapBinaryOp(context, node, RemOp);
|
2247
|
-
case "%%":
|
2248
|
-
return mapBinaryOp(context, node, ModuloOp);
|
2249
|
-
case "&":
|
2250
|
-
return mapBinaryOp(context, node, BitAndOp);
|
2251
|
-
case "|":
|
2252
|
-
return mapBinaryOp(context, node, BitOrOp);
|
2253
|
-
case "^":
|
2254
|
-
return mapBinaryOp(context, node, BitXorOp);
|
2255
|
-
case "<<":
|
2256
|
-
return mapBinaryOp(context, node, LeftShiftOp);
|
2257
|
-
case ">>":
|
2258
|
-
return mapBinaryOp(context, node, SignedRightShiftOp);
|
2259
|
-
case ">>>":
|
2260
|
-
return mapBinaryOp(context, node, UnsignedRightShiftOp);
|
2261
|
-
case "~":
|
2262
|
-
return mapUnaryOp(context, node, BitNotOp);
|
2263
|
-
case "yield":
|
2264
|
-
return mapYieldOp(context, node);
|
2265
|
-
case "yield*":
|
2266
|
-
return mapUnaryOp(context, node, YieldFrom);
|
2267
|
-
case "await":
|
2268
|
-
return mapUnaryOp(context, node, Await);
|
2269
|
-
}
|
2270
|
-
throw new UnsupportedNodeError(node);
|
2271
|
-
}
|
2272
|
-
function mapPlusOp(context, node) {
|
2273
|
-
if (node.second) {
|
2274
|
-
if (isImplicitPlusOp(node, context)) {
|
2275
|
-
return makeString(context, node);
|
2276
|
-
} else {
|
2277
|
-
return mapBinaryOp(context, node, PlusOp);
|
2278
|
-
}
|
2279
|
-
}
|
2280
|
-
return mapUnaryOp(context, node, UnaryPlusOp);
|
2281
|
-
}
|
2282
|
-
function mapNewOp2(context, node) {
|
2283
|
-
if (node.second) {
|
2284
|
-
throw new Error(`unexpected 'new' operator with multiple operands: ${inspect6(node)}`);
|
2285
|
-
}
|
2286
|
-
const { line, column, start, end, raw } = getLocation(context, node);
|
2287
|
-
return new NewOp(line, column, start, end, raw, mapAny(context, node.first), []);
|
2288
|
-
}
|
2289
|
-
function mapYieldOp(context, node) {
|
2290
|
-
const { line, column, start, end, raw } = getLocation(context, node);
|
2291
|
-
if (isBareYield(node)) {
|
2292
|
-
return new Yield(line, column, start, end, raw, null);
|
2293
|
-
} else {
|
2294
|
-
return new Yield(line, column, start, end, raw, mapAny(context, node.first));
|
2295
|
-
}
|
2296
|
-
}
|
2297
|
-
function isBareYield(node) {
|
2298
|
-
return node.first instanceof Value8 && node.first.base instanceof Literal7 && node.first.base.value === "";
|
2299
|
-
}
|
2300
|
-
function mapBinaryOp(context, node, Op10) {
|
2301
|
-
const { line, column, start, end, raw } = getLocation(context, node);
|
2302
|
-
if (!node.second) {
|
2303
|
-
throw new Error(`unexpected '${node.operator}' operator with only one operand: ${inspect6(node)}`);
|
2304
|
-
}
|
2305
|
-
return new Op10(line, column, start, end, raw, mapAny(context, node.first), mapAny(context, node.second));
|
2306
|
-
}
|
2307
|
-
function mapUnaryOp(context, node, Op10) {
|
2308
|
-
const { line, column, start, end, raw } = getLocation(context, node);
|
2309
|
-
if (node.second) {
|
2310
|
-
throw new Error(`unexpected '${node.operator}' operator with two operands: ${inspect6(node)}`);
|
2311
|
-
}
|
2312
|
-
return new Op10(line, column, start, end, raw, mapAny(context, node.first));
|
2313
|
-
}
|
2314
|
-
function mapBinaryOrUnaryOp(context, node, BinaryOp2, UnaryOp3) {
|
2315
|
-
if (node.second) {
|
2316
|
-
return mapBinaryOp(context, node, BinaryOp2);
|
2317
|
-
} else {
|
2318
|
-
return mapUnaryOp(context, node, UnaryOp3);
|
2319
|
-
}
|
2320
|
-
}
|
2321
|
-
var TemporaryBinaryOp = class extends BinaryOp {
|
2322
|
-
constructor(line, column, start, end, raw, left, right) {
|
2323
|
-
super("TEMPORARY", line, column, start, end, raw, left, right);
|
2324
|
-
}
|
2325
|
-
};
|
2326
|
-
function tokenStartsWith(prefix, context, token) {
|
2327
|
-
return context.source.slice(token.start, token.start + prefix.length) === prefix;
|
2328
|
-
}
|
2329
|
-
function mapNegateableBinaryOp(context, node, Op10) {
|
2330
|
-
const { line, column, start, end, raw, left, right } = mapBinaryOp(context, node, TemporaryBinaryOp);
|
2331
|
-
const lastTokenIndexOfLeft = context.sourceTokens.indexOfTokenEndingAtSourceIndex(left.end);
|
2332
|
-
const firstTokenIndexOfRight = context.sourceTokens.indexOfTokenStartingAtSourceIndex(right.start);
|
2333
|
-
let isNot = false;
|
2334
|
-
if (lastTokenIndexOfLeft) {
|
2335
|
-
for (let i = lastTokenIndexOfLeft.next(); i && i !== firstTokenIndexOfRight; i = i.next()) {
|
2336
|
-
const token = context.sourceTokens.tokenAtIndex(i);
|
2337
|
-
if (token && (token.type === SourceType10.OPERATOR || token.type === SourceType10.RELATION)) {
|
2338
|
-
isNot = tokenStartsWith("not", context, token) || tokenStartsWith("!", context, token);
|
2339
|
-
break;
|
2340
|
-
}
|
2341
|
-
}
|
2342
|
-
}
|
2343
|
-
return new Op10(line, column, start, end, raw, left, right, isNot);
|
2344
|
-
}
|
2345
|
-
|
2346
|
-
// src/mappers/mapParam.ts
|
2347
|
-
function mapParam(context, node) {
|
2348
|
-
const { line, column, start, end, raw } = getLocation(context, node);
|
2349
|
-
const param = mapAny(context, node.name);
|
2350
|
-
if (node.value) {
|
2351
|
-
const value = mapAny(context, node.value);
|
2352
|
-
return new DefaultParam(line, column, start, end, raw, param, value);
|
2353
|
-
}
|
2354
|
-
if (node.splat) {
|
2355
|
-
return new Rest(line, column, start, end, raw, param);
|
2356
|
-
}
|
2357
|
-
return param;
|
2358
|
-
}
|
2359
|
-
|
2360
|
-
// src/mappers/mapParens.ts
|
2361
|
-
import {
|
2362
|
-
Block as Block2
|
2363
|
-
} from "decaffeinate-coffeescript2/lib/coffeescript/nodes.js";
|
2364
|
-
function mapParens(context, node) {
|
2365
|
-
if (!(node.body instanceof Block2)) {
|
2366
|
-
return mapAny(context, node.body);
|
2367
|
-
}
|
2368
|
-
let { expressions } = node.body;
|
2369
|
-
expressions = expressions.filter((expr) => !isCommentOnlyNode(expr));
|
2370
|
-
if (expressions.length === 1) {
|
2371
|
-
return mapAny(context, expressions[0]);
|
2372
|
-
}
|
2373
|
-
return expressions.map((expression) => mapAny(context, expression)).reduceRight((right, left) => new SeqOp(left.line, left.column, left.start, right.end, context.source.slice(left.start, right.end), left, right));
|
2374
|
-
}
|
2375
|
-
|
2376
|
-
// src/mappers/mapRange.ts
|
2377
|
-
import { inspect as inspect7 } from "util";
|
2378
|
-
function mapRange(context, node) {
|
2379
|
-
const { line, column, start, end, raw } = getLocation(context, node);
|
2380
|
-
if (!node.from || !node.to) {
|
2381
|
-
throw new Error(`'from' or 'to' unexpectedly missing: ${inspect7(node)}`);
|
2382
|
-
}
|
2383
|
-
return new Range(line, column, start, end, raw, mapAny(context, node.from), mapAny(context, node.to), !node.exclusive);
|
2384
|
-
}
|
2385
|
-
|
2386
|
-
// src/mappers/mapReturn.ts
|
2387
|
-
import {
|
2388
|
-
AwaitReturn as CoffeeAwaitReturn,
|
2389
|
-
YieldReturn as CoffeeYieldReturn
|
2390
|
-
} from "decaffeinate-coffeescript2/lib/coffeescript/nodes.js";
|
2391
|
-
function mapReturn(context, node) {
|
2392
|
-
const { line, column, start, end, raw } = getLocation(context, node);
|
2393
|
-
const argument = node.expression ? mapAny(context, node.expression) : null;
|
2394
|
-
if (node instanceof CoffeeYieldReturn) {
|
2395
|
-
return new YieldReturn(line, column, start, end, raw, argument);
|
2396
|
-
} else if (node instanceof CoffeeAwaitReturn) {
|
2397
|
-
return new AwaitReturn(line, column, start, end, raw, argument);
|
2398
|
-
} else {
|
2399
|
-
return new Return(line, column, start, end, raw, argument);
|
2400
|
-
}
|
2401
|
-
}
|
2402
|
-
|
2403
|
-
// src/mappers/mapSplat.ts
|
2404
|
-
function mapSplat(context, node) {
|
2405
|
-
const { line, column, start, end, raw } = getLocation(context, node);
|
2406
|
-
return new Spread(line, column, start, end, raw, mapAny(context, node.name));
|
2407
|
-
}
|
2408
|
-
|
2409
|
-
// src/mappers/mapSuper.ts
|
2410
|
-
import { SourceType as SourceType11 } from "coffee-lex";
|
2411
|
-
function mapSuper(context, node) {
|
2412
|
-
const location = getLocation(context, node);
|
2413
|
-
const { line, column, start } = location;
|
2414
|
-
const superTokenIndex = context.sourceTokens.indexOfTokenStartingAtSourceIndex(start);
|
2415
|
-
if (!superTokenIndex) {
|
2416
|
-
throw new Error("Expected token at the start of super node.");
|
2417
|
-
}
|
2418
|
-
const superToken = context.sourceTokens.tokenAtIndex(superTokenIndex);
|
2419
|
-
if (!superToken || superToken.type !== SourceType11.SUPER) {
|
2420
|
-
throw new Error("Expected super token at the start of super node.");
|
2421
|
-
}
|
2422
|
-
const superNode = new Super(line, column, start, superToken.end, context.source.slice(superToken.start, superToken.end));
|
2423
|
-
return reduceProperty(context, location, superNode, node.accessor);
|
2424
|
-
}
|
2425
|
-
|
2426
|
-
// src/mappers/mapSwitch.ts
|
2427
|
-
import { SourceType as SourceType12 } from "coffee-lex";
|
2428
|
-
function mapSwitch(context, node) {
|
2429
|
-
const { line, column, start, end, raw } = getLocation(context, node);
|
2430
|
-
const expression = node.subject ? mapAny(context, node.subject) : null;
|
2431
|
-
const cases = node.cases.map(([conditions, body]) => {
|
2432
|
-
if (!Array.isArray(conditions)) {
|
2433
|
-
conditions = [conditions];
|
2434
|
-
}
|
2435
|
-
const switchConditions = conditions.map((condition) => mapAny(context, condition));
|
2436
|
-
const consequent = mapPossiblyEmptyBlock(context, body);
|
2437
|
-
const whenToken = getWhenTokenBeforeOffset(context, switchConditions[0].start, start);
|
2438
|
-
const locationForIndex = context.linesAndColumns.locationForIndex(whenToken.start);
|
2439
|
-
if (!locationForIndex) {
|
2440
|
-
throw new Error(`cannot map WHEN token start to line/column: ${whenToken.start}`);
|
2441
|
-
}
|
2442
|
-
const { line: caseLine, column: caseColumn } = locationForIndex;
|
2443
|
-
const { end: end2 } = getLocation(context, body);
|
2444
|
-
return new SwitchCase(caseLine + 1, caseColumn + 1, whenToken.start, end2, context.source.slice(whenToken.start, end2), switchConditions, consequent);
|
2445
|
-
});
|
2446
|
-
return new Switch(line, column, start, end, raw, expression, cases, mapPossiblyEmptyBlock(context, node.otherwise));
|
2447
|
-
}
|
2448
|
-
function getWhenTokenBeforeOffset(context, offset, lowerBound) {
|
2449
|
-
const offsetTokenIndex = context.sourceTokens.indexOfTokenNearSourceIndex(offset);
|
2450
|
-
const lowerBoundTokenIndex = context.sourceTokens.indexOfTokenNearSourceIndex(lowerBound);
|
2451
|
-
const whenTokenIndex = context.sourceTokens.lastIndexOfTokenMatchingPredicate((token) => token.type === SourceType12.WHEN, offsetTokenIndex, lowerBoundTokenIndex);
|
2452
|
-
if (whenTokenIndex) {
|
2453
|
-
const whenToken = context.sourceTokens.tokenAtIndex(whenTokenIndex);
|
2454
|
-
if (whenToken) {
|
2455
|
-
return whenToken;
|
2456
|
-
}
|
2457
|
-
}
|
2458
|
-
throw new Error(`unable to find WHEN token before ${offset} (lower bound: ${lowerBound})`);
|
2459
|
-
}
|
2460
|
-
|
2461
|
-
// src/mappers/mapTaggedTemplateCall.ts
|
2462
|
-
function mapTaggedTemplateCall(context, node) {
|
2463
|
-
const { line, column, start, end, raw } = getLocation(context, node);
|
2464
|
-
if (!node.variable) {
|
2465
|
-
throw new Error("Expected tag in tagged template literal.");
|
2466
|
-
}
|
2467
|
-
const tag = mapAny(context, node.variable);
|
2468
|
-
if (node.args.length !== 1) {
|
2469
|
-
throw new Error("Expected tagged template literal call to have exactly one argument.");
|
2470
|
-
}
|
2471
|
-
const template = mapAny(context, node.args[0]);
|
2472
|
-
if (!(template instanceof String)) {
|
2473
|
-
throw new Error("Expected tagged template literal argument to be a string.");
|
2474
|
-
}
|
2475
|
-
return new TaggedTemplateLiteral(line, column, start, end, raw, tag, template);
|
2476
|
-
}
|
2477
|
-
|
2478
|
-
// src/mappers/mapThrow.ts
|
2479
|
-
function mapThrow(context, node) {
|
2480
|
-
const { line, column, start, end, raw } = getLocation(context, node);
|
2481
|
-
const expression = node.expression ? mapAny(context, node.expression) : null;
|
2482
|
-
return new Throw(line, column, start, end, raw, expression);
|
2483
|
-
}
|
2484
|
-
|
2485
|
-
// src/mappers/mapTry.ts
|
2486
|
-
function mapTry(context, node) {
|
2487
|
-
const { line, column, start, end, raw } = getLocation(context, node);
|
2488
|
-
return new Try(line, column, start, end, raw, mapPossiblyEmptyBlock(context, node.attempt), node.errorVariable ? mapAny(context, node.errorVariable) : null, mapPossiblyEmptyBlock(context, node.recovery), mapPossiblyEmptyBlock(context, node.ensure));
|
2489
|
-
}
|
2490
|
-
|
2491
|
-
// src/mappers/mapWhile.ts
|
2492
|
-
import { SourceType as SourceType13 } from "coffee-lex";
|
2493
|
-
function mapWhile(context, node) {
|
2494
|
-
const { line, column, start, end, raw } = getLocation(context, node);
|
2495
|
-
const startTokenIndex = context.sourceTokens.indexOfTokenStartingAtSourceIndex(start);
|
2496
|
-
const startToken = startTokenIndex && context.sourceTokens.tokenAtIndex(startTokenIndex);
|
2497
|
-
if (startToken && startToken.type === SourceType13.LOOP) {
|
2498
|
-
return new Loop(line, column, start, end, raw, mapPossiblyEmptyBlock(context, node.body));
|
2499
|
-
}
|
2500
|
-
const condition = mapAny(context, node.condition);
|
2501
|
-
const guard = node.guard ? mapAny(context, node.guard) : null;
|
2502
|
-
let body = mapPossiblyEmptyBlock(context, node.body);
|
2503
|
-
if (body instanceof Block && body.start < condition.start) {
|
2504
|
-
body = body.withInline(true);
|
2505
|
-
}
|
2506
|
-
return new While(line, column, start, end, raw, condition, guard, body, node.condition.inverted === true);
|
2507
|
-
}
|
2508
|
-
|
2509
|
-
// src/mappers/mapAny.ts
|
2510
|
-
function mapAny(context, node) {
|
2511
|
-
if (node instanceof Value9) {
|
2512
|
-
return mapValue(context, node);
|
2513
|
-
}
|
2514
|
-
if (node instanceof ComputedPropertyName2) {
|
2515
|
-
return mapComputedPropertyName(context, node);
|
2516
|
-
}
|
2517
|
-
if (node instanceof Literal8) {
|
2518
|
-
return mapLiteral(context, node);
|
2519
|
-
}
|
2520
|
-
if (node instanceof Op7) {
|
2521
|
-
return mapOp(context, node);
|
2522
|
-
}
|
2523
|
-
if (node instanceof TaggedTemplateCall) {
|
2524
|
-
return mapTaggedTemplateCall(context, node);
|
2525
|
-
}
|
2526
|
-
if (node instanceof Call4) {
|
2527
|
-
return mapCall(context, node);
|
2528
|
-
}
|
2529
|
-
if (node instanceof Super2) {
|
2530
|
-
return mapSuper(context, node);
|
2531
|
-
}
|
2532
|
-
if (node instanceof Arr2) {
|
2533
|
-
return mapArr(context, node);
|
2534
|
-
}
|
2535
|
-
if (node instanceof Assign3) {
|
2536
|
-
return mapAssign(context, node);
|
2537
|
-
}
|
2538
|
-
if (node instanceof Param) {
|
2539
|
-
return mapParam(context, node);
|
2540
|
-
}
|
2541
|
-
if (node instanceof Return2) {
|
2542
|
-
return mapReturn(context, node);
|
2543
|
-
}
|
2544
|
-
if (node instanceof If) {
|
2545
|
-
return mapIf(context, node);
|
2546
|
-
}
|
2547
|
-
if (node instanceof Obj3) {
|
2548
|
-
return mapObj(context, node);
|
2549
|
-
}
|
2550
|
-
if (node instanceof Parens2 || node instanceof StringWithInterpolations4) {
|
2551
|
-
return mapParens(context, node);
|
2552
|
-
}
|
2553
|
-
if (node instanceof For3) {
|
2554
|
-
return mapFor(context, node);
|
2555
|
-
}
|
2556
|
-
if (node instanceof Throw2) {
|
2557
|
-
return mapThrow(context, node);
|
2558
|
-
}
|
2559
|
-
if (node instanceof Block3) {
|
2560
|
-
return mapBlock(context, node);
|
2561
|
-
}
|
2562
|
-
if (node instanceof Code) {
|
2563
|
-
return mapCode(context, node);
|
2564
|
-
}
|
2565
|
-
if (node instanceof While2 && !(node instanceof For3)) {
|
2566
|
-
return mapWhile(context, node);
|
2567
|
-
}
|
2568
|
-
if (node instanceof Try2) {
|
2569
|
-
return mapTry(context, node);
|
2570
|
-
}
|
2571
|
-
if (node instanceof Existence) {
|
2572
|
-
return mapExistence(context, node);
|
2573
|
-
}
|
2574
|
-
if (node instanceof Class2) {
|
2575
|
-
return mapClass(context, node);
|
2576
|
-
}
|
2577
|
-
if (node instanceof Splat4) {
|
2578
|
-
return mapSplat(context, node);
|
2579
|
-
}
|
2580
|
-
if (node instanceof Expansion2) {
|
2581
|
-
return mapExpansion(context, node);
|
2582
|
-
}
|
2583
|
-
if (node instanceof Elision2) {
|
2584
|
-
return mapElision(context, node);
|
2585
|
-
}
|
2586
|
-
if (node instanceof Switch2) {
|
2587
|
-
return mapSwitch(context, node);
|
2588
|
-
}
|
2589
|
-
if (node instanceof In) {
|
2590
|
-
return mapIn(context, node);
|
2591
|
-
}
|
2592
|
-
if (node instanceof Range2) {
|
2593
|
-
return mapRange(context, node);
|
2594
|
-
}
|
2595
|
-
if (node instanceof Extends) {
|
2596
|
-
return mapExtends(context, node);
|
2597
|
-
}
|
2598
|
-
if (node instanceof ModuleDeclaration2) {
|
2599
|
-
return mapModuleDeclaration(context, node);
|
2600
|
-
}
|
2601
|
-
throw new UnsupportedNodeError(node);
|
2602
|
-
}
|
2603
|
-
|
2604
|
-
// src/mappers/mapBlock.ts
|
2605
|
-
function mapBlock(context, node) {
|
2606
|
-
let childContext = context;
|
2607
|
-
if (context.parseState.isInClassBody()) {
|
2608
|
-
const hasProtoAssignChild = node.expressions.some((child) => child instanceof Value10 && child.isObject(true));
|
2609
|
-
if (hasProtoAssignChild) {
|
2610
|
-
childContext = childContext.updateState((s) => s.dropCurrentClass());
|
2611
|
-
}
|
2612
|
-
}
|
2613
|
-
const { line, column, start, end, raw } = getLocation(context, node);
|
2614
|
-
const previousTokenIndex = context.sourceTokens.indexOfTokenNearSourceIndex(start).previous();
|
2615
|
-
const previousToken = previousTokenIndex ? context.sourceTokens.tokenAtIndex(previousTokenIndex) : null;
|
2616
|
-
const inline = previousToken ? previousToken.type !== SourceType14.NEWLINE : false;
|
2617
|
-
return new Block(line, column, start, end, raw, node.expressions.filter((expression) => !isCommentOnlyNode(expression)).map((expression) => mapChild(context, childContext, expression)).reduce((arr, current) => arr.concat(current), []), inline);
|
2618
|
-
}
|
2619
|
-
function mapChild(blockContext, childContext, node) {
|
2620
|
-
if (blockContext.parseState.isInClassBody() && node instanceof Value10 && node.isObject(true)) {
|
2621
|
-
const obj = node.base;
|
2622
|
-
if (!(obj instanceof Obj4)) {
|
2623
|
-
throw new Error("Expected isObject node to be an object.");
|
2624
|
-
}
|
2625
|
-
const statements = [];
|
2626
|
-
for (const property of obj.properties) {
|
2627
|
-
if (isCommentOnlyNode(property)) {
|
2628
|
-
continue;
|
2629
|
-
}
|
2630
|
-
if (property instanceof Assign4) {
|
2631
|
-
const { line, column, start, end, raw } = getLocation(childContext, property);
|
2632
|
-
const key = mapAny(childContext, property.variable);
|
2633
|
-
const value = mapAny(childContext, property.value);
|
2634
|
-
let Node12 = ClassProtoAssignOp;
|
2635
|
-
if (key instanceof Identifier && key.data === "constructor") {
|
2636
|
-
Node12 = Constructor;
|
2637
|
-
} else if (key instanceof MemberAccessOp && key.expression instanceof This) {
|
2638
|
-
Node12 = AssignOp;
|
2639
|
-
}
|
2640
|
-
const assignment = new Node12(line, column, start, end, raw, key, value);
|
2641
|
-
statements.push(assignment);
|
2642
|
-
if (assignment instanceof ClassProtoAssignOp && (assignment.expression instanceof BoundFunction || assignment.expression instanceof BoundGeneratorFunction || assignment.expression instanceof BoundAsyncFunction)) {
|
2643
|
-
blockContext.parseState.recordBoundMethod(assignment);
|
2644
|
-
}
|
2645
|
-
if (assignment instanceof Constructor) {
|
2646
|
-
blockContext.parseState.recordConstructor(assignment);
|
2647
|
-
}
|
2648
|
-
} else {
|
2649
|
-
throw new Error(`unexpected class assignment: ${inspect8(property)}`);
|
2650
|
-
}
|
2651
|
-
}
|
2652
|
-
return statements;
|
2653
|
-
}
|
2654
|
-
return [mapAny(childContext, node)];
|
2655
|
-
}
|
2656
|
-
|
2657
|
-
// src/mappers/mapPossiblyEmptyBlock.ts
|
2658
|
-
function mapPossiblyEmptyBlock(context, node) {
|
2659
|
-
if (!node) {
|
2660
|
-
return null;
|
2661
|
-
}
|
2662
|
-
if (node.expressions.every((expression) => isCommentOnlyNode(expression))) {
|
2663
|
-
return null;
|
2664
|
-
}
|
2665
|
-
const lastSourceIndex = context.linesAndColumns.indexForLocation({
|
2666
|
-
line: node.locationData.last_line,
|
2667
|
-
column: node.locationData.last_column
|
2668
|
-
});
|
2669
|
-
if (lastSourceIndex === null) {
|
2670
|
-
throw new Error("Expected to find last source index of block.");
|
2671
|
-
}
|
2672
|
-
if (context.source[lastSourceIndex] === ";") {
|
2673
|
-
return mapBlock(context, node);
|
2674
|
-
}
|
2675
|
-
if (node.expressions.length === 0) {
|
2676
|
-
return null;
|
2677
|
-
}
|
2678
|
-
return mapBlock(context, node);
|
2679
|
-
}
|
2680
|
-
|
2681
|
-
// src/mappers/mapProgram.ts
|
2682
|
-
function mapProgram(context) {
|
2683
|
-
return new Program(1, 1, 0, context.source.length, context.source, mapPossiblyEmptyBlock(context, context.ast), context);
|
2684
|
-
}
|
2685
|
-
|
2686
|
-
// src/parseCS1AsCS2.ts
|
2687
|
-
import { nodes } from "decaffeinate-coffeescript";
|
2688
|
-
import {
|
2689
|
-
Access as CS1Access,
|
2690
|
-
Arr as CS1Arr,
|
2691
|
-
Assign as CS1Assign,
|
2692
|
-
Base as CS1Base2,
|
2693
|
-
Block as CS1Block,
|
2694
|
-
BooleanLiteral as CS1BooleanLiteral,
|
2695
|
-
Call as CS1Call,
|
2696
|
-
Class as CS1Class,
|
2697
|
-
Code as CS1Code,
|
2698
|
-
Comment as CS1Comment,
|
2699
|
-
Existence as CS1Existence,
|
2700
|
-
Expansion as CS1Expansion,
|
2701
|
-
ExportAllDeclaration as CS1ExportAllDeclaration,
|
2702
|
-
ExportDeclaration as CS1ExportDeclaration,
|
2703
|
-
ExportDefaultDeclaration as CS1ExportDefaultDeclaration,
|
2704
|
-
ExportNamedDeclaration as CS1ExportNamedDeclaration,
|
2705
|
-
ExportSpecifier as CS1ExportSpecifier,
|
2706
|
-
ExportSpecifierList as CS1ExportSpecifierList,
|
2707
|
-
Extends as CS1Extends,
|
2708
|
-
For as CS1For,
|
2709
|
-
IdentifierLiteral as CS1IdentifierLiteral,
|
2710
|
-
If as CS1If,
|
2711
|
-
ImportClause as CS1ImportClause,
|
2712
|
-
ImportDeclaration as CS1ImportDeclaration,
|
2713
|
-
ImportDefaultSpecifier as CS1ImportDefaultSpecifier,
|
2714
|
-
ImportNamespaceSpecifier as CS1ImportNamespaceSpecifier,
|
2715
|
-
ImportSpecifier as CS1ImportSpecifier,
|
2716
|
-
ImportSpecifierList as CS1ImportSpecifierList,
|
2717
|
-
In as CS1In,
|
2718
|
-
Index as CS1Index,
|
2719
|
-
InfinityLiteral as CS1InfinityLiteral,
|
2720
|
-
Literal as CS1Literal,
|
2721
|
-
ModuleDeclaration as CS1ModuleDeclaration,
|
2722
|
-
ModuleSpecifier as CS1ModuleSpecifier,
|
2723
|
-
ModuleSpecifierList as CS1ModuleSpecifierList,
|
2724
|
-
NaNLiteral as CS1NaNLiteral,
|
2725
|
-
NullLiteral as CS1NullLiteral,
|
2726
|
-
NumberLiteral as CS1NumberLiteral,
|
2727
|
-
Obj as CS1Obj,
|
2728
|
-
Op as CS1Op2,
|
2729
|
-
Param as CS1Param,
|
2730
|
-
Parens as CS1Parens,
|
2731
|
-
PassthroughLiteral as CS1PassthroughLiteral,
|
2732
|
-
PropertyName as CS1PropertyName,
|
2733
|
-
Range as CS1Range,
|
2734
|
-
RegexLiteral as CS1RegexLiteral,
|
2735
|
-
RegexWithInterpolations as CS1RegexWithInterpolations,
|
2736
|
-
Return as CS1Return,
|
2737
|
-
Slice as CS1Slice,
|
2738
|
-
Splat as CS1Splat,
|
2739
|
-
StatementLiteral as CS1StatementLiteral,
|
2740
|
-
StringLiteral as CS1StringLiteral,
|
2741
|
-
StringWithInterpolations as CS1StringWithInterpolations,
|
2742
|
-
SuperCall as CS1SuperCall,
|
2743
|
-
Switch as CS1Switch,
|
2744
|
-
TaggedTemplateCall as CS1TaggedTemplateCall,
|
2745
|
-
ThisLiteral as CS1ThisLiteral,
|
2746
|
-
Throw as CS1Throw,
|
2747
|
-
Try as CS1Try,
|
2748
|
-
UndefinedLiteral as CS1UndefinedLiteral,
|
2749
|
-
Value as CS1Value,
|
2750
|
-
While as CS1While,
|
2751
|
-
YieldReturn as CS1YieldReturn
|
2752
|
-
} from "decaffeinate-coffeescript/lib/coffee-script/nodes.js";
|
2753
|
-
import {
|
2754
|
-
Access as Access2,
|
2755
|
-
Arr as Arr3,
|
2756
|
-
Assign as Assign5,
|
2757
|
-
Base as Base11,
|
2758
|
-
Block as Block4,
|
2759
|
-
BooleanLiteral as BooleanLiteral2,
|
2760
|
-
Call as Call5,
|
2761
|
-
Class as Class3,
|
2762
|
-
Code as Code2,
|
2763
|
-
Existence as Existence2,
|
2764
|
-
Expansion as Expansion3,
|
2765
|
-
ExportAllDeclaration as ExportAllDeclaration2,
|
2766
|
-
ExportDeclaration,
|
2767
|
-
ExportDefaultDeclaration as ExportDefaultDeclaration2,
|
2768
|
-
ExportNamedDeclaration as ExportNamedDeclaration2,
|
2769
|
-
ExportSpecifier,
|
2770
|
-
ExportSpecifierList as ExportSpecifierList2,
|
2771
|
-
Extends as Extends2,
|
2772
|
-
For as For4,
|
2773
|
-
IdentifierLiteral as IdentifierLiteral4,
|
2774
|
-
If as If2,
|
2775
|
-
ImportClause,
|
2776
|
-
ImportDeclaration as ImportDeclaration2,
|
2777
|
-
ImportDefaultSpecifier,
|
2778
|
-
ImportNamespaceSpecifier as ImportNamespaceSpecifier2,
|
2779
|
-
ImportSpecifier,
|
2780
|
-
ImportSpecifierList as ImportSpecifierList2,
|
2781
|
-
In as In2,
|
2782
|
-
Index as Index2,
|
2783
|
-
InfinityLiteral,
|
2784
|
-
Literal as Literal9,
|
2785
|
-
ModuleDeclaration as ModuleDeclaration3,
|
2786
|
-
ModuleSpecifier as ModuleSpecifier2,
|
2787
|
-
ModuleSpecifierList,
|
2788
|
-
NaNLiteral,
|
2789
|
-
NullLiteral as NullLiteral2,
|
2790
|
-
NumberLiteral as NumberLiteral2,
|
2791
|
-
Obj as Obj5,
|
2792
|
-
Op as Op8,
|
2793
|
-
Param as Param2,
|
2794
|
-
Parens as Parens3,
|
2795
|
-
PassthroughLiteral as PassthroughLiteral3,
|
2796
|
-
PropertyName as PropertyName2,
|
2797
|
-
Range as Range3,
|
2798
|
-
RegexLiteral as RegexLiteral2,
|
2799
|
-
RegexWithInterpolations,
|
2800
|
-
Return as Return3,
|
2801
|
-
Slice as Slice2,
|
2802
|
-
Splat as Splat5,
|
2803
|
-
StatementLiteral as StatementLiteral2,
|
2804
|
-
StringLiteral as StringLiteral4,
|
2805
|
-
StringWithInterpolations as StringWithInterpolations5,
|
2806
|
-
SuperCall as SuperCall2,
|
2807
|
-
Switch as Switch3,
|
2808
|
-
TaggedTemplateCall as TaggedTemplateCall2,
|
2809
|
-
ThisLiteral as ThisLiteral2,
|
2810
|
-
Throw as Throw3,
|
2811
|
-
Try as Try3,
|
2812
|
-
UndefinedLiteral as UndefinedLiteral2,
|
2813
|
-
Value as Value11,
|
2814
|
-
While as While3,
|
2815
|
-
YieldReturn as YieldReturn2
|
2816
|
-
} from "decaffeinate-coffeescript2/lib/coffeescript/nodes.js";
|
2817
|
-
var nodeTypeMap = /* @__PURE__ */ new Map();
|
2818
|
-
nodeTypeMap.set(CS1Base2, Base11);
|
2819
|
-
nodeTypeMap.set(CS1Block, Block4);
|
2820
|
-
nodeTypeMap.set(CS1Literal, Literal9);
|
2821
|
-
nodeTypeMap.set(CS1NumberLiteral, NumberLiteral2);
|
2822
|
-
nodeTypeMap.set(CS1InfinityLiteral, InfinityLiteral);
|
2823
|
-
nodeTypeMap.set(CS1NaNLiteral, NaNLiteral);
|
2824
|
-
nodeTypeMap.set(CS1StringLiteral, StringLiteral4);
|
2825
|
-
nodeTypeMap.set(CS1RegexLiteral, RegexLiteral2);
|
2826
|
-
nodeTypeMap.set(CS1PassthroughLiteral, PassthroughLiteral3);
|
2827
|
-
nodeTypeMap.set(CS1IdentifierLiteral, IdentifierLiteral4);
|
2828
|
-
nodeTypeMap.set(CS1PropertyName, PropertyName2);
|
2829
|
-
nodeTypeMap.set(CS1StatementLiteral, StatementLiteral2);
|
2830
|
-
nodeTypeMap.set(CS1ThisLiteral, ThisLiteral2);
|
2831
|
-
nodeTypeMap.set(CS1UndefinedLiteral, UndefinedLiteral2);
|
2832
|
-
nodeTypeMap.set(CS1NullLiteral, NullLiteral2);
|
2833
|
-
nodeTypeMap.set(CS1BooleanLiteral, BooleanLiteral2);
|
2834
|
-
nodeTypeMap.set(CS1Return, Return3);
|
2835
|
-
nodeTypeMap.set(CS1YieldReturn, YieldReturn2);
|
2836
|
-
nodeTypeMap.set(CS1Value, Value11);
|
2837
|
-
nodeTypeMap.set(CS1Call, Call5);
|
2838
|
-
nodeTypeMap.set(CS1SuperCall, SuperCall2);
|
2839
|
-
nodeTypeMap.set(CS1RegexWithInterpolations, RegexWithInterpolations);
|
2840
|
-
nodeTypeMap.set(CS1TaggedTemplateCall, TaggedTemplateCall2);
|
2841
|
-
nodeTypeMap.set(CS1Extends, Extends2);
|
2842
|
-
nodeTypeMap.set(CS1Access, Access2);
|
2843
|
-
nodeTypeMap.set(CS1Index, Index2);
|
2844
|
-
nodeTypeMap.set(CS1Range, Range3);
|
2845
|
-
nodeTypeMap.set(CS1Slice, Slice2);
|
2846
|
-
nodeTypeMap.set(CS1Obj, Obj5);
|
2847
|
-
nodeTypeMap.set(CS1Arr, Arr3);
|
2848
|
-
nodeTypeMap.set(CS1Class, Class3);
|
2849
|
-
nodeTypeMap.set(CS1ModuleDeclaration, ModuleDeclaration3);
|
2850
|
-
nodeTypeMap.set(CS1ImportDeclaration, ImportDeclaration2);
|
2851
|
-
nodeTypeMap.set(CS1ImportClause, ImportClause);
|
2852
|
-
nodeTypeMap.set(CS1ExportDeclaration, ExportDeclaration);
|
2853
|
-
nodeTypeMap.set(CS1ExportNamedDeclaration, ExportNamedDeclaration2);
|
2854
|
-
nodeTypeMap.set(CS1ExportDefaultDeclaration, ExportDefaultDeclaration2);
|
2855
|
-
nodeTypeMap.set(CS1ExportAllDeclaration, ExportAllDeclaration2);
|
2856
|
-
nodeTypeMap.set(CS1ModuleSpecifierList, ModuleSpecifierList);
|
2857
|
-
nodeTypeMap.set(CS1ImportSpecifierList, ImportSpecifierList2);
|
2858
|
-
nodeTypeMap.set(CS1ExportSpecifierList, ExportSpecifierList2);
|
2859
|
-
nodeTypeMap.set(CS1ModuleSpecifier, ModuleSpecifier2);
|
2860
|
-
nodeTypeMap.set(CS1ImportSpecifier, ImportSpecifier);
|
2861
|
-
nodeTypeMap.set(CS1ImportDefaultSpecifier, ImportDefaultSpecifier);
|
2862
|
-
nodeTypeMap.set(CS1ImportNamespaceSpecifier, ImportNamespaceSpecifier2);
|
2863
|
-
nodeTypeMap.set(CS1ExportSpecifier, ExportSpecifier);
|
2864
|
-
nodeTypeMap.set(CS1Assign, Assign5);
|
2865
|
-
nodeTypeMap.set(CS1Code, Code2);
|
2866
|
-
nodeTypeMap.set(CS1Param, Param2);
|
2867
|
-
nodeTypeMap.set(CS1Splat, Splat5);
|
2868
|
-
nodeTypeMap.set(CS1Expansion, Expansion3);
|
2869
|
-
nodeTypeMap.set(CS1While, While3);
|
2870
|
-
nodeTypeMap.set(CS1Op2, Op8);
|
2871
|
-
nodeTypeMap.set(CS1In, In2);
|
2872
|
-
nodeTypeMap.set(CS1Try, Try3);
|
2873
|
-
nodeTypeMap.set(CS1Throw, Throw3);
|
2874
|
-
nodeTypeMap.set(CS1Existence, Existence2);
|
2875
|
-
nodeTypeMap.set(CS1Parens, Parens3);
|
2876
|
-
nodeTypeMap.set(CS1StringWithInterpolations, StringWithInterpolations5);
|
2877
|
-
nodeTypeMap.set(CS1For, For4);
|
2878
|
-
nodeTypeMap.set(CS1Switch, Switch3);
|
2879
|
-
nodeTypeMap.set(CS1If, If2);
|
2880
|
-
function parseCS1AsCS2(source) {
|
2881
|
-
const cs1AST = nodes(source);
|
2882
|
-
const cs2AST = convertCS1NodeToCS2(cs1AST);
|
2883
|
-
if (!(cs2AST instanceof Block4)) {
|
2884
|
-
throw new Error("Expected top-level CS file to convert to a Block");
|
2885
|
-
}
|
2886
|
-
return cs2AST;
|
2887
|
-
}
|
2888
|
-
function convertCS1NodeToCS2(node) {
|
2889
|
-
if (node instanceof CS1Comment) {
|
2890
|
-
return makeCS2Comment(node);
|
2891
|
-
}
|
2892
|
-
const cs1Constructor = node.constructor;
|
2893
|
-
const cs2Constructor = nodeTypeMap.get(cs1Constructor);
|
2894
|
-
if (!cs2Constructor) {
|
2895
|
-
throw new Error(`Unexpected CS1 type for node ${node}`);
|
2896
|
-
}
|
2897
|
-
const result = Object.create(cs2Constructor.prototype);
|
2898
|
-
for (const key of Object.keys(node)) {
|
2899
|
-
const value = node[key];
|
2900
|
-
if (Array.isArray(value) && value.length > 0 && value[0] instanceof CS1Base2) {
|
2901
|
-
result[key] = value.map((child) => convertCS1NodeToCS2(child));
|
2902
|
-
} else if (key === "cases") {
|
2903
|
-
result[key] = value.map(([switchCaseCondition, block]) => {
|
2904
|
-
if (Array.isArray(switchCaseCondition)) {
|
2905
|
-
return [
|
2906
|
-
switchCaseCondition.map((condition) => convertCS1NodeToCS2(condition)),
|
2907
|
-
convertCS1NodeToCS2(block)
|
2908
|
-
];
|
2909
|
-
} else {
|
2910
|
-
return [
|
2911
|
-
convertCS1NodeToCS2(switchCaseCondition),
|
2912
|
-
convertCS1NodeToCS2(block)
|
2913
|
-
];
|
2914
|
-
}
|
2915
|
-
});
|
2916
|
-
} else if (value instanceof CS1Base2) {
|
2917
|
-
result[key] = convertCS1NodeToCS2(value);
|
2918
|
-
} else {
|
2919
|
-
result[key] = value;
|
2920
|
-
}
|
2921
|
-
}
|
2922
|
-
return result;
|
2923
|
-
}
|
2924
|
-
function makeCS2Comment(comment) {
|
2925
|
-
const valueNode = Object.create(Value11.prototype);
|
2926
|
-
const passthroughNode = Object.create(PassthroughLiteral3.prototype);
|
2927
|
-
valueNode.properties = [];
|
2928
|
-
valueNode.base = passthroughNode;
|
2929
|
-
passthroughNode.value = "";
|
2930
|
-
valueNode.locationData = comment.locationData;
|
2931
|
-
passthroughNode.locationData = comment.locationData;
|
2932
|
-
return valueNode;
|
2933
|
-
}
|
2934
|
-
|
2935
|
-
// src/parseCS2.ts
|
2936
|
-
import { nodes as nodes2 } from "decaffeinate-coffeescript2";
|
2937
|
-
function parseCS2(source) {
|
2938
|
-
return nodes2(source);
|
2939
|
-
}
|
2940
|
-
|
2941
|
-
// src/util/fixLocations.ts
|
2942
|
-
import { SourceType as SourceType17 } from "coffee-lex";
|
2943
|
-
import {
|
2944
|
-
Assign as Assign6,
|
2945
|
-
Block as Block5,
|
2946
|
-
Call as Call6,
|
2947
|
-
Class as Class4,
|
2948
|
-
Code as Code3,
|
2949
|
-
Extends as Extends3,
|
2950
|
-
For as For5,
|
2951
|
-
If as If3,
|
2952
|
-
In as In3,
|
2953
|
-
Index as Index3,
|
2954
|
-
Literal as Literal10,
|
2955
|
-
Obj as Obj6,
|
2956
|
-
Op as Op9,
|
2957
|
-
Param as Param3,
|
2958
|
-
Slice as Slice3,
|
2959
|
-
Switch as Switch4,
|
2960
|
-
Try as Try4,
|
2961
|
-
Value as Value12,
|
2962
|
-
While as While4
|
2963
|
-
} from "decaffeinate-coffeescript2/lib/coffeescript/nodes.js";
|
2964
|
-
|
2965
|
-
// src/util/expandToIncludeParens.ts
|
2966
|
-
import { SourceType as SourceType15 } from "coffee-lex";
|
2967
|
-
|
2968
|
-
// src/util/locationDataFromSourceRange.ts
|
2969
|
-
function locationDataFromSourceRange(context, sourceRange) {
|
2970
|
-
const startLocationInclusive = context.linesAndColumns.locationForIndex(sourceRange.start);
|
2971
|
-
if (startLocationInclusive === null) {
|
2972
|
-
throw new Error("Expected start location for source range.");
|
2973
|
-
}
|
2974
|
-
const endLocationInclusive = context.linesAndColumns.locationForIndex(sourceRange.end - 1);
|
2975
|
-
if (endLocationInclusive === null) {
|
2976
|
-
throw new Error("Expected end location for source range.");
|
2977
|
-
}
|
2978
|
-
return {
|
2979
|
-
first_line: startLocationInclusive.line,
|
2980
|
-
first_column: startLocationInclusive.column,
|
2981
|
-
last_line: endLocationInclusive.line,
|
2982
|
-
last_column: endLocationInclusive.column
|
2983
|
-
};
|
2984
|
-
}
|
2985
|
-
|
2986
|
-
// src/util/sourceRangeFromLocationData.ts
|
2987
|
-
function sourceRangeFromLocationData(context, locationData) {
|
2988
|
-
const startIndexInclusive = context.linesAndColumns.indexForLocation({
|
2989
|
-
line: locationData.first_line,
|
2990
|
-
column: locationData.first_column
|
2991
|
-
});
|
2992
|
-
if (startIndexInclusive === null) {
|
2993
|
-
throw new Error("Expected index for start of range.");
|
2994
|
-
}
|
2995
|
-
const endIndexInclusive = context.linesAndColumns.indexForLocation({
|
2996
|
-
line: locationData.last_line,
|
2997
|
-
column: locationData.last_column
|
2998
|
-
});
|
2999
|
-
if (endIndexInclusive === null) {
|
3000
|
-
throw new Error("Expected index for end of range.");
|
3001
|
-
}
|
3002
|
-
return {
|
3003
|
-
start: startIndexInclusive,
|
3004
|
-
end: endIndexInclusive + 1
|
3005
|
-
};
|
3006
|
-
}
|
3007
|
-
|
3008
|
-
// src/util/expandToIncludeParens.ts
|
3009
|
-
function expandToIncludeParens(context, locationData) {
|
3010
|
-
let sourceRange = sourceRangeFromLocationData(context, locationData);
|
3011
|
-
while (true) {
|
3012
|
-
const tokens = getSurroundingParens(context, sourceRange);
|
3013
|
-
if (tokens === null) {
|
3014
|
-
break;
|
3015
|
-
}
|
3016
|
-
sourceRange = { start: tokens.openParen.start, end: tokens.closeParen.end };
|
3017
|
-
}
|
3018
|
-
return locationDataFromSourceRange(context, sourceRange);
|
3019
|
-
}
|
3020
|
-
function getSurroundingParens(context, sourceRange) {
|
3021
|
-
const tokenBefore = firstSemanticTokenBefore(context, sourceRange.start);
|
3022
|
-
const tokenAfter = firstSemanticTokenAfter(context, sourceRange.end);
|
3023
|
-
if (tokenBefore === null || tokenBefore.type !== SourceType15.LPAREN) {
|
3024
|
-
return null;
|
3025
|
-
}
|
3026
|
-
if (tokenAfter === null || tokenAfter.type !== SourceType15.RPAREN) {
|
3027
|
-
return null;
|
3028
|
-
}
|
3029
|
-
return { openParen: tokenBefore, closeParen: tokenAfter };
|
3030
|
-
}
|
3031
|
-
|
3032
|
-
// src/util/fixInvalidLocationData.ts
|
3033
|
-
function fixInvalidLocationData(locationData, linesAndColumns) {
|
3034
|
-
let { last_line, last_column } = locationData;
|
3035
|
-
const indexForLocation = linesAndColumns.indexForLocation({
|
3036
|
-
line: last_line,
|
3037
|
-
column: last_column
|
3038
|
-
});
|
3039
|
-
if (indexForLocation !== null) {
|
3040
|
-
return locationData;
|
3041
|
-
} else {
|
3042
|
-
let offset = 1;
|
3043
|
-
for (; ; ) {
|
3044
|
-
const index = linesAndColumns.indexForLocation({
|
3045
|
-
line: last_line,
|
3046
|
-
column: last_column - offset
|
3047
|
-
});
|
3048
|
-
offset++;
|
3049
|
-
if (index !== null) {
|
3050
|
-
const location = linesAndColumns.locationForIndex(index + offset);
|
3051
|
-
if (!location) {
|
3052
|
-
throw new Error(`Unable to determine adjustment offset for incorrect location data: ${JSON.stringify(locationData)}. No valid location found for index: ${index + offset}`);
|
3053
|
-
}
|
3054
|
-
last_line = location.line;
|
3055
|
-
last_column = location.column;
|
3056
|
-
break;
|
3057
|
-
}
|
3058
|
-
}
|
3059
|
-
return {
|
3060
|
-
...locationData,
|
3061
|
-
last_line,
|
3062
|
-
last_column
|
3063
|
-
};
|
3064
|
-
}
|
3065
|
-
}
|
3066
|
-
|
3067
|
-
// src/util/locationWithLastPosition.ts
|
3068
|
-
function locationWithLastPosition(loc, last) {
|
3069
|
-
return {
|
3070
|
-
first_line: loc.first_line,
|
3071
|
-
first_column: loc.first_column,
|
3072
|
-
last_line: last.last_line,
|
3073
|
-
last_column: last.last_column
|
3074
|
-
};
|
3075
|
-
}
|
3076
|
-
|
3077
|
-
// src/util/mergeLocations.ts
|
3078
|
-
function mergeLocations(left, right) {
|
3079
|
-
let first_line;
|
3080
|
-
let first_column;
|
3081
|
-
let last_line;
|
3082
|
-
let last_column;
|
3083
|
-
if (left.first_line < right.first_line) {
|
3084
|
-
({ first_line, first_column } = left);
|
3085
|
-
} else if (left.first_line > right.first_line) {
|
3086
|
-
({ first_line, first_column } = right);
|
3087
|
-
} else if (left.first_column < right.first_column) {
|
3088
|
-
({ first_line, first_column } = left);
|
3089
|
-
} else {
|
3090
|
-
({ first_line, first_column } = right);
|
3091
|
-
}
|
3092
|
-
if (left.last_line < right.last_line) {
|
3093
|
-
({ last_line, last_column } = right);
|
3094
|
-
} else if (left.last_line > right.last_line) {
|
3095
|
-
({ last_line, last_column } = left);
|
3096
|
-
} else if (left.last_column < right.last_column) {
|
3097
|
-
({ last_line, last_column } = right);
|
3098
|
-
} else {
|
3099
|
-
({ last_line, last_column } = left);
|
3100
|
-
}
|
3101
|
-
return { first_line, first_column, last_line, last_column };
|
3102
|
-
}
|
3103
|
-
|
3104
|
-
// src/util/rangeOfBracketTokensForIndexNode.ts
|
3105
|
-
import { SourceType as SourceType16 } from "coffee-lex";
|
3106
|
-
import { inspect as inspect9 } from "util";
|
3107
|
-
function rangeOfBracketTokensForIndexNode(context, indexNode) {
|
3108
|
-
const start = context.linesAndColumns.indexForLocation({
|
3109
|
-
line: indexNode.locationData.first_line,
|
3110
|
-
column: indexNode.locationData.first_column
|
3111
|
-
});
|
3112
|
-
if (start !== null) {
|
3113
|
-
const startTokenIndex = context.sourceTokens.indexOfTokenStartingAtSourceIndex(start);
|
3114
|
-
if (startTokenIndex !== null) {
|
3115
|
-
const range = context.sourceTokens.rangeOfMatchingTokensContainingTokenIndex(SourceType16.LBRACKET, SourceType16.RBRACKET, startTokenIndex);
|
3116
|
-
if (range !== null) {
|
3117
|
-
return range;
|
3118
|
-
}
|
3119
|
-
}
|
3120
|
-
}
|
3121
|
-
throw new Error(`cannot find braces surrounding index at ${indexNode.locationData.first_line + 1}:${indexNode.locationData.first_column}: ${inspect9(indexNode)}`);
|
3122
|
-
}
|
3123
|
-
|
3124
|
-
// src/util/fixLocations.ts
|
3125
|
-
function fixLocations(context, node) {
|
3126
|
-
const { linesAndColumns, source } = context;
|
3127
|
-
node.eachChild((child) => {
|
3128
|
-
if (child && child.locationData) {
|
3129
|
-
fixLocations(context, child);
|
3130
|
-
}
|
3131
|
-
return void 0;
|
3132
|
-
});
|
3133
|
-
node.locationData = fixInvalidLocationData(node.locationData, context.linesAndColumns);
|
3134
|
-
if (node instanceof Value12) {
|
3135
|
-
const lastChild = node.properties[node.properties.length - 1] || node.base;
|
3136
|
-
if (lastChild) {
|
3137
|
-
node.locationData = locationWithLastPosition(node.locationData, lastChild.locationData);
|
3138
|
-
}
|
3139
|
-
}
|
3140
|
-
if (node instanceof Index3 || node instanceof Slice3) {
|
3141
|
-
const rangeOfBrackets = rangeOfBracketTokensForIndexNode(context, node);
|
3142
|
-
const lbracket = context.sourceTokens.tokenAtIndex(rangeOfBrackets[0]);
|
3143
|
-
if (lbracket === null) {
|
3144
|
-
throw new Error("Expected to find left-bracket token.");
|
3145
|
-
}
|
3146
|
-
const lbracketLoc = linesAndColumns.locationForIndex(lbracket.start);
|
3147
|
-
if (lbracketLoc === null) {
|
3148
|
-
throw new Error("Expected to find a location for the left-bracket token.");
|
3149
|
-
}
|
3150
|
-
const rbracketIndex = rangeOfBrackets[1].previous();
|
3151
|
-
if (rbracketIndex === null) {
|
3152
|
-
throw new Error("Expected to find a non-null right-bracket token index.");
|
3153
|
-
}
|
3154
|
-
const rbracket = context.sourceTokens.tokenAtIndex(rbracketIndex);
|
3155
|
-
if (rbracket === null) {
|
3156
|
-
throw new Error("Expected to find right-bracket token.");
|
3157
|
-
}
|
3158
|
-
const rbracketLoc = linesAndColumns.locationForIndex(rbracket.start);
|
3159
|
-
if (rbracketLoc === null) {
|
3160
|
-
throw new Error("Expected to find a location for the right-bracket token.");
|
3161
|
-
}
|
3162
|
-
node.locationData = {
|
3163
|
-
first_line: lbracketLoc.line,
|
3164
|
-
first_column: lbracketLoc.column,
|
3165
|
-
last_line: rbracketLoc.line,
|
3166
|
-
last_column: rbracketLoc.column
|
3167
|
-
};
|
3168
|
-
}
|
3169
|
-
if (node instanceof Obj6) {
|
3170
|
-
const loc = node.locationData;
|
3171
|
-
const start = linesAndColumns.indexForLocation({
|
3172
|
-
line: loc.first_line,
|
3173
|
-
column: loc.first_column
|
3174
|
-
});
|
3175
|
-
if (start === null) {
|
3176
|
-
throw new Error("Expected to find a start index for object.");
|
3177
|
-
}
|
3178
|
-
const end = linesAndColumns.indexForLocation({
|
3179
|
-
line: loc.last_line,
|
3180
|
-
column: loc.last_column
|
3181
|
-
});
|
3182
|
-
if (end === null) {
|
3183
|
-
throw new Error("Expected to find an end index for object.");
|
3184
|
-
}
|
3185
|
-
const isImplicitObject = source[start] !== "{";
|
3186
|
-
if (isImplicitObject && source[end] !== ",") {
|
3187
|
-
const lastChild = node.properties[node.properties.length - 1];
|
3188
|
-
node.locationData = locationWithLastPosition(node.locationData, lastChild.locationData);
|
3189
|
-
}
|
3190
|
-
}
|
3191
|
-
if (node instanceof Op9) {
|
3192
|
-
const lastChild = node.second;
|
3193
|
-
if (lastChild) {
|
3194
|
-
node.locationData = locationWithLastPosition(node.locationData, lastChild.locationData);
|
3195
|
-
}
|
3196
|
-
}
|
3197
|
-
if (node instanceof Assign6) {
|
3198
|
-
const lastChild = node.value;
|
3199
|
-
node.locationData = locationWithLastPosition(node.locationData, lastChild.locationData);
|
3200
|
-
}
|
3201
|
-
if (node instanceof In3) {
|
3202
|
-
const lastChild = node.array;
|
3203
|
-
node.locationData = locationWithLastPosition(node.locationData, lastChild.locationData);
|
3204
|
-
}
|
3205
|
-
if (node instanceof Call6) {
|
3206
|
-
if (node.variable && !node.do && !node.csx) {
|
3207
|
-
const calleeLoc = node.variable.locationData;
|
3208
|
-
let calleeEnd = linesAndColumns.indexForLocation({
|
3209
|
-
line: calleeLoc.last_line,
|
3210
|
-
column: calleeLoc.last_column
|
3211
|
-
});
|
3212
|
-
if (calleeEnd === null) {
|
3213
|
-
throw new Error("Expected to find index for callee end.");
|
3214
|
-
}
|
3215
|
-
calleeEnd++;
|
3216
|
-
if (source[calleeEnd] === "?") {
|
3217
|
-
calleeEnd += 1;
|
3218
|
-
}
|
3219
|
-
const isImplicitCall = source[calleeEnd] !== "(";
|
3220
|
-
if (isImplicitCall) {
|
3221
|
-
const lastChild = node.args[node.args.length - 1] || node.variable;
|
3222
|
-
if (lastChild) {
|
3223
|
-
node.locationData = locationWithLastPosition(node.locationData, lastChild.locationData);
|
3224
|
-
}
|
3225
|
-
}
|
3226
|
-
}
|
3227
|
-
}
|
3228
|
-
if (node instanceof Block5) {
|
3229
|
-
const lastChild = node.expressions[node.expressions.length - 1];
|
3230
|
-
if (lastChild) {
|
3231
|
-
node.locationData = locationWithLastPosition(node.locationData, lastChild.locationData);
|
3232
|
-
} else {
|
3233
|
-
const sourceRange = sourceRangeFromLocationData(context, node.locationData);
|
3234
|
-
node.locationData = locationDataFromSourceRange(context, {
|
3235
|
-
start: sourceRange.end,
|
3236
|
-
end: sourceRange.end
|
3237
|
-
});
|
3238
|
-
}
|
3239
|
-
let blockEnd = linesAndColumns.indexForLocation({
|
3240
|
-
line: node.locationData.last_line,
|
3241
|
-
column: node.locationData.last_column
|
3242
|
-
});
|
3243
|
-
if (blockEnd === null) {
|
3244
|
-
throw new Error("Expected to find index for block end.");
|
3245
|
-
}
|
3246
|
-
if (source[blockEnd + 1] === ";") {
|
3247
|
-
blockEnd++;
|
3248
|
-
const loc = linesAndColumns.locationForIndex(blockEnd);
|
3249
|
-
if (loc === null) {
|
3250
|
-
throw new Error("Expected to find location for block end.");
|
3251
|
-
}
|
3252
|
-
node.locationData.last_line = loc.line;
|
3253
|
-
node.locationData.last_column = loc.column;
|
3254
|
-
}
|
3255
|
-
node.locationData = expandToIncludeParens(context, node.locationData);
|
3256
|
-
}
|
3257
|
-
if (node instanceof If3) {
|
3258
|
-
const lastChild = node.elseBody || node.body;
|
3259
|
-
node.locationData = mergeLocations(node.locationData, lastChild.locationData);
|
3260
|
-
}
|
3261
|
-
if (node instanceof For5 || node instanceof While4) {
|
3262
|
-
const lastChild = node.body;
|
3263
|
-
if (lastChild) {
|
3264
|
-
node.locationData = mergeLocations(node.locationData, lastChild.locationData);
|
3265
|
-
}
|
3266
|
-
}
|
3267
|
-
if (node instanceof Param3) {
|
3268
|
-
if (!node.splat) {
|
3269
|
-
const lastChild = node.value || node.name;
|
3270
|
-
node.locationData = locationWithLastPosition(node.locationData, lastChild.locationData);
|
3271
|
-
}
|
3272
|
-
}
|
3273
|
-
if (node instanceof Code3) {
|
3274
|
-
if (node.body) {
|
3275
|
-
node.locationData = locationWithLastPosition(node.locationData, node.body.locationData);
|
3276
|
-
}
|
3277
|
-
}
|
3278
|
-
if (node instanceof Class4) {
|
3279
|
-
const lastChild = node.body;
|
3280
|
-
node.locationData = locationWithLastPosition(node.locationData, lastChild.locationData);
|
3281
|
-
}
|
3282
|
-
if (node instanceof Switch4) {
|
3283
|
-
const lastChild = node.otherwise || node.cases[node.cases.length - 1][1];
|
3284
|
-
node.locationData = locationWithLastPosition(node.locationData, lastChild.locationData);
|
3285
|
-
}
|
3286
|
-
if (node instanceof Try4) {
|
3287
|
-
const lastChild = node.ensure || node.recovery || node.errorVariable || node.attempt;
|
3288
|
-
if (lastChild) {
|
3289
|
-
node.locationData = locationWithLastPosition(node.locationData, lastChild.locationData);
|
3290
|
-
}
|
3291
|
-
}
|
3292
|
-
if (node instanceof Extends3) {
|
3293
|
-
const lastChild = node.parent;
|
3294
|
-
node.locationData = locationWithLastPosition(node.locationData, lastChild.locationData);
|
3295
|
-
}
|
3296
|
-
if (node instanceof Literal10) {
|
3297
|
-
const endIndex = linesAndColumns.indexForLocation({
|
3298
|
-
line: node.locationData.last_line,
|
3299
|
-
column: node.locationData.last_column
|
3300
|
-
});
|
3301
|
-
if (endIndex !== null) {
|
3302
|
-
const tokenIndex = context.sourceTokens.indexOfTokenNearSourceIndex(endIndex);
|
3303
|
-
const token = context.sourceTokens.tokenAtIndex(tokenIndex);
|
3304
|
-
if (token && token.type === SourceType17.HEREGEXP_END) {
|
3305
|
-
const location = linesAndColumns.locationForIndex(token.end - 1);
|
3306
|
-
if (location) {
|
3307
|
-
node.locationData = {
|
3308
|
-
...node.locationData,
|
3309
|
-
last_line: location.line,
|
3310
|
-
last_column: location.column
|
3311
|
-
};
|
3312
|
-
}
|
3313
|
-
}
|
3314
|
-
}
|
3315
|
-
}
|
3316
|
-
}
|
3317
|
-
|
3318
|
-
// src/util/ParseContext.ts
|
3319
|
-
import {
|
3320
|
-
Base as Base13
|
3321
|
-
} from "decaffeinate-coffeescript2/lib/coffeescript/nodes.js";
|
3322
|
-
import { LinesAndColumns } from "lines-and-columns";
|
3323
|
-
var ParseError = class extends Error {
|
3324
|
-
constructor(syntaxError) {
|
3325
|
-
super(syntaxError.message);
|
3326
|
-
this.syntaxError = syntaxError;
|
3327
|
-
}
|
3328
|
-
};
|
3329
|
-
var ParseState = class {
|
3330
|
-
constructor(currentClassBoundMethods) {
|
3331
|
-
this.currentClassBoundMethods = currentClassBoundMethods;
|
3332
|
-
this.currentClassCtor = null;
|
3333
|
-
}
|
3334
|
-
isInClassBody() {
|
3335
|
-
return this.currentClassBoundMethods !== null;
|
3336
|
-
}
|
3337
|
-
recordBoundMethod(method) {
|
3338
|
-
if (!this.currentClassBoundMethods) {
|
3339
|
-
throw new Error("Cannot assign a bound method name when there is no current class.");
|
3340
|
-
}
|
3341
|
-
this.currentClassBoundMethods.push(method);
|
3342
|
-
}
|
3343
|
-
recordConstructor(ctor) {
|
3344
|
-
this.currentClassCtor = ctor;
|
3345
|
-
}
|
3346
|
-
pushCurrentClass() {
|
3347
|
-
return new ParseState([]);
|
3348
|
-
}
|
3349
|
-
dropCurrentClass() {
|
3350
|
-
return new ParseState(null);
|
3351
|
-
}
|
3352
|
-
static initialState() {
|
3353
|
-
return new ParseState(null);
|
3354
|
-
}
|
3355
|
-
};
|
3356
|
-
var ParseContext = class {
|
3357
|
-
constructor(source, linesAndColumns, sourceTokens, ast, parseState) {
|
3358
|
-
this.source = source;
|
3359
|
-
this.linesAndColumns = linesAndColumns;
|
3360
|
-
this.sourceTokens = sourceTokens;
|
3361
|
-
this.ast = ast;
|
3362
|
-
this.parseState = parseState;
|
3363
|
-
}
|
3364
|
-
getRange(locatable) {
|
3365
|
-
if (locatable instanceof Base13) {
|
3366
|
-
return this.getRange(locatable.locationData);
|
3367
|
-
} else {
|
3368
|
-
const locationData = locatable;
|
3369
|
-
const start = this.linesAndColumns.indexForLocation({
|
3370
|
-
line: locationData.first_line,
|
3371
|
-
column: locationData.first_column
|
3372
|
-
});
|
3373
|
-
const end = this.linesAndColumns.indexForLocation({
|
3374
|
-
line: locationData.last_line,
|
3375
|
-
column: locationData.last_column
|
3376
|
-
});
|
3377
|
-
if (start === null || end === null) {
|
3378
|
-
return null;
|
3379
|
-
}
|
3380
|
-
return [start, end + 1];
|
3381
|
-
}
|
3382
|
-
}
|
3383
|
-
static fromSource(source, sourceLex, parse5) {
|
3384
|
-
try {
|
3385
|
-
const sourceTokens = sourceLex(source);
|
3386
|
-
return new ParseContext(source, new LinesAndColumns(source), sourceTokens, parse5(source), ParseState.initialState());
|
3387
|
-
} catch (ex) {
|
3388
|
-
if (ex instanceof SyntaxError) {
|
3389
|
-
throw new ParseError(ex);
|
3390
|
-
} else {
|
3391
|
-
throw ex;
|
3392
|
-
}
|
3393
|
-
}
|
3394
|
-
}
|
3395
|
-
updateState(updater) {
|
3396
|
-
return new ParseContext(this.source, this.linesAndColumns, this.sourceTokens, this.ast, updater(this.parseState));
|
3397
|
-
}
|
3398
|
-
};
|
3399
|
-
|
3400
|
-
// src/parser.ts
|
3401
|
-
var DEFAULT_OPTIONS = {
|
3402
|
-
useCS2: false
|
3403
|
-
};
|
3404
|
-
function parse4(source, options = DEFAULT_OPTIONS) {
|
3405
|
-
patchCoffeeScript();
|
3406
|
-
const parse5 = options.useCS2 ? parseCS2 : parseCS1AsCS2;
|
3407
|
-
const sourceLex = (s) => lex(s, { useCS2: options.useCS2 });
|
3408
|
-
const context = ParseContext.fromSource(source, sourceLex, parse5);
|
3409
|
-
fixLocations(context, context.ast);
|
3410
|
-
const program = mapProgram(context);
|
3411
|
-
traverse(program, (node, parent) => {
|
3412
|
-
node.parentNode = parent;
|
3413
|
-
});
|
3414
|
-
return program;
|
3415
|
-
}
|
3416
|
-
function traverse(node, callback) {
|
3417
|
-
function traverseRec(currentNode, currentParent) {
|
3418
|
-
const shouldDescend = callback(currentNode, currentParent);
|
3419
|
-
if (shouldDescend !== false) {
|
3420
|
-
for (const child of currentNode.getChildren()) {
|
3421
|
-
traverseRec(child, currentNode);
|
3422
|
-
}
|
3423
|
-
}
|
3424
|
-
}
|
3425
|
-
traverseRec(node, null);
|
3426
|
-
}
|
3427
|
-
export {
|
3428
|
-
AccessOp,
|
3429
|
-
ArrayInitialiser,
|
3430
|
-
AssignOp,
|
3431
|
-
AsyncFunction,
|
3432
|
-
Await,
|
3433
|
-
AwaitReturn,
|
3434
|
-
BareSuperFunctionApplication,
|
3435
|
-
BaseAssignOp,
|
3436
|
-
BaseFunction,
|
3437
|
-
BinaryOp,
|
3438
|
-
BitAndOp,
|
3439
|
-
BitNotOp,
|
3440
|
-
BitOrOp,
|
3441
|
-
BitXorOp,
|
3442
|
-
Block,
|
3443
|
-
Bool,
|
3444
|
-
BoundAsyncFunction,
|
3445
|
-
BoundFunction,
|
3446
|
-
BoundGeneratorFunction,
|
3447
|
-
Break,
|
3448
|
-
CSXElement,
|
3449
|
-
ChainedComparisonOp,
|
3450
|
-
Class,
|
3451
|
-
ClassProtoAssignOp,
|
3452
|
-
CompoundAssignOp,
|
3453
|
-
Conditional,
|
3454
|
-
Constructor,
|
3455
|
-
Continue,
|
3456
|
-
DEFAULT_OPTIONS,
|
3457
|
-
Debugger,
|
3458
|
-
DefaultParam,
|
3459
|
-
DeleteOp,
|
3460
|
-
DivideOp,
|
3461
|
-
DoOp,
|
3462
|
-
DynamicMemberAccessOp,
|
3463
|
-
EQOp,
|
3464
|
-
Elision,
|
3465
|
-
ExistsOp,
|
3466
|
-
ExpOp,
|
3467
|
-
Expansion,
|
3468
|
-
ExportAllDeclaration,
|
3469
|
-
ExportBindingsDeclaration,
|
3470
|
-
ExportDefaultDeclaration,
|
3471
|
-
ExportNamedDeclaration,
|
3472
|
-
ExtendsOp,
|
3473
|
-
Float,
|
3474
|
-
FloorDivideOp,
|
3475
|
-
For,
|
3476
|
-
ForFrom,
|
3477
|
-
ForIn,
|
3478
|
-
ForOf,
|
3479
|
-
Function,
|
3480
|
-
FunctionApplication,
|
3481
|
-
GTEOp,
|
3482
|
-
GTOp,
|
3483
|
-
GeneratorFunction,
|
3484
|
-
Heregex,
|
3485
|
-
Identifier,
|
3486
|
-
ImportDeclaration,
|
3487
|
-
InOp,
|
3488
|
-
InstanceofOp,
|
3489
|
-
Int,
|
3490
|
-
JavaScript,
|
3491
|
-
LTEOp,
|
3492
|
-
LTOp,
|
3493
|
-
LeftShiftOp,
|
3494
|
-
LogicalAndOp,
|
3495
|
-
LogicalNotOp,
|
3496
|
-
LogicalOrOp,
|
3497
|
-
Loop,
|
3498
|
-
MemberAccessOp,
|
3499
|
-
ModuleSpecifier,
|
3500
|
-
ModuloOp,
|
3501
|
-
MultiplyOp,
|
3502
|
-
NEQOp,
|
3503
|
-
NewOp,
|
3504
|
-
Node,
|
3505
|
-
Null,
|
3506
|
-
Number,
|
3507
|
-
ObjectInitialiser,
|
3508
|
-
ObjectInitialiserMember,
|
3509
|
-
OfOp,
|
3510
|
-
OperatorInfo,
|
3511
|
-
PlusOp,
|
3512
|
-
PostDecrementOp,
|
3513
|
-
PostIncrementOp,
|
3514
|
-
PreDecrementOp,
|
3515
|
-
PreIncrementOp,
|
3516
|
-
Program,
|
3517
|
-
ProtoMemberAccessOp,
|
3518
|
-
Quasi,
|
3519
|
-
Range,
|
3520
|
-
Regex,
|
3521
|
-
RegexFlags,
|
3522
|
-
RemOp,
|
3523
|
-
Rest,
|
3524
|
-
Return,
|
3525
|
-
SeqOp,
|
3526
|
-
SignedRightShiftOp,
|
3527
|
-
Slice,
|
3528
|
-
SoakedDynamicMemberAccessOp,
|
3529
|
-
SoakedFunctionApplication,
|
3530
|
-
SoakedMemberAccessOp,
|
3531
|
-
SoakedNewOp,
|
3532
|
-
SoakedProtoMemberAccessOp,
|
3533
|
-
SoakedSlice,
|
3534
|
-
Spread,
|
3535
|
-
String,
|
3536
|
-
SubtractOp,
|
3537
|
-
Super,
|
3538
|
-
Switch,
|
3539
|
-
SwitchCase,
|
3540
|
-
TaggedTemplateLiteral,
|
3541
|
-
This,
|
3542
|
-
Throw,
|
3543
|
-
Try,
|
3544
|
-
TypeofOp,
|
3545
|
-
UnaryExistsOp,
|
3546
|
-
UnaryNegateOp,
|
3547
|
-
UnaryOp,
|
3548
|
-
UnaryPlusOp,
|
3549
|
-
Undefined,
|
3550
|
-
UnsignedRightShiftOp,
|
3551
|
-
While,
|
3552
|
-
Yield,
|
3553
|
-
YieldFrom,
|
3554
|
-
YieldReturn,
|
3555
|
-
parse4 as parse,
|
3556
|
-
traverse
|
3557
|
-
};
|