immosquare-cleaner 0.1.32 → 0.1.33
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/immosquare-cleaner/version.rb +1 -1
- data/node_modules/@eslint/eslintrc/README.md +15 -4
- data/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs +57 -18
- data/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs.map +1 -1
- data/node_modules/@eslint/eslintrc/dist/eslintrc.cjs +60 -34
- data/node_modules/@eslint/eslintrc/dist/eslintrc.cjs.map +1 -1
- data/node_modules/@eslint/eslintrc/lib/config-array/config-array.js +3 -16
- data/node_modules/@eslint/eslintrc/lib/shared/config-validator.js +63 -18
- data/node_modules/@eslint/eslintrc/package.json +4 -4
- data/node_modules/@eslint/js/package.json +2 -2
- data/node_modules/@eslint/js/src/configs/eslint-all.js +9 -1
- data/node_modules/@eslint/js/src/configs/eslint-recommended.js +12 -5
- data/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/LICENSE +201 -0
- data/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/README.md +105 -0
- data/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs +384 -0
- data/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts +27 -0
- data/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/index.d.ts +16 -0
- data/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts +12 -0
- data/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/lib/index.js +65 -0
- data/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/lib/visitor-keys.js +315 -0
- data/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/package.json +74 -0
- data/node_modules/@humanwhocodes/config-array/api.js +114 -16
- data/node_modules/@humanwhocodes/config-array/package.json +5 -3
- data/node_modules/@humanwhocodes/object-schema/CHANGELOG.md +7 -0
- data/node_modules/@humanwhocodes/object-schema/package.json +6 -1
- data/node_modules/@humanwhocodes/retry/LICENSE +201 -0
- data/node_modules/@humanwhocodes/retry/README.md +122 -0
- data/node_modules/@humanwhocodes/retry/dist/retrier.cjs +267 -0
- data/node_modules/@humanwhocodes/retry/dist/retrier.d.ts +24 -0
- data/node_modules/@humanwhocodes/retry/dist/retrier.js +265 -0
- data/node_modules/@humanwhocodes/retry/dist/retrier.min.js +1 -0
- data/node_modules/@humanwhocodes/retry/dist/retrier.mjs +265 -0
- data/node_modules/@humanwhocodes/retry/package.json +74 -0
- data/node_modules/@types/semver-utils/LICENSE +21 -0
- data/node_modules/@types/semver-utils/README.md +34 -0
- data/node_modules/@types/semver-utils/index.d.ts +15 -0
- data/node_modules/@types/semver-utils/package.json +25 -0
- data/node_modules/acorn/CHANGELOG.md +36 -0
- data/node_modules/acorn/README.md +8 -3
- data/node_modules/acorn/dist/acorn.d.mts +857 -26
- data/node_modules/acorn/dist/acorn.d.ts +833 -268
- data/node_modules/acorn/dist/acorn.js +33 -21
- data/node_modules/acorn/dist/acorn.mjs +33 -21
- data/node_modules/acorn/package.json +1 -1
- data/node_modules/cacheable-request/node_modules/keyv/README.md +429 -0
- data/node_modules/cacheable-request/node_modules/keyv/package.json +57 -0
- data/node_modules/cacheable-request/node_modules/keyv/src/index.d.ts +112 -0
- data/node_modules/cacheable-request/node_modules/keyv/src/index.js +264 -0
- data/node_modules/doctrine/CHANGELOG.md +0 -7
- data/node_modules/doctrine/lib/doctrine.js +1 -0
- data/node_modules/doctrine/package.json +8 -9
- data/node_modules/eslint/README.md +31 -28
- data/node_modules/eslint/bin/eslint.js +4 -3
- data/node_modules/eslint/conf/ecma-version.js +16 -0
- data/node_modules/eslint/conf/globals.js +1 -0
- data/node_modules/eslint/conf/rule-type-list.json +3 -1
- data/node_modules/eslint/lib/api.js +7 -11
- data/node_modules/eslint/lib/cli-engine/cli-engine.js +14 -3
- data/node_modules/eslint/lib/cli-engine/formatters/formatters-meta.json +1 -29
- data/node_modules/eslint/lib/cli-engine/lint-result-cache.js +2 -2
- data/node_modules/eslint/lib/cli.js +115 -36
- data/node_modules/eslint/lib/config/default-config.js +3 -0
- data/node_modules/eslint/lib/config/flat-config-array.js +110 -24
- data/node_modules/eslint/lib/config/flat-config-helpers.js +41 -20
- data/node_modules/eslint/lib/config/flat-config-schema.js +1 -7
- data/node_modules/eslint/lib/config/rule-validator.js +42 -6
- data/node_modules/eslint/lib/eslint/eslint-helpers.js +116 -58
- data/node_modules/eslint/lib/eslint/eslint.js +892 -377
- data/node_modules/eslint/lib/eslint/index.js +2 -2
- data/node_modules/eslint/lib/eslint/legacy-eslint.js +728 -0
- data/node_modules/eslint/lib/linter/apply-disable-directives.js +59 -31
- data/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js +0 -1
- data/node_modules/eslint/lib/linter/code-path-analysis/code-path.js +32 -30
- data/node_modules/eslint/lib/linter/code-path-analysis/fork-context.js +1 -1
- data/node_modules/eslint/lib/linter/config-comment-parser.js +8 -11
- data/node_modules/eslint/lib/linter/index.js +1 -3
- data/node_modules/eslint/lib/linter/interpolate.js +24 -2
- data/node_modules/eslint/lib/linter/linter.js +428 -207
- data/node_modules/eslint/lib/linter/report-translator.js +3 -3
- data/node_modules/eslint/lib/linter/rules.js +6 -15
- data/node_modules/eslint/lib/linter/source-code-fixer.js +1 -1
- data/node_modules/eslint/lib/linter/timing.js +16 -8
- data/node_modules/eslint/lib/options.js +35 -3
- data/node_modules/eslint/lib/rule-tester/index.js +3 -1
- data/node_modules/eslint/lib/rule-tester/rule-tester.js +424 -347
- data/node_modules/eslint/lib/rules/array-bracket-newline.js +1 -1
- data/node_modules/eslint/lib/rules/array-bracket-spacing.js +1 -1
- data/node_modules/eslint/lib/rules/block-scoped-var.js +1 -1
- data/node_modules/eslint/lib/rules/callback-return.js +2 -2
- data/node_modules/eslint/lib/rules/camelcase.js +3 -5
- data/node_modules/eslint/lib/rules/capitalized-comments.js +10 -7
- data/node_modules/eslint/lib/rules/comma-dangle.js +1 -1
- data/node_modules/eslint/lib/rules/comma-style.js +2 -2
- data/node_modules/eslint/lib/rules/complexity.js +14 -1
- data/node_modules/eslint/lib/rules/constructor-super.js +99 -100
- data/node_modules/eslint/lib/rules/default-case.js +1 -1
- data/node_modules/eslint/lib/rules/eol-last.js +2 -2
- data/node_modules/eslint/lib/rules/function-paren-newline.js +2 -2
- data/node_modules/eslint/lib/rules/indent-legacy.js +5 -5
- data/node_modules/eslint/lib/rules/indent.js +5 -5
- data/node_modules/eslint/lib/rules/index.js +1 -2
- data/node_modules/eslint/lib/rules/key-spacing.js +2 -2
- data/node_modules/eslint/lib/rules/line-comment-position.js +1 -1
- data/node_modules/eslint/lib/rules/lines-around-directive.js +2 -2
- data/node_modules/eslint/lib/rules/max-depth.js +1 -1
- data/node_modules/eslint/lib/rules/max-len.js +3 -3
- data/node_modules/eslint/lib/rules/max-lines.js +3 -3
- data/node_modules/eslint/lib/rules/max-nested-callbacks.js +1 -1
- data/node_modules/eslint/lib/rules/max-params.js +1 -1
- data/node_modules/eslint/lib/rules/max-statements.js +1 -1
- data/node_modules/eslint/lib/rules/multiline-comment-style.js +7 -7
- data/node_modules/eslint/lib/rules/new-cap.js +1 -1
- data/node_modules/eslint/lib/rules/newline-after-var.js +1 -1
- data/node_modules/eslint/lib/rules/newline-before-return.js +1 -1
- data/node_modules/eslint/lib/rules/no-case-declarations.js +13 -1
- data/node_modules/eslint/lib/rules/no-constant-binary-expression.js +7 -8
- data/node_modules/eslint/lib/rules/no-constant-condition.js +18 -7
- data/node_modules/eslint/lib/rules/no-constructor-return.js +2 -2
- data/node_modules/eslint/lib/rules/no-dupe-class-members.js +2 -2
- data/node_modules/eslint/lib/rules/no-else-return.js +1 -1
- data/node_modules/eslint/lib/rules/no-empty-function.js +2 -2
- data/node_modules/eslint/lib/rules/no-empty-static-block.js +1 -1
- data/node_modules/eslint/lib/rules/no-extend-native.js +1 -2
- data/node_modules/eslint/lib/rules/no-extra-semi.js +1 -1
- data/node_modules/eslint/lib/rules/no-fallthrough.js +41 -16
- data/node_modules/eslint/lib/rules/no-implicit-coercion.js +66 -24
- data/node_modules/eslint/lib/rules/no-inner-declarations.js +23 -2
- data/node_modules/eslint/lib/rules/no-invalid-regexp.js +1 -1
- data/node_modules/eslint/lib/rules/no-invalid-this.js +1 -1
- data/node_modules/eslint/lib/rules/no-lone-blocks.js +3 -3
- data/node_modules/eslint/lib/rules/no-loss-of-precision.js +1 -1
- data/node_modules/eslint/lib/rules/no-misleading-character-class.js +225 -69
- data/node_modules/eslint/lib/rules/no-mixed-spaces-and-tabs.js +1 -1
- data/node_modules/eslint/lib/rules/no-multiple-empty-lines.js +1 -1
- data/node_modules/eslint/lib/rules/no-new-native-nonconstructor.js +1 -1
- data/node_modules/eslint/lib/rules/no-new-symbol.js +8 -1
- data/node_modules/eslint/lib/rules/no-restricted-globals.js +1 -1
- data/node_modules/eslint/lib/rules/no-restricted-imports.js +186 -40
- data/node_modules/eslint/lib/rules/no-restricted-modules.js +2 -2
- data/node_modules/eslint/lib/rules/no-return-await.js +1 -1
- data/node_modules/eslint/lib/rules/no-sequences.js +1 -0
- data/node_modules/eslint/lib/rules/no-this-before-super.js +45 -13
- data/node_modules/eslint/lib/rules/no-trailing-spaces.js +2 -3
- data/node_modules/eslint/lib/rules/no-unneeded-ternary.js +1 -1
- data/node_modules/eslint/lib/rules/no-unsafe-optional-chaining.js +1 -1
- data/node_modules/eslint/lib/rules/no-unused-private-class-members.js +1 -1
- data/node_modules/eslint/lib/rules/no-unused-vars.js +197 -36
- data/node_modules/eslint/lib/rules/no-useless-assignment.js +566 -0
- data/node_modules/eslint/lib/rules/no-useless-backreference.js +1 -1
- data/node_modules/eslint/lib/rules/no-useless-computed-key.js +2 -2
- data/node_modules/eslint/lib/rules/no-useless-return.js +7 -2
- data/node_modules/eslint/lib/rules/object-curly-spacing.js +3 -3
- data/node_modules/eslint/lib/rules/object-property-newline.js +1 -1
- data/node_modules/eslint/lib/rules/one-var.js +5 -5
- data/node_modules/eslint/lib/rules/padded-blocks.js +7 -7
- data/node_modules/eslint/lib/rules/prefer-arrow-callback.js +3 -3
- data/node_modules/eslint/lib/rules/prefer-reflect.js +1 -1
- data/node_modules/eslint/lib/rules/prefer-regex-literals.js +1 -1
- data/node_modules/eslint/lib/rules/prefer-template.js +1 -1
- data/node_modules/eslint/lib/rules/radix.js +2 -2
- data/node_modules/eslint/lib/rules/semi-style.js +1 -1
- data/node_modules/eslint/lib/rules/sort-imports.js +1 -1
- data/node_modules/eslint/lib/rules/sort-keys.js +1 -1
- data/node_modules/eslint/lib/rules/sort-vars.js +1 -1
- data/node_modules/eslint/lib/rules/space-unary-ops.js +1 -1
- data/node_modules/eslint/lib/rules/strict.js +1 -1
- data/node_modules/eslint/lib/rules/use-isnan.js +101 -7
- data/node_modules/eslint/lib/rules/utils/ast-utils.js +16 -7
- data/node_modules/eslint/lib/rules/utils/char-source.js +240 -0
- data/node_modules/eslint/lib/rules/utils/lazy-loading-rule-map.js +1 -1
- data/node_modules/eslint/lib/rules/utils/unicode/index.js +9 -4
- data/node_modules/eslint/lib/rules/yield-star-spacing.js +1 -1
- data/node_modules/eslint/lib/shared/runtime-info.js +1 -0
- data/node_modules/eslint/lib/shared/serialization.js +55 -0
- data/node_modules/eslint/lib/shared/stats.js +30 -0
- data/node_modules/eslint/lib/shared/string-utils.js +9 -11
- data/node_modules/eslint/lib/shared/types.js +35 -1
- data/node_modules/eslint/lib/source-code/index.js +3 -1
- data/node_modules/eslint/lib/source-code/source-code.js +299 -85
- data/node_modules/eslint/lib/source-code/token-store/backward-token-cursor.js +3 -3
- data/node_modules/eslint/lib/source-code/token-store/cursors.js +4 -2
- data/node_modules/eslint/lib/source-code/token-store/forward-token-comment-cursor.js +3 -3
- data/node_modules/eslint/lib/source-code/token-store/forward-token-cursor.js +3 -3
- data/node_modules/eslint/lib/source-code/token-store/index.js +2 -2
- data/node_modules/eslint/lib/unsupported-api.js +3 -5
- data/node_modules/eslint/messages/no-config-found.js +1 -1
- data/node_modules/eslint/messages/plugin-conflict.js +1 -1
- data/node_modules/eslint/messages/plugin-invalid.js +1 -1
- data/node_modules/eslint/messages/plugin-missing.js +1 -1
- data/node_modules/eslint/package.json +32 -29
- data/node_modules/eslint-scope/README.md +23 -2
- data/node_modules/eslint-scope/dist/eslint-scope.cjs +84 -58
- data/node_modules/eslint-scope/lib/index.js +0 -3
- data/node_modules/eslint-scope/lib/pattern-visitor.js +4 -3
- data/node_modules/eslint-scope/lib/referencer.js +13 -11
- data/node_modules/eslint-scope/lib/scope-manager.js +2 -8
- data/node_modules/eslint-scope/lib/scope.js +64 -43
- data/node_modules/eslint-scope/lib/version.js +1 -1
- data/node_modules/eslint-scope/package.json +21 -19
- data/node_modules/eslint-visitor-keys/README.md +1 -1
- data/node_modules/eslint-visitor-keys/package.json +2 -2
- data/node_modules/espree/README.md +1 -1
- data/node_modules/espree/dist/espree.cjs +1 -1
- data/node_modules/espree/lib/version.js +1 -1
- data/node_modules/espree/package.json +18 -20
- data/node_modules/file-entry-cache/LICENSE +1 -1
- data/node_modules/file-entry-cache/README.md +6 -3
- data/node_modules/file-entry-cache/package.json +19 -43
- data/node_modules/flat-cache/README.md +8 -6
- data/node_modules/flat-cache/changelog.md +155 -205
- data/node_modules/flat-cache/package.json +16 -39
- data/node_modules/flat-cache/src/cache.js +22 -26
- data/node_modules/flat-cache/src/del.js +28 -11
- data/node_modules/flat-cache/src/utils.js +39 -41
- data/node_modules/globals/globals.json +25 -0
- data/node_modules/globals/index.d.ts +2074 -3
- data/node_modules/globals/package.json +10 -7
- data/node_modules/globals/readme.md +2 -14
- data/node_modules/keyv/package.json +4 -4
- data/node_modules/keyv/src/index.js +6 -11
- data/node_modules/npm-check-updates/build/cli.js +22 -21
- data/node_modules/npm-check-updates/build/cli.js.map +1 -1
- data/node_modules/npm-check-updates/build/index-5sFb3Tvv.js +66 -0
- data/node_modules/npm-check-updates/build/index-5sFb3Tvv.js.map +1 -0
- data/node_modules/npm-check-updates/build/index-BmUFwMVL.js +6 -0
- data/node_modules/npm-check-updates/build/index-BmUFwMVL.js.map +1 -0
- data/node_modules/npm-check-updates/build/index.d.ts +5 -2
- data/node_modules/npm-check-updates/build/index.js +560 -1
- data/node_modules/npm-check-updates/build/index.js.map +1 -1
- data/node_modules/npm-check-updates/build/package.json +4 -3
- data/node_modules/npm-check-updates/build/src/index.js +1 -1
- data/node_modules/npm-check-updates/build/src/index.js.map +1 -1
- data/node_modules/npm-check-updates/build/src/lib/libnpmconfig/index.js +2 -2
- data/node_modules/npm-check-updates/build/src/lib/libnpmconfig/index.js.map +1 -1
- data/node_modules/npm-check-updates/build/src/package-managers/bun.js +0 -6
- data/node_modules/npm-check-updates/build/src/package-managers/bun.js.map +1 -1
- data/node_modules/npm-check-updates/package.json +4 -3
- data/node_modules/type-fest/index.d.ts +95 -2
- data/node_modules/type-fest/package.json +12 -18
- data/node_modules/type-fest/readme.md +299 -52
- data/node_modules/type-fest/source/async-return-type.d.ts +4 -2
- data/node_modules/type-fest/source/asyncify.d.ts +5 -3
- data/node_modules/type-fest/source/basic.d.ts +21 -43
- data/node_modules/type-fest/{ts41 → source}/camel-case.d.ts +18 -17
- data/node_modules/type-fest/source/camel-cased-properties-deep.d.ts +54 -0
- data/node_modules/type-fest/source/camel-cased-properties.d.ts +36 -0
- data/node_modules/type-fest/source/conditional-except.d.ts +6 -4
- data/node_modules/type-fest/source/conditional-keys.d.ts +5 -1
- data/node_modules/type-fest/source/conditional-pick.d.ts +5 -3
- data/node_modules/type-fest/{ts41 → source}/delimiter-case.d.ts +16 -8
- data/node_modules/type-fest/source/delimiter-cased-properties-deep.d.ts +60 -0
- data/node_modules/type-fest/source/delimiter-cased-properties.d.ts +37 -0
- data/node_modules/type-fest/source/entries.d.ts +8 -3
- data/node_modules/type-fest/source/entry.d.ts +8 -3
- data/node_modules/type-fest/source/exact.d.ts +73 -0
- data/node_modules/type-fest/source/except.d.ts +38 -3
- data/node_modules/type-fest/source/fixed-length-array.d.ts +6 -1
- data/node_modules/type-fest/source/get.d.ts +184 -0
- data/node_modules/type-fest/source/has-optional-keys.d.ts +21 -0
- data/node_modules/type-fest/source/has-required-keys.d.ts +59 -0
- data/node_modules/type-fest/source/includes.d.ts +22 -0
- data/node_modules/type-fest/source/internal.d.ts +59 -0
- data/node_modules/type-fest/source/invariant-of.d.ts +76 -0
- data/node_modules/type-fest/source/iterable-element.d.ts +8 -0
- data/node_modules/type-fest/source/join.d.ts +30 -0
- data/node_modules/type-fest/source/jsonify.d.ts +90 -0
- data/node_modules/type-fest/{ts41 → source}/kebab-case.d.ts +7 -5
- data/node_modules/type-fest/source/kebab-cased-properties-deep.d.ts +47 -0
- data/node_modules/type-fest/source/kebab-cased-properties.d.ts +30 -0
- data/node_modules/type-fest/source/last-array-element.d.ts +28 -0
- data/node_modules/type-fest/source/literal-to-primitive.d.ts +36 -0
- data/node_modules/type-fest/source/literal-union.d.ts +7 -5
- data/node_modules/type-fest/source/merge-exclusive.d.ts +3 -1
- data/node_modules/type-fest/source/merge.d.ts +8 -3
- data/node_modules/type-fest/source/multidimensional-array.d.ts +43 -0
- data/node_modules/type-fest/source/multidimensional-readonly-array.d.ts +47 -0
- data/node_modules/type-fest/source/mutable.d.ts +4 -21
- data/node_modules/type-fest/source/numeric.d.ts +170 -0
- data/node_modules/type-fest/source/observable-like.d.ts +62 -0
- data/node_modules/type-fest/source/opaque.d.ts +45 -3
- data/node_modules/type-fest/source/optional-keys-of.d.ts +38 -0
- data/node_modules/type-fest/source/package-json.d.ts +64 -12
- data/node_modules/type-fest/source/partial-deep.d.ts +57 -16
- data/node_modules/type-fest/source/partial-on-undefined-deep.d.ts +70 -0
- data/node_modules/type-fest/{ts41 → source}/pascal-case.d.ts +6 -4
- data/node_modules/type-fest/source/pascal-cased-properties-deep.d.ts +54 -0
- data/node_modules/type-fest/source/pascal-cased-properties.d.ts +34 -0
- data/node_modules/type-fest/source/primitive.d.ts +13 -0
- data/node_modules/type-fest/source/promisable.d.ts +5 -3
- data/node_modules/type-fest/source/promise-value.d.ts +9 -7
- data/node_modules/type-fest/source/readonly-deep.d.ts +33 -7
- data/node_modules/type-fest/source/readonly-tuple.d.ts +41 -0
- data/node_modules/type-fest/source/remove-index-signature.d.ts +104 -0
- data/node_modules/type-fest/source/replace.d.ts +67 -0
- data/node_modules/type-fest/source/require-all-or-none.d.ts +36 -0
- data/node_modules/type-fest/source/require-at-least-one.d.ts +5 -3
- data/node_modules/type-fest/source/require-exactly-one.d.ts +4 -5
- data/node_modules/type-fest/source/required-keys-of.d.ts +29 -0
- data/node_modules/type-fest/source/schema.d.ts +72 -0
- data/node_modules/type-fest/source/screaming-snake-case.d.ts +33 -0
- data/node_modules/type-fest/source/set-non-nullable.d.ts +35 -0
- data/node_modules/type-fest/source/set-optional.d.ts +12 -11
- data/node_modules/type-fest/source/set-required.d.ts +12 -11
- data/node_modules/type-fest/source/set-return-type.d.ts +3 -1
- data/node_modules/type-fest/source/simplify.d.ts +83 -0
- data/node_modules/type-fest/{ts41 → source}/snake-case.d.ts +7 -4
- data/node_modules/type-fest/source/snake-cased-properties-deep.d.ts +47 -0
- data/node_modules/type-fest/source/snake-cased-properties.d.ts +30 -0
- data/node_modules/type-fest/source/split.d.ts +29 -0
- data/node_modules/type-fest/source/spread.d.ts +85 -0
- data/node_modules/type-fest/source/string-key-of.d.ts +25 -0
- data/node_modules/type-fest/source/stringified.d.ts +3 -1
- data/node_modules/type-fest/source/trim.d.ts +25 -0
- data/node_modules/type-fest/source/tsconfig-json.d.ts +316 -14
- data/node_modules/type-fest/source/typed-array.d.ts +17 -0
- data/node_modules/type-fest/source/union-to-intersection.d.ts +4 -2
- data/node_modules/type-fest/source/value-of.d.ts +3 -1
- data/node_modules/type-fest/source/writable.d.ts +40 -0
- data/package.json +2 -2
- metadata +86 -63
- data/linters/rubocop-2.7.6.yml +0 -86
- data/node_modules/@humanwhocodes/object-schema/tests/merge-strategy.js +0 -66
- data/node_modules/@humanwhocodes/object-schema/tests/object-schema.js +0 -659
- data/node_modules/@humanwhocodes/object-schema/tests/validation-strategy.js +0 -186
- data/node_modules/eslint/conf/config-schema.js +0 -93
- data/node_modules/eslint/lib/cli-engine/formatters/checkstyle.js +0 -60
- data/node_modules/eslint/lib/cli-engine/formatters/compact.js +0 -60
- data/node_modules/eslint/lib/cli-engine/formatters/jslint-xml.js +0 -41
- data/node_modules/eslint/lib/cli-engine/formatters/junit.js +0 -82
- data/node_modules/eslint/lib/cli-engine/formatters/tap.js +0 -95
- data/node_modules/eslint/lib/cli-engine/formatters/unix.js +0 -58
- data/node_modules/eslint/lib/cli-engine/formatters/visualstudio.js +0 -63
- data/node_modules/eslint/lib/cli-engine/xml-escape.js +0 -34
- data/node_modules/eslint/lib/eslint/flat-eslint.js +0 -1155
- data/node_modules/eslint/lib/rule-tester/flat-rule-tester.js +0 -1131
- data/node_modules/eslint/lib/rules/require-jsdoc.js +0 -122
- data/node_modules/eslint/lib/rules/utils/patterns/letters.js +0 -36
- data/node_modules/eslint/lib/rules/valid-jsdoc.js +0 -516
- data/node_modules/eslint/lib/shared/config-validator.js +0 -347
- data/node_modules/eslint/lib/shared/deprecation-warnings.js +0 -58
- data/node_modules/eslint/lib/shared/relative-module-resolver.js +0 -50
- data/node_modules/file-entry-cache/changelog.md +0 -163
- data/node_modules/flat-cache/node_modules/rimraf/CHANGELOG.md +0 -65
- data/node_modules/flat-cache/node_modules/rimraf/LICENSE +0 -15
- data/node_modules/flat-cache/node_modules/rimraf/README.md +0 -101
- data/node_modules/flat-cache/node_modules/rimraf/bin.js +0 -68
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/LICENSE +0 -21
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/README.md +0 -378
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/common.js +0 -238
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/glob.js +0 -790
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/node_modules/minimatch/LICENSE +0 -15
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/node_modules/minimatch/README.md +0 -230
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/node_modules/minimatch/minimatch.js +0 -947
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/LICENSE +0 -21
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -129
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -201
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -47
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/node_modules/minimatch/package.json +0 -33
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/package.json +0 -55
- data/node_modules/flat-cache/node_modules/rimraf/node_modules/glob/sync.js +0 -486
- data/node_modules/flat-cache/node_modules/rimraf/package.json +0 -32
- data/node_modules/flat-cache/node_modules/rimraf/rimraf.js +0 -360
- data/node_modules/npm-check-updates/build/index-CI_x-D21.js +0 -593
- data/node_modules/npm-check-updates/build/index-CI_x-D21.js.map +0 -1
- data/node_modules/npm-check-updates/build/index-Ci8A2QXv.js +0 -6
- data/node_modules/npm-check-updates/build/index-Ci8A2QXv.js.map +0 -1
- data/node_modules/npm-check-updates/build/index-DgVn3Gax.js +0 -36
- data/node_modules/npm-check-updates/build/index-DgVn3Gax.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/SpawnPleaseOptions.d.ts +0 -6
- data/node_modules/npm-check-updates/build/src/types/SpawnPleaseOptions.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/SpawnPleaseOptions.js.map +0 -1
- data/node_modules/type-fest/base.d.ts +0 -38
- data/node_modules/type-fest/license +0 -9
- data/node_modules/type-fest/source/utilities.d.ts +0 -3
- data/node_modules/type-fest/ts41/index.d.ts +0 -9
@@ -1,292 +1,857 @@
|
|
1
|
-
export
|
2
|
-
|
1
|
+
export interface Node {
|
2
|
+
start: number
|
3
|
+
end: number
|
4
|
+
type: string
|
5
|
+
range?: [number, number]
|
6
|
+
loc?: SourceLocation | null
|
7
|
+
}
|
3
8
|
|
4
|
-
|
5
|
-
|
9
|
+
export interface SourceLocation {
|
10
|
+
source?: string | null
|
11
|
+
start: Position
|
12
|
+
end: Position
|
13
|
+
}
|
6
14
|
|
7
|
-
|
15
|
+
export interface Position {
|
16
|
+
/** 1-based */
|
17
|
+
line: number
|
18
|
+
/** 0-based */
|
19
|
+
column: number
|
20
|
+
}
|
8
21
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
22
|
+
export interface Identifier extends Node {
|
23
|
+
type: "Identifier"
|
24
|
+
name: string
|
25
|
+
}
|
13
26
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
allowReserved?: boolean | 'never'
|
22
|
-
allowReturnOutsideFunction?: boolean
|
23
|
-
allowImportExportEverywhere?: boolean
|
24
|
-
allowAwaitOutsideFunction?: boolean
|
25
|
-
allowSuperOutsideMethod?: boolean
|
26
|
-
allowHashBang?: boolean
|
27
|
-
locations?: boolean
|
28
|
-
onToken?: ((token: Token) => any) | Token[]
|
29
|
-
onComment?: ((
|
30
|
-
isBlock: boolean, text: string, start: number, end: number, startLoc?: Position,
|
31
|
-
endLoc?: Position
|
32
|
-
) => void) | Comment[]
|
33
|
-
ranges?: boolean
|
34
|
-
program?: Node
|
35
|
-
sourceFile?: string
|
36
|
-
directSourceFile?: string
|
37
|
-
preserveParens?: boolean
|
27
|
+
export interface Literal extends Node {
|
28
|
+
type: "Literal"
|
29
|
+
value?: string | boolean | null | number | RegExp | bigint
|
30
|
+
raw?: string
|
31
|
+
regex?: {
|
32
|
+
pattern: string
|
33
|
+
flags: string
|
38
34
|
}
|
35
|
+
bigint?: string
|
36
|
+
}
|
39
37
|
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
start: number;
|
46
|
-
end: number;
|
47
|
-
input: string;
|
48
|
-
type: TokenType;
|
49
|
-
|
50
|
-
// state.js
|
51
|
-
constructor(options: Options, input: string, startPos?: number)
|
52
|
-
parse(this: Parser): Node
|
53
|
-
|
54
|
-
// tokenize.js
|
55
|
-
next(): void;
|
56
|
-
nextToken(): void;
|
57
|
-
|
58
|
-
// statement.js
|
59
|
-
parseTopLevel(node: Node): Node;
|
60
|
-
|
61
|
-
// node.js
|
62
|
-
finishNode(node: Node, type: string): Node;
|
63
|
-
finishNodeAt(node: Node, type: string, pos: number, loc: Position): Node;
|
64
|
-
|
65
|
-
// location.js
|
66
|
-
raise(pos: number, message: string) : void;
|
67
|
-
raiseRecoverable?(pos: number, message: string) : void;
|
68
|
-
|
69
|
-
// parseutils.js
|
70
|
-
unexpected(pos: number) : void;
|
71
|
-
|
72
|
-
// index.js
|
73
|
-
static acorn: typeof acorn;
|
74
|
-
|
75
|
-
// state.js
|
76
|
-
static parse(this: typeof Parser, input: string, options: Options): Node
|
77
|
-
static parseExpressionAt(this: typeof Parser, input: string, pos: number, options: Options): Node
|
78
|
-
static tokenizer(this: typeof Parser, input: string, options: Options): {
|
79
|
-
getToken(): Token
|
80
|
-
[Symbol.iterator](): Iterator<Token>
|
81
|
-
}
|
82
|
-
static extend(this: typeof Parser, ...plugins: ((BaseParser: typeof Parser) => typeof Parser)[]): typeof Parser
|
83
|
-
}
|
38
|
+
export interface Program extends Node {
|
39
|
+
type: "Program"
|
40
|
+
body: Array<Statement | ModuleDeclaration>
|
41
|
+
sourceType: "script" | "module"
|
42
|
+
}
|
84
43
|
|
85
|
-
|
44
|
+
export interface Function extends Node {
|
45
|
+
id?: Identifier | null
|
46
|
+
params: Array<Pattern>
|
47
|
+
body: BlockStatement | Expression
|
48
|
+
generator: boolean
|
49
|
+
expression: boolean
|
50
|
+
async: boolean
|
51
|
+
}
|
86
52
|
|
87
|
-
|
53
|
+
export interface ExpressionStatement extends Node {
|
54
|
+
type: "ExpressionStatement"
|
55
|
+
expression: Expression | Literal
|
56
|
+
directive?: string
|
57
|
+
}
|
88
58
|
|
89
|
-
|
59
|
+
export interface BlockStatement extends Node {
|
60
|
+
type: "BlockStatement"
|
61
|
+
body: Array<Statement>
|
62
|
+
}
|
90
63
|
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
source?: string | null
|
95
|
-
constructor(p: Parser, start: Position, end: Position)
|
96
|
-
}
|
64
|
+
export interface EmptyStatement extends Node {
|
65
|
+
type: "EmptyStatement"
|
66
|
+
}
|
97
67
|
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
end: number
|
102
|
-
loc?: SourceLocation
|
103
|
-
sourceFile?: string
|
104
|
-
range?: [number, number]
|
105
|
-
constructor(parser: Parser, pos: number, loc?: SourceLocation)
|
106
|
-
}
|
68
|
+
export interface DebuggerStatement extends Node {
|
69
|
+
type: "DebuggerStatement"
|
70
|
+
}
|
107
71
|
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
isLoop: boolean
|
114
|
-
isAssign: boolean
|
115
|
-
prefix: boolean
|
116
|
-
postfix: boolean
|
117
|
-
binop: number
|
118
|
-
updateContext?: (prevType: TokenType) => void
|
119
|
-
constructor(label: string, conf?: any)
|
120
|
-
}
|
72
|
+
export interface WithStatement extends Node {
|
73
|
+
type: "WithStatement"
|
74
|
+
object: Expression
|
75
|
+
body: Statement
|
76
|
+
}
|
121
77
|
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
name: TokenType
|
127
|
-
privateId: TokenType
|
128
|
-
eof: TokenType
|
129
|
-
bracketL: TokenType
|
130
|
-
bracketR: TokenType
|
131
|
-
braceL: TokenType
|
132
|
-
braceR: TokenType
|
133
|
-
parenL: TokenType
|
134
|
-
parenR: TokenType
|
135
|
-
comma: TokenType
|
136
|
-
semi: TokenType
|
137
|
-
colon: TokenType
|
138
|
-
dot: TokenType
|
139
|
-
question: TokenType
|
140
|
-
questionDot: TokenType
|
141
|
-
arrow: TokenType
|
142
|
-
template: TokenType
|
143
|
-
invalidTemplate: TokenType
|
144
|
-
ellipsis: TokenType
|
145
|
-
backQuote: TokenType
|
146
|
-
dollarBraceL: TokenType
|
147
|
-
eq: TokenType
|
148
|
-
assign: TokenType
|
149
|
-
incDec: TokenType
|
150
|
-
prefix: TokenType
|
151
|
-
logicalOR: TokenType
|
152
|
-
logicalAND: TokenType
|
153
|
-
bitwiseOR: TokenType
|
154
|
-
bitwiseXOR: TokenType
|
155
|
-
bitwiseAND: TokenType
|
156
|
-
equality: TokenType
|
157
|
-
relational: TokenType
|
158
|
-
bitShift: TokenType
|
159
|
-
plusMin: TokenType
|
160
|
-
modulo: TokenType
|
161
|
-
star: TokenType
|
162
|
-
slash: TokenType
|
163
|
-
starstar: TokenType
|
164
|
-
coalesce: TokenType
|
165
|
-
_break: TokenType
|
166
|
-
_case: TokenType
|
167
|
-
_catch: TokenType
|
168
|
-
_continue: TokenType
|
169
|
-
_debugger: TokenType
|
170
|
-
_default: TokenType
|
171
|
-
_do: TokenType
|
172
|
-
_else: TokenType
|
173
|
-
_finally: TokenType
|
174
|
-
_for: TokenType
|
175
|
-
_function: TokenType
|
176
|
-
_if: TokenType
|
177
|
-
_return: TokenType
|
178
|
-
_switch: TokenType
|
179
|
-
_throw: TokenType
|
180
|
-
_try: TokenType
|
181
|
-
_var: TokenType
|
182
|
-
_const: TokenType
|
183
|
-
_while: TokenType
|
184
|
-
_with: TokenType
|
185
|
-
_new: TokenType
|
186
|
-
_this: TokenType
|
187
|
-
_super: TokenType
|
188
|
-
_class: TokenType
|
189
|
-
_extends: TokenType
|
190
|
-
_export: TokenType
|
191
|
-
_import: TokenType
|
192
|
-
_null: TokenType
|
193
|
-
_true: TokenType
|
194
|
-
_false: TokenType
|
195
|
-
_in: TokenType
|
196
|
-
_instanceof: TokenType
|
197
|
-
_typeof: TokenType
|
198
|
-
_void: TokenType
|
199
|
-
_delete: TokenType
|
200
|
-
}
|
78
|
+
export interface ReturnStatement extends Node {
|
79
|
+
type: "ReturnStatement"
|
80
|
+
argument?: Expression | null
|
81
|
+
}
|
201
82
|
|
202
|
-
|
203
|
-
|
204
|
-
|
83
|
+
export interface LabeledStatement extends Node {
|
84
|
+
type: "LabeledStatement"
|
85
|
+
label: Identifier
|
86
|
+
body: Statement
|
87
|
+
}
|
205
88
|
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
p_stat: TokContext
|
211
|
-
p_expr: TokContext
|
212
|
-
q_tmpl: TokContext
|
213
|
-
f_expr: TokContext
|
214
|
-
f_stat: TokContext
|
215
|
-
f_expr_gen: TokContext
|
216
|
-
f_gen: TokContext
|
217
|
-
}
|
89
|
+
export interface BreakStatement extends Node {
|
90
|
+
type: "BreakStatement"
|
91
|
+
label?: Identifier | null
|
92
|
+
}
|
218
93
|
|
219
|
-
|
94
|
+
export interface ContinueStatement extends Node {
|
95
|
+
type: "ContinueStatement"
|
96
|
+
label?: Identifier | null
|
97
|
+
}
|
220
98
|
|
221
|
-
|
99
|
+
export interface IfStatement extends Node {
|
100
|
+
type: "IfStatement"
|
101
|
+
test: Expression
|
102
|
+
consequent: Statement
|
103
|
+
alternate?: Statement | null
|
104
|
+
}
|
222
105
|
|
223
|
-
|
224
|
-
|
106
|
+
export interface SwitchStatement extends Node {
|
107
|
+
type: "SwitchStatement"
|
108
|
+
discriminant: Expression
|
109
|
+
cases: Array<SwitchCase>
|
110
|
+
}
|
225
111
|
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
112
|
+
export interface SwitchCase extends Node {
|
113
|
+
type: "SwitchCase"
|
114
|
+
test?: Expression | null
|
115
|
+
consequent: Array<Statement>
|
116
|
+
}
|
117
|
+
|
118
|
+
export interface ThrowStatement extends Node {
|
119
|
+
type: "ThrowStatement"
|
120
|
+
argument: Expression
|
121
|
+
}
|
234
122
|
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
123
|
+
export interface TryStatement extends Node {
|
124
|
+
type: "TryStatement"
|
125
|
+
block: BlockStatement
|
126
|
+
handler?: CatchClause | null
|
127
|
+
finalizer?: BlockStatement | null
|
128
|
+
}
|
129
|
+
|
130
|
+
export interface CatchClause extends Node {
|
131
|
+
type: "CatchClause"
|
132
|
+
param?: Pattern | null
|
133
|
+
body: BlockStatement
|
134
|
+
}
|
135
|
+
|
136
|
+
export interface WhileStatement extends Node {
|
137
|
+
type: "WhileStatement"
|
138
|
+
test: Expression
|
139
|
+
body: Statement
|
140
|
+
}
|
141
|
+
|
142
|
+
export interface DoWhileStatement extends Node {
|
143
|
+
type: "DoWhileStatement"
|
144
|
+
body: Statement
|
145
|
+
test: Expression
|
146
|
+
}
|
147
|
+
|
148
|
+
export interface ForStatement extends Node {
|
149
|
+
type: "ForStatement"
|
150
|
+
init?: VariableDeclaration | Expression | null
|
151
|
+
test?: Expression | null
|
152
|
+
update?: Expression | null
|
153
|
+
body: Statement
|
154
|
+
}
|
155
|
+
|
156
|
+
export interface ForInStatement extends Node {
|
157
|
+
type: "ForInStatement"
|
158
|
+
left: VariableDeclaration | Pattern
|
159
|
+
right: Expression
|
160
|
+
body: Statement
|
161
|
+
}
|
162
|
+
|
163
|
+
export interface FunctionDeclaration extends Function {
|
164
|
+
type: "FunctionDeclaration"
|
165
|
+
id: Identifier
|
166
|
+
body: BlockStatement
|
167
|
+
}
|
168
|
+
|
169
|
+
export interface VariableDeclaration extends Node {
|
170
|
+
type: "VariableDeclaration"
|
171
|
+
declarations: Array<VariableDeclarator>
|
172
|
+
kind: "var" | "let" | "const"
|
173
|
+
}
|
174
|
+
|
175
|
+
export interface VariableDeclarator extends Node {
|
176
|
+
type: "VariableDeclarator"
|
177
|
+
id: Pattern
|
178
|
+
init?: Expression | null
|
179
|
+
}
|
180
|
+
|
181
|
+
export interface ThisExpression extends Node {
|
182
|
+
type: "ThisExpression"
|
183
|
+
}
|
184
|
+
|
185
|
+
export interface ArrayExpression extends Node {
|
186
|
+
type: "ArrayExpression"
|
187
|
+
elements: Array<Expression | SpreadElement | null>
|
188
|
+
}
|
189
|
+
|
190
|
+
export interface ObjectExpression extends Node {
|
191
|
+
type: "ObjectExpression"
|
192
|
+
properties: Array<Property | SpreadElement>
|
193
|
+
}
|
194
|
+
|
195
|
+
export interface Property extends Node {
|
196
|
+
type: "Property"
|
197
|
+
key: Expression
|
198
|
+
value: Expression
|
199
|
+
kind: "init" | "get" | "set"
|
200
|
+
method: boolean
|
201
|
+
shorthand: boolean
|
202
|
+
computed: boolean
|
203
|
+
}
|
204
|
+
|
205
|
+
export interface FunctionExpression extends Function {
|
206
|
+
type: "FunctionExpression"
|
207
|
+
body: BlockStatement
|
208
|
+
}
|
209
|
+
|
210
|
+
export interface UnaryExpression extends Node {
|
211
|
+
type: "UnaryExpression"
|
212
|
+
operator: UnaryOperator
|
213
|
+
prefix: boolean
|
214
|
+
argument: Expression
|
215
|
+
}
|
216
|
+
|
217
|
+
export type UnaryOperator = "-" | "+" | "!" | "~" | "typeof" | "void" | "delete"
|
218
|
+
|
219
|
+
export interface UpdateExpression extends Node {
|
220
|
+
type: "UpdateExpression"
|
221
|
+
operator: UpdateOperator
|
222
|
+
argument: Expression
|
223
|
+
prefix: boolean
|
224
|
+
}
|
225
|
+
|
226
|
+
export type UpdateOperator = "++" | "--"
|
227
|
+
|
228
|
+
export interface BinaryExpression extends Node {
|
229
|
+
type: "BinaryExpression"
|
230
|
+
operator: BinaryOperator
|
231
|
+
left: Expression | PrivateIdentifier
|
232
|
+
right: Expression
|
233
|
+
}
|
234
|
+
|
235
|
+
export type BinaryOperator = "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "|" | "^" | "&" | "in" | "instanceof" | "**"
|
236
|
+
|
237
|
+
export interface AssignmentExpression extends Node {
|
238
|
+
type: "AssignmentExpression"
|
239
|
+
operator: AssignmentOperator
|
240
|
+
left: Pattern
|
241
|
+
right: Expression
|
242
|
+
}
|
243
|
+
|
244
|
+
export type AssignmentOperator = "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=" | "**=" | "||=" | "&&=" | "??="
|
245
|
+
|
246
|
+
export interface LogicalExpression extends Node {
|
247
|
+
type: "LogicalExpression"
|
248
|
+
operator: LogicalOperator
|
249
|
+
left: Expression
|
250
|
+
right: Expression
|
251
|
+
}
|
252
|
+
|
253
|
+
export type LogicalOperator = "||" | "&&" | "??"
|
254
|
+
|
255
|
+
export interface MemberExpression extends Node {
|
256
|
+
type: "MemberExpression"
|
257
|
+
object: Expression | Super
|
258
|
+
property: Expression | PrivateIdentifier
|
259
|
+
computed: boolean
|
260
|
+
optional: boolean
|
261
|
+
}
|
262
|
+
|
263
|
+
export interface ConditionalExpression extends Node {
|
264
|
+
type: "ConditionalExpression"
|
265
|
+
test: Expression
|
266
|
+
alternate: Expression
|
267
|
+
consequent: Expression
|
268
|
+
}
|
269
|
+
|
270
|
+
export interface CallExpression extends Node {
|
271
|
+
type: "CallExpression"
|
272
|
+
callee: Expression | Super
|
273
|
+
arguments: Array<Expression | SpreadElement>
|
274
|
+
optional: boolean
|
275
|
+
}
|
276
|
+
|
277
|
+
export interface NewExpression extends Node {
|
278
|
+
type: "NewExpression"
|
279
|
+
callee: Expression
|
280
|
+
arguments: Array<Expression | SpreadElement>
|
281
|
+
}
|
282
|
+
|
283
|
+
export interface SequenceExpression extends Node {
|
284
|
+
type: "SequenceExpression"
|
285
|
+
expressions: Array<Expression>
|
286
|
+
}
|
287
|
+
|
288
|
+
export interface ForOfStatement extends Node {
|
289
|
+
type: "ForOfStatement"
|
290
|
+
left: VariableDeclaration | Pattern
|
291
|
+
right: Expression
|
292
|
+
body: Statement
|
293
|
+
await: boolean
|
294
|
+
}
|
295
|
+
|
296
|
+
export interface Super extends Node {
|
297
|
+
type: "Super"
|
298
|
+
}
|
299
|
+
|
300
|
+
export interface SpreadElement extends Node {
|
301
|
+
type: "SpreadElement"
|
302
|
+
argument: Expression
|
303
|
+
}
|
304
|
+
|
305
|
+
export interface ArrowFunctionExpression extends Function {
|
306
|
+
type: "ArrowFunctionExpression"
|
307
|
+
}
|
308
|
+
|
309
|
+
export interface YieldExpression extends Node {
|
310
|
+
type: "YieldExpression"
|
311
|
+
argument?: Expression | null
|
312
|
+
delegate: boolean
|
313
|
+
}
|
314
|
+
|
315
|
+
export interface TemplateLiteral extends Node {
|
316
|
+
type: "TemplateLiteral"
|
317
|
+
quasis: Array<TemplateElement>
|
318
|
+
expressions: Array<Expression>
|
319
|
+
}
|
320
|
+
|
321
|
+
export interface TaggedTemplateExpression extends Node {
|
322
|
+
type: "TaggedTemplateExpression"
|
323
|
+
tag: Expression
|
324
|
+
quasi: TemplateLiteral
|
325
|
+
}
|
326
|
+
|
327
|
+
export interface TemplateElement extends Node {
|
328
|
+
type: "TemplateElement"
|
329
|
+
tail: boolean
|
330
|
+
value: {
|
331
|
+
cooked?: string | null
|
332
|
+
raw: string
|
243
333
|
}
|
334
|
+
}
|
335
|
+
|
336
|
+
export interface AssignmentProperty extends Node {
|
337
|
+
type: "Property"
|
338
|
+
key: Expression
|
339
|
+
value: Pattern
|
340
|
+
kind: "init"
|
341
|
+
method: false
|
342
|
+
shorthand: boolean
|
343
|
+
computed: boolean
|
344
|
+
}
|
345
|
+
|
346
|
+
export interface ObjectPattern extends Node {
|
347
|
+
type: "ObjectPattern"
|
348
|
+
properties: Array<AssignmentProperty | RestElement>
|
349
|
+
}
|
350
|
+
|
351
|
+
export interface ArrayPattern extends Node {
|
352
|
+
type: "ArrayPattern"
|
353
|
+
elements: Array<Pattern | null>
|
354
|
+
}
|
355
|
+
|
356
|
+
export interface RestElement extends Node {
|
357
|
+
type: "RestElement"
|
358
|
+
argument: Pattern
|
359
|
+
}
|
360
|
+
|
361
|
+
export interface AssignmentPattern extends Node {
|
362
|
+
type: "AssignmentPattern"
|
363
|
+
left: Pattern
|
364
|
+
right: Expression
|
365
|
+
}
|
366
|
+
|
367
|
+
export interface Class extends Node {
|
368
|
+
id?: Identifier | null
|
369
|
+
superClass?: Expression | null
|
370
|
+
body: ClassBody
|
371
|
+
}
|
372
|
+
|
373
|
+
export interface ClassBody extends Node {
|
374
|
+
type: "ClassBody"
|
375
|
+
body: Array<MethodDefinition | PropertyDefinition | StaticBlock>
|
376
|
+
}
|
377
|
+
|
378
|
+
export interface MethodDefinition extends Node {
|
379
|
+
type: "MethodDefinition"
|
380
|
+
key: Expression | PrivateIdentifier
|
381
|
+
value: FunctionExpression
|
382
|
+
kind: "constructor" | "method" | "get" | "set"
|
383
|
+
computed: boolean
|
384
|
+
static: boolean
|
385
|
+
}
|
386
|
+
|
387
|
+
export interface ClassDeclaration extends Class {
|
388
|
+
type: "ClassDeclaration"
|
389
|
+
id: Identifier
|
390
|
+
}
|
391
|
+
|
392
|
+
export interface ClassExpression extends Class {
|
393
|
+
type: "ClassExpression"
|
394
|
+
}
|
395
|
+
|
396
|
+
export interface MetaProperty extends Node {
|
397
|
+
type: "MetaProperty"
|
398
|
+
meta: Identifier
|
399
|
+
property: Identifier
|
400
|
+
}
|
401
|
+
|
402
|
+
export interface ImportDeclaration extends Node {
|
403
|
+
type: "ImportDeclaration"
|
404
|
+
specifiers: Array<ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier>
|
405
|
+
source: Literal
|
406
|
+
}
|
407
|
+
|
408
|
+
export interface ImportSpecifier extends Node {
|
409
|
+
type: "ImportSpecifier"
|
410
|
+
imported: Identifier | Literal
|
411
|
+
local: Identifier
|
412
|
+
}
|
413
|
+
|
414
|
+
export interface ImportDefaultSpecifier extends Node {
|
415
|
+
type: "ImportDefaultSpecifier"
|
416
|
+
local: Identifier
|
417
|
+
}
|
418
|
+
|
419
|
+
export interface ImportNamespaceSpecifier extends Node {
|
420
|
+
type: "ImportNamespaceSpecifier"
|
421
|
+
local: Identifier
|
422
|
+
}
|
423
|
+
|
424
|
+
export interface ExportNamedDeclaration extends Node {
|
425
|
+
type: "ExportNamedDeclaration"
|
426
|
+
declaration?: Declaration | null
|
427
|
+
specifiers: Array<ExportSpecifier>
|
428
|
+
source?: Literal | null
|
429
|
+
}
|
430
|
+
|
431
|
+
export interface ExportSpecifier extends Node {
|
432
|
+
type: "ExportSpecifier"
|
433
|
+
exported: Identifier | Literal
|
434
|
+
local: Identifier | Literal
|
435
|
+
}
|
436
|
+
|
437
|
+
export interface AnonymousFunctionDeclaration extends Function {
|
438
|
+
type: "FunctionDeclaration"
|
439
|
+
id: null
|
440
|
+
body: BlockStatement
|
441
|
+
}
|
442
|
+
|
443
|
+
export interface AnonymousClassDeclaration extends Class {
|
444
|
+
type: "ClassDeclaration"
|
445
|
+
id: null
|
446
|
+
}
|
447
|
+
|
448
|
+
export interface ExportDefaultDeclaration extends Node {
|
449
|
+
type: "ExportDefaultDeclaration"
|
450
|
+
declaration: AnonymousFunctionDeclaration | FunctionDeclaration | AnonymousClassDeclaration | ClassDeclaration | Expression
|
451
|
+
}
|
244
452
|
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
453
|
+
export interface ExportAllDeclaration extends Node {
|
454
|
+
type: "ExportAllDeclaration"
|
455
|
+
source: Literal
|
456
|
+
exported?: Identifier | Literal | null
|
457
|
+
}
|
458
|
+
|
459
|
+
export interface AwaitExpression extends Node {
|
460
|
+
type: "AwaitExpression"
|
461
|
+
argument: Expression
|
462
|
+
}
|
463
|
+
|
464
|
+
export interface ChainExpression extends Node {
|
465
|
+
type: "ChainExpression"
|
466
|
+
expression: MemberExpression | CallExpression
|
467
|
+
}
|
468
|
+
|
469
|
+
export interface ImportExpression extends Node {
|
470
|
+
type: "ImportExpression"
|
471
|
+
source: Expression
|
472
|
+
}
|
473
|
+
|
474
|
+
export interface ParenthesizedExpression extends Node {
|
475
|
+
type: "ParenthesizedExpression"
|
476
|
+
expression: Expression
|
477
|
+
}
|
478
|
+
|
479
|
+
export interface PropertyDefinition extends Node {
|
480
|
+
type: "PropertyDefinition"
|
481
|
+
key: Expression | PrivateIdentifier
|
482
|
+
value?: Expression | null
|
483
|
+
computed: boolean
|
484
|
+
static: boolean
|
485
|
+
}
|
486
|
+
|
487
|
+
export interface PrivateIdentifier extends Node {
|
488
|
+
type: "PrivateIdentifier"
|
489
|
+
name: string
|
490
|
+
}
|
491
|
+
|
492
|
+
export interface StaticBlock extends Node {
|
493
|
+
type: "StaticBlock"
|
494
|
+
body: Array<Statement>
|
495
|
+
}
|
496
|
+
|
497
|
+
export type Statement =
|
498
|
+
| ExpressionStatement
|
499
|
+
| BlockStatement
|
500
|
+
| EmptyStatement
|
501
|
+
| DebuggerStatement
|
502
|
+
| WithStatement
|
503
|
+
| ReturnStatement
|
504
|
+
| LabeledStatement
|
505
|
+
| BreakStatement
|
506
|
+
| ContinueStatement
|
507
|
+
| IfStatement
|
508
|
+
| SwitchStatement
|
509
|
+
| ThrowStatement
|
510
|
+
| TryStatement
|
511
|
+
| WhileStatement
|
512
|
+
| DoWhileStatement
|
513
|
+
| ForStatement
|
514
|
+
| ForInStatement
|
515
|
+
| ForOfStatement
|
516
|
+
| Declaration
|
517
|
+
|
518
|
+
export type Declaration =
|
519
|
+
| FunctionDeclaration
|
520
|
+
| VariableDeclaration
|
521
|
+
| ClassDeclaration
|
522
|
+
|
523
|
+
export type Expression =
|
524
|
+
| Identifier
|
525
|
+
| Literal
|
526
|
+
| ThisExpression
|
527
|
+
| ArrayExpression
|
528
|
+
| ObjectExpression
|
529
|
+
| FunctionExpression
|
530
|
+
| UnaryExpression
|
531
|
+
| UpdateExpression
|
532
|
+
| BinaryExpression
|
533
|
+
| AssignmentExpression
|
534
|
+
| LogicalExpression
|
535
|
+
| MemberExpression
|
536
|
+
| ConditionalExpression
|
537
|
+
| CallExpression
|
538
|
+
| NewExpression
|
539
|
+
| SequenceExpression
|
540
|
+
| ArrowFunctionExpression
|
541
|
+
| YieldExpression
|
542
|
+
| TemplateLiteral
|
543
|
+
| TaggedTemplateExpression
|
544
|
+
| ClassExpression
|
545
|
+
| MetaProperty
|
546
|
+
| AwaitExpression
|
547
|
+
| ChainExpression
|
548
|
+
| ImportExpression
|
549
|
+
| ParenthesizedExpression
|
550
|
+
|
551
|
+
export type Pattern =
|
552
|
+
| Identifier
|
553
|
+
| MemberExpression
|
554
|
+
| ObjectPattern
|
555
|
+
| ArrayPattern
|
556
|
+
| RestElement
|
557
|
+
| AssignmentPattern
|
558
|
+
|
559
|
+
export type ModuleDeclaration =
|
560
|
+
| ImportDeclaration
|
561
|
+
| ExportNamedDeclaration
|
562
|
+
| ExportDefaultDeclaration
|
563
|
+
| ExportAllDeclaration
|
564
|
+
|
565
|
+
export type AnyNode = Statement | Expression | Declaration | ModuleDeclaration | Literal | Program | SwitchCase | CatchClause | Property | Super | SpreadElement | TemplateElement | AssignmentProperty | ObjectPattern | ArrayPattern | RestElement | AssignmentPattern | ClassBody | MethodDefinition | MetaProperty | ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ExportSpecifier | AnonymousFunctionDeclaration | AnonymousClassDeclaration | PropertyDefinition | PrivateIdentifier | StaticBlock
|
566
|
+
|
567
|
+
export function parse(input: string, options: Options): Program
|
568
|
+
|
569
|
+
export function parseExpressionAt(input: string, pos: number, options: Options): Expression
|
570
|
+
|
571
|
+
export function tokenizer(input: string, options: Options): {
|
572
|
+
getToken(): Token
|
573
|
+
[Symbol.iterator](): Iterator<Token>
|
574
|
+
}
|
575
|
+
|
576
|
+
export type ecmaVersion = 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024 | "latest"
|
577
|
+
|
578
|
+
export interface Options {
|
579
|
+
/**
|
580
|
+
* `ecmaVersion` indicates the ECMAScript version to parse. Must be
|
581
|
+
* either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10
|
582
|
+
* (2019), 11 (2020), 12 (2021), 13 (2022), 14 (2023), or `"latest"`
|
583
|
+
* (the latest version the library supports). This influences
|
584
|
+
* support for strict mode, the set of reserved words, and support
|
585
|
+
* for new syntax features.
|
586
|
+
*/
|
587
|
+
ecmaVersion: ecmaVersion
|
588
|
+
|
589
|
+
/**
|
590
|
+
* `sourceType` indicates the mode the code should be parsed in.
|
591
|
+
* Can be either `"script"` or `"module"`. This influences global
|
592
|
+
* strict mode and parsing of `import` and `export` declarations.
|
593
|
+
*/
|
594
|
+
sourceType?: "script" | "module"
|
595
|
+
|
596
|
+
/**
|
597
|
+
* a callback that will be called when a semicolon is automatically inserted.
|
598
|
+
* @param lastTokEnd the position of the comma as an offset
|
599
|
+
* @param lastTokEndLoc location if {@link locations} is enabled
|
600
|
+
*/
|
601
|
+
onInsertedSemicolon?: (lastTokEnd: number, lastTokEndLoc?: Position) => void
|
602
|
+
|
603
|
+
/**
|
604
|
+
* similar to `onInsertedSemicolon`, but for trailing commas
|
605
|
+
* @param lastTokEnd the position of the comma as an offset
|
606
|
+
* @param lastTokEndLoc location if `locations` is enabled
|
607
|
+
*/
|
608
|
+
onTrailingComma?: (lastTokEnd: number, lastTokEndLoc?: Position) => void
|
609
|
+
|
610
|
+
/**
|
611
|
+
* By default, reserved words are only enforced if ecmaVersion >= 5.
|
612
|
+
* Set `allowReserved` to a boolean value to explicitly turn this on
|
613
|
+
* an off. When this option has the value "never", reserved words
|
614
|
+
* and keywords can also not be used as property names.
|
615
|
+
*/
|
616
|
+
allowReserved?: boolean | "never"
|
617
|
+
|
618
|
+
/**
|
619
|
+
* When enabled, a return at the top level is not considered an error.
|
620
|
+
*/
|
621
|
+
allowReturnOutsideFunction?: boolean
|
622
|
+
|
623
|
+
/**
|
624
|
+
* When enabled, import/export statements are not constrained to
|
625
|
+
* appearing at the top of the program, and an import.meta expression
|
626
|
+
* in a script isn't considered an error.
|
627
|
+
*/
|
628
|
+
allowImportExportEverywhere?: boolean
|
629
|
+
|
630
|
+
/**
|
631
|
+
* By default, `await` identifiers are allowed to appear at the top-level scope only if {@link ecmaVersion} >= 2022.
|
632
|
+
* When enabled, await identifiers are allowed to appear at the top-level scope,
|
633
|
+
* but they are still not allowed in non-async functions.
|
634
|
+
*/
|
635
|
+
allowAwaitOutsideFunction?: boolean
|
636
|
+
|
637
|
+
/**
|
638
|
+
* When enabled, super identifiers are not constrained to
|
639
|
+
* appearing in methods and do not raise an error when they appear elsewhere.
|
640
|
+
*/
|
641
|
+
allowSuperOutsideMethod?: boolean
|
642
|
+
|
643
|
+
/**
|
644
|
+
* When enabled, hashbang directive in the beginning of file is
|
645
|
+
* allowed and treated as a line comment. Enabled by default when
|
646
|
+
* {@link ecmaVersion} >= 2023.
|
647
|
+
*/
|
648
|
+
allowHashBang?: boolean
|
649
|
+
|
650
|
+
/**
|
651
|
+
* By default, the parser will verify that private properties are
|
652
|
+
* only used in places where they are valid and have been declared.
|
653
|
+
* Set this to false to turn such checks off.
|
654
|
+
*/
|
655
|
+
checkPrivateFields?: boolean
|
656
|
+
|
657
|
+
/**
|
658
|
+
* When `locations` is on, `loc` properties holding objects with
|
659
|
+
* `start` and `end` properties as {@link Position} objects will be attached to the
|
660
|
+
* nodes.
|
661
|
+
*/
|
662
|
+
locations?: boolean
|
663
|
+
|
664
|
+
/**
|
665
|
+
* a callback that will cause Acorn to call that export function with object in the same
|
666
|
+
* format as tokens returned from `tokenizer().getToken()`. Note
|
667
|
+
* that you are not allowed to call the parser from the
|
668
|
+
* callback—that will corrupt its internal state.
|
669
|
+
*/
|
670
|
+
onToken?: ((token: Token) => void) | Token[]
|
671
|
+
|
672
|
+
|
673
|
+
/**
|
674
|
+
* This takes a export function or an array.
|
675
|
+
*
|
676
|
+
* When a export function is passed, Acorn will call that export function with `(block, text, start,
|
677
|
+
* end)` parameters whenever a comment is skipped. `block` is a
|
678
|
+
* boolean indicating whether this is a block (`/* *\/`) comment,
|
679
|
+
* `text` is the content of the comment, and `start` and `end` are
|
680
|
+
* character offsets that denote the start and end of the comment.
|
681
|
+
* When the {@link locations} option is on, two more parameters are
|
682
|
+
* passed, the full locations of {@link Position} export type of the start and
|
683
|
+
* end of the comments.
|
684
|
+
*
|
685
|
+
* When a array is passed, each found comment of {@link Comment} export type is pushed to the array.
|
686
|
+
*
|
687
|
+
* Note that you are not allowed to call the
|
688
|
+
* parser from the callback—that will corrupt its internal state.
|
689
|
+
*/
|
690
|
+
onComment?: ((
|
691
|
+
isBlock: boolean, text: string, start: number, end: number, startLoc?: Position,
|
692
|
+
endLoc?: Position
|
693
|
+
) => void) | Comment[]
|
694
|
+
|
695
|
+
/**
|
696
|
+
* Nodes have their start and end characters offsets recorded in
|
697
|
+
* `start` and `end` properties (directly on the node, rather than
|
698
|
+
* the `loc` object, which holds line/column data. To also add a
|
699
|
+
* [semi-standardized][range] `range` property holding a `[start,
|
700
|
+
* end]` array with the same numbers, set the `ranges` option to
|
701
|
+
* `true`.
|
702
|
+
*/
|
703
|
+
ranges?: boolean
|
704
|
+
|
705
|
+
/**
|
706
|
+
* It is possible to parse multiple files into a single AST by
|
707
|
+
* passing the tree produced by parsing the first file as
|
708
|
+
* `program` option in subsequent parses. This will add the
|
709
|
+
* toplevel forms of the parsed file to the `Program` (top) node
|
710
|
+
* of an existing parse tree.
|
711
|
+
*/
|
712
|
+
program?: Node
|
713
|
+
|
714
|
+
/**
|
715
|
+
* When {@link locations} is on, you can pass this to record the source
|
716
|
+
* file in every node's `loc` object.
|
717
|
+
*/
|
718
|
+
sourceFile?: string
|
719
|
+
|
720
|
+
/**
|
721
|
+
* This value, if given, is stored in every node, whether {@link locations} is on or off.
|
722
|
+
*/
|
723
|
+
directSourceFile?: string
|
724
|
+
|
725
|
+
/**
|
726
|
+
* When enabled, parenthesized expressions are represented by
|
727
|
+
* (non-standard) ParenthesizedExpression nodes
|
728
|
+
*/
|
729
|
+
preserveParens?: boolean
|
730
|
+
}
|
731
|
+
|
732
|
+
export class Parser {
|
733
|
+
options: Options
|
734
|
+
input: string
|
735
|
+
|
736
|
+
private constructor(options: Options, input: string, startPos?: number)
|
737
|
+
parse(): Program
|
738
|
+
|
739
|
+
static parse(input: string, options: Options): Program
|
740
|
+
static parseExpressionAt(input: string, pos: number, options: Options): Expression
|
741
|
+
static tokenizer(input: string, options: Options): {
|
742
|
+
getToken(): Token
|
743
|
+
[Symbol.iterator](): Iterator<Token>
|
291
744
|
}
|
745
|
+
static extend(...plugins: ((BaseParser: typeof Parser) => typeof Parser)[]): typeof Parser
|
292
746
|
}
|
747
|
+
|
748
|
+
export const defaultOptions: Options
|
749
|
+
|
750
|
+
export function getLineInfo(input: string, offset: number): Position
|
751
|
+
|
752
|
+
export class TokenType {
|
753
|
+
label: string
|
754
|
+
keyword: string | undefined
|
755
|
+
}
|
756
|
+
|
757
|
+
export const tokTypes: {
|
758
|
+
num: TokenType
|
759
|
+
regexp: TokenType
|
760
|
+
string: TokenType
|
761
|
+
name: TokenType
|
762
|
+
privateId: TokenType
|
763
|
+
eof: TokenType
|
764
|
+
|
765
|
+
bracketL: TokenType
|
766
|
+
bracketR: TokenType
|
767
|
+
braceL: TokenType
|
768
|
+
braceR: TokenType
|
769
|
+
parenL: TokenType
|
770
|
+
parenR: TokenType
|
771
|
+
comma: TokenType
|
772
|
+
semi: TokenType
|
773
|
+
colon: TokenType
|
774
|
+
dot: TokenType
|
775
|
+
question: TokenType
|
776
|
+
questionDot: TokenType
|
777
|
+
arrow: TokenType
|
778
|
+
template: TokenType
|
779
|
+
invalidTemplate: TokenType
|
780
|
+
ellipsis: TokenType
|
781
|
+
backQuote: TokenType
|
782
|
+
dollarBraceL: TokenType
|
783
|
+
|
784
|
+
eq: TokenType
|
785
|
+
assign: TokenType
|
786
|
+
incDec: TokenType
|
787
|
+
prefix: TokenType
|
788
|
+
logicalOR: TokenType
|
789
|
+
logicalAND: TokenType
|
790
|
+
bitwiseOR: TokenType
|
791
|
+
bitwiseXOR: TokenType
|
792
|
+
bitwiseAND: TokenType
|
793
|
+
equality: TokenType
|
794
|
+
relational: TokenType
|
795
|
+
bitShift: TokenType
|
796
|
+
plusMin: TokenType
|
797
|
+
modulo: TokenType
|
798
|
+
star: TokenType
|
799
|
+
slash: TokenType
|
800
|
+
starstar: TokenType
|
801
|
+
coalesce: TokenType
|
802
|
+
|
803
|
+
_break: TokenType
|
804
|
+
_case: TokenType
|
805
|
+
_catch: TokenType
|
806
|
+
_continue: TokenType
|
807
|
+
_debugger: TokenType
|
808
|
+
_default: TokenType
|
809
|
+
_do: TokenType
|
810
|
+
_else: TokenType
|
811
|
+
_finally: TokenType
|
812
|
+
_for: TokenType
|
813
|
+
_function: TokenType
|
814
|
+
_if: TokenType
|
815
|
+
_return: TokenType
|
816
|
+
_switch: TokenType
|
817
|
+
_throw: TokenType
|
818
|
+
_try: TokenType
|
819
|
+
_var: TokenType
|
820
|
+
_const: TokenType
|
821
|
+
_while: TokenType
|
822
|
+
_with: TokenType
|
823
|
+
_new: TokenType
|
824
|
+
_this: TokenType
|
825
|
+
_super: TokenType
|
826
|
+
_class: TokenType
|
827
|
+
_extends: TokenType
|
828
|
+
_export: TokenType
|
829
|
+
_import: TokenType
|
830
|
+
_null: TokenType
|
831
|
+
_true: TokenType
|
832
|
+
_false: TokenType
|
833
|
+
_in: TokenType
|
834
|
+
_instanceof: TokenType
|
835
|
+
_typeof: TokenType
|
836
|
+
_void: TokenType
|
837
|
+
_delete: TokenType
|
838
|
+
}
|
839
|
+
|
840
|
+
export interface Comment {
|
841
|
+
type: "Line" | "Block"
|
842
|
+
value: string
|
843
|
+
start: number
|
844
|
+
end: number
|
845
|
+
loc?: SourceLocation
|
846
|
+
range?: [number, number]
|
847
|
+
}
|
848
|
+
|
849
|
+
export class Token {
|
850
|
+
type: TokenType
|
851
|
+
start: number
|
852
|
+
end: number
|
853
|
+
loc?: SourceLocation
|
854
|
+
range?: [number, number]
|
855
|
+
}
|
856
|
+
|
857
|
+
export const version: string
|