diff --git a/.eslintrc.js b/.eslintrc.js index 99f3f5d3e41d..ee9dba8c4d05 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -9,6 +9,7 @@ module.exports = { 'import', 'jest', 'simple-import-sort', + 'unicorn', ], env: { es6: true, @@ -200,6 +201,8 @@ module.exports = { 'simple-import-sort/imports': 'error', 'one-var': ['error', 'never'], + + 'unicorn/no-typeof-undefined': 'error', }, overrides: [ // all test files diff --git a/.gitattributes b/.gitattributes index d46a42b7fc44..20984d71e9e5 100644 --- a/.gitattributes +++ b/.gitattributes @@ -8,3 +8,4 @@ # force github to treat out custom jest snapshot extension as normal jest snapshots *.shot linguist-language=Jest-Snapshot +*.shot linguist-generated diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 75494fa75731..67ac9a27d68c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -176,50 +176,52 @@ jobs: # Sadly 1 day is the minimum retention-days: 1 - website_tests: - permissions: - contents: read # to fetch code (actions/checkout) - - name: Website tests - # We technically do not need to wait for build within the pipeline any more because the build we care about is happening within Netlify, however, - # it is highly likely that if the CI one fails, the Netlify one will as well, so in order to not waste unncessary Github Actions minutes/resources, - # we do still keep this requirement here. - needs: [build] - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 2 - - - name: Install - uses: ./.github/actions/prepare-install - with: - node-version: ${{ env.PRIMARY_NODE_VERSION }} - - - name: Install Playwright Browsers - run: npx playwright install --with-deps - - - name: Wait for Netlify deployment - uses: probablyup/wait-for-netlify-action@v3.4.0 - id: waitForDeployment - with: - site_id: '128d21c7-b2fe-45ad-b141-9878fcf5de3a' - max_timeout: 300 # 5 minutes - env: - NETLIFY_TOKEN: ${{ secrets.NETLIFY_TOKEN }} - - - name: Run Playwright tests against the Netlify deployment - run: yarn playwright test --reporter=list - working-directory: packages/website - env: - PLAYWRIGHT_TEST_BASE_URL: ${{ steps.waitForDeployment.outputs.url }} - - - if: always() - uses: actions/upload-artifact@v3 - with: - name: playwright-report - path: packages/website/playwright-report + ## TODO - re-enable once we fix them + # https://github.com/typescript-eslint/typescript-eslint/issues/6508 + # website_tests: + # permissions: + # contents: read # to fetch code (actions/checkout) + + # name: Website tests + # # We technically do not need to wait for build within the pipeline any more because the build we care about is happening within Netlify, however, + # # it is highly likely that if the CI one fails, the Netlify one will as well, so in order to not waste unncessary Github Actions minutes/resources, + # # we do still keep this requirement here. + # needs: [build] + # runs-on: ubuntu-latest + # steps: + # - name: Checkout + # uses: actions/checkout@v3 + # with: + # fetch-depth: 2 + + # - name: Install + # uses: ./.github/actions/prepare-install + # with: + # node-version: ${{ env.PRIMARY_NODE_VERSION }} + + # - name: Install Playwright Browsers + # run: npx playwright install --with-deps + + # - name: Wait for Netlify deployment + # uses: probablyup/wait-for-netlify-action@v3.4.0 + # id: waitForDeployment + # with: + # site_id: '128d21c7-b2fe-45ad-b141-9878fcf5de3a' + # max_timeout: 300 # 5 minutes + # env: + # NETLIFY_TOKEN: ${{ secrets.NETLIFY_TOKEN }} + + # - name: Run Playwright tests against the Netlify deployment + # run: yarn playwright test --reporter=list + # working-directory: packages/website + # env: + # PLAYWRIGHT_TEST_BASE_URL: ${{ steps.waitForDeployment.outputs.url }} + + # - if: always() + # uses: actions/upload-artifact@v3 + # with: + # name: playwright-report + # path: packages/website/playwright-report upload_coverage: name: Upload Codecov Coverage diff --git a/.prettierignore b/.prettierignore index 5e3434855df6..548792bb901b 100644 --- a/.prettierignore +++ b/.prettierignore @@ -14,6 +14,9 @@ packages/ast-spec/src/*/*/fixtures/_error_/*/fixture.ts # prettier doesn't yet support auto-accessors packages/ast-spec/src/element/AccessorProperty/fixtures +# prettier doesn't yet support `const` modifiers for type parameters +packages/ast-spec/src/special/TSTypeParameter/fixtures + # Ignore CHANGELOG.md files to avoid issues with automated release job CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 63135505136c..8afe95816fac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,29 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [5.55.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.54.1...v5.55.0) (2023-03-13) + + +### Bug Fixes + +* **eslint-plugin:** [no-confusing-void-expression] check sequence expressions for void is in last position ([#6597](https://github.com/typescript-eslint/typescript-eslint/issues/6597)) ([d73d7d3](https://github.com/typescript-eslint/typescript-eslint/commit/d73d7d3904a088e2bf7127240dd1f1cefe325e69)) +* **eslint-plugin:** [no-unnecessary-boolean-literal-compare] fixer should handle parentheses ([#6569](https://github.com/typescript-eslint/typescript-eslint/issues/6569)) ([2d8c196](https://github.com/typescript-eslint/typescript-eslint/commit/2d8c196294bcbe4989e310ec056a1a9000967600)) + + +### Features + +* **eslint-plugin:** [lines-around-comment] add extension rule ([#5327](https://github.com/typescript-eslint/typescript-eslint/issues/5327)) ([d55211c](https://github.com/typescript-eslint/typescript-eslint/commit/d55211caf63e4731f103e94237b3449e88322bb9)) +* **eslint-plugin:** [member-ordering] add support for grouping readonly fields ([#6349](https://github.com/typescript-eslint/typescript-eslint/issues/6349)) ([9d3bdfc](https://github.com/typescript-eslint/typescript-eslint/commit/9d3bdfcb2fe3d2b2c0b82d9587d52f0e2ef4e344)) +* **eslint-plugin:** [no-unnecessary-cond] check logical assignments ([#6594](https://github.com/typescript-eslint/typescript-eslint/issues/6594)) ([dbc203a](https://github.com/typescript-eslint/typescript-eslint/commit/dbc203aeb64833a4d67bc62a578aa5533083af3d)) +* **parser:** add exported meta object ([#6586](https://github.com/typescript-eslint/typescript-eslint/issues/6586)) ([d05c3d8](https://github.com/typescript-eslint/typescript-eslint/commit/d05c3d8aa4093e88ffdfc2dbcff522eafbd455fb)) +* **typescript-estree:** support `const` modifiers for type parameters ([#6600](https://github.com/typescript-eslint/typescript-eslint/issues/6600)) ([f3c6373](https://github.com/typescript-eslint/typescript-eslint/commit/f3c637328b1a3923b9ecdfaeea86ccf73cbdda06)) +* update TypeScript to 5.0 RC ([#6570](https://github.com/typescript-eslint/typescript-eslint/issues/6570)) ([36ef0e1](https://github.com/typescript-eslint/typescript-eslint/commit/36ef0e16f31810c27dda299e739d1610b689d3ad)) +* use [@eslint-community](https://github.com/eslint-community) dependencies ([#6603](https://github.com/typescript-eslint/typescript-eslint/issues/6603)) ([5f6ed73](https://github.com/typescript-eslint/typescript-eslint/commit/5f6ed738a2b8c08878999e24477e3c206a0ade1b)) + + + + + ## [5.54.1](https://github.com/typescript-eslint/typescript-eslint/compare/v5.54.0...v5.54.1) (2023-03-06) diff --git a/docs/architecture/Utils.mdx b/docs/architecture/Utils.mdx index 9270f2ed8e55..7c4fd674d707 100644 --- a/docs/architecture/Utils.mdx +++ b/docs/architecture/Utils.mdx @@ -19,7 +19,7 @@ Any custom rules you write generally will be as well. | ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `AST_NODE_TYPES` | An enum with the names of every single _node_ found in `TSESTree`. | | `AST_TOKEN_TYPES` | An enum with the names of every single _token_ found in `TSESTree`. | -| `ASTUtils` | Tools for operating on the ESTree AST. Also includes the [`eslint-utils`](https://www.npmjs.com/package/eslint-utils) package, correctly typed to work with the types found in `TSESTree` | +| `ASTUtils` | Tools for operating on the ESTree AST. Also includes the [`@eslint-community/eslint-utils`](https://www.npmjs.com/package/@eslint-community/eslint-utils) package, correctly typed to work with the types found in `TSESTree` | | `ESLintUtils` | Tools for creating ESLint rules with TypeScript. | | `JSONSchema` | Types from the [`@types/json-schema`](https://www.npmjs.com/package/@types/json-schema) package, re-exported to save you having to manually import them. Also ensures you're using the same version of the types as this package. | | `ParserServices` | Typing for the parser services provided when parsing a file using `@typescript-eslint/typescript-estree`. | diff --git a/docs/linting/troubleshooting/TSLint.mdx b/docs/linting/troubleshooting/TSLint.mdx index 8eb61e85713f..cc55ee626177 100644 --- a/docs/linting/troubleshooting/TSLint.mdx +++ b/docs/linting/troubleshooting/TSLint.mdx @@ -28,5 +28,5 @@ TSLint had to reimplement everything from editor extensions to auto-fixing to ru TSLint's backers announced in 2019 that **they would be deprecating TSLint in favor of supporting `typescript-eslint`** in order to benefit the community. You can read more about that here: https://medium.com/palantir/tslint-in-2019-1a144c2317a9. -The TypeScript team also migrated move the TypeScript codebase from TSLint to `typescript-eslint`, and they have been supporters of this project. +The TypeScript team also migrated the TypeScript codebase from TSLint to `typescript-eslint`, and they have been supporters of this project. See more details at https://github.com/microsoft/TypeScript/issues/30553. diff --git a/docs/maintenance/Versioning.mdx b/docs/maintenance/Versioning.mdx index 68a007c89c1a..4cd92c6c8577 100644 --- a/docs/maintenance/Versioning.mdx +++ b/docs/maintenance/Versioning.mdx @@ -52,7 +52,7 @@ Support for specific Current status releases are considered periodically. ### TypeScript -> The version range of TypeScript currently supported is `>=3.3.1 <5.0.0`. +> The version range of TypeScript currently supported is `>=3.3.1 <5.1.0`. These versions are what we test against. diff --git a/lerna.json b/lerna.json index c46061bee816..c2f9037db383 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "version": "5.54.1", + "version": "5.55.0", "npmClient": "yarn", "useWorkspaces": true, "stream": true diff --git a/package.json b/package.json index 1120ec8e8fca..6df56abbf47b 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "@babel/code-frame": "^7.18.6", "@babel/core": "^7.20.2", "@babel/eslint-parser": "^7.19.1", - "@babel/parser": "^7.20.7", + "@babel/parser": "^7.21.2", "@babel/types": "^7.20.2", "@nrwl/jest": "15.7.2", "@nrwl/nx-cloud": "15.0.3", @@ -78,7 +78,7 @@ "cross-env": "^7.0.3", "cross-fetch": "^3.1.5", "cspell": "^6.0.0", - "downlevel-dts": ">=0.10.0", + "downlevel-dts": ">=0.11.0", "eslint": "^8.15.0", "eslint-plugin-deprecation": "^1.3.2", "eslint-plugin-eslint-comments": "^3.2.0", @@ -86,13 +86,14 @@ "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.0.0", "eslint-plugin-simple-import-sort": "^10.0.0", + "eslint-plugin-unicorn": "^46.0.0", "execa": "5.1.1", "glob": "^8.0.1", "husky": "^8.0.1", "jest": "^29.0.3", "jest-diff": "^29.0.3", "jest-snapshot": "^29.0.3", - "jest-specific-snapshot": "^7.0.0", + "jest-specific-snapshot": "^8.0.0", "lerna": "6.5.1", "lint-staged": "^13.0.0", "make-dir": "^3.1.0", @@ -107,10 +108,10 @@ "ts-node": "10.7.0", "tslint": "^6.1.3", "tsx": "^3.12.1", - "typescript": ">=3.3.1 <5.0.0" + "typescript": ">=3.3.1 <5.1.0 || 5.0.1-rc" }, "resolutions": { - "typescript": "~4.9.3", + "typescript": "~5.0.1-rc", "@types/node": "^18.11.9", "@jest/create-cache-key-function": "^29", "@jest/reporters": "^29", diff --git a/packages/ast-spec/CHANGELOG.md b/packages/ast-spec/CHANGELOG.md index 5d5bf8c2a259..e1ef28b77b0b 100644 --- a/packages/ast-spec/CHANGELOG.md +++ b/packages/ast-spec/CHANGELOG.md @@ -3,6 +3,18 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [5.55.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.54.1...v5.55.0) (2023-03-13) + + +### Features + +* **typescript-estree:** support `const` modifiers for type parameters ([#6600](https://github.com/typescript-eslint/typescript-eslint/issues/6600)) ([f3c6373](https://github.com/typescript-eslint/typescript-eslint/commit/f3c637328b1a3923b9ecdfaeea86ccf73cbdda06)) +* update TypeScript to 5.0 RC ([#6570](https://github.com/typescript-eslint/typescript-eslint/issues/6570)) ([36ef0e1](https://github.com/typescript-eslint/typescript-eslint/commit/36ef0e16f31810c27dda299e739d1610b689d3ad)) + + + + + ## [5.54.1](https://github.com/typescript-eslint/typescript-eslint/compare/v5.54.0...v5.54.1) (2023-03-06) **Note:** Version bump only for package @typescript-eslint/ast-spec diff --git a/packages/ast-spec/package.json b/packages/ast-spec/package.json index 9cf100b2c42a..9cbfcd6ac3e9 100644 --- a/packages/ast-spec/package.json +++ b/packages/ast-spec/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/ast-spec", - "version": "5.54.1", + "version": "5.55.0", "description": "Complete specification for the TypeScript-ESTree AST", "private": true, "keywords": [ @@ -46,7 +46,7 @@ "@babel/core": "*", "@babel/eslint-parser": "*", "@babel/parser": "*", - "@microsoft/api-extractor": "^7.23.2", + "@microsoft/api-extractor": "^7.34.4", "@types/babel__core": "*", "glob": "*", "jest-diff": "*", diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/abstract/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/abstract/snapshots/1-TSESTree-AST.shot index bae3f5a82873..556a8358a93b 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/abstract/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/abstract/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures declaration ClassDeclaration abstract TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", abstract: true, body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [19, 21], loc: { diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/abstract/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/abstract/snapshots/2-TSESTree-Tokens.shot index 0cda23120060..f653a4102591 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/abstract/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/abstract/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ClassDeclaration abstract TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "abstract", diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/abstract/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/abstract/snapshots/3-Babel-AST.shot index d8e3d045b848..d249a0d4af21 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/abstract/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/abstract/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures declaration ClassDeclaration abstract Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", abstract: true, body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [19, 21], loc: { diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/abstract/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/abstract/snapshots/4-Babel-Tokens.shot index ac5930044d1e..8806e181a14a 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/abstract/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/abstract/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ClassDeclaration abstract Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "abstract", diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot index d20ffd3e1308..a1d8cdbc4c7a 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration ClassDeclaration declare TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [18, 20], loc: { diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/declare/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/declare/snapshots/2-TSESTree-Tokens.shot index 4006c278dcb7..ffa1b69752dd 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/declare/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/declare/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ClassDeclaration declare TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/declare/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/declare/snapshots/3-Babel-AST.shot index 27ac3a41954c..f670fa047d05 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/declare/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/declare/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration ClassDeclaration declare Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [18, 20], loc: { diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/declare/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/declare/snapshots/4-Babel-Tokens.shot index 0fbe7f7fe385..09473708b9e8 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/declare/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/declare/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ClassDeclaration declare Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-many/snapshots/1-TSESTree-AST.shot index 7f37d13c4882..c9cc55d95637 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-many/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration ClassDeclaration decorator-many TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [38, 40], loc: { @@ -16,7 +16,7 @@ Program { end: { column: 12, line: 3 }, }, }, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: Identifier { diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-many/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-many/snapshots/2-TSESTree-Tokens.shot index 5f64c50c3bdc..afc6d268ac68 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-many/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-many/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ClassDeclaration decorator-many TSESTree - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "@", diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-many/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-many/snapshots/3-Babel-AST.shot index 3c94fd556d00..fbc43f6a8503 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-many/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-many/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration ClassDeclaration decorator-many Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [38, 40], loc: { @@ -16,7 +16,7 @@ Program { end: { column: 12, line: 3 }, }, }, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: Identifier { diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-many/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-many/snapshots/4-Babel-Tokens.shot index e7d7dba3776b..83612368edcf 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-many/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-many/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ClassDeclaration decorator-many Babel - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "@", diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-one/snapshots/1-TSESTree-AST.shot index aba5fc9308df..589d5478de69 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-one/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration ClassDeclaration decorator-one TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [21, 23], loc: { @@ -16,7 +16,7 @@ Program { end: { column: 12, line: 2 }, }, }, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: Identifier { diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-one/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-one/snapshots/2-TSESTree-Tokens.shot index 7d75dd277906..17a077a4d0f7 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-one/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-one/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ClassDeclaration decorator-one TSESTree - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "@", diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-one/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-one/snapshots/3-Babel-AST.shot index 9f91cb39e807..e33d223c34df 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-one/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-one/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration ClassDeclaration decorator-one Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [21, 23], loc: { @@ -16,7 +16,7 @@ Program { end: { column: 12, line: 2 }, }, }, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: Identifier { diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-one/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-one/snapshots/4-Babel-Tokens.shot index 3b6aa60b33d6..fd4a2539d9b1 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-one/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-one/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ClassDeclaration decorator-one Babel - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "@", diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot index 9ead7d30ab75..189097a1c6b8 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration ClassDeclaration empty TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [10, 12], loc: { diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/empty/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/empty/snapshots/2-TSESTree-Tokens.shot index 98e26f81f22b..909828002c8a 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/empty/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/empty/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ClassDeclaration empty TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/empty/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/empty/snapshots/3-Babel-AST.shot index b44e7f980bf9..3402fec1e11a 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/empty/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/empty/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration ClassDeclaration empty Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [10, 12], loc: { diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/empty/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/empty/snapshots/4-Babel-Tokens.shot index 7687be9ddb06..cbdb595fe418 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/empty/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/empty/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ClassDeclaration empty Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-literal/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-literal/snapshots/1-TSESTree-AST.shot index dc5437192e6f..53d85a3efcbb 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-literal/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-literal/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration ClassDeclaration extends-literal TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [26, 28], loc: { diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-literal/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-literal/snapshots/2-TSESTree-Tokens.shot index 578f3c6a8648..64c9c8bf6676 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-literal/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-literal/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ClassDeclaration extends-literal TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-literal/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-literal/snapshots/3-Babel-AST.shot index 0a84daeb896c..e33225f93def 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-literal/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-literal/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration ClassDeclaration extends-literal Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [26, 28], loc: { diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-literal/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-literal/snapshots/4-Babel-Tokens.shot index ec6443288fb5..9053a263df68 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-literal/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-literal/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ClassDeclaration extends-literal Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-type-param/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-type-param/snapshots/1-TSESTree-AST.shot index 43fbb02d6c00..d1b1649faf25 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-type-param/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-type-param/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration ClassDeclaration extends-type-param TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [30, 32], loc: { @@ -38,7 +38,7 @@ Program { }, superTypeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSStringKeyword { type: "TSStringKeyword", diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-type-param/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-type-param/snapshots/2-TSESTree-Tokens.shot index c0ea9a808468..33408a1d93d5 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-type-param/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-type-param/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ClassDeclaration extends-type-param TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-type-param/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-type-param/snapshots/3-Babel-AST.shot index 2071afa4c8e0..89ea6147661d 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-type-param/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-type-param/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration ClassDeclaration extends-type-param Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [30, 32], loc: { @@ -38,7 +38,7 @@ Program { }, superTypeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSStringKeyword { type: "TSStringKeyword", diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-type-param/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-type-param/snapshots/4-Babel-Tokens.shot index a19207090a5f..3b666e51d7cb 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-type-param/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-type-param/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ClassDeclaration extends-type-param Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends/snapshots/1-TSESTree-AST.shot index d8241f2f4d5a..2ce8cf69e4fd 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration ClassDeclaration extends TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [25, 27], loc: { diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends/snapshots/2-TSESTree-Tokens.shot index 1a912d351164..9fc8cef05679 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ClassDeclaration extends TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends/snapshots/3-Babel-AST.shot index 337d09683e9e..1700e822b0e9 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration ClassDeclaration extends Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [25, 27], loc: { diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends/snapshots/4-Babel-Tokens.shot index 2f17f69fe6b8..949f1d9270b8 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ClassDeclaration extends Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-many/snapshots/1-TSESTree-AST.shot index 6467e4a37f03..ce7ed5710f28 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-many/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration ClassDeclaration implements-many TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [46, 48], loc: { @@ -26,7 +26,7 @@ Program { end: { column: 9, line: 1 }, }, }, - implements: Array [ + implements: [ TSClassImplements { type: "TSClassImplements", expression: Identifier { diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-many/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-many/snapshots/2-TSESTree-Tokens.shot index ffe359159d45..4e093933483d 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-many/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-many/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ClassDeclaration implements-many TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-many/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-many/snapshots/3-Babel-AST.shot index c5a75e6d5b1b..57f0b33a94aa 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-many/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-many/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration ClassDeclaration implements-many Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [46, 48], loc: { @@ -26,7 +26,7 @@ Program { end: { column: 9, line: 1 }, }, }, - implements: Array [ + implements: [ TSExpressionWithTypeArguments { type: "TSExpressionWithTypeArguments", expression: Identifier { diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-many/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-many/snapshots/4-Babel-Tokens.shot index ca4cb279c004..15022084baa1 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-many/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-many/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ClassDeclaration implements-many Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-one/snapshots/1-TSESTree-AST.shot index c5228690b09a..da55fad4be07 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-one/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration ClassDeclaration implements-one TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [28, 30], loc: { @@ -26,7 +26,7 @@ Program { end: { column: 9, line: 1 }, }, }, - implements: Array [ + implements: [ TSClassImplements { type: "TSClassImplements", expression: Identifier { diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-one/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-one/snapshots/2-TSESTree-Tokens.shot index 160a01b3a57a..b2872538909b 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-one/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-one/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ClassDeclaration implements-one TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-one/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-one/snapshots/3-Babel-AST.shot index de05a724a09f..7a7c4a191ca4 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-one/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-one/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration ClassDeclaration implements-one Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [28, 30], loc: { @@ -26,7 +26,7 @@ Program { end: { column: 9, line: 1 }, }, }, - implements: Array [ + implements: [ TSExpressionWithTypeArguments { type: "TSExpressionWithTypeArguments", expression: Identifier { diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-one/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-one/snapshots/4-Babel-Tokens.shot index 07fe25e0f650..03f300c5870a 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-one/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-one/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ClassDeclaration implements-one Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-param/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-param/snapshots/1-TSESTree-AST.shot index 13f2fe48ba0d..5608ba08cb8d 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-param/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-param/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration ClassDeclaration type-param TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [13, 15], loc: { @@ -29,9 +29,10 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-param/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-param/snapshots/2-TSESTree-Tokens.shot index 4b814b828291..346dadb2e819 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-param/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-param/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ClassDeclaration type-param TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-param/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-param/snapshots/3-Babel-AST.shot index 288661b13116..5a833e081f1d 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-param/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-param/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration ClassDeclaration type-param Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [13, 15], loc: { @@ -29,7 +29,7 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-param/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-param/snapshots/4-Babel-Tokens.shot index 27db70bb89e0..b82491f815ce 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-param/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-param/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ClassDeclaration type-param Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-param/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-param/snapshots/5-AST-Alignment-AST.shot index 0ee9dbba0359..8d97c664397e 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-param/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-param/snapshots/5-AST-Alignment-AST.shot @@ -36,6 +36,7 @@ exports[`AST Fixtures declaration ClassDeclaration type-param AST Alignment - AS params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/snapshots/1-TSESTree-AST.shot index aac248040d84..e67ef8863216 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration ClassDeclaration type-parameters-extends-type-param TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [28, 30], loc: { @@ -38,7 +38,7 @@ Program { }, superTypeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -68,9 +68,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/snapshots/2-TSESTree-Tokens.shot index f697768aad0d..29b31d0acb5c 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ClassDeclaration type-parameters-extends-type-param TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/snapshots/3-Babel-AST.shot index e5856d26fbc8..322ea2b52239 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration ClassDeclaration type-parameters-extends-type-param Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [28, 30], loc: { @@ -38,7 +38,7 @@ Program { }, superTypeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -68,7 +68,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/snapshots/4-Babel-Tokens.shot index 97d16c68e189..9dbd80af738b 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ClassDeclaration type-parameters-extends-type-param Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/snapshots/5-AST-Alignment-AST.shot index f6d5a3c73b31..60e9b202a98e 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/snapshots/5-AST-Alignment-AST.shot @@ -75,6 +75,7 @@ exports[`AST Fixtures declaration ClassDeclaration type-parameters-extends-type- params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/with-member-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/with-member-one/snapshots/1-TSESTree-AST.shot index bdbfa5822bb2..816492fcd483 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/with-member-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/with-member-one/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration ClassDeclaration with-member-one TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/with-member-one/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/with-member-one/snapshots/2-TSESTree-Tokens.shot index 1184bd1ae083..4eb98290fbfa 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/with-member-one/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/with-member-one/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ClassDeclaration with-member-one TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/with-member-one/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/with-member-one/snapshots/3-Babel-AST.shot index df5b728f5588..e40c7d34d594 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/with-member-one/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/with-member-one/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration ClassDeclaration with-member-one Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/with-member-one/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/with-member-one/snapshots/4-Babel-Tokens.shot index 3fe5916a116c..8ea4a4bdc59d 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/with-member-one/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/with-member-one/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ClassDeclaration with-member-one Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/assertion/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/assertion/snapshots/1-TSESTree-AST.shot index 28172433eacf..d5880f6e82a7 100644 --- a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/assertion/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/assertion/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration ExportAllDeclaration assertion TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportAllDeclaration { type: "ExportAllDeclaration", - assertions: Array [ + assertions: [ ImportAttribute { type: "ImportAttribute", key: Identifier { diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/assertion/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/assertion/snapshots/2-TSESTree-Tokens.shot index c1e14a803e22..c50336f8291c 100644 --- a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/assertion/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/assertion/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportAllDeclaration assertion TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/assertion/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/assertion/snapshots/3-Babel-AST.shot index 5a36d4040e4a..ce9d2cc992a5 100644 --- a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/assertion/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/assertion/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration ExportAllDeclaration assertion Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportAllDeclaration { type: "ExportAllDeclaration", - assertions: Array [ + assertions: [ ImportAttribute { type: "ImportAttribute", key: Identifier { diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/assertion/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/assertion/snapshots/4-Babel-Tokens.shot index 963999a2a4dc..1639955fdd63 100644 --- a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/assertion/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/assertion/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportAllDeclaration assertion Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/kind-type/fixture.ts b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/fixture.ts similarity index 100% rename from packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/kind-type/fixture.ts rename to packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/fixture.ts diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..46c322f26487 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,48 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportAllDeclaration kind-type TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + ExportAllDeclaration { + type: "ExportAllDeclaration", + assertions: [], + exported: Identifier { + type: "Identifier", + name: "x", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + exportKind: "type", + source: Literal { + type: "Literal", + raw: "'a'", + value: "a", + + range: [24, 27], + loc: { + start: { column: 24, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + + range: [0, 28], + loc: { + start: { column: 0, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + ], + sourceType: "module", + + range: [0, 29], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/kind-type/snapshots/1-TSESTree-Error.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/1-TSESTree-Error.shot similarity index 100% rename from packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/kind-type/snapshots/1-TSESTree-Error.shot rename to packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/1-TSESTree-Error.shot diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/kind-type/snapshots/2-Babel-Error.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/2-Babel-Error.shot similarity index 100% rename from packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/kind-type/snapshots/2-Babel-Error.shot rename to packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/2-Babel-Error.shot diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..a2c51e97194d --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,86 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportAllDeclaration kind-type TSESTree - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "export", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "type", + + range: [7, 11], + loc: { + start: { column: 7, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "*", + + range: [12, 13], + loc: { + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "as", + + range: [14, 16], + loc: { + start: { column: 14, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "x", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "from", + + range: [19, 23], + loc: { + start: { column: 19, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + String { + type: "String", + value: "'a'", + + range: [24, 27], + loc: { + start: { column: 24, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [27, 28], + loc: { + start: { column: 27, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/kind-type/snapshots/3-Alignment-Error.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/3-Alignment-Error.shot similarity index 100% rename from packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/kind-type/snapshots/3-Alignment-Error.shot rename to packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/3-Alignment-Error.shot diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..bed9ece4db99 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/3-Babel-AST.shot @@ -0,0 +1,48 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportAllDeclaration kind-type Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + ExportAllDeclaration { + type: "ExportAllDeclaration", + assertions: [], + exported: Identifier { + type: "Identifier", + name: "x", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + exportKind: "type", + source: Literal { + type: "Literal", + raw: "'a'", + value: "a", + + range: [24, 27], + loc: { + start: { column: 24, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + + range: [0, 28], + loc: { + start: { column: 0, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 29], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..22f611fcc4ad --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,86 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportAllDeclaration kind-type Babel - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "export", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "type", + + range: [7, 11], + loc: { + start: { column: 7, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "*", + + range: [12, 13], + loc: { + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "as", + + range: [14, 16], + loc: { + start: { column: 14, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "x", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "from", + + range: [19, 23], + loc: { + start: { column: 19, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + String { + type: "String", + value: "'a'", + + range: [24, 27], + loc: { + start: { column: 24, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [27, 28], + loc: { + start: { column: 27, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..7d543dbf7590 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,53 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportAllDeclaration kind-type AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExportAllDeclaration { + type: 'ExportAllDeclaration', + assertions: Array [], + exported: Identifier { + type: 'Identifier', + name: 'x', + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + exportKind: 'type', + source: Literal { + type: 'Literal', + raw: '\\'a\\'', + value: 'a', + + range: [24, 27], + loc: { + start: { column: 24, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + + range: [0, 28], + loc: { + start: { column: 0, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + ], +- sourceType: 'module', ++ sourceType: 'script', + + range: [0, 29], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..3ae1629d114b --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportAllDeclaration kind-type AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/named/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/named/snapshots/1-TSESTree-AST.shot index 0650677e2f6c..414f4ad0e4dd 100644 --- a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/named/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/named/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration ExportAllDeclaration named TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportAllDeclaration { type: "ExportAllDeclaration", - assertions: Array [], + assertions: [], exported: Identifier { type: "Identifier", name: "mod", diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/named/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/named/snapshots/2-TSESTree-Tokens.shot index 7fc2d67babaf..ad279ddfb1f9 100644 --- a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/named/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/named/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportAllDeclaration named TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/named/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/named/snapshots/3-Babel-AST.shot index 251754367731..d5105afc07bc 100644 --- a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/named/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/named/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration ExportAllDeclaration named Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportAllDeclaration { type: "ExportAllDeclaration", - assertions: Array [], + assertions: [], exported: Identifier { type: "Identifier", name: "mod", diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/named/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/named/snapshots/4-Babel-Tokens.shot index 66f249ee6ca3..868ab0e5a710 100644 --- a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/named/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/named/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportAllDeclaration named Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/type-kind/fixture.ts b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/fixture.ts similarity index 100% rename from packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/type-kind/fixture.ts rename to packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/fixture.ts diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..f027390217e8 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,39 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportAllDeclaration type-kind TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + ExportAllDeclaration { + type: "ExportAllDeclaration", + assertions: [], + exported: null, + exportKind: "type", + source: Literal { + type: "Literal", + raw: "'a'", + value: "a", + + range: [19, 22], + loc: { + start: { column: 19, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + + range: [0, 23], + loc: { + start: { column: 0, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + ], + sourceType: "module", + + range: [0, 24], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/type-kind/snapshots/1-TSESTree-Error.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/1-TSESTree-Error.shot similarity index 100% rename from packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/type-kind/snapshots/1-TSESTree-Error.shot rename to packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/1-TSESTree-Error.shot diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/type-kind/snapshots/2-Babel-Error.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/2-Babel-Error.shot similarity index 100% rename from packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/type-kind/snapshots/2-Babel-Error.shot rename to packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/2-Babel-Error.shot diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..0fb690c907f9 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,66 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportAllDeclaration type-kind TSESTree - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "export", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "type", + + range: [7, 11], + loc: { + start: { column: 7, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "*", + + range: [12, 13], + loc: { + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "from", + + range: [14, 18], + loc: { + start: { column: 14, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + String { + type: "String", + value: "'a'", + + range: [19, 22], + loc: { + start: { column: 19, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/type-kind/snapshots/3-Alignment-Error.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/3-Alignment-Error.shot similarity index 100% rename from packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/type-kind/snapshots/3-Alignment-Error.shot rename to packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/3-Alignment-Error.shot diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..f0fa5824b7b9 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/3-Babel-AST.shot @@ -0,0 +1,39 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportAllDeclaration type-kind Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + ExportAllDeclaration { + type: "ExportAllDeclaration", + assertions: [], + exported: null, + exportKind: "type", + source: Literal { + type: "Literal", + raw: "'a'", + value: "a", + + range: [19, 22], + loc: { + start: { column: 19, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + + range: [0, 23], + loc: { + start: { column: 0, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 24], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..9ee898d6e7c2 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,66 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportAllDeclaration type-kind Babel - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "export", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "type", + + range: [7, 11], + loc: { + start: { column: 7, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "*", + + range: [12, 13], + loc: { + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "from", + + range: [14, 18], + loc: { + start: { column: 14, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + String { + type: "String", + value: "'a'", + + range: [19, 22], + loc: { + start: { column: 19, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..50686a548344 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,44 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportAllDeclaration type-kind AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExportAllDeclaration { + type: 'ExportAllDeclaration', + assertions: Array [], + exported: null, + exportKind: 'type', + source: Literal { + type: 'Literal', + raw: '\\'a\\'', + value: 'a', + + range: [19, 22], + loc: { + start: { column: 19, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + + range: [0, 23], + loc: { + start: { column: 0, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + ], +- sourceType: 'module', ++ sourceType: 'script', + + range: [0, 24], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..b2a5206fd193 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportAllDeclaration type-kind AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/unnamed/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/unnamed/snapshots/1-TSESTree-AST.shot index 170461aa1dbe..e7e2e4c8e244 100644 --- a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/unnamed/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/unnamed/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration ExportAllDeclaration unnamed TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportAllDeclaration { type: "ExportAllDeclaration", - assertions: Array [], + assertions: [], exported: null, exportKind: "value", source: Literal { diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/unnamed/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/unnamed/snapshots/2-TSESTree-Tokens.shot index 29ffb6ae0fef..15287b225848 100644 --- a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/unnamed/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/unnamed/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportAllDeclaration unnamed TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/unnamed/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/unnamed/snapshots/3-Babel-AST.shot index 67c28f6a2394..e7550922727b 100644 --- a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/unnamed/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/unnamed/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration ExportAllDeclaration unnamed Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportAllDeclaration { type: "ExportAllDeclaration", - assertions: Array [], + assertions: [], exported: null, exportKind: "value", source: Literal { diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/unnamed/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/unnamed/snapshots/4-Babel-Tokens.shot index 82327ff3352a..b9f418d86463 100644 --- a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/unnamed/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/unnamed/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportAllDeclaration unnamed Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-class/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-class/snapshots/1-TSESTree-AST.shot index bc5b9ffa8c16..39f134981110 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-class/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-class/snapshots/1-TSESTree-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures declaration ExportDefaultDeclaration anonymous-class TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportDefaultDeclaration { type: "ExportDefaultDeclaration", declaration: ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [21, 23], loc: { diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-class/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-class/snapshots/2-TSESTree-Tokens.shot index 9773e0f17a93..aba25888744b 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-class/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-class/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportDefaultDeclaration anonymous-class TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-class/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-class/snapshots/3-Babel-AST.shot index 1262745aeade..dcaee61274d6 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-class/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-class/snapshots/3-Babel-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures declaration ExportDefaultDeclaration anonymous-class Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportDefaultDeclaration { type: "ExportDefaultDeclaration", declaration: ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [21, 23], loc: { diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-class/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-class/snapshots/4-Babel-Tokens.shot index 74d6f62864bb..5eacb73a32a7 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-class/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-class/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportDefaultDeclaration anonymous-class Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-function/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-function/snapshots/1-TSESTree-AST.shot index e30c973e4c53..b385410a6f48 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-function/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-function/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration ExportDefaultDeclaration anonymous-function TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportDefaultDeclaration { type: "ExportDefaultDeclaration", declaration: FunctionDeclaration { @@ -11,7 +11,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [27, 29], loc: { @@ -22,7 +22,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [15, 29], loc: { diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-function/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-function/snapshots/2-TSESTree-Tokens.shot index 292689734d68..99bac9121e70 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-function/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-function/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportDefaultDeclaration anonymous-function TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-function/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-function/snapshots/3-Babel-AST.shot index d379b69f6c45..c8ede2f5ddc3 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-function/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-function/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration ExportDefaultDeclaration anonymous-function Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportDefaultDeclaration { type: "ExportDefaultDeclaration", declaration: FunctionDeclaration { @@ -11,7 +11,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [27, 29], loc: { @@ -22,7 +22,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [15, 29], loc: { diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-function/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-function/snapshots/4-Babel-Tokens.shot index b52b674b4d56..d0d5c932c088 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-function/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-function/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportDefaultDeclaration anonymous-function Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/arrow-function-expression/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/arrow-function-expression/snapshots/1-TSESTree-AST.shot index d4ccafd5b51a..9c1328c3fc97 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/arrow-function-expression/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/arrow-function-expression/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration ExportDefaultDeclaration arrow-function-expression TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportDefaultDeclaration { type: "ExportDefaultDeclaration", declaration: ArrowFunctionExpression { @@ -11,7 +11,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [21, 23], loc: { @@ -22,7 +22,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [15, 23], loc: { diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/arrow-function-expression/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/arrow-function-expression/snapshots/2-TSESTree-Tokens.shot index b49305998ffb..d40a93fc1de4 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/arrow-function-expression/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/arrow-function-expression/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportDefaultDeclaration arrow-function-expression TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/arrow-function-expression/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/arrow-function-expression/snapshots/3-Babel-AST.shot index 85a0d39624f9..c72af9778c5a 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/arrow-function-expression/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/arrow-function-expression/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration ExportDefaultDeclaration arrow-function-expression Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportDefaultDeclaration { type: "ExportDefaultDeclaration", declaration: ArrowFunctionExpression { @@ -11,7 +11,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [21, 23], loc: { @@ -22,7 +22,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [15, 23], loc: { diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/arrow-function-expression/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/arrow-function-expression/snapshots/4-Babel-Tokens.shot index fc7a2baf0885..1005e645c88e 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/arrow-function-expression/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/arrow-function-expression/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportDefaultDeclaration arrow-function-expression Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class-expression/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class-expression/snapshots/1-TSESTree-AST.shot index 166a1d77c3d6..27c43a096a46 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class-expression/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class-expression/snapshots/1-TSESTree-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures declaration ExportDefaultDeclaration class-expression TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportDefaultDeclaration { type: "ExportDefaultDeclaration", declaration: ClassExpression { type: "ClassExpression", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [26, 28], loc: { diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class-expression/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class-expression/snapshots/2-TSESTree-Tokens.shot index 4e62aa0dc6a7..2a2f8e04c0c5 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class-expression/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class-expression/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportDefaultDeclaration class-expression TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class-expression/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class-expression/snapshots/3-Babel-AST.shot index 25ab06d87ef7..6db0d0cdb7a6 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class-expression/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class-expression/snapshots/3-Babel-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures declaration ExportDefaultDeclaration class-expression Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportDefaultDeclaration { type: "ExportDefaultDeclaration", declaration: ClassExpression { type: "ClassExpression", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [26, 28], loc: { diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class-expression/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class-expression/snapshots/4-Babel-Tokens.shot index 4137a875c9fd..c205c46f5583 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class-expression/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class-expression/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportDefaultDeclaration class-expression Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class/snapshots/1-TSESTree-AST.shot index f2ce271ea778..10f61a476b32 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class/snapshots/1-TSESTree-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures declaration ExportDefaultDeclaration class TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportDefaultDeclaration { type: "ExportDefaultDeclaration", declaration: ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [25, 27], loc: { diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class/snapshots/2-TSESTree-Tokens.shot index 5703d446ea54..ad5978aa3f85 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportDefaultDeclaration class TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class/snapshots/3-Babel-AST.shot index 432ded443078..7c5b3f31805c 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class/snapshots/3-Babel-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures declaration ExportDefaultDeclaration class Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportDefaultDeclaration { type: "ExportDefaultDeclaration", declaration: ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [25, 27], loc: { diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class/snapshots/4-Babel-Tokens.shot index 01f9049584e8..3aafc2c7c5b3 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportDefaultDeclaration class Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/function/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/function/snapshots/1-TSESTree-AST.shot index 59570dbd56d7..8583f46cc17f 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/function/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/function/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration ExportDefaultDeclaration function TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportDefaultDeclaration { type: "ExportDefaultDeclaration", declaration: FunctionDeclaration { @@ -11,7 +11,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [30, 32], loc: { @@ -31,7 +31,7 @@ Program { end: { column: 27, line: 1 }, }, }, - params: Array [], + params: [], range: [15, 32], loc: { diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/function/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/function/snapshots/2-TSESTree-Tokens.shot index b3a2cd2b15ba..b4180caaa420 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/function/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/function/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportDefaultDeclaration function TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/function/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/function/snapshots/3-Babel-AST.shot index 98b11432232d..3b4742443d97 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/function/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/function/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration ExportDefaultDeclaration function Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportDefaultDeclaration { type: "ExportDefaultDeclaration", declaration: FunctionDeclaration { @@ -11,7 +11,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [30, 32], loc: { @@ -31,7 +31,7 @@ Program { end: { column: 27, line: 1 }, }, }, - params: Array [], + params: [], range: [15, 32], loc: { diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/function/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/function/snapshots/4-Babel-Tokens.shot index 44f7cd272d3d..411840fd9858 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/function/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/function/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportDefaultDeclaration function Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/identifier/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/identifier/snapshots/1-TSESTree-AST.shot index 11900ab6838c..2b194f9fe410 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/identifier/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/identifier/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration ExportDefaultDeclaration identifier TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportDefaultDeclaration { type: "ExportDefaultDeclaration", declaration: Identifier { diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/identifier/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/identifier/snapshots/2-TSESTree-Tokens.shot index d52ccbb0406c..30c53d2f4a7a 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/identifier/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/identifier/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportDefaultDeclaration identifier TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/identifier/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/identifier/snapshots/3-Babel-AST.shot index be4bb919b887..39407823cccd 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/identifier/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/identifier/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration ExportDefaultDeclaration identifier Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportDefaultDeclaration { type: "ExportDefaultDeclaration", declaration: Identifier { diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/identifier/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/identifier/snapshots/4-Babel-Tokens.shot index e4567a57c93e..be69d6ca5086 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/identifier/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/identifier/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportDefaultDeclaration identifier Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/interface/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/interface/snapshots/1-TSESTree-AST.shot index 755e1480fde3..4f5ff343403a 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/interface/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/interface/snapshots/1-TSESTree-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures declaration ExportDefaultDeclaration interface TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportDefaultDeclaration { type: "ExportDefaultDeclaration", declaration: TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [29, 31], loc: { diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/interface/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/interface/snapshots/2-TSESTree-Tokens.shot index e528391c3b1c..ef4079f33ff4 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/interface/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/interface/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportDefaultDeclaration interface TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/interface/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/interface/snapshots/3-Babel-AST.shot index 2619c1ffa782..5fac7ff0f1e0 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/interface/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/interface/snapshots/3-Babel-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures declaration ExportDefaultDeclaration interface Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportDefaultDeclaration { type: "ExportDefaultDeclaration", declaration: TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [29, 31], loc: { diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/interface/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/interface/snapshots/4-Babel-Tokens.shot index 9363ba0a28b3..b79b0f82b509 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/interface/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/interface/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportDefaultDeclaration interface Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/literal/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/literal/snapshots/1-TSESTree-AST.shot index dae455b793b0..11458f7e5bd5 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/literal/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/literal/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration ExportDefaultDeclaration literal TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportDefaultDeclaration { type: "ExportDefaultDeclaration", declaration: Literal { diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/literal/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/literal/snapshots/2-TSESTree-Tokens.shot index 48eaeb62600c..b7d2ef68ad37 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/literal/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/literal/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportDefaultDeclaration literal TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/literal/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/literal/snapshots/3-Babel-AST.shot index f4c959e63f26..7a9e5860ce5f 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/literal/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/literal/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration ExportDefaultDeclaration literal Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportDefaultDeclaration { type: "ExportDefaultDeclaration", declaration: Literal { diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/literal/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/literal/snapshots/4-Babel-Tokens.shot index 209d1dbb63f2..cf0e73a3788c 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/literal/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/literal/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportDefaultDeclaration literal Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/1-TSESTree-AST.shot index c5593e6762b6..3d293d479061 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/1-TSESTree-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures declaration ExportNamedDeclaration aliased TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: null, exportKind: "value", source: null, - specifiers: Array [ + specifiers: [ ExportSpecifier { type: "ExportSpecifier", exported: Identifier { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/2-TSESTree-Tokens.shot index 24df13756b8d..8bdbd3c34b8f 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportNamedDeclaration aliased TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/3-Babel-AST.shot index 8978d2ea713e..2027ecaf04ea 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/3-Babel-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures declaration ExportNamedDeclaration aliased Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: null, exportKind: "value", source: null, - specifiers: Array [ + specifiers: [ ExportSpecifier { type: "ExportSpecifier", exported: Identifier { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/4-Babel-Tokens.shot index bce9dd071b10..68b9dbc1c3fd 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportNamedDeclaration aliased Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/class/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/class/snapshots/1-TSESTree-AST.shot index d33d4cd08d4d..38a932b15106 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/class/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/class/snapshots/1-TSESTree-AST.shot @@ -3,15 +3,15 @@ exports[`AST Fixtures declaration ExportNamedDeclaration class TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [17, 19], loc: { @@ -39,7 +39,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [0, 19], loc: { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/class/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/class/snapshots/2-TSESTree-Tokens.shot index b9218046a087..da03b4522a96 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/class/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/class/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportNamedDeclaration class TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/class/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/class/snapshots/3-Babel-AST.shot index b50c37aca337..d96daa466b8d 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/class/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/class/snapshots/3-Babel-AST.shot @@ -3,15 +3,15 @@ exports[`AST Fixtures declaration ExportNamedDeclaration class Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [17, 19], loc: { @@ -39,7 +39,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [0, 19], loc: { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/class/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/class/snapshots/4-Babel-Tokens.shot index cdfb7afcd34f..0b74ed72dd89 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/class/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/class/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportNamedDeclaration class Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/declare-function/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/declare-function/snapshots/1-TSESTree-AST.shot index e6cd6c4d7a38..e3bcf1073f7d 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/declare-function/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/declare-function/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration ExportNamedDeclaration declare-function TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: TSDeclareFunction { type: "TSDeclareFunction", async: false, @@ -23,7 +23,7 @@ Program { end: { column: 27, line: 1 }, }, }, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSVoidKeyword { @@ -51,7 +51,7 @@ Program { }, exportKind: "type", source: null, - specifiers: Array [], + specifiers: [], range: [0, 36], loc: { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/declare-function/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/declare-function/snapshots/2-TSESTree-Tokens.shot index 13073c0479d3..ef2a18907837 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/declare-function/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/declare-function/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportNamedDeclaration declare-function TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/declare-function/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/declare-function/snapshots/3-Babel-AST.shot index 59786b3f97ea..c210cca4bd47 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/declare-function/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/declare-function/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration ExportNamedDeclaration declare-function Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: TSDeclareFunction { type: "TSDeclareFunction", async: false, @@ -23,7 +23,7 @@ Program { end: { column: 27, line: 1 }, }, }, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSVoidKeyword { @@ -51,7 +51,7 @@ Program { }, exportKind: "type", source: null, - specifiers: Array [], + specifiers: [], range: [0, 36], loc: { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/declare-function/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/declare-function/snapshots/4-Babel-Tokens.shot index b5ea9d5fbf4b..aee8cbf01b0b 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/declare-function/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/declare-function/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportNamedDeclaration declare-function Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/enum/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/enum/snapshots/1-TSESTree-AST.shot index 70f1a5783f9c..52eb4ae3b015 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/enum/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/enum/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration ExportNamedDeclaration enum TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: TSEnumDeclaration { type: "TSEnumDeclaration", id: Identifier { @@ -19,7 +19,7 @@ Program { end: { column: 15, line: 1 }, }, }, - members: Array [], + members: [], range: [7, 18], loc: { @@ -29,7 +29,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [0, 18], loc: { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/enum/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/enum/snapshots/2-TSESTree-Tokens.shot index 5c6e73d4b258..91b0e17dbc6f 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/enum/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/enum/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportNamedDeclaration enum TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/enum/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/enum/snapshots/3-Babel-AST.shot index cff1b64a3bcc..8c6e85d98a40 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/enum/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/enum/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration ExportNamedDeclaration enum Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: TSEnumDeclaration { type: "TSEnumDeclaration", id: Identifier { @@ -19,7 +19,7 @@ Program { end: { column: 15, line: 1 }, }, }, - members: Array [], + members: [], range: [7, 18], loc: { @@ -29,7 +29,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [0, 18], loc: { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/enum/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/enum/snapshots/4-Babel-Tokens.shot index e7ad15b4a50c..475163c46d7e 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/enum/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/enum/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportNamedDeclaration enum Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/function-declaration/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/function-declaration/snapshots/1-TSESTree-AST.shot index ad4118a633cc..d00e691d3bc6 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/function-declaration/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/function-declaration/snapshots/1-TSESTree-AST.shot @@ -3,16 +3,16 @@ exports[`AST Fixtures declaration ExportNamedDeclaration function-declaration TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [22, 24], loc: { @@ -32,7 +32,7 @@ Program { end: { column: 19, line: 1 }, }, }, - params: Array [], + params: [], range: [7, 24], loc: { @@ -42,7 +42,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [0, 24], loc: { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/function-declaration/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/function-declaration/snapshots/2-TSESTree-Tokens.shot index c4c9340ff8c5..e1e2e74b3d96 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/function-declaration/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/function-declaration/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportNamedDeclaration function-declaration TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/function-declaration/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/function-declaration/snapshots/3-Babel-AST.shot index 0a8a9e7e818c..c798b74d67e4 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/function-declaration/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/function-declaration/snapshots/3-Babel-AST.shot @@ -3,16 +3,16 @@ exports[`AST Fixtures declaration ExportNamedDeclaration function-declaration Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [22, 24], loc: { @@ -32,7 +32,7 @@ Program { end: { column: 19, line: 1 }, }, }, - params: Array [], + params: [], range: [7, 24], loc: { @@ -42,7 +42,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [0, 24], loc: { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/function-declaration/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/function-declaration/snapshots/4-Babel-Tokens.shot index f60ad2056b01..e92cf33ebc12 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/function-declaration/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/function-declaration/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportNamedDeclaration function-declaration Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/1-TSESTree-AST.shot index 3a91eb9c2525..24a743aa3e04 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/1-TSESTree-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures declaration ExportNamedDeclaration identifier-braced TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: null, exportKind: "value", source: null, - specifiers: Array [ + specifiers: [ ExportSpecifier { type: "ExportSpecifier", exported: Identifier { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/2-TSESTree-Tokens.shot index 471a1862f6cf..5d19014688b4 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportNamedDeclaration identifier-braced TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/3-Babel-AST.shot index 355669e5d302..c99b8674c943 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/3-Babel-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures declaration ExportNamedDeclaration identifier-braced Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: null, exportKind: "value", source: null, - specifiers: Array [ + specifiers: [ ExportSpecifier { type: "ExportSpecifier", exported: Identifier { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/4-Babel-Tokens.shot index c01ed8b93a41..e31a37ad775b 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportNamedDeclaration identifier-braced Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/1-TSESTree-AST.shot index 4c2fa789c167..ce7c51c99dc4 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/1-TSESTree-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures declaration ExportNamedDeclaration identifier-many TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: null, exportKind: "value", source: null, - specifiers: Array [ + specifiers: [ ExportSpecifier { type: "ExportSpecifier", exported: Identifier { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/2-TSESTree-Tokens.shot index 91bf0e7c2b99..1a0506845dc5 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportNamedDeclaration identifier-many TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/3-Babel-AST.shot index d228386edb52..9b3deae0f972 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/3-Babel-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures declaration ExportNamedDeclaration identifier-many Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: null, exportKind: "value", source: null, - specifiers: Array [ + specifiers: [ ExportSpecifier { type: "ExportSpecifier", exported: Identifier { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/4-Babel-Tokens.shot index f29165c63d00..f3da2541784c 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportNamedDeclaration identifier-many Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/interface/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/interface/snapshots/1-TSESTree-AST.shot index a301d0efca70..de96750e8a2e 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/interface/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/interface/snapshots/1-TSESTree-AST.shot @@ -3,15 +3,15 @@ exports[`AST Fixtures declaration ExportNamedDeclaration interface TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [21, 23], loc: { @@ -38,7 +38,7 @@ Program { }, exportKind: "type", source: null, - specifiers: Array [], + specifiers: [], range: [0, 23], loc: { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/interface/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/interface/snapshots/2-TSESTree-Tokens.shot index 9a0b5ef7598a..cbb242a24f43 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/interface/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/interface/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportNamedDeclaration interface TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/interface/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/interface/snapshots/3-Babel-AST.shot index 776ce5004ba2..8d1709b5904f 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/interface/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/interface/snapshots/3-Babel-AST.shot @@ -3,15 +3,15 @@ exports[`AST Fixtures declaration ExportNamedDeclaration interface Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [21, 23], loc: { @@ -38,7 +38,7 @@ Program { }, exportKind: "type", source: null, - specifiers: Array [], + specifiers: [], range: [0, 23], loc: { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/interface/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/interface/snapshots/4-Babel-Tokens.shot index c52d2829e2e4..2c527b823ce8 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/interface/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/interface/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportNamedDeclaration interface Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/namespace/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/namespace/snapshots/1-TSESTree-AST.shot index 70aa834e1993..fe50a12a050a 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/namespace/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/namespace/snapshots/1-TSESTree-AST.shot @@ -3,15 +3,15 @@ exports[`AST Fixtures declaration ExportNamedDeclaration namespace TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [], + body: [], range: [21, 23], loc: { @@ -39,7 +39,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [0, 23], loc: { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/namespace/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/namespace/snapshots/2-TSESTree-Tokens.shot index 72df88433a45..532f4f243106 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/namespace/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/namespace/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportNamedDeclaration namespace TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/namespace/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/namespace/snapshots/3-Babel-AST.shot index 494c5144247c..f05b3cdee636 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/namespace/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/namespace/snapshots/3-Babel-AST.shot @@ -3,15 +3,15 @@ exports[`AST Fixtures declaration ExportNamedDeclaration namespace Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [], + body: [], range: [21, 23], loc: { @@ -38,7 +38,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [0, 23], loc: { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/namespace/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/namespace/snapshots/4-Babel-Tokens.shot index 0a3d1ca1dee4..cfd836903998 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/namespace/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/namespace/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportNamedDeclaration namespace Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/type-alias/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/type-alias/snapshots/1-TSESTree-AST.shot index 2a6f27ff6911..9bc7be30c10f 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/type-alias/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/type-alias/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration ExportNamedDeclaration type-alias TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -48,7 +48,7 @@ Program { }, exportKind: "type", source: null, - specifiers: Array [], + specifiers: [], range: [0, 18], loc: { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/type-alias/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/type-alias/snapshots/2-TSESTree-Tokens.shot index b7fb84a7c81e..de751d811934 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/type-alias/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/type-alias/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportNamedDeclaration type-alias TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/type-alias/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/type-alias/snapshots/3-Babel-AST.shot index b4392aa8e9c9..6b5163b391ec 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/type-alias/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/type-alias/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration ExportNamedDeclaration type-alias Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -48,7 +48,7 @@ Program { }, exportKind: "type", source: null, - specifiers: Array [], + specifiers: [], range: [0, 18], loc: { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/type-alias/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/type-alias/snapshots/4-Babel-Tokens.shot index 597a4d5f2bdb..7714b3b88ef5 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/type-alias/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/type-alias/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportNamedDeclaration type-alias Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/variable-declaration/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/variable-declaration/snapshots/1-TSESTree-AST.shot index 64a85af7e541..a28d27041498 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/variable-declaration/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/variable-declaration/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures declaration ExportNamedDeclaration variable-declaration TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -51,7 +51,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [0, 19], loc: { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/variable-declaration/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/variable-declaration/snapshots/2-TSESTree-Tokens.shot index 73bd6c93bb9d..7a32f929d340 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/variable-declaration/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/variable-declaration/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportNamedDeclaration variable-declaration TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/variable-declaration/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/variable-declaration/snapshots/3-Babel-AST.shot index 8b842b6d5841..a3ea65e5f456 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/variable-declaration/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/variable-declaration/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures declaration ExportNamedDeclaration variable-declaration Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -51,7 +51,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [0, 19], loc: { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/variable-declaration/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/variable-declaration/snapshots/4-Babel-Tokens.shot index 1bfff47fa927..ea36ecd7aa21 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/variable-declaration/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/variable-declaration/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportNamedDeclaration variable-declaration Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/async/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/async/snapshots/1-TSESTree-AST.shot index 7a7cd7ea28a3..e6fff4485ad5 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/async/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/async/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures declaration FunctionDeclaration async TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: true, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [21, 23], loc: { @@ -29,7 +29,7 @@ Program { end: { column: 18, line: 1 }, }, }, - params: Array [], + params: [], range: [0, 23], loc: { diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/async/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/async/snapshots/2-TSESTree-Tokens.shot index 3ca43d1e9fa1..f2be17c690e8 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/async/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/async/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration FunctionDeclaration async TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "async", diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/async/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/async/snapshots/3-Babel-AST.shot index c24f3da9207c..89eed548ae4d 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/async/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/async/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures declaration FunctionDeclaration async Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: true, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [21, 23], loc: { @@ -29,7 +29,7 @@ Program { end: { column: 18, line: 1 }, }, }, - params: Array [], + params: [], range: [0, 23], loc: { diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/async/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/async/snapshots/4-Babel-Tokens.shot index 22c009c000f1..ba1c9978f034 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/async/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/async/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration FunctionDeclaration async Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "async", diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot index e21b80de90ed..5488f802897c 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures declaration FunctionDeclaration empty TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [15, 17], loc: { @@ -29,7 +29,7 @@ Program { end: { column: 12, line: 1 }, }, }, - params: Array [], + params: [], range: [0, 17], loc: { diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/empty/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/empty/snapshots/2-TSESTree-Tokens.shot index d53355506df5..042715ffc171 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/empty/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/empty/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration FunctionDeclaration empty TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/empty/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/empty/snapshots/3-Babel-AST.shot index e339b4afda47..407303b37455 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/empty/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/empty/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures declaration FunctionDeclaration empty Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [15, 17], loc: { @@ -29,7 +29,7 @@ Program { end: { column: 12, line: 1 }, }, }, - params: Array [], + params: [], range: [0, 17], loc: { diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/empty/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/empty/snapshots/4-Babel-Tokens.shot index 0b7e51f42351..28aceb9c48ff 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/empty/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/empty/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration FunctionDeclaration empty Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/generator/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/generator/snapshots/1-TSESTree-AST.shot index 7ad2d7a2dcef..e4e71a2fb49d 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/generator/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/generator/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures declaration FunctionDeclaration generator TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [16, 18], loc: { @@ -29,7 +29,7 @@ Program { end: { column: 13, line: 1 }, }, }, - params: Array [], + params: [], range: [0, 18], loc: { diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/generator/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/generator/snapshots/2-TSESTree-Tokens.shot index d6d229236840..e1eafea89526 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/generator/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/generator/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration FunctionDeclaration generator TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/generator/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/generator/snapshots/3-Babel-AST.shot index 46d3edd3250d..69d9b2a6ddbe 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/generator/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/generator/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures declaration FunctionDeclaration generator Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [16, 18], loc: { @@ -29,7 +29,7 @@ Program { end: { column: 13, line: 1 }, }, }, - params: Array [], + params: [], range: [0, 18], loc: { diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/generator/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/generator/snapshots/4-Babel-Tokens.shot index 3fb7fa84513a..dc6257effe2f 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/generator/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/generator/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration FunctionDeclaration generator Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-many/snapshots/1-TSESTree-AST.shot index 9a6db3d1c4c8..50300869247a 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-many/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures declaration FunctionDeclaration param-many TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [22, 24], loc: { @@ -29,7 +29,7 @@ Program { end: { column: 12, line: 1 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "a", diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-many/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-many/snapshots/2-TSESTree-Tokens.shot index 08de97f6423d..f001e95f5f7e 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-many/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-many/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration FunctionDeclaration param-many TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-many/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-many/snapshots/3-Babel-AST.shot index c04ed8242841..4ca0c91dc020 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-many/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-many/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures declaration FunctionDeclaration param-many Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [22, 24], loc: { @@ -29,7 +29,7 @@ Program { end: { column: 12, line: 1 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "a", diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-many/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-many/snapshots/4-Babel-Tokens.shot index a0aa44879941..ec863b70af3a 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-many/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-many/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration FunctionDeclaration param-many Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-one/snapshots/1-TSESTree-AST.shot index 99d9cdc9e989..f2b6eb75bd01 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-one/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures declaration FunctionDeclaration param-one TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [16, 18], loc: { @@ -29,7 +29,7 @@ Program { end: { column: 12, line: 1 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "a", diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-one/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-one/snapshots/2-TSESTree-Tokens.shot index 81f8b5dc7518..08cb55aba956 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-one/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-one/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration FunctionDeclaration param-one TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-one/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-one/snapshots/3-Babel-AST.shot index 6e503e760fb6..c13e087fb882 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-one/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-one/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures declaration FunctionDeclaration param-one Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [16, 18], loc: { @@ -29,7 +29,7 @@ Program { end: { column: 12, line: 1 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "a", diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-one/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-one/snapshots/4-Babel-Tokens.shot index 802761abb0ee..783662ff513e 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-one/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-one/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration FunctionDeclaration param-one Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/returnType/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/returnType/snapshots/1-TSESTree-AST.shot index d9d3eccf8d7f..9b4bc22574ac 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/returnType/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/returnType/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures declaration FunctionDeclaration returnType TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [21, 23], loc: { @@ -29,7 +29,7 @@ Program { end: { column: 12, line: 1 }, }, }, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSVoidKeyword { diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/returnType/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/returnType/snapshots/2-TSESTree-Tokens.shot index d3930ccf8dcf..2a776251440c 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/returnType/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/returnType/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration FunctionDeclaration returnType TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/returnType/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/returnType/snapshots/3-Babel-AST.shot index 8f9c235c4292..56fda356c029 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/returnType/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/returnType/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures declaration FunctionDeclaration returnType Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [21, 23], loc: { @@ -29,7 +29,7 @@ Program { end: { column: 12, line: 1 }, }, }, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSVoidKeyword { diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/returnType/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/returnType/snapshots/4-Babel-Tokens.shot index 0c94d7108ae4..9a99032fcc8a 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/returnType/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/returnType/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration FunctionDeclaration returnType Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot index 24eae0d32901..c0c9374cef98 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures declaration FunctionDeclaration type-param-many TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [24, 26], loc: { @@ -29,12 +29,13 @@ Program { end: { column: 12, line: 1 }, }, }, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", @@ -56,6 +57,7 @@ Program { }, TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", @@ -77,6 +79,7 @@ Program { }, TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-many/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-many/snapshots/2-TSESTree-Tokens.shot index 99504b183408..75a67d50c5b6 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-many/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-many/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration FunctionDeclaration type-param-many TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-many/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-many/snapshots/3-Babel-AST.shot index 690e6d4036ba..7fe3f8c67033 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-many/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-many/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures declaration FunctionDeclaration type-param-many Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [24, 26], loc: { @@ -29,10 +29,10 @@ Program { end: { column: 12, line: 1 }, }, }, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-many/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-many/snapshots/4-Babel-Tokens.shot index b7e57a6f4045..6e7be9d179ff 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-many/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-many/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration FunctionDeclaration type-param-many Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot index 98ace90820fb..b910a007d541 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot @@ -39,6 +39,7 @@ exports[`AST Fixtures declaration FunctionDeclaration type-param-many AST Alignm params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', @@ -61,6 +62,7 @@ exports[`AST Fixtures declaration FunctionDeclaration type-param-many AST Alignm }, TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', @@ -83,6 +85,7 @@ exports[`AST Fixtures declaration FunctionDeclaration type-param-many AST Alignm }, TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot index b2caab0f05b8..591b41616e64 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures declaration FunctionDeclaration type-param-one TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [18, 20], loc: { @@ -29,12 +29,13 @@ Program { end: { column: 12, line: 1 }, }, }, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-one/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-one/snapshots/2-TSESTree-Tokens.shot index 9227520d1535..02474ef46852 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-one/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-one/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration FunctionDeclaration type-param-one TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-one/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-one/snapshots/3-Babel-AST.shot index 5083d4d25cb2..c15c7ebdeaa5 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-one/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-one/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures declaration FunctionDeclaration type-param-one Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [18, 20], loc: { @@ -29,10 +29,10 @@ Program { end: { column: 12, line: 1 }, }, }, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-one/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-one/snapshots/4-Babel-Tokens.shot index 72cd1481fd3f..d70daf45fdce 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-one/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-one/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration FunctionDeclaration type-param-one Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot index b997a40aca31..d54f1d9b3957 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot @@ -39,6 +39,7 @@ exports[`AST Fixtures declaration FunctionDeclaration type-param-one AST Alignme params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/assertion/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/assertion/snapshots/1-TSESTree-AST.shot index 877884e2c9ad..21520b956797 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/assertion/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/assertion/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration ImportDeclaration assertion TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ImportDeclaration { type: "ImportDeclaration", - assertions: Array [ + assertions: [ ImportAttribute { type: "ImportAttribute", key: Identifier { @@ -50,7 +50,7 @@ Program { end: { column: 24, line: 1 }, }, }, - specifiers: Array [ + specifiers: [ ImportNamespaceSpecifier { type: "ImportNamespaceSpecifier", local: Identifier { diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/assertion/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/assertion/snapshots/2-TSESTree-Tokens.shot index 3b0706c7d31f..ca2d51ea864d 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/assertion/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/assertion/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ImportDeclaration assertion TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/assertion/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/assertion/snapshots/3-Babel-AST.shot index 54c2381228b0..118fa518297c 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/assertion/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/assertion/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration ImportDeclaration assertion Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ImportDeclaration { type: "ImportDeclaration", - assertions: Array [ + assertions: [ ImportAttribute { type: "ImportAttribute", key: Identifier { @@ -50,7 +50,7 @@ Program { end: { column: 24, line: 1 }, }, }, - specifiers: Array [ + specifiers: [ ImportNamespaceSpecifier { type: "ImportNamespaceSpecifier", local: Identifier { diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/assertion/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/assertion/snapshots/4-Babel-Tokens.shot index 30c2bd49245d..49b1cbc7eea2 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/assertion/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/assertion/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ImportDeclaration assertion Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-many/snapshots/1-TSESTree-AST.shot index 3b5e6f5d956a..c313d622bce2 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-many/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration ImportDeclaration default-and-named-many TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ImportDeclaration { type: "ImportDeclaration", - assertions: Array [], + assertions: [], importKind: "value", source: Literal { type: "Literal", @@ -19,7 +19,7 @@ Program { end: { column: 32, line: 1 }, }, }, - specifiers: Array [ + specifiers: [ ImportDefaultSpecifier { type: "ImportDefaultSpecifier", local: Identifier { diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-many/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-many/snapshots/2-TSESTree-Tokens.shot index 1d4c57f89eb5..da4927d75a15 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-many/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-many/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ImportDeclaration default-and-named-many TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-many/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-many/snapshots/3-Babel-AST.shot index d1207f8c6cc5..1764fb31fe3d 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-many/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-many/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration ImportDeclaration default-and-named-many Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ImportDeclaration { type: "ImportDeclaration", - assertions: Array [], + assertions: [], importKind: "value", source: Literal { type: "Literal", @@ -19,7 +19,7 @@ Program { end: { column: 32, line: 1 }, }, }, - specifiers: Array [ + specifiers: [ ImportDefaultSpecifier { type: "ImportDefaultSpecifier", local: Identifier { diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-many/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-many/snapshots/4-Babel-Tokens.shot index 3cfb21679c8e..56cefd8c44c1 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-many/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-many/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ImportDeclaration default-and-named-many Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-none/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-none/snapshots/1-TSESTree-AST.shot index 0e94a0b6bb97..eb772c5560a9 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-none/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-none/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration ImportDeclaration default-and-named-none TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ImportDeclaration { type: "ImportDeclaration", - assertions: Array [], + assertions: [], importKind: "value", source: Literal { type: "Literal", @@ -19,7 +19,7 @@ Program { end: { column: 23, line: 2 }, }, }, - specifiers: Array [ + specifiers: [ ImportDefaultSpecifier { type: "ImportDefaultSpecifier", local: Identifier { diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-none/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-none/snapshots/2-TSESTree-Tokens.shot index 99bb6d113e54..2f82723a27ed 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-none/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-none/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ImportDeclaration default-and-named-none TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-none/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-none/snapshots/3-Babel-AST.shot index ee34379e43eb..9b1d52ebc7e1 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-none/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-none/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration ImportDeclaration default-and-named-none Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ImportDeclaration { type: "ImportDeclaration", - assertions: Array [], + assertions: [], importKind: "value", source: Literal { type: "Literal", @@ -19,7 +19,7 @@ Program { end: { column: 23, line: 2 }, }, }, - specifiers: Array [ + specifiers: [ ImportDefaultSpecifier { type: "ImportDefaultSpecifier", local: Identifier { diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-none/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-none/snapshots/4-Babel-Tokens.shot index 56ab10c4f1c8..534bd1e6fd92 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-none/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-none/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ImportDeclaration default-and-named-none Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-one/snapshots/1-TSESTree-AST.shot index 362d429e0274..1ea4756931ca 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-one/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration ImportDeclaration default-and-named-one TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ImportDeclaration { type: "ImportDeclaration", - assertions: Array [], + assertions: [], importKind: "value", source: Literal { type: "Literal", @@ -19,7 +19,7 @@ Program { end: { column: 26, line: 1 }, }, }, - specifiers: Array [ + specifiers: [ ImportDefaultSpecifier { type: "ImportDefaultSpecifier", local: Identifier { diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-one/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-one/snapshots/2-TSESTree-Tokens.shot index 99806f28e2f1..4716f47bf3df 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-one/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-one/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ImportDeclaration default-and-named-one TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-one/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-one/snapshots/3-Babel-AST.shot index 45b6d3ec61ed..55dcdb631c23 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-one/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-one/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration ImportDeclaration default-and-named-one Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ImportDeclaration { type: "ImportDeclaration", - assertions: Array [], + assertions: [], importKind: "value", source: Literal { type: "Literal", @@ -19,7 +19,7 @@ Program { end: { column: 26, line: 1 }, }, }, - specifiers: Array [ + specifiers: [ ImportDefaultSpecifier { type: "ImportDefaultSpecifier", local: Identifier { diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-one/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-one/snapshots/4-Babel-Tokens.shot index e11fa0be693a..4509845c744d 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-one/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-one/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ImportDeclaration default-and-named-one Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-namespace/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-namespace/snapshots/1-TSESTree-AST.shot index 88c4eac8c154..34c14d0729c0 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-namespace/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-namespace/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration ImportDeclaration default-and-namespace TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ImportDeclaration { type: "ImportDeclaration", - assertions: Array [], + assertions: [], importKind: "value", source: Literal { type: "Literal", @@ -19,7 +19,7 @@ Program { end: { column: 27, line: 1 }, }, }, - specifiers: Array [ + specifiers: [ ImportDefaultSpecifier { type: "ImportDefaultSpecifier", local: Identifier { diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-namespace/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-namespace/snapshots/2-TSESTree-Tokens.shot index f78a2e961787..cce319ecb95f 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-namespace/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-namespace/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ImportDeclaration default-and-namespace TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-namespace/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-namespace/snapshots/3-Babel-AST.shot index 25d8c6db0a39..4f2bdfa23b9e 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-namespace/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-namespace/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration ImportDeclaration default-and-namespace Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ImportDeclaration { type: "ImportDeclaration", - assertions: Array [], + assertions: [], importKind: "value", source: Literal { type: "Literal", @@ -19,7 +19,7 @@ Program { end: { column: 27, line: 1 }, }, }, - specifiers: Array [ + specifiers: [ ImportDefaultSpecifier { type: "ImportDefaultSpecifier", local: Identifier { diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-namespace/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-namespace/snapshots/4-Babel-Tokens.shot index b6bc0f06e1d4..e441c74cc6b3 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-namespace/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-namespace/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ImportDeclaration default-and-namespace Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/1-TSESTree-AST.shot index 8575ecc99e21..d8ef93e2bcf6 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration ImportDeclaration default TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ImportDeclaration { type: "ImportDeclaration", - assertions: Array [], + assertions: [], importKind: "value", source: Literal { type: "Literal", @@ -19,7 +19,7 @@ Program { end: { column: 19, line: 1 }, }, }, - specifiers: Array [ + specifiers: [ ImportDefaultSpecifier { type: "ImportDefaultSpecifier", local: Identifier { diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/2-TSESTree-Tokens.shot index b2ac2cf753d1..7ee197190751 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ImportDeclaration default TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/3-Babel-AST.shot index bfb44b15fa6e..4f1b046fcb67 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration ImportDeclaration default Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ImportDeclaration { type: "ImportDeclaration", - assertions: Array [], + assertions: [], importKind: "value", source: Literal { type: "Literal", @@ -19,7 +19,7 @@ Program { end: { column: 19, line: 1 }, }, }, - specifiers: Array [ + specifiers: [ ImportDefaultSpecifier { type: "ImportDefaultSpecifier", local: Identifier { diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/4-Babel-Tokens.shot index e5c09dd423ed..6a16623cd286 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ImportDeclaration default Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-many/snapshots/1-TSESTree-AST.shot index a90f8ca955ae..69d5b7567456 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-many/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration ImportDeclaration named-many TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ImportDeclaration { type: "ImportDeclaration", - assertions: Array [], + assertions: [], importKind: "value", source: Literal { type: "Literal", @@ -19,7 +19,7 @@ Program { end: { column: 29, line: 1 }, }, }, - specifiers: Array [ + specifiers: [ ImportSpecifier { type: "ImportSpecifier", imported: Identifier { diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-many/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-many/snapshots/2-TSESTree-Tokens.shot index 8eba9974a714..39a76ae9c2cc 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-many/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-many/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ImportDeclaration named-many TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-many/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-many/snapshots/3-Babel-AST.shot index 89d89d705a6f..e4eea3601c7a 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-many/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-many/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration ImportDeclaration named-many Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ImportDeclaration { type: "ImportDeclaration", - assertions: Array [], + assertions: [], importKind: "value", source: Literal { type: "Literal", @@ -19,7 +19,7 @@ Program { end: { column: 29, line: 1 }, }, }, - specifiers: Array [ + specifiers: [ ImportSpecifier { type: "ImportSpecifier", imported: Identifier { diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-many/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-many/snapshots/4-Babel-Tokens.shot index 123471f1513f..76236c8b72cd 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-many/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-many/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ImportDeclaration named-many Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-none/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-none/snapshots/1-TSESTree-AST.shot index 12f54a5140e9..bb80f4408ac2 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-none/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-none/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration ImportDeclaration named-none TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ImportDeclaration { type: "ImportDeclaration", - assertions: Array [], + assertions: [], importKind: "value", source: Literal { type: "Literal", @@ -19,7 +19,7 @@ Program { end: { column: 20, line: 1 }, }, }, - specifiers: Array [], + specifiers: [], range: [0, 21], loc: { diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-none/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-none/snapshots/2-TSESTree-Tokens.shot index 04c72987e07c..8aff12401814 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-none/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-none/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ImportDeclaration named-none TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-none/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-none/snapshots/3-Babel-AST.shot index cf425c46b79a..826c7a2e7d81 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-none/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-none/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration ImportDeclaration named-none Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ImportDeclaration { type: "ImportDeclaration", - assertions: Array [], + assertions: [], importKind: "value", source: Literal { type: "Literal", @@ -19,7 +19,7 @@ Program { end: { column: 20, line: 1 }, }, }, - specifiers: Array [], + specifiers: [], range: [0, 21], loc: { diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-none/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-none/snapshots/4-Babel-Tokens.shot index ec45fb03592b..45ecf4e71258 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-none/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-none/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ImportDeclaration named-none Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-one/snapshots/1-TSESTree-AST.shot index 9030519529e6..e12f543ac79d 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-one/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration ImportDeclaration named-one TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ImportDeclaration { type: "ImportDeclaration", - assertions: Array [], + assertions: [], importKind: "value", source: Literal { type: "Literal", @@ -19,7 +19,7 @@ Program { end: { column: 23, line: 1 }, }, }, - specifiers: Array [ + specifiers: [ ImportSpecifier { type: "ImportSpecifier", imported: Identifier { diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-one/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-one/snapshots/2-TSESTree-Tokens.shot index b437ec118b9a..a9f55ba268dd 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-one/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-one/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ImportDeclaration named-one TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-one/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-one/snapshots/3-Babel-AST.shot index 6bc6fe7a38b5..04e3fe6e37c7 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-one/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-one/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration ImportDeclaration named-one Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ImportDeclaration { type: "ImportDeclaration", - assertions: Array [], + assertions: [], importKind: "value", source: Literal { type: "Literal", @@ -19,7 +19,7 @@ Program { end: { column: 23, line: 1 }, }, }, - specifiers: Array [ + specifiers: [ ImportSpecifier { type: "ImportSpecifier", imported: Identifier { diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-one/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-one/snapshots/4-Babel-Tokens.shot index fddf4bb21efb..da320bcd19d2 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-one/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-one/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ImportDeclaration named-one Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/side-effect/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/side-effect/snapshots/1-TSESTree-AST.shot index 62da72509bd0..33f9a8b9175c 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/side-effect/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/side-effect/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration ImportDeclaration side-effect TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ImportDeclaration { type: "ImportDeclaration", - assertions: Array [], + assertions: [], importKind: "value", source: Literal { type: "Literal", @@ -19,7 +19,7 @@ Program { end: { column: 12, line: 1 }, }, }, - specifiers: Array [], + specifiers: [], range: [0, 13], loc: { diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/side-effect/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/side-effect/snapshots/2-TSESTree-Tokens.shot index dd471c34db4b..e6dfa11cc9bd 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/side-effect/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/side-effect/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ImportDeclaration side-effect TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/side-effect/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/side-effect/snapshots/3-Babel-AST.shot index ab134ebecf8e..505b837455d2 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/side-effect/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/side-effect/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration ImportDeclaration side-effect Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ImportDeclaration { type: "ImportDeclaration", - assertions: Array [], + assertions: [], importKind: "value", source: Literal { type: "Literal", @@ -19,7 +19,7 @@ Program { end: { column: 12, line: 1 }, }, }, - specifiers: Array [], + specifiers: [], range: [0, 13], loc: { diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/side-effect/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/side-effect/snapshots/4-Babel-Tokens.shot index d8e354e5b035..97e7ee36ee77 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/side-effect/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/side-effect/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ImportDeclaration side-effect Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/empty/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/empty/snapshots/1-TSESTree-AST.shot index 59ea1f2fa4cc..4a3c6fc890fd 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/empty/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/empty/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSDeclareFunction empty TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSDeclareFunction { type: "TSDeclareFunction", async: false, @@ -20,7 +20,7 @@ Program { end: { column: 20, line: 1 }, }, }, - params: Array [], + params: [], range: [0, 23], loc: { diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/empty/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/empty/snapshots/2-TSESTree-Tokens.shot index 68ee13556c41..e945b27bf7a7 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/empty/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/empty/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSDeclareFunction empty TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/empty/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/empty/snapshots/3-Babel-AST.shot index 43be5f098ab0..8c5619e18498 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/empty/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/empty/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSDeclareFunction empty Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSDeclareFunction { type: "TSDeclareFunction", async: false, @@ -20,7 +20,7 @@ Program { end: { column: 20, line: 1 }, }, }, - params: Array [], + params: [], range: [0, 23], loc: { diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/empty/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/empty/snapshots/4-Babel-Tokens.shot index ec3fc4b9093e..fe6b9f9d202e 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/empty/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/empty/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSDeclareFunction empty Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/generator/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/generator/snapshots/1-TSESTree-AST.shot index ed8b53057929..1a4b2942e3fd 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/generator/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/generator/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSDeclareFunction generator TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSDeclareFunction { type: "TSDeclareFunction", async: false, @@ -20,7 +20,7 @@ Program { end: { column: 21, line: 1 }, }, }, - params: Array [], + params: [], range: [0, 24], loc: { diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/generator/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/generator/snapshots/2-TSESTree-Tokens.shot index a01528659408..42e396c00992 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/generator/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/generator/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSDeclareFunction generator TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/generator/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/generator/snapshots/3-Babel-AST.shot index 3da973bf9f5f..26ccbf892c14 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/generator/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/generator/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSDeclareFunction generator Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSDeclareFunction { type: "TSDeclareFunction", async: false, @@ -20,7 +20,7 @@ Program { end: { column: 21, line: 1 }, }, }, - params: Array [], + params: [], range: [0, 24], loc: { diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/generator/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/generator/snapshots/4-Babel-Tokens.shot index 58082427903c..76c88da05a16 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/generator/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/generator/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSDeclareFunction generator Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-many/snapshots/1-TSESTree-AST.shot index a7f8479f43a4..272852bf6bb1 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-many/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSDeclareFunction param-many TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSDeclareFunction { type: "TSDeclareFunction", async: false, @@ -20,7 +20,7 @@ Program { end: { column: 20, line: 1 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "a", diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-many/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-many/snapshots/2-TSESTree-Tokens.shot index f6aa7066f1a7..54bf92fa2fac 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-many/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-many/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSDeclareFunction param-many TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-many/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-many/snapshots/3-Babel-AST.shot index d1e098a0e89d..77cd9e3b93bb 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-many/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-many/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSDeclareFunction param-many Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSDeclareFunction { type: "TSDeclareFunction", async: false, @@ -20,7 +20,7 @@ Program { end: { column: 20, line: 1 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "a", diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-many/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-many/snapshots/4-Babel-Tokens.shot index c27b9fa0a5ec..7e7fc2c76b62 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-many/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-many/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSDeclareFunction param-many Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-one/snapshots/1-TSESTree-AST.shot index 1f21a6f71f80..da937eccc13c 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-one/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSDeclareFunction param-one TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSDeclareFunction { type: "TSDeclareFunction", async: false, @@ -20,7 +20,7 @@ Program { end: { column: 20, line: 1 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "a", diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-one/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-one/snapshots/2-TSESTree-Tokens.shot index d8412c942126..364d25431075 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-one/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-one/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSDeclareFunction param-one TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-one/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-one/snapshots/3-Babel-AST.shot index abf7337612c7..2af67d8b5765 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-one/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-one/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSDeclareFunction param-one Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSDeclareFunction { type: "TSDeclareFunction", async: false, @@ -20,7 +20,7 @@ Program { end: { column: 20, line: 1 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "a", diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-one/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-one/snapshots/4-Babel-Tokens.shot index 9dba1e7717cd..bcd190cf88df 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-one/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-one/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSDeclareFunction param-one Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/returnType/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/returnType/snapshots/1-TSESTree-AST.shot index 45e65dbe80a1..792faca05354 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/returnType/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/returnType/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSDeclareFunction returnType TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSDeclareFunction { type: "TSDeclareFunction", async: false, @@ -20,7 +20,7 @@ Program { end: { column: 20, line: 1 }, }, }, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSVoidKeyword { diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/returnType/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/returnType/snapshots/2-TSESTree-Tokens.shot index f06fda6f01ee..981bd194269a 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/returnType/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/returnType/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSDeclareFunction returnType TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/returnType/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/returnType/snapshots/3-Babel-AST.shot index 1ccc35aaadb4..4f852bb915ac 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/returnType/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/returnType/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSDeclareFunction returnType Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSDeclareFunction { type: "TSDeclareFunction", async: false, @@ -20,7 +20,7 @@ Program { end: { column: 20, line: 1 }, }, }, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSVoidKeyword { diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/returnType/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/returnType/snapshots/4-Babel-Tokens.shot index 703e02000f58..2c637980c0a2 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/returnType/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/returnType/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSDeclareFunction returnType Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot index aefd6e905e23..6af698ad0b99 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSDeclareFunction type-param-many TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSDeclareFunction { type: "TSDeclareFunction", async: false, @@ -20,12 +20,13 @@ Program { end: { column: 20, line: 1 }, }, }, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", @@ -47,6 +48,7 @@ Program { }, TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", @@ -68,6 +70,7 @@ Program { }, TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-many/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-many/snapshots/2-TSESTree-Tokens.shot index 92b21a76dcf5..7aa601ebcdee 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-many/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-many/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSDeclareFunction type-param-many TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-many/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-many/snapshots/3-Babel-AST.shot index 76dc2ebf1f56..e140de71d6bd 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-many/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-many/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSDeclareFunction type-param-many Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSDeclareFunction { type: "TSDeclareFunction", async: false, @@ -20,10 +20,10 @@ Program { end: { column: 20, line: 1 }, }, }, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-many/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-many/snapshots/4-Babel-Tokens.shot index 6aaaa58051c6..5f4dfea2c047 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-many/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-many/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSDeclareFunction type-param-many Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot index 5c07aedab59c..711d27f25cf4 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot @@ -30,6 +30,7 @@ exports[`AST Fixtures declaration TSDeclareFunction type-param-many AST Alignmen params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', @@ -52,6 +53,7 @@ exports[`AST Fixtures declaration TSDeclareFunction type-param-many AST Alignmen }, TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', @@ -74,6 +76,7 @@ exports[`AST Fixtures declaration TSDeclareFunction type-param-many AST Alignmen }, TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot index 4767a93811ca..5ee44430806b 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSDeclareFunction type-param-one TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSDeclareFunction { type: "TSDeclareFunction", async: false, @@ -20,12 +20,13 @@ Program { end: { column: 20, line: 1 }, }, }, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-one/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-one/snapshots/2-TSESTree-Tokens.shot index cf3ce53768e1..6ecdb0a4ea26 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-one/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-one/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSDeclareFunction type-param-one TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-one/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-one/snapshots/3-Babel-AST.shot index 745e9cba3935..408355694bd9 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-one/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-one/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSDeclareFunction type-param-one Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSDeclareFunction { type: "TSDeclareFunction", async: false, @@ -20,10 +20,10 @@ Program { end: { column: 20, line: 1 }, }, }, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-one/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-one/snapshots/4-Babel-Tokens.shot index 8f4c003543d6..1ad32748607f 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-one/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-one/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSDeclareFunction type-param-one Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot index 6763966b08fc..a683f16a8787 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot @@ -30,6 +30,7 @@ exports[`AST Fixtures declaration TSDeclareFunction type-param-one AST Alignment params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/without-declare/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/without-declare/snapshots/1-TSESTree-AST.shot index 5c46a6508afd..dd3182b826a9 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/without-declare/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/without-declare/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSDeclareFunction without-declare TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSDeclareFunction { type: "TSDeclareFunction", async: false, @@ -19,7 +19,7 @@ Program { end: { column: 12, line: 1 }, }, }, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSVoidKeyword { diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/without-declare/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/without-declare/snapshots/2-TSESTree-Tokens.shot index 67a00cfbc1a0..1dc65dc8e852 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/without-declare/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/without-declare/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSDeclareFunction without-declare TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/without-declare/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/without-declare/snapshots/3-Babel-AST.shot index 2e49a416b762..384d59603bcf 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/without-declare/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/without-declare/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSDeclareFunction without-declare Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSDeclareFunction { type: "TSDeclareFunction", async: false, @@ -19,7 +19,7 @@ Program { end: { column: 12, line: 1 }, }, }, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSVoidKeyword { diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/without-declare/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/without-declare/snapshots/4-Babel-Tokens.shot index 0c6751d92ced..2111ddd88d94 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/without-declare/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/without-declare/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSDeclareFunction without-declare Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/const/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/const/snapshots/1-TSESTree-AST.shot index 1d59f828b678..5f55ba23c4d2 100644 --- a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/const/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/const/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSEnumDeclaration const TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSEnumDeclaration { type: "TSEnumDeclaration", const: true, @@ -17,7 +17,7 @@ Program { end: { column: 14, line: 1 }, }, }, - members: Array [], + members: [], range: [0, 17], loc: { diff --git a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/const/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/const/snapshots/2-TSESTree-Tokens.shot index a25cddd52f6a..11b5aaecd038 100644 --- a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/const/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/const/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSEnumDeclaration const TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "const", diff --git a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/const/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/const/snapshots/3-Babel-AST.shot index 5ee7fea32e6f..60cfe3105fa9 100644 --- a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/const/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/const/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSEnumDeclaration const Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSEnumDeclaration { type: "TSEnumDeclaration", const: true, @@ -17,7 +17,7 @@ Program { end: { column: 14, line: 1 }, }, }, - members: Array [], + members: [], range: [0, 17], loc: { diff --git a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/const/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/const/snapshots/4-Babel-Tokens.shot index 4a4ccaf3ecc8..4e062da869d0 100644 --- a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/const/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/const/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSEnumDeclaration const Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "const", diff --git a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot index 8b742184ed94..19285542064d 100644 --- a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSEnumDeclaration declare TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSEnumDeclaration { type: "TSEnumDeclaration", declare: true, @@ -17,7 +17,7 @@ Program { end: { column: 16, line: 1 }, }, }, - members: Array [], + members: [], range: [0, 19], loc: { diff --git a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/declare/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/declare/snapshots/2-TSESTree-Tokens.shot index b045362a4c54..50e01a3fd806 100644 --- a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/declare/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/declare/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSEnumDeclaration declare TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/declare/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/declare/snapshots/3-Babel-AST.shot index 21a3e86cd15c..9a8b09ab8110 100644 --- a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/declare/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/declare/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSEnumDeclaration declare Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSEnumDeclaration { type: "TSEnumDeclaration", declare: true, @@ -17,7 +17,7 @@ Program { end: { column: 16, line: 1 }, }, }, - members: Array [], + members: [], range: [0, 19], loc: { diff --git a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/declare/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/declare/snapshots/4-Babel-Tokens.shot index ccf2a20885e8..19d594777f5a 100644 --- a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/declare/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/declare/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSEnumDeclaration declare Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot index 85e4f093eb2f..cf40de4a0f55 100644 --- a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSEnumDeclaration empty TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSEnumDeclaration { type: "TSEnumDeclaration", id: Identifier { @@ -16,7 +16,7 @@ Program { end: { column: 8, line: 1 }, }, }, - members: Array [], + members: [], range: [0, 11], loc: { diff --git a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/empty/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/empty/snapshots/2-TSESTree-Tokens.shot index c419adb83097..fa718eb4f8c4 100644 --- a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/empty/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/empty/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSEnumDeclaration empty TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "enum", diff --git a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/empty/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/empty/snapshots/3-Babel-AST.shot index 79ad82443c71..c7d4270f7a98 100644 --- a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/empty/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/empty/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSEnumDeclaration empty Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSEnumDeclaration { type: "TSEnumDeclaration", id: Identifier { @@ -16,7 +16,7 @@ Program { end: { column: 8, line: 1 }, }, }, - members: Array [], + members: [], range: [0, 11], loc: { diff --git a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/empty/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/empty/snapshots/4-Babel-Tokens.shot index 688f75fe0f2b..c7a28d6e0f47 100644 --- a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/empty/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/empty/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSEnumDeclaration empty Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "enum", diff --git a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/with-member-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/with-member-one/snapshots/1-TSESTree-AST.shot index dc9b0027eed0..9cfcde23d9c5 100644 --- a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/with-member-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/with-member-one/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSEnumDeclaration with-member-one TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSEnumDeclaration { type: "TSEnumDeclaration", id: Identifier { @@ -16,7 +16,7 @@ Program { end: { column: 8, line: 1 }, }, }, - members: Array [ + members: [ TSEnumMember { type: "TSEnumMember", id: Identifier { diff --git a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/with-member-one/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/with-member-one/snapshots/2-TSESTree-Tokens.shot index e0ddd7d58be5..d85cfd43c3a2 100644 --- a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/with-member-one/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/with-member-one/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSEnumDeclaration with-member-one TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "enum", diff --git a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/with-member-one/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/with-member-one/snapshots/3-Babel-AST.shot index 477613196944..e716a26bc452 100644 --- a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/with-member-one/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/with-member-one/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSEnumDeclaration with-member-one Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSEnumDeclaration { type: "TSEnumDeclaration", id: Identifier { @@ -16,7 +16,7 @@ Program { end: { column: 8, line: 1 }, }, }, - members: Array [ + members: [ TSEnumMember { type: "TSEnumMember", id: Identifier { diff --git a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/with-member-one/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/with-member-one/snapshots/4-Babel-Tokens.shot index 08d14feb8c4c..ef937d29d4e6 100644 --- a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/with-member-one/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/with-member-one/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSEnumDeclaration with-member-one Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "enum", diff --git a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-many/snapshots/1-TSESTree-AST.shot index 6d438a8c596e..bf7a3fe73152 100644 --- a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-many/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSImportEqualsDeclaration entity-name-many TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSImportEqualsDeclaration { type: "TSImportEqualsDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-many/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-many/snapshots/2-TSESTree-Tokens.shot index 7d0291e8b8b2..59a576d6fbbc 100644 --- a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-many/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-many/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSImportEqualsDeclaration entity-name-many TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-many/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-many/snapshots/3-Babel-AST.shot index e4d68bb9f751..a0ca36819635 100644 --- a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-many/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-many/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSImportEqualsDeclaration entity-name-many Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSImportEqualsDeclaration { type: "TSImportEqualsDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-many/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-many/snapshots/4-Babel-Tokens.shot index 08ed3e892d54..fea3e6a5acfe 100644 --- a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-many/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-many/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSImportEqualsDeclaration entity-name-many Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-one/snapshots/1-TSESTree-AST.shot index aa18656723b0..e0c1fbc6a87b 100644 --- a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-one/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSImportEqualsDeclaration entity-name-one TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSImportEqualsDeclaration { type: "TSImportEqualsDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-one/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-one/snapshots/2-TSESTree-Tokens.shot index 1e7f3ae9a452..2d5ddfad80b3 100644 --- a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-one/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-one/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSImportEqualsDeclaration entity-name-one TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-one/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-one/snapshots/3-Babel-AST.shot index d6e2ea9ed203..0afc59194504 100644 --- a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-one/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-one/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSImportEqualsDeclaration entity-name-one Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSImportEqualsDeclaration { type: "TSImportEqualsDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-one/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-one/snapshots/4-Babel-Tokens.shot index 85b199a73a43..cd6a44b6d7e0 100644 --- a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-one/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-one/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSImportEqualsDeclaration entity-name-one Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/snapshots/1-TSESTree-AST.shot index aca9d9ab5f3c..808994ac5618 100644 --- a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSImportEqualsDeclaration external-module-ref-string TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSImportEqualsDeclaration { type: "TSImportEqualsDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/snapshots/2-TSESTree-Tokens.shot index 023028ef7d99..d66b6464d686 100644 --- a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSImportEqualsDeclaration external-module-ref-string TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/snapshots/3-Babel-AST.shot index f904ff1dbcff..098a19b4d7fc 100644 --- a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSImportEqualsDeclaration external-module-ref-string Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSImportEqualsDeclaration { type: "TSImportEqualsDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/snapshots/4-Babel-Tokens.shot index 91b65568fbec..f4ee81d49796 100644 --- a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSImportEqualsDeclaration external-module-ref-string Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/snapshots/5-AST-Alignment-AST.shot index a0b231ec7a17..864ce14bb378 100644 --- a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/snapshots/5-AST-Alignment-AST.shot @@ -26,7 +26,7 @@ exports[`AST Fixtures declaration TSImportEqualsDeclaration external-module-ref- type: 'TSExternalModuleReference', expression: Literal { type: 'Literal', - raw: '\\\\'mod\\\\'', + raw: '\\'mod\\'', value: 'mod', range: [19, 24], diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot index 501d609a46c6..70ec89ee02e2 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration declare TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [20, 22], loc: { diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/declare/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/declare/snapshots/2-TSESTree-Tokens.shot index 8899a66c8a3d..eebe2713b749 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/declare/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/declare/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSInterfaceDeclaration declare TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/declare/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/declare/snapshots/3-Babel-AST.shot index 4642a30ee6d6..5bd546d9cef9 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/declare/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/declare/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration declare Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [20, 22], loc: { diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/declare/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/declare/snapshots/4-Babel-Tokens.shot index b75639c632d9..fa34e4c3eecb 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/declare/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/declare/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSInterfaceDeclaration declare Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot index aa7db3176924..358568791628 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration empty TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [12, 14], loc: { diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/empty/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/empty/snapshots/2-TSESTree-Tokens.shot index b46401c81876..2dedf60f4ba4 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/empty/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/empty/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSInterfaceDeclaration empty TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "interface", diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/empty/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/empty/snapshots/3-Babel-AST.shot index e6048d6bde46..b819354e5e1a 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/empty/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/empty/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration empty Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [12, 14], loc: { diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/empty/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/empty/snapshots/4-Babel-Tokens.shot index 01311e4df0ca..4e75dccbe017 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/empty/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/empty/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSInterfaceDeclaration empty Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "interface", diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-many/snapshots/1-TSESTree-AST.shot index 2e08532845c8..98cd5c06786d 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-many/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration extends-many TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [28, 30], loc: { @@ -16,7 +16,7 @@ Program { end: { column: 30, line: 1 }, }, }, - extends: Array [ + extends: [ TSInterfaceHeritage { type: "TSInterfaceHeritage", expression: Identifier { diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-many/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-many/snapshots/2-TSESTree-Tokens.shot index b5418859abc6..cbec39458265 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-many/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-many/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSInterfaceDeclaration extends-many TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "interface", diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-many/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-many/snapshots/3-Babel-AST.shot index 18e1c620074b..56a16619fe83 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-many/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-many/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration extends-many Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [28, 30], loc: { @@ -16,7 +16,7 @@ Program { end: { column: 30, line: 1 }, }, }, - extends: Array [ + extends: [ TSExpressionWithTypeArguments { type: "TSExpressionWithTypeArguments", expression: Identifier { diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-many/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-many/snapshots/4-Babel-Tokens.shot index c6f5129d13f9..8640056a5988 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-many/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-many/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSInterfaceDeclaration extends-many Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "interface", diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-one/snapshots/1-TSESTree-AST.shot index 795dc661bbe4..a9113c856a86 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-one/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration extends-one TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [22, 24], loc: { @@ -16,7 +16,7 @@ Program { end: { column: 24, line: 1 }, }, }, - extends: Array [ + extends: [ TSInterfaceHeritage { type: "TSInterfaceHeritage", expression: Identifier { diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-one/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-one/snapshots/2-TSESTree-Tokens.shot index b9e3f8a240d6..9f119879fde6 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-one/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-one/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSInterfaceDeclaration extends-one TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "interface", diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-one/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-one/snapshots/3-Babel-AST.shot index 87260af0dd55..919f3bfe7955 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-one/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-one/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration extends-one Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [22, 24], loc: { @@ -16,7 +16,7 @@ Program { end: { column: 24, line: 1 }, }, }, - extends: Array [ + extends: [ TSExpressionWithTypeArguments { type: "TSExpressionWithTypeArguments", expression: Identifier { diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-one/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-one/snapshots/4-Babel-Tokens.shot index 26da7a11f7cc..e063cd4e1617 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-one/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-one/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSInterfaceDeclaration extends-one Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "interface", diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot index 6aea3322462f..cb3872185124 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration type-param-many TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [21, 23], loc: { @@ -28,9 +28,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", @@ -52,6 +53,7 @@ Program { }, TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", @@ -73,6 +75,7 @@ Program { }, TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-many/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-many/snapshots/2-TSESTree-Tokens.shot index d96cb3d9489e..e1395884416c 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-many/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-many/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSInterfaceDeclaration type-param-many TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "interface", diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-many/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-many/snapshots/3-Babel-AST.shot index 579e9191d103..4aaab177fdd4 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-many/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-many/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration type-param-many Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [21, 23], loc: { @@ -28,7 +28,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-many/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-many/snapshots/4-Babel-Tokens.shot index 174304a412f4..ca4af92e7bd9 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-many/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-many/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSInterfaceDeclaration type-param-many Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "interface", diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot index 56e43bd66323..4b1dec3a2695 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot @@ -35,6 +35,7 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration type-param-many AST Ali params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', @@ -57,6 +58,7 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration type-param-many AST Ali }, TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', @@ -79,6 +81,7 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration type-param-many AST Ali }, TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot index 15f674485662..f3ce068e927b 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration type-param-one TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [15, 17], loc: { @@ -28,9 +28,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-one/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-one/snapshots/2-TSESTree-Tokens.shot index d88a78ec4006..c99653c12a64 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-one/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-one/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSInterfaceDeclaration type-param-one TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "interface", diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-one/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-one/snapshots/3-Babel-AST.shot index dc81d623ecc1..3d17cb2e32ef 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-one/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-one/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration type-param-one Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [15, 17], loc: { @@ -28,7 +28,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-one/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-one/snapshots/4-Babel-Tokens.shot index a41373677b11..eafc2c3b6ffa 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-one/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-one/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSInterfaceDeclaration type-param-one Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "interface", diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot index d6859d52b512..8470b26ba849 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot @@ -35,6 +35,7 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration type-param-one AST Alig params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/with-member-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/with-member-one/snapshots/1-TSESTree-AST.shot index 424cf585b19b..1438312b63cd 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/with-member-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/with-member-one/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration with-member-one TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [ + body: [ TSPropertySignature { type: "TSPropertySignature", computed: false, diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/with-member-one/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/with-member-one/snapshots/2-TSESTree-Tokens.shot index c57ff756e66e..1544b5c21cbe 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/with-member-one/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/with-member-one/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSInterfaceDeclaration with-member-one TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "interface", diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/with-member-one/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/with-member-one/snapshots/3-Babel-AST.shot index 94437c371ec2..4ee78a85148a 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/with-member-one/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/with-member-one/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration with-member-one Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [ + body: [ TSPropertySignature { type: "TSPropertySignature", computed: false, diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/with-member-one/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/with-member-one/snapshots/4-Babel-Tokens.shot index af379bd7026c..9e131ad23760 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/with-member-one/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/with-member-one/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSInterfaceDeclaration with-member-one Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "interface", diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/global/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/global/snapshots/1-TSESTree-AST.shot index 6d845973debe..620efabfacd1 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/global/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/global/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration TSModuleDeclaration global TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [], + body: [], range: [15, 17], loc: { diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/global/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/global/snapshots/2-TSESTree-Tokens.shot index 910131ba7b8c..130ed5c7eaec 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/global/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/global/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSModuleDeclaration global TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/global/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/global/snapshots/3-Babel-AST.shot index 4e1a238040b4..ea9b1fea4419 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/global/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/global/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration TSModuleDeclaration global Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [], + body: [], range: [15, 17], loc: { diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/global/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/global/snapshots/4-Babel-Tokens.shot index 393012dfc4b8..a89f8966999c 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/global/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/global/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSModuleDeclaration global Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare-no-body/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare-no-body/snapshots/1-TSESTree-AST.shot index 17f754710762..d24ddaae90dc 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare-no-body/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare-no-body/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSModuleDeclaration module-declare-no-body TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", declare: true, diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare-no-body/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare-no-body/snapshots/2-TSESTree-Tokens.shot index 0c2959419e23..d46af57eda1f 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare-no-body/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare-no-body/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSModuleDeclaration module-declare-no-body TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare-no-body/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare-no-body/snapshots/3-Babel-AST.shot index d90a0fdea6a6..162cf320ba53 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare-no-body/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare-no-body/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSModuleDeclaration module-declare-no-body Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", declare: true, diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare-no-body/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare-no-body/snapshots/4-Babel-Tokens.shot index d6f2b8430a15..ee1a0e8c845f 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare-no-body/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare-no-body/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSModuleDeclaration module-declare-no-body Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare-no-body/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare-no-body/snapshots/5-AST-Alignment-AST.shot index 591ea8c8d32e..46729a482556 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare-no-body/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare-no-body/snapshots/5-AST-Alignment-AST.shot @@ -13,7 +13,7 @@ exports[`AST Fixtures declaration TSModuleDeclaration module-declare-no-body AST declare: true, id: Literal { type: 'Literal', - raw: '\\\\'a\\\\'', + raw: '\\'a\\'', value: 'a', range: [15, 18], diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare/snapshots/1-TSESTree-AST.shot index 026bdc26251d..ac074fe5c98f 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration TSModuleDeclaration module-declare TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [], + body: [], range: [17, 19], loc: { diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare/snapshots/2-TSESTree-Tokens.shot index 487f26037f87..cac05dadd845 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSModuleDeclaration module-declare TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare/snapshots/3-Babel-AST.shot index dd00b5173a18..a666b27131e8 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration TSModuleDeclaration module-declare Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [], + body: [], range: [17, 19], loc: { diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare/snapshots/4-Babel-Tokens.shot index e2dfc2330dcb..964bd6da7fce 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSModuleDeclaration module-declare Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-identifier/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-identifier/snapshots/1-TSESTree-AST.shot index 80f52eaeaa38..7f00836de0de 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-identifier/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-identifier/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration TSModuleDeclaration module-id-identifier TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [], + body: [], range: [9, 11], loc: { diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-identifier/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-identifier/snapshots/2-TSESTree-Tokens.shot index e8658090b431..f618ca2d9396 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-identifier/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-identifier/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSModuleDeclaration module-id-identifier TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "module", diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-identifier/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-identifier/snapshots/3-Babel-AST.shot index 7acb1bcd8716..dbb2ea1c8577 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-identifier/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-identifier/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration TSModuleDeclaration module-id-identifier Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [], + body: [], range: [9, 11], loc: { diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-identifier/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-identifier/snapshots/4-Babel-Tokens.shot index f8093f686fb0..ad4b2fe09245 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-identifier/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-identifier/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSModuleDeclaration module-id-identifier Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "module", diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-literal/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-literal/snapshots/1-TSESTree-AST.shot index 543f49f139cc..4017d7afc499 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-literal/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-literal/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration TSModuleDeclaration module-id-literal TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [], + body: [], range: [11, 13], loc: { diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-literal/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-literal/snapshots/2-TSESTree-Tokens.shot index 35a1efd6dc9c..d5af989e381b 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-literal/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-literal/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSModuleDeclaration module-id-literal TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "module", diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-literal/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-literal/snapshots/3-Babel-AST.shot index fafc835ec472..d463d1868c9d 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-literal/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-literal/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration TSModuleDeclaration module-id-literal Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [], + body: [], range: [11, 13], loc: { diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-literal/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-literal/snapshots/4-Babel-Tokens.shot index a463f80b9e5b..44cc987a84da 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-literal/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-literal/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSModuleDeclaration module-id-literal Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "module", diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-literal/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-literal/snapshots/5-AST-Alignment-AST.shot index 629052e8a659..66e35bee13d2 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-literal/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-literal/snapshots/5-AST-Alignment-AST.shot @@ -22,7 +22,7 @@ exports[`AST Fixtures declaration TSModuleDeclaration module-id-literal AST Alig }, id: Literal { type: 'Literal', - raw: '\\\\'a\\\\'', + raw: '\\'a\\'', value: 'a', range: [7, 10], diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-qualified-name/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-qualified-name/snapshots/1-TSESTree-AST.shot index c0f09867e6f5..abf76fd1619b 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-qualified-name/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-qualified-name/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSModuleDeclaration module-id-qualified-name TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleDeclaration { @@ -12,7 +12,7 @@ Program { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [], + body: [], range: [13, 15], loc: { diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-qualified-name/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-qualified-name/snapshots/2-TSESTree-Tokens.shot index 70d7cd911e17..611f260bd7cc 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-qualified-name/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-qualified-name/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSModuleDeclaration module-id-qualified-name TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "module", diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-qualified-name/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-qualified-name/snapshots/3-Babel-AST.shot index c6af56a98835..bf791e73923b 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-qualified-name/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-qualified-name/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSModuleDeclaration module-id-qualified-name Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleDeclaration { @@ -12,7 +12,7 @@ Program { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [], + body: [], range: [13, 15], loc: { diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-qualified-name/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-qualified-name/snapshots/4-Babel-Tokens.shot index b03c2f7b5a82..252edb876732 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-qualified-name/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-qualified-name/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSModuleDeclaration module-id-qualified-name Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "module", diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-declare/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-declare/snapshots/1-TSESTree-AST.shot index d808958c70e3..49ee11415db8 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-declare/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-declare/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration TSModuleDeclaration namespace-declare TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [], + body: [], range: [20, 22], loc: { diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-declare/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-declare/snapshots/2-TSESTree-Tokens.shot index 18d298125dde..ccef29773ca8 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-declare/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-declare/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSModuleDeclaration namespace-declare TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-declare/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-declare/snapshots/3-Babel-AST.shot index 269366508604..724718a8c730 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-declare/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-declare/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration TSModuleDeclaration namespace-declare Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [], + body: [], range: [20, 22], loc: { diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-declare/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-declare/snapshots/4-Babel-Tokens.shot index 374070330ed0..e440b77f87e9 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-declare/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-declare/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSModuleDeclaration namespace-declare Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-identifier/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-identifier/snapshots/1-TSESTree-AST.shot index 05e6c65aa804..86b030f02fd2 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-identifier/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-identifier/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration TSModuleDeclaration namespace-id-identifier TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [], + body: [], range: [12, 14], loc: { diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-identifier/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-identifier/snapshots/2-TSESTree-Tokens.shot index 15cd21e3ad5d..00108fb3c280 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-identifier/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-identifier/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSModuleDeclaration namespace-id-identifier TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "namespace", diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-identifier/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-identifier/snapshots/3-Babel-AST.shot index 2e47480e0447..d6cae6b6e7a4 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-identifier/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-identifier/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures declaration TSModuleDeclaration namespace-id-identifier Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [], + body: [], range: [12, 14], loc: { diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-identifier/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-identifier/snapshots/4-Babel-Tokens.shot index 1fb07e00228d..669670963f4a 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-identifier/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-identifier/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSModuleDeclaration namespace-id-identifier Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "namespace", diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-qualified-name/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-qualified-name/snapshots/1-TSESTree-AST.shot index 69dbfa38ebbd..ec61e55c1a6c 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-qualified-name/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-qualified-name/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSModuleDeclaration namespace-id-qualified-name TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleDeclaration { @@ -12,7 +12,7 @@ Program { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [], + body: [], range: [16, 18], loc: { diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-qualified-name/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-qualified-name/snapshots/2-TSESTree-Tokens.shot index fcd5df00be87..0c92d2258566 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-qualified-name/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-qualified-name/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSModuleDeclaration namespace-id-qualified-name TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "namespace", diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-qualified-name/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-qualified-name/snapshots/3-Babel-AST.shot index 569b49fb3274..4a915fcf2fc1 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-qualified-name/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-qualified-name/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSModuleDeclaration namespace-id-qualified-name Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleDeclaration { @@ -12,7 +12,7 @@ Program { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [], + body: [], range: [16, 18], loc: { diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-qualified-name/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-qualified-name/snapshots/4-Babel-Tokens.shot index 8f3b974a3ab1..18f398dd49a0 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-qualified-name/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-qualified-name/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSModuleDeclaration namespace-id-qualified-name Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "namespace", diff --git a/packages/ast-spec/src/declaration/TSNamespaceExportDeclaration/fixtures/valid/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSNamespaceExportDeclaration/fixtures/valid/snapshots/1-TSESTree-AST.shot index 914df1fad854..8fd4754eac49 100644 --- a/packages/ast-spec/src/declaration/TSNamespaceExportDeclaration/fixtures/valid/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSNamespaceExportDeclaration/fixtures/valid/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSNamespaceExportDeclaration valid TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSNamespaceExportDeclaration { type: "TSNamespaceExportDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/declaration/TSNamespaceExportDeclaration/fixtures/valid/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSNamespaceExportDeclaration/fixtures/valid/snapshots/2-TSESTree-Tokens.shot index 8399bbd3d1d7..7d271578ec1b 100644 --- a/packages/ast-spec/src/declaration/TSNamespaceExportDeclaration/fixtures/valid/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSNamespaceExportDeclaration/fixtures/valid/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSNamespaceExportDeclaration valid TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/TSNamespaceExportDeclaration/fixtures/valid/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSNamespaceExportDeclaration/fixtures/valid/snapshots/3-Babel-AST.shot index c3861bcab7bd..8d304f0b62ee 100644 --- a/packages/ast-spec/src/declaration/TSNamespaceExportDeclaration/fixtures/valid/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/TSNamespaceExportDeclaration/fixtures/valid/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSNamespaceExportDeclaration valid Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSNamespaceExportDeclaration { type: "TSNamespaceExportDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/declaration/TSNamespaceExportDeclaration/fixtures/valid/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSNamespaceExportDeclaration/fixtures/valid/snapshots/4-Babel-Tokens.shot index dfe3eae2d2ac..ee22f60d3950 100644 --- a/packages/ast-spec/src/declaration/TSNamespaceExportDeclaration/fixtures/valid/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSNamespaceExportDeclaration/fixtures/valid/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSNamespaceExportDeclaration valid Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot index 63becdaa218c..9c87ddf606fc 100644 --- a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSTypeAliasDeclaration declare TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", declare: true, diff --git a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/declare/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/declare/snapshots/2-TSESTree-Tokens.shot index 8599ab306096..f16dba7e39bd 100644 --- a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/declare/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/declare/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSTypeAliasDeclaration declare TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/declare/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/declare/snapshots/3-Babel-AST.shot index 36939724fc47..993c949dd8be 100644 --- a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/declare/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/declare/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSTypeAliasDeclaration declare Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", declare: true, diff --git a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/declare/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/declare/snapshots/4-Babel-Tokens.shot index 48da9f1cfb8f..8e17cf295ab9 100644 --- a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/declare/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/declare/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSTypeAliasDeclaration declare Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot index af8a41ed4787..34001d72f461 100644 --- a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSTypeAliasDeclaration type-param-many TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -38,9 +38,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-many/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-many/snapshots/2-TSESTree-Tokens.shot index a84e1cc058d2..15ef384c2ca9 100644 --- a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-many/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-many/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSTypeAliasDeclaration type-param-many TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-many/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-many/snapshots/3-Babel-AST.shot index db6209388e74..395da5066feb 100644 --- a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-many/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-many/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSTypeAliasDeclaration type-param-many Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -38,7 +38,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "U", diff --git a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-many/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-many/snapshots/4-Babel-Tokens.shot index 92442f10c0d8..776c3a590a64 100644 --- a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-many/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-many/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSTypeAliasDeclaration type-param-many Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot index a80b5aa0a110..939521199a67 100644 --- a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot @@ -45,6 +45,7 @@ exports[`AST Fixtures declaration TSTypeAliasDeclaration type-param-many AST Ali params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot index 6bf2120e61b4..afaff66bb437 100644 --- a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSTypeAliasDeclaration type-param-one TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -38,9 +38,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", @@ -62,6 +63,7 @@ Program { }, TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", @@ -83,6 +85,7 @@ Program { }, TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/snapshots/2-TSESTree-Tokens.shot index c23889fa8fd2..5f5cf6ce3846 100644 --- a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSTypeAliasDeclaration type-param-one TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/snapshots/3-Babel-AST.shot index 60c8977e60f3..cd49f0a6d7ae 100644 --- a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSTypeAliasDeclaration type-param-one Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -38,7 +38,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "U", diff --git a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/snapshots/4-Babel-Tokens.shot index f6e56c2aa5fb..02ac487abeea 100644 --- a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSTypeAliasDeclaration type-param-one Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot index d754f2bf397b..9ea3fc2ca74b 100644 --- a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot @@ -45,6 +45,7 @@ exports[`AST Fixtures declaration TSTypeAliasDeclaration type-param-one AST Alig params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', @@ -67,6 +68,7 @@ exports[`AST Fixtures declaration TSTypeAliasDeclaration type-param-one AST Alig }, TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', @@ -89,6 +91,7 @@ exports[`AST Fixtures declaration TSTypeAliasDeclaration type-param-one AST Alig }, TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/valid/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/valid/snapshots/1-TSESTree-AST.shot index 424ed29eb522..9e3c3e98eeb2 100644 --- a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/valid/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/valid/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSTypeAliasDeclaration valid TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/valid/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/valid/snapshots/2-TSESTree-Tokens.shot index e3b35e444aa7..106a426637d7 100644 --- a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/valid/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/valid/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSTypeAliasDeclaration valid TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/valid/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/valid/snapshots/3-Babel-AST.shot index 7fad93c1cab8..763ed6f2af1b 100644 --- a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/valid/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/valid/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures declaration TSTypeAliasDeclaration valid Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/valid/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/valid/snapshots/4-Babel-Tokens.shot index 12901c93f94c..71a0e291132c 100644 --- a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/valid/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/valid/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration TSTypeAliasDeclaration valid Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-with-value/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-with-value/snapshots/1-TSESTree-AST.shot index d7290bd926df..c59f8219bb5e 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-with-value/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-with-value/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration VariableDeclaration const-with-value TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-with-value/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-with-value/snapshots/2-TSESTree-Tokens.shot index df6fc4d39980..9f1fbb65220c 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-with-value/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-with-value/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration VariableDeclaration const-with-value TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "const", diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-with-value/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-with-value/snapshots/3-Babel-AST.shot index 2cd36dbb4678..b7cf1ef3ea98 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-with-value/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-with-value/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration VariableDeclaration const-with-value Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-with-value/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-with-value/snapshots/4-Babel-Tokens.shot index 5a5ce6855a2f..ead3433d736f 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-with-value/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-with-value/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration VariableDeclaration const-with-value Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "const", diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-without-value/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-without-value/snapshots/1-TSESTree-AST.shot index ac4cd6b70d89..f8e86b5f8ba7 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-without-value/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-without-value/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration VariableDeclaration const-without-value TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-without-value/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-without-value/snapshots/2-TSESTree-Tokens.shot index ee275ed63d97..a467b38b9566 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-without-value/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-without-value/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration VariableDeclaration const-without-value TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "const", diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-without-value/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-without-value/snapshots/3-Babel-AST.shot index c41b8219393c..40629d3a2c04 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-without-value/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-without-value/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration VariableDeclaration const-without-value Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-without-value/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-without-value/snapshots/4-Babel-Tokens.shot index 62b0896e9fd9..c296fedf1cba 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-without-value/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-without-value/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration VariableDeclaration const-without-value Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "const", diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot index 19c59fcc338c..8ea6a51268d4 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration VariableDeclaration declare TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/declare/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/declare/snapshots/2-TSESTree-Tokens.shot index 5e3638b00d8f..730c761d4df8 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/declare/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/declare/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration VariableDeclaration declare TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/declare/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/declare/snapshots/3-Babel-AST.shot index 9cd49f740e41..062fe8efa697 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/declare/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/declare/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration VariableDeclaration declare Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/declare/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/declare/snapshots/4-Babel-Tokens.shot index 5b7e380551c3..5696efd1c50d 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/declare/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/declare/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration VariableDeclaration declare Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-with-value/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-with-value/snapshots/1-TSESTree-AST.shot index a1c7625b4576..227feb509803 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-with-value/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-with-value/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration VariableDeclaration let-with-value TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-with-value/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-with-value/snapshots/2-TSESTree-Tokens.shot index fa835fcdd32a..5d79b8753e14 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-with-value/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-with-value/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration VariableDeclaration let-with-value TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-with-value/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-with-value/snapshots/3-Babel-AST.shot index 5c5236d0482c..56183a6d8be1 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-with-value/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-with-value/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration VariableDeclaration let-with-value Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-with-value/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-with-value/snapshots/4-Babel-Tokens.shot index 6f4bc74a6bd3..f05ba1b92d0b 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-with-value/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-with-value/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration VariableDeclaration let-with-value Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-without-value/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-without-value/snapshots/1-TSESTree-AST.shot index 86d5e5fb9d11..d8d3f10c6e7c 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-without-value/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-without-value/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration VariableDeclaration let-without-value TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-without-value/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-without-value/snapshots/2-TSESTree-Tokens.shot index 66e4c76e5674..cf324f79787c 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-without-value/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-without-value/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration VariableDeclaration let-without-value TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-without-value/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-without-value/snapshots/3-Babel-AST.shot index 78ac80c4cf49..535544301b0a 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-without-value/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-without-value/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration VariableDeclaration let-without-value Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-without-value/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-without-value/snapshots/4-Babel-Tokens.shot index 78f58826ca69..cb83d68d6c99 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-without-value/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-without-value/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration VariableDeclaration let-without-value Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/multiple-declarations/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/multiple-declarations/snapshots/1-TSESTree-AST.shot index f34767c5d507..7b317b581213 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/multiple-declarations/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/multiple-declarations/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration VariableDeclaration multiple-declarations TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/multiple-declarations/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/multiple-declarations/snapshots/2-TSESTree-Tokens.shot index b47b272ca688..88424f522f52 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/multiple-declarations/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/multiple-declarations/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration VariableDeclaration multiple-declarations TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/multiple-declarations/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/multiple-declarations/snapshots/3-Babel-AST.shot index b52ef7582475..efe6188d5f75 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/multiple-declarations/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/multiple-declarations/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration VariableDeclaration multiple-declarations Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/multiple-declarations/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/multiple-declarations/snapshots/4-Babel-Tokens.shot index 2e324512abe7..1fb0ed0ba772 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/multiple-declarations/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/multiple-declarations/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration VariableDeclaration multiple-declarations Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-with-value/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-with-value/snapshots/1-TSESTree-AST.shot index d0b455dc1a23..dd577b588dea 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-with-value/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-with-value/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration VariableDeclaration var-with-value TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-with-value/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-with-value/snapshots/2-TSESTree-Tokens.shot index 2f9b9d787042..68912eb8c571 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-with-value/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-with-value/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration VariableDeclaration var-with-value TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "var", diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-with-value/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-with-value/snapshots/3-Babel-AST.shot index 1420d42a8ca0..af4bcbf01be6 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-with-value/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-with-value/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration VariableDeclaration var-with-value Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-with-value/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-with-value/snapshots/4-Babel-Tokens.shot index bbab28532c67..3e7a7a82f18d 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-with-value/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-with-value/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration VariableDeclaration var-with-value Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "var", diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-without-value/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-without-value/snapshots/1-TSESTree-AST.shot index 9af840c2c538..384ae11b3642 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-without-value/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-without-value/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration VariableDeclaration var-without-value TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-without-value/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-without-value/snapshots/2-TSESTree-Tokens.shot index ba7245b545ed..5dfa456c4019 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-without-value/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-without-value/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration VariableDeclaration var-without-value TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "var", diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-without-value/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-without-value/snapshots/3-Babel-AST.shot index a3bb2551bf26..7e7606329055 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-without-value/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-without-value/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration VariableDeclaration var-without-value Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-without-value/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-without-value/snapshots/4-Babel-Tokens.shot index 289daee1ace2..7b337d25bad6 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-without-value/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-without-value/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration VariableDeclaration var-without-value Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "var", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-complex/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-complex/snapshots/1-TSESTree-AST.shot index 00745c8a8d31..8545a8f1b73d 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-complex/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-complex/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures element AccessorProperty key-computed-complex TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ AccessorProperty { type: "AccessorProperty", computed: false, diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-complex/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-complex/snapshots/2-TSESTree-Tokens.shot index 97c056640e76..897c1151ab24 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-complex/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-complex/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures element AccessorProperty key-computed-complex TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-complex/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-complex/snapshots/3-Babel-AST.shot index e52653f4094a..d26beba12713 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-complex/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-complex/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures element AccessorProperty key-computed-complex Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ ClassAccessorProperty { type: "ClassAccessorProperty", computed: false, diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-complex/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-complex/snapshots/4-Babel-Tokens.shot index 651eb3314710..4a6b377b0926 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-complex/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-complex/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures element AccessorProperty key-computed-complex Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-number/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-number/snapshots/1-TSESTree-AST.shot index abb1554d8a24..2b3269d8cd01 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-number/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-number/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures element AccessorProperty key-computed-number TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ AccessorProperty { type: "AccessorProperty", computed: true, diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-number/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-number/snapshots/2-TSESTree-Tokens.shot index d12fe10489e6..93f36ef14ab6 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-number/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-number/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures element AccessorProperty key-computed-number TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-number/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-number/snapshots/3-Babel-AST.shot index 69de24d530d2..2526a457fa9d 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-number/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-number/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures element AccessorProperty key-computed-number Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ ClassAccessorProperty { type: "ClassAccessorProperty", computed: true, diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-number/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-number/snapshots/4-Babel-Tokens.shot index e2dd78f3f2fa..c4d54961e262 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-number/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-number/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures element AccessorProperty key-computed-number Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-string/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-string/snapshots/1-TSESTree-AST.shot index 24de40f9aaea..b19f7768a48f 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-string/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-string/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures element AccessorProperty key-computed-string TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ AccessorProperty { type: "AccessorProperty", computed: true, diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-string/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-string/snapshots/2-TSESTree-Tokens.shot index 9b1fd979379b..eac181ff37ad 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-string/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-string/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures element AccessorProperty key-computed-string TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-string/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-string/snapshots/3-Babel-AST.shot index d8b18a559106..4409ab09e515 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-string/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-string/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures element AccessorProperty key-computed-string Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ ClassAccessorProperty { type: "ClassAccessorProperty", computed: true, diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-string/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-string/snapshots/4-Babel-Tokens.shot index 29da5db38843..cd0f04e9caf2 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-string/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-string/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures element AccessorProperty key-computed-string Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-string/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-string/snapshots/5-AST-Alignment-AST.shot index 3ca8eaf26ea5..0cbe6bb62c4b 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-string/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-string/snapshots/5-AST-Alignment-AST.shot @@ -21,7 +21,7 @@ exports[`AST Fixtures element AccessorProperty key-computed-string AST Alignment - declare: false, key: Literal { type: 'Literal', - raw: '\\\\'prop\\\\'', + raw: '\\'prop\\'', value: 'prop', range: [24, 30], @@ -34,7 +34,7 @@ exports[`AST Fixtures element AccessorProperty key-computed-string AST Alignment static: false, value: Literal { type: 'Literal', - raw: '\\\\'value\\\\'', + raw: '\\'value\\'', value: 'value', range: [34, 41], diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-number/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-number/snapshots/1-TSESTree-AST.shot index 40d09186f6d5..c1024f115037 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-number/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-number/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures element AccessorProperty key-number TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [], + body: [], sourceType: "script", range: [0, 0], diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-number/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-number/snapshots/2-TSESTree-Tokens.shot index ea5732d8dee1..ec11bb8381dd 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-number/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-number/snapshots/2-TSESTree-Tokens.shot @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures element AccessorProperty key-number TSESTree - Tokens 1`] = `Array []`; +exports[`AST Fixtures element AccessorProperty key-number TSESTree - Tokens 1`] = `[]`; diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-number/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-number/snapshots/3-Babel-AST.shot index c3c65ccd7f84..96f034cf05c3 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-number/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-number/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures element AccessorProperty key-number Babel - AST 1`] = ` Program { type: "Program", - body: Array [], + body: [], sourceType: "script", range: [0, 0], diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-number/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-number/snapshots/4-Babel-Tokens.shot index 75ca02a990c4..0a1c0c86992f 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-number/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-number/snapshots/4-Babel-Tokens.shot @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures element AccessorProperty key-number Babel - Tokens 1`] = `Array []`; +exports[`AST Fixtures element AccessorProperty key-number Babel - Tokens 1`] = `[]`; diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-private/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-private/snapshots/1-TSESTree-AST.shot index e30dd5e502f1..26abb22016e6 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-private/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-private/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures element AccessorProperty key-private TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ AccessorProperty { type: "AccessorProperty", computed: false, diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-private/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-private/snapshots/2-TSESTree-Tokens.shot index 1a3c3d84ed7b..611776099fba 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-private/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-private/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures element AccessorProperty key-private TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-private/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-private/snapshots/3-Babel-AST.shot index e687dfd0d9a0..4118535f4c98 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-private/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-private/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures element AccessorProperty key-private Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ ClassAccessorProperty { type: "ClassAccessorProperty", computed: false, diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-private/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-private/snapshots/4-Babel-Tokens.shot index 52963d76a15b..5f316d7e4df5 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-private/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-private/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures element AccessorProperty key-private Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-string/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-string/snapshots/1-TSESTree-AST.shot index 06a3b3705ed7..0cc093d094f6 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-string/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-string/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures element AccessorProperty key-string TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ AccessorProperty { type: "AccessorProperty", computed: false, diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-string/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-string/snapshots/2-TSESTree-Tokens.shot index 0fe6262dd931..2afc4cac40a4 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-string/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-string/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures element AccessorProperty key-string TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-string/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-string/snapshots/3-Babel-AST.shot index 9af9236878cb..1d213162cd91 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-string/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-string/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures element AccessorProperty key-string Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ ClassAccessorProperty { type: "ClassAccessorProperty", computed: false, diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-string/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-string/snapshots/4-Babel-Tokens.shot index 110b7cb99495..b3c3aa19faba 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-string/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-string/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures element AccessorProperty key-string Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-string/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-string/snapshots/5-AST-Alignment-AST.shot index f831283bcb4c..79f2d5ffd632 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-string/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-string/snapshots/5-AST-Alignment-AST.shot @@ -21,7 +21,7 @@ exports[`AST Fixtures element AccessorProperty key-string AST Alignment - AST 1` - declare: false, key: Literal { type: 'Literal', - raw: '\\\\'prop\\\\'', + raw: '\\'prop\\'', value: 'prop', range: [23, 29], @@ -34,7 +34,7 @@ exports[`AST Fixtures element AccessorProperty key-string AST Alignment - AST 1` static: false, value: Literal { type: 'Literal', - raw: '\\\\'value\\\\'', + raw: '\\'value\\'', value: 'value', range: [32, 39], diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract-with-value/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract-with-value/snapshots/1-TSESTree-AST.shot index 1c8247fb96d8..75bdc0edd24a 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract-with-value/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract-with-value/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures element AccessorProperty modifier-abstract-with-value TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", abstract: true, body: ClassBody { type: "ClassBody", - body: Array [ + body: [ TSAbstractAccessorProperty { type: "TSAbstractAccessorProperty", computed: false, diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract-with-value/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract-with-value/snapshots/2-TSESTree-Tokens.shot index b993bfecdea8..52b20d043688 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract-with-value/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract-with-value/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures element AccessorProperty modifier-abstract-with-value TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "abstract", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract-with-value/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract-with-value/snapshots/3-Babel-AST.shot index 147bdd6cb259..94c61988d3ba 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract-with-value/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract-with-value/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures element AccessorProperty modifier-abstract-with-value Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", abstract: true, body: ClassBody { type: "ClassBody", - body: Array [ + body: [ ClassAccessorProperty { type: "ClassAccessorProperty", abstract: true, diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract-with-value/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract-with-value/snapshots/4-Babel-Tokens.shot index 1d49b0c7ad18..ee7c1781984f 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract-with-value/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract-with-value/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures element AccessorProperty modifier-abstract-with-value Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "abstract", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract/snapshots/1-TSESTree-AST.shot index 420e13ca4bf1..41f1a89bdc74 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures element AccessorProperty modifier-abstract TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", abstract: true, body: ClassBody { type: "ClassBody", - body: Array [ + body: [ TSAbstractAccessorProperty { type: "TSAbstractAccessorProperty", computed: false, diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract/snapshots/2-TSESTree-Tokens.shot index 732caf89fcef..cbf2ff5dd259 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures element AccessorProperty modifier-abstract TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "abstract", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract/snapshots/3-Babel-AST.shot index 6423ad414358..0fa45f309ade 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures element AccessorProperty modifier-abstract Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", abstract: true, body: ClassBody { type: "ClassBody", - body: Array [ + body: [ ClassAccessorProperty { type: "ClassAccessorProperty", abstract: true, diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract/snapshots/4-Babel-Tokens.shot index 41f02a221913..1d7317521617 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures element AccessorProperty modifier-abstract Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "abstract", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-declare/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-declare/snapshots/1-TSESTree-AST.shot index 0b61be5984af..c16fab78a95d 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-declare/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-declare/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures element AccessorProperty modifier-declare TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ AccessorProperty { type: "AccessorProperty", computed: false, diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-declare/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-declare/snapshots/2-TSESTree-Tokens.shot index c9f1a1a1da8c..72eac2d450c7 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-declare/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-declare/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures element AccessorProperty modifier-declare TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-declare/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-declare/snapshots/3-Babel-AST.shot index 057e8de958a0..c23d80c9f3d8 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-declare/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-declare/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures element AccessorProperty modifier-declare Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ ClassAccessorProperty { type: "ClassAccessorProperty", computed: false, diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-declare/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-declare/snapshots/4-Babel-Tokens.shot index 991730e68ff7..46c084237fe7 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-declare/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-declare/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures element AccessorProperty modifier-declare Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-override/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-override/snapshots/1-TSESTree-AST.shot index b0e78060a090..105774fea638 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-override/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-override/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures element AccessorProperty modifier-override TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ AccessorProperty { type: "AccessorProperty", computed: false, diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-override/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-override/snapshots/2-TSESTree-Tokens.shot index 24c22b851468..8c0c925d9715 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-override/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-override/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures element AccessorProperty modifier-override TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-override/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-override/snapshots/3-Babel-AST.shot index 49d82178de54..70fde4e65104 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-override/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-override/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures element AccessorProperty modifier-override Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ ClassAccessorProperty { type: "ClassAccessorProperty", computed: false, diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-override/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-override/snapshots/4-Babel-Tokens.shot index dd9763a4fcdc..07af595559f8 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-override/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-override/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures element AccessorProperty modifier-override Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-private/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-private/snapshots/1-TSESTree-AST.shot index 0f0fa0f2a107..0ee458fa617a 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-private/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-private/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures element AccessorProperty modifier-private TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ AccessorProperty { type: "AccessorProperty", accessibility: "private", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-private/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-private/snapshots/2-TSESTree-Tokens.shot index 17510235b468..929e1d473229 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-private/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-private/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures element AccessorProperty modifier-private TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-private/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-private/snapshots/3-Babel-AST.shot index b11a056920dc..e4a64095c6fb 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-private/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-private/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures element AccessorProperty modifier-private Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ ClassAccessorProperty { type: "ClassAccessorProperty", accessibility: "private", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-private/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-private/snapshots/4-Babel-Tokens.shot index 75520e7741d1..b85d30cd0748 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-private/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-private/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures element AccessorProperty modifier-private Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-protected/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-protected/snapshots/1-TSESTree-AST.shot index d862c8f8648d..8dd908291b3e 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-protected/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-protected/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures element AccessorProperty modifier-protected TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ AccessorProperty { type: "AccessorProperty", accessibility: "protected", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-protected/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-protected/snapshots/2-TSESTree-Tokens.shot index 88ab4ac1f406..bcd45acfa249 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-protected/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-protected/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures element AccessorProperty modifier-protected TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-protected/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-protected/snapshots/3-Babel-AST.shot index dbabfaa6a934..a54272704ac0 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-protected/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-protected/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures element AccessorProperty modifier-protected Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ ClassAccessorProperty { type: "ClassAccessorProperty", accessibility: "protected", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-protected/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-protected/snapshots/4-Babel-Tokens.shot index c730984ef441..5443b9036e7f 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-protected/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-protected/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures element AccessorProperty modifier-protected Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-public/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-public/snapshots/1-TSESTree-AST.shot index 6a1c4d1b7ecb..375fcf037db1 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-public/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-public/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures element AccessorProperty modifier-public TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ AccessorProperty { type: "AccessorProperty", accessibility: "public", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-public/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-public/snapshots/2-TSESTree-Tokens.shot index 31de17a79dd9..1ba7d288bfef 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-public/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-public/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures element AccessorProperty modifier-public TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-public/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-public/snapshots/3-Babel-AST.shot index ed50b70a5c77..a2730321f598 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-public/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-public/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures element AccessorProperty modifier-public Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ ClassAccessorProperty { type: "ClassAccessorProperty", accessibility: "public", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-public/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-public/snapshots/4-Babel-Tokens.shot index e0257ccc7358..33f516bb55bb 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-public/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-public/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures element AccessorProperty modifier-public Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-readonly/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-readonly/snapshots/1-TSESTree-AST.shot index 41928f7e572a..1f6d0b40e2d3 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-readonly/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-readonly/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures element AccessorProperty modifier-readonly TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ AccessorProperty { type: "AccessorProperty", computed: false, diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-readonly/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-readonly/snapshots/2-TSESTree-Tokens.shot index 802229ba8aea..48d567e7b6d4 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-readonly/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-readonly/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures element AccessorProperty modifier-readonly TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-readonly/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-readonly/snapshots/3-Babel-AST.shot index 369cfde552a0..3c52a8c171a2 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-readonly/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-readonly/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures element AccessorProperty modifier-readonly Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ ClassAccessorProperty { type: "ClassAccessorProperty", computed: false, diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-readonly/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-readonly/snapshots/4-Babel-Tokens.shot index 673f38fe66ca..87847956ae6b 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-readonly/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-readonly/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures element AccessorProperty modifier-readonly Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-static/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-static/snapshots/1-TSESTree-AST.shot index 6733de847c83..2e8ce2801836 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-static/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-static/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures element AccessorProperty modifier-static TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ AccessorProperty { type: "AccessorProperty", computed: false, diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-static/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-static/snapshots/2-TSESTree-Tokens.shot index 245c071ee555..a773658a994a 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-static/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-static/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures element AccessorProperty modifier-static TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-static/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-static/snapshots/3-Babel-AST.shot index 917914d80fb4..7de62c41054c 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-static/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-static/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures element AccessorProperty modifier-static Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ ClassAccessorProperty { type: "ClassAccessorProperty", computed: false, diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-static/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-static/snapshots/4-Babel-Tokens.shot index 64b2cf044086..889b1d93def5 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-static/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-static/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures element AccessorProperty modifier-static Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-no-value/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-no-value/snapshots/1-TSESTree-AST.shot index a5341fd2f70f..7ee5d769dd23 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-no-value/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-no-value/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures element AccessorProperty no-annotation-no-value TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ AccessorProperty { type: "AccessorProperty", computed: false, diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-no-value/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-no-value/snapshots/2-TSESTree-Tokens.shot index b28c76ee39c6..89b61f7910d6 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-no-value/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-no-value/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures element AccessorProperty no-annotation-no-value TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-no-value/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-no-value/snapshots/3-Babel-AST.shot index 7cf14ad2c925..c48d7988e30c 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-no-value/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-no-value/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures element AccessorProperty no-annotation-no-value Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ ClassAccessorProperty { type: "ClassAccessorProperty", computed: false, diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-no-value/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-no-value/snapshots/4-Babel-Tokens.shot index 46747c3659a1..960e0b75bf42 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-no-value/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-no-value/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures element AccessorProperty no-annotation-no-value Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-with-value/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-with-value/snapshots/1-TSESTree-AST.shot index 0cc63f224869..e127d4593df7 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-with-value/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-with-value/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures element AccessorProperty no-annotation-with-value TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ AccessorProperty { type: "AccessorProperty", computed: false, diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-with-value/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-with-value/snapshots/2-TSESTree-Tokens.shot index e98ce8a1ccf0..c2021f16a755 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-with-value/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-with-value/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures element AccessorProperty no-annotation-with-value TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-with-value/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-with-value/snapshots/3-Babel-AST.shot index 7c1c8d024f9b..4fe147315503 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-with-value/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-with-value/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures element AccessorProperty no-annotation-with-value Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ ClassAccessorProperty { type: "ClassAccessorProperty", computed: false, diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-with-value/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-with-value/snapshots/4-Babel-Tokens.shot index fbe3b7015a85..752dfbc2a946 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-with-value/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-with-value/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures element AccessorProperty no-annotation-with-value Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-with-value/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-with-value/snapshots/5-AST-Alignment-AST.shot index 2d4b943581cf..0bc31a58020c 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-with-value/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-with-value/snapshots/5-AST-Alignment-AST.shot @@ -33,7 +33,7 @@ exports[`AST Fixtures element AccessorProperty no-annotation-with-value AST Alig static: false, value: Literal { type: 'Literal', - raw: '\\\\'str\\\\'', + raw: '\\'str\\'', value: 'str', range: [30, 35], diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-no-value/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-no-value/snapshots/1-TSESTree-AST.shot index be65f1b2fcdc..a1e4c4fac776 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-no-value/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-no-value/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures element AccessorProperty with-annotation-no-value TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ AccessorProperty { type: "AccessorProperty", computed: false, diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-no-value/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-no-value/snapshots/2-TSESTree-Tokens.shot index 3787e2a78f81..09b6effc3d01 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-no-value/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-no-value/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures element AccessorProperty with-annotation-no-value TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-no-value/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-no-value/snapshots/3-Babel-AST.shot index b1451f6ef4dd..360eee8a91f0 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-no-value/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-no-value/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures element AccessorProperty with-annotation-no-value Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ ClassAccessorProperty { type: "ClassAccessorProperty", computed: false, diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-no-value/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-no-value/snapshots/4-Babel-Tokens.shot index 3c588981ba1c..a0f0c13f6d5e 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-no-value/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-no-value/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures element AccessorProperty with-annotation-no-value Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-with-value/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-with-value/snapshots/1-TSESTree-AST.shot index 9e9448b46f1e..6d4fd50a3c3a 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-with-value/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-with-value/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures element AccessorProperty with-annotation-with-value TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ AccessorProperty { type: "AccessorProperty", computed: false, diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-with-value/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-with-value/snapshots/2-TSESTree-Tokens.shot index 2ee9140971ce..a70630186e61 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-with-value/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-with-value/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures element AccessorProperty with-annotation-with-value TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-with-value/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-with-value/snapshots/3-Babel-AST.shot index dbe2364b1241..6f30a44c3589 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-with-value/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-with-value/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures element AccessorProperty with-annotation-with-value Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ ClassAccessorProperty { type: "ClassAccessorProperty", computed: false, diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-with-value/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-with-value/snapshots/4-Babel-Tokens.shot index d8a82e4c1bb3..8e842e0d2646 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-with-value/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-with-value/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures element AccessorProperty with-annotation-with-value Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-with-value/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-with-value/snapshots/5-AST-Alignment-AST.shot index 0e95b7b46200..a0d4ea6a1c61 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-with-value/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-with-value/snapshots/5-AST-Alignment-AST.shot @@ -51,7 +51,7 @@ exports[`AST Fixtures element AccessorProperty with-annotation-with-value AST Al }, value: Literal { type: 'Literal', - raw: '\\\\'str\\\\'', + raw: '\\'str\\'', value: 'str', range: [38, 43], diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/array-array/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/array-array/snapshots/1-TSESTree-AST.shot index cfbfed088ce2..be2cdbd244ab 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/array-array/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/array-array/snapshots/1-TSESTree-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures expression TSSatisfiesExpression array-array TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: TSSatisfiesExpression { type: "TSSatisfiesExpression", expression: ArrayExpression { type: "ArrayExpression", - elements: Array [ + elements: [ Literal { type: "Literal", raw: "1", @@ -54,7 +54,7 @@ Program { }, typeAnnotation: TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSLiteralType { type: "TSLiteralType", literal: Literal { diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/array-array/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/array-array/snapshots/2-TSESTree-Tokens.shot index b4adbaf21bb9..83c5e6260a3b 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/array-array/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/array-array/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures expression TSSatisfiesExpression array-array TSESTree - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "[", diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/array-array/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/array-array/snapshots/3-Babel-AST.shot index 635240ef2dd1..d216f31c2f2a 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/array-array/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/array-array/snapshots/3-Babel-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures expression TSSatisfiesExpression array-array Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: TSSatisfiesExpression { type: "TSSatisfiesExpression", expression: ArrayExpression { type: "ArrayExpression", - elements: Array [ + elements: [ Literal { type: "Literal", raw: "1", @@ -54,7 +54,7 @@ Program { }, typeAnnotation: TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSLiteralType { type: "TSLiteralType", literal: Literal { diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/array-array/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/array-array/snapshots/4-Babel-Tokens.shot index 814b7c0915b2..0e4a09caf034 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/array-array/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/array-array/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures expression TSSatisfiesExpression array-array Babel - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "[", diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/arrow-func-no-parentheses/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/arrow-func-no-parentheses/snapshots/1-TSESTree-AST.shot index d678e2b5acef..0a7cea28a913 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/arrow-func-no-parentheses/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/arrow-func-no-parentheses/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures expression TSSatisfiesExpression arrow-func-no-parentheses TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ArrowFunctionExpression { @@ -41,7 +41,7 @@ Program { expression: true, generator: false, id: null, - params: Array [], + params: [], range: [0, 24], loc: { diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/arrow-func-no-parentheses/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/arrow-func-no-parentheses/snapshots/2-TSESTree-Tokens.shot index 0d642d948246..0775edd1e25f 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/arrow-func-no-parentheses/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/arrow-func-no-parentheses/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures expression TSSatisfiesExpression arrow-func-no-parentheses TSESTree - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/arrow-func-no-parentheses/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/arrow-func-no-parentheses/snapshots/3-Babel-AST.shot index 55e90ce71c0c..e4d89a752df2 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/arrow-func-no-parentheses/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/arrow-func-no-parentheses/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures expression TSSatisfiesExpression arrow-func-no-parentheses Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ArrowFunctionExpression { @@ -41,7 +41,7 @@ Program { expression: true, generator: false, id: null, - params: Array [], + params: [], range: [0, 24], loc: { diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/arrow-func-no-parentheses/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/arrow-func-no-parentheses/snapshots/4-Babel-Tokens.shot index c921c840faaf..2032280ef22e 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/arrow-func-no-parentheses/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/arrow-func-no-parentheses/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures expression TSSatisfiesExpression arrow-func-no-parentheses Babel - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/arrow-func-with-parentheses/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/arrow-func-with-parentheses/snapshots/1-TSESTree-AST.shot index 193cbbd12e38..b4b65ae62dd8 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/arrow-func-with-parentheses/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/arrow-func-with-parentheses/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures expression TSSatisfiesExpression arrow-func-with-parentheses TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: TSSatisfiesExpression { @@ -25,7 +25,7 @@ Program { expression: true, generator: false, id: null, - params: Array [], + params: [], range: [1, 8], loc: { @@ -35,7 +35,7 @@ Program { }, typeAnnotation: TSFunctionType { type: "TSFunctionType", - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSNumberKeyword { diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/arrow-func-with-parentheses/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/arrow-func-with-parentheses/snapshots/2-TSESTree-Tokens.shot index 7e75dcaa2c0c..acb12a3f6e07 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/arrow-func-with-parentheses/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/arrow-func-with-parentheses/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures expression TSSatisfiesExpression arrow-func-with-parentheses TSESTree - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/arrow-func-with-parentheses/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/arrow-func-with-parentheses/snapshots/3-Babel-AST.shot index 7bddc387f4cf..743d3bae7b56 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/arrow-func-with-parentheses/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/arrow-func-with-parentheses/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures expression TSSatisfiesExpression arrow-func-with-parentheses Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: TSSatisfiesExpression { @@ -25,7 +25,7 @@ Program { expression: true, generator: false, id: null, - params: Array [], + params: [], range: [1, 8], loc: { @@ -35,7 +35,7 @@ Program { }, typeAnnotation: TSFunctionType { type: "TSFunctionType", - parameters: Array [], + parameters: [], typeAnnotation: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSNumberKeyword { diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/arrow-func-with-parentheses/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/arrow-func-with-parentheses/snapshots/4-Babel-Tokens.shot index 5edb3e0a8411..f9b54c124928 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/arrow-func-with-parentheses/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/arrow-func-with-parentheses/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures expression TSSatisfiesExpression arrow-func-with-parentheses Babel - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/chained-satisfies/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/chained-satisfies/snapshots/1-TSESTree-AST.shot index 508caf4b944f..bd2b5ff603e3 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/chained-satisfies/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/chained-satisfies/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures expression TSSatisfiesExpression chained-satisfies TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: TSSatisfiesExpression { diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/chained-satisfies/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/chained-satisfies/snapshots/2-TSESTree-Tokens.shot index dd0ebe5a72f2..dcc281cea66e 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/chained-satisfies/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/chained-satisfies/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures expression TSSatisfiesExpression chained-satisfies TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "foo", diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/chained-satisfies/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/chained-satisfies/snapshots/3-Babel-AST.shot index 190d8d14fd0f..ef3766f3482a 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/chained-satisfies/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/chained-satisfies/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures expression TSSatisfiesExpression chained-satisfies Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: TSSatisfiesExpression { diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/chained-satisfies/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/chained-satisfies/snapshots/4-Babel-Tokens.shot index 5afc144ecef6..cec8a563e4db 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/chained-satisfies/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/chained-satisfies/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures expression TSSatisfiesExpression chained-satisfies Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "foo", diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-no-parentheses/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-no-parentheses/snapshots/1-TSESTree-AST.shot index bb649ea977d4..6b30696c30b3 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-no-parentheses/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-no-parentheses/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures expression TSSatisfiesExpression conditional-no-parentheses TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ConditionalExpression { diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-no-parentheses/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-no-parentheses/snapshots/2-TSESTree-Tokens.shot index 43f6da6a6806..82723fe06c3f 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-no-parentheses/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-no-parentheses/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures expression TSSatisfiesExpression conditional-no-parentheses TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "foo", diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-no-parentheses/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-no-parentheses/snapshots/3-Babel-AST.shot index 4cba5b2f4f14..0ebcba401cad 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-no-parentheses/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-no-parentheses/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures expression TSSatisfiesExpression conditional-no-parentheses Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ConditionalExpression { diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-no-parentheses/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-no-parentheses/snapshots/4-Babel-Tokens.shot index 80d8c6ce89ea..92c98c983b4e 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-no-parentheses/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-no-parentheses/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures expression TSSatisfiesExpression conditional-no-parentheses Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "foo", diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-with-parentheses/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-with-parentheses/snapshots/1-TSESTree-AST.shot index 2194d9218909..190beb7c0dd5 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-with-parentheses/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-with-parentheses/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures expression TSSatisfiesExpression conditional-with-parentheses TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: TSSatisfiesExpression { diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-with-parentheses/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-with-parentheses/snapshots/2-TSESTree-Tokens.shot index 09ed02548952..cc2a6a03d20e 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-with-parentheses/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-with-parentheses/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures expression TSSatisfiesExpression conditional-with-parentheses TSESTree - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-with-parentheses/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-with-parentheses/snapshots/3-Babel-AST.shot index 39a9e9951ada..10682b015114 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-with-parentheses/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-with-parentheses/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures expression TSSatisfiesExpression conditional-with-parentheses Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: TSSatisfiesExpression { diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-with-parentheses/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-with-parentheses/snapshots/4-Babel-Tokens.shot index 7ca2b46ad24f..864682487b58 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-with-parentheses/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-with-parentheses/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures expression TSSatisfiesExpression conditional-with-parentheses Babel - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-keyword/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-keyword/snapshots/1-TSESTree-AST.shot index 7b7bb15a5af5..680a51ad16ac 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-keyword/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-keyword/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures expression TSSatisfiesExpression identifier-keyword TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: TSSatisfiesExpression { diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-keyword/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-keyword/snapshots/2-TSESTree-Tokens.shot index 3563bcb28097..e74255534255 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-keyword/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-keyword/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures expression TSSatisfiesExpression identifier-keyword TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "foo", diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-keyword/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-keyword/snapshots/3-Babel-AST.shot index 8be9fb166532..b65f8a9edc0b 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-keyword/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-keyword/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures expression TSSatisfiesExpression identifier-keyword Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: TSSatisfiesExpression { diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-keyword/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-keyword/snapshots/4-Babel-Tokens.shot index 2559a7666c6c..2939774d1a1a 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-keyword/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-keyword/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures expression TSSatisfiesExpression identifier-keyword Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "foo", diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-object-type/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-object-type/snapshots/1-TSESTree-AST.shot index 6197262c7a0b..0775d6c2219f 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-object-type/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-object-type/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures expression TSSatisfiesExpression identifier-object-type TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: TSSatisfiesExpression { @@ -20,7 +20,7 @@ Program { }, typeAnnotation: TSTypeLiteral { type: "TSTypeLiteral", - members: Array [ + members: [ TSPropertySignature { type: "TSPropertySignature", computed: false, diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-object-type/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-object-type/snapshots/2-TSESTree-Tokens.shot index 99673ea1ecf4..c5fa2b4fc7af 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-object-type/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-object-type/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures expression TSSatisfiesExpression identifier-object-type TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "foo", diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-object-type/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-object-type/snapshots/3-Babel-AST.shot index a2861a34b1f2..65a9c754e933 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-object-type/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-object-type/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures expression TSSatisfiesExpression identifier-object-type Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: TSSatisfiesExpression { @@ -20,7 +20,7 @@ Program { }, typeAnnotation: TSTypeLiteral { type: "TSTypeLiteral", - members: Array [ + members: [ TSPropertySignature { type: "TSPropertySignature", computed: false, diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-object-type/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-object-type/snapshots/4-Babel-Tokens.shot index 34926c2bea74..0607bc94981a 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-object-type/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-object-type/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures expression TSSatisfiesExpression identifier-object-type Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "foo", diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-tuple-type/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-tuple-type/snapshots/1-TSESTree-AST.shot index 57c80c5a805c..0c9eb9f14688 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-tuple-type/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-tuple-type/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures expression TSSatisfiesExpression identifier-tuple-type TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: TSSatisfiesExpression { @@ -20,7 +20,7 @@ Program { }, typeAnnotation: TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSLiteralType { type: "TSLiteralType", literal: Literal { diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-tuple-type/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-tuple-type/snapshots/2-TSESTree-Tokens.shot index 07ece3eadeed..86a76d444701 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-tuple-type/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-tuple-type/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures expression TSSatisfiesExpression identifier-tuple-type TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "foo", diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-tuple-type/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-tuple-type/snapshots/3-Babel-AST.shot index 7201de5d38f5..31b1bae9b9e2 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-tuple-type/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-tuple-type/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures expression TSSatisfiesExpression identifier-tuple-type Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: TSSatisfiesExpression { @@ -20,7 +20,7 @@ Program { }, typeAnnotation: TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSLiteralType { type: "TSLiteralType", literal: Literal { diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-tuple-type/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-tuple-type/snapshots/4-Babel-Tokens.shot index 8a62c8d0380c..63dccc41ef5c 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-tuple-type/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-tuple-type/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures expression TSSatisfiesExpression identifier-tuple-type Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "foo", diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-no-parentheses/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-no-parentheses/snapshots/1-TSESTree-AST.shot index 1ad1131264a4..06455ebe1044 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-no-parentheses/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-no-parentheses/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures expression TSSatisfiesExpression logical-no-parentheses TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: BinaryExpression { diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-no-parentheses/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-no-parentheses/snapshots/2-TSESTree-Tokens.shot index f5e333ee1db9..e8e04ba59955 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-no-parentheses/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-no-parentheses/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures expression TSSatisfiesExpression logical-no-parentheses TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "foo", diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-no-parentheses/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-no-parentheses/snapshots/3-Babel-AST.shot index a2add0503752..68dee592120a 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-no-parentheses/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-no-parentheses/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures expression TSSatisfiesExpression logical-no-parentheses Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: BinaryExpression { diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-no-parentheses/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-no-parentheses/snapshots/4-Babel-Tokens.shot index e4fa1f6cea58..3d6be1e38e64 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-no-parentheses/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-no-parentheses/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures expression TSSatisfiesExpression logical-no-parentheses Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "foo", diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-with-parentheses/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-with-parentheses/snapshots/1-TSESTree-AST.shot index 4401893b67ed..1ffb8d1525b8 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-with-parentheses/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-with-parentheses/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures expression TSSatisfiesExpression logical-with-parentheses TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: TSSatisfiesExpression { diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-with-parentheses/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-with-parentheses/snapshots/2-TSESTree-Tokens.shot index 7034fce1187a..3de5800406e7 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-with-parentheses/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-with-parentheses/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures expression TSSatisfiesExpression logical-with-parentheses TSESTree - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-with-parentheses/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-with-parentheses/snapshots/3-Babel-AST.shot index fb10fc5442e5..44000900704e 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-with-parentheses/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-with-parentheses/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures expression TSSatisfiesExpression logical-with-parentheses Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: TSSatisfiesExpression { diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-with-parentheses/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-with-parentheses/snapshots/4-Babel-Tokens.shot index 4c73b5cc818a..49847758973b 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-with-parentheses/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-with-parentheses/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures expression TSSatisfiesExpression logical-with-parentheses Babel - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/snapshots/1-TSESTree-AST.shot index c39ffc049d11..8dbdf850e403 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/snapshots/1-TSESTree-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures expression TSSatisfiesExpression object-object-inner-parentheses TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: TSSatisfiesExpression { type: "TSSatisfiesExpression", expression: ObjectExpression { type: "ObjectExpression", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -55,7 +55,7 @@ Program { }, typeAnnotation: TSTypeLiteral { type: "TSTypeLiteral", - members: Array [ + members: [ TSPropertySignature { type: "TSPropertySignature", computed: false, diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/snapshots/2-TSESTree-Tokens.shot index be50e77f2710..f6e62fda8a7c 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures expression TSSatisfiesExpression object-object-inner-parentheses TSESTree - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/snapshots/3-Babel-AST.shot index 90c569abf825..59da487f065c 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/snapshots/3-Babel-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures expression TSSatisfiesExpression object-object-inner-parentheses Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: TSSatisfiesExpression { type: "TSSatisfiesExpression", expression: ObjectExpression { type: "ObjectExpression", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -55,7 +55,7 @@ Program { }, typeAnnotation: TSTypeLiteral { type: "TSTypeLiteral", - members: Array [ + members: [ TSPropertySignature { type: "TSPropertySignature", computed: false, diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/snapshots/4-Babel-Tokens.shot index 45fc90349daf..1aa182f5d2de 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures expression TSSatisfiesExpression object-object-inner-parentheses Babel - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/snapshots/1-TSESTree-AST.shot index 9100755681a6..c73bf6bd05da 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/snapshots/1-TSESTree-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures expression TSSatisfiesExpression object-object-outer-parentheses TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: TSSatisfiesExpression { type: "TSSatisfiesExpression", expression: ObjectExpression { type: "ObjectExpression", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -55,7 +55,7 @@ Program { }, typeAnnotation: TSTypeLiteral { type: "TSTypeLiteral", - members: Array [ + members: [ TSPropertySignature { type: "TSPropertySignature", computed: false, diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/snapshots/2-TSESTree-Tokens.shot index 388f2790bb07..18e9568f78b6 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures expression TSSatisfiesExpression object-object-outer-parentheses TSESTree - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/snapshots/3-Babel-AST.shot index 16adf4fa64a3..0131efff0cb0 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/snapshots/3-Babel-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures expression TSSatisfiesExpression object-object-outer-parentheses Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: TSSatisfiesExpression { type: "TSSatisfiesExpression", expression: ObjectExpression { type: "ObjectExpression", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -55,7 +55,7 @@ Program { }, typeAnnotation: TSTypeLiteral { type: "TSTypeLiteral", - members: Array [ + members: [ TSPropertySignature { type: "TSPropertySignature", computed: false, diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/snapshots/4-Babel-Tokens.shot index bdca107f4533..319139b4a84c 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures expression TSSatisfiesExpression object-object-outer-parentheses Babel - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", diff --git a/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-factory-instance-member/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-factory-instance-member/snapshots/1-TSESTree-AST.shot index 0a2043175ad6..d8e74a7e7faf 100644 --- a/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-factory-instance-member/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-factory-instance-member/snapshots/1-TSESTree-AST.shot @@ -3,21 +3,21 @@ exports[`AST Fixtures legacy-fixtures accessor-decorators accessor-decorator-factory-instance-member TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: CallExpression { type: "CallExpression", - arguments: Array [ + arguments: [ Literal { type: "Literal", raw: "false", @@ -74,7 +74,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: MemberExpression { @@ -125,7 +125,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [117, 145], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-factory-instance-member/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-factory-instance-member/snapshots/2-TSESTree-Tokens.shot index 91bf13ad5f3f..dbc7311622dd 100644 --- a/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-factory-instance-member/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-factory-instance-member/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures accessor-decorators accessor-decorator-factory-instance-member TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-factory-instance-member/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-factory-instance-member/snapshots/3-Babel-AST.shot index 75fbd90e9df7..3fce14c539a3 100644 --- a/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-factory-instance-member/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-factory-instance-member/snapshots/3-Babel-AST.shot @@ -3,21 +3,21 @@ exports[`AST Fixtures legacy-fixtures accessor-decorators accessor-decorator-factory-instance-member Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: CallExpression { type: "CallExpression", - arguments: Array [ + arguments: [ Literal { type: "Literal", raw: "false", @@ -73,7 +73,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: MemberExpression { @@ -124,7 +124,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [117, 145], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-factory-instance-member/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-factory-instance-member/snapshots/4-Babel-Tokens.shot index 8bef76d5f362..f4951ff3cd6d 100644 --- a/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-factory-instance-member/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-factory-instance-member/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures accessor-decorators accessor-decorator-factory-instance-member Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-factory-static-member/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-factory-static-member/snapshots/1-TSESTree-AST.shot index a80f43128bfc..36589a0f64a3 100644 --- a/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-factory-static-member/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-factory-static-member/snapshots/1-TSESTree-AST.shot @@ -3,24 +3,24 @@ exports[`AST Fixtures legacy-fixtures accessor-decorators accessor-decorator-factory-static-member TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: CallExpression { type: "CallExpression", - arguments: Array [ + arguments: [ ObjectExpression { type: "ObjectExpression", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -108,7 +108,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: MemberExpression { @@ -159,7 +159,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [125, 155], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-factory-static-member/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-factory-static-member/snapshots/2-TSESTree-Tokens.shot index 177ab2ca46df..d9cd51589252 100644 --- a/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-factory-static-member/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-factory-static-member/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures accessor-decorators accessor-decorator-factory-static-member TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-factory-static-member/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-factory-static-member/snapshots/3-Babel-AST.shot index f00879c61d30..e8c5837b9944 100644 --- a/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-factory-static-member/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-factory-static-member/snapshots/3-Babel-AST.shot @@ -3,24 +3,24 @@ exports[`AST Fixtures legacy-fixtures accessor-decorators accessor-decorator-factory-static-member Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: CallExpression { type: "CallExpression", - arguments: Array [ + arguments: [ ObjectExpression { type: "ObjectExpression", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -107,7 +107,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: MemberExpression { @@ -158,7 +158,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [125, 155], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-factory-static-member/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-factory-static-member/snapshots/4-Babel-Tokens.shot index 899bdfd77f42..c5c7e3a3047f 100644 --- a/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-factory-static-member/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-factory-static-member/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures accessor-decorators accessor-decorator-factory-static-member Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-instance-member/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-instance-member/snapshots/1-TSESTree-AST.shot index feac827e4851..d41b2280b547 100644 --- a/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-instance-member/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-instance-member/snapshots/1-TSESTree-AST.shot @@ -3,16 +3,16 @@ exports[`AST Fixtures legacy-fixtures accessor-decorators accessor-decorator-instance-member TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: Identifier { @@ -51,7 +51,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: MemberExpression { @@ -102,7 +102,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [100, 128], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-instance-member/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-instance-member/snapshots/2-TSESTree-Tokens.shot index 4a7a9ea04bef..bfb5f6f0be20 100644 --- a/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-instance-member/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-instance-member/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures accessor-decorators accessor-decorator-instance-member TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-instance-member/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-instance-member/snapshots/3-Babel-AST.shot index a2b5a414d3c0..7445811dd871 100644 --- a/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-instance-member/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-instance-member/snapshots/3-Babel-AST.shot @@ -3,16 +3,16 @@ exports[`AST Fixtures legacy-fixtures accessor-decorators accessor-decorator-instance-member Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: Identifier { @@ -50,7 +50,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: MemberExpression { @@ -101,7 +101,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [100, 128], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-instance-member/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-instance-member/snapshots/4-Babel-Tokens.shot index 8d36b8ba2e7b..cd67ab8e5264 100644 --- a/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-instance-member/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-instance-member/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures accessor-decorators accessor-decorator-instance-member Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-static-member/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-static-member/snapshots/1-TSESTree-AST.shot index 726459cbffe9..533cf3cde41a 100644 --- a/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-static-member/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-static-member/snapshots/1-TSESTree-AST.shot @@ -3,16 +3,16 @@ exports[`AST Fixtures legacy-fixtures accessor-decorators accessor-decorator-static-member TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: Identifier { @@ -51,7 +51,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: AssignmentExpression { @@ -122,7 +122,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", name: "a", diff --git a/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-static-member/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-static-member/snapshots/2-TSESTree-Tokens.shot index 2dedc4383866..dd9aabec61f2 100644 --- a/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-static-member/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-static-member/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures accessor-decorators accessor-decorator-static-member TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-static-member/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-static-member/snapshots/3-Babel-AST.shot index a8d8155d23ed..8e75a270fafe 100644 --- a/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-static-member/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-static-member/snapshots/3-Babel-AST.shot @@ -3,16 +3,16 @@ exports[`AST Fixtures legacy-fixtures accessor-decorators accessor-decorator-static-member Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: Identifier { @@ -50,7 +50,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: AssignmentExpression { @@ -121,7 +121,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", name: "a", diff --git a/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-static-member/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-static-member/snapshots/4-Babel-Tokens.shot index e9e01b9c9025..ba2d8142592f 100644 --- a/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-static-member/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-static-member/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures accessor-decorators accessor-decorator-static-member Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameter-whitespace-loc/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameter-whitespace-loc/snapshots/1-TSESTree-AST.shot index 5e87232cc312..36cf688cf9d9 100644 --- a/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameter-whitespace-loc/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameter-whitespace-loc/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures babylon-convergence type-parameter-whitespace-loc TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [89, 91], loc: { @@ -29,12 +29,13 @@ Program { end: { column: 10, line: 3 }, }, }, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameter-whitespace-loc/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameter-whitespace-loc/snapshots/2-TSESTree-Tokens.shot index 4e4fc36fd7d8..455c07c49abf 100644 --- a/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameter-whitespace-loc/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameter-whitespace-loc/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures babylon-convergence type-parameter-whitespace-loc TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameter-whitespace-loc/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameter-whitespace-loc/snapshots/3-Babel-AST.shot index 46314c48081c..499c812babf7 100644 --- a/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameter-whitespace-loc/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameter-whitespace-loc/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures babylon-convergence type-parameter-whitespace-loc Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [89, 91], loc: { @@ -29,10 +29,10 @@ Program { end: { column: 10, line: 3 }, }, }, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", diff --git a/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameter-whitespace-loc/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameter-whitespace-loc/snapshots/4-Babel-Tokens.shot index 9b1d8580e071..59e7d33ed2cd 100644 --- a/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameter-whitespace-loc/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameter-whitespace-loc/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures babylon-convergence type-parameter-whitespace-loc Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameter-whitespace-loc/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameter-whitespace-loc/snapshots/5-AST-Alignment-AST.shot index 546c2e3fa6b9..681409dd0ecb 100644 --- a/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameter-whitespace-loc/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameter-whitespace-loc/snapshots/5-AST-Alignment-AST.shot @@ -39,6 +39,7 @@ exports[`AST Fixtures legacy-fixtures babylon-convergence type-parameter-whitesp params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameters/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameters/snapshots/1-TSESTree-AST.shot index 7612bfb5dbd4..591f2b9207cf 100644 --- a/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameters/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameters/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures babylon-convergence type-parameters TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [113, 115], loc: { @@ -29,12 +29,13 @@ Program { end: { column: 10, line: 3 }, }, }, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, constraint: TSObjectKeyword { type: "TSObjectKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameters/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameters/snapshots/2-TSESTree-Tokens.shot index bb4be2d5a166..1b399cb9c897 100644 --- a/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameters/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameters/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures babylon-convergence type-parameters TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameters/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameters/snapshots/3-Babel-AST.shot index 469b031baa01..e95c8d12b9a7 100644 --- a/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameters/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameters/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures babylon-convergence type-parameters Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [113, 115], loc: { @@ -29,10 +29,10 @@ Program { end: { column: 10, line: 3 }, }, }, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", constraint: TSObjectKeyword { diff --git a/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameters/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameters/snapshots/4-Babel-Tokens.shot index 8dd452e83349..b323ab8b0044 100644 --- a/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameters/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameters/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures babylon-convergence type-parameters Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameters/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameters/snapshots/5-AST-Alignment-AST.shot index 6a4e1eb30bfd..2567fb6d1987 100644 --- a/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameters/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameters/snapshots/5-AST-Alignment-AST.shot @@ -39,6 +39,7 @@ exports[`AST Fixtures legacy-fixtures babylon-convergence type-parameters AST Al params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, constraint: TSObjectKeyword { type: 'TSObjectKeyword', diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/_error_/interface-with-construct-signature-with-parameter-accessibility/snapshots/2-Babel-Error.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/_error_/interface-with-construct-signature-with-parameter-accessibility/snapshots/2-Babel-Error.shot index 7fc98b33463b..824f587f17a3 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/_error_/interface-with-construct-signature-with-parameter-accessibility/snapshots/2-Babel-Error.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/_error_/interface-with-construct-signature-with-parameter-accessibility/snapshots/2-Babel-Error.shot @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures legacy-fixtures basics _error_ interface-with-construct-signature-with-parameter-accessibility Babel - Error 1`] = `[SyntaxError: Unexpected reserved word 'public'. (4:9)]`; +exports[`AST Fixtures legacy-fixtures basics _error_ interface-with-construct-signature-with-parameter-accessibility Babel - Error 1`] = `[SyntaxError: A parameter property is only allowed in a constructor implementation. (4:9)]`; diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-constructor/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-constructor/snapshots/1-TSESTree-AST.shot index aa816a04198d..517f8d05bce7 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-constructor/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-constructor/snapshots/1-TSESTree-AST.shot @@ -3,16 +3,16 @@ exports[`AST Fixtures legacy-fixtures basics abstract-class-with-abstract-constructor TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: ClassDeclaration { type: "ClassDeclaration", abstract: true, body: ClassBody { type: "ClassBody", - body: Array [ + body: [ TSAbstractMethodDefinition { type: "TSAbstractMethodDefinition", computed: false, @@ -36,7 +36,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [134, 137], loc: { @@ -79,7 +79,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [73, 139], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-constructor/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-constructor/snapshots/2-TSESTree-Tokens.shot index 0fe1f149d470..efedccbc0602 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-constructor/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-constructor/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics abstract-class-with-abstract-constructor TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-constructor/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-constructor/snapshots/3-Babel-AST.shot index 4e1deaea3741..a53c2df0e583 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-constructor/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-constructor/snapshots/3-Babel-AST.shot @@ -3,16 +3,16 @@ exports[`AST Fixtures legacy-fixtures basics abstract-class-with-abstract-constructor Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: ClassDeclaration { type: "ClassDeclaration", abstract: true, body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", abstract: true, @@ -35,7 +35,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [134, 137], loc: { @@ -78,7 +78,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [73, 139], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-constructor/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-constructor/snapshots/4-Babel-Tokens.shot index 8b7342e8d4d5..a495e97a9ca7 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-constructor/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-constructor/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics abstract-class-with-abstract-constructor Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-method/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-method/snapshots/1-TSESTree-AST.shot index f411fd3cb0b8..7f16295a0ea1 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-method/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-method/snapshots/1-TSESTree-AST.shot @@ -3,16 +3,16 @@ exports[`AST Fixtures legacy-fixtures basics abstract-class-with-abstract-method TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: ClassDeclaration { type: "ClassDeclaration", abstract: true, body: ClassBody { type: "ClassBody", - body: Array [ + body: [ TSAbstractMethodDefinition { type: "TSAbstractMethodDefinition", computed: false, @@ -36,7 +36,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSTypeReference { @@ -53,7 +53,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSStringKeyword { type: "TSStringKeyword", @@ -127,7 +127,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [73, 157], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-method/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-method/snapshots/2-TSESTree-Tokens.shot index 0044dfdcc7dd..8316b4efa72f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-method/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-method/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics abstract-class-with-abstract-method TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-method/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-method/snapshots/3-Babel-AST.shot index 84a50912b2cb..a21e1b958ac8 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-method/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-method/snapshots/3-Babel-AST.shot @@ -3,16 +3,16 @@ exports[`AST Fixtures legacy-fixtures basics abstract-class-with-abstract-method Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: ClassDeclaration { type: "ClassDeclaration", abstract: true, body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", abstract: true, @@ -35,7 +35,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSTypeReference { @@ -52,7 +52,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSStringKeyword { type: "TSStringKeyword", @@ -126,7 +126,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [73, 157], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-method/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-method/snapshots/4-Babel-Tokens.shot index a1d901e42b6a..af1134384d0e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-method/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-method/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics abstract-class-with-abstract-method Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-properties/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-properties/snapshots/1-TSESTree-AST.shot index e45b55218715..6c1840dc9e49 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-properties/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-properties/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics abstract-class-with-abstract-properties TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", abstract: true, body: ClassBody { type: "ClassBody", - body: Array [ + body: [ TSAbstractPropertyDefinition { type: "TSAbstractPropertyDefinition", computed: false, diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-properties/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-properties/snapshots/2-TSESTree-Tokens.shot index a7cb3e63512e..75055fdd364a 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-properties/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-properties/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics abstract-class-with-abstract-properties TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "abstract", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-properties/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-properties/snapshots/3-Babel-AST.shot index 4199e320c160..120d3e6f4da1 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-properties/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-properties/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics abstract-class-with-abstract-properties Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", abstract: true, body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", abstract: true, diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-properties/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-properties/snapshots/4-Babel-Tokens.shot index 6596246f5fc8..f8cc92ab834b 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-properties/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-properties/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics abstract-class-with-abstract-properties Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "abstract", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-readonly-property/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-readonly-property/snapshots/1-TSESTree-AST.shot index 7009559f1959..9fad85e674fc 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-readonly-property/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-readonly-property/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics abstract-class-with-abstract-readonly-property TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", abstract: true, body: ClassBody { type: "ClassBody", - body: Array [ + body: [ TSAbstractPropertyDefinition { type: "TSAbstractPropertyDefinition", accessibility: "public", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-readonly-property/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-readonly-property/snapshots/2-TSESTree-Tokens.shot index 50a61022fb9e..0f315a6d3c57 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-readonly-property/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-readonly-property/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics abstract-class-with-abstract-readonly-property TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "abstract", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-readonly-property/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-readonly-property/snapshots/3-Babel-AST.shot index 067dadfb4f67..e41c2e602b53 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-readonly-property/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-readonly-property/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics abstract-class-with-abstract-readonly-property Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", abstract: true, body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", abstract: true, diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-readonly-property/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-readonly-property/snapshots/4-Babel-Tokens.shot index 5b2e3fc49076..83b7c12f5ffa 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-readonly-property/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-readonly-property/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics abstract-class-with-abstract-readonly-property Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "abstract", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-declare-properties/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-declare-properties/snapshots/1-TSESTree-AST.shot index 63f3f0b3c812..fd55179386c5 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-declare-properties/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-declare-properties/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics abstract-class-with-declare-properties TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", abstract: true, body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-declare-properties/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-declare-properties/snapshots/2-TSESTree-Tokens.shot index 1ff78ec24fef..bcc7abf03879 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-declare-properties/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-declare-properties/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics abstract-class-with-declare-properties TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "abstract", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-declare-properties/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-declare-properties/snapshots/3-Babel-AST.shot index 292be075ff43..6e91463fe186 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-declare-properties/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-declare-properties/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics abstract-class-with-declare-properties Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", abstract: true, body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-declare-properties/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-declare-properties/snapshots/4-Babel-Tokens.shot index cb8c28aab234..409ca7d763a4 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-declare-properties/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-declare-properties/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics abstract-class-with-declare-properties Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "abstract", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-optional-method/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-optional-method/snapshots/1-TSESTree-AST.shot index bf982a1b42e9..36e577536e3b 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-optional-method/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-optional-method/snapshots/1-TSESTree-AST.shot @@ -3,16 +3,16 @@ exports[`AST Fixtures legacy-fixtures basics abstract-class-with-optional-method TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: ClassDeclaration { type: "ClassDeclaration", abstract: true, body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -37,7 +37,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSTypeReference { @@ -54,7 +54,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSStringKeyword { type: "TSStringKeyword", @@ -128,7 +128,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [73, 149], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-optional-method/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-optional-method/snapshots/2-TSESTree-Tokens.shot index db824384c033..9ff763466d4d 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-optional-method/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-optional-method/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics abstract-class-with-optional-method TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-optional-method/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-optional-method/snapshots/3-Babel-AST.shot index de5aa4e99ff2..74943973b227 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-optional-method/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-optional-method/snapshots/3-Babel-AST.shot @@ -3,16 +3,16 @@ exports[`AST Fixtures legacy-fixtures basics abstract-class-with-optional-method Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: ClassDeclaration { type: "ClassDeclaration", abstract: true, body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -35,7 +35,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSTypeReference { @@ -52,7 +52,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSStringKeyword { type: "TSStringKeyword", @@ -126,7 +126,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [73, 149], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-optional-method/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-optional-method/snapshots/4-Babel-Tokens.shot index 233bd41af226..d0761583772a 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-optional-method/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-optional-method/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics abstract-class-with-optional-method Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-override-method/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-override-method/snapshots/1-TSESTree-AST.shot index 47c5bb400fb1..a8f2d099a999 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-override-method/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-override-method/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics abstract-class-with-override-method TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", abstract: true, body: ClassBody { type: "ClassBody", - body: Array [ + body: [ TSAbstractMethodDefinition { type: "TSAbstractMethodDefinition", computed: false, @@ -33,7 +33,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [157, 160], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-override-method/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-override-method/snapshots/2-TSESTree-Tokens.shot index 811d4cceeffe..930eda649573 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-override-method/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-override-method/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics abstract-class-with-override-method TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "abstract", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-override-method/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-override-method/snapshots/3-Babel-AST.shot index 16dd3b36c6d8..d2be66b54adf 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-override-method/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-override-method/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics abstract-class-with-override-method Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", abstract: true, body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", abstract: true, @@ -33,7 +33,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [157, 160], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-override-method/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-override-method/snapshots/4-Babel-Tokens.shot index a597367b635f..d46bbd3cb428 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-override-method/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/abstract-class-with-override-method/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics abstract-class-with-override-method Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "abstract", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/angle-bracket-type-assertion-arrow-function/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/angle-bracket-type-assertion-arrow-function/snapshots/1-TSESTree-AST.shot index 9eecb615e5e2..66dc57f9ca40 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/angle-bracket-type-assertion-arrow-function/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/angle-bracket-type-assertion-arrow-function/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics angle-bracket-type-assertion-arrow-function TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -26,7 +26,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: Identifier { @@ -57,7 +57,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", name: "n", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/angle-bracket-type-assertion-arrow-function/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/angle-bracket-type-assertion-arrow-function/snapshots/2-TSESTree-Tokens.shot index 23c047001d96..c9ab158e4848 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/angle-bracket-type-assertion-arrow-function/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/angle-bracket-type-assertion-arrow-function/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics angle-bracket-type-assertion-arrow-function TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "var", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/angle-bracket-type-assertion-arrow-function/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/angle-bracket-type-assertion-arrow-function/snapshots/3-Babel-AST.shot index 997a20ea955c..6f660523523d 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/angle-bracket-type-assertion-arrow-function/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/angle-bracket-type-assertion-arrow-function/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics angle-bracket-type-assertion-arrow-function Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -26,7 +26,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: Identifier { @@ -57,7 +57,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", name: "n", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/angle-bracket-type-assertion-arrow-function/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/angle-bracket-type-assertion-arrow-function/snapshots/4-Babel-Tokens.shot index 6d649cb0c936..d28e4e957836 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/angle-bracket-type-assertion-arrow-function/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/angle-bracket-type-assertion-arrow-function/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics angle-bracket-type-assertion-arrow-function Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "var", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/angle-bracket-type-assertion/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/angle-bracket-type-assertion/snapshots/1-TSESTree-AST.shot index 3167e4026e4a..cfebc39d3f1f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/angle-bracket-type-assertion/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/angle-bracket-type-assertion/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics angle-bracket-type-assertion TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/angle-bracket-type-assertion/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/angle-bracket-type-assertion/snapshots/2-TSESTree-Tokens.shot index 7a0bd797f3b4..2373f079d79e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/angle-bracket-type-assertion/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/angle-bracket-type-assertion/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics angle-bracket-type-assertion TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "const", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/angle-bracket-type-assertion/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/angle-bracket-type-assertion/snapshots/3-Babel-AST.shot index 92bf012dcace..f8b94d0c2814 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/angle-bracket-type-assertion/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/angle-bracket-type-assertion/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics angle-bracket-type-assertion Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/angle-bracket-type-assertion/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/angle-bracket-type-assertion/snapshots/4-Babel-Tokens.shot index 4633c6f25a00..3f68bc80aa4f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/angle-bracket-type-assertion/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/angle-bracket-type-assertion/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics angle-bracket-type-assertion Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "const", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/arrow-function-with-optional-parameter/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/arrow-function-with-optional-parameter/snapshots/1-TSESTree-AST.shot index 0b5151cde876..f48e3a539804 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/arrow-function-with-optional-parameter/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/arrow-function-with-optional-parameter/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics arrow-function-with-optional-parameter TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: ArrowFunctionExpression { type: "ArrowFunctionExpression", async: false, @@ -46,7 +46,7 @@ Program { expression: true, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", name: "k", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/arrow-function-with-optional-parameter/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/arrow-function-with-optional-parameter/snapshots/2-TSESTree-Tokens.shot index 133cfeb42b53..2cd3120e406b 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/arrow-function-with-optional-parameter/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/arrow-function-with-optional-parameter/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics arrow-function-with-optional-parameter TSESTree - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/arrow-function-with-optional-parameter/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/arrow-function-with-optional-parameter/snapshots/3-Babel-AST.shot index 0bf8dcb3f303..b6cc60e29973 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/arrow-function-with-optional-parameter/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/arrow-function-with-optional-parameter/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics arrow-function-with-optional-parameter Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: ArrowFunctionExpression { type: "ArrowFunctionExpression", async: false, @@ -46,7 +46,7 @@ Program { expression: true, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", name: "k", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/arrow-function-with-optional-parameter/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/arrow-function-with-optional-parameter/snapshots/4-Babel-Tokens.shot index 7cfceefc108c..743715aeab06 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/arrow-function-with-optional-parameter/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/arrow-function-with-optional-parameter/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics arrow-function-with-optional-parameter Babel - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/arrow-function-with-type-parameters/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/arrow-function-with-type-parameters/snapshots/1-TSESTree-AST.shot index 788e721214b1..c86c5ea688a7 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/arrow-function-with-type-parameters/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/arrow-function-with-type-parameters/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics arrow-function-with-type-parameters TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ArrowFunctionExpression { @@ -11,7 +11,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: Identifier { @@ -42,7 +42,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", name: "b", @@ -112,9 +112,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/arrow-function-with-type-parameters/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/arrow-function-with-type-parameters/snapshots/2-TSESTree-Tokens.shot index 70e5c0a0be68..07d1f4dd05ac 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/arrow-function-with-type-parameters/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/arrow-function-with-type-parameters/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics arrow-function-with-type-parameters TSESTree - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "<", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/arrow-function-with-type-parameters/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/arrow-function-with-type-parameters/snapshots/3-Babel-AST.shot index 62ff9487e9c6..3b6a8f2beb7b 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/arrow-function-with-type-parameters/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/arrow-function-with-type-parameters/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics arrow-function-with-type-parameters Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ArrowFunctionExpression { @@ -11,7 +11,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: Identifier { @@ -42,7 +42,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", name: "b", @@ -112,7 +112,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "X", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/arrow-function-with-type-parameters/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/arrow-function-with-type-parameters/snapshots/4-Babel-Tokens.shot index 667f31ed28c8..c271d400c3dc 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/arrow-function-with-type-parameters/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/arrow-function-with-type-parameters/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics arrow-function-with-type-parameters Babel - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "<", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/arrow-function-with-type-parameters/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/arrow-function-with-type-parameters/snapshots/5-AST-Alignment-AST.shot index 0886302dddea..7f4ad90fdb0d 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/arrow-function-with-type-parameters/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/arrow-function-with-type-parameters/snapshots/5-AST-Alignment-AST.shot @@ -119,6 +119,7 @@ exports[`AST Fixtures legacy-fixtures basics arrow-function-with-type-parameters params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/async-function-expression/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/async-function-expression/snapshots/1-TSESTree-AST.shot index 07c9fd1f6ca8..a0bf4fc41ac5 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/async-function-expression/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/async-function-expression/snapshots/1-TSESTree-AST.shot @@ -3,18 +3,18 @@ exports[`AST Fixtures legacy-fixtures basics async-function-expression TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: FunctionExpression { type: "FunctionExpression", async: true, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [96, 98], loc: { @@ -34,7 +34,7 @@ Program { end: { column: 20, line: 3 }, }, }, - params: Array [], + params: [], range: [74, 98], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/async-function-expression/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/async-function-expression/snapshots/2-TSESTree-Tokens.shot index 11b1cc405730..613f02252a02 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/async-function-expression/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/async-function-expression/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics async-function-expression TSESTree - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/async-function-expression/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/async-function-expression/snapshots/3-Babel-AST.shot index bfb645c26069..cb4f975e80f9 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/async-function-expression/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/async-function-expression/snapshots/3-Babel-AST.shot @@ -3,18 +3,18 @@ exports[`AST Fixtures legacy-fixtures basics async-function-expression Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: FunctionExpression { type: "FunctionExpression", async: true, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [96, 98], loc: { @@ -34,7 +34,7 @@ Program { end: { column: 20, line: 3 }, }, }, - params: Array [], + params: [], range: [74, 98], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/async-function-expression/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/async-function-expression/snapshots/4-Babel-Tokens.shot index 2a3e9a4f5fba..2b959bb6aa56 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/async-function-expression/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/async-function-expression/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics async-function-expression Babel - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/async-function-with-var-declaration/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/async-function-with-var-declaration/snapshots/1-TSESTree-AST.shot index 57dd682e58bb..954ff56842f1 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/async-function-with-var-declaration/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/async-function-with-var-declaration/snapshots/1-TSESTree-AST.shot @@ -3,16 +3,16 @@ exports[`AST Fixtures legacy-fixtures basics async-function-with-var-declaration TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: true, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -54,7 +54,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -96,7 +96,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -156,7 +156,7 @@ Program { end: { column: 19, line: 3 }, }, }, - params: Array [], + params: [], range: [73, 163], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/async-function-with-var-declaration/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/async-function-with-var-declaration/snapshots/2-TSESTree-Tokens.shot index 1b378974aebe..cc217764ecfa 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/async-function-with-var-declaration/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/async-function-with-var-declaration/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics async-function-with-var-declaration TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "async", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/async-function-with-var-declaration/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/async-function-with-var-declaration/snapshots/3-Babel-AST.shot index f9b32160e431..75ecfc1145c8 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/async-function-with-var-declaration/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/async-function-with-var-declaration/snapshots/3-Babel-AST.shot @@ -3,16 +3,16 @@ exports[`AST Fixtures legacy-fixtures basics async-function-with-var-declaration Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: true, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -54,7 +54,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -96,7 +96,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -156,7 +156,7 @@ Program { end: { column: 19, line: 3 }, }, }, - params: Array [], + params: [], range: [73, 163], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/async-function-with-var-declaration/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/async-function-with-var-declaration/snapshots/4-Babel-Tokens.shot index 94857b09f73b..da7e9eb00e77 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/async-function-with-var-declaration/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/async-function-with-var-declaration/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics async-function-with-var-declaration Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "async", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/async-function-with-var-declaration/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/async-function-with-var-declaration/snapshots/6-AST-Alignment-Tokens.shot index a8dbcd1488b5..f38533842e11 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/async-function-with-var-declaration/snapshots/6-AST-Alignment-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/async-function-with-var-declaration/snapshots/6-AST-Alignment-Tokens.shot @@ -98,7 +98,7 @@ exports[`AST Fixtures legacy-fixtures basics async-function-with-var-declaration }, String { type: 'String', - value: '\\\\'foo\\\\'', + value: '\\'foo\\'', range: [109, 114], loc: { @@ -150,7 +150,7 @@ exports[`AST Fixtures legacy-fixtures basics async-function-with-var-declaration }, String { type: 'String', - value: '\\\\'bar\\\\'', + value: '\\'bar\\'', range: [128, 133], loc: { @@ -200,7 +200,7 @@ exports[`AST Fixtures legacy-fixtures basics async-function-with-var-declaration }, String { type: 'String', - value: '\\\\'fooBar\\\\'', + value: '\\'fooBar\\'', range: [152, 160], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/call-signatures-with-generics/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/call-signatures-with-generics/snapshots/1-TSESTree-AST.shot index 9346217d8e18..dae801b4eb5a 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/call-signatures-with-generics/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/call-signatures-with-generics/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics call-signatures-with-generics TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,10 +18,10 @@ Program { }, typeAnnotation: TSTypeLiteral { type: "TSTypeLiteral", - members: Array [ + members: [ TSCallSignatureDeclaration { type: "TSCallSignatureDeclaration", - params: Array [ + params: [ Identifier { type: "Identifier", name: "a", @@ -71,9 +71,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", @@ -110,7 +111,7 @@ Program { }, TSConstructSignatureDeclaration { type: "TSConstructSignatureDeclaration", - params: Array [ + params: [ Identifier { type: "Identifier", name: "a", @@ -160,9 +161,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/call-signatures-with-generics/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/call-signatures-with-generics/snapshots/2-TSESTree-Tokens.shot index 2b9331d217a3..90819bebdd2d 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/call-signatures-with-generics/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/call-signatures-with-generics/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics call-signatures-with-generics TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/call-signatures-with-generics/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/call-signatures-with-generics/snapshots/3-Babel-AST.shot index 43854edbc3d9..3e28dca8403c 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/call-signatures-with-generics/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/call-signatures-with-generics/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics call-signatures-with-generics Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,10 +18,10 @@ Program { }, typeAnnotation: TSTypeLiteral { type: "TSTypeLiteral", - members: Array [ + members: [ TSCallSignatureDeclaration { type: "TSCallSignatureDeclaration", - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "a", @@ -71,7 +71,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", @@ -99,7 +99,7 @@ Program { }, TSConstructSignatureDeclaration { type: "TSConstructSignatureDeclaration", - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "a", @@ -149,7 +149,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/call-signatures-with-generics/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/call-signatures-with-generics/snapshots/4-Babel-Tokens.shot index 84feb8e6214f..1b081044b014 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/call-signatures-with-generics/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/call-signatures-with-generics/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics call-signatures-with-generics Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/call-signatures-with-generics/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/call-signatures-with-generics/snapshots/5-AST-Alignment-AST.shot index 6a4db1dffed8..a60f0ce742c7 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/call-signatures-with-generics/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/call-signatures-with-generics/snapshots/5-AST-Alignment-AST.shot @@ -80,6 +80,7 @@ exports[`AST Fixtures legacy-fixtures basics call-signatures-with-generics AST A params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', @@ -172,6 +173,7 @@ exports[`AST Fixtures legacy-fixtures basics call-signatures-with-generics AST A params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/call-signatures/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/call-signatures/snapshots/1-TSESTree-AST.shot index 1ebb9dfa9a98..0add00e20a12 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/call-signatures/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/call-signatures/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics call-signatures TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,10 +18,10 @@ Program { }, typeAnnotation: TSTypeLiteral { type: "TSTypeLiteral", - members: Array [ + members: [ TSCallSignatureDeclaration { type: "TSCallSignatureDeclaration", - params: Array [ + params: [ Identifier { type: "Identifier", name: "a", @@ -78,7 +78,7 @@ Program { }, TSConstructSignatureDeclaration { type: "TSConstructSignatureDeclaration", - params: Array [ + params: [ Identifier { type: "Identifier", name: "a", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/call-signatures/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/call-signatures/snapshots/2-TSESTree-Tokens.shot index 8f6c22a07ddf..bc33f7252198 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/call-signatures/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/call-signatures/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics call-signatures TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/call-signatures/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/call-signatures/snapshots/3-Babel-AST.shot index aa4238d26722..119e9ea7c3d6 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/call-signatures/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/call-signatures/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics call-signatures Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,10 +18,10 @@ Program { }, typeAnnotation: TSTypeLiteral { type: "TSTypeLiteral", - members: Array [ + members: [ TSCallSignatureDeclaration { type: "TSCallSignatureDeclaration", - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "a", @@ -78,7 +78,7 @@ Program { }, TSConstructSignatureDeclaration { type: "TSConstructSignatureDeclaration", - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "a", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/call-signatures/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/call-signatures/snapshots/4-Babel-Tokens.shot index 0061fccc0d28..d3b4a4733fd6 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/call-signatures/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/call-signatures/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics call-signatures Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-expression/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-expression/snapshots/1-TSESTree-AST.shot index 14cfecc47487..2a7238338d75 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-expression/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-expression/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics cast-as-expression TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: TSAsExpression { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-expression/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-expression/snapshots/2-TSESTree-Tokens.shot index b7073ceb5e55..77ce834a71b7 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-expression/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-expression/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics cast-as-expression TSESTree - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-expression/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-expression/snapshots/3-Babel-AST.shot index b82b88923a0c..9b4b7805e37e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-expression/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-expression/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics cast-as-expression Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: TSAsExpression { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-expression/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-expression/snapshots/4-Babel-Tokens.shot index 612fa55ba1e4..1ca9b7ec861b 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-expression/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-expression/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics cast-as-expression Babel - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-multi-assign/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-multi-assign/snapshots/1-TSESTree-AST.shot index 2eda95a6440d..62a17423cc58 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-multi-assign/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-multi-assign/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics cast-as-multi-assign TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: AssignmentExpression { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-multi-assign/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-multi-assign/snapshots/2-TSESTree-Tokens.shot index d0ae2e1f2b67..31d2cc3503cc 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-multi-assign/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-multi-assign/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics cast-as-multi-assign TSESTree - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-multi-assign/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-multi-assign/snapshots/3-Babel-AST.shot index 24f702a558fa..f57ee53eff4c 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-multi-assign/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-multi-assign/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics cast-as-multi-assign Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: AssignmentExpression { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-multi-assign/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-multi-assign/snapshots/4-Babel-Tokens.shot index 478fef3d1b9e..0b4b4ea48af1 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-multi-assign/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-multi-assign/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics cast-as-multi-assign Babel - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-multi/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-multi/snapshots/1-TSESTree-AST.shot index 5f7a2d81d463..a5279df235df 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-multi/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-multi/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics cast-as-multi TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: TSAsExpression { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-multi/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-multi/snapshots/2-TSESTree-Tokens.shot index d3577e9d3485..b3be9993280c 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-multi/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-multi/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics cast-as-multi TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "x", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-multi/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-multi/snapshots/3-Babel-AST.shot index 1ec8e0d1cffd..20384ff0a8ec 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-multi/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-multi/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics cast-as-multi Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: TSAsExpression { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-multi/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-multi/snapshots/4-Babel-Tokens.shot index df53924bb180..bdf92cdfcb8c 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-multi/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-multi/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics cast-as-multi Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "x", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-operator/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-operator/snapshots/1-TSESTree-AST.shot index 68298b562770..d18ab49c7114 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-operator/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-operator/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics cast-as-operator TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: BinaryExpression { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-operator/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-operator/snapshots/2-TSESTree-Tokens.shot index adfc21caffee..606df4a5691e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-operator/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-operator/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics cast-as-operator TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "x", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-operator/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-operator/snapshots/3-Babel-AST.shot index 7f721cb0ad60..fff93bdf6b6c 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-operator/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-operator/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics cast-as-operator Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: BinaryExpression { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-operator/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-operator/snapshots/4-Babel-Tokens.shot index ad93ab5e4e3c..99287baf608a 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-operator/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-operator/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics cast-as-operator Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "x", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-simple/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-simple/snapshots/1-TSESTree-AST.shot index fc82bb51bf3d..94188993637b 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-simple/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-simple/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics cast-as-simple TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-simple/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-simple/snapshots/2-TSESTree-Tokens.shot index 6918498edd24..5db35e72e1ea 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-simple/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-simple/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics cast-as-simple TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "const", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-simple/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-simple/snapshots/3-Babel-AST.shot index 437d3cb4c482..1e97722eebfd 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-simple/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-simple/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics cast-as-simple Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-simple/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-simple/snapshots/4-Babel-Tokens.shot index ebaf4ef56a62..33e464809d47 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-simple/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/cast-as-simple/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics cast-as-simple Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "const", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/catch-clause-with-annotation/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/catch-clause-with-annotation/snapshots/1-TSESTree-AST.shot index 73031bf931ea..4fd32ac88511 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/catch-clause-with-annotation/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/catch-clause-with-annotation/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics catch-clause-with-annotation TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TryStatement { type: "TryStatement", block: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [77, 80], loc: { @@ -21,7 +21,7 @@ Program { type: "CatchClause", body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [96, 98], loc: { @@ -75,7 +75,7 @@ Program { type: "TryStatement", block: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [104, 107], loc: { @@ -88,7 +88,7 @@ Program { type: "CatchClause", body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [127, 129], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/catch-clause-with-annotation/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/catch-clause-with-annotation/snapshots/2-TSESTree-Tokens.shot index 1a64085c61ad..bc49829e8008 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/catch-clause-with-annotation/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/catch-clause-with-annotation/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics catch-clause-with-annotation TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "try", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/catch-clause-with-annotation/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/catch-clause-with-annotation/snapshots/3-Babel-AST.shot index af80c15438a6..a655322c9037 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/catch-clause-with-annotation/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/catch-clause-with-annotation/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics catch-clause-with-annotation Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TryStatement { type: "TryStatement", block: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [77, 80], loc: { @@ -21,7 +21,7 @@ Program { type: "CatchClause", body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [96, 98], loc: { @@ -75,7 +75,7 @@ Program { type: "TryStatement", block: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [104, 107], loc: { @@ -88,7 +88,7 @@ Program { type: "CatchClause", body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [127, 129], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/catch-clause-with-annotation/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/catch-clause-with-annotation/snapshots/4-Babel-Tokens.shot index 1afa55c534d0..2cb24973853b 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/catch-clause-with-annotation/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/catch-clause-with-annotation/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics catch-clause-with-annotation Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "try", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/catch-clause-with-invalid-annotation/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/catch-clause-with-invalid-annotation/snapshots/1-TSESTree-AST.shot index cf0a97d3afd6..dd4a2c148a61 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/catch-clause-with-invalid-annotation/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/catch-clause-with-invalid-annotation/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics catch-clause-with-invalid-annotation TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TryStatement { type: "TryStatement", block: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [77, 80], loc: { @@ -21,7 +21,7 @@ Program { type: "CatchClause", body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [99, 101], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/catch-clause-with-invalid-annotation/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/catch-clause-with-invalid-annotation/snapshots/2-TSESTree-Tokens.shot index 64d031e837ab..7868b5458b48 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/catch-clause-with-invalid-annotation/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/catch-clause-with-invalid-annotation/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics catch-clause-with-invalid-annotation TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "try", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/catch-clause-with-invalid-annotation/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/catch-clause-with-invalid-annotation/snapshots/3-Babel-AST.shot index 24860f593b80..201086a80c86 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/catch-clause-with-invalid-annotation/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/catch-clause-with-invalid-annotation/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics catch-clause-with-invalid-annotation Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TryStatement { type: "TryStatement", block: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [77, 80], loc: { @@ -21,7 +21,7 @@ Program { type: "CatchClause", body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [99, 101], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/catch-clause-with-invalid-annotation/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/catch-clause-with-invalid-annotation/snapshots/4-Babel-Tokens.shot index fd7fbaeb83c4..0a98eea94f7c 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/catch-clause-with-invalid-annotation/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/catch-clause-with-invalid-annotation/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics catch-clause-with-invalid-annotation Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "try", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-multi-line-keyword-abstract/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-multi-line-keyword-abstract/snapshots/1-TSESTree-AST.shot index 3b834e81c9b3..6658448bad02 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-multi-line-keyword-abstract/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-multi-line-keyword-abstract/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics class-multi-line-keyword-abstract TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: Identifier { @@ -27,7 +27,7 @@ Program { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [91, 93], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-multi-line-keyword-abstract/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-multi-line-keyword-abstract/snapshots/2-TSESTree-Tokens.shot index 7c7d30548d1c..23d691278bb1 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-multi-line-keyword-abstract/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-multi-line-keyword-abstract/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-multi-line-keyword-abstract TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "abstract", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-multi-line-keyword-abstract/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-multi-line-keyword-abstract/snapshots/3-Babel-AST.shot index 9aee98eac4f7..143cbfe33708 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-multi-line-keyword-abstract/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-multi-line-keyword-abstract/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics class-multi-line-keyword-abstract Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: Identifier { @@ -27,7 +27,7 @@ Program { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [91, 93], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-multi-line-keyword-abstract/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-multi-line-keyword-abstract/snapshots/4-Babel-Tokens.shot index 03f76889c5c7..01f1e6f22c77 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-multi-line-keyword-abstract/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-multi-line-keyword-abstract/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-multi-line-keyword-abstract Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "abstract", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-multi-line-keyword-declare/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-multi-line-keyword-declare/snapshots/1-TSESTree-AST.shot index d834afb0baea..cbb19722f691 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-multi-line-keyword-declare/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-multi-line-keyword-declare/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics class-multi-line-keyword-declare TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: Identifier { @@ -27,7 +27,7 @@ Program { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [90, 92], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-multi-line-keyword-declare/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-multi-line-keyword-declare/snapshots/2-TSESTree-Tokens.shot index 47994c5c658e..8d2e2a61e880 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-multi-line-keyword-declare/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-multi-line-keyword-declare/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-multi-line-keyword-declare TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-multi-line-keyword-declare/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-multi-line-keyword-declare/snapshots/3-Babel-AST.shot index f63de7acb5c0..176fb5cdccc8 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-multi-line-keyword-declare/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-multi-line-keyword-declare/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics class-multi-line-keyword-declare Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: Identifier { @@ -27,7 +27,7 @@ Program { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [90, 92], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-multi-line-keyword-declare/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-multi-line-keyword-declare/snapshots/4-Babel-Tokens.shot index 5d960db6b578..f747365210ee 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-multi-line-keyword-declare/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-multi-line-keyword-declare/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-multi-line-keyword-declare Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-private-identifier-field-with-annotation/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-private-identifier-field-with-annotation/snapshots/1-TSESTree-AST.shot index 798be99f4e43..9ecd4e561899 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-private-identifier-field-with-annotation/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-private-identifier-field-with-annotation/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-private-identifier-field-with-annotation TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, @@ -124,7 +124,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: AssignmentExpression { @@ -196,7 +196,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [139, 168], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-private-identifier-field-with-annotation/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-private-identifier-field-with-annotation/snapshots/2-TSESTree-Tokens.shot index c784225a6edb..98cdef4c56a0 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-private-identifier-field-with-annotation/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-private-identifier-field-with-annotation/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-private-identifier-field-with-annotation TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-private-identifier-field-with-annotation/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-private-identifier-field-with-annotation/snapshots/3-Babel-AST.shot index 061e9fb44c5d..a95da41c70c6 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-private-identifier-field-with-annotation/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-private-identifier-field-with-annotation/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-private-identifier-field-with-annotation Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, @@ -119,7 +119,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: AssignmentExpression { @@ -191,7 +191,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [139, 168], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-private-identifier-field-with-annotation/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-private-identifier-field-with-annotation/snapshots/4-Babel-Tokens.shot index 92ea3a454cd6..2e49a01b98f2 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-private-identifier-field-with-annotation/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-private-identifier-field-with-annotation/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-private-identifier-field-with-annotation Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-private-identifier-readonly-field/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-private-identifier-readonly-field/snapshots/1-TSESTree-AST.shot index eebfd0349f20..321258d559b0 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-private-identifier-readonly-field/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-private-identifier-readonly-field/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-private-identifier-readonly-field TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-private-identifier-readonly-field/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-private-identifier-readonly-field/snapshots/2-TSESTree-Tokens.shot index 557bd53d6473..539c5fcf9389 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-private-identifier-readonly-field/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-private-identifier-readonly-field/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-private-identifier-readonly-field TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-private-identifier-readonly-field/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-private-identifier-readonly-field/snapshots/3-Babel-AST.shot index 22d1bb0dffa5..a7118edf8b8f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-private-identifier-readonly-field/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-private-identifier-readonly-field/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-private-identifier-readonly-field Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-private-identifier-readonly-field/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-private-identifier-readonly-field/snapshots/4-Babel-Tokens.shot index c2d7cff7d771..bfdffe0dc5f2 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-private-identifier-readonly-field/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-private-identifier-readonly-field/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-private-identifier-readonly-field Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-static-blocks/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-static-blocks/snapshots/1-TSESTree-AST.shot index 6050bf68a3bb..3618d7741dc5 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-static-blocks/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-static-blocks/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-static-blocks TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, @@ -45,13 +45,13 @@ Program { }, StaticBlock { type: "StaticBlock", - body: Array [ + body: [ IfStatement { type: "IfStatement", alternate: null, consequent: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: UpdateExpression { @@ -92,7 +92,7 @@ Program { }, test: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "someCondition", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-static-blocks/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-static-blocks/snapshots/2-TSESTree-Tokens.shot index e7f4c131f645..89b4747d3a7d 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-static-blocks/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-static-blocks/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-static-blocks TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-static-blocks/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-static-blocks/snapshots/3-Babel-AST.shot index 276f3d2e7330..d99748b790da 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-static-blocks/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-static-blocks/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-static-blocks Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, @@ -43,13 +43,13 @@ Program { }, StaticBlock { type: "StaticBlock", - body: Array [ + body: [ IfStatement { type: "IfStatement", alternate: null, consequent: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: UpdateExpression { @@ -90,7 +90,7 @@ Program { }, test: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "someCondition", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-static-blocks/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-static-blocks/snapshots/4-Babel-Tokens.shot index e9c92b21d525..35454157cd22 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-static-blocks/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-static-blocks/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-static-blocks Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-accessibility-modifiers/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-accessibility-modifiers/snapshots/1-TSESTree-AST.shot index fac5f0ca998c..65e19032f445 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-accessibility-modifiers/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-accessibility-modifiers/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-accessibility-modifiers TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", accessibility: "private", @@ -117,7 +117,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: MemberExpression { @@ -168,7 +168,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [152, 181], loc: { @@ -205,7 +205,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: AssignmentExpression { @@ -276,7 +276,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", name: "bar", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-accessibility-modifiers/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-accessibility-modifiers/snapshots/2-TSESTree-Tokens.shot index e991db347272..eabef27db735 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-accessibility-modifiers/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-accessibility-modifiers/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-accessibility-modifiers TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-accessibility-modifiers/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-accessibility-modifiers/snapshots/3-Babel-AST.shot index 4dcb4e7870c8..1ebc4c3ef4d5 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-accessibility-modifiers/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-accessibility-modifiers/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-accessibility-modifiers Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", accessibility: "private", @@ -112,7 +112,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: MemberExpression { @@ -163,7 +163,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [152, 181], loc: { @@ -199,7 +199,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: AssignmentExpression { @@ -270,7 +270,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", name: "bar", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-accessibility-modifiers/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-accessibility-modifiers/snapshots/4-Babel-Tokens.shot index d80ee29186a4..d21a446bcf3f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-accessibility-modifiers/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-accessibility-modifiers/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-accessibility-modifiers Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-modifier/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-modifier/snapshots/1-TSESTree-AST.shot index e46d47826821..24585ee10914 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-modifier/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-modifier/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-constructor-and-modifier TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", accessibility: "protected", @@ -31,7 +31,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [109, 111], loc: { @@ -42,7 +42,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [106, 111], loc: { @@ -80,7 +80,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [140, 142], loc: { @@ -91,7 +91,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [137, 142], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-modifier/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-modifier/snapshots/2-TSESTree-Tokens.shot index d96bfb383f83..03f65f13d2cf 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-modifier/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-modifier/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-constructor-and-modifier TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-modifier/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-modifier/snapshots/3-Babel-AST.shot index df220da600e4..efdf7d99dc64 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-modifier/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-modifier/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-constructor-and-modifier Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", accessibility: "protected", @@ -30,7 +30,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [109, 111], loc: { @@ -41,7 +41,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [106, 111], loc: { @@ -78,7 +78,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [140, 142], loc: { @@ -89,7 +89,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [137, 142], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-modifier/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-modifier/snapshots/4-Babel-Tokens.shot index 9a96e5ad66f9..3c1cd9f10cc9 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-modifier/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-modifier/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-constructor-and-modifier Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-modifier/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-modifier/snapshots/5-AST-Alignment-AST.shot index 09565af57920..9c0ef5e4b1d0 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-modifier/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-modifier/snapshots/5-AST-Alignment-AST.shot @@ -67,7 +67,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-constructor-and-modifier computed: true, key: Literal { type: 'Literal', - raw: '\\\\'constructor\\\\'', + raw: '\\'constructor\\'', value: 'constructor', range: [123, 136], diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-modifier/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-modifier/snapshots/6-AST-Alignment-Tokens.shot index 16e6f938f8bf..0692eec5c9b4 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-modifier/snapshots/6-AST-Alignment-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-modifier/snapshots/6-AST-Alignment-Tokens.shot @@ -122,7 +122,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-constructor-and-modifier }, String { type: 'String', - value: '\\\\'constructor\\\\'', + value: '\\'constructor\\'', range: [123, 136], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-parameter-property-with-modifiers/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-parameter-property-with-modifiers/snapshots/1-TSESTree-AST.shot index a0d2cc8f0257..e225d3f8406c 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-parameter-property-with-modifiers/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-parameter-property-with-modifiers/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-constructor-and-parameter-property-with-modifiers TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -30,7 +30,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [181, 183], loc: { @@ -41,7 +41,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ TSParameterProperty { type: "TSParameterProperty", accessibility: "protected", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-parameter-property-with-modifiers/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-parameter-property-with-modifiers/snapshots/2-TSESTree-Tokens.shot index c2531333b8b3..369f9013fc1d 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-parameter-property-with-modifiers/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-parameter-property-with-modifiers/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-constructor-and-parameter-property-with-modifiers TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-parameter-property-with-modifiers/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-parameter-property-with-modifiers/snapshots/3-Babel-AST.shot index ad808d3b70fd..e8a9b46448a0 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-parameter-property-with-modifiers/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-parameter-property-with-modifiers/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-constructor-and-parameter-property-with-modifiers Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -29,7 +29,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [181, 183], loc: { @@ -40,7 +40,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ TSParameterProperty { type: "TSParameterProperty", accessibility: "protected", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-parameter-property-with-modifiers/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-parameter-property-with-modifiers/snapshots/4-Babel-Tokens.shot index 88dede1fdad0..55ef567bc7c4 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-parameter-property-with-modifiers/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-parameter-property-with-modifiers/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-constructor-and-parameter-property-with-modifiers Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-parameter-proptery-with-override-modifier/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-parameter-proptery-with-override-modifier/snapshots/1-TSESTree-AST.shot index c1328dc71165..eb888a48f10a 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-parameter-proptery-with-override-modifier/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-parameter-proptery-with-override-modifier/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-constructor-and-parameter-proptery-with-override-modifier TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -30,12 +30,12 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: Super { type: "Super", @@ -71,7 +71,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ TSParameterProperty { type: "TSParameterProperty", override: true, diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-parameter-proptery-with-override-modifier/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-parameter-proptery-with-override-modifier/snapshots/2-TSESTree-Tokens.shot index e20822e9dac3..76690e2a18c2 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-parameter-proptery-with-override-modifier/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-parameter-proptery-with-override-modifier/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-constructor-and-parameter-proptery-with-override-modifier TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-parameter-proptery-with-override-modifier/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-parameter-proptery-with-override-modifier/snapshots/3-Babel-AST.shot index 4c99c6346512..d741e4099480 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-parameter-proptery-with-override-modifier/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-parameter-proptery-with-override-modifier/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-constructor-and-parameter-proptery-with-override-modifier Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -29,12 +29,12 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: Super { type: "Super", @@ -70,7 +70,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ TSParameterProperty { type: "TSParameterProperty", override: true, diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-parameter-proptery-with-override-modifier/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-parameter-proptery-with-override-modifier/snapshots/4-Babel-Tokens.shot index 18e1e8d37a98..a3086606af66 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-parameter-proptery-with-override-modifier/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-parameter-proptery-with-override-modifier/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-constructor-and-parameter-proptery-with-override-modifier Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-return-type/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-return-type/snapshots/1-TSESTree-AST.shot index 8f34afd368c4..142fe9623167 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-return-type/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-return-type/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-constructor-and-return-type TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -30,7 +30,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [107, 109], loc: { @@ -41,7 +41,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSNumberKeyword { @@ -96,7 +96,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [139, 141], loc: { @@ -107,7 +107,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSNumberKeyword { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-return-type/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-return-type/snapshots/2-TSESTree-Tokens.shot index df074b887802..eec339c15eca 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-return-type/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-return-type/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-constructor-and-return-type TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-return-type/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-return-type/snapshots/3-Babel-AST.shot index d35c28cc3c2a..04c04b9de27b 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-return-type/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-return-type/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-constructor-and-return-type Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -29,7 +29,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [107, 109], loc: { @@ -40,7 +40,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSNumberKeyword { @@ -94,7 +94,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [139, 141], loc: { @@ -105,7 +105,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSNumberKeyword { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-return-type/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-return-type/snapshots/4-Babel-Tokens.shot index c2759421a4ed..0f0ac36300a0 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-return-type/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-return-type/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-constructor-and-return-type Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-return-type/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-return-type/snapshots/5-AST-Alignment-AST.shot index 6cb5474d6646..15311f586694 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-return-type/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-constructor-and-return-type/snapshots/5-AST-Alignment-AST.shot @@ -83,7 +83,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-constructor-and-return-t computed: true, key: Literal { type: 'Literal', - raw: '\\\\'constructor\\\\'', + raw: '\\'constructor\\'', value: 'constructor', range: [114, 127], diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-declare-properties/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-declare-properties/snapshots/1-TSESTree-AST.shot index ec98ef7f34f2..6f873dd95528 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-declare-properties/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-declare-properties/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-declare-properties TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-declare-properties/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-declare-properties/snapshots/2-TSESTree-Tokens.shot index 0cfcd64acdf2..4174a0236912 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-declare-properties/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-declare-properties/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-declare-properties TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-declare-properties/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-declare-properties/snapshots/3-Babel-AST.shot index 56654b6bdd2b..986e55f85e38 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-declare-properties/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-declare-properties/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-declare-properties Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-declare-properties/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-declare-properties/snapshots/4-Babel-Tokens.shot index 7fb590d56bbd..c68a21580bc8 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-declare-properties/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-declare-properties/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-declare-properties Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-definite-assignment/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-definite-assignment/snapshots/1-TSESTree-AST.shot index cb2932887fda..463c5cde7de3 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-definite-assignment/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-definite-assignment/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-definite-assignment TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-definite-assignment/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-definite-assignment/snapshots/2-TSESTree-Tokens.shot index 2e55263d9636..03767cb993cd 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-definite-assignment/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-definite-assignment/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-definite-assignment TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-definite-assignment/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-definite-assignment/snapshots/3-Babel-AST.shot index 57f31c5e2e6c..62558aefa8f2 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-definite-assignment/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-definite-assignment/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-definite-assignment Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-definite-assignment/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-definite-assignment/snapshots/4-Babel-Tokens.shot index 47e0fb38992b..e82cb950ff98 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-definite-assignment/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-definite-assignment/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-definite-assignment Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-and-implements/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-and-implements/snapshots/1-TSESTree-AST.shot index b2121f97ee83..52b855e69317 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-and-implements/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-and-implements/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-extends-and-implements TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [151, 153], loc: { @@ -26,7 +26,7 @@ Program { end: { column: 33, line: 3 }, }, }, - implements: Array [ + implements: [ TSClassImplements { type: "TSClassImplements", expression: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-and-implements/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-and-implements/snapshots/2-TSESTree-Tokens.shot index ebbad0721bee..29993bb89aa8 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-and-implements/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-and-implements/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-extends-and-implements TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-and-implements/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-and-implements/snapshots/3-Babel-AST.shot index 4f47cd3fcc58..d753b47c5e66 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-and-implements/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-and-implements/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-extends-and-implements Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [151, 153], loc: { @@ -26,7 +26,7 @@ Program { end: { column: 33, line: 3 }, }, }, - implements: Array [ + implements: [ TSExpressionWithTypeArguments { type: "TSExpressionWithTypeArguments", expression: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-and-implements/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-and-implements/snapshots/4-Babel-Tokens.shot index 91dbadd5059e..5cd6e8830004 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-and-implements/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-and-implements/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-extends-and-implements Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic-multiple/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic-multiple/snapshots/1-TSESTree-AST.shot index 3859f9dbe851..cdbec66bb972 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic-multiple/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic-multiple/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-extends-generic-multiple TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [114, 116], loc: { @@ -38,7 +38,7 @@ Program { }, superTypeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -87,9 +87,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, constraint: TSTypeReference { type: "TSTypeReference", typeName: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic-multiple/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic-multiple/snapshots/2-TSESTree-Tokens.shot index 207a40b6540c..71658083f6a4 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic-multiple/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic-multiple/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-extends-generic-multiple TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic-multiple/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic-multiple/snapshots/3-Babel-AST.shot index e621b5ec2139..90e352a2e1b2 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic-multiple/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic-multiple/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-extends-generic-multiple Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [114, 116], loc: { @@ -38,7 +38,7 @@ Program { }, superTypeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -87,7 +87,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", constraint: TSTypeReference { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic-multiple/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic-multiple/snapshots/4-Babel-Tokens.shot index 807fedabe1e3..6c20060b32f3 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic-multiple/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic-multiple/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-extends-generic-multiple Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic-multiple/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic-multiple/snapshots/5-AST-Alignment-AST.shot index 543de450f926..baf4e31b33b6 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic-multiple/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic-multiple/snapshots/5-AST-Alignment-AST.shot @@ -94,6 +94,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-extends-generic-multiple params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, constraint: TSTypeReference { type: 'TSTypeReference', typeName: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic/snapshots/1-TSESTree-AST.shot index 9251113d68d8..63825cb2349b 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-extends-generic TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [101, 103], loc: { @@ -38,7 +38,7 @@ Program { }, superTypeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -68,9 +68,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic/snapshots/2-TSESTree-Tokens.shot index 2c1fe4770f77..0b5f3982f338 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-extends-generic TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic/snapshots/3-Babel-AST.shot index 3436184a21b6..c4c30cee5c72 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-extends-generic Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [101, 103], loc: { @@ -38,7 +38,7 @@ Program { }, superTypeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -68,7 +68,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "A", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic/snapshots/4-Babel-Tokens.shot index 27177f46a80d..5de1c963af2e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-extends-generic Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic/snapshots/5-AST-Alignment-AST.shot index ac8187f43683..ac7c601b7ec5 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic/snapshots/5-AST-Alignment-AST.shot @@ -75,6 +75,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-extends-generic AST Alig params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method-default/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method-default/snapshots/1-TSESTree-AST.shot index b39f7d0995d2..b6e4b7f8e223 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method-default/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method-default/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-generic-method-default TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -30,7 +30,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [105, 107], loc: { @@ -41,12 +41,13 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, default: TSTypeReference { type: "TSTypeReference", typeName: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method-default/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method-default/snapshots/2-TSESTree-Tokens.shot index 24cd92f3b7c5..b3af5926a983 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method-default/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method-default/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-generic-method-default TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method-default/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method-default/snapshots/3-Babel-AST.shot index 205a2cde7ac2..6c0cf1bafc92 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method-default/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method-default/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-generic-method-default Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -29,7 +29,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [105, 107], loc: { @@ -40,10 +40,10 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", default: TSTypeReference { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method-default/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method-default/snapshots/4-Babel-Tokens.shot index ebddc84403a3..2d631f305c56 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method-default/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method-default/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-generic-method-default Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method-default/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method-default/snapshots/5-AST-Alignment-AST.shot index 72b1fa15c47e..e9e2c7244b24 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method-default/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method-default/snapshots/5-AST-Alignment-AST.shot @@ -51,6 +51,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-generic-method-default A params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, default: TSTypeReference { type: 'TSTypeReference', typeName: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method/snapshots/1-TSESTree-AST.shot index 4cb9045a5efb..6c852735c5a5 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-generic-method TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -30,7 +30,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [99, 101], loc: { @@ -41,12 +41,13 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method/snapshots/2-TSESTree-Tokens.shot index 5b37f7eea578..d84ea9284a21 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-generic-method TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method/snapshots/3-Babel-AST.shot index 18bc4df01884..ed22004aae73 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-generic-method Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -29,7 +29,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [99, 101], loc: { @@ -40,10 +40,10 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method/snapshots/4-Babel-Tokens.shot index 62db153af136..d6a60a428d68 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-generic-method Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method/snapshots/5-AST-Alignment-AST.shot index 6ec0c4dc7794..d823b4570e5f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method/snapshots/5-AST-Alignment-AST.shot @@ -51,6 +51,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-generic-method AST Align params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements-generic-multiple/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements-generic-multiple/snapshots/1-TSESTree-AST.shot index d8f94104032d..da2c200699aa 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements-generic-multiple/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements-generic-multiple/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-implements-generic-multiple TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [104, 106], loc: { @@ -26,7 +26,7 @@ Program { end: { column: 9, line: 3 }, }, }, - implements: Array [ + implements: [ TSClassImplements { type: "TSClassImplements", expression: Identifier { @@ -41,7 +41,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements-generic-multiple/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements-generic-multiple/snapshots/2-TSESTree-Tokens.shot index fa18b3f0c852..b6052ec42a8d 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements-generic-multiple/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements-generic-multiple/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-implements-generic-multiple TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements-generic-multiple/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements-generic-multiple/snapshots/3-Babel-AST.shot index af9a433f52df..f3497e6810c4 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements-generic-multiple/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements-generic-multiple/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-implements-generic-multiple Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [104, 106], loc: { @@ -26,7 +26,7 @@ Program { end: { column: 9, line: 3 }, }, }, - implements: Array [ + implements: [ TSExpressionWithTypeArguments { type: "TSExpressionWithTypeArguments", expression: Identifier { @@ -41,7 +41,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements-generic-multiple/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements-generic-multiple/snapshots/4-Babel-Tokens.shot index 2e7fe4c9ba17..181311333cc1 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements-generic-multiple/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements-generic-multiple/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-implements-generic-multiple Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements-generic/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements-generic/snapshots/1-TSESTree-AST.shot index 137d4920b364..f50ed36f9225 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements-generic/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements-generic/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-implements-generic TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [101, 103], loc: { @@ -26,7 +26,7 @@ Program { end: { column: 9, line: 3 }, }, }, - implements: Array [ + implements: [ TSClassImplements { type: "TSClassImplements", expression: Identifier { @@ -41,7 +41,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements-generic/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements-generic/snapshots/2-TSESTree-Tokens.shot index 8e38935390c5..2adbea4c681f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements-generic/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements-generic/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-implements-generic TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements-generic/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements-generic/snapshots/3-Babel-AST.shot index ee18de9e7b77..3c21dff26a74 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements-generic/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements-generic/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-implements-generic Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [101, 103], loc: { @@ -26,7 +26,7 @@ Program { end: { column: 9, line: 3 }, }, }, - implements: Array [ + implements: [ TSExpressionWithTypeArguments { type: "TSExpressionWithTypeArguments", expression: Identifier { @@ -41,7 +41,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements-generic/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements-generic/snapshots/4-Babel-Tokens.shot index 058890cf74d3..0d08e090f1d5 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements-generic/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements-generic/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-implements-generic Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements/snapshots/1-TSESTree-AST.shot index b2bb085367b8..9bf39dac1585 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-implements TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [98, 100], loc: { @@ -26,7 +26,7 @@ Program { end: { column: 9, line: 3 }, }, }, - implements: Array [ + implements: [ TSClassImplements { type: "TSClassImplements", expression: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements/snapshots/2-TSESTree-Tokens.shot index f5fa4af25814..2d3649f206e9 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-implements TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements/snapshots/3-Babel-AST.shot index 166d373388dd..1d8fc5666937 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-implements Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [98, 100], loc: { @@ -26,7 +26,7 @@ Program { end: { column: 9, line: 3 }, }, }, - implements: Array [ + implements: [ TSExpressionWithTypeArguments { type: "TSExpressionWithTypeArguments", expression: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements/snapshots/4-Babel-Tokens.shot index 0b3f0990c5a6..7c89c77a6f94 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-implements/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-implements Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-method/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-method/snapshots/1-TSESTree-AST.shot index d86b4174035c..86ecdb4e040b 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-method/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-method/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-method TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -30,7 +30,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [99, 101], loc: { @@ -41,7 +41,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSNumberKeyword { @@ -95,7 +95,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [113, 115], loc: { @@ -106,12 +106,13 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", @@ -174,7 +175,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [124, 126], loc: { @@ -185,7 +186,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [121, 126], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-method/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-method/snapshots/2-TSESTree-Tokens.shot index d77985007b4d..31695e4453e0 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-method/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-method/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-method TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-method/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-method/snapshots/3-Babel-AST.shot index 4eacbdf0c57d..8d24b104a5ea 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-method/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-method/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-method Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -29,7 +29,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [99, 101], loc: { @@ -40,7 +40,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSNumberKeyword { @@ -93,7 +93,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [113, 115], loc: { @@ -104,10 +104,10 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", @@ -160,7 +160,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [124, 126], loc: { @@ -171,7 +171,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [121, 126], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-method/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-method/snapshots/4-Babel-Tokens.shot index 81ca1b4a04ab..0c6516590095 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-method/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-method/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-method Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-method/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-method/snapshots/5-AST-Alignment-AST.shot index fa3122911f78..8b3757898e92 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-method/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-method/snapshots/5-AST-Alignment-AST.shot @@ -116,6 +116,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-method AST Alignment - A params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin-reference/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin-reference/snapshots/1-TSESTree-AST.shot index ab072a5f07b5..6b695ed3a9ee 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin-reference/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin-reference/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics class-with-mixin-reference TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [119, 121], loc: { @@ -29,7 +29,7 @@ Program { end: { column: 10, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "Base", @@ -71,9 +71,10 @@ Program { ], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, constraint: TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -88,7 +89,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin-reference/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin-reference/snapshots/2-TSESTree-Tokens.shot index 136f0b95fb78..1783eaf1df73 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin-reference/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin-reference/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-mixin-reference TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin-reference/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin-reference/snapshots/3-Babel-AST.shot index 3346d740c356..dc22e2b79bae 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin-reference/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin-reference/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics class-with-mixin-reference Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [119, 121], loc: { @@ -29,7 +29,7 @@ Program { end: { column: 10, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "Base", @@ -71,7 +71,7 @@ Program { ], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", constraint: TSTypeReference { @@ -88,7 +88,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin-reference/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin-reference/snapshots/4-Babel-Tokens.shot index 83e5e5733533..4772e5fbbdb5 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin-reference/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin-reference/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-mixin-reference Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin-reference/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin-reference/snapshots/5-AST-Alignment-AST.shot index 24ee207bc651..f215d2b9478e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin-reference/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin-reference/snapshots/5-AST-Alignment-AST.shot @@ -78,6 +78,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-mixin-reference AST Alig params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, constraint: TSTypeReference { type: 'TSTypeReference', typeName: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin/snapshots/1-TSESTree-AST.shot index 5a3bdce9ce18..e35887f92414 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin/snapshots/1-TSESTree-AST.shot @@ -3,20 +3,20 @@ exports[`AST Fixtures legacy-fixtures basics class-with-mixin TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: ClassExpression { type: "ClassExpression", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [150, 152], loc: { @@ -69,7 +69,7 @@ Program { end: { column: 10, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "Base", @@ -111,9 +111,10 @@ Program { ], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, constraint: TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -128,10 +129,10 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeLiteral { type: "TSTypeLiteral", - members: Array [], + members: [], range: [106, 108], loc: { @@ -192,7 +193,7 @@ Program { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [196, 198], loc: { @@ -210,7 +211,7 @@ Program { end: { column: 7, line: 7 }, }, }, - implements: Array [ + implements: [ TSClassImplements { type: "TSClassImplements", expression: Identifier { @@ -233,7 +234,7 @@ Program { ], superClass: CallExpression { type: "CallExpression", - arguments: Array [ + arguments: [ Identifier { type: "Identifier", name: "C", @@ -258,7 +259,7 @@ Program { optional: false, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSAnyKeyword { type: "TSAnyKeyword", @@ -294,7 +295,7 @@ Program { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [208, 210], loc: { @@ -324,7 +325,7 @@ Program { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [223, 225], loc: { @@ -364,7 +365,7 @@ Program { typeAnnotation: TSConstructorType { type: "TSConstructorType", abstract: false, - params: Array [ + params: [ RestElement { type: "RestElement", argument: Identifier { @@ -449,9 +450,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin/snapshots/2-TSESTree-Tokens.shot index b4ccdf578dbb..88b90006fdde 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-mixin TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin/snapshots/3-Babel-AST.shot index c1653cb98b1a..aaee7d6ab16a 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin/snapshots/3-Babel-AST.shot @@ -3,20 +3,20 @@ exports[`AST Fixtures legacy-fixtures basics class-with-mixin Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: ClassExpression { type: "ClassExpression", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [150, 152], loc: { @@ -69,7 +69,7 @@ Program { end: { column: 10, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "Base", @@ -111,7 +111,7 @@ Program { ], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", constraint: TSTypeReference { @@ -128,10 +128,10 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeLiteral { type: "TSTypeLiteral", - members: Array [], + members: [], range: [106, 108], loc: { @@ -181,7 +181,7 @@ Program { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [196, 198], loc: { @@ -199,7 +199,7 @@ Program { end: { column: 7, line: 7 }, }, }, - implements: Array [ + implements: [ TSExpressionWithTypeArguments { type: "TSExpressionWithTypeArguments", expression: Identifier { @@ -222,7 +222,7 @@ Program { ], superClass: CallExpression { type: "CallExpression", - arguments: Array [ + arguments: [ Identifier { type: "Identifier", name: "C", @@ -247,7 +247,7 @@ Program { optional: false, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSAnyKeyword { type: "TSAnyKeyword", @@ -283,7 +283,7 @@ Program { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [208, 210], loc: { @@ -313,7 +313,7 @@ Program { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [223, 225], loc: { @@ -353,7 +353,7 @@ Program { typeAnnotation: TSConstructorType { type: "TSConstructorType", abstract: false, - parameters: Array [ + parameters: [ RestElement { type: "RestElement", argument: Identifier { @@ -438,7 +438,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin/snapshots/4-Babel-Tokens.shot index 68a1e7bce3d0..5bd4c2c5067c 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-mixin Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin/snapshots/5-AST-Alignment-AST.shot index 8801f524ccc5..b113f663f51f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin/snapshots/5-AST-Alignment-AST.shot @@ -118,6 +118,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-mixin AST Alignment - AS params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, constraint: TSTypeReference { type: 'TSTypeReference', typeName: Identifier { @@ -461,6 +462,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-mixin AST Alignment - AS params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-method/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-method/snapshots/1-TSESTree-AST.shot index 04e6998c422d..8763d72bcca4 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-method/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-method/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics class-with-optional-computed-method TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -48,7 +48,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -90,7 +90,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -105,7 +105,7 @@ Program { }, init: ObjectExpression { type: "ObjectExpression", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -202,7 +202,7 @@ Program { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: true, @@ -227,7 +227,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [208, 211], loc: { @@ -264,7 +264,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [229, 231], loc: { @@ -275,7 +275,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [226, 231], loc: { @@ -315,7 +315,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [238, 241], loc: { @@ -353,7 +353,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [251, 253], loc: { @@ -364,7 +364,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [248, 253], loc: { @@ -404,7 +404,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [269, 272], loc: { @@ -442,7 +442,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [291, 293], loc: { @@ -453,7 +453,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [288, 293], loc: { @@ -511,7 +511,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [312, 314], loc: { @@ -522,7 +522,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [309, 314], loc: { @@ -582,7 +582,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [331, 334], loc: { @@ -602,7 +602,7 @@ Program { computed: true, key: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "f", @@ -630,7 +630,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [346, 348], loc: { @@ -641,7 +641,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [343, 348], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-method/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-method/snapshots/2-TSESTree-Tokens.shot index 0678a3df7098..bf477af53fd4 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-method/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-method/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-optional-computed-method TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "const", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-method/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-method/snapshots/3-Babel-AST.shot index 0d0768747ef0..f5630fe1027a 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-method/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-method/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics class-with-optional-computed-method Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -48,7 +48,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -90,7 +90,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -105,7 +105,7 @@ Program { }, init: ObjectExpression { type: "ObjectExpression", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -202,7 +202,7 @@ Program { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: true, @@ -225,7 +225,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [208, 211], loc: { @@ -261,7 +261,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [229, 231], loc: { @@ -272,7 +272,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [226, 231], loc: { @@ -310,7 +310,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [238, 241], loc: { @@ -347,7 +347,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [251, 253], loc: { @@ -358,7 +358,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [248, 253], loc: { @@ -396,7 +396,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [269, 272], loc: { @@ -433,7 +433,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [291, 293], loc: { @@ -444,7 +444,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [288, 293], loc: { @@ -501,7 +501,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [312, 314], loc: { @@ -512,7 +512,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [309, 314], loc: { @@ -570,7 +570,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [331, 334], loc: { @@ -590,7 +590,7 @@ Program { computed: true, key: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "f", @@ -617,7 +617,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [346, 348], loc: { @@ -628,7 +628,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [343, 348], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-method/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-method/snapshots/4-Babel-Tokens.shot index 703dad7d5e62..be5131563e2f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-method/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-method/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-optional-computed-method Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "const", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-method/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-method/snapshots/5-AST-Alignment-AST.shot index 0adc9129ec5d..e142bb454dc6 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-method/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-method/snapshots/5-AST-Alignment-AST.shot @@ -25,7 +25,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-optional-computed-method }, init: Literal { type: 'Literal', - raw: '\\\\'buzz\\\\'', + raw: '\\'buzz\\'', value: 'buzz', range: [91, 97], @@ -67,7 +67,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-optional-computed-method }, init: Literal { type: 'Literal', - raw: '\\\\'bazz\\\\'', + raw: '\\'bazz\\'', value: 'bazz', range: [117, 123], @@ -128,7 +128,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-optional-computed-method shorthand: false, value: Literal { type: 'Literal', - raw: '\\\\'member\\\\'', + raw: '\\'member\\'', value: 'member', range: [149, 157], @@ -162,7 +162,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-optional-computed-method shorthand: false, value: Literal { type: 'Literal', - raw: '\\\\'member2\\\\'', + raw: '\\'member2\\'', value: 'member2', range: [170, 179], @@ -392,7 +392,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-optional-computed-method computed: true, key: Literal { type: 'Literal', - raw: '\\\\'literal1\\\\'', + raw: '\\'literal1\\'', value: 'literal1', range: [257, 267], @@ -434,7 +434,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-optional-computed-method computed: true, key: Literal { type: 'Literal', - raw: '\\\\'literal2\\\\'', + raw: '\\'literal2\\'', value: 'literal2', range: [276, 286], diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-property/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-property/snapshots/1-TSESTree-AST.shot index 86bb58bff3ca..1443a0bda66c 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-property/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-property/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-optional-computed-property TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", accessibility: "private", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-property/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-property/snapshots/2-TSESTree-Tokens.shot index e2b859392af9..8722495591ee 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-property/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-property/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-optional-computed-property TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-property/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-property/snapshots/3-Babel-AST.shot index d103b93133b4..71ed2eb19f0f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-property/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-property/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-optional-computed-property Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", accessibility: "private", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-property/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-property/snapshots/4-Babel-Tokens.shot index e2f50b5e0c9e..fa7fd8e06381 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-property/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-property/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-optional-computed-property Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-property/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-property/snapshots/5-AST-Alignment-AST.shot index f12e57a2e68b..27d8a0ad1e4a 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-property/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-property/snapshots/5-AST-Alignment-AST.shot @@ -20,7 +20,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-optional-computed-proper - declare: false, key: Literal { type: 'Literal', - raw: '\\\\'foo\\\\'', + raw: '\\'foo\\'', value: 'foo', range: [94, 99], diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-property/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-property/snapshots/6-AST-Alignment-Tokens.shot index 9c2e0ad06a1d..72e8af23eb9d 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-property/snapshots/6-AST-Alignment-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-computed-property/snapshots/6-AST-Alignment-Tokens.shot @@ -60,7 +60,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-optional-computed-proper }, String { type: 'String', - value: '\\\\'foo\\\\'', + value: '\\'foo\\'', range: [94, 99], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-methods/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-methods/snapshots/1-TSESTree-AST.shot index fe3c85982bf9..f5565827c154 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-methods/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-methods/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-optional-methods TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -33,7 +33,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [91, 94], loc: { @@ -72,7 +72,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSStringKeyword { @@ -130,7 +130,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSStringKeyword { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-methods/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-methods/snapshots/2-TSESTree-Tokens.shot index 7e27407053eb..8a971ea52a1c 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-methods/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-methods/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-optional-methods TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-methods/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-methods/snapshots/3-Babel-AST.shot index 4c638ba2c7a8..5985765598f8 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-methods/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-methods/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-optional-methods Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -31,7 +31,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [91, 94], loc: { @@ -68,7 +68,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSStringKeyword { @@ -124,7 +124,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSStringKeyword { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-methods/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-methods/snapshots/4-Babel-Tokens.shot index 70c78b57b9a9..69fe0fc0bb49 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-methods/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-methods/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-optional-methods Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-properties/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-properties/snapshots/1-TSESTree-AST.shot index 7a053a8b1af1..22254044fb91 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-properties/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-properties/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics class-with-optional-properties TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -48,7 +48,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -92,7 +92,7 @@ Program { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-properties/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-properties/snapshots/2-TSESTree-Tokens.shot index b42176fc680d..68609cf957d6 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-properties/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-properties/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-optional-properties TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "const", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-properties/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-properties/snapshots/3-Babel-AST.shot index f8fd559f9844..d5ede06c7824 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-properties/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-properties/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics class-with-optional-properties Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -48,7 +48,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -92,7 +92,7 @@ Program { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-properties/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-properties/snapshots/4-Babel-Tokens.shot index 62dfc7488724..f5f3fb28165a 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-properties/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-properties/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-optional-properties Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "const", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-properties/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-properties/snapshots/5-AST-Alignment-AST.shot index 12a4a2288c9e..47aa2d089f30 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-properties/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-properties/snapshots/5-AST-Alignment-AST.shot @@ -25,7 +25,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-optional-properties AST }, init: Literal { type: 'Literal', - raw: '\\\\'buzz\\\\'', + raw: '\\'buzz\\'', value: 'buzz', range: [90, 96], @@ -67,7 +67,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-optional-properties AST }, init: Literal { type: 'Literal', - raw: '\\\\'bazz\\\\'', + raw: '\\'bazz\\'', value: 'bazz', range: [116, 122], @@ -240,7 +240,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-optional-properties AST - declare: false, key: Literal { type: 'Literal', - raw: '\\\\'literal\\\\'', + raw: '\\'literal\\'', value: 'literal', range: [202, 211], @@ -335,7 +335,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-optional-properties AST - declare: false, key: Literal { type: 'Literal', - raw: '\\\\'literal2\\\\'', + raw: '\\'literal2\\'', value: 'literal2', range: [250, 260], diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-properties/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-properties/snapshots/6-AST-Alignment-Tokens.shot index d45dfc7be1ad..c3b5a48feabd 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-properties/snapshots/6-AST-Alignment-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-properties/snapshots/6-AST-Alignment-Tokens.shot @@ -38,7 +38,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-optional-properties AST }, String { type: 'String', - value: '\\\\'buzz\\\\'', + value: '\\'buzz\\'', range: [90, 96], loc: { @@ -88,7 +88,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-optional-properties AST }, String { type: 'String', - value: '\\\\'bazz\\\\'', + value: '\\'bazz\\'', range: [116, 122], loc: { @@ -340,7 +340,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-optional-properties AST }, String { type: 'String', - value: '\\\\'literal\\\\'', + value: '\\'literal\\'', range: [202, 211], loc: { @@ -510,7 +510,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-optional-properties AST }, String { type: 'String', - value: '\\\\'literal2\\\\'', + value: '\\'literal2\\'', range: [250, 260], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-property-undefined/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-property-undefined/snapshots/1-TSESTree-AST.shot index cf99a1d0ba5b..6abdce915ee9 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-property-undefined/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-property-undefined/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-optional-property-undefined TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", accessibility: "private", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-property-undefined/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-property-undefined/snapshots/2-TSESTree-Tokens.shot index 3cd5819e3828..a7c09ee16ffb 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-property-undefined/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-property-undefined/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-optional-property-undefined TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-property-undefined/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-property-undefined/snapshots/3-Babel-AST.shot index 4dd7a48b6bc9..e9cd62b06d1a 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-property-undefined/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-property-undefined/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-optional-property-undefined Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", accessibility: "private", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-property-undefined/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-property-undefined/snapshots/4-Babel-Tokens.shot index 8f58ab3d0add..0409ca0e6795 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-property-undefined/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-optional-property-undefined/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-optional-property-undefined Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-override-method/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-override-method/snapshots/1-TSESTree-AST.shot index 2d3330021e78..6c360848e819 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-override-method/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-override-method/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-override-method TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -30,7 +30,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [142, 158], loc: { @@ -41,7 +41,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [139, 158], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-override-method/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-override-method/snapshots/2-TSESTree-Tokens.shot index f1a7bc7261c4..ed5d574ecf71 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-override-method/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-override-method/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-override-method TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-override-method/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-override-method/snapshots/3-Babel-AST.shot index 0bed820fe9bd..ebe48afbbc7b 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-override-method/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-override-method/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-override-method Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -30,7 +30,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [142, 158], loc: { @@ -41,7 +41,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [139, 158], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-override-method/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-override-method/snapshots/4-Babel-Tokens.shot index 9264f2956366..e47882472635 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-override-method/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-override-method/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-override-method Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-override-property/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-override-property/snapshots/1-TSESTree-AST.shot index 38719494d527..61da284abee9 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-override-property/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-override-property/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-override-property TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-override-property/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-override-property/snapshots/2-TSESTree-Tokens.shot index ade6e1d26445..1c3340a08b3f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-override-property/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-override-property/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-override-property TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-override-property/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-override-property/snapshots/3-Babel-AST.shot index 3e2b08e1510c..5dbc83133448 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-override-property/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-override-property/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-override-property Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-override-property/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-override-property/snapshots/4-Babel-Tokens.shot index 1ef96afa3e5e..637e18c4a749 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-override-property/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-override-property/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-override-property Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-optional-property/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-optional-property/snapshots/1-TSESTree-AST.shot index c6c2cfcc51b7..2345a59e2458 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-optional-property/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-optional-property/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-private-optional-property TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-optional-property/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-optional-property/snapshots/2-TSESTree-Tokens.shot index b5f775eb21b8..68909fef6fc8 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-optional-property/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-optional-property/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-private-optional-property TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-optional-property/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-optional-property/snapshots/3-Babel-AST.shot index 50dd62a7ed81..b0a88f8f209e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-optional-property/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-optional-property/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-private-optional-property Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-optional-property/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-optional-property/snapshots/4-Babel-Tokens.shot index 0d555a483736..f3a10a1790d6 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-optional-property/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-optional-property/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-private-optional-property Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-optional-property/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-optional-property/snapshots/5-AST-Alignment-AST.shot index a6626a650842..74230c6766ad 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-optional-property/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-optional-property/snapshots/5-AST-Alignment-AST.shot @@ -93,7 +93,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-private-optional-propert }, value: Literal { type: 'Literal', - raw: '\\\\'\\\\'', + raw: '\\'\\'', value: '', range: [139, 141], @@ -128,7 +128,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-private-optional-propert static: false, value: Literal { type: 'Literal', - raw: '\\\\'\\\\'', + raw: '\\'\\'', value: '', range: [171, 173], diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-optional-property/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-optional-property/snapshots/6-AST-Alignment-Tokens.shot index 1409ad0e303e..61fd6390f3e5 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-optional-property/snapshots/6-AST-Alignment-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-optional-property/snapshots/6-AST-Alignment-Tokens.shot @@ -144,7 +144,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-private-optional-propert }, String { type: 'String', - value: '\\\\'\\\\'', + value: '\\'\\'', range: [139, 141], loc: { @@ -197,7 +197,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-private-optional-propert }, String { type: 'String', - value: '\\\\'\\\\'', + value: '\\'\\'', range: [171, 173], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-parameter-properties/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-parameter-properties/snapshots/1-TSESTree-AST.shot index fb43fe5900ed..cc50481ad32d 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-parameter-properties/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-parameter-properties/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-private-parameter-properties TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -30,7 +30,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [251, 253], loc: { @@ -41,7 +41,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ TSParameterProperty { type: "TSParameterProperty", accessibility: "private", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-parameter-properties/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-parameter-properties/snapshots/2-TSESTree-Tokens.shot index 198c29e2f3d2..cbe55641c6f7 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-parameter-properties/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-parameter-properties/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-private-parameter-properties TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-parameter-properties/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-parameter-properties/snapshots/3-Babel-AST.shot index b6dff80a0b25..d68f59c04f19 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-parameter-properties/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-parameter-properties/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-private-parameter-properties Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -29,7 +29,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [251, 253], loc: { @@ -40,7 +40,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ TSParameterProperty { type: "TSParameterProperty", accessibility: "private", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-parameter-properties/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-parameter-properties/snapshots/4-Babel-Tokens.shot index 2aa7ab10e028..f29d3fb9f8aa 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-parameter-properties/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-private-parameter-properties/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-private-parameter-properties Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-property-function/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-property-function/snapshots/1-TSESTree-AST.shot index d8a5df9e1066..08731622aee7 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-property-function/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-property-function/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-property-function TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, @@ -29,7 +29,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSFunctionType { type: "TSFunctionType", - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSBooleanKeyword { @@ -79,7 +79,7 @@ Program { expression: true, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSBooleanKeyword { @@ -162,7 +162,7 @@ Program { expression: true, generator: false, id: null, - params: Array [], + params: [], range: [145, 155], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-property-function/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-property-function/snapshots/2-TSESTree-Tokens.shot index afcc681d20e2..895bdf29b500 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-property-function/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-property-function/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-property-function TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-property-function/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-property-function/snapshots/3-Babel-AST.shot index 83dd54375210..67d559a1e58a 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-property-function/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-property-function/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-property-function Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, @@ -27,7 +27,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSFunctionType { type: "TSFunctionType", - parameters: Array [], + parameters: [], typeAnnotation: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSBooleanKeyword { @@ -77,7 +77,7 @@ Program { expression: true, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSBooleanKeyword { @@ -158,7 +158,7 @@ Program { expression: true, generator: false, id: null, - params: Array [], + params: [], range: [145, 155], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-property-function/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-property-function/snapshots/4-Babel-Tokens.shot index 265666ad43d1..9169ecbff0ac 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-property-function/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-property-function/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-property-function Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-property-values/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-property-values/snapshots/1-TSESTree-AST.shot index adc96878555d..8c99f343cb7c 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-property-values/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-property-values/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-property-values TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, @@ -61,7 +61,7 @@ Program { static: false, value: ObjectExpression { type: "ObjectExpression", - properties: Array [], + properties: [], range: [100, 102], loc: { @@ -94,7 +94,7 @@ Program { static: false, value: ArrayExpression { type: "ArrayExpression", - elements: Array [], + elements: [], range: [110, 112], loc: { @@ -161,13 +161,13 @@ Program { static: false, value: NewExpression { type: "NewExpression", - arguments: Array [ + arguments: [ ArrayExpression { type: "ArrayExpression", - elements: Array [ + elements: [ ObjectExpression { type: "ObjectExpression", - properties: Array [], + properties: [], range: [141, 143], loc: { @@ -177,7 +177,7 @@ Program { }, ArrayExpression { type: "ArrayExpression", - elements: Array [], + elements: [], range: [145, 147], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-property-values/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-property-values/snapshots/2-TSESTree-Tokens.shot index de954acbb68e..4c70ad206fd7 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-property-values/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-property-values/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-property-values TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-property-values/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-property-values/snapshots/3-Babel-AST.shot index 53f84272910a..f16c10ba226c 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-property-values/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-property-values/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-property-values Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, @@ -57,7 +57,7 @@ Program { static: false, value: ObjectExpression { type: "ObjectExpression", - properties: Array [], + properties: [], range: [100, 102], loc: { @@ -88,7 +88,7 @@ Program { static: false, value: ArrayExpression { type: "ArrayExpression", - elements: Array [], + elements: [], range: [110, 112], loc: { @@ -151,13 +151,13 @@ Program { static: false, value: NewExpression { type: "NewExpression", - arguments: Array [ + arguments: [ ArrayExpression { type: "ArrayExpression", - elements: Array [ + elements: [ ObjectExpression { type: "ObjectExpression", - properties: Array [], + properties: [], range: [141, 143], loc: { @@ -167,7 +167,7 @@ Program { }, ArrayExpression { type: "ArrayExpression", - elements: Array [], + elements: [], range: [145, 147], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-property-values/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-property-values/snapshots/4-Babel-Tokens.shot index 45bd699a0dbc..1053d9712edb 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-property-values/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-property-values/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-property-values Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-property-values/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-property-values/snapshots/5-AST-Alignment-AST.shot index 79808b9eccfd..2994f248b8dd 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-property-values/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-property-values/snapshots/5-AST-Alignment-AST.shot @@ -131,7 +131,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-property-values AST Alig static: false, value: Literal { type: 'Literal', - raw: '\\\\'\\\\'', + raw: '\\'\\'', value: '', range: [120, 122], diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-protected-parameter-properties/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-protected-parameter-properties/snapshots/1-TSESTree-AST.shot index 39118591b249..08f9c25204a9 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-protected-parameter-properties/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-protected-parameter-properties/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-protected-parameter-properties TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -30,7 +30,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [259, 261], loc: { @@ -41,7 +41,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ TSParameterProperty { type: "TSParameterProperty", accessibility: "protected", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-protected-parameter-properties/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-protected-parameter-properties/snapshots/2-TSESTree-Tokens.shot index 7fbb2260d8e6..63443890edd1 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-protected-parameter-properties/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-protected-parameter-properties/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-protected-parameter-properties TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-protected-parameter-properties/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-protected-parameter-properties/snapshots/3-Babel-AST.shot index 67dddc7f2027..7f199f992196 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-protected-parameter-properties/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-protected-parameter-properties/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-protected-parameter-properties Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -29,7 +29,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [259, 261], loc: { @@ -40,7 +40,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ TSParameterProperty { type: "TSParameterProperty", accessibility: "protected", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-protected-parameter-properties/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-protected-parameter-properties/snapshots/4-Babel-Tokens.shot index 818ce810d061..942283a210bd 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-protected-parameter-properties/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-protected-parameter-properties/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-protected-parameter-properties Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-public-parameter-properties/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-public-parameter-properties/snapshots/1-TSESTree-AST.shot index bcc00df90c95..8730d2fe21c4 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-public-parameter-properties/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-public-parameter-properties/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-public-parameter-properties TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -30,7 +30,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [247, 249], loc: { @@ -41,7 +41,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ TSParameterProperty { type: "TSParameterProperty", accessibility: "public", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-public-parameter-properties/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-public-parameter-properties/snapshots/2-TSESTree-Tokens.shot index 814d0ebc1988..090a96a09f10 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-public-parameter-properties/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-public-parameter-properties/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-public-parameter-properties TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-public-parameter-properties/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-public-parameter-properties/snapshots/3-Babel-AST.shot index 799c8f31d2d3..d47a3a2ac972 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-public-parameter-properties/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-public-parameter-properties/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-public-parameter-properties Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -29,7 +29,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [247, 249], loc: { @@ -40,7 +40,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ TSParameterProperty { type: "TSParameterProperty", accessibility: "public", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-public-parameter-properties/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-public-parameter-properties/snapshots/4-Babel-Tokens.shot index 2bd6a5ad2bb2..0e21bfb37fa9 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-public-parameter-properties/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-public-parameter-properties/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-public-parameter-properties Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-parameter-properties/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-parameter-properties/snapshots/1-TSESTree-AST.shot index 58a500e86b42..21c719fd677d 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-parameter-properties/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-parameter-properties/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-readonly-parameter-properties TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -30,7 +30,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [177, 179], loc: { @@ -41,7 +41,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ TSParameterProperty { type: "TSParameterProperty", parameter: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-parameter-properties/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-parameter-properties/snapshots/2-TSESTree-Tokens.shot index ac1fdd2c06ee..5b00fd42521e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-parameter-properties/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-parameter-properties/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-readonly-parameter-properties TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-parameter-properties/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-parameter-properties/snapshots/3-Babel-AST.shot index d53b81a40d23..a4ccbdfe6af8 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-parameter-properties/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-parameter-properties/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-readonly-parameter-properties Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -29,7 +29,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [177, 179], loc: { @@ -40,7 +40,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ TSParameterProperty { type: "TSParameterProperty", parameter: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-parameter-properties/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-parameter-properties/snapshots/4-Babel-Tokens.shot index 94b3150c7fef..eace703e0d59 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-parameter-properties/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-parameter-properties/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-readonly-parameter-properties Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-parameter-properties/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-parameter-properties/snapshots/5-AST-Alignment-AST.shot index c3267c2f1f7e..1db770be545d 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-parameter-properties/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-parameter-properties/snapshots/5-AST-Alignment-AST.shot @@ -118,7 +118,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-readonly-parameter-prope }, right: Literal { type: 'Literal', - raw: '\\\\'Smith\\\\'', + raw: '\\'Smith\\'', value: 'Smith', range: [164, 171], diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-property/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-property/snapshots/1-TSESTree-AST.shot index 3bdd5c14111b..ca701f29c922 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-property/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-property/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-readonly-property TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", accessibility: "public", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-property/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-property/snapshots/2-TSESTree-Tokens.shot index 92836210c15c..f49cd788267c 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-property/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-property/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-readonly-property TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-property/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-property/snapshots/3-Babel-AST.shot index e4aac92f2fa3..6257bcbf8012 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-property/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-property/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-readonly-property Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", accessibility: "public", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-property/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-property/snapshots/4-Babel-Tokens.shot index d0d2888d8dc8..1ec22d1aa680 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-property/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-property/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-readonly-property Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-property/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-property/snapshots/5-AST-Alignment-AST.shot index 94c72eab163a..05e055f18681 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-property/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-property/snapshots/5-AST-Alignment-AST.shot @@ -33,7 +33,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-readonly-property AST Al static: false, value: Literal { type: 'Literal', - raw: '\\\\'string\\\\'', + raw: '\\'string\\'', value: 'string', range: [109, 117], diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-property/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-property/snapshots/6-AST-Alignment-Tokens.shot index 6eb45fe14c70..a95868f56600 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-property/snapshots/6-AST-Alignment-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-readonly-property/snapshots/6-AST-Alignment-Tokens.shot @@ -80,7 +80,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-readonly-property AST Al }, String { type: 'String', - value: '\\\\'string\\\\'', + value: '\\'string\\'', range: [109, 117], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-default/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-default/snapshots/1-TSESTree-AST.shot index 7bf59de03daa..bc32cf62cdc6 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-default/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-default/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-type-parameter-default TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [92, 94], loc: { @@ -29,9 +29,10 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, default: TSTypeReference { type: "TSTypeReference", typeName: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-default/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-default/snapshots/2-TSESTree-Tokens.shot index e6eae92d6336..043304d8e736 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-default/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-default/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-type-parameter-default TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-default/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-default/snapshots/3-Babel-AST.shot index 19139ae54935..b5bc56e8477f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-default/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-default/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-type-parameter-default Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [92, 94], loc: { @@ -29,7 +29,7 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", default: TSTypeReference { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-default/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-default/snapshots/4-Babel-Tokens.shot index 057ad740b119..7e0fc5b1ab08 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-default/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-default/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-type-parameter-default Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-default/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-default/snapshots/5-AST-Alignment-AST.shot index efd120448d33..83d183469759 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-default/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-default/snapshots/5-AST-Alignment-AST.shot @@ -36,6 +36,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-type-parameter-default A params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, default: TSTypeReference { type: 'TSTypeReference', typeName: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-underscore/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-underscore/snapshots/1-TSESTree-AST.shot index 11e13c3a1d9d..ab0d61339b4f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-underscore/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-underscore/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-type-parameter-underscore TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [86, 88], loc: { @@ -29,9 +29,10 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-underscore/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-underscore/snapshots/2-TSESTree-Tokens.shot index f8d9b4b70902..8d443bd3c35c 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-underscore/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-underscore/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-type-parameter-underscore TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-underscore/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-underscore/snapshots/3-Babel-AST.shot index 24e86adb6e42..ab3e5767e312 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-underscore/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-underscore/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-type-parameter-underscore Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [86, 88], loc: { @@ -29,7 +29,7 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "__P", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-underscore/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-underscore/snapshots/4-Babel-Tokens.shot index 86d6305208a0..8a3cc4cf8c89 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-underscore/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-underscore/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-type-parameter-underscore Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-underscore/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-underscore/snapshots/5-AST-Alignment-AST.shot index da8b2d5230bd..d4ed8c5b153b 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-underscore/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter-underscore/snapshots/5-AST-Alignment-AST.shot @@ -36,6 +36,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-type-parameter-underscor params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter/snapshots/1-TSESTree-AST.shot index f4a699b14144..2fc7b07e32f1 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-type-parameter TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [86, 88], loc: { @@ -29,9 +29,10 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter/snapshots/2-TSESTree-Tokens.shot index e9064fb027c3..c28fd120d283 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-type-parameter TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter/snapshots/3-Babel-AST.shot index 7ebae4004153..0b40b64d4737 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics class-with-type-parameter Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [86, 88], loc: { @@ -29,7 +29,7 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter/snapshots/4-Babel-Tokens.shot index 20178ad3e079..1f332f59d583 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics class-with-type-parameter Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter/snapshots/5-AST-Alignment-AST.shot index 28d9a945fca1..8a7308c52fc9 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter/snapshots/5-AST-Alignment-AST.shot @@ -36,6 +36,7 @@ exports[`AST Fixtures legacy-fixtures basics class-with-type-parameter AST Align params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/const-enum/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/const-enum/snapshots/1-TSESTree-AST.shot index c3f47c18754d..525ff8bf7dad 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/const-enum/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/const-enum/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics const-enum TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSEnumDeclaration { type: "TSEnumDeclaration", const: true, @@ -17,7 +17,7 @@ Program { end: { column: 14, line: 3 }, }, }, - members: Array [ + members: [ TSEnumMember { type: "TSEnumMember", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/const-enum/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/const-enum/snapshots/2-TSESTree-Tokens.shot index 416f2d1798dc..8b0a8ca5fe40 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/const-enum/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/const-enum/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics const-enum TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "const", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/const-enum/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/const-enum/snapshots/3-Babel-AST.shot index ee0931e98c6f..0c362f7f6d31 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/const-enum/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/const-enum/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics const-enum Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSEnumDeclaration { type: "TSEnumDeclaration", const: true, @@ -17,7 +17,7 @@ Program { end: { column: 14, line: 3 }, }, }, - members: Array [ + members: [ TSEnumMember { type: "TSEnumMember", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/const-enum/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/const-enum/snapshots/4-Babel-Tokens.shot index 88bda4bf8a63..d61aec4c6f39 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/const-enum/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/const-enum/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics const-enum Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "const", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/declare-class-with-optional-method/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/declare-class-with-optional-method/snapshots/1-TSESTree-AST.shot index 9e10153775b4..ab799166a14e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/declare-class-with-optional-method/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/declare-class-with-optional-method/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics declare-class-with-optional-method TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -33,7 +33,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSAnyKeyword { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/declare-class-with-optional-method/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/declare-class-with-optional-method/snapshots/2-TSESTree-Tokens.shot index 2fc4fcc17d7b..a048d70cc7ac 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/declare-class-with-optional-method/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/declare-class-with-optional-method/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics declare-class-with-optional-method TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/declare-class-with-optional-method/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/declare-class-with-optional-method/snapshots/3-Babel-AST.shot index d9a6b865e20a..9136bf11d6cc 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/declare-class-with-optional-method/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/declare-class-with-optional-method/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics declare-class-with-optional-method Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -31,7 +31,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSAnyKeyword { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/declare-class-with-optional-method/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/declare-class-with-optional-method/snapshots/4-Babel-Tokens.shot index 7dca17e9213c..260373f009ea 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/declare-class-with-optional-method/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/declare-class-with-optional-method/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics declare-class-with-optional-method Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/declare-function/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/declare-function/snapshots/1-TSESTree-AST.shot index 0c00814dcfea..f85238b8cce5 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/declare-function/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/declare-function/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics declare-function TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSDeclareFunction { type: "TSDeclareFunction", async: false, @@ -20,7 +20,7 @@ Program { end: { column: 20, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "bar", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/declare-function/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/declare-function/snapshots/2-TSESTree-Tokens.shot index 345e3996759a..697ba68bac68 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/declare-function/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/declare-function/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics declare-function TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/declare-function/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/declare-function/snapshots/3-Babel-AST.shot index d1dad55a9a28..5add822300c9 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/declare-function/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/declare-function/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics declare-function Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSDeclareFunction { type: "TSDeclareFunction", async: false, @@ -20,7 +20,7 @@ Program { end: { column: 20, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "bar", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/declare-function/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/declare-function/snapshots/4-Babel-Tokens.shot index f2f472092073..273582362465 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/declare-function/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/declare-function/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics declare-function Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-nested/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-nested/snapshots/1-TSESTree-AST.shot index e3d7ca759c86..0208520f6fc4 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-nested/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-nested/snapshots/1-TSESTree-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures legacy-fixtures basics destructuring-assignment-nested TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: AssignmentExpression { type: "AssignmentExpression", left: ObjectPattern { type: "ObjectPattern", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -31,7 +31,7 @@ Program { type: "AssignmentPattern", left: ObjectPattern { type: "ObjectPattern", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -52,7 +52,7 @@ Program { type: "AssignmentPattern", left: ObjectPattern { type: "ObjectPattern", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -73,7 +73,7 @@ Program { type: "AssignmentPattern", left: ArrayPattern { type: "ArrayPattern", - elements: Array [ + elements: [ Identifier { type: "Identifier", name: "a", @@ -88,7 +88,7 @@ Program { type: "AssignmentPattern", left: ObjectPattern { type: "ObjectPattern", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -109,7 +109,7 @@ Program { type: "AssignmentPattern", left: ArrayPattern { type: "ArrayPattern", - elements: Array [ + elements: [ Identifier { type: "Identifier", name: "x", @@ -130,7 +130,7 @@ Program { }, right: ArrayExpression { type: "ArrayExpression", - elements: Array [ + elements: [ Literal { type: "Literal", raw: "3", @@ -174,7 +174,7 @@ Program { }, right: ObjectExpression { type: "ObjectExpression", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -193,7 +193,7 @@ Program { shorthand: false, value: ArrayExpression { type: "ArrayExpression", - elements: Array [ + elements: [ Literal { type: "Literal", raw: "2", @@ -245,7 +245,7 @@ Program { }, right: ArrayExpression { type: "ArrayExpression", - elements: Array [], + elements: [], range: [138, 140], loc: { @@ -277,7 +277,7 @@ Program { }, right: ObjectExpression { type: "ObjectExpression", - properties: Array [], + properties: [], range: [145, 147], loc: { @@ -309,7 +309,7 @@ Program { }, right: ObjectExpression { type: "ObjectExpression", - properties: Array [], + properties: [], range: [152, 154], loc: { @@ -342,7 +342,7 @@ Program { operator: "=", right: ObjectExpression { type: "ObjectExpression", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -361,7 +361,7 @@ Program { shorthand: false, value: ObjectExpression { type: "ObjectExpression", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -380,7 +380,7 @@ Program { shorthand: false, value: ObjectExpression { type: "ObjectExpression", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -399,7 +399,7 @@ Program { shorthand: false, value: ArrayExpression { type: "ArrayExpression", - elements: Array [ + elements: [ Literal { type: "Literal", raw: "2", @@ -413,7 +413,7 @@ Program { }, ObjectExpression { type: "ObjectExpression", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -432,7 +432,7 @@ Program { shorthand: false, value: ArrayExpression { type: "ArrayExpression", - elements: Array [ + elements: [ Literal { type: "Literal", raw: "3", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-nested/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-nested/snapshots/2-TSESTree-Tokens.shot index a27b0be3383a..cd65f8f1802a 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-nested/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-nested/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics destructuring-assignment-nested TSESTree - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-nested/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-nested/snapshots/3-Babel-AST.shot index 3228b768da12..cb3849eb28ec 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-nested/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-nested/snapshots/3-Babel-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures legacy-fixtures basics destructuring-assignment-nested Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: AssignmentExpression { type: "AssignmentExpression", left: ObjectPattern { type: "ObjectPattern", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -31,7 +31,7 @@ Program { type: "AssignmentPattern", left: ObjectPattern { type: "ObjectPattern", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -52,7 +52,7 @@ Program { type: "AssignmentPattern", left: ObjectPattern { type: "ObjectPattern", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -73,7 +73,7 @@ Program { type: "AssignmentPattern", left: ArrayPattern { type: "ArrayPattern", - elements: Array [ + elements: [ Identifier { type: "Identifier", name: "a", @@ -88,7 +88,7 @@ Program { type: "AssignmentPattern", left: ObjectPattern { type: "ObjectPattern", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -109,7 +109,7 @@ Program { type: "AssignmentPattern", left: ArrayPattern { type: "ArrayPattern", - elements: Array [ + elements: [ Identifier { type: "Identifier", name: "x", @@ -130,7 +130,7 @@ Program { }, right: ArrayExpression { type: "ArrayExpression", - elements: Array [ + elements: [ Literal { type: "Literal", raw: "3", @@ -174,7 +174,7 @@ Program { }, right: ObjectExpression { type: "ObjectExpression", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -193,7 +193,7 @@ Program { shorthand: false, value: ArrayExpression { type: "ArrayExpression", - elements: Array [ + elements: [ Literal { type: "Literal", raw: "2", @@ -245,7 +245,7 @@ Program { }, right: ArrayExpression { type: "ArrayExpression", - elements: Array [], + elements: [], range: [138, 140], loc: { @@ -277,7 +277,7 @@ Program { }, right: ObjectExpression { type: "ObjectExpression", - properties: Array [], + properties: [], range: [145, 147], loc: { @@ -309,7 +309,7 @@ Program { }, right: ObjectExpression { type: "ObjectExpression", - properties: Array [], + properties: [], range: [152, 154], loc: { @@ -342,7 +342,7 @@ Program { operator: "=", right: ObjectExpression { type: "ObjectExpression", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -361,7 +361,7 @@ Program { shorthand: false, value: ObjectExpression { type: "ObjectExpression", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -380,7 +380,7 @@ Program { shorthand: false, value: ObjectExpression { type: "ObjectExpression", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -399,7 +399,7 @@ Program { shorthand: false, value: ArrayExpression { type: "ArrayExpression", - elements: Array [ + elements: [ Literal { type: "Literal", raw: "2", @@ -413,7 +413,7 @@ Program { }, ObjectExpression { type: "ObjectExpression", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -432,7 +432,7 @@ Program { shorthand: false, value: ArrayExpression { type: "ArrayExpression", - elements: Array [ + elements: [ Literal { type: "Literal", raw: "3", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-nested/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-nested/snapshots/4-Babel-Tokens.shot index fae6c164f813..76ab0d7c252f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-nested/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-nested/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics destructuring-assignment-nested Babel - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-object/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-object/snapshots/1-TSESTree-AST.shot index 703efd77f943..65038c760f7b 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-object/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-object/snapshots/1-TSESTree-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures legacy-fixtures basics destructuring-assignment-object TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: AssignmentExpression { type: "AssignmentExpression", left: ObjectPattern { type: "ObjectPattern", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -41,7 +41,7 @@ Program { }, right: ObjectExpression { type: "ObjectExpression", - properties: Array [], + properties: [], range: [82, 84], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-object/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-object/snapshots/2-TSESTree-Tokens.shot index 4e745aa08a19..a1f12787380c 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-object/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-object/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics destructuring-assignment-object TSESTree - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-object/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-object/snapshots/3-Babel-AST.shot index ea81150d36d6..73e7bbc8c460 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-object/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-object/snapshots/3-Babel-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures legacy-fixtures basics destructuring-assignment-object Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: AssignmentExpression { type: "AssignmentExpression", left: ObjectPattern { type: "ObjectPattern", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -41,7 +41,7 @@ Program { }, right: ObjectExpression { type: "ObjectExpression", - properties: Array [], + properties: [], range: [82, 84], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-object/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-object/snapshots/4-Babel-Tokens.shot index e3e082df8c55..0906527cd424 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-object/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-object/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics destructuring-assignment-object Babel - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-property/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-property/snapshots/1-TSESTree-AST.shot index d9ccb771cc44..64289d39b278 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-property/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-property/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics destructuring-assignment-property TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [106, 108], loc: { @@ -29,12 +29,12 @@ Program { end: { column: 12, line: 3 }, }, }, - params: Array [ + params: [ AssignmentPattern { type: "AssignmentPattern", left: ObjectPattern { type: "ObjectPattern", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -65,7 +65,7 @@ Program { }, right: ArrayExpression { type: "ArrayExpression", - elements: Array [], + elements: [], range: [94, 96], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-property/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-property/snapshots/2-TSESTree-Tokens.shot index eaab980b2a5a..59619c43429f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-property/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-property/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics destructuring-assignment-property TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-property/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-property/snapshots/3-Babel-AST.shot index e8864d887614..c8ae645f9330 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-property/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-property/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics destructuring-assignment-property Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [106, 108], loc: { @@ -29,12 +29,12 @@ Program { end: { column: 12, line: 3 }, }, }, - params: Array [ + params: [ AssignmentPattern { type: "AssignmentPattern", left: ObjectPattern { type: "ObjectPattern", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -65,7 +65,7 @@ Program { }, right: ArrayExpression { type: "ArrayExpression", - elements: Array [], + elements: [], range: [94, 96], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-property/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-property/snapshots/4-Babel-Tokens.shot index 94ccf0a90a74..0f81442b4ab5 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-property/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment-property/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics destructuring-assignment-property Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment/snapshots/1-TSESTree-AST.shot index 7e21c0e04f1f..a62db8717c44 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment/snapshots/1-TSESTree-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures legacy-fixtures basics destructuring-assignment TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: AssignmentExpression { type: "AssignmentExpression", left: ObjectPattern { type: "ObjectPattern", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -41,7 +41,7 @@ Program { }, right: ArrayExpression { type: "ArrayExpression", - elements: Array [], + elements: [], range: [82, 84], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment/snapshots/2-TSESTree-Tokens.shot index c5f1197b65ec..3c3cbe8d59ad 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics destructuring-assignment TSESTree - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment/snapshots/3-Babel-AST.shot index d75443206541..064ec744c0f3 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment/snapshots/3-Babel-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures legacy-fixtures basics destructuring-assignment Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: AssignmentExpression { type: "AssignmentExpression", left: ObjectPattern { type: "ObjectPattern", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -41,7 +41,7 @@ Program { }, right: ArrayExpression { type: "ArrayExpression", - elements: Array [], + elements: [], range: [82, 84], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment/snapshots/4-Babel-Tokens.shot index 17df5650457a..221a32cc3702 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/destructuring-assignment/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics destructuring-assignment Babel - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-module/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-module/snapshots/1-TSESTree-AST.shot index 3f74d63a87e9..f289b977ef4e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-module/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-module/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics directive-in-module TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", directive: "use strict", @@ -32,7 +32,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-module/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-module/snapshots/2-TSESTree-Tokens.shot index 24b5e6e64f2a..49ef9df0153f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-module/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-module/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics directive-in-module TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "module", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-module/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-module/snapshots/3-Babel-AST.shot index f82faa40a46b..1d2e348e82c1 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-module/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-module/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics directive-in-module Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: Literal { @@ -31,7 +31,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-module/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-module/snapshots/4-Babel-Tokens.shot index 87f723f8a28f..6de71fdd14ce 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-module/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-module/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics directive-in-module Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "module", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-module/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-module/snapshots/5-AST-Alignment-AST.shot index 8ce2d9d2915d..983df429af09 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-module/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-module/snapshots/5-AST-Alignment-AST.shot @@ -18,7 +18,7 @@ exports[`AST Fixtures legacy-fixtures basics directive-in-module AST Alignment - - directive: 'use strict', expression: Literal { type: 'Literal', - raw: '\\\\'use strict\\\\'', + raw: '\\'use strict\\'', value: 'use strict', range: [88, 100], @@ -80,7 +80,7 @@ exports[`AST Fixtures legacy-fixtures basics directive-in-module AST Alignment - type: 'ExpressionStatement', expression: Literal { type: 'Literal', - raw: '\\\\'use strict\\\\'', + raw: '\\'use strict\\'', value: 'use strict', range: [117, 129], diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-namespace/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-namespace/snapshots/1-TSESTree-AST.shot index 54670d060d5f..034c72640690 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-namespace/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-namespace/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics directive-in-namespace TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", directive: "use strict", @@ -32,7 +32,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-namespace/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-namespace/snapshots/2-TSESTree-Tokens.shot index a65a2098437c..f5576c1ea189 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-namespace/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-namespace/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics directive-in-namespace TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "namespace", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-namespace/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-namespace/snapshots/3-Babel-AST.shot index 79bfb11b0650..dfe030203dec 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-namespace/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-namespace/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics directive-in-namespace Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: Literal { @@ -31,7 +31,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-namespace/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-namespace/snapshots/4-Babel-Tokens.shot index d3ffef96096b..9eae0ad63a0e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-namespace/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-namespace/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics directive-in-namespace Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "namespace", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-namespace/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-namespace/snapshots/5-AST-Alignment-AST.shot index 620319c66453..75f2472ffbcf 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-namespace/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/directive-in-namespace/snapshots/5-AST-Alignment-AST.shot @@ -18,7 +18,7 @@ exports[`AST Fixtures legacy-fixtures basics directive-in-namespace AST Alignmen - directive: 'use strict', expression: Literal { type: 'Literal', - raw: '\\\\'use strict\\\\'', + raw: '\\'use strict\\'', value: 'use strict', range: [91, 103], @@ -80,7 +80,7 @@ exports[`AST Fixtures legacy-fixtures basics directive-in-namespace AST Alignmen type: 'ExpressionStatement', expression: Literal { type: 'Literal', - raw: '\\\\'use strict\\\\'', + raw: '\\'use strict\\'', value: 'use strict', range: [120, 132], diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/dynamic-import-with-import-assertions/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/dynamic-import-with-import-assertions/snapshots/1-TSESTree-AST.shot index c00fcd9d0f45..de0b160d2c8c 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/dynamic-import-with-import-assertions/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/dynamic-import-with-import-assertions/snapshots/1-TSESTree-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures legacy-fixtures basics dynamic-import-with-import-assertions TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ImportExpression { type: "ImportExpression", attributes: ObjectExpression { type: "ObjectExpression", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -29,7 +29,7 @@ Program { shorthand: false, value: ObjectExpression { type: "ObjectExpression", - properties: Array [ + properties: [ Property { type: "Property", computed: false, diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/dynamic-import-with-import-assertions/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/dynamic-import-with-import-assertions/snapshots/2-TSESTree-Tokens.shot index 67e2afdf9c10..61b67c648da2 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/dynamic-import-with-import-assertions/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/dynamic-import-with-import-assertions/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics dynamic-import-with-import-assertions TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/dynamic-import-with-import-assertions/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/dynamic-import-with-import-assertions/snapshots/3-Babel-AST.shot index a7171e48b381..fec2f6e4759d 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/dynamic-import-with-import-assertions/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/dynamic-import-with-import-assertions/snapshots/3-Babel-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures legacy-fixtures basics dynamic-import-with-import-assertions Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ImportExpression { type: "ImportExpression", attributes: ObjectExpression { type: "ObjectExpression", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -29,7 +29,7 @@ Program { shorthand: false, value: ObjectExpression { type: "ObjectExpression", - properties: Array [ + properties: [ Property { type: "Property", computed: false, diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/dynamic-import-with-import-assertions/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/dynamic-import-with-import-assertions/snapshots/4-Babel-Tokens.shot index 66c8ab5e66c6..5d4ea1e7fea7 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/dynamic-import-with-import-assertions/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/dynamic-import-with-import-assertions/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics dynamic-import-with-import-assertions Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-all-with-import-assertions/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-all-with-import-assertions/snapshots/1-TSESTree-AST.shot index f72725a69e3c..91065f7d377f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-all-with-import-assertions/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-all-with-import-assertions/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics export-all-with-import-assertions TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportAllDeclaration { type: "ExportAllDeclaration", - assertions: Array [ + assertions: [ ImportAttribute { type: "ImportAttribute", key: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-all-with-import-assertions/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-all-with-import-assertions/snapshots/2-TSESTree-Tokens.shot index 30298dec7c8f..959b2bbd38f5 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-all-with-import-assertions/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-all-with-import-assertions/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics export-all-with-import-assertions TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-all-with-import-assertions/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-all-with-import-assertions/snapshots/3-Babel-AST.shot index 3a9248b8b18d..625730e864fe 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-all-with-import-assertions/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-all-with-import-assertions/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics export-all-with-import-assertions Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportAllDeclaration { type: "ExportAllDeclaration", - assertions: Array [ + assertions: [ ImportAttribute { type: "ImportAttribute", key: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-all-with-import-assertions/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-all-with-import-assertions/snapshots/4-Babel-Tokens.shot index 51e7a9adfb32..d8b5ad34be27 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-all-with-import-assertions/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-all-with-import-assertions/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics export-all-with-import-assertions Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-as-namespace/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-as-namespace/snapshots/1-TSESTree-AST.shot index 50171dcd871c..85787e9178f6 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-as-namespace/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-as-namespace/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics export-as-namespace TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSNamespaceExportDeclaration { type: "TSNamespaceExportDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-as-namespace/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-as-namespace/snapshots/2-TSESTree-Tokens.shot index 27df99bbb748..813665b7ce4e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-as-namespace/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-as-namespace/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics export-as-namespace TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-as-namespace/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-as-namespace/snapshots/3-Babel-AST.shot index 0f084acc686c..a20daf93abdc 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-as-namespace/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-as-namespace/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics export-as-namespace Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSNamespaceExportDeclaration { type: "TSNamespaceExportDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-as-namespace/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-as-namespace/snapshots/4-Babel-Tokens.shot index e2f6c5e52d51..d330b9a0eb9d 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-as-namespace/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-as-namespace/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics export-as-namespace Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-assignment/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-assignment/snapshots/1-TSESTree-AST.shot index dd6b69de77e4..8c71fbb0d3c5 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-assignment/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-assignment/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics export-assignment TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSExportAssignment { type: "TSExportAssignment", expression: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-assignment/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-assignment/snapshots/2-TSESTree-Tokens.shot index 17aceaa21700..802a9b67fcd6 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-assignment/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-assignment/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics export-assignment TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-assignment/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-assignment/snapshots/3-Babel-AST.shot index b81423a77ba8..7f6c1be48721 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-assignment/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-assignment/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics export-assignment Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSExportAssignment { type: "TSExportAssignment", expression: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-assignment/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-assignment/snapshots/4-Babel-Tokens.shot index 522c7fd7720b..f1d19c67d48a 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-assignment/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-assignment/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics export-assignment Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-declare-const-named-enum/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-declare-const-named-enum/snapshots/1-TSESTree-AST.shot index 028706dced8c..acd54640c923 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-declare-const-named-enum/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-declare-const-named-enum/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics export-declare-const-named-enum TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: TSEnumDeclaration { type: "TSEnumDeclaration", const: true, @@ -21,7 +21,7 @@ Program { end: { column: 29, line: 3 }, }, }, - members: Array [ + members: [ TSEnumMember { type: "TSEnumMember", id: Identifier { @@ -81,7 +81,7 @@ Program { }, exportKind: "type", source: null, - specifiers: Array [], + specifiers: [], range: [73, 124], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-declare-const-named-enum/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-declare-const-named-enum/snapshots/2-TSESTree-Tokens.shot index 1bfa08b91700..986febd39a61 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-declare-const-named-enum/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-declare-const-named-enum/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics export-declare-const-named-enum TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-declare-const-named-enum/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-declare-const-named-enum/snapshots/3-Babel-AST.shot index cef70259602c..60b7de5a1c70 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-declare-const-named-enum/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-declare-const-named-enum/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics export-declare-const-named-enum Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: TSEnumDeclaration { type: "TSEnumDeclaration", const: true, @@ -21,7 +21,7 @@ Program { end: { column: 29, line: 3 }, }, }, - members: Array [ + members: [ TSEnumMember { type: "TSEnumMember", id: Identifier { @@ -81,7 +81,7 @@ Program { }, exportKind: "type", source: null, - specifiers: Array [], + specifiers: [], range: [73, 124], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-declare-const-named-enum/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-declare-const-named-enum/snapshots/4-Babel-Tokens.shot index c949dd781ee7..4683947cddf7 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-declare-const-named-enum/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-declare-const-named-enum/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics export-declare-const-named-enum Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-declare-named-enum/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-declare-named-enum/snapshots/1-TSESTree-AST.shot index 7818df7d5267..1981d24b5416 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-declare-named-enum/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-declare-named-enum/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics export-declare-named-enum TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: TSEnumDeclaration { type: "TSEnumDeclaration", declare: true, @@ -20,7 +20,7 @@ Program { end: { column: 23, line: 3 }, }, }, - members: Array [ + members: [ TSEnumMember { type: "TSEnumMember", id: Identifier { @@ -80,7 +80,7 @@ Program { }, exportKind: "type", source: null, - specifiers: Array [], + specifiers: [], range: [73, 118], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-declare-named-enum/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-declare-named-enum/snapshots/2-TSESTree-Tokens.shot index d3ed21ab1e3c..786f183a97ee 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-declare-named-enum/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-declare-named-enum/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics export-declare-named-enum TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-declare-named-enum/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-declare-named-enum/snapshots/3-Babel-AST.shot index 83d8fad96ccd..fbba5703e014 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-declare-named-enum/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-declare-named-enum/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics export-declare-named-enum Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: TSEnumDeclaration { type: "TSEnumDeclaration", declare: true, @@ -20,7 +20,7 @@ Program { end: { column: 23, line: 3 }, }, }, - members: Array [ + members: [ TSEnumMember { type: "TSEnumMember", id: Identifier { @@ -80,7 +80,7 @@ Program { }, exportKind: "type", source: null, - specifiers: Array [], + specifiers: [], range: [73, 118], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-declare-named-enum/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-declare-named-enum/snapshots/4-Babel-Tokens.shot index 9de404e549e0..cafcfe0f381f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-declare-named-enum/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-declare-named-enum/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics export-declare-named-enum Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-generic/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-generic/snapshots/1-TSESTree-AST.shot index 26e794c23c8d..f14b54d6f6fd 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-generic/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-generic/snapshots/1-TSESTree-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures legacy-fixtures basics export-default-class-with-generic TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportDefaultDeclaration { type: "ExportDefaultDeclaration", declaration: ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [97, 99], loc: { @@ -22,9 +22,10 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-generic/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-generic/snapshots/2-TSESTree-Tokens.shot index f2757134db26..dfc2181773fe 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-generic/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-generic/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics export-default-class-with-generic TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-generic/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-generic/snapshots/3-Babel-AST.shot index fe8181bb0b6d..05f959e7b33d 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-generic/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-generic/snapshots/3-Babel-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures legacy-fixtures basics export-default-class-with-generic Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportDefaultDeclaration { type: "ExportDefaultDeclaration", declaration: ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [97, 99], loc: { @@ -22,7 +22,7 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-generic/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-generic/snapshots/4-Babel-Tokens.shot index cc24ee4bf568..5c368c405f86 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-generic/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-generic/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics export-default-class-with-generic Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-generic/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-generic/snapshots/5-AST-Alignment-AST.shot index 48fca727adc1..64dc9ab9f6f5 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-generic/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-generic/snapshots/5-AST-Alignment-AST.shot @@ -29,6 +29,7 @@ exports[`AST Fixtures legacy-fixtures basics export-default-class-with-generic A params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-multiple-generics/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-multiple-generics/snapshots/1-TSESTree-AST.shot index 6f105eb8e620..d89a9df30ad8 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-multiple-generics/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-multiple-generics/snapshots/1-TSESTree-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures legacy-fixtures basics export-default-class-with-multiple-generics TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportDefaultDeclaration { type: "ExportDefaultDeclaration", declaration: ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [100, 102], loc: { @@ -22,9 +22,10 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", @@ -46,6 +47,7 @@ Program { }, TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-multiple-generics/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-multiple-generics/snapshots/2-TSESTree-Tokens.shot index 654512d650e9..8531d1d46e56 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-multiple-generics/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-multiple-generics/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics export-default-class-with-multiple-generics TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-multiple-generics/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-multiple-generics/snapshots/3-Babel-AST.shot index 101882a55598..7ae2805ccb7e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-multiple-generics/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-multiple-generics/snapshots/3-Babel-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures legacy-fixtures basics export-default-class-with-multiple-generics Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportDefaultDeclaration { type: "ExportDefaultDeclaration", declaration: ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [100, 102], loc: { @@ -22,7 +22,7 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-multiple-generics/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-multiple-generics/snapshots/4-Babel-Tokens.shot index 97637e9be818..1bbb3d440de9 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-multiple-generics/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-multiple-generics/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics export-default-class-with-multiple-generics Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-multiple-generics/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-multiple-generics/snapshots/5-AST-Alignment-AST.shot index 4ffda7290afb..77a16a4302d1 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-multiple-generics/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-class-with-multiple-generics/snapshots/5-AST-Alignment-AST.shot @@ -29,6 +29,7 @@ exports[`AST Fixtures legacy-fixtures basics export-default-class-with-multiple- params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', @@ -51,6 +52,7 @@ exports[`AST Fixtures legacy-fixtures basics export-default-class-with-multiple- }, TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-interface/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-interface/snapshots/1-TSESTree-AST.shot index 00d14443f688..8123d01f3ce5 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-interface/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-interface/snapshots/1-TSESTree-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures legacy-fixtures basics export-default-interface TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportDefaultDeclaration { type: "ExportDefaultDeclaration", declaration: TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [ + body: [ TSMethodSignature { type: "TSMethodSignature", computed: false, @@ -25,7 +25,7 @@ Program { }, }, kind: "method", - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSVoidKeyword { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-interface/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-interface/snapshots/2-TSESTree-Tokens.shot index b11f5b723a13..d1d3eeaed4a7 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-interface/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-interface/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics export-default-interface TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-interface/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-interface/snapshots/3-Babel-AST.shot index 9aca3a9fb66a..0b8842faebec 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-interface/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-interface/snapshots/3-Babel-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures legacy-fixtures basics export-default-interface Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportDefaultDeclaration { type: "ExportDefaultDeclaration", declaration: TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [ + body: [ TSMethodSignature { type: "TSMethodSignature", computed: false, @@ -25,7 +25,7 @@ Program { }, }, kind: "method", - parameters: Array [], + parameters: [], typeAnnotation: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSVoidKeyword { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-interface/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-interface/snapshots/4-Babel-Tokens.shot index a5635f18ee2e..fcab9caa18d0 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-interface/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-default-interface/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics export-default-interface Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-generic/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-generic/snapshots/1-TSESTree-AST.shot index 4a03c5671eb3..7422a63cf75e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-generic/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-generic/snapshots/1-TSESTree-AST.shot @@ -3,15 +3,15 @@ exports[`AST Fixtures legacy-fixtures basics export-named-class-with-generic TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [93, 95], loc: { @@ -32,9 +32,10 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", @@ -71,7 +72,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [73, 95], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-generic/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-generic/snapshots/2-TSESTree-Tokens.shot index f3b3efb4b03d..a7ca9722c8ae 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-generic/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-generic/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics export-named-class-with-generic TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-generic/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-generic/snapshots/3-Babel-AST.shot index 21f93f8fcb6e..6529d3d1ac74 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-generic/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-generic/snapshots/3-Babel-AST.shot @@ -3,15 +3,15 @@ exports[`AST Fixtures legacy-fixtures basics export-named-class-with-generic Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [93, 95], loc: { @@ -32,7 +32,7 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", @@ -60,7 +60,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [73, 95], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-generic/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-generic/snapshots/4-Babel-Tokens.shot index 3b8445a52cda..e75e3c1e4d27 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-generic/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-generic/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics export-named-class-with-generic Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-generic/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-generic/snapshots/5-AST-Alignment-AST.shot index c1c8ef302170..45815b0a9780 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-generic/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-generic/snapshots/5-AST-Alignment-AST.shot @@ -39,6 +39,7 @@ exports[`AST Fixtures legacy-fixtures basics export-named-class-with-generic AST params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-multiple-generics/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-multiple-generics/snapshots/1-TSESTree-AST.shot index 5f1bbd5e181f..2691f90e0a9b 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-multiple-generics/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-multiple-generics/snapshots/1-TSESTree-AST.shot @@ -3,15 +3,15 @@ exports[`AST Fixtures legacy-fixtures basics export-named-class-with-multiple-generics TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [96, 98], loc: { @@ -32,9 +32,10 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", @@ -56,6 +57,7 @@ Program { }, TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", @@ -92,7 +94,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [73, 98], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-multiple-generics/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-multiple-generics/snapshots/2-TSESTree-Tokens.shot index d502ae397ecb..fee6c737cfd6 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-multiple-generics/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-multiple-generics/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics export-named-class-with-multiple-generics TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-multiple-generics/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-multiple-generics/snapshots/3-Babel-AST.shot index 3a873d17cd27..ad3f4ffa539b 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-multiple-generics/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-multiple-generics/snapshots/3-Babel-AST.shot @@ -3,15 +3,15 @@ exports[`AST Fixtures legacy-fixtures basics export-named-class-with-multiple-generics Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [96, 98], loc: { @@ -32,7 +32,7 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", @@ -70,7 +70,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [73, 98], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-multiple-generics/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-multiple-generics/snapshots/4-Babel-Tokens.shot index 55b62360f2db..bcd9aeeab28b 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-multiple-generics/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-multiple-generics/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics export-named-class-with-multiple-generics Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-multiple-generics/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-multiple-generics/snapshots/5-AST-Alignment-AST.shot index dd2224404838..cafef05a22f2 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-multiple-generics/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-class-with-multiple-generics/snapshots/5-AST-Alignment-AST.shot @@ -39,6 +39,7 @@ exports[`AST Fixtures legacy-fixtures basics export-named-class-with-multiple-ge params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', @@ -61,6 +62,7 @@ exports[`AST Fixtures legacy-fixtures basics export-named-class-with-multiple-ge }, TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-enum/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-enum/snapshots/1-TSESTree-AST.shot index da531568f5d1..0f3b87238913 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-enum/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-enum/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics export-named-enum TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: TSEnumDeclaration { type: "TSEnumDeclaration", id: Identifier { @@ -19,7 +19,7 @@ Program { end: { column: 15, line: 3 }, }, }, - members: Array [ + members: [ TSEnumMember { type: "TSEnumMember", id: Identifier { @@ -79,7 +79,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [73, 110], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-enum/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-enum/snapshots/2-TSESTree-Tokens.shot index 6f1ce2642e67..eb6a3d87fa77 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-enum/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-enum/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics export-named-enum TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-enum/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-enum/snapshots/3-Babel-AST.shot index 0b33e2626a27..00c0a66147ab 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-enum/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-enum/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics export-named-enum Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: TSEnumDeclaration { type: "TSEnumDeclaration", id: Identifier { @@ -19,7 +19,7 @@ Program { end: { column: 15, line: 3 }, }, }, - members: Array [ + members: [ TSEnumMember { type: "TSEnumMember", id: Identifier { @@ -79,7 +79,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [73, 110], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-enum/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-enum/snapshots/4-Babel-Tokens.shot index 2ae781c656b3..9fe03d015a28 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-enum/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-named-enum/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics export-named-enum Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-star-as-ns-from/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-star-as-ns-from/snapshots/1-TSESTree-AST.shot index d143f1445f57..db21ea312284 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-star-as-ns-from/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-star-as-ns-from/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics export-star-as-ns-from TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportAllDeclaration { type: "ExportAllDeclaration", - assertions: Array [], + assertions: [], exported: Identifier { type: "Identifier", name: "foo", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-star-as-ns-from/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-star-as-ns-from/snapshots/2-TSESTree-Tokens.shot index d71c203e822c..22e6067c67cc 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-star-as-ns-from/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-star-as-ns-from/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics export-star-as-ns-from TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-star-as-ns-from/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-star-as-ns-from/snapshots/3-Babel-AST.shot index e9ba2b67a6c3..69d997be685b 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-star-as-ns-from/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-star-as-ns-from/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics export-star-as-ns-from Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportAllDeclaration { type: "ExportAllDeclaration", - assertions: Array [], + assertions: [], exported: Identifier { type: "Identifier", name: "foo", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-star-as-ns-from/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-star-as-ns-from/snapshots/4-Babel-Tokens.shot index e9741e8539bf..239c40472e2d 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-star-as-ns-from/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-star-as-ns-from/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics export-star-as-ns-from Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-as/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-as/snapshots/1-TSESTree-AST.shot index c8aa32831351..4d3b0b70ad02 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-as/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-as/snapshots/1-TSESTree-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures legacy-fixtures basics export-type-as TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: null, exportKind: "type", source: null, - specifiers: Array [ + specifiers: [ ExportSpecifier { type: "ExportSpecifier", exported: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-as/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-as/snapshots/2-TSESTree-Tokens.shot index 5b41731de3e6..99344634eaf4 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-as/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-as/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics export-type-as TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-as/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-as/snapshots/3-Babel-AST.shot index 1ee330e2b237..8c3741beaab0 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-as/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-as/snapshots/3-Babel-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures legacy-fixtures basics export-type-as Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: null, exportKind: "type", source: null, - specifiers: Array [ + specifiers: [ ExportSpecifier { type: "ExportSpecifier", exported: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-as/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-as/snapshots/4-Babel-Tokens.shot index c2d064c67d1f..4fb8af1e13ad 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-as/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-as/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics export-type-as Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from-as/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from-as/snapshots/1-TSESTree-AST.shot index 6506bdb73947..d3ce9d5bfaba 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from-as/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from-as/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics export-type-from-as TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: null, exportKind: "type", source: Literal { @@ -20,7 +20,7 @@ Program { end: { column: 33, line: 3 }, }, }, - specifiers: Array [ + specifiers: [ ExportSpecifier { type: "ExportSpecifier", exported: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from-as/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from-as/snapshots/2-TSESTree-Tokens.shot index ef607ac99e95..355b64645aba 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from-as/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from-as/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics export-type-from-as TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from-as/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from-as/snapshots/3-Babel-AST.shot index e67887e6834a..57edd0a6dddc 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from-as/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from-as/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics export-type-from-as Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: null, exportKind: "type", source: Literal { @@ -20,7 +20,7 @@ Program { end: { column: 33, line: 3 }, }, }, - specifiers: Array [ + specifiers: [ ExportSpecifier { type: "ExportSpecifier", exported: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from-as/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from-as/snapshots/4-Babel-Tokens.shot index 3e1fbe0cf721..0f2f172c59d3 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from-as/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from-as/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics export-type-from-as Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from-as/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from-as/snapshots/5-AST-Alignment-AST.shot index 0a372b10d34e..c56c283e4934 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from-as/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from-as/snapshots/5-AST-Alignment-AST.shot @@ -15,7 +15,7 @@ exports[`AST Fixtures legacy-fixtures basics export-type-from-as AST Alignment - exportKind: 'type', source: Literal { type: 'Literal', - raw: '\\\\'./a\\\\'', + raw: '\\'./a\\'', value: './a', range: [101, 106], diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from/snapshots/1-TSESTree-AST.shot index 21c711a4a479..4b41be24d989 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics export-type-from TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: null, exportKind: "type", source: Literal { @@ -20,7 +20,7 @@ Program { end: { column: 30, line: 3 }, }, }, - specifiers: Array [ + specifiers: [ ExportSpecifier { type: "ExportSpecifier", exported: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from/snapshots/2-TSESTree-Tokens.shot index a194616a7058..5b4119bc161a 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics export-type-from TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from/snapshots/3-Babel-AST.shot index 9809f387614c..af0e985d321c 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics export-type-from Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: null, exportKind: "type", source: Literal { @@ -20,7 +20,7 @@ Program { end: { column: 30, line: 3 }, }, }, - specifiers: Array [ + specifiers: [ ExportSpecifier { type: "ExportSpecifier", exported: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from/snapshots/4-Babel-Tokens.shot index 619ae6420f70..d2cb10adfd3b 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics export-type-from Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from/snapshots/5-AST-Alignment-AST.shot index fa87bc4af229..66480f7b11f6 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-from/snapshots/5-AST-Alignment-AST.shot @@ -15,7 +15,7 @@ exports[`AST Fixtures legacy-fixtures basics export-type-from AST Alignment - AS exportKind: 'type', source: Literal { type: 'Literal', - raw: '\\\\'bar\\\\'', + raw: '\\'bar\\'', value: 'bar', range: [98, 103], diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/_error_/export-type-star-from/fixture.ts b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/fixture.ts similarity index 100% rename from packages/ast-spec/src/legacy-fixtures/basics/fixtures/_error_/export-type-star-from/fixture.ts rename to packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/fixture.ts diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..62fbec4b35e7 --- /dev/null +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,39 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures legacy-fixtures basics export-type-star-from TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + ExportAllDeclaration { + type: "ExportAllDeclaration", + assertions: [], + exported: null, + exportKind: "type", + source: Literal { + type: "Literal", + raw: "'bar'", + value: "bar", + + range: [92, 97], + loc: { + start: { column: 19, line: 3 }, + end: { column: 24, line: 3 }, + }, + }, + + range: [73, 98], + loc: { + start: { column: 0, line: 3 }, + end: { column: 25, line: 3 }, + }, + }, + ], + sourceType: "module", + + range: [73, 99], + loc: { + start: { column: 0, line: 3 }, + end: { column: 0, line: 4 }, + }, +} +`; diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/_error_/export-type-star-from/snapshots/1-TSESTree-Error.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/1-TSESTree-Error.shot similarity index 100% rename from packages/ast-spec/src/legacy-fixtures/basics/fixtures/_error_/export-type-star-from/snapshots/1-TSESTree-Error.shot rename to packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/1-TSESTree-Error.shot diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/_error_/export-type-star-from/snapshots/2-Babel-Error.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/2-Babel-Error.shot similarity index 59% rename from packages/ast-spec/src/legacy-fixtures/basics/fixtures/_error_/export-type-star-from/snapshots/2-Babel-Error.shot rename to packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/2-Babel-Error.shot index def7016368fc..59a6da4f81f8 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/_error_/export-type-star-from/snapshots/2-Babel-Error.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/2-Babel-Error.shot @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures legacy-fixtures basics _error_ export-type-star-from Babel - Error 1`] = `[SyntaxError: Unexpected token (3:12)]`; +exports[`AST Fixtures legacy-fixtures basics _error_ export-type-star-from Babel - Error 1`] = `"NO ERROR"`; diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..a16dc41968b7 --- /dev/null +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,66 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures legacy-fixtures basics export-type-star-from TSESTree - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "export", + + range: [73, 79], + loc: { + start: { column: 0, line: 3 }, + end: { column: 6, line: 3 }, + }, + }, + Identifier { + type: "Identifier", + value: "type", + + range: [80, 84], + loc: { + start: { column: 7, line: 3 }, + end: { column: 11, line: 3 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "*", + + range: [85, 86], + loc: { + start: { column: 12, line: 3 }, + end: { column: 13, line: 3 }, + }, + }, + Identifier { + type: "Identifier", + value: "from", + + range: [87, 91], + loc: { + start: { column: 14, line: 3 }, + end: { column: 18, line: 3 }, + }, + }, + String { + type: "String", + value: "'bar'", + + range: [92, 97], + loc: { + start: { column: 19, line: 3 }, + end: { column: 24, line: 3 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [97, 98], + loc: { + start: { column: 24, line: 3 }, + end: { column: 25, line: 3 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/_error_/export-type-star-from/snapshots/3-Alignment-Error.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/3-Alignment-Error.shot similarity index 60% rename from packages/ast-spec/src/legacy-fixtures/basics/fixtures/_error_/export-type-star-from/snapshots/3-Alignment-Error.shot rename to packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/3-Alignment-Error.shot index 848412137b2a..e485c123fdb5 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/_error_/export-type-star-from/snapshots/3-Alignment-Error.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/3-Alignment-Error.shot @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures legacy-fixtures basics _error_ export-type-star-from Error Alignment 1`] = `"Babel errored but TSESTree didn't"`; +exports[`AST Fixtures legacy-fixtures basics _error_ export-type-star-from Error Alignment 1`] = `"No errors"`; diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..a079138bc91b --- /dev/null +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/3-Babel-AST.shot @@ -0,0 +1,39 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures legacy-fixtures basics export-type-star-from Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + ExportAllDeclaration { + type: "ExportAllDeclaration", + assertions: [], + exported: null, + exportKind: "type", + source: Literal { + type: "Literal", + raw: "'bar'", + value: "bar", + + range: [92, 97], + loc: { + start: { column: 19, line: 3 }, + end: { column: 24, line: 3 }, + }, + }, + + range: [73, 98], + loc: { + start: { column: 0, line: 3 }, + end: { column: 25, line: 3 }, + }, + }, + ], + sourceType: "script", + + range: [73, 99], + loc: { + start: { column: 0, line: 3 }, + end: { column: 0, line: 4 }, + }, +} +`; diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..f497cf8d319a --- /dev/null +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,66 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures legacy-fixtures basics export-type-star-from Babel - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "export", + + range: [73, 79], + loc: { + start: { column: 0, line: 3 }, + end: { column: 6, line: 3 }, + }, + }, + Identifier { + type: "Identifier", + value: "type", + + range: [80, 84], + loc: { + start: { column: 7, line: 3 }, + end: { column: 11, line: 3 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "*", + + range: [85, 86], + loc: { + start: { column: 12, line: 3 }, + end: { column: 13, line: 3 }, + }, + }, + Identifier { + type: "Identifier", + value: "from", + + range: [87, 91], + loc: { + start: { column: 14, line: 3 }, + end: { column: 18, line: 3 }, + }, + }, + String { + type: "String", + value: "'bar'", + + range: [92, 97], + loc: { + start: { column: 19, line: 3 }, + end: { column: 24, line: 3 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [97, 98], + loc: { + start: { column: 24, line: 3 }, + end: { column: 25, line: 3 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..b14dfbca2018 --- /dev/null +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,44 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures legacy-fixtures basics export-type-star-from AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExportAllDeclaration { + type: 'ExportAllDeclaration', + assertions: Array [], + exported: null, + exportKind: 'type', + source: Literal { + type: 'Literal', + raw: '\\'bar\\'', + value: 'bar', + + range: [92, 97], + loc: { + start: { column: 19, line: 3 }, + end: { column: 24, line: 3 }, + }, + }, + + range: [73, 98], + loc: { + start: { column: 0, line: 3 }, + end: { column: 25, line: 3 }, + }, + }, + ], +- sourceType: 'module', ++ sourceType: 'script', + + range: [73, 99], + loc: { + start: { column: 0, line: 3 }, + end: { column: 0, line: 4 }, + }, + }" +`; diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..24962635a2a6 --- /dev/null +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures legacy-fixtures basics export-type-star-from AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type/snapshots/1-TSESTree-AST.shot index 328c854b9b6f..8cc6dd169787 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type/snapshots/1-TSESTree-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures legacy-fixtures basics export-type TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: null, exportKind: "type", source: null, - specifiers: Array [ + specifiers: [ ExportSpecifier { type: "ExportSpecifier", exported: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type/snapshots/2-TSESTree-Tokens.shot index 7c3416d40b9f..9b2a644b709b 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics export-type TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type/snapshots/3-Babel-AST.shot index 035adc139169..8dab59ceaccf 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type/snapshots/3-Babel-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures legacy-fixtures basics export-type Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: null, exportKind: "type", source: null, - specifiers: Array [ + specifiers: [ ExportSpecifier { type: "ExportSpecifier", exported: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type/snapshots/4-Babel-Tokens.shot index 6e98241ac13d..a22646e0686b 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics export-type Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-anonymus-with-type-parameters/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-anonymus-with-type-parameters/snapshots/1-TSESTree-AST.shot index 7b536d258a7d..a517f7dd0c19 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-anonymus-with-type-parameters/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-anonymus-with-type-parameters/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics function-anonymus-with-type-parameters TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -24,7 +24,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: Identifier { @@ -55,7 +55,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", name: "a", @@ -87,9 +87,10 @@ Program { ], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-anonymus-with-type-parameters/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-anonymus-with-type-parameters/snapshots/2-TSESTree-Tokens.shot index 1ab8e31b0c2f..f11257358aeb 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-anonymus-with-type-parameters/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-anonymus-with-type-parameters/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics function-anonymus-with-type-parameters TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "var", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-anonymus-with-type-parameters/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-anonymus-with-type-parameters/snapshots/3-Babel-AST.shot index f676132ab6c2..eabcffe2b551 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-anonymus-with-type-parameters/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-anonymus-with-type-parameters/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics function-anonymus-with-type-parameters Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -24,7 +24,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: Identifier { @@ -55,7 +55,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", name: "a", @@ -87,7 +87,7 @@ Program { ], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-anonymus-with-type-parameters/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-anonymus-with-type-parameters/snapshots/4-Babel-Tokens.shot index 129889ae4104..ca1854d26a24 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-anonymus-with-type-parameters/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-anonymus-with-type-parameters/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics function-anonymus-with-type-parameters Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "var", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-anonymus-with-type-parameters/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-anonymus-with-type-parameters/snapshots/5-AST-Alignment-AST.shot index a35e030838b2..5f19d6e96e4e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-anonymus-with-type-parameters/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-anonymus-with-type-parameters/snapshots/5-AST-Alignment-AST.shot @@ -94,6 +94,7 @@ exports[`AST Fixtures legacy-fixtures basics function-anonymus-with-type-paramet params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-anynomus-with-return-type/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-anynomus-with-return-type/snapshots/1-TSESTree-AST.shot index 353f50fad20d..e321751787b9 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-anynomus-with-return-type/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-anynomus-with-return-type/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics function-anynomus-with-return-type TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -24,7 +24,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [101, 103], loc: { @@ -35,7 +35,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSVoidKeyword { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-anynomus-with-return-type/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-anynomus-with-return-type/snapshots/2-TSESTree-Tokens.shot index da81e7e7f8d6..9ef8c99f9086 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-anynomus-with-return-type/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-anynomus-with-return-type/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics function-anynomus-with-return-type TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "var", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-anynomus-with-return-type/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-anynomus-with-return-type/snapshots/3-Babel-AST.shot index 379acdb1f1e3..bb90643b92aa 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-anynomus-with-return-type/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-anynomus-with-return-type/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics function-anynomus-with-return-type Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -24,7 +24,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [101, 103], loc: { @@ -35,7 +35,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSVoidKeyword { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-anynomus-with-return-type/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-anynomus-with-return-type/snapshots/4-Babel-Tokens.shot index 2be5b4805579..0b689714c794 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-anynomus-with-return-type/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-anynomus-with-return-type/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics function-anynomus-with-return-type Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "var", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-overloads/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-overloads/snapshots/1-TSESTree-AST.shot index 49eeab154822..3a08ae462175 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-overloads/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-overloads/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics function-overloads TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: TSDeclareFunction { type: "TSDeclareFunction", async: false, @@ -22,7 +22,7 @@ Program { end: { column: 17, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "x", @@ -79,7 +79,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [73, 110], loc: { @@ -89,7 +89,7 @@ Program { }, ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: TSDeclareFunction { type: "TSDeclareFunction", async: false, @@ -105,7 +105,7 @@ Program { end: { column: 17, line: 4 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "x", @@ -162,7 +162,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [111, 148], loc: { @@ -172,13 +172,13 @@ Program { }, ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: Identifier { @@ -218,7 +218,7 @@ Program { end: { column: 17, line: 5 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "x", @@ -226,7 +226,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSStringKeyword { type: "TSStringKeyword", @@ -272,7 +272,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSStringKeyword { type: "TSStringKeyword", @@ -315,7 +315,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [149, 219], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-overloads/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-overloads/snapshots/2-TSESTree-Tokens.shot index c2a8fd8b06e3..6781e133facc 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-overloads/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-overloads/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics function-overloads TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-overloads/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-overloads/snapshots/3-Babel-AST.shot index cc4de7518cd6..fb15ffb9fbc0 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-overloads/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-overloads/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics function-overloads Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: TSDeclareFunction { type: "TSDeclareFunction", async: false, @@ -22,7 +22,7 @@ Program { end: { column: 17, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "x", @@ -79,7 +79,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [73, 110], loc: { @@ -89,7 +89,7 @@ Program { }, ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: TSDeclareFunction { type: "TSDeclareFunction", async: false, @@ -105,7 +105,7 @@ Program { end: { column: 17, line: 4 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "x", @@ -162,7 +162,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [111, 148], loc: { @@ -172,13 +172,13 @@ Program { }, ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: Identifier { @@ -218,7 +218,7 @@ Program { end: { column: 17, line: 5 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "x", @@ -226,7 +226,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSStringKeyword { type: "TSStringKeyword", @@ -272,7 +272,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSStringKeyword { type: "TSStringKeyword", @@ -315,7 +315,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [149, 219], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-overloads/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-overloads/snapshots/4-Babel-Tokens.shot index 107550371cf4..967d71e92567 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-overloads/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-overloads/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics function-overloads Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-await/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-await/snapshots/1-TSESTree-AST.shot index 124b6fd12f20..cc8333d69f82 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-await/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-await/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics function-with-await TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: true, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: AwaitExpression { @@ -58,7 +58,7 @@ Program { end: { column: 19, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "future", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-await/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-await/snapshots/2-TSESTree-Tokens.shot index 659eca72ae9f..1000e2e8dcb2 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-await/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-await/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics function-with-await TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "async", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-await/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-await/snapshots/3-Babel-AST.shot index 9db5bb17c880..b7e61ced920a 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-await/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-await/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics function-with-await Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: true, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: AwaitExpression { @@ -58,7 +58,7 @@ Program { end: { column: 19, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "future", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-await/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-await/snapshots/4-Babel-Tokens.shot index 60458b5d251b..e0f1e159e85e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-await/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-await/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics function-with-await Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "async", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-object-type-with-optional-properties/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-object-type-with-optional-properties/snapshots/1-TSESTree-AST.shot index 2cab080bac29..ceac643045da 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-object-type-with-optional-properties/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-object-type-with-optional-properties/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics function-with-object-type-with-optional-properties TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [124, 126], loc: { @@ -29,10 +29,10 @@ Program { end: { column: 12, line: 3 }, }, }, - params: Array [ + params: [ ObjectPattern { type: "ObjectPattern", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -104,7 +104,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSTypeLiteral { type: "TSTypeLiteral", - members: Array [ + members: [ TSPropertySignature { type: "TSPropertySignature", computed: false, diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-object-type-with-optional-properties/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-object-type-with-optional-properties/snapshots/2-TSESTree-Tokens.shot index fa1342a4dfdb..12c1db44b418 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-object-type-with-optional-properties/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-object-type-with-optional-properties/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics function-with-object-type-with-optional-properties TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-object-type-with-optional-properties/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-object-type-with-optional-properties/snapshots/3-Babel-AST.shot index d54ff73836bd..a62dbdcf492f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-object-type-with-optional-properties/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-object-type-with-optional-properties/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics function-with-object-type-with-optional-properties Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [124, 126], loc: { @@ -29,10 +29,10 @@ Program { end: { column: 12, line: 3 }, }, }, - params: Array [ + params: [ ObjectPattern { type: "ObjectPattern", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -104,7 +104,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSTypeLiteral { type: "TSTypeLiteral", - members: Array [ + members: [ TSPropertySignature { type: "TSPropertySignature", computed: false, diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-object-type-with-optional-properties/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-object-type-with-optional-properties/snapshots/4-Babel-Tokens.shot index b3cec969ce91..5200a793ce8f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-object-type-with-optional-properties/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-object-type-with-optional-properties/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics function-with-object-type-with-optional-properties Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-object-type-without-annotation/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-object-type-without-annotation/snapshots/1-TSESTree-AST.shot index 88185f9b8636..fdcd9f2678ee 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-object-type-without-annotation/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-object-type-without-annotation/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics function-with-object-type-without-annotation TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [122, 124], loc: { @@ -29,10 +29,10 @@ Program { end: { column: 12, line: 3 }, }, }, - params: Array [ + params: [ ObjectPattern { type: "ObjectPattern", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -104,7 +104,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSTypeLiteral { type: "TSTypeLiteral", - members: Array [ + members: [ TSPropertySignature { type: "TSPropertySignature", computed: false, diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-object-type-without-annotation/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-object-type-without-annotation/snapshots/2-TSESTree-Tokens.shot index 277f881e149b..31ee49c2e2a0 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-object-type-without-annotation/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-object-type-without-annotation/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics function-with-object-type-without-annotation TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-object-type-without-annotation/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-object-type-without-annotation/snapshots/3-Babel-AST.shot index c03d14d53ee8..6dcf11503358 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-object-type-without-annotation/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-object-type-without-annotation/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics function-with-object-type-without-annotation Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [122, 124], loc: { @@ -29,10 +29,10 @@ Program { end: { column: 12, line: 3 }, }, }, - params: Array [ + params: [ ObjectPattern { type: "ObjectPattern", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -104,7 +104,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSTypeLiteral { type: "TSTypeLiteral", - members: Array [ + members: [ TSPropertySignature { type: "TSPropertySignature", computed: false, diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-object-type-without-annotation/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-object-type-without-annotation/snapshots/4-Babel-Tokens.shot index a4eeee5afbf8..126da8b75da8 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-object-type-without-annotation/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-object-type-without-annotation/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics function-with-object-type-without-annotation Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-that-have-comments/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-that-have-comments/snapshots/1-TSESTree-AST.shot index 6a8770bed94b..d11b181c592e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-that-have-comments/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-that-have-comments/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics function-with-type-parameters-that-have-comments TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [107, 109], loc: { @@ -29,12 +29,13 @@ Program { end: { column: 16, line: 3 }, }, }, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-that-have-comments/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-that-have-comments/snapshots/2-TSESTree-Tokens.shot index 669042b36c41..ffe1cf751a28 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-that-have-comments/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-that-have-comments/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics function-with-type-parameters-that-have-comments TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-that-have-comments/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-that-have-comments/snapshots/3-Babel-AST.shot index a5e3f5e91263..cd06bad1cf8f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-that-have-comments/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-that-have-comments/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics function-with-type-parameters-that-have-comments Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [107, 109], loc: { @@ -29,10 +29,10 @@ Program { end: { column: 16, line: 3 }, }, }, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-that-have-comments/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-that-have-comments/snapshots/4-Babel-Tokens.shot index bb203e13d056..0978ac8de77a 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-that-have-comments/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-that-have-comments/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics function-with-type-parameters-that-have-comments Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-that-have-comments/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-that-have-comments/snapshots/5-AST-Alignment-AST.shot index 99cb440a924b..c096db788aa2 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-that-have-comments/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-that-have-comments/snapshots/5-AST-Alignment-AST.shot @@ -39,6 +39,7 @@ exports[`AST Fixtures legacy-fixtures basics function-with-type-parameters-that- params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-with-constraint/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-with-constraint/snapshots/1-TSESTree-AST.shot index e2c552e2e1fa..90107e35f6de 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-with-constraint/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-with-constraint/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics function-with-type-parameters-with-constraint TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: Identifier { @@ -49,7 +49,7 @@ Program { end: { column: 10, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "b", @@ -119,12 +119,13 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, constraint: TSTypeLiteral { type: "TSTypeLiteral", - members: Array [], + members: [], range: [94, 96], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-with-constraint/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-with-constraint/snapshots/2-TSESTree-Tokens.shot index 8a7c1c2547be..a1eeb78c3fb3 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-with-constraint/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-with-constraint/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics function-with-type-parameters-with-constraint TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-with-constraint/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-with-constraint/snapshots/3-Babel-AST.shot index 6a072b8ef9a7..4579c88e220a 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-with-constraint/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-with-constraint/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics function-with-type-parameters-with-constraint Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: Identifier { @@ -49,7 +49,7 @@ Program { end: { column: 10, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "b", @@ -119,12 +119,12 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", constraint: TSTypeLiteral { type: "TSTypeLiteral", - members: Array [], + members: [], range: [94, 96], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-with-constraint/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-with-constraint/snapshots/4-Babel-Tokens.shot index 96f750c518ff..869122575d17 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-with-constraint/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-with-constraint/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics function-with-type-parameters-with-constraint Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-with-constraint/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-with-constraint/snapshots/5-AST-Alignment-AST.shot index 16c2ff77580b..76444e06f3c3 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-with-constraint/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters-with-constraint/snapshots/5-AST-Alignment-AST.shot @@ -126,6 +126,7 @@ exports[`AST Fixtures legacy-fixtures basics function-with-type-parameters-with- params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, constraint: TSTypeLiteral { type: 'TSTypeLiteral', members: Array [], diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters/snapshots/1-TSESTree-AST.shot index 4ce1b21c01c2..3bf1239b8201 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics function-with-type-parameters TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: Identifier { @@ -49,7 +49,7 @@ Program { end: { column: 10, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "b", @@ -119,9 +119,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters/snapshots/2-TSESTree-Tokens.shot index 4b851f9d6f12..f51c4ee04e0d 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics function-with-type-parameters TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters/snapshots/3-Babel-AST.shot index 5cca708a1bc4..f32e9aa4be41 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics function-with-type-parameters Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: Identifier { @@ -49,7 +49,7 @@ Program { end: { column: 10, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "b", @@ -119,7 +119,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "X", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters/snapshots/4-Babel-Tokens.shot index 15321adbc5cf..655d1f4b8575 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics function-with-type-parameters Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters/snapshots/5-AST-Alignment-AST.shot index d191fba20dc2..a47e9957bd9d 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters/snapshots/5-AST-Alignment-AST.shot @@ -126,6 +126,7 @@ exports[`AST Fixtures legacy-fixtures basics function-with-type-parameters AST A params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-types-assignation/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-types-assignation/snapshots/1-TSESTree-AST.shot index 6c9ddad59400..28a1cf6468ad 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-types-assignation/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-types-assignation/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics function-with-types-assignation TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: Identifier { @@ -49,7 +49,7 @@ Program { end: { column: 16, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "name", @@ -154,7 +154,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSStringKeyword { type: "TSStringKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-types-assignation/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-types-assignation/snapshots/2-TSESTree-Tokens.shot index 7e4afaa798b1..02bbb441e9c7 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-types-assignation/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-types-assignation/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics function-with-types-assignation TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-types-assignation/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-types-assignation/snapshots/3-Babel-AST.shot index a1b8ad63c8ee..fe7a3c057ad9 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-types-assignation/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-types-assignation/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics function-with-types-assignation Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: Identifier { @@ -49,7 +49,7 @@ Program { end: { column: 16, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "name", @@ -154,7 +154,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSStringKeyword { type: "TSStringKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-types-assignation/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-types-assignation/snapshots/4-Babel-Tokens.shot index d32682fc4edb..cb407204101b 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-types-assignation/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-types-assignation/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics function-with-types-assignation Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-types/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-types/snapshots/1-TSESTree-AST.shot index b71cf6088f78..146b379f5ba3 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-types/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-types/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics function-with-types TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: Identifier { @@ -49,7 +49,7 @@ Program { end: { column: 16, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "name", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-types/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-types/snapshots/2-TSESTree-Tokens.shot index fe8bddcef500..e9b39ebec907 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-types/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-types/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics function-with-types TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-types/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-types/snapshots/3-Babel-AST.shot index 7344f1e3b3aa..f7c015b5f92c 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-types/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-types/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics function-with-types Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: Identifier { @@ -49,7 +49,7 @@ Program { end: { column: 16, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "name", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-types/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-types/snapshots/4-Babel-Tokens.shot index 3633adf8a1cd..ad43ab1e2e7e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-types/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-types/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics function-with-types Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/global-this/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/global-this/snapshots/1-TSESTree-AST.shot index 3cc967864b2f..dac7d52338c9 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/global-this/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/global-this/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics global-this TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -109,7 +109,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/global-this/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/global-this/snapshots/2-TSESTree-Tokens.shot index 128656bb5f3e..f88711d7e0f5 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/global-this/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/global-this/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics global-this TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "var", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/global-this/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/global-this/snapshots/3-Babel-AST.shot index b2674d44d05d..5be3c3bcfa35 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/global-this/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/global-this/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics global-this Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -109,7 +109,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/global-this/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/global-this/snapshots/4-Babel-Tokens.shot index 54ea5210032d..f4d4c9c51bb0 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/global-this/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/global-this/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics global-this Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "var", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-declaration/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-declaration/snapshots/1-TSESTree-AST.shot index 2e82a676619c..66d593436f10 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-declaration/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-declaration/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics import-equal-declaration TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSImportEqualsDeclaration { type: "TSImportEqualsDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-declaration/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-declaration/snapshots/2-TSESTree-Tokens.shot index e26e78b6d996..f8bad934ec16 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-declaration/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-declaration/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics import-equal-declaration TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-declaration/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-declaration/snapshots/3-Babel-AST.shot index dfde5c7d5e9a..6787ff3d03c3 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-declaration/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-declaration/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics import-equal-declaration Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSImportEqualsDeclaration { type: "TSImportEqualsDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-declaration/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-declaration/snapshots/4-Babel-Tokens.shot index 957ededdd774..297b9858ad99 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-declaration/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-declaration/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics import-equal-declaration Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-declaration/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-declaration/snapshots/5-AST-Alignment-AST.shot index 7547b58c682b..9e99b2d139bd 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-declaration/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-declaration/snapshots/5-AST-Alignment-AST.shot @@ -26,7 +26,7 @@ exports[`AST Fixtures legacy-fixtures basics import-equal-declaration AST Alignm type: 'TSExternalModuleReference', expression: Literal { type: 'Literal', - raw: '\\\\'bar\\\\'', + raw: '\\'bar\\'', value: 'bar', range: [94, 99], diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-type-declaration/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-type-declaration/snapshots/1-TSESTree-AST.shot index 9f5f43a5b9f1..2c76c91d63b5 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-type-declaration/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-type-declaration/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics import-equal-type-declaration TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSImportEqualsDeclaration { type: "TSImportEqualsDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-type-declaration/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-type-declaration/snapshots/2-TSESTree-Tokens.shot index 8696b31fdd1d..b668180cf626 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-type-declaration/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-type-declaration/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics import-equal-type-declaration TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-type-declaration/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-type-declaration/snapshots/3-Babel-AST.shot index ebaf826ae2a4..1583d2ccfb7a 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-type-declaration/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-type-declaration/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics import-equal-type-declaration Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSImportEqualsDeclaration { type: "TSImportEqualsDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-type-declaration/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-type-declaration/snapshots/4-Babel-Tokens.shot index f6b3a243810a..62bfbe6babf3 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-type-declaration/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-type-declaration/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics import-equal-type-declaration Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-type-declaration/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-type-declaration/snapshots/5-AST-Alignment-AST.shot index 90637b78f190..38dd0ac42d69 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-type-declaration/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-equal-type-declaration/snapshots/5-AST-Alignment-AST.shot @@ -26,7 +26,7 @@ exports[`AST Fixtures legacy-fixtures basics import-equal-type-declaration AST A type: 'TSExternalModuleReference', expression: Literal { type: 'Literal', - raw: '\\\\'bar\\\\'', + raw: '\\'bar\\'', value: 'bar', range: [99, 104], diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-declaration/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-declaration/snapshots/1-TSESTree-AST.shot index f00d79737947..1f3bcfef849f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-declaration/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-declaration/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics import-export-equal-declaration TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSImportEqualsDeclaration { type: "TSImportEqualsDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-declaration/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-declaration/snapshots/2-TSESTree-Tokens.shot index c3ee37200ad7..cdd147c26bdf 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-declaration/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-declaration/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics import-export-equal-declaration TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-declaration/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-declaration/snapshots/3-Babel-AST.shot index e152a313d3e7..9705cc0221dc 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-declaration/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-declaration/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics import-export-equal-declaration Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSImportEqualsDeclaration { type: "TSImportEqualsDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-declaration/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-declaration/snapshots/4-Babel-Tokens.shot index af8b4875ecc8..d3c1dcced875 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-declaration/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-declaration/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics import-export-equal-declaration Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-declaration/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-declaration/snapshots/5-AST-Alignment-AST.shot index ab942c427703..a8124bb42647 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-declaration/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-declaration/snapshots/5-AST-Alignment-AST.shot @@ -26,7 +26,7 @@ exports[`AST Fixtures legacy-fixtures basics import-export-equal-declaration AST type: 'TSExternalModuleReference', expression: Literal { type: 'Literal', - raw: '\\\\'bar\\\\'', + raw: '\\'bar\\'', value: 'bar', range: [101, 106], diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-type-declaration/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-type-declaration/snapshots/1-TSESTree-AST.shot index d8ab04dfdf9c..a05c975eae46 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-type-declaration/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-type-declaration/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics import-export-equal-type-declaration TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSImportEqualsDeclaration { type: "TSImportEqualsDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-type-declaration/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-type-declaration/snapshots/2-TSESTree-Tokens.shot index a98ed030616c..53590c441781 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-type-declaration/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-type-declaration/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics import-export-equal-type-declaration TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-type-declaration/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-type-declaration/snapshots/3-Babel-AST.shot index 03c5b8949cca..c048f7a5d9cb 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-type-declaration/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-type-declaration/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics import-export-equal-type-declaration Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSImportEqualsDeclaration { type: "TSImportEqualsDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-type-declaration/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-type-declaration/snapshots/4-Babel-Tokens.shot index b9d7ea0f4be7..53d6bfc0c05c 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-type-declaration/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-type-declaration/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics import-export-equal-type-declaration Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-type-declaration/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-type-declaration/snapshots/5-AST-Alignment-AST.shot index 86ed82a0c57a..94fa819efc7f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-type-declaration/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-export-equal-type-declaration/snapshots/5-AST-Alignment-AST.shot @@ -26,7 +26,7 @@ exports[`AST Fixtures legacy-fixtures basics import-export-equal-type-declaratio type: 'TSExternalModuleReference', expression: Literal { type: 'Literal', - raw: '\\\\'bar\\\\'', + raw: '\\'bar\\'', value: 'bar', range: [106, 111], diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-default/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-default/snapshots/1-TSESTree-AST.shot index 48906852772c..ca33471e646a 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-default/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-default/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics import-type-default TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ImportDeclaration { type: "ImportDeclaration", - assertions: Array [], + assertions: [], importKind: "type", source: Literal { type: "Literal", @@ -19,7 +19,7 @@ Program { end: { column: 26, line: 3 }, }, }, - specifiers: Array [ + specifiers: [ ImportDefaultSpecifier { type: "ImportDefaultSpecifier", local: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-default/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-default/snapshots/2-TSESTree-Tokens.shot index c4a109988a92..763069fdf866 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-default/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-default/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics import-type-default TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-default/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-default/snapshots/3-Babel-AST.shot index 2eab475c9724..8f2e90297b6e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-default/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-default/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics import-type-default Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ImportDeclaration { type: "ImportDeclaration", - assertions: Array [], + assertions: [], importKind: "type", source: Literal { type: "Literal", @@ -19,7 +19,7 @@ Program { end: { column: 26, line: 3 }, }, }, - specifiers: Array [ + specifiers: [ ImportDefaultSpecifier { type: "ImportDefaultSpecifier", local: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-default/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-default/snapshots/4-Babel-Tokens.shot index 0d77e45b9434..0ad71ac20e0b 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-default/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-default/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics import-type-default Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-default/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-default/snapshots/5-AST-Alignment-AST.shot index 56b8b3e68a6f..27e470522605 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-default/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-default/snapshots/5-AST-Alignment-AST.shot @@ -14,7 +14,7 @@ exports[`AST Fixtures legacy-fixtures basics import-type-default AST Alignment - importKind: 'type', source: Literal { type: 'Literal', - raw: '\\\\'bar\\\\'', + raw: '\\'bar\\'', value: 'bar', range: [94, 99], diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-empty/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-empty/snapshots/1-TSESTree-AST.shot index 0d60a3455a5e..fadbb01b2291 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-empty/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-empty/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics import-type-empty TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ImportDeclaration { type: "ImportDeclaration", - assertions: Array [], + assertions: [], importKind: "value", source: Literal { type: "Literal", @@ -19,7 +19,7 @@ Program { end: { column: 24, line: 4 }, }, }, - specifiers: Array [ + specifiers: [ ImportDefaultSpecifier { type: "ImportDefaultSpecifier", local: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-empty/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-empty/snapshots/2-TSESTree-Tokens.shot index 901cb4efb701..01ae4ef1f6e1 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-empty/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-empty/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics import-type-empty TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-empty/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-empty/snapshots/3-Babel-AST.shot index 31331f8affe1..7a2213aa3bc8 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-empty/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-empty/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics import-type-empty Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ImportDeclaration { type: "ImportDeclaration", - assertions: Array [], + assertions: [], importKind: "value", source: Literal { type: "Literal", @@ -19,7 +19,7 @@ Program { end: { column: 24, line: 4 }, }, }, - specifiers: Array [ + specifiers: [ ImportDefaultSpecifier { type: "ImportDefaultSpecifier", local: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-empty/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-empty/snapshots/4-Babel-Tokens.shot index eba9c6a63861..d5d64162772b 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-empty/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-empty/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics import-type-empty Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named-as/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named-as/snapshots/1-TSESTree-AST.shot index ea9e75a959d8..92cbbe233f45 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named-as/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named-as/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics import-type-named-as TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ImportDeclaration { type: "ImportDeclaration", - assertions: Array [], + assertions: [], importKind: "type", source: Literal { type: "Literal", @@ -19,7 +19,7 @@ Program { end: { column: 37, line: 3 }, }, }, - specifiers: Array [ + specifiers: [ ImportSpecifier { type: "ImportSpecifier", imported: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named-as/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named-as/snapshots/2-TSESTree-Tokens.shot index 50b42d34e21c..3df77a716497 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named-as/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named-as/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics import-type-named-as TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named-as/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named-as/snapshots/3-Babel-AST.shot index d351b672f4a1..44d755c4e192 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named-as/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named-as/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics import-type-named-as Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ImportDeclaration { type: "ImportDeclaration", - assertions: Array [], + assertions: [], importKind: "type", source: Literal { type: "Literal", @@ -19,7 +19,7 @@ Program { end: { column: 37, line: 3 }, }, }, - specifiers: Array [ + specifiers: [ ImportSpecifier { type: "ImportSpecifier", imported: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named-as/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named-as/snapshots/4-Babel-Tokens.shot index 1ae8830db209..ec3bf1ce0567 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named-as/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named-as/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics import-type-named-as Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named-as/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named-as/snapshots/5-AST-Alignment-AST.shot index 3c407baaabe1..460aa5f7e67b 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named-as/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named-as/snapshots/5-AST-Alignment-AST.shot @@ -14,7 +14,7 @@ exports[`AST Fixtures legacy-fixtures basics import-type-named-as AST Alignment importKind: 'type', source: Literal { type: 'Literal', - raw: '\\\\'baz\\\\'', + raw: '\\'baz\\'', value: 'baz', range: [105, 110], diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named/snapshots/1-TSESTree-AST.shot index b7bd3d542ff5..68df555343c3 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics import-type-named TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ImportDeclaration { type: "ImportDeclaration", - assertions: Array [], + assertions: [], importKind: "type", source: Literal { type: "Literal", @@ -19,7 +19,7 @@ Program { end: { column: 35, line: 3 }, }, }, - specifiers: Array [ + specifiers: [ ImportSpecifier { type: "ImportSpecifier", imported: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named/snapshots/2-TSESTree-Tokens.shot index 92f2cc3cfa6c..7ad0b0ec8cc2 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics import-type-named TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named/snapshots/3-Babel-AST.shot index 609a1a67a4cf..f9b5865a653d 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics import-type-named Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ImportDeclaration { type: "ImportDeclaration", - assertions: Array [], + assertions: [], importKind: "type", source: Literal { type: "Literal", @@ -19,7 +19,7 @@ Program { end: { column: 35, line: 3 }, }, }, - specifiers: Array [ + specifiers: [ ImportSpecifier { type: "ImportSpecifier", imported: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named/snapshots/4-Babel-Tokens.shot index 3d3ac0665bf9..9e5e59f090e3 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics import-type-named Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named/snapshots/5-AST-Alignment-AST.shot index 228d178064a1..3260482a080a 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-named/snapshots/5-AST-Alignment-AST.shot @@ -14,7 +14,7 @@ exports[`AST Fixtures legacy-fixtures basics import-type-named AST Alignment - A importKind: 'type', source: Literal { type: 'Literal', - raw: '\\\\'baz\\\\'', + raw: '\\'baz\\'', value: 'baz', range: [103, 108], diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-star-as-ns/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-star-as-ns/snapshots/1-TSESTree-AST.shot index 1124bbe8ceb1..fe2b766c1de5 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-star-as-ns/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-star-as-ns/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics import-type-star-as-ns TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ImportDeclaration { type: "ImportDeclaration", - assertions: Array [], + assertions: [], importKind: "type", source: Literal { type: "Literal", @@ -19,7 +19,7 @@ Program { end: { column: 33, line: 3 }, }, }, - specifiers: Array [ + specifiers: [ ImportNamespaceSpecifier { type: "ImportNamespaceSpecifier", local: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-star-as-ns/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-star-as-ns/snapshots/2-TSESTree-Tokens.shot index e5650392c5ea..96b43616b005 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-star-as-ns/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-star-as-ns/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics import-type-star-as-ns TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-star-as-ns/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-star-as-ns/snapshots/3-Babel-AST.shot index 786eb5d28df0..8fc0f0d203c6 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-star-as-ns/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-star-as-ns/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics import-type-star-as-ns Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ImportDeclaration { type: "ImportDeclaration", - assertions: Array [], + assertions: [], importKind: "type", source: Literal { type: "Literal", @@ -19,7 +19,7 @@ Program { end: { column: 33, line: 3 }, }, }, - specifiers: Array [ + specifiers: [ ImportNamespaceSpecifier { type: "ImportNamespaceSpecifier", local: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-star-as-ns/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-star-as-ns/snapshots/4-Babel-Tokens.shot index 25eecab99edd..e92d08ff2009 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-star-as-ns/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-star-as-ns/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics import-type-star-as-ns Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-star-as-ns/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-star-as-ns/snapshots/5-AST-Alignment-AST.shot index 57f1afe7c7b6..222cc519cf2d 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-star-as-ns/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-type-star-as-ns/snapshots/5-AST-Alignment-AST.shot @@ -14,7 +14,7 @@ exports[`AST Fixtures legacy-fixtures basics import-type-star-as-ns AST Alignmen importKind: 'type', source: Literal { type: 'Literal', - raw: '\\\\'./bar\\\\'', + raw: '\\'./bar\\'', value: './bar', range: [99, 106], diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-with-import-assertions/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-with-import-assertions/snapshots/1-TSESTree-AST.shot index 0fbc4660b196..e209625b60b3 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-with-import-assertions/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-with-import-assertions/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics import-with-import-assertions TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ImportDeclaration { type: "ImportDeclaration", - assertions: Array [ + assertions: [ ImportAttribute { type: "ImportAttribute", key: Identifier { @@ -50,7 +50,7 @@ Program { end: { column: 21, line: 3 }, }, }, - specifiers: Array [ + specifiers: [ ImportDefaultSpecifier { type: "ImportDefaultSpecifier", local: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-with-import-assertions/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-with-import-assertions/snapshots/2-TSESTree-Tokens.shot index a62a8abd1d50..358eb3702e56 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-with-import-assertions/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-with-import-assertions/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics import-with-import-assertions TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-with-import-assertions/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-with-import-assertions/snapshots/3-Babel-AST.shot index e23aef331362..1cca8470b282 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-with-import-assertions/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-with-import-assertions/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics import-with-import-assertions Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ImportDeclaration { type: "ImportDeclaration", - assertions: Array [ + assertions: [ ImportAttribute { type: "ImportAttribute", key: Identifier { @@ -50,7 +50,7 @@ Program { end: { column: 21, line: 3 }, }, }, - specifiers: Array [ + specifiers: [ ImportDefaultSpecifier { type: "ImportDefaultSpecifier", local: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-with-import-assertions/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-with-import-assertions/snapshots/4-Babel-Tokens.shot index 6685f10a327b..8520648628a2 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-with-import-assertions/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/import-with-import-assertions/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics import-with-import-assertions Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-extends-multiple/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-extends-multiple/snapshots/1-TSESTree-AST.shot index c8a902ea54ab..882f1eedc2a1 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-extends-multiple/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-extends-multiple/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics interface-extends-multiple TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [104, 106], loc: { @@ -16,7 +16,7 @@ Program { end: { column: 33, line: 3 }, }, }, - extends: Array [ + extends: [ TSInterfaceHeritage { type: "TSInterfaceHeritage", expression: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-extends-multiple/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-extends-multiple/snapshots/2-TSESTree-Tokens.shot index dc4bc300708e..c8a5eab69044 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-extends-multiple/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-extends-multiple/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics interface-extends-multiple TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "interface", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-extends-multiple/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-extends-multiple/snapshots/3-Babel-AST.shot index 4e257b12e2ea..b1c78c0f2ec1 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-extends-multiple/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-extends-multiple/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics interface-extends-multiple Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [104, 106], loc: { @@ -16,7 +16,7 @@ Program { end: { column: 33, line: 3 }, }, }, - extends: Array [ + extends: [ TSExpressionWithTypeArguments { type: "TSExpressionWithTypeArguments", expression: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-extends-multiple/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-extends-multiple/snapshots/4-Babel-Tokens.shot index 7388dcef1553..610555196465 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-extends-multiple/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-extends-multiple/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics interface-extends-multiple Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "interface", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-extends/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-extends/snapshots/1-TSESTree-AST.shot index 74441083761e..681e29188f4c 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-extends/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-extends/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics interface-extends TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [99, 101], loc: { @@ -16,7 +16,7 @@ Program { end: { column: 28, line: 3 }, }, }, - extends: Array [ + extends: [ TSInterfaceHeritage { type: "TSInterfaceHeritage", expression: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-extends/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-extends/snapshots/2-TSESTree-Tokens.shot index d47b56d3d7c3..cb8852ce82a7 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-extends/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-extends/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics interface-extends TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "interface", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-extends/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-extends/snapshots/3-Babel-AST.shot index 32a8de8d4ebd..d6cb136894ac 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-extends/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-extends/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics interface-extends Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [99, 101], loc: { @@ -16,7 +16,7 @@ Program { end: { column: 28, line: 3 }, }, }, - extends: Array [ + extends: [ TSExpressionWithTypeArguments { type: "TSExpressionWithTypeArguments", expression: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-extends/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-extends/snapshots/4-Babel-Tokens.shot index c1d8fd85eebe..2418293154cb 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-extends/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-extends/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics interface-extends Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "interface", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-type-parameters/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-type-parameters/snapshots/1-TSESTree-AST.shot index 316e2a82e7f6..63dc3c4c7b24 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-type-parameters/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-type-parameters/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics interface-type-parameters TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [90, 92], loc: { @@ -28,9 +28,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-type-parameters/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-type-parameters/snapshots/2-TSESTree-Tokens.shot index c92a869f320b..f25b50c0e44e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-type-parameters/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-type-parameters/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics interface-type-parameters TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "interface", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-type-parameters/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-type-parameters/snapshots/3-Babel-AST.shot index 564b16453c18..ebc9ce9f2e6a 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-type-parameters/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-type-parameters/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics interface-type-parameters Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [90, 92], loc: { @@ -28,7 +28,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-type-parameters/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-type-parameters/snapshots/4-Babel-Tokens.shot index b59423e15940..b56786d20569 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-type-parameters/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-type-parameters/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics interface-type-parameters Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "interface", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-type-parameters/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-type-parameters/snapshots/5-AST-Alignment-AST.shot index ce9b773200c6..d4403d29158a 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-type-parameters/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-type-parameters/snapshots/5-AST-Alignment-AST.shot @@ -35,6 +35,7 @@ exports[`AST Fixtures legacy-fixtures basics interface-type-parameters AST Align params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-all-property-types/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-all-property-types/snapshots/1-TSESTree-AST.shot index 2b42ff502a9c..541d9420d027 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-all-property-types/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-all-property-types/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics interface-with-all-property-types TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [ + body: [ TSPropertySignature { type: "TSPropertySignature", computed: false, @@ -165,7 +165,7 @@ Program { }, TSIndexSignature { type: "TSIndexSignature", - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "eee", @@ -234,7 +234,7 @@ Program { }, }, kind: "method", - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSVoidKeyword { @@ -275,7 +275,7 @@ Program { }, kind: "method", optional: true, - params: Array [ + params: [ Identifier { type: "Identifier", name: "a", @@ -347,7 +347,7 @@ Program { }, kind: "method", optional: true, - params: Array [ + params: [ Identifier { type: "Identifier", name: "a", @@ -418,7 +418,7 @@ Program { }, }, kind: "method", - params: Array [ + params: [ Identifier { type: "Identifier", name: "a", @@ -470,9 +470,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", @@ -509,7 +510,7 @@ Program { }, TSConstructSignatureDeclaration { type: "TSConstructSignatureDeclaration", - params: Array [ + params: [ Identifier { type: "Identifier", name: "a", @@ -559,7 +560,7 @@ Program { }, TSConstructSignatureDeclaration { type: "TSConstructSignatureDeclaration", - params: Array [ + params: [ Identifier { type: "Identifier", name: "a", @@ -602,9 +603,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-all-property-types/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-all-property-types/snapshots/2-TSESTree-Tokens.shot index 04ddf174503a..8ca34a2cc6b8 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-all-property-types/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-all-property-types/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics interface-with-all-property-types TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "interface", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-all-property-types/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-all-property-types/snapshots/3-Babel-AST.shot index 8f12ecd79d66..e80d43f3d022 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-all-property-types/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-all-property-types/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics interface-with-all-property-types Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [ + body: [ TSPropertySignature { type: "TSPropertySignature", computed: false, @@ -165,7 +165,7 @@ Program { }, TSIndexSignature { type: "TSIndexSignature", - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "eee", @@ -234,7 +234,7 @@ Program { }, }, kind: "method", - parameters: Array [], + parameters: [], typeAnnotation: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSVoidKeyword { @@ -275,7 +275,7 @@ Program { }, kind: "method", optional: true, - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "a", @@ -347,7 +347,7 @@ Program { }, kind: "method", optional: true, - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "a", @@ -418,7 +418,7 @@ Program { }, }, kind: "method", - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "a", @@ -470,7 +470,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "J", @@ -498,7 +498,7 @@ Program { }, TSConstructSignatureDeclaration { type: "TSConstructSignatureDeclaration", - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "a", @@ -548,7 +548,7 @@ Program { }, TSConstructSignatureDeclaration { type: "TSConstructSignatureDeclaration", - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "a", @@ -591,7 +591,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "F", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-all-property-types/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-all-property-types/snapshots/4-Babel-Tokens.shot index 077d64076871..42732a51a83e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-all-property-types/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-all-property-types/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics interface-with-all-property-types Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "interface", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-all-property-types/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-all-property-types/snapshots/5-AST-Alignment-AST.shot index abf4bc974391..11ec84abe7fb 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-all-property-types/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-all-property-types/snapshots/5-AST-Alignment-AST.shot @@ -485,6 +485,7 @@ exports[`AST Fixtures legacy-fixtures basics interface-with-all-property-types A params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', @@ -622,6 +623,7 @@ exports[`AST Fixtures legacy-fixtures basics interface-with-all-property-types A params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-extends-member-expression/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-extends-member-expression/snapshots/1-TSESTree-AST.shot index 2fff8125b601..73d72215073b 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-extends-member-expression/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-extends-member-expression/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics interface-with-extends-member-expression TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [103, 105], loc: { @@ -16,7 +16,7 @@ Program { end: { column: 32, line: 3 }, }, }, - extends: Array [ + extends: [ TSInterfaceHeritage { type: "TSInterfaceHeritage", expression: MemberExpression { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-extends-member-expression/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-extends-member-expression/snapshots/2-TSESTree-Tokens.shot index 09cff7a83bc2..0cb70bdb2691 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-extends-member-expression/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-extends-member-expression/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics interface-with-extends-member-expression TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "interface", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-extends-member-expression/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-extends-member-expression/snapshots/3-Babel-AST.shot index 49c821c473ee..56892ef3565b 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-extends-member-expression/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-extends-member-expression/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics interface-with-extends-member-expression Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [103, 105], loc: { @@ -16,7 +16,7 @@ Program { end: { column: 32, line: 3 }, }, }, - extends: Array [ + extends: [ TSExpressionWithTypeArguments { type: "TSExpressionWithTypeArguments", expression: TSQualifiedName { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-extends-member-expression/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-extends-member-expression/snapshots/4-Babel-Tokens.shot index a2f79e27570d..8d451e31742f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-extends-member-expression/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-extends-member-expression/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics interface-with-extends-member-expression Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "interface", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-extends-type-parameters/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-extends-type-parameters/snapshots/1-TSESTree-AST.shot index ec9ca83ec2cc..4b171d07041f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-extends-type-parameters/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-extends-type-parameters/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics interface-with-extends-type-parameters TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [105, 107], loc: { @@ -16,7 +16,7 @@ Program { end: { column: 34, line: 3 }, }, }, - extends: Array [ + extends: [ TSInterfaceHeritage { type: "TSInterfaceHeritage", expression: Identifier { @@ -31,7 +31,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -79,9 +79,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-extends-type-parameters/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-extends-type-parameters/snapshots/2-TSESTree-Tokens.shot index b2cfb460c273..9913cf24c13e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-extends-type-parameters/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-extends-type-parameters/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics interface-with-extends-type-parameters TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "interface", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-extends-type-parameters/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-extends-type-parameters/snapshots/3-Babel-AST.shot index dc761a50b8a4..9f004deef6be 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-extends-type-parameters/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-extends-type-parameters/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics interface-with-extends-type-parameters Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [105, 107], loc: { @@ -16,7 +16,7 @@ Program { end: { column: 34, line: 3 }, }, }, - extends: Array [ + extends: [ TSExpressionWithTypeArguments { type: "TSExpressionWithTypeArguments", expression: Identifier { @@ -31,7 +31,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -79,7 +79,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-extends-type-parameters/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-extends-type-parameters/snapshots/4-Babel-Tokens.shot index c440e1851b3c..ff6a6b822c26 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-extends-type-parameters/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-extends-type-parameters/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics interface-with-extends-type-parameters Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "interface", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-extends-type-parameters/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-extends-type-parameters/snapshots/5-AST-Alignment-AST.shot index 54f1565f714d..c4fc663d9e21 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-extends-type-parameters/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-extends-type-parameters/snapshots/5-AST-Alignment-AST.shot @@ -88,6 +88,7 @@ exports[`AST Fixtures legacy-fixtures basics interface-with-extends-type-paramet params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-generic/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-generic/snapshots/1-TSESTree-AST.shot index d3e96136ef65..b0254dcb6cb7 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-generic/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-generic/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics interface-with-generic TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [91, 93], loc: { @@ -28,9 +28,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-generic/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-generic/snapshots/2-TSESTree-Tokens.shot index 8548000fdf2f..7ef33e027106 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-generic/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-generic/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics interface-with-generic TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "interface", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-generic/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-generic/snapshots/3-Babel-AST.shot index 6d4173f1f611..fa94649647b5 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-generic/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-generic/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics interface-with-generic Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [91, 93], loc: { @@ -28,7 +28,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-generic/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-generic/snapshots/4-Babel-Tokens.shot index ed11d4c5215a..2c8f7b76546c 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-generic/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-generic/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics interface-with-generic Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "interface", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-generic/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-generic/snapshots/5-AST-Alignment-AST.shot index bcc3599d4182..79507cbad056 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-generic/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-generic/snapshots/5-AST-Alignment-AST.shot @@ -35,6 +35,7 @@ exports[`AST Fixtures legacy-fixtures basics interface-with-generic AST Alignmen params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-jsdoc/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-jsdoc/snapshots/1-TSESTree-AST.shot index 443b6bf8e9f1..a876b40872a5 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-jsdoc/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-jsdoc/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics interface-with-jsdoc TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [ + body: [ TSMethodSignature { type: "TSMethodSignature", computed: false, @@ -23,7 +23,7 @@ Program { }, }, kind: "method", - params: Array [ + params: [ Identifier { type: "Identifier", name: "bar", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-jsdoc/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-jsdoc/snapshots/2-TSESTree-Tokens.shot index 13ec1a450a48..efc97b6acf50 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-jsdoc/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-jsdoc/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics interface-with-jsdoc TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "interface", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-jsdoc/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-jsdoc/snapshots/3-Babel-AST.shot index 110417331b96..1520e7324408 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-jsdoc/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-jsdoc/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics interface-with-jsdoc Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [ + body: [ TSMethodSignature { type: "TSMethodSignature", computed: false, @@ -23,7 +23,7 @@ Program { }, }, kind: "method", - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "bar", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-jsdoc/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-jsdoc/snapshots/4-Babel-Tokens.shot index 7186ee34111a..d341bf449edb 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-jsdoc/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-jsdoc/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics interface-with-jsdoc Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "interface", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-method/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-method/snapshots/1-TSESTree-AST.shot index a85e5d164fcb..5688a7f27a72 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-method/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-method/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics interface-with-method TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [ + body: [ TSMethodSignature { type: "TSMethodSignature", computed: false, @@ -23,7 +23,7 @@ Program { }, }, kind: "method", - params: Array [ + params: [ Identifier { type: "Identifier", name: "bar", @@ -92,7 +92,7 @@ Program { }, }, kind: "method", - params: Array [ + params: [ Identifier { type: "Identifier", name: "bar", @@ -162,9 +162,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-method/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-method/snapshots/2-TSESTree-Tokens.shot index 09bb731783e0..e24769ddf206 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-method/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-method/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics interface-with-method TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "interface", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-method/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-method/snapshots/3-Babel-AST.shot index 74a21a123fe4..5871928bae54 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-method/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-method/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics interface-with-method Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [ + body: [ TSMethodSignature { type: "TSMethodSignature", computed: false, @@ -23,7 +23,7 @@ Program { }, }, kind: "method", - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "bar", @@ -92,7 +92,7 @@ Program { }, }, kind: "method", - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "bar", @@ -162,7 +162,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-method/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-method/snapshots/4-Babel-Tokens.shot index 122fda7554c9..13a274cbd943 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-method/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-method/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics interface-with-method Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "interface", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-method/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-method/snapshots/5-AST-Alignment-AST.shot index f6f48a1fa512..e6b93ecb73b6 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-method/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-method/snapshots/5-AST-Alignment-AST.shot @@ -173,6 +173,7 @@ exports[`AST Fixtures legacy-fixtures basics interface-with-method AST Alignment params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-optional-properties/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-optional-properties/snapshots/1-TSESTree-AST.shot index cde7ed06ee0c..06c9ff9b72db 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-optional-properties/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-optional-properties/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics interface-with-optional-properties TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [ + body: [ TSPropertySignature { type: "TSPropertySignature", computed: false, @@ -84,7 +84,7 @@ Program { }, kind: "method", optional: true, - params: Array [ + params: [ Identifier { type: "Identifier", name: "foo", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-optional-properties/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-optional-properties/snapshots/2-TSESTree-Tokens.shot index 0f25628c861a..ea12ad643463 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-optional-properties/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-optional-properties/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics interface-with-optional-properties TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "interface", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-optional-properties/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-optional-properties/snapshots/3-Babel-AST.shot index fc58642788ac..5400074c66a8 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-optional-properties/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-optional-properties/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics interface-with-optional-properties Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [ + body: [ TSPropertySignature { type: "TSPropertySignature", computed: false, @@ -84,7 +84,7 @@ Program { }, kind: "method", optional: true, - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "foo", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-optional-properties/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-optional-properties/snapshots/4-Babel-Tokens.shot index 5a6a8f84f8c6..01bc89ee25d2 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-optional-properties/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-optional-properties/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics interface-with-optional-properties Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "interface", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-without-type-annotation/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-without-type-annotation/snapshots/1-TSESTree-AST.shot index 6f23be9edb7e..7208bb0dc06f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-without-type-annotation/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-without-type-annotation/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics interface-without-type-annotation TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [ + body: [ TSPropertySignature { type: "TSPropertySignature", computed: false, diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-without-type-annotation/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-without-type-annotation/snapshots/2-TSESTree-Tokens.shot index d4c56d4673ab..728de74de16f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-without-type-annotation/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-without-type-annotation/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics interface-without-type-annotation TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "interface", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-without-type-annotation/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-without-type-annotation/snapshots/3-Babel-AST.shot index 79cf7458e3f0..75d92c968ebc 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-without-type-annotation/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-without-type-annotation/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics interface-without-type-annotation Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [ + body: [ TSPropertySignature { type: "TSPropertySignature", computed: false, diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-without-type-annotation/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-without-type-annotation/snapshots/4-Babel-Tokens.shot index 3a6c55e2a2ff..ff3c80cc8855 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-without-type-annotation/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-without-type-annotation/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics interface-without-type-annotation Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "interface", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/intrinsic-keyword/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/intrinsic-keyword/snapshots/1-TSESTree-AST.shot index 709dafa02b58..f9954e47008a 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/intrinsic-keyword/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/intrinsic-keyword/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics intrinsic-keyword TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -27,9 +27,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, constraint: TSStringKeyword { type: "TSStringKeyword", @@ -96,9 +97,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, constraint: TSStringKeyword { type: "TSStringKeyword", @@ -165,9 +167,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, constraint: TSStringKeyword { type: "TSStringKeyword", @@ -234,9 +237,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, constraint: TSStringKeyword { type: "TSStringKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/intrinsic-keyword/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/intrinsic-keyword/snapshots/2-TSESTree-Tokens.shot index 2de11cd771df..b2fda3a4e2ee 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/intrinsic-keyword/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/intrinsic-keyword/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics intrinsic-keyword TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/intrinsic-keyword/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/intrinsic-keyword/snapshots/3-Babel-AST.shot index 00e093d9f435..5ebcdb8e7899 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/intrinsic-keyword/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/intrinsic-keyword/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics intrinsic-keyword Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -27,7 +27,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", constraint: TSStringKeyword { @@ -85,7 +85,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", constraint: TSStringKeyword { @@ -143,7 +143,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", constraint: TSStringKeyword { @@ -201,7 +201,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", constraint: TSStringKeyword { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/intrinsic-keyword/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/intrinsic-keyword/snapshots/4-Babel-Tokens.shot index 4cad27453916..07f7eba28f47 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/intrinsic-keyword/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/intrinsic-keyword/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics intrinsic-keyword Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/intrinsic-keyword/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/intrinsic-keyword/snapshots/5-AST-Alignment-AST.shot index 69311fed2219..89bf1373ea09 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/intrinsic-keyword/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/intrinsic-keyword/snapshots/5-AST-Alignment-AST.shot @@ -34,6 +34,7 @@ exports[`AST Fixtures legacy-fixtures basics intrinsic-keyword AST Alignment - A params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, constraint: TSStringKeyword { type: 'TSStringKeyword', @@ -104,6 +105,7 @@ exports[`AST Fixtures legacy-fixtures basics intrinsic-keyword AST Alignment - A params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, constraint: TSStringKeyword { type: 'TSStringKeyword', @@ -111,8 +113,8 @@ exports[`AST Fixtures legacy-fixtures basics intrinsic-keyword AST Alignment - A loc: { start: { column: 25, line: 4 }, end: { column: 31, line: 4 }, -- }, -- }, + }, + }, - in: false, - name: Identifier { - type: 'Identifier', @@ -122,8 +124,8 @@ exports[`AST Fixtures legacy-fixtures basics intrinsic-keyword AST Alignment - A - loc: { - start: { column: 15, line: 4 }, - end: { column: 16, line: 4 }, - }, - }, +- }, +- }, - out: false, + name: 'S', @@ -174,6 +176,7 @@ exports[`AST Fixtures legacy-fixtures basics intrinsic-keyword AST Alignment - A params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, constraint: TSStringKeyword { type: 'TSStringKeyword', @@ -181,8 +184,8 @@ exports[`AST Fixtures legacy-fixtures basics intrinsic-keyword AST Alignment - A loc: { start: { column: 26, line: 5 }, end: { column: 32, line: 5 }, -- }, -- }, + }, + }, - in: false, - name: Identifier { - type: 'Identifier', @@ -192,8 +195,8 @@ exports[`AST Fixtures legacy-fixtures basics intrinsic-keyword AST Alignment - A - loc: { - start: { column: 16, line: 5 }, - end: { column: 17, line: 5 }, - }, - }, +- }, +- }, - out: false, + name: 'S', @@ -244,6 +247,7 @@ exports[`AST Fixtures legacy-fixtures basics intrinsic-keyword AST Alignment - A params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, constraint: TSStringKeyword { type: 'TSStringKeyword', diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyof-operator/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyof-operator/snapshots/1-TSESTree-AST.shot index b5752b0534b8..da13147b30fa 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyof-operator/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyof-operator/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics keyof-operator TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyof-operator/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyof-operator/snapshots/2-TSESTree-Tokens.shot index 6a574fb8e5e2..5b23780007f7 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyof-operator/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyof-operator/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics keyof-operator TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyof-operator/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyof-operator/snapshots/3-Babel-AST.shot index 0549f5eea457..2e7fb81ea0aa 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyof-operator/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyof-operator/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics keyof-operator Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyof-operator/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyof-operator/snapshots/4-Babel-Tokens.shot index 4d1d407330a3..9311f8ceac6e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyof-operator/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyof-operator/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics keyof-operator Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyword-variables/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyword-variables/snapshots/1-TSESTree-AST.shot index 962ee2d70e09..d350372e5ef3 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyword-variables/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyword-variables/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics keyword-variables TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ BlockStatement { type: "BlockStatement", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -51,7 +51,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -93,7 +93,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -135,7 +135,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -177,7 +177,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -219,7 +219,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -261,7 +261,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -303,7 +303,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -345,7 +345,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -387,7 +387,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -429,7 +429,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -471,7 +471,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -513,7 +513,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -555,7 +555,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -597,7 +597,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -639,7 +639,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -681,7 +681,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -723,7 +723,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -765,7 +765,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -807,7 +807,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -849,7 +849,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -891,7 +891,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -933,7 +933,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -975,7 +975,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -1017,7 +1017,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -1059,7 +1059,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -1101,7 +1101,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -1143,7 +1143,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -1185,7 +1185,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -1227,7 +1227,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -1269,7 +1269,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -1319,7 +1319,7 @@ Program { }, ImportDeclaration { type: "ImportDeclaration", - assertions: Array [], + assertions: [], importKind: "value", source: Literal { type: "Literal", @@ -1332,7 +1332,7 @@ Program { end: { column: 20, line: 69 }, }, }, - specifiers: Array [ + specifiers: [ ImportSpecifier { type: "ImportSpecifier", imported: Identifier { @@ -2275,7 +2275,7 @@ Program { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [1032, 1034], loc: { @@ -2304,7 +2304,7 @@ Program { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -2326,7 +2326,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [1071, 1073], loc: { @@ -2337,7 +2337,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [1068, 1073], loc: { @@ -2374,7 +2374,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [1088, 1090], loc: { @@ -2385,7 +2385,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [1085, 1090], loc: { @@ -2422,7 +2422,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [1104, 1106], loc: { @@ -2433,7 +2433,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [1101, 1106], loc: { @@ -2470,10 +2470,10 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -2524,7 +2524,7 @@ Program { expression: false, generator: true, id: null, - params: Array [], + params: [], range: [1121, 1148], loc: { @@ -2557,7 +2557,7 @@ Program { end: { column: 7, line: 72 }, }, }, - implements: Array [ + implements: [ TSClassImplements { type: "TSClassImplements", expression: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyword-variables/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyword-variables/snapshots/2-TSESTree-Tokens.shot index 2b4189a009c7..7992974938d6 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyword-variables/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyword-variables/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics keyword-variables TSESTree - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "{", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyword-variables/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyword-variables/snapshots/3-Babel-AST.shot index 81f35fdd1774..8491dd7fbae5 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyword-variables/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyword-variables/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics keyword-variables Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ BlockStatement { type: "BlockStatement", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -51,7 +51,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -93,7 +93,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -135,7 +135,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -177,7 +177,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -219,7 +219,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -261,7 +261,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -303,7 +303,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -345,7 +345,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -387,7 +387,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -429,7 +429,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -471,7 +471,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -513,7 +513,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -555,7 +555,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -597,7 +597,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -639,7 +639,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -681,7 +681,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -723,7 +723,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -765,7 +765,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -807,7 +807,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -849,7 +849,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -891,7 +891,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -933,7 +933,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -975,7 +975,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -1017,7 +1017,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -1059,7 +1059,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -1101,7 +1101,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -1143,7 +1143,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -1185,7 +1185,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -1227,7 +1227,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -1269,7 +1269,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -1319,7 +1319,7 @@ Program { }, ImportDeclaration { type: "ImportDeclaration", - assertions: Array [], + assertions: [], importKind: "value", source: Literal { type: "Literal", @@ -1332,7 +1332,7 @@ Program { end: { column: 20, line: 69 }, }, }, - specifiers: Array [ + specifiers: [ ImportSpecifier { type: "ImportSpecifier", imported: Identifier { @@ -2275,7 +2275,7 @@ Program { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [1032, 1034], loc: { @@ -2304,7 +2304,7 @@ Program { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -2325,7 +2325,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [1071, 1073], loc: { @@ -2336,7 +2336,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [1068, 1073], loc: { @@ -2372,7 +2372,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [1088, 1090], loc: { @@ -2383,7 +2383,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [1085, 1090], loc: { @@ -2419,7 +2419,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [1104, 1106], loc: { @@ -2430,7 +2430,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [1101, 1106], loc: { @@ -2466,10 +2466,10 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -2520,7 +2520,7 @@ Program { expression: false, generator: true, id: null, - params: Array [], + params: [], range: [1121, 1148], loc: { @@ -2553,7 +2553,7 @@ Program { end: { column: 7, line: 72 }, }, }, - implements: Array [ + implements: [ TSExpressionWithTypeArguments { type: "TSExpressionWithTypeArguments", expression: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyword-variables/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyword-variables/snapshots/4-Babel-Tokens.shot index 84970292e9fd..8a830d8e5020 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyword-variables/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyword-variables/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics keyword-variables Babel - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "{", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyword-variables/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyword-variables/snapshots/5-AST-Alignment-AST.shot index 8563a77d1a3c..b5725bf6f750 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyword-variables/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyword-variables/snapshots/5-AST-Alignment-AST.shot @@ -1327,7 +1327,7 @@ exports[`AST Fixtures legacy-fixtures basics keyword-variables AST Alignment - A importKind: 'value', source: Literal { type: 'Literal', - raw: '\\\\'fake-module\\\\'', + raw: '\\'fake-module\\'', value: 'fake-module', range: [1004, 1017], diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyword-variables/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyword-variables/snapshots/6-AST-Alignment-Tokens.shot index 230728cbecdd..b5b666fbff8a 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyword-variables/snapshots/6-AST-Alignment-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/keyword-variables/snapshots/6-AST-Alignment-Tokens.shot @@ -2238,7 +2238,7 @@ exports[`AST Fixtures legacy-fixtures basics keyword-variables AST Alignment - T }, String { type: 'String', - value: '\\\\'fake-module\\\\'', + value: '\\'fake-module\\'', range: [1004, 1017], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/nested-type-arguments/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/nested-type-arguments/snapshots/1-TSESTree-AST.shot index 8fdb5eba9043..8f452e81b3ee 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/nested-type-arguments/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/nested-type-arguments/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics nested-type-arguments TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -28,7 +28,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -43,7 +43,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -58,7 +58,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSStringKeyword { type: "TSStringKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/nested-type-arguments/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/nested-type-arguments/snapshots/2-TSESTree-Tokens.shot index f3a290017554..9789d9305036 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/nested-type-arguments/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/nested-type-arguments/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics nested-type-arguments TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "var", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/nested-type-arguments/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/nested-type-arguments/snapshots/3-Babel-AST.shot index e61622b8eab5..334f5b7bdff7 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/nested-type-arguments/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/nested-type-arguments/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics nested-type-arguments Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -28,7 +28,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -43,7 +43,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -58,7 +58,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSStringKeyword { type: "TSStringKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/nested-type-arguments/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/nested-type-arguments/snapshots/4-Babel-Tokens.shot index 00e8869613ba..50ceeae3c1b9 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/nested-type-arguments/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/nested-type-arguments/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics nested-type-arguments Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "var", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/never-type-param/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/never-type-param/snapshots/1-TSESTree-AST.shot index 8fcc5c1ce1fa..7e62ff3de6ab 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/never-type-param/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/never-type-param/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics never-type-param TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -28,7 +28,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSNeverKeyword { type: "TSNeverKeyword", @@ -88,7 +88,7 @@ Program { type: "ExpressionStatement", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: MemberExpression { type: "MemberExpression", computed: false, @@ -123,7 +123,7 @@ Program { optional: false, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSNeverKeyword { type: "TSNeverKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/never-type-param/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/never-type-param/snapshots/2-TSESTree-Tokens.shot index dfe71090fa13..2590b0902db1 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/never-type-param/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/never-type-param/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics never-type-param TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "var", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/never-type-param/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/never-type-param/snapshots/3-Babel-AST.shot index fd29e7c58369..265bdbce6cc6 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/never-type-param/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/never-type-param/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics never-type-param Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -28,7 +28,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSNeverKeyword { type: "TSNeverKeyword", @@ -88,7 +88,7 @@ Program { type: "ExpressionStatement", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: MemberExpression { type: "MemberExpression", computed: false, @@ -123,7 +123,7 @@ Program { optional: false, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSNeverKeyword { type: "TSNeverKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/never-type-param/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/never-type-param/snapshots/4-Babel-Tokens.shot index e09dbbd84c5c..68ea497faf4a 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/never-type-param/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/never-type-param/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics never-type-param Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "var", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/non-null-assertion-operator/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/non-null-assertion-operator/snapshots/1-TSESTree-AST.shot index 70afb98ceaf8..a8b94faa45d3 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/non-null-assertion-operator/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/non-null-assertion-operator/snapshots/1-TSESTree-AST.shot @@ -3,18 +3,18 @@ exports[`AST Fixtures legacy-fixtures basics non-null-assertion-operator TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: CallExpression { type: "CallExpression", - arguments: Array [ + arguments: [ Identifier { type: "Identifier", name: "e", @@ -53,7 +53,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -142,7 +142,7 @@ Program { end: { column: 22, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "e", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/non-null-assertion-operator/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/non-null-assertion-operator/snapshots/2-TSESTree-Tokens.shot index bce0bf745ad9..962895740e2b 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/non-null-assertion-operator/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/non-null-assertion-operator/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics non-null-assertion-operator TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/non-null-assertion-operator/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/non-null-assertion-operator/snapshots/3-Babel-AST.shot index 30889fec908a..01a486cb8a07 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/non-null-assertion-operator/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/non-null-assertion-operator/snapshots/3-Babel-AST.shot @@ -3,18 +3,18 @@ exports[`AST Fixtures legacy-fixtures basics non-null-assertion-operator Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: CallExpression { type: "CallExpression", - arguments: Array [ + arguments: [ Identifier { type: "Identifier", name: "e", @@ -53,7 +53,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -142,7 +142,7 @@ Program { end: { column: 22, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "e", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/non-null-assertion-operator/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/non-null-assertion-operator/snapshots/4-Babel-Tokens.shot index 32ad48799ee9..7d362a6d8216 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/non-null-assertion-operator/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/non-null-assertion-operator/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics non-null-assertion-operator Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/null-and-undefined-type-annotations/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/null-and-undefined-type-annotations/snapshots/1-TSESTree-AST.shot index f37ac8a2e427..d5f4e7261627 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/null-and-undefined-type-annotations/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/null-and-undefined-type-annotations/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics null-and-undefined-type-annotations TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -56,7 +56,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/null-and-undefined-type-annotations/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/null-and-undefined-type-annotations/snapshots/2-TSESTree-Tokens.shot index de34a46c2a3f..a00ec9629f78 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/null-and-undefined-type-annotations/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/null-and-undefined-type-annotations/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics null-and-undefined-type-annotations TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/null-and-undefined-type-annotations/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/null-and-undefined-type-annotations/snapshots/3-Babel-AST.shot index 2e0256a528dd..7904836bf0d3 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/null-and-undefined-type-annotations/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/null-and-undefined-type-annotations/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics null-and-undefined-type-annotations Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -56,7 +56,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/null-and-undefined-type-annotations/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/null-and-undefined-type-annotations/snapshots/4-Babel-Tokens.shot index 9f303ebd56b2..476270e07628 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/null-and-undefined-type-annotations/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/null-and-undefined-type-annotations/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics null-and-undefined-type-annotations Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/nullish-coalescing/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/nullish-coalescing/snapshots/1-TSESTree-AST.shot index 5d1c14376fec..0b331137fc3b 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/nullish-coalescing/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/nullish-coalescing/snapshots/1-TSESTree-AST.shot @@ -3,16 +3,16 @@ exports[`AST Fixtures legacy-fixtures basics nullish-coalescing TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -92,7 +92,7 @@ Program { end: { column: 31, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "s", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/nullish-coalescing/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/nullish-coalescing/snapshots/2-TSESTree-Tokens.shot index 1708504a6b26..1b4916e3da01 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/nullish-coalescing/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/nullish-coalescing/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics nullish-coalescing TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/nullish-coalescing/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/nullish-coalescing/snapshots/3-Babel-AST.shot index 3d645a6735b5..64d6aa5ad5a3 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/nullish-coalescing/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/nullish-coalescing/snapshots/3-Babel-AST.shot @@ -3,16 +3,16 @@ exports[`AST Fixtures legacy-fixtures basics nullish-coalescing Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -92,7 +92,7 @@ Program { end: { column: 31, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "s", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/nullish-coalescing/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/nullish-coalescing/snapshots/4-Babel-Tokens.shot index 896ca7a57834..7023e3bb7c0d 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/nullish-coalescing/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/nullish-coalescing/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics nullish-coalescing Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/nullish-coalescing/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/nullish-coalescing/snapshots/6-AST-Alignment-Tokens.shot index df41cd9b8274..c8afcea63925 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/nullish-coalescing/snapshots/6-AST-Alignment-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/nullish-coalescing/snapshots/6-AST-Alignment-Tokens.shot @@ -150,7 +150,7 @@ exports[`AST Fixtures legacy-fixtures basics nullish-coalescing AST Alignment - }, String { type: 'String', - value: '\\\\'\\\\'', + value: '\\'\\'', range: [136, 138], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-escaped-properties/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-escaped-properties/snapshots/1-TSESTree-AST.shot index 2942241b82ce..e5af4497aaaa 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-escaped-properties/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-escaped-properties/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics object-with-escaped-properties TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ObjectExpression { type: "ObjectExpression", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -62,7 +62,7 @@ Program { type: "ExpressionStatement", expression: ObjectExpression { type: "ObjectExpression", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -84,7 +84,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [98, 100], loc: { @@ -95,7 +95,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [95, 100], loc: { @@ -129,7 +129,7 @@ Program { type: "ExpressionStatement", expression: ObjectExpression { type: "ObjectExpression", - properties: Array [ + properties: [ Property { type: "Property", computed: true, @@ -184,7 +184,7 @@ Program { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-escaped-properties/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-escaped-properties/snapshots/2-TSESTree-Tokens.shot index dcd81be4acd4..d33baed4a85f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-escaped-properties/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-escaped-properties/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics object-with-escaped-properties TSESTree - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-escaped-properties/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-escaped-properties/snapshots/3-Babel-AST.shot index f66caa244c13..0b0806f1dad8 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-escaped-properties/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-escaped-properties/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics object-with-escaped-properties Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ObjectExpression { type: "ObjectExpression", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -62,7 +62,7 @@ Program { type: "ExpressionStatement", expression: ObjectExpression { type: "ObjectExpression", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -84,7 +84,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [98, 100], loc: { @@ -95,7 +95,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [95, 100], loc: { @@ -129,7 +129,7 @@ Program { type: "ExpressionStatement", expression: ObjectExpression { type: "ObjectExpression", - properties: Array [ + properties: [ Property { type: "Property", computed: true, @@ -184,7 +184,7 @@ Program { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-escaped-properties/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-escaped-properties/snapshots/4-Babel-Tokens.shot index 51f022f30177..ab2f5af95fc1 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-escaped-properties/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-escaped-properties/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics object-with-escaped-properties Babel - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-escaped-properties/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-escaped-properties/snapshots/5-AST-Alignment-AST.shot index 5d16eed4a91c..f9949f44171f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-escaped-properties/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-escaped-properties/snapshots/5-AST-Alignment-AST.shot @@ -139,7 +139,7 @@ exports[`AST Fixtures legacy-fixtures basics object-with-escaped-properties AST computed: true, key: Literal { type: 'Literal', - raw: '\\\\'__\\\\'', + raw: '\\'__\\'', value: '__', range: [110, 114], @@ -195,7 +195,7 @@ exports[`AST Fixtures legacy-fixtures basics object-with-escaped-properties AST - declare: false, key: Literal { type: 'Literal', - raw: '\\\\'__\\\\'', + raw: '\\'__\\'', value: '__', range: [139, 143], diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-escaped-properties/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-escaped-properties/snapshots/6-AST-Alignment-Tokens.shot index 57a2acde6538..02f54989f285 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-escaped-properties/snapshots/6-AST-Alignment-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-escaped-properties/snapshots/6-AST-Alignment-Tokens.shot @@ -220,7 +220,7 @@ exports[`AST Fixtures legacy-fixtures basics object-with-escaped-properties AST }, String { type: 'String', - value: '\\\\'__\\\\'', + value: '\\'__\\'', range: [110, 114], loc: { @@ -322,7 +322,7 @@ exports[`AST Fixtures legacy-fixtures basics object-with-escaped-properties AST }, String { type: 'String', - value: '\\\\'__\\\\'', + value: '\\'__\\'', range: [139, 143], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-typed-methods/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-typed-methods/snapshots/1-TSESTree-AST.shot index e8f81ec7e884..ba49f7d863cf 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-typed-methods/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-typed-methods/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics object-with-typed-methods TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -21,7 +21,7 @@ Program { }, init: ObjectExpression { type: "ObjectExpression", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -43,7 +43,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: Literal { @@ -75,7 +75,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSNumberKeyword { @@ -96,9 +96,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", @@ -161,7 +162,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: Literal { @@ -193,7 +194,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSNumberKeyword { @@ -214,9 +215,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", @@ -279,7 +281,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: Literal { @@ -311,7 +313,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSNumberKeyword { @@ -365,7 +367,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [241, 243], loc: { @@ -376,7 +378,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", name: "x", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-typed-methods/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-typed-methods/snapshots/2-TSESTree-Tokens.shot index 232b65323a28..4b7940cafc71 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-typed-methods/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-typed-methods/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics object-with-typed-methods TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "const", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-typed-methods/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-typed-methods/snapshots/3-Babel-AST.shot index a020b344a3a8..410867df0a23 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-typed-methods/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-typed-methods/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics object-with-typed-methods Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -21,7 +21,7 @@ Program { }, init: ObjectExpression { type: "ObjectExpression", - properties: Array [ + properties: [ Property { type: "Property", computed: false, @@ -40,7 +40,7 @@ Program { shorthand: false, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", @@ -64,7 +64,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: Literal { @@ -96,7 +96,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSNumberKeyword { @@ -147,7 +147,7 @@ Program { shorthand: false, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", @@ -171,7 +171,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: Literal { @@ -203,7 +203,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSNumberKeyword { @@ -257,7 +257,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: Literal { @@ -289,7 +289,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSNumberKeyword { @@ -343,7 +343,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [241, 243], loc: { @@ -354,7 +354,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", name: "x", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-typed-methods/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-typed-methods/snapshots/4-Babel-Tokens.shot index c49a4e5f01dc..bb70bb6b101f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-typed-methods/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-typed-methods/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics object-with-typed-methods Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "const", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-typed-methods/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-typed-methods/snapshots/5-AST-Alignment-AST.shot index 6dce128496d8..134b63d05f42 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-typed-methods/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/object-with-typed-methods/snapshots/5-AST-Alignment-AST.shot @@ -117,18 +117,19 @@ exports[`AST Fixtures legacy-fixtures basics object-with-typed-methods AST Align loc: { start: { column: 18, line: 4 }, end: { column: 26, line: 4 }, - }, - }, +- }, +- }, - typeParameters: TSTypeParameterDeclaration { - type: 'TSTypeParameterDeclaration', - params: Array [ - TSTypeParameter { - type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', - name: 'T', - +- - range: [101, 102], - loc: { - start: { column: 14, line: 4 }, @@ -149,9 +150,9 @@ exports[`AST Fixtures legacy-fixtures basics object-with-typed-methods AST Align - loc: { - start: { column: 13, line: 4 }, - end: { column: 16, line: 4 }, -- }, -- }, -- + }, + }, + - range: [100, 133], + range: [103, 133], loc: { @@ -258,18 +259,19 @@ exports[`AST Fixtures legacy-fixtures basics object-with-typed-methods AST Align loc: { start: { column: 10, line: 7 }, end: { column: 18, line: 7 }, -- }, -- }, + }, + }, - typeParameters: TSTypeParameterDeclaration { - type: 'TSTypeParameterDeclaration', - params: Array [ - TSTypeParameter { - type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', - name: 'T', -- + - range: [141, 142], - loc: { - start: { column: 6, line: 7 }, @@ -290,9 +292,9 @@ exports[`AST Fixtures legacy-fixtures basics object-with-typed-methods AST Align - loc: { - start: { column: 5, line: 7 }, - end: { column: 8, line: 7 }, - }, - }, - +- }, +- }, +- - range: [140, 173], + range: [143, 173], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call-with-non-null-assertion/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call-with-non-null-assertion/snapshots/1-TSESTree-AST.shot index a445931c44c9..8ae89d775881 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call-with-non-null-assertion/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call-with-non-null-assertion/snapshots/1-TSESTree-AST.shot @@ -3,20 +3,20 @@ exports[`AST Fixtures legacy-fixtures basics optional-chain-call-with-non-null-assertion TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ChainExpression { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: TSNonNullExpression { type: "TSNonNullExpression", expression: MemberExpression { @@ -85,7 +85,7 @@ Program { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: MemberExpression { type: "MemberExpression", computed: false, @@ -175,7 +175,7 @@ Program { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: TSNonNullExpression { type: "TSNonNullExpression", expression: MemberExpression { @@ -244,7 +244,7 @@ Program { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: MemberExpression { type: "MemberExpression", computed: false, @@ -334,7 +334,7 @@ Program { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: TSNonNullExpression { type: "TSNonNullExpression", expression: MemberExpression { @@ -403,7 +403,7 @@ Program { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: MemberExpression { type: "MemberExpression", computed: false, @@ -507,7 +507,7 @@ Program { end: { column: 24, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "one", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call-with-non-null-assertion/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call-with-non-null-assertion/snapshots/2-TSESTree-Tokens.shot index 5419216c91f2..15346de0c07a 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call-with-non-null-assertion/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call-with-non-null-assertion/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics optional-chain-call-with-non-null-assertion TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call-with-non-null-assertion/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call-with-non-null-assertion/snapshots/3-Babel-AST.shot index bd28589abe28..ad8156ce3432 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call-with-non-null-assertion/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call-with-non-null-assertion/snapshots/3-Babel-AST.shot @@ -3,20 +3,20 @@ exports[`AST Fixtures legacy-fixtures basics optional-chain-call-with-non-null-assertion Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ChainExpression { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: TSNonNullExpression { type: "TSNonNullExpression", expression: MemberExpression { @@ -85,7 +85,7 @@ Program { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: MemberExpression { type: "MemberExpression", computed: false, @@ -175,7 +175,7 @@ Program { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: TSNonNullExpression { type: "TSNonNullExpression", expression: MemberExpression { @@ -244,7 +244,7 @@ Program { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: MemberExpression { type: "MemberExpression", computed: false, @@ -334,7 +334,7 @@ Program { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: TSNonNullExpression { type: "TSNonNullExpression", expression: MemberExpression { @@ -403,7 +403,7 @@ Program { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: MemberExpression { type: "MemberExpression", computed: false, @@ -507,7 +507,7 @@ Program { end: { column: 24, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "one", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call-with-non-null-assertion/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call-with-non-null-assertion/snapshots/4-Babel-Tokens.shot index 6bccada6b1f2..358f217826d1 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call-with-non-null-assertion/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call-with-non-null-assertion/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics optional-chain-call-with-non-null-assertion Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call-with-parens/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call-with-parens/snapshots/1-TSESTree-AST.shot index c7bb252b4848..31586978c94d 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call-with-parens/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call-with-parens/snapshots/1-TSESTree-AST.shot @@ -3,20 +3,20 @@ exports[`AST Fixtures legacy-fixtures basics optional-chain-call-with-parens TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ChainExpression { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: MemberExpression { type: "MemberExpression", computed: false, @@ -74,7 +74,7 @@ Program { type: "ExpressionStatement", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: MemberExpression { type: "MemberExpression", computed: false, @@ -157,7 +157,7 @@ Program { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: MemberExpression { type: "MemberExpression", computed: false, @@ -236,7 +236,7 @@ Program { type: "ExpressionStatement", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: MemberExpression { type: "MemberExpression", computed: false, @@ -340,7 +340,7 @@ Program { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: MemberExpression { type: "MemberExpression", computed: false, @@ -442,7 +442,7 @@ Program { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "one", @@ -479,12 +479,12 @@ Program { type: "ExpressionStatement", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: ChainExpression { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "one", @@ -531,10 +531,10 @@ Program { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "one", @@ -584,7 +584,7 @@ Program { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "one", @@ -655,7 +655,7 @@ Program { end: { column: 34, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "one", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call-with-parens/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call-with-parens/snapshots/2-TSESTree-Tokens.shot index 459e74257b08..27f1c2c1bfdc 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call-with-parens/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call-with-parens/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics optional-chain-call-with-parens TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call-with-parens/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call-with-parens/snapshots/3-Babel-AST.shot index 0ce3d2d09b0f..303d49828dd0 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call-with-parens/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call-with-parens/snapshots/3-Babel-AST.shot @@ -3,20 +3,20 @@ exports[`AST Fixtures legacy-fixtures basics optional-chain-call-with-parens Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ChainExpression { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: MemberExpression { type: "MemberExpression", computed: false, @@ -74,7 +74,7 @@ Program { type: "ExpressionStatement", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: MemberExpression { type: "MemberExpression", computed: false, @@ -157,7 +157,7 @@ Program { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: MemberExpression { type: "MemberExpression", computed: false, @@ -236,7 +236,7 @@ Program { type: "ExpressionStatement", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: MemberExpression { type: "MemberExpression", computed: false, @@ -340,7 +340,7 @@ Program { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: MemberExpression { type: "MemberExpression", computed: false, @@ -442,7 +442,7 @@ Program { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "one", @@ -479,12 +479,12 @@ Program { type: "ExpressionStatement", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: ChainExpression { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "one", @@ -531,10 +531,10 @@ Program { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "one", @@ -584,7 +584,7 @@ Program { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "one", @@ -655,7 +655,7 @@ Program { end: { column: 34, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "one", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call-with-parens/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call-with-parens/snapshots/4-Babel-Tokens.shot index 0cb653ce6e1d..29ea4343b468 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call-with-parens/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call-with-parens/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics optional-chain-call-with-parens Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call/snapshots/1-TSESTree-AST.shot index 87b6812a00bd..0099612e53ab 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call/snapshots/1-TSESTree-AST.shot @@ -3,20 +3,20 @@ exports[`AST Fixtures legacy-fixtures basics optional-chain-call TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ChainExpression { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: MemberExpression { type: "MemberExpression", computed: false, @@ -76,7 +76,7 @@ Program { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: MemberExpression { type: "MemberExpression", computed: false, @@ -157,7 +157,7 @@ Program { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: MemberExpression { type: "MemberExpression", computed: false, @@ -238,7 +238,7 @@ Program { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: MemberExpression { type: "MemberExpression", computed: false, @@ -340,7 +340,7 @@ Program { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: MemberExpression { type: "MemberExpression", computed: false, @@ -442,7 +442,7 @@ Program { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "one", @@ -481,10 +481,10 @@ Program { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "one", @@ -531,10 +531,10 @@ Program { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "one", @@ -584,7 +584,7 @@ Program { computed: false, object: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "one", @@ -655,7 +655,7 @@ Program { end: { column: 28, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "one", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call/snapshots/2-TSESTree-Tokens.shot index a6166185578b..4bf5412de9a4 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics optional-chain-call TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call/snapshots/3-Babel-AST.shot index 3a333f4accce..6f5c49982bc5 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call/snapshots/3-Babel-AST.shot @@ -3,20 +3,20 @@ exports[`AST Fixtures legacy-fixtures basics optional-chain-call Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ChainExpression { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: MemberExpression { type: "MemberExpression", computed: false, @@ -76,7 +76,7 @@ Program { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: MemberExpression { type: "MemberExpression", computed: false, @@ -157,7 +157,7 @@ Program { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: MemberExpression { type: "MemberExpression", computed: false, @@ -238,7 +238,7 @@ Program { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: MemberExpression { type: "MemberExpression", computed: false, @@ -340,7 +340,7 @@ Program { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: MemberExpression { type: "MemberExpression", computed: false, @@ -442,7 +442,7 @@ Program { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "one", @@ -481,10 +481,10 @@ Program { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "one", @@ -531,10 +531,10 @@ Program { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "one", @@ -584,7 +584,7 @@ Program { computed: false, object: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "one", @@ -655,7 +655,7 @@ Program { end: { column: 28, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "one", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call/snapshots/4-Babel-Tokens.shot index 0d13f439c057..62be2b6c6e58 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-call/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics optional-chain-call Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access-with-non-null-assertion/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access-with-non-null-assertion/snapshots/1-TSESTree-AST.shot index 0bf80db96652..c65995495de7 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access-with-non-null-assertion/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access-with-non-null-assertion/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics optional-chain-element-access-with-non-null-assertion TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ChainExpression { @@ -510,7 +510,7 @@ Program { end: { column: 24, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "one", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access-with-non-null-assertion/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access-with-non-null-assertion/snapshots/2-TSESTree-Tokens.shot index 0f5da703e774..e9cb3c3941d1 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access-with-non-null-assertion/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access-with-non-null-assertion/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics optional-chain-element-access-with-non-null-assertion TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access-with-non-null-assertion/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access-with-non-null-assertion/snapshots/3-Babel-AST.shot index e528bbb2c6f6..6443a61febc5 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access-with-non-null-assertion/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access-with-non-null-assertion/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics optional-chain-element-access-with-non-null-assertion Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ChainExpression { @@ -510,7 +510,7 @@ Program { end: { column: 24, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "one", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access-with-non-null-assertion/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access-with-non-null-assertion/snapshots/4-Babel-Tokens.shot index 36a5170e452e..28d0ca38cbed 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access-with-non-null-assertion/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access-with-non-null-assertion/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics optional-chain-element-access-with-non-null-assertion Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access-with-parens/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access-with-parens/snapshots/1-TSESTree-AST.shot index 4f4d118456f0..cadafd1e9277 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access-with-parens/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access-with-parens/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics optional-chain-element-access-with-parens TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ChainExpression { @@ -528,7 +528,7 @@ Program { end: { column: 37, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "one", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access-with-parens/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access-with-parens/snapshots/2-TSESTree-Tokens.shot index 414db5233e82..579fd793b63b 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access-with-parens/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access-with-parens/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics optional-chain-element-access-with-parens TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access-with-parens/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access-with-parens/snapshots/3-Babel-AST.shot index e3e00f2374cf..e24a72d2ec0f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access-with-parens/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access-with-parens/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics optional-chain-element-access-with-parens Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ChainExpression { @@ -528,7 +528,7 @@ Program { end: { column: 37, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "one", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access-with-parens/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access-with-parens/snapshots/4-Babel-Tokens.shot index ee0cddf55af1..062752ad62ef 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access-with-parens/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access-with-parens/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics optional-chain-element-access-with-parens Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access/snapshots/1-TSESTree-AST.shot index aac8b3313473..8b5125a55021 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics optional-chain-element-access TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ChainExpression { @@ -484,7 +484,7 @@ Program { end: { column: 31, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "one", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access/snapshots/2-TSESTree-Tokens.shot index 5b6e10e1b6be..1b003f62f0db 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics optional-chain-element-access TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access/snapshots/3-Babel-AST.shot index 6e6efb2622de..13e5fafb0575 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics optional-chain-element-access Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ChainExpression { @@ -484,7 +484,7 @@ Program { end: { column: 31, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "one", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access/snapshots/4-Babel-Tokens.shot index 0ab5ab722c74..0554e2504b0f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-element-access/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics optional-chain-element-access Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-with-non-null-assertion/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-with-non-null-assertion/snapshots/1-TSESTree-AST.shot index a06cd536542c..43dc0c615f91 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-with-non-null-assertion/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-with-non-null-assertion/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics optional-chain-with-non-null-assertion TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ChainExpression { @@ -267,7 +267,7 @@ Program { end: { column: 24, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "one", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-with-non-null-assertion/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-with-non-null-assertion/snapshots/2-TSESTree-Tokens.shot index 8d0d278ef581..434b5cff0d50 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-with-non-null-assertion/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-with-non-null-assertion/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics optional-chain-with-non-null-assertion TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-with-non-null-assertion/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-with-non-null-assertion/snapshots/3-Babel-AST.shot index bad46f1f86c6..077e4d6f2f9f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-with-non-null-assertion/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-with-non-null-assertion/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics optional-chain-with-non-null-assertion Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ChainExpression { @@ -267,7 +267,7 @@ Program { end: { column: 24, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "one", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-with-non-null-assertion/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-with-non-null-assertion/snapshots/4-Babel-Tokens.shot index f9a87fea35dd..49b9da67e019 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-with-non-null-assertion/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-with-non-null-assertion/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics optional-chain-with-non-null-assertion Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-with-parens/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-with-parens/snapshots/1-TSESTree-AST.shot index bb096f73fc4d..c664c59e267c 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-with-parens/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-with-parens/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics optional-chain-with-parens TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ChainExpression { @@ -513,7 +513,7 @@ Program { end: { column: 30, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "one", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-with-parens/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-with-parens/snapshots/2-TSESTree-Tokens.shot index 1eb248be623b..24fcb7d5cde6 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-with-parens/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-with-parens/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics optional-chain-with-parens TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-with-parens/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-with-parens/snapshots/3-Babel-AST.shot index e6234595770b..e54f2d38666c 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-with-parens/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-with-parens/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics optional-chain-with-parens Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ChainExpression { @@ -513,7 +513,7 @@ Program { end: { column: 30, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "one", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-with-parens/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-with-parens/snapshots/4-Babel-Tokens.shot index 03f7e69223a9..27f052c968a6 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-with-parens/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain-with-parens/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics optional-chain-with-parens Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain/snapshots/1-TSESTree-AST.shot index 613e9dc1559b..f45a86301ab5 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics optional-chain TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ChainExpression { @@ -401,7 +401,7 @@ Program { end: { column: 24, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "one", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain/snapshots/2-TSESTree-Tokens.shot index c71a12dbf612..b24717a88133 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics optional-chain TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain/snapshots/3-Babel-AST.shot index 65791fc1c951..931e5ffe93fe 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics optional-chain Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ChainExpression { @@ -401,7 +401,7 @@ Program { end: { column: 24, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "one", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain/snapshots/4-Babel-Tokens.shot index cd8a2c88b557..51bf302ad58b 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/optional-chain/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics optional-chain Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/parenthesized-use-strict/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/parenthesized-use-strict/snapshots/1-TSESTree-AST.shot index 2a96da6a571e..65062ca7898d 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/parenthesized-use-strict/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/parenthesized-use-strict/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics parenthesized-use-strict TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: Literal { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/parenthesized-use-strict/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/parenthesized-use-strict/snapshots/2-TSESTree-Tokens.shot index 2aace075ca7a..5ed2618726f2 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/parenthesized-use-strict/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/parenthesized-use-strict/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics parenthesized-use-strict TSESTree - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/parenthesized-use-strict/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/parenthesized-use-strict/snapshots/3-Babel-AST.shot index 6155a1ddfff1..fd7b77b97e59 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/parenthesized-use-strict/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/parenthesized-use-strict/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics parenthesized-use-strict Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: Literal { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/parenthesized-use-strict/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/parenthesized-use-strict/snapshots/4-Babel-Tokens.shot index f71352d11d37..53f0dd24e1c3 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/parenthesized-use-strict/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/parenthesized-use-strict/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics parenthesized-use-strict Babel - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/private-fields-in-in/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/private-fields-in-in/snapshots/1-TSESTree-AST.shot index d7babfef7b39..6b02a892b82d 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/private-fields-in-in/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/private-fields-in-in/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics private-fields-in-in TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, @@ -54,7 +54,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: BinaryExpression { @@ -105,7 +105,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", name: "arg", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/private-fields-in-in/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/private-fields-in-in/snapshots/2-TSESTree-Tokens.shot index 2a9e1c1a0e5e..b0e2efd2586d 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/private-fields-in-in/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/private-fields-in-in/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics private-fields-in-in TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/private-fields-in-in/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/private-fields-in-in/snapshots/3-Babel-AST.shot index 67ea78fcbfd0..79edd4a79eb5 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/private-fields-in-in/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/private-fields-in-in/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics private-fields-in-in Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, @@ -51,7 +51,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: BinaryExpression { @@ -102,7 +102,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", name: "arg", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/private-fields-in-in/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/private-fields-in-in/snapshots/4-Babel-Tokens.shot index 1e0dbf537381..838d2d35fca0 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/private-fields-in-in/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/private-fields-in-in/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics private-fields-in-in Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/readonly-arrays/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/readonly-arrays/snapshots/1-TSESTree-AST.shot index 813090394049..c124f4f8825e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/readonly-arrays/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/readonly-arrays/snapshots/1-TSESTree-AST.shot @@ -3,18 +3,18 @@ exports[`AST Fixtures legacy-fixtures basics readonly-arrays TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: MemberExpression { type: "MemberExpression", computed: false, @@ -65,7 +65,7 @@ Program { type: "ExpressionStatement", expression: CallExpression { type: "CallExpression", - arguments: Array [ + arguments: [ Literal { type: "Literal", raw: "'hello!'", @@ -144,7 +144,7 @@ Program { end: { column: 12, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "arr", @@ -164,7 +164,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSStringKeyword { type: "TSStringKeyword", @@ -216,12 +216,12 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: MemberExpression { type: "MemberExpression", computed: false, @@ -272,7 +272,7 @@ Program { type: "ExpressionStatement", expression: CallExpression { type: "CallExpression", - arguments: Array [ + arguments: [ Literal { type: "Literal", raw: "'hello!'", @@ -351,7 +351,7 @@ Program { end: { column: 12, line: 8 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "arr", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/readonly-arrays/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/readonly-arrays/snapshots/2-TSESTree-Tokens.shot index e08d29ea838b..a47334e60fcb 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/readonly-arrays/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/readonly-arrays/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics readonly-arrays TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/readonly-arrays/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/readonly-arrays/snapshots/3-Babel-AST.shot index efa2e6c28179..f46ee72afa84 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/readonly-arrays/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/readonly-arrays/snapshots/3-Babel-AST.shot @@ -3,18 +3,18 @@ exports[`AST Fixtures legacy-fixtures basics readonly-arrays Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: MemberExpression { type: "MemberExpression", computed: false, @@ -65,7 +65,7 @@ Program { type: "ExpressionStatement", expression: CallExpression { type: "CallExpression", - arguments: Array [ + arguments: [ Literal { type: "Literal", raw: "'hello!'", @@ -144,7 +144,7 @@ Program { end: { column: 12, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "arr", @@ -164,7 +164,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSStringKeyword { type: "TSStringKeyword", @@ -216,12 +216,12 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: MemberExpression { type: "MemberExpression", computed: false, @@ -272,7 +272,7 @@ Program { type: "ExpressionStatement", expression: CallExpression { type: "CallExpression", - arguments: Array [ + arguments: [ Literal { type: "Literal", raw: "'hello!'", @@ -351,7 +351,7 @@ Program { end: { column: 12, line: 8 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "arr", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/readonly-arrays/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/readonly-arrays/snapshots/4-Babel-Tokens.shot index 253110e85cfa..b86a6b65fdf6 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/readonly-arrays/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/readonly-arrays/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics readonly-arrays Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/readonly-tuples/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/readonly-tuples/snapshots/1-TSESTree-AST.shot index 5635686479b9..48119b57c755 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/readonly-tuples/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/readonly-tuples/snapshots/1-TSESTree-AST.shot @@ -3,18 +3,18 @@ exports[`AST Fixtures legacy-fixtures basics readonly-tuples TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: CallExpression { type: "CallExpression", - arguments: Array [ + arguments: [ MemberExpression { type: "MemberExpression", computed: true, @@ -176,7 +176,7 @@ Program { end: { column: 12, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "pair", @@ -187,7 +187,7 @@ Program { operator: "readonly", typeAnnotation: TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSStringKeyword { type: "TSStringKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/readonly-tuples/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/readonly-tuples/snapshots/2-TSESTree-Tokens.shot index 3e8972497ad6..efad66634ceb 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/readonly-tuples/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/readonly-tuples/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics readonly-tuples TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/readonly-tuples/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/readonly-tuples/snapshots/3-Babel-AST.shot index dd2736244609..264ccbb6957d 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/readonly-tuples/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/readonly-tuples/snapshots/3-Babel-AST.shot @@ -3,18 +3,18 @@ exports[`AST Fixtures legacy-fixtures basics readonly-tuples Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: CallExpression { type: "CallExpression", - arguments: Array [ + arguments: [ MemberExpression { type: "MemberExpression", computed: true, @@ -176,7 +176,7 @@ Program { end: { column: 12, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "pair", @@ -187,7 +187,7 @@ Program { operator: "readonly", typeAnnotation: TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSStringKeyword { type: "TSStringKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/readonly-tuples/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/readonly-tuples/snapshots/4-Babel-Tokens.shot index 746e9a2b62d6..447590b8e3b7 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/readonly-tuples/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/readonly-tuples/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics readonly-tuples Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-and-and/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-and-and/snapshots/1-TSESTree-AST.shot index eb4f0c1cbdb3..c48fbc7c676c 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-and-and/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-and-and/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics short-circuiting-assignment-and-and TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: AssignmentExpression { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-and-and/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-and-and/snapshots/2-TSESTree-Tokens.shot index f6e8991d7939..c955bd9ff432 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-and-and/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-and-and/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics short-circuiting-assignment-and-and TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "a", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-and-and/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-and-and/snapshots/3-Babel-AST.shot index 89556c77bf10..6afb7e27f8a0 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-and-and/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-and-and/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics short-circuiting-assignment-and-and Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: AssignmentExpression { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-and-and/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-and-and/snapshots/4-Babel-Tokens.shot index 1986e288c37e..6494dbffc096 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-and-and/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-and-and/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics short-circuiting-assignment-and-and Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "a", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-or-or/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-or-or/snapshots/1-TSESTree-AST.shot index c0e966557fde..070ffd82aed6 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-or-or/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-or-or/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics short-circuiting-assignment-or-or TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: AssignmentExpression { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-or-or/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-or-or/snapshots/2-TSESTree-Tokens.shot index b3c94972f6ea..39ed513beb3f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-or-or/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-or-or/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics short-circuiting-assignment-or-or TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "a", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-or-or/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-or-or/snapshots/3-Babel-AST.shot index 43f9150b7d57..45dfc3cd5e10 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-or-or/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-or-or/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics short-circuiting-assignment-or-or Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: AssignmentExpression { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-or-or/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-or-or/snapshots/4-Babel-Tokens.shot index 8e26dab593b3..24b36ff9ef2f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-or-or/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-or-or/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics short-circuiting-assignment-or-or Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "a", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-question-question/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-question-question/snapshots/1-TSESTree-AST.shot index e007edefd48c..23a4dbc9f5dc 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-question-question/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-question-question/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics short-circuiting-assignment-question-question TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: AssignmentExpression { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-question-question/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-question-question/snapshots/2-TSESTree-Tokens.shot index 272475b5e97b..7b60e526dab7 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-question-question/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-question-question/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics short-circuiting-assignment-question-question TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "a", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-question-question/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-question-question/snapshots/3-Babel-AST.shot index d9505ab6ce22..f8ae8da5d1d9 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-question-question/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-question-question/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics short-circuiting-assignment-question-question Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: AssignmentExpression { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-question-question/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-question-question/snapshots/4-Babel-Tokens.shot index 01745dcfd04b..bc6291f5f53c 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-question-question/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/short-circuiting-assignment-question-question/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics short-circuiting-assignment-question-question Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "a", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/symbol-type-param/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/symbol-type-param/snapshots/1-TSESTree-AST.shot index 3047970439eb..1e534994de5d 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/symbol-type-param/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/symbol-type-param/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics symbol-type-param TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [113, 115], loc: { @@ -29,7 +29,7 @@ Program { end: { column: 13, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "abc", @@ -49,7 +49,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSSymbolKeyword { type: "TSSymbolKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/symbol-type-param/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/symbol-type-param/snapshots/2-TSESTree-Tokens.shot index 485a5e615184..541178f71070 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/symbol-type-param/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/symbol-type-param/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics symbol-type-param TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/symbol-type-param/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/symbol-type-param/snapshots/3-Babel-AST.shot index 4871671855da..76d927add658 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/symbol-type-param/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/symbol-type-param/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics symbol-type-param Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [113, 115], loc: { @@ -29,7 +29,7 @@ Program { end: { column: 13, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "abc", @@ -49,7 +49,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSSymbolKeyword { type: "TSSymbolKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/symbol-type-param/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/symbol-type-param/snapshots/4-Babel-Tokens.shot index e27091364a07..568f5fdbb8a4 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/symbol-type-param/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/symbol-type-param/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics symbol-type-param Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export-function-type/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export-function-type/snapshots/1-TSESTree-AST.shot index 22c878c0653e..3b59325ddb61 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export-function-type/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export-function-type/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics type-alias-declaration-export-function-type TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -21,7 +21,7 @@ Program { }, typeAnnotation: TSFunctionType { type: "TSFunctionType", - params: Array [ + params: [ Identifier { type: "Identifier", name: "a", @@ -85,7 +85,7 @@ Program { }, exportKind: "type", source: null, - specifiers: Array [], + specifiers: [], range: [73, 120], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export-function-type/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export-function-type/snapshots/2-TSESTree-Tokens.shot index 2ed7f9099252..45fa05d50a45 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export-function-type/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export-function-type/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-alias-declaration-export-function-type TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export-function-type/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export-function-type/snapshots/3-Babel-AST.shot index cf4bd8d5f0e7..57b6f8bd343d 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export-function-type/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export-function-type/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics type-alias-declaration-export-function-type Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -21,7 +21,7 @@ Program { }, typeAnnotation: TSFunctionType { type: "TSFunctionType", - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "a", @@ -85,7 +85,7 @@ Program { }, exportKind: "type", source: null, - specifiers: Array [], + specifiers: [], range: [73, 120], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export-function-type/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export-function-type/snapshots/4-Babel-Tokens.shot index 3748f9c29c9c..b9b2e28f4130 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export-function-type/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export-function-type/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-alias-declaration-export-function-type Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export-object-type/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export-object-type/snapshots/1-TSESTree-AST.shot index 748786cc25e4..f58fd04a8c55 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export-object-type/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export-object-type/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics type-alias-declaration-export-object-type TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -21,7 +21,7 @@ Program { }, typeAnnotation: TSTypeLiteral { type: "TSTypeLiteral", - members: Array [ + members: [ TSPropertySignature { type: "TSPropertySignature", computed: false, @@ -77,7 +77,7 @@ Program { }, exportKind: "type", source: null, - specifiers: Array [], + specifiers: [], range: [73, 123], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export-object-type/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export-object-type/snapshots/2-TSESTree-Tokens.shot index eada6d4fea15..8b2b72f56e6e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export-object-type/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export-object-type/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-alias-declaration-export-object-type TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export-object-type/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export-object-type/snapshots/3-Babel-AST.shot index 17474aaaa5c7..4db6a9bab8ff 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export-object-type/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export-object-type/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics type-alias-declaration-export-object-type Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -21,7 +21,7 @@ Program { }, typeAnnotation: TSTypeLiteral { type: "TSTypeLiteral", - members: Array [ + members: [ TSPropertySignature { type: "TSPropertySignature", computed: false, @@ -77,7 +77,7 @@ Program { }, exportKind: "type", source: null, - specifiers: Array [], + specifiers: [], range: [73, 123], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export-object-type/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export-object-type/snapshots/4-Babel-Tokens.shot index efa58e26dd9a..e227ee34cf0a 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export-object-type/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export-object-type/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-alias-declaration-export-object-type Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export/snapshots/1-TSESTree-AST.shot index 1e784b69eaab..861f3c6fc676 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics type-alias-declaration-export TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -21,7 +21,7 @@ Program { }, typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSStringKeyword { type: "TSStringKeyword", @@ -57,7 +57,7 @@ Program { }, exportKind: "type", source: null, - specifiers: Array [], + specifiers: [], range: [73, 113], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export/snapshots/2-TSESTree-Tokens.shot index 61db5358f3b0..266133fc229a 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-alias-declaration-export TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export/snapshots/3-Babel-AST.shot index 98560d81113b..e964850c539c 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics type-alias-declaration-export Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -21,7 +21,7 @@ Program { }, typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSStringKeyword { type: "TSStringKeyword", @@ -57,7 +57,7 @@ Program { }, exportKind: "type", source: null, - specifiers: Array [], + specifiers: [], range: [73, 113], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export/snapshots/4-Babel-Tokens.shot index 25a65b4e78cd..0041dd46864e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-export/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-alias-declaration-export Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-with-constrained-type-parameter/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-with-constrained-type-parameter/snapshots/1-TSESTree-AST.shot index 795cf38b0f51..c9e307bfb339 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-with-constrained-type-parameter/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-with-constrained-type-parameter/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics type-alias-declaration-with-constrained-type-parameter TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,7 +18,7 @@ Program { }, typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -33,7 +33,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -97,12 +97,13 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, constraint: TSTypeLiteral { type: "TSTypeLiteral", - members: Array [], + members: [], range: [95, 97], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-with-constrained-type-parameter/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-with-constrained-type-parameter/snapshots/2-TSESTree-Tokens.shot index 4cba7521eb04..274229ca7769 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-with-constrained-type-parameter/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-with-constrained-type-parameter/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-alias-declaration-with-constrained-type-parameter TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-with-constrained-type-parameter/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-with-constrained-type-parameter/snapshots/3-Babel-AST.shot index fc70f27dc928..d93aa7d9c979 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-with-constrained-type-parameter/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-with-constrained-type-parameter/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics type-alias-declaration-with-constrained-type-parameter Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,7 +18,7 @@ Program { }, typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -33,7 +33,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -97,12 +97,12 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", constraint: TSTypeLiteral { type: "TSTypeLiteral", - members: Array [], + members: [], range: [95, 97], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-with-constrained-type-parameter/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-with-constrained-type-parameter/snapshots/4-Babel-Tokens.shot index a6d0d2061ec2..f0cff517a3e9 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-with-constrained-type-parameter/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-with-constrained-type-parameter/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-alias-declaration-with-constrained-type-parameter Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-with-constrained-type-parameter/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-with-constrained-type-parameter/snapshots/5-AST-Alignment-AST.shot index dc8fc8c015ac..e451c313454b 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-with-constrained-type-parameter/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration-with-constrained-type-parameter/snapshots/5-AST-Alignment-AST.shot @@ -104,6 +104,7 @@ exports[`AST Fixtures legacy-fixtures basics type-alias-declaration-with-constra params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, constraint: TSTypeLiteral { type: 'TSTypeLiteral', members: Array [], diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration/snapshots/1-TSESTree-AST.shot index 0a8917e84b8d..8175a87d5b0a 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics type-alias-declaration TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,7 +18,7 @@ Program { }, typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -33,7 +33,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -97,9 +97,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration/snapshots/2-TSESTree-Tokens.shot index 23669ec18d7e..cc8624c48297 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-alias-declaration TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration/snapshots/3-Babel-AST.shot index cb7002419354..948616134618 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics type-alias-declaration Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,7 +18,7 @@ Program { }, typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -33,7 +33,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -97,7 +97,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration/snapshots/4-Babel-Tokens.shot index 57e122c71c64..7fad124d329d 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-alias-declaration Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration/snapshots/5-AST-Alignment-AST.shot index 37f3b64b54e1..95d18c2f62ca 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration/snapshots/5-AST-Alignment-AST.shot @@ -104,6 +104,7 @@ exports[`AST Fixtures legacy-fixtures basics type-alias-declaration AST Alignmen params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-object-without-annotation/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-object-without-annotation/snapshots/1-TSESTree-AST.shot index 4db74606bd41..8daa9d702f4d 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-object-without-annotation/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-object-without-annotation/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics type-alias-object-without-annotation TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,7 +18,7 @@ Program { }, typeAnnotation: TSTypeLiteral { type: "TSTypeLiteral", - members: Array [ + members: [ TSPropertySignature { type: "TSPropertySignature", computed: false, diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-object-without-annotation/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-object-without-annotation/snapshots/2-TSESTree-Tokens.shot index 5db3039c0cc1..3214d334880c 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-object-without-annotation/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-object-without-annotation/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-alias-object-without-annotation TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-object-without-annotation/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-object-without-annotation/snapshots/3-Babel-AST.shot index 5a0ed2139334..d617d622e7ea 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-object-without-annotation/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-object-without-annotation/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics type-alias-object-without-annotation Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,7 +18,7 @@ Program { }, typeAnnotation: TSTypeLiteral { type: "TSTypeLiteral", - members: Array [ + members: [ TSPropertySignature { type: "TSPropertySignature", computed: false, diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-object-without-annotation/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-object-without-annotation/snapshots/4-Babel-Tokens.shot index ed31551b027e..862f744f61b0 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-object-without-annotation/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-object-without-annotation/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-alias-object-without-annotation Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-arrow-function/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-arrow-function/snapshots/1-TSESTree-AST.shot index 15cdfc47fb7b..eaa25a49229b 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-arrow-function/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-arrow-function/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics type-assertion-in-arrow-function TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -24,7 +24,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: null, @@ -46,7 +46,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", name: "x", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-arrow-function/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-arrow-function/snapshots/2-TSESTree-Tokens.shot index c702a1cb1039..223c509ec53f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-arrow-function/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-arrow-function/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-assertion-in-arrow-function TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "const", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-arrow-function/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-arrow-function/snapshots/3-Babel-AST.shot index 9a750d3f8be4..68a0ea78738f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-arrow-function/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-arrow-function/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics type-assertion-in-arrow-function Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -24,7 +24,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: null, @@ -46,7 +46,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", name: "x", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-arrow-function/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-arrow-function/snapshots/4-Babel-Tokens.shot index 2896be461888..f58d002b5d75 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-arrow-function/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-arrow-function/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-assertion-in-arrow-function Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "const", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-function/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-function/snapshots/1-TSESTree-AST.shot index 20567f67bba4..6831aafee65d 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-function/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-function/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics type-assertion-in-function TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: null, @@ -40,7 +40,7 @@ Program { end: { column: 22, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "x", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-function/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-function/snapshots/2-TSESTree-Tokens.shot index 359e8351cfcd..aa007af9c292 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-function/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-function/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-assertion-in-function TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-function/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-function/snapshots/3-Babel-AST.shot index 7d4752c4b1df..ae0b68016043 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-function/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-function/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics type-assertion-in-function Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: null, @@ -40,7 +40,7 @@ Program { end: { column: 22, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "x", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-function/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-function/snapshots/4-Babel-Tokens.shot index 85b85c43dfe6..234acc2c15bc 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-function/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-function/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-assertion-in-function Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-interface/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-interface/snapshots/1-TSESTree-AST.shot index e9eda1815c30..98a32fbd3473 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-interface/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-interface/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics type-assertion-in-interface TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [ + body: [ TSMethodSignature { type: "TSMethodSignature", computed: false, @@ -23,7 +23,7 @@ Program { }, }, kind: "method", - params: Array [ + params: [ Identifier { type: "Identifier", name: "node", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-interface/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-interface/snapshots/2-TSESTree-Tokens.shot index a0c1771bf2f1..4ea7507189ae 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-interface/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-interface/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-assertion-in-interface TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "interface", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-interface/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-interface/snapshots/3-Babel-AST.shot index 3ed9d7b015d2..6bce607bf343 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-interface/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-interface/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics type-assertion-in-interface Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [ + body: [ TSMethodSignature { type: "TSMethodSignature", computed: false, @@ -23,7 +23,7 @@ Program { }, }, kind: "method", - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "node", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-interface/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-interface/snapshots/4-Babel-Tokens.shot index bf2cbb76afe6..180bc848f196 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-interface/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-interface/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-assertion-in-interface Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "interface", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-method/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-method/snapshots/1-TSESTree-AST.shot index 1e3f0fff5285..767424fd8632 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-method/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-method/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics type-assertion-in-method TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -30,7 +30,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: null, @@ -52,7 +52,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSTypePredicate { @@ -117,7 +117,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: null, @@ -139,7 +139,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSTypePredicate { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-method/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-method/snapshots/2-TSESTree-Tokens.shot index fe9877a88dba..29b5b7a67915 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-method/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-method/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-assertion-in-method TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-method/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-method/snapshots/3-Babel-AST.shot index 41f1d16a8d4c..18b70b35395a 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-method/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-method/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics type-assertion-in-method Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -29,7 +29,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: null, @@ -51,7 +51,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSTypePredicate { @@ -114,7 +114,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: null, @@ -136,7 +136,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSTypePredicate { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-method/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-method/snapshots/4-Babel-Tokens.shot index dd17465477c6..eeb937462f52 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-method/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-in-method/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-assertion-in-method Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-arrow-function/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-arrow-function/snapshots/1-TSESTree-AST.shot index 75bb5e4c3ed5..807e672b1f11 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-arrow-function/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-arrow-function/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics type-assertion-with-guard-in-arrow-function TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -24,7 +24,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: null, @@ -46,7 +46,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", name: "x", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-arrow-function/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-arrow-function/snapshots/2-TSESTree-Tokens.shot index 54536cb2f091..65c36b9dc32c 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-arrow-function/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-arrow-function/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-assertion-with-guard-in-arrow-function TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "const", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-arrow-function/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-arrow-function/snapshots/3-Babel-AST.shot index 65772b3dcdc9..4575fe6ac0cf 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-arrow-function/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-arrow-function/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics type-assertion-with-guard-in-arrow-function Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -24,7 +24,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: null, @@ -46,7 +46,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", name: "x", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-arrow-function/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-arrow-function/snapshots/4-Babel-Tokens.shot index 7795a2d7043f..0dd2eea76024 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-arrow-function/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-arrow-function/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-assertion-with-guard-in-arrow-function Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "const", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-function/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-function/snapshots/1-TSESTree-AST.shot index 8bbe9504a338..b1e44ff5204f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-function/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-function/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics type-assertion-with-guard-in-function TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: null, @@ -40,7 +40,7 @@ Program { end: { column: 27, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "x", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-function/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-function/snapshots/2-TSESTree-Tokens.shot index c51686cd7398..e8dcd80d6e6f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-function/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-function/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-assertion-with-guard-in-function TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-function/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-function/snapshots/3-Babel-AST.shot index 649fdaa53020..6aefd994c410 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-function/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-function/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics type-assertion-with-guard-in-function Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: null, @@ -40,7 +40,7 @@ Program { end: { column: 27, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "x", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-function/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-function/snapshots/4-Babel-Tokens.shot index eff997f48bf8..fa10d2635ad3 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-function/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-function/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-assertion-with-guard-in-function Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-interface/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-interface/snapshots/1-TSESTree-AST.shot index 091fa336e78c..af78d362c211 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-interface/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-interface/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics type-assertion-with-guard-in-interface TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [ + body: [ TSMethodSignature { type: "TSMethodSignature", computed: false, @@ -23,7 +23,7 @@ Program { }, }, kind: "method", - params: Array [ + params: [ Identifier { type: "Identifier", name: "node", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-interface/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-interface/snapshots/2-TSESTree-Tokens.shot index d867088a0b4e..63a18c1bfc03 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-interface/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-interface/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-assertion-with-guard-in-interface TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "interface", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-interface/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-interface/snapshots/3-Babel-AST.shot index 21b04022e101..351c8a07e8d8 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-interface/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-interface/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics type-assertion-with-guard-in-interface Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [ + body: [ TSMethodSignature { type: "TSMethodSignature", computed: false, @@ -23,7 +23,7 @@ Program { }, }, kind: "method", - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "node", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-interface/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-interface/snapshots/4-Babel-Tokens.shot index 3fe9263a2a2f..172e07c3defe 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-interface/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-interface/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-assertion-with-guard-in-interface Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "interface", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-method/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-method/snapshots/1-TSESTree-AST.shot index a3c5693ed3dc..dcbca050ea5c 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-method/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-method/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics type-assertion-with-guard-in-method TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -30,7 +30,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: null, @@ -52,7 +52,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSTypePredicate { @@ -134,7 +134,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: null, @@ -156,7 +156,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSTypePredicate { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-method/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-method/snapshots/2-TSESTree-Tokens.shot index 675fbc54f5b2..64747ff128d5 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-method/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-method/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-assertion-with-guard-in-method TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-method/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-method/snapshots/3-Babel-AST.shot index 69dac50a8b95..438c322722f3 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-method/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-method/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics type-assertion-with-guard-in-method Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -29,7 +29,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: null, @@ -51,7 +51,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSTypePredicate { @@ -131,7 +131,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: null, @@ -153,7 +153,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSTypePredicate { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-method/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-method/snapshots/4-Babel-Tokens.shot index 683358c39af4..5e3f2534e3d5 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-method/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-method/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-assertion-with-guard-in-method Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-arrow-function/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-arrow-function/snapshots/1-TSESTree-AST.shot index 76dcf3de2d25..6450b0a1c009 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-arrow-function/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-arrow-function/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics type-guard-in-arrow-function TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -24,7 +24,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: BinaryExpression { @@ -87,7 +87,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", name: "x", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-arrow-function/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-arrow-function/snapshots/2-TSESTree-Tokens.shot index 87f244b8ef10..b5462657a455 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-arrow-function/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-arrow-function/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-guard-in-arrow-function TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "const", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-arrow-function/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-arrow-function/snapshots/3-Babel-AST.shot index 1326840b778a..5617b1af2f0a 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-arrow-function/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-arrow-function/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics type-guard-in-arrow-function Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -24,7 +24,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: BinaryExpression { @@ -87,7 +87,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", name: "x", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-arrow-function/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-arrow-function/snapshots/4-Babel-Tokens.shot index 78e9c0a89723..3f6d7603149f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-arrow-function/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-arrow-function/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-guard-in-arrow-function Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "const", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-function/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-function/snapshots/1-TSESTree-AST.shot index 2bea2721280b..ddf991e4e459 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-function/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-function/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics type-guard-in-function TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: BinaryExpression { @@ -81,7 +81,7 @@ Program { end: { column: 17, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "x", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-function/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-function/snapshots/2-TSESTree-Tokens.shot index acda059bc114..2659b9dd1f31 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-function/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-function/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-guard-in-function TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-function/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-function/snapshots/3-Babel-AST.shot index 8a6b2898251d..4c9647e1b195 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-function/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-function/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures basics type-guard-in-function Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: BinaryExpression { @@ -81,7 +81,7 @@ Program { end: { column: 17, line: 3 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "x", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-function/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-function/snapshots/4-Babel-Tokens.shot index 75ff2acd0d2f..7f8671f08026 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-function/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-function/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-guard-in-function Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-interface/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-interface/snapshots/1-TSESTree-AST.shot index 8337484f095d..46fd37dbe377 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-interface/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-interface/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics type-guard-in-interface TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [ + body: [ TSMethodSignature { type: "TSMethodSignature", computed: false, @@ -23,7 +23,7 @@ Program { }, }, kind: "method", - params: Array [ + params: [ Identifier { type: "Identifier", name: "node", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-interface/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-interface/snapshots/2-TSESTree-Tokens.shot index 9edb0fa8cf47..feb809ce0d63 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-interface/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-interface/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-guard-in-interface TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "interface", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-interface/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-interface/snapshots/3-Babel-AST.shot index fa1e37ee0e4d..062c7adf44a9 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-interface/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-interface/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics type-guard-in-interface Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [ + body: [ TSMethodSignature { type: "TSMethodSignature", computed: false, @@ -23,7 +23,7 @@ Program { }, }, kind: "method", - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "node", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-interface/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-interface/snapshots/4-Babel-Tokens.shot index dd8e4bd4eeae..176427a578ad 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-interface/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-interface/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-guard-in-interface Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "interface", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-method/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-method/snapshots/1-TSESTree-AST.shot index 4ca55e047db6..b4bf6d1f888b 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-method/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-method/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics type-guard-in-method TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -30,7 +30,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: BinaryExpression { @@ -80,7 +80,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSTypePredicate { @@ -162,7 +162,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: BinaryExpression { @@ -212,7 +212,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSTypePredicate { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-method/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-method/snapshots/2-TSESTree-Tokens.shot index e6d67cf0f375..1c8ef57fc133 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-method/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-method/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-guard-in-method TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-method/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-method/snapshots/3-Babel-AST.shot index 68a1b6492a9c..1a1c5742f961 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-method/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-method/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics type-guard-in-method Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -29,7 +29,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: BinaryExpression { @@ -79,7 +79,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSTypePredicate { @@ -159,7 +159,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: BinaryExpression { @@ -209,7 +209,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSTypePredicate { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-method/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-method/snapshots/4-Babel-Tokens.shot index 596d81964769..44baf1a4ebd2 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-method/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-guard-in-method/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-guard-in-method Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type-with-type-parameters-in-type-reference/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type-with-type-parameters-in-type-reference/snapshots/1-TSESTree-AST.shot index d43098f77886..3ff06704e031 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type-with-type-parameters-in-type-reference/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type-with-type-parameters-in-type-reference/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics type-import-type-with-type-parameters-in-type-reference TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -30,7 +30,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSImportType { type: "TSImportType", isTypeOf: false, @@ -66,7 +66,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSAnyKeyword { type: "TSAnyKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type-with-type-parameters-in-type-reference/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type-with-type-parameters-in-type-reference/snapshots/2-TSESTree-Tokens.shot index 883e01509e7d..a729cbb666cd 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type-with-type-parameters-in-type-reference/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type-with-type-parameters-in-type-reference/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-import-type-with-type-parameters-in-type-reference TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type-with-type-parameters-in-type-reference/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type-with-type-parameters-in-type-reference/snapshots/3-Babel-AST.shot index 990c67030635..6f7e2955b89e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type-with-type-parameters-in-type-reference/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type-with-type-parameters-in-type-reference/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics type-import-type-with-type-parameters-in-type-reference Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -30,7 +30,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSImportType { type: "TSImportType", argument: Literal { @@ -56,7 +56,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSAnyKeyword { type: "TSAnyKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type-with-type-parameters-in-type-reference/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type-with-type-parameters-in-type-reference/snapshots/4-Babel-Tokens.shot index a8b1491c2061..a85f4d0e9bc8 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type-with-type-parameters-in-type-reference/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type-with-type-parameters-in-type-reference/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-import-type-with-type-parameters-in-type-reference Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type-with-type-parameters-in-type-reference/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type-with-type-parameters-in-type-reference/snapshots/5-AST-Alignment-AST.shot index be524030353d..b3d492c1c090 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type-with-type-parameters-in-type-reference/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type-with-type-parameters-in-type-reference/snapshots/5-AST-Alignment-AST.shot @@ -42,7 +42,7 @@ exports[`AST Fixtures legacy-fixtures basics type-import-type-with-type-paramete - type: 'TSLiteralType', - literal: Literal { - type: 'Literal', -- raw: '\\\\'\\\\'', +- raw: '\\'\\'', - value: '', - - range: [91, 93], @@ -53,7 +53,7 @@ exports[`AST Fixtures legacy-fixtures basics type-import-type-with-type-paramete - }, + argument: Literal { + type: 'Literal', -+ raw: '\\\\'\\\\'', ++ raw: '\\'\\'', + value: '', range: [91, 93], diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type/snapshots/1-TSESTree-AST.shot index 8da69b43079c..46ca24b80299 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics type-import-type TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -102,7 +102,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type/snapshots/2-TSESTree-Tokens.shot index 693830fdd0dd..86440e09cfaa 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-import-type TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type/snapshots/3-Babel-AST.shot index d577d2310a32..0fac83d7f207 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics type-import-type Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -89,7 +89,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type/snapshots/4-Babel-Tokens.shot index b857cac00346..4256d58cc7b1 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-import-type Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type/snapshots/5-AST-Alignment-AST.shot index 7eb35747e26d..bc1a96cae671 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-import-type/snapshots/5-AST-Alignment-AST.shot @@ -32,7 +32,7 @@ exports[`AST Fixtures legacy-fixtures basics type-import-type AST Alignment - AS + type: 'TSImportType', + argument: Literal { type: 'Literal', - raw: '\\\\'A\\\\'', + raw: '\\'A\\'', value: 'A', range: [96, 99], @@ -86,7 +86,7 @@ exports[`AST Fixtures legacy-fixtures basics type-import-type AST Alignment - AS - type: 'TSLiteralType', - literal: Literal { - type: 'Literal', -- raw: '\\\\'B\\\\'', +- raw: '\\'B\\'', - value: 'B', - - range: [118, 121], @@ -97,7 +97,7 @@ exports[`AST Fixtures legacy-fixtures basics type-import-type AST Alignment - AS - }, + argument: Literal { + type: 'Literal', -+ raw: '\\\\'B\\\\'', ++ raw: '\\'B\\'', + value: 'B', range: [118, 121], diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-export-specifiers/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-export-specifiers/snapshots/1-TSESTree-AST.shot index a34c4a80e3e8..f5d04acee7b8 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-export-specifiers/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-export-specifiers/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics type-only-export-specifiers TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: null, exportKind: "value", source: Literal { @@ -20,7 +20,7 @@ Program { end: { column: 36, line: 3 }, }, }, - specifiers: Array [ + specifiers: [ ExportSpecifier { type: "ExportSpecifier", exported: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-export-specifiers/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-export-specifiers/snapshots/2-TSESTree-Tokens.shot index 3280ea010fa8..abc413b3fe60 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-export-specifiers/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-export-specifiers/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-only-export-specifiers TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-export-specifiers/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-export-specifiers/snapshots/3-Babel-AST.shot index 174042ed3ad9..63fad08067d5 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-export-specifiers/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-export-specifiers/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics type-only-export-specifiers Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: null, exportKind: "value", source: Literal { @@ -20,7 +20,7 @@ Program { end: { column: 36, line: 3 }, }, }, - specifiers: Array [ + specifiers: [ ExportSpecifier { type: "ExportSpecifier", exported: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-export-specifiers/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-export-specifiers/snapshots/4-Babel-Tokens.shot index d11606f25662..9e084aa3850f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-export-specifiers/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-export-specifiers/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-only-export-specifiers Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-import-specifiers/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-import-specifiers/snapshots/1-TSESTree-AST.shot index 8e636185a48b..9b82dc5f9f2e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-import-specifiers/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-import-specifiers/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics type-only-import-specifiers TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ImportDeclaration { type: "ImportDeclaration", - assertions: Array [], + assertions: [], importKind: "value", source: Literal { type: "Literal", @@ -19,7 +19,7 @@ Program { end: { column: 36, line: 3 }, }, }, - specifiers: Array [ + specifiers: [ ImportSpecifier { type: "ImportSpecifier", imported: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-import-specifiers/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-import-specifiers/snapshots/2-TSESTree-Tokens.shot index cfd3524adc17..8b95ed9fa420 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-import-specifiers/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-import-specifiers/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-only-import-specifiers TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-import-specifiers/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-import-specifiers/snapshots/3-Babel-AST.shot index 9c4e521e00a0..4cd73830077e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-import-specifiers/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-import-specifiers/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics type-only-import-specifiers Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ImportDeclaration { type: "ImportDeclaration", - assertions: Array [], + assertions: [], importKind: "value", source: Literal { type: "Literal", @@ -19,7 +19,7 @@ Program { end: { column: 36, line: 3 }, }, }, - specifiers: Array [ + specifiers: [ ImportSpecifier { type: "ImportSpecifier", imported: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-import-specifiers/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-import-specifiers/snapshots/4-Babel-Tokens.shot index 702fdab12a5f..a461fc4b32a4 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-import-specifiers/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-import-specifiers/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-only-import-specifiers Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "import", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments-heritage/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments-heritage/snapshots/1-TSESTree-AST.shot index 576e0c9b98a9..a516cc87f4ed 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments-heritage/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments-heritage/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics type-parameters-comments-heritage TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [141, 143], loc: { @@ -38,7 +38,7 @@ Program { }, superTypeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -68,9 +68,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", @@ -109,7 +110,7 @@ Program { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [232, 234], loc: { @@ -139,7 +140,7 @@ Program { }, superTypeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -169,9 +170,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, default: TSLiteralType { type: "TSLiteralType", literal: Literal { @@ -230,7 +232,7 @@ Program { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [308, 310], loc: { @@ -238,7 +240,7 @@ Program { end: { column: 75, line: 7 }, }, }, - extends: Array [ + extends: [ TSInterfaceHeritage { type: "TSInterfaceHeritage", expression: Identifier { @@ -253,7 +255,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -301,9 +303,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", @@ -342,7 +345,7 @@ Program { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [400, 402], loc: { @@ -350,7 +353,7 @@ Program { end: { column: 39, line: 9 }, }, }, - extends: Array [ + extends: [ TSInterfaceHeritage { type: "TSInterfaceHeritage", expression: Identifier { @@ -365,7 +368,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -413,9 +416,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, default: TSLiteralType { type: "TSLiteralType", literal: Literal { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments-heritage/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments-heritage/snapshots/2-TSESTree-Tokens.shot index f2501ac1c390..611bd24cab40 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments-heritage/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments-heritage/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-parameters-comments-heritage TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments-heritage/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments-heritage/snapshots/3-Babel-AST.shot index 39287bba2601..feb61f3a23d1 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments-heritage/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments-heritage/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics type-parameters-comments-heritage Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [141, 143], loc: { @@ -38,7 +38,7 @@ Program { }, superTypeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -68,7 +68,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "A", @@ -98,7 +98,7 @@ Program { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [232, 234], loc: { @@ -128,7 +128,7 @@ Program { }, superTypeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -158,7 +158,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", default: TSLiteralType { @@ -208,7 +208,7 @@ Program { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [308, 310], loc: { @@ -216,7 +216,7 @@ Program { end: { column: 75, line: 7 }, }, }, - extends: Array [ + extends: [ TSExpressionWithTypeArguments { type: "TSExpressionWithTypeArguments", expression: Identifier { @@ -231,7 +231,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -279,7 +279,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "A", @@ -309,7 +309,7 @@ Program { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [400, 402], loc: { @@ -317,7 +317,7 @@ Program { end: { column: 39, line: 9 }, }, }, - extends: Array [ + extends: [ TSExpressionWithTypeArguments { type: "TSExpressionWithTypeArguments", expression: Identifier { @@ -332,7 +332,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -380,7 +380,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", default: TSLiteralType { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments-heritage/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments-heritage/snapshots/4-Babel-Tokens.shot index f6fa18d3be7f..fd6cf1014075 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments-heritage/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments-heritage/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-parameters-comments-heritage Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments-heritage/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments-heritage/snapshots/5-AST-Alignment-AST.shot index d1bcce0c6fc3..37c6b8de68f8 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments-heritage/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments-heritage/snapshots/5-AST-Alignment-AST.shot @@ -75,6 +75,7 @@ exports[`AST Fixtures legacy-fixtures basics type-parameters-comments-heritage A params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', @@ -177,6 +178,7 @@ exports[`AST Fixtures legacy-fixtures basics type-parameters-comments-heritage A params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, default: TSLiteralType { type: 'TSLiteralType', literal: Literal { @@ -201,7 +203,8 @@ exports[`AST Fixtures legacy-fixtures basics type-parameters-comments-heritage A - name: Identifier { - type: 'Identifier', - name: 'A', -- ++ name: 'A', + - range: [168, 169], - loc: { - start: { column: 12, line: 5 }, @@ -209,8 +212,7 @@ exports[`AST Fixtures legacy-fixtures basics type-parameters-comments-heritage A - }, - }, - out: false, -+ name: 'A', - +- range: [168, 183], loc: { start: { column: 12, line: 5 }, @@ -312,6 +314,7 @@ exports[`AST Fixtures legacy-fixtures basics type-parameters-comments-heritage A params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', @@ -427,6 +430,7 @@ exports[`AST Fixtures legacy-fixtures basics type-parameters-comments-heritage A params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, default: TSLiteralType { type: 'TSLiteralType', literal: Literal { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments/snapshots/1-TSESTree-AST.shot index 15fde1c2edb9..3ae73b01034c 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics type-parameters-comments TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "foo", @@ -22,7 +22,7 @@ Program { optional: false, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -69,7 +69,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [153, 155], loc: { @@ -89,12 +89,13 @@ Program { end: { column: 12, line: 4 }, }, }, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", @@ -134,7 +135,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [200, 202], loc: { @@ -154,12 +155,13 @@ Program { end: { column: 12, line: 5 }, }, }, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, default: TSTypeReference { type: "TSTypeReference", typeName: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments/snapshots/2-TSESTree-Tokens.shot index 85a5d22d8279..1230f9e935c8 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-parameters-comments TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "foo", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments/snapshots/3-Babel-AST.shot index e0dc1bc22df5..9e3f5c4f2bb9 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics type-parameters-comments Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "foo", @@ -22,7 +22,7 @@ Program { optional: false, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -69,7 +69,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [153, 155], loc: { @@ -89,10 +89,10 @@ Program { end: { column: 12, line: 4 }, }, }, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "A", @@ -123,7 +123,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [200, 202], loc: { @@ -143,10 +143,10 @@ Program { end: { column: 12, line: 5 }, }, }, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", default: TSTypeReference { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments/snapshots/4-Babel-Tokens.shot index aa02bd259043..1d40e5ec84e3 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-parameters-comments Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "foo", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments/snapshots/5-AST-Alignment-AST.shot index ff26a6e29d7e..724bdedf9c7e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments/snapshots/5-AST-Alignment-AST.shot @@ -99,6 +99,7 @@ exports[`AST Fixtures legacy-fixtures basics type-parameters-comments AST Alignm params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', @@ -165,6 +166,7 @@ exports[`AST Fixtures legacy-fixtures basics type-parameters-comments AST Alignm params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, default: TSTypeReference { type: 'TSTypeReference', typeName: Identifier { @@ -182,8 +184,8 @@ exports[`AST Fixtures legacy-fixtures basics type-parameters-comments AST Alignm loc: { start: { column: 37, line: 5 }, end: { column: 40, line: 5 }, -- }, -- }, + }, + }, - in: false, - name: Identifier { - type: 'Identifier', @@ -193,8 +195,8 @@ exports[`AST Fixtures legacy-fixtures basics type-parameters-comments AST Alignm - loc: { - start: { column: 23, line: 5 }, - end: { column: 24, line: 5 }, - }, - }, +- }, +- }, - out: false, + name: 'A', diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-reference-comments/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-reference-comments/snapshots/1-TSESTree-AST.shot index 4535f1eaac49..ead0a8afdd7a 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-reference-comments/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-reference-comments/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics type-reference-comments TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, @@ -60,7 +60,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSAnyKeyword { type: "TSAnyKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-reference-comments/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-reference-comments/snapshots/2-TSESTree-Tokens.shot index 15bf10705824..12f8207b98ff 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-reference-comments/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-reference-comments/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-reference-comments TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-reference-comments/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-reference-comments/snapshots/3-Babel-AST.shot index 4ff3ecad902c..af283a9683ac 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-reference-comments/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-reference-comments/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics type-reference-comments Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, @@ -58,7 +58,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSAnyKeyword { type: "TSAnyKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-reference-comments/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-reference-comments/snapshots/4-Babel-Tokens.shot index 8f97c54c997b..4a39e7611f24 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-reference-comments/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-reference-comments/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics type-reference-comments Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-bigint/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-bigint/snapshots/1-TSESTree-AST.shot index 7bc28435babc..d1f36b0011f8 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-bigint/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-bigint/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics typed-keyword-bigint TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-bigint/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-bigint/snapshots/2-TSESTree-Tokens.shot index 62c135a97417..ca18b63859c3 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-bigint/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-bigint/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics typed-keyword-bigint TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-bigint/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-bigint/snapshots/3-Babel-AST.shot index 684ed5bb321e..d52019c82353 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-bigint/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-bigint/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics typed-keyword-bigint Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-bigint/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-bigint/snapshots/4-Babel-Tokens.shot index 7167e1e962f3..97fa2c189753 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-bigint/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-bigint/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics typed-keyword-bigint Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-boolean/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-boolean/snapshots/1-TSESTree-AST.shot index 30579fe3323c..15430d8a9ab9 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-boolean/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-boolean/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics typed-keyword-boolean TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-boolean/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-boolean/snapshots/2-TSESTree-Tokens.shot index 15a1c727b27d..a3a1170334d8 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-boolean/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-boolean/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics typed-keyword-boolean TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-boolean/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-boolean/snapshots/3-Babel-AST.shot index 79432c4fd65c..89248add378d 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-boolean/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-boolean/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics typed-keyword-boolean Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-boolean/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-boolean/snapshots/4-Babel-Tokens.shot index 1dce25ffa2d0..c9d8d060223f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-boolean/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-boolean/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics typed-keyword-boolean Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-false/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-false/snapshots/1-TSESTree-AST.shot index d00e785e0e3b..f3f2c5de74ea 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-false/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-false/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics typed-keyword-false TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-false/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-false/snapshots/2-TSESTree-Tokens.shot index 966b1788f0b2..60b988e0ec97 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-false/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-false/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics typed-keyword-false TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-false/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-false/snapshots/3-Babel-AST.shot index c221936f8bea..c612568e8ad4 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-false/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-false/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics typed-keyword-false Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-false/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-false/snapshots/4-Babel-Tokens.shot index fc767cce196f..193c62a56493 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-false/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-false/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics typed-keyword-false Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-never/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-never/snapshots/1-TSESTree-AST.shot index 1dca9610fe69..7f83badadf9e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-never/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-never/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics typed-keyword-never TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-never/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-never/snapshots/2-TSESTree-Tokens.shot index 8281e828e1b5..27671a1a08f4 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-never/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-never/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics typed-keyword-never TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-never/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-never/snapshots/3-Babel-AST.shot index b4b968cc9380..de06206af9c8 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-never/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-never/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics typed-keyword-never Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-never/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-never/snapshots/4-Babel-Tokens.shot index 0ffa9284236a..5e7080894ebc 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-never/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-never/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics typed-keyword-never Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-null/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-null/snapshots/1-TSESTree-AST.shot index 3e43912a3966..7db93d05ef4e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-null/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-null/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics typed-keyword-null TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-null/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-null/snapshots/2-TSESTree-Tokens.shot index f665e29d021c..a8c3ef32f07e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-null/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-null/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics typed-keyword-null TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-null/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-null/snapshots/3-Babel-AST.shot index 91b3de461651..17d05bfadedc 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-null/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-null/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics typed-keyword-null Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-null/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-null/snapshots/4-Babel-Tokens.shot index 6dc27bd4901b..2a717755d30b 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-null/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-null/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics typed-keyword-null Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-number/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-number/snapshots/1-TSESTree-AST.shot index cf951e399b78..4ccca319ab84 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-number/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-number/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics typed-keyword-number TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-number/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-number/snapshots/2-TSESTree-Tokens.shot index c7428a8c585f..d6e8bdd0bd9e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-number/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-number/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics typed-keyword-number TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-number/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-number/snapshots/3-Babel-AST.shot index 7255ce74ca50..310f23478d27 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-number/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-number/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics typed-keyword-number Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-number/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-number/snapshots/4-Babel-Tokens.shot index c7a13e9bb9eb..afe75d5d2bed 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-number/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-number/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics typed-keyword-number Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-object/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-object/snapshots/1-TSESTree-AST.shot index 459a6185563e..bb5100cf4363 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-object/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-object/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics typed-keyword-object TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-object/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-object/snapshots/2-TSESTree-Tokens.shot index eb33bca3787d..d37b06c6853f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-object/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-object/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics typed-keyword-object TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-object/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-object/snapshots/3-Babel-AST.shot index bdf585c2d684..bd8253451793 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-object/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-object/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics typed-keyword-object Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-object/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-object/snapshots/4-Babel-Tokens.shot index 973bcb56dc86..0e18aa63eceb 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-object/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-object/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics typed-keyword-object Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-string/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-string/snapshots/1-TSESTree-AST.shot index 50520103c36d..0ee3d02dc01e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-string/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-string/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics typed-keyword-string TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-string/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-string/snapshots/2-TSESTree-Tokens.shot index a60230128396..4f7b252ee811 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-string/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-string/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics typed-keyword-string TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-string/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-string/snapshots/3-Babel-AST.shot index 340cdd364a3c..6bf528e162d5 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-string/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-string/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics typed-keyword-string Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-string/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-string/snapshots/4-Babel-Tokens.shot index 3fa485fea125..781507b36ee7 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-string/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-string/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics typed-keyword-string Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-symbol/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-symbol/snapshots/1-TSESTree-AST.shot index d4bde83529c8..9ba239c957c1 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-symbol/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-symbol/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics typed-keyword-symbol TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-symbol/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-symbol/snapshots/2-TSESTree-Tokens.shot index af7541753f55..cf1ba1f4a2b4 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-symbol/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-symbol/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics typed-keyword-symbol TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-symbol/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-symbol/snapshots/3-Babel-AST.shot index 3e111c5fa3b5..dc0855b53dce 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-symbol/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-symbol/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics typed-keyword-symbol Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-symbol/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-symbol/snapshots/4-Babel-Tokens.shot index 35aa2a9387e0..50a143f926bd 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-symbol/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-symbol/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics typed-keyword-symbol Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-true/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-true/snapshots/1-TSESTree-AST.shot index 671689fbe2c0..c9d8f8739f4f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-true/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-true/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics typed-keyword-true TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-true/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-true/snapshots/2-TSESTree-Tokens.shot index 02df5e6b3da7..f8edbaa10dee 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-true/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-true/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics typed-keyword-true TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-true/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-true/snapshots/3-Babel-AST.shot index 486420dfb440..0f2f9f7d7a02 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-true/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-true/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics typed-keyword-true Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-true/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-true/snapshots/4-Babel-Tokens.shot index d04586d91904..e12592efe801 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-true/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-true/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics typed-keyword-true Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-undefined/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-undefined/snapshots/1-TSESTree-AST.shot index cb70a31ba28d..f1244a520c35 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-undefined/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-undefined/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics typed-keyword-undefined TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-undefined/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-undefined/snapshots/2-TSESTree-Tokens.shot index 319eb8eca282..ab610e3821a4 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-undefined/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-undefined/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics typed-keyword-undefined TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-undefined/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-undefined/snapshots/3-Babel-AST.shot index e4155864a8b1..ab907178d92e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-undefined/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-undefined/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics typed-keyword-undefined Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-undefined/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-undefined/snapshots/4-Babel-Tokens.shot index 32b144a05b85..a913dca0af54 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-undefined/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-undefined/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics typed-keyword-undefined Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-unknown/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-unknown/snapshots/1-TSESTree-AST.shot index acc1dccfd233..3bd87f8c8809 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-unknown/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-unknown/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics typed-keyword-unknown TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-unknown/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-unknown/snapshots/2-TSESTree-Tokens.shot index 8b482f251528..0411186e951f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-unknown/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-unknown/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics typed-keyword-unknown TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-unknown/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-unknown/snapshots/3-Babel-AST.shot index 7966ec36f463..4fb1e66e8045 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-unknown/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-unknown/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics typed-keyword-unknown Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-unknown/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-unknown/snapshots/4-Babel-Tokens.shot index dec5713f7035..dd95447a89b9 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-unknown/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-unknown/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics typed-keyword-unknown Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-void/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-void/snapshots/1-TSESTree-AST.shot index 126b4f0beaa9..fb23e7665692 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-void/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-void/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics typed-keyword-void TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-void/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-void/snapshots/2-TSESTree-Tokens.shot index a929b7b6950b..bb9feb97a66d 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-void/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-void/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics typed-keyword-void TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-void/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-void/snapshots/3-Babel-AST.shot index eedaa12aa430..342111e34dbd 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-void/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-void/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics typed-keyword-void Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-void/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-void/snapshots/4-Babel-Tokens.shot index b657ea11035e..60d6077baae8 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-void/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-keyword-void/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics typed-keyword-void Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-method-signature/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-method-signature/snapshots/1-TSESTree-AST.shot index a1143b8b44c6..2349f700577d 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-method-signature/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-method-signature/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics typed-method-signature TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,7 +18,7 @@ Program { }, typeAnnotation: TSTypeLiteral { type: "TSTypeLiteral", - members: Array [ + members: [ TSMethodSignature { type: "TSMethodSignature", computed: false, @@ -33,7 +33,7 @@ Program { }, }, kind: "method", - params: Array [ + params: [ Identifier { type: "Identifier", name: "bar", @@ -102,7 +102,7 @@ Program { }, }, kind: "method", - params: Array [ + params: [ Identifier { type: "Identifier", name: "bar", @@ -172,9 +172,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-method-signature/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-method-signature/snapshots/2-TSESTree-Tokens.shot index ba9e81fac357..aeffaa968fdc 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-method-signature/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-method-signature/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics typed-method-signature TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-method-signature/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-method-signature/snapshots/3-Babel-AST.shot index fc18c7b0d0c7..75f06bd0814f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-method-signature/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-method-signature/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics typed-method-signature Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,7 +18,7 @@ Program { }, typeAnnotation: TSTypeLiteral { type: "TSTypeLiteral", - members: Array [ + members: [ TSMethodSignature { type: "TSMethodSignature", computed: false, @@ -33,7 +33,7 @@ Program { }, }, kind: "method", - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "bar", @@ -102,7 +102,7 @@ Program { }, }, kind: "method", - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "bar", @@ -172,7 +172,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-method-signature/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-method-signature/snapshots/4-Babel-Tokens.shot index f9d1e6905795..9a8db27ec3e7 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-method-signature/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-method-signature/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics typed-method-signature Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-method-signature/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-method-signature/snapshots/5-AST-Alignment-AST.shot index 8d86878a9bce..71fe4bac95bb 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-method-signature/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-method-signature/snapshots/5-AST-Alignment-AST.shot @@ -183,6 +183,7 @@ exports[`AST Fixtures legacy-fixtures basics typed-method-signature AST Alignmen params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-this/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-this/snapshots/1-TSESTree-AST.shot index f3369540a940..23109d3d2bb9 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-this/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-this/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics typed-this TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [ + body: [ TSMethodSignature { type: "TSMethodSignature", computed: false, @@ -23,7 +23,7 @@ Program { }, }, kind: "method", - params: Array [ + params: [ Identifier { type: "Identifier", name: "onclick", @@ -31,7 +31,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSFunctionType { type: "TSFunctionType", - params: Array [ + params: [ Identifier { type: "Identifier", name: "this", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-this/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-this/snapshots/2-TSESTree-Tokens.shot index 43748c69adf1..bdc1dcf28b14 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-this/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-this/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics typed-this TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "interface", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-this/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-this/snapshots/3-Babel-AST.shot index 5a7a4c05de6a..d188ea642872 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-this/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-this/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures basics typed-this Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [ + body: [ TSMethodSignature { type: "TSMethodSignature", computed: false, @@ -23,7 +23,7 @@ Program { }, }, kind: "method", - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "onclick", @@ -31,7 +31,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSFunctionType { type: "TSFunctionType", - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "this", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-this/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-this/snapshots/4-Babel-Tokens.shot index b16f7d3d2169..32da8d921976 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-this/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/typed-this/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics typed-this Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "interface", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/union-intersection/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/union-intersection/snapshots/1-TSESTree-AST.shot index 25f8bed4a1df..ef064f93b5c6 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/union-intersection/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/union-intersection/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics union-intersection TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -16,7 +16,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSNumberKeyword { type: "TSNumberKeyword", @@ -85,7 +85,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -95,7 +95,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSIntersectionType { type: "TSIntersectionType", - types: Array [ + types: [ TSNumberKeyword { type: "TSNumberKeyword", @@ -155,7 +155,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -165,7 +165,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSNumberKeyword { type: "TSNumberKeyword", @@ -177,7 +177,7 @@ Program { }, TSIntersectionType { type: "TSIntersectionType", - types: Array [ + types: [ TSStringKeyword { type: "TSStringKeyword", @@ -245,7 +245,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -255,10 +255,10 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSIntersectionType { type: "TSIntersectionType", - types: Array [ + types: [ TSNumberKeyword { type: "TSNumberKeyword", @@ -347,7 +347,7 @@ Program { }, typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSNumberKeyword { type: "TSNumberKeyword", @@ -395,7 +395,7 @@ Program { }, typeAnnotation: TSIntersectionType { type: "TSIntersectionType", - types: Array [ + types: [ TSNumberKeyword { type: "TSNumberKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/union-intersection/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/union-intersection/snapshots/2-TSESTree-Tokens.shot index 7755619a8101..ee47b562e5ce 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/union-intersection/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/union-intersection/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics union-intersection TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/union-intersection/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/union-intersection/snapshots/3-Babel-AST.shot index a616b3256e3a..c7ab4eb5f510 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/union-intersection/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/union-intersection/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics union-intersection Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -16,7 +16,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSNumberKeyword { type: "TSNumberKeyword", @@ -85,7 +85,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -95,7 +95,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSIntersectionType { type: "TSIntersectionType", - types: Array [ + types: [ TSNumberKeyword { type: "TSNumberKeyword", @@ -155,7 +155,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -165,7 +165,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSNumberKeyword { type: "TSNumberKeyword", @@ -179,7 +179,7 @@ Program { type: "TSParenthesizedType", typeAnnotation: TSIntersectionType { type: "TSIntersectionType", - types: Array [ + types: [ TSStringKeyword { type: "TSStringKeyword", @@ -254,7 +254,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -264,12 +264,12 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSParenthesizedType { type: "TSParenthesizedType", typeAnnotation: TSIntersectionType { type: "TSIntersectionType", - types: Array [ + types: [ TSNumberKeyword { type: "TSNumberKeyword", @@ -365,7 +365,7 @@ Program { }, typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSNumberKeyword { type: "TSNumberKeyword", @@ -413,7 +413,7 @@ Program { }, typeAnnotation: TSIntersectionType { type: "TSIntersectionType", - types: Array [ + types: [ TSNumberKeyword { type: "TSNumberKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/union-intersection/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/union-intersection/snapshots/4-Babel-Tokens.shot index bcf747282beb..a91e38c62836 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/union-intersection/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/union-intersection/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics union-intersection Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/unique-symbol/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/unique-symbol/snapshots/1-TSESTree-AST.shot index 82249db517a5..9ea2f9badb64 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/unique-symbol/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/unique-symbol/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics unique-symbol TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/unique-symbol/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/unique-symbol/snapshots/2-TSESTree-Tokens.shot index f62b62a54037..fb72d78f1853 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/unique-symbol/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/unique-symbol/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics unique-symbol TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/unique-symbol/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/unique-symbol/snapshots/3-Babel-AST.shot index a145f3baee5c..04ecdbf51f00 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/unique-symbol/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/unique-symbol/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures basics unique-symbol Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/unique-symbol/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/unique-symbol/snapshots/4-Babel-Tokens.shot index acbb7c42e9d6..7d2af2611074 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/unique-symbol/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/unique-symbol/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics unique-symbol Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/unknown-type-annotation/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/unknown-type-annotation/snapshots/1-TSESTree-AST.shot index 943a5122c5bb..55d50aa9f5bb 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/unknown-type-annotation/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/unknown-type-annotation/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics unknown-type-annotation TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/unknown-type-annotation/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/unknown-type-annotation/snapshots/2-TSESTree-Tokens.shot index b84da4d86abb..1e1635b6de53 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/unknown-type-annotation/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/unknown-type-annotation/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics unknown-type-annotation TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/unknown-type-annotation/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/unknown-type-annotation/snapshots/3-Babel-AST.shot index f311c333fd55..0ce623e67e99 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/unknown-type-annotation/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/unknown-type-annotation/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics unknown-type-annotation Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/unknown-type-annotation/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/unknown-type-annotation/snapshots/4-Babel-Tokens.shot index c854fcc88b73..1b707e8f1d68 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/unknown-type-annotation/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/unknown-type-annotation/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics unknown-type-annotation Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/var-with-dotted-type/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/var-with-dotted-type/snapshots/1-TSESTree-AST.shot index 9e08e2b404d6..09cad104b78e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/var-with-dotted-type/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/var-with-dotted-type/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics var-with-dotted-type TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/var-with-dotted-type/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/var-with-dotted-type/snapshots/2-TSESTree-Tokens.shot index 3c7d20b6bfbf..11ae3609ae62 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/var-with-dotted-type/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/var-with-dotted-type/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics var-with-dotted-type TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "var", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/var-with-dotted-type/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/var-with-dotted-type/snapshots/3-Babel-AST.shot index 62c6d308f3b5..73eb6dcf5048 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/var-with-dotted-type/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/var-with-dotted-type/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics var-with-dotted-type Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/var-with-dotted-type/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/var-with-dotted-type/snapshots/4-Babel-Tokens.shot index 87ba8d2c49b2..352ca07dc40b 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/var-with-dotted-type/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/var-with-dotted-type/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics var-with-dotted-type Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "var", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/var-with-type/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/var-with-type/snapshots/1-TSESTree-AST.shot index 62ba003935b1..e4a3ab04415a 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/var-with-type/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/var-with-type/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics var-with-type TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -66,7 +66,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/var-with-type/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/var-with-type/snapshots/2-TSESTree-Tokens.shot index e1f9a72af96b..6222bec38597 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/var-with-type/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/var-with-type/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics var-with-type TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "var", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/var-with-type/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/var-with-type/snapshots/3-Babel-AST.shot index 59fa34d17927..08e3d5509733 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/var-with-type/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/var-with-type/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics var-with-type Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -66,7 +66,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/var-with-type/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/var-with-type/snapshots/4-Babel-Tokens.shot index 7175613a8ff5..dc31d7370435 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/var-with-type/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/var-with-type/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics var-with-type Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "var", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/variable-declaration-type-annotation-spacing/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/variable-declaration-type-annotation-spacing/snapshots/1-TSESTree-AST.shot index 1f0975e69f95..96cc28bc9e24 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/variable-declaration-type-annotation-spacing/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/variable-declaration-type-annotation-spacing/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics variable-declaration-type-annotation-spacing TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/variable-declaration-type-annotation-spacing/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/variable-declaration-type-annotation-spacing/snapshots/2-TSESTree-Tokens.shot index 814a8e63f06c..5bd63b8c9ad9 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/variable-declaration-type-annotation-spacing/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/variable-declaration-type-annotation-spacing/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics variable-declaration-type-annotation-spacing TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/variable-declaration-type-annotation-spacing/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/variable-declaration-type-annotation-spacing/snapshots/3-Babel-AST.shot index 601d0bafa841..d7fc5fa1217f 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/variable-declaration-type-annotation-spacing/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/variable-declaration-type-annotation-spacing/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics variable-declaration-type-annotation-spacing Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/variable-declaration-type-annotation-spacing/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/variable-declaration-type-annotation-spacing/snapshots/4-Babel-Tokens.shot index 1bc67f77ed51..42d9034ace37 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/variable-declaration-type-annotation-spacing/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/variable-declaration-type-annotation-spacing/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics variable-declaration-type-annotation-spacing Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-decorator-factory/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-decorator-factory/snapshots/1-TSESTree-AST.shot index 11c4c7d84f39..d29236eb3c07 100644 --- a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-decorator-factory/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-decorator-factory/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures class-decorators class-decorator-factory TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [127, 129], loc: { @@ -16,15 +16,15 @@ Program { end: { column: 21, line: 6 }, }, }, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: CallExpression { type: "CallExpression", - arguments: Array [ + arguments: [ ObjectExpression { type: "ObjectExpression", - properties: Array [ + properties: [ Property { type: "Property", computed: false, diff --git a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-decorator-factory/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-decorator-factory/snapshots/2-TSESTree-Tokens.shot index ece4f1425d5e..eb2d41df16e0 100644 --- a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-decorator-factory/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-decorator-factory/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures class-decorators class-decorator-factory TSESTree - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "@", diff --git a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-decorator-factory/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-decorator-factory/snapshots/3-Babel-AST.shot index 673b64b11b9b..6c25437fd9c5 100644 --- a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-decorator-factory/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-decorator-factory/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures class-decorators class-decorator-factory Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [127, 129], loc: { @@ -16,15 +16,15 @@ Program { end: { column: 21, line: 6 }, }, }, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: CallExpression { type: "CallExpression", - arguments: Array [ + arguments: [ ObjectExpression { type: "ObjectExpression", - properties: Array [ + properties: [ Property { type: "Property", computed: false, diff --git a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-decorator-factory/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-decorator-factory/snapshots/4-Babel-Tokens.shot index 5abed2d4eb10..7632d7c35ca0 100644 --- a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-decorator-factory/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-decorator-factory/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures class-decorators class-decorator-factory Babel - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "@", diff --git a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-decorator/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-decorator/snapshots/1-TSESTree-AST.shot index f1c3785e60b0..e78551dadff3 100644 --- a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-decorator/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-decorator/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures class-decorators class-decorator TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [91, 93], loc: { @@ -16,7 +16,7 @@ Program { end: { column: 12, line: 4 }, }, }, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-decorator/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-decorator/snapshots/2-TSESTree-Tokens.shot index a63ba94dd34a..f08296ae2e90 100644 --- a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-decorator/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-decorator/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures class-decorators class-decorator TSESTree - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "@", diff --git a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-decorator/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-decorator/snapshots/3-Babel-AST.shot index bb71a3c08e99..7a2f6f294216 100644 --- a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-decorator/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-decorator/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures class-decorators class-decorator Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [91, 93], loc: { @@ -16,7 +16,7 @@ Program { end: { column: 12, line: 4 }, }, }, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-decorator/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-decorator/snapshots/4-Babel-Tokens.shot index 1b7ea557d519..6afa0a57bad4 100644 --- a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-decorator/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-decorator/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures class-decorators class-decorator Babel - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "@", diff --git a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-parameter-property/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-parameter-property/snapshots/1-TSESTree-AST.shot index cebfd84330ae..e4779292f6f7 100644 --- a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-parameter-property/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-parameter-property/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures class-decorators class-parameter-property TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -30,7 +30,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [119, 121], loc: { @@ -41,11 +41,11 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ TSParameterProperty { type: "TSParameterProperty", accessibility: "private", - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-parameter-property/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-parameter-property/snapshots/2-TSESTree-Tokens.shot index 3cc387fae97d..2e4e791c96a9 100644 --- a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-parameter-property/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-parameter-property/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures class-decorators class-parameter-property TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-parameter-property/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-parameter-property/snapshots/3-Babel-AST.shot index d51e890ee073..8b2643f05073 100644 --- a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-parameter-property/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-parameter-property/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures class-decorators class-parameter-property Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -29,7 +29,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [119, 121], loc: { @@ -40,11 +40,11 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ TSParameterProperty { type: "TSParameterProperty", accessibility: "private", - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-parameter-property/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-parameter-property/snapshots/4-Babel-Tokens.shot index c794a3b4b7b4..b1b4a3a8ea0e 100644 --- a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-parameter-property/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/class-parameter-property/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures class-decorators class-parameter-property Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/export-default-class-decorator/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/export-default-class-decorator/snapshots/1-TSESTree-AST.shot index 90813124a39b..abac81f19e70 100644 --- a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/export-default-class-decorator/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/export-default-class-decorator/snapshots/1-TSESTree-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures legacy-fixtures class-decorators export-default-class-decorator TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportDefaultDeclaration { type: "ExportDefaultDeclaration", declaration: ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [106, 108], loc: { @@ -18,7 +18,7 @@ Program { end: { column: 27, line: 4 }, }, }, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/export-default-class-decorator/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/export-default-class-decorator/snapshots/2-TSESTree-Tokens.shot index 12ac7dd89864..c783977b66ec 100644 --- a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/export-default-class-decorator/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/export-default-class-decorator/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures class-decorators export-default-class-decorator TSESTree - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "@", diff --git a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/export-default-class-decorator/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/export-default-class-decorator/snapshots/3-Babel-AST.shot index 1b4b56419c3d..ac2ebe999ea5 100644 --- a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/export-default-class-decorator/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/export-default-class-decorator/snapshots/3-Babel-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures legacy-fixtures class-decorators export-default-class-decorator Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportDefaultDeclaration { type: "ExportDefaultDeclaration", declaration: ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [106, 108], loc: { @@ -18,7 +18,7 @@ Program { end: { column: 27, line: 4 }, }, }, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/export-default-class-decorator/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/export-default-class-decorator/snapshots/4-Babel-Tokens.shot index a996a885d498..43462573b2b7 100644 --- a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/export-default-class-decorator/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/export-default-class-decorator/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures class-decorators export-default-class-decorator Babel - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "@", diff --git a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/export-named-class-decorator/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/export-named-class-decorator/snapshots/1-TSESTree-AST.shot index e1fe4ea39ea9..c21177a9eba4 100644 --- a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/export-named-class-decorator/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/export-named-class-decorator/snapshots/1-TSESTree-AST.shot @@ -3,15 +3,15 @@ exports[`AST Fixtures legacy-fixtures class-decorators export-named-class-decorator TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [98, 100], loc: { @@ -19,7 +19,7 @@ Program { end: { column: 19, line: 4 }, }, }, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: Identifier { @@ -60,7 +60,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [81, 100], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/export-named-class-decorator/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/export-named-class-decorator/snapshots/2-TSESTree-Tokens.shot index 13316d71e3a6..3ed4feed2259 100644 --- a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/export-named-class-decorator/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/export-named-class-decorator/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures class-decorators export-named-class-decorator TSESTree - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "@", diff --git a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/export-named-class-decorator/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/export-named-class-decorator/snapshots/3-Babel-AST.shot index b660eee0d9db..d30a71ca0615 100644 --- a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/export-named-class-decorator/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/export-named-class-decorator/snapshots/3-Babel-AST.shot @@ -3,15 +3,15 @@ exports[`AST Fixtures legacy-fixtures class-decorators export-named-class-decorator Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [98, 100], loc: { @@ -19,7 +19,7 @@ Program { end: { column: 19, line: 4 }, }, }, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: Identifier { @@ -60,7 +60,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [81, 100], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/export-named-class-decorator/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/export-named-class-decorator/snapshots/4-Babel-Tokens.shot index f3fb937e2075..3a057e29d920 100644 --- a/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/export-named-class-decorator/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/class-decorators/fixtures/export-named-class-decorator/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures class-decorators export-named-class-decorator Babel - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "@", diff --git a/packages/ast-spec/src/legacy-fixtures/comments/fixtures/type-assertion-regression-test/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/comments/fixtures/type-assertion-regression-test/snapshots/1-TSESTree-AST.shot index 381468f0d2a4..34a322c1be79 100644 --- a/packages/ast-spec/src/legacy-fixtures/comments/fixtures/type-assertion-regression-test/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/comments/fixtures/type-assertion-regression-test/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures comments type-assertion-regression-test TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/comments/fixtures/type-assertion-regression-test/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/comments/fixtures/type-assertion-regression-test/snapshots/2-TSESTree-Tokens.shot index 5829d40f0691..a2b0e4ea6c04 100644 --- a/packages/ast-spec/src/legacy-fixtures/comments/fixtures/type-assertion-regression-test/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/comments/fixtures/type-assertion-regression-test/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures comments type-assertion-regression-test TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "const", diff --git a/packages/ast-spec/src/legacy-fixtures/comments/fixtures/type-assertion-regression-test/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/comments/fixtures/type-assertion-regression-test/snapshots/3-Babel-AST.shot index d4c42a7de6ee..7ae95a4b881b 100644 --- a/packages/ast-spec/src/legacy-fixtures/comments/fixtures/type-assertion-regression-test/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/comments/fixtures/type-assertion-regression-test/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures comments type-assertion-regression-test Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/comments/fixtures/type-assertion-regression-test/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/comments/fixtures/type-assertion-regression-test/snapshots/4-Babel-Tokens.shot index 1154b63f5765..d8d788d8dbcc 100644 --- a/packages/ast-spec/src/legacy-fixtures/comments/fixtures/type-assertion-regression-test/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/comments/fixtures/type-assertion-regression-test/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures comments type-assertion-regression-test Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "const", diff --git a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/abstract-class/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/abstract-class/snapshots/1-TSESTree-AST.shot index 1754da14fd4d..fa1b00d30dd1 100644 --- a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/abstract-class/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/abstract-class/snapshots/1-TSESTree-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures declare abstract-class TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", abstract: true, body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [100, 102], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/abstract-class/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/abstract-class/snapshots/2-TSESTree-Tokens.shot index c766699f8484..bd270378dd16 100644 --- a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/abstract-class/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/abstract-class/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures declare abstract-class TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/abstract-class/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/abstract-class/snapshots/3-Babel-AST.shot index f01b42c487ce..b7ea7a0a6eee 100644 --- a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/abstract-class/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/abstract-class/snapshots/3-Babel-AST.shot @@ -3,13 +3,13 @@ exports[`AST Fixtures legacy-fixtures declare abstract-class Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", abstract: true, body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [100, 102], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/abstract-class/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/abstract-class/snapshots/4-Babel-Tokens.shot index 79df63368091..3d713bc24629 100644 --- a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/abstract-class/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/abstract-class/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures declare abstract-class Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/class/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/class/snapshots/1-TSESTree-AST.shot index 2d0980f45ca8..21b0358d3fef 100644 --- a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/class/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/class/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures declare class TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [91, 93], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/class/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/class/snapshots/2-TSESTree-Tokens.shot index cedf82032938..447f6e4781cb 100644 --- a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/class/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/class/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures declare class TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/class/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/class/snapshots/3-Babel-AST.shot index 43e79bf82d2b..2ded8340f07b 100644 --- a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/class/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/class/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures declare class Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [91, 93], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/class/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/class/snapshots/4-Babel-Tokens.shot index d7af077a8d17..dd3bb7486ad4 100644 --- a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/class/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/class/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures declare class Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/enum/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/enum/snapshots/1-TSESTree-AST.shot index 8150d53af105..7286bec9b9ee 100644 --- a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/enum/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/enum/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures declare enum TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSEnumDeclaration { type: "TSEnumDeclaration", declare: true, @@ -17,7 +17,7 @@ Program { end: { column: 16, line: 3 }, }, }, - members: Array [ + members: [ TSEnumMember { type: "TSEnumMember", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/enum/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/enum/snapshots/2-TSESTree-Tokens.shot index 9fe90713d91b..1b6b28241798 100644 --- a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/enum/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/enum/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures declare enum TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/enum/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/enum/snapshots/3-Babel-AST.shot index 909932e5f720..0a171141f2c6 100644 --- a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/enum/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/enum/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures declare enum Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSEnumDeclaration { type: "TSEnumDeclaration", declare: true, @@ -17,7 +17,7 @@ Program { end: { column: 16, line: 3 }, }, }, - members: Array [ + members: [ TSEnumMember { type: "TSEnumMember", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/enum/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/enum/snapshots/4-Babel-Tokens.shot index 88d8eedb6bb2..6620e215d3a7 100644 --- a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/enum/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/enum/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures declare enum Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/function/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/function/snapshots/1-TSESTree-AST.shot index 5d3548cb2ae9..6340fab4fc2f 100644 --- a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/function/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/function/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures declare function TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSDeclareFunction { type: "TSDeclareFunction", async: false, @@ -20,7 +20,7 @@ Program { end: { column: 20, line: 3 }, }, }, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSVoidKeyword { diff --git a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/function/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/function/snapshots/2-TSESTree-Tokens.shot index f398d7d6cab8..2e38c93c4144 100644 --- a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/function/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/function/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures declare function TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/function/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/function/snapshots/3-Babel-AST.shot index 891598dbb478..1ed81b8f42e7 100644 --- a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/function/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/function/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures declare function Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSDeclareFunction { type: "TSDeclareFunction", async: false, @@ -20,7 +20,7 @@ Program { end: { column: 20, line: 3 }, }, }, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSVoidKeyword { diff --git a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/function/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/function/snapshots/4-Babel-Tokens.shot index 1e8436b09f3e..4c3a27fadda3 100644 --- a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/function/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/function/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures declare function Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/interface/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/interface/snapshots/1-TSESTree-AST.shot index 369f6a7fb53d..23487f4ce1c0 100644 --- a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/interface/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/interface/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures declare interface TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [95, 97], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/interface/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/interface/snapshots/2-TSESTree-Tokens.shot index d7adc4d28402..ad885d44b6e2 100644 --- a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/interface/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/interface/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures declare interface TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/interface/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/interface/snapshots/3-Babel-AST.shot index 0b8509a483cc..a0c250c49099 100644 --- a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/interface/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/interface/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures declare interface Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [95, 97], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/interface/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/interface/snapshots/4-Babel-Tokens.shot index aa96e49a62b8..8c9e3f3cbc99 100644 --- a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/interface/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/interface/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures declare interface Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/module/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/module/snapshots/1-TSESTree-AST.shot index 28b9f673edcf..8dacc4ec411f 100644 --- a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/module/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/module/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures declare module TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [], + body: [], range: [92, 94], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/module/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/module/snapshots/2-TSESTree-Tokens.shot index fcec61a4cf7a..696ddc3a5375 100644 --- a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/module/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/module/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures declare module TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/module/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/module/snapshots/3-Babel-AST.shot index 3fa64e62d3b9..7dcf76c3d040 100644 --- a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/module/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/module/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures declare module Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [], + body: [], range: [92, 94], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/module/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/module/snapshots/4-Babel-Tokens.shot index 44f5e06f3d34..0f343ebeda78 100644 --- a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/module/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/module/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures declare module Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/namespace/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/namespace/snapshots/1-TSESTree-AST.shot index 131440bf5fe7..3bb67741f110 100644 --- a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/namespace/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/namespace/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures declare namespace TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [], + body: [], range: [95, 97], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/namespace/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/namespace/snapshots/2-TSESTree-Tokens.shot index c956ed89ecef..c0f3e70fe786 100644 --- a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/namespace/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/namespace/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures declare namespace TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/namespace/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/namespace/snapshots/3-Babel-AST.shot index 34abdd0420bc..2344083d4312 100644 --- a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/namespace/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/namespace/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures declare namespace Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [], + body: [], range: [95, 97], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/namespace/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/namespace/snapshots/4-Babel-Tokens.shot index 014f4d3e257a..dd2ec59b1f5e 100644 --- a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/namespace/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/namespace/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures declare namespace Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/type-alias/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/type-alias/snapshots/1-TSESTree-AST.shot index 0df751e2ad83..20b1afc88e82 100644 --- a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/type-alias/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/type-alias/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures declare type-alias TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", declare: true, diff --git a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/type-alias/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/type-alias/snapshots/2-TSESTree-Tokens.shot index cc5c10ca3cd8..0c6025b45b1b 100644 --- a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/type-alias/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/type-alias/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures declare type-alias TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/type-alias/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/type-alias/snapshots/3-Babel-AST.shot index 1e3632d9b567..88ef8d4f5b9b 100644 --- a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/type-alias/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/type-alias/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures declare type-alias Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", declare: true, diff --git a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/type-alias/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/type-alias/snapshots/4-Babel-Tokens.shot index 91707312017f..bf84e4b51f9f 100644 --- a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/type-alias/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/type-alias/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures declare type-alias Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/variable/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/variable/snapshots/1-TSESTree-AST.shot index de3d06244c02..1e7daf91eaff 100644 --- a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/variable/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/variable/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures declare variable TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/variable/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/variable/snapshots/2-TSESTree-Tokens.shot index 676d3e708565..242704d5dd2f 100644 --- a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/variable/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/variable/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures declare variable TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/variable/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/variable/snapshots/3-Babel-AST.shot index 95adb05e6e7e..972dfbbba55b 100644 --- a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/variable/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/variable/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures declare variable Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/variable/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/variable/snapshots/4-Babel-Tokens.shot index b05f923663f0..7bb905a8dedc 100644 --- a/packages/ast-spec/src/legacy-fixtures/declare/fixtures/variable/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/declare/fixtures/variable/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures declare variable Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/call-expression-type-arguments/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/call-expression-type-arguments/snapshots/1-TSESTree-AST.shot index 1e4239cbfcec..17050128c74c 100644 --- a/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/call-expression-type-arguments/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/call-expression-type-arguments/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures expressions call-expression-type-arguments TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "foo", @@ -22,7 +22,7 @@ Program { optional: false, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -68,7 +68,7 @@ Program { type: "ExpressionStatement", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "foo", @@ -82,7 +82,7 @@ Program { optional: false, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSNumberKeyword { type: "TSNumberKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/call-expression-type-arguments/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/call-expression-type-arguments/snapshots/2-TSESTree-Tokens.shot index 4ddc70325bab..80432f7a3321 100644 --- a/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/call-expression-type-arguments/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/call-expression-type-arguments/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures expressions call-expression-type-arguments TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "foo", diff --git a/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/call-expression-type-arguments/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/call-expression-type-arguments/snapshots/3-Babel-AST.shot index c09291078230..a9f8441969c7 100644 --- a/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/call-expression-type-arguments/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/call-expression-type-arguments/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures expressions call-expression-type-arguments Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "foo", @@ -22,7 +22,7 @@ Program { optional: false, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -68,7 +68,7 @@ Program { type: "ExpressionStatement", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "foo", @@ -82,7 +82,7 @@ Program { optional: false, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSNumberKeyword { type: "TSNumberKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/call-expression-type-arguments/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/call-expression-type-arguments/snapshots/4-Babel-Tokens.shot index a3817102fc08..59d290131fcb 100644 --- a/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/call-expression-type-arguments/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/call-expression-type-arguments/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures expressions call-expression-type-arguments Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "foo", diff --git a/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/new-expression-type-arguments/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/new-expression-type-arguments/snapshots/1-TSESTree-AST.shot index d25ae0fecae0..406d14deb915 100644 --- a/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/new-expression-type-arguments/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/new-expression-type-arguments/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures expressions new-expression-type-arguments TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -21,7 +21,7 @@ Program { }, init: NewExpression { type: "NewExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "A", @@ -34,7 +34,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/new-expression-type-arguments/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/new-expression-type-arguments/snapshots/2-TSESTree-Tokens.shot index c39d6becbe19..b6c2b5659da1 100644 --- a/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/new-expression-type-arguments/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/new-expression-type-arguments/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures expressions new-expression-type-arguments TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "const", diff --git a/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/new-expression-type-arguments/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/new-expression-type-arguments/snapshots/3-Babel-AST.shot index 306f3aa25f44..5c0c06f0f7e3 100644 --- a/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/new-expression-type-arguments/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/new-expression-type-arguments/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures expressions new-expression-type-arguments Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -21,7 +21,7 @@ Program { }, init: NewExpression { type: "NewExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "A", @@ -34,7 +34,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/new-expression-type-arguments/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/new-expression-type-arguments/snapshots/4-Babel-Tokens.shot index 52d38075a220..2e8305e86d42 100644 --- a/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/new-expression-type-arguments/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/new-expression-type-arguments/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures expressions new-expression-type-arguments Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "const", diff --git a/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/optional-call-expression-type-arguments/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/optional-call-expression-type-arguments/snapshots/1-TSESTree-AST.shot index baeff97c25d8..3c9e84b61772 100644 --- a/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/optional-call-expression-type-arguments/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/optional-call-expression-type-arguments/snapshots/1-TSESTree-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures legacy-fixtures expressions optional-call-expression-type-arguments TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ChainExpression { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: MemberExpression { type: "MemberExpression", computed: false, @@ -45,7 +45,7 @@ Program { optional: false, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -100,7 +100,7 @@ Program { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: MemberExpression { type: "MemberExpression", computed: false, @@ -135,7 +135,7 @@ Program { optional: false, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSNumberKeyword { type: "TSNumberKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/optional-call-expression-type-arguments/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/optional-call-expression-type-arguments/snapshots/2-TSESTree-Tokens.shot index 87b1e73ce88a..5d8da127eb96 100644 --- a/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/optional-call-expression-type-arguments/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/optional-call-expression-type-arguments/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures expressions optional-call-expression-type-arguments TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "foo", diff --git a/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/optional-call-expression-type-arguments/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/optional-call-expression-type-arguments/snapshots/3-Babel-AST.shot index c01448e4374e..4cd07f3233d9 100644 --- a/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/optional-call-expression-type-arguments/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/optional-call-expression-type-arguments/snapshots/3-Babel-AST.shot @@ -3,14 +3,14 @@ exports[`AST Fixtures legacy-fixtures expressions optional-call-expression-type-arguments Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ChainExpression { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: MemberExpression { type: "MemberExpression", computed: false, @@ -45,7 +45,7 @@ Program { optional: false, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -100,7 +100,7 @@ Program { type: "ChainExpression", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: MemberExpression { type: "MemberExpression", computed: false, @@ -135,7 +135,7 @@ Program { optional: false, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSNumberKeyword { type: "TSNumberKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/optional-call-expression-type-arguments/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/optional-call-expression-type-arguments/snapshots/4-Babel-Tokens.shot index d2db3dd59b90..cc4d595ec4fd 100644 --- a/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/optional-call-expression-type-arguments/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/optional-call-expression-type-arguments/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures expressions optional-call-expression-type-arguments Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "foo", diff --git a/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/tagged-template-expression-type-arguments/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/tagged-template-expression-type-arguments/snapshots/1-TSESTree-AST.shot index 532981ae1344..8b0f3adc6849 100644 --- a/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/tagged-template-expression-type-arguments/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/tagged-template-expression-type-arguments/snapshots/1-TSESTree-AST.shot @@ -3,19 +3,19 @@ exports[`AST Fixtures legacy-fixtures expressions tagged-template-expression-type-arguments TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: TaggedTemplateExpression { type: "TaggedTemplateExpression", quasi: TemplateLiteral { type: "TemplateLiteral", - expressions: Array [], - quasis: Array [ + expressions: [], + quasis: [ TemplateElement { type: "TemplateElement", tail: true, - value: Object { + value: { "cooked": "baz", "raw": "baz", }, @@ -46,7 +46,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/tagged-template-expression-type-arguments/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/tagged-template-expression-type-arguments/snapshots/2-TSESTree-Tokens.shot index 734cf5c78d79..6eea55670f35 100644 --- a/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/tagged-template-expression-type-arguments/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/tagged-template-expression-type-arguments/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures expressions tagged-template-expression-type-arguments TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "foo", diff --git a/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/tagged-template-expression-type-arguments/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/tagged-template-expression-type-arguments/snapshots/3-Babel-AST.shot index c0b905dad1a5..d867b0f3b3cb 100644 --- a/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/tagged-template-expression-type-arguments/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/tagged-template-expression-type-arguments/snapshots/3-Babel-AST.shot @@ -3,19 +3,19 @@ exports[`AST Fixtures legacy-fixtures expressions tagged-template-expression-type-arguments Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: TaggedTemplateExpression { type: "TaggedTemplateExpression", quasi: TemplateLiteral { type: "TemplateLiteral", - expressions: Array [], - quasis: Array [ + expressions: [], + quasis: [ TemplateElement { type: "TemplateElement", tail: true, - value: Object { + value: { "cooked": "baz", "raw": "baz", }, @@ -46,7 +46,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/tagged-template-expression-type-arguments/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/tagged-template-expression-type-arguments/snapshots/4-Babel-Tokens.shot index 8706e7480f11..84d4e5143ead 100644 --- a/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/tagged-template-expression-type-arguments/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/expressions/fixtures/tagged-template-expression-type-arguments/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures expressions tagged-template-expression-type-arguments Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "foo", diff --git a/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-factory-instance-member/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-factory-instance-member/snapshots/1-TSESTree-AST.shot index f4e1f8a04eda..8bcb096af8c3 100644 --- a/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-factory-instance-member/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-factory-instance-member/snapshots/1-TSESTree-AST.shot @@ -3,21 +3,21 @@ exports[`AST Fixtures legacy-fixtures method-decorators method-decorator-factory-instance-member TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: CallExpression { type: "CallExpression", - arguments: Array [ + arguments: [ Literal { type: "Literal", raw: "false", @@ -74,7 +74,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [121, 123], loc: { @@ -85,7 +85,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [118, 123], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-factory-instance-member/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-factory-instance-member/snapshots/2-TSESTree-Tokens.shot index 993d3399e2c4..8864be47931e 100644 --- a/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-factory-instance-member/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-factory-instance-member/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures method-decorators method-decorator-factory-instance-member TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-factory-instance-member/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-factory-instance-member/snapshots/3-Babel-AST.shot index fd6cc578fe21..002a2e1441dc 100644 --- a/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-factory-instance-member/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-factory-instance-member/snapshots/3-Babel-AST.shot @@ -3,21 +3,21 @@ exports[`AST Fixtures legacy-fixtures method-decorators method-decorator-factory-instance-member Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: CallExpression { type: "CallExpression", - arguments: Array [ + arguments: [ Literal { type: "Literal", raw: "false", @@ -73,7 +73,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [121, 123], loc: { @@ -84,7 +84,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [118, 123], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-factory-instance-member/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-factory-instance-member/snapshots/4-Babel-Tokens.shot index 265530c0bf96..19a54279d052 100644 --- a/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-factory-instance-member/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-factory-instance-member/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures method-decorators method-decorator-factory-instance-member Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-factory-static-member/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-factory-static-member/snapshots/1-TSESTree-AST.shot index cb404acaf120..1ba188270935 100644 --- a/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-factory-static-member/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-factory-static-member/snapshots/1-TSESTree-AST.shot @@ -3,21 +3,21 @@ exports[`AST Fixtures legacy-fixtures method-decorators method-decorator-factory-static-member TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: CallExpression { type: "CallExpression", - arguments: Array [ + arguments: [ Literal { type: "Literal", raw: "false", @@ -74,7 +74,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [121, 123], loc: { @@ -85,7 +85,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [118, 123], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-factory-static-member/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-factory-static-member/snapshots/2-TSESTree-Tokens.shot index 05b2b67a0e3f..b4b90df0ff01 100644 --- a/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-factory-static-member/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-factory-static-member/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures method-decorators method-decorator-factory-static-member TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-factory-static-member/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-factory-static-member/snapshots/3-Babel-AST.shot index 679c8a074a86..80b5ff4c6e44 100644 --- a/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-factory-static-member/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-factory-static-member/snapshots/3-Babel-AST.shot @@ -3,21 +3,21 @@ exports[`AST Fixtures legacy-fixtures method-decorators method-decorator-factory-static-member Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: CallExpression { type: "CallExpression", - arguments: Array [ + arguments: [ Literal { type: "Literal", raw: "false", @@ -73,7 +73,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [121, 123], loc: { @@ -84,7 +84,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [118, 123], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-factory-static-member/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-factory-static-member/snapshots/4-Babel-Tokens.shot index 9b88d5ab4b3f..640d302b3858 100644 --- a/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-factory-static-member/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-factory-static-member/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures method-decorators method-decorator-factory-static-member Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-instance-member/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-instance-member/snapshots/1-TSESTree-AST.shot index 68f9a1e928f2..a1e1b7adeea2 100644 --- a/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-instance-member/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-instance-member/snapshots/1-TSESTree-AST.shot @@ -3,16 +3,16 @@ exports[`AST Fixtures legacy-fixtures method-decorators method-decorator-instance-member TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: Identifier { @@ -51,7 +51,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [114, 116], loc: { @@ -62,7 +62,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [111, 116], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-instance-member/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-instance-member/snapshots/2-TSESTree-Tokens.shot index 2a2893d47871..e6d279229aeb 100644 --- a/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-instance-member/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-instance-member/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures method-decorators method-decorator-instance-member TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-instance-member/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-instance-member/snapshots/3-Babel-AST.shot index 56178003948d..5aca7cff146a 100644 --- a/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-instance-member/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-instance-member/snapshots/3-Babel-AST.shot @@ -3,16 +3,16 @@ exports[`AST Fixtures legacy-fixtures method-decorators method-decorator-instance-member Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: Identifier { @@ -50,7 +50,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [114, 116], loc: { @@ -61,7 +61,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [111, 116], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-instance-member/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-instance-member/snapshots/4-Babel-Tokens.shot index 78f289479673..b5b920e946a9 100644 --- a/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-instance-member/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-instance-member/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures method-decorators method-decorator-instance-member Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-static-member/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-static-member/snapshots/1-TSESTree-AST.shot index 50f63095d101..e0879aad4f7f 100644 --- a/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-static-member/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-static-member/snapshots/1-TSESTree-AST.shot @@ -3,16 +3,16 @@ exports[`AST Fixtures legacy-fixtures method-decorators method-decorator-static-member TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: Identifier { @@ -51,7 +51,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [114, 116], loc: { @@ -62,7 +62,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [111, 116], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-static-member/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-static-member/snapshots/2-TSESTree-Tokens.shot index 573dca91dc5b..48f8d01d701b 100644 --- a/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-static-member/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-static-member/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures method-decorators method-decorator-static-member TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-static-member/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-static-member/snapshots/3-Babel-AST.shot index 708edc7ffbe0..074607795564 100644 --- a/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-static-member/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-static-member/snapshots/3-Babel-AST.shot @@ -3,16 +3,16 @@ exports[`AST Fixtures legacy-fixtures method-decorators method-decorator-static-member Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: Identifier { @@ -50,7 +50,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [114, 116], loc: { @@ -61,7 +61,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], range: [111, 116], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-static-member/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-static-member/snapshots/4-Babel-Tokens.shot index 0ff4d2265a79..f576bc23ce8c 100644 --- a/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-static-member/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/method-decorators/fixtures/method-decorator-static-member/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures method-decorators method-decorator-static-member Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/ambient-module-declaration-with-import/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/ambient-module-declaration-with-import/snapshots/1-TSESTree-AST.shot index 3cdbc8537ae7..6f6ba7b18771 100644 --- a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/ambient-module-declaration-with-import/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/ambient-module-declaration-with-import/snapshots/1-TSESTree-AST.shot @@ -3,15 +3,15 @@ exports[`AST Fixtures legacy-fixtures namespaces-and-modules ambient-module-declaration-with-import TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [ + body: [ ImportDeclaration { type: "ImportDeclaration", - assertions: Array [], + assertions: [], importKind: "value", source: Literal { type: "Literal", @@ -24,7 +24,7 @@ Program { end: { column: 21, line: 4 }, }, }, - specifiers: Array [ + specifiers: [ ImportDefaultSpecifier { type: "ImportDefaultSpecifier", local: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/ambient-module-declaration-with-import/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/ambient-module-declaration-with-import/snapshots/2-TSESTree-Tokens.shot index 7719fbe97d83..c4f1d7da3e16 100644 --- a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/ambient-module-declaration-with-import/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/ambient-module-declaration-with-import/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures namespaces-and-modules ambient-module-declaration-with-import TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/ambient-module-declaration-with-import/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/ambient-module-declaration-with-import/snapshots/3-Babel-AST.shot index a87aeb3998ae..c931a8447109 100644 --- a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/ambient-module-declaration-with-import/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/ambient-module-declaration-with-import/snapshots/3-Babel-AST.shot @@ -3,15 +3,15 @@ exports[`AST Fixtures legacy-fixtures namespaces-and-modules ambient-module-declaration-with-import Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [ + body: [ ImportDeclaration { type: "ImportDeclaration", - assertions: Array [], + assertions: [], importKind: "value", source: Literal { type: "Literal", @@ -24,7 +24,7 @@ Program { end: { column: 21, line: 4 }, }, }, - specifiers: Array [ + specifiers: [ ImportDefaultSpecifier { type: "ImportDefaultSpecifier", local: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/ambient-module-declaration-with-import/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/ambient-module-declaration-with-import/snapshots/4-Babel-Tokens.shot index ebadef958520..1cd36edb1d1c 100644 --- a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/ambient-module-declaration-with-import/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/ambient-module-declaration-with-import/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures namespaces-and-modules ambient-module-declaration-with-import Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/ambient-module-declaration-with-import/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/ambient-module-declaration-with-import/snapshots/5-AST-Alignment-AST.shot index a6aff688ab87..a4bb38eda3cb 100644 --- a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/ambient-module-declaration-with-import/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/ambient-module-declaration-with-import/snapshots/5-AST-Alignment-AST.shot @@ -19,7 +19,7 @@ exports[`AST Fixtures legacy-fixtures namespaces-and-modules ambient-module-decl importKind: 'value', source: Literal { type: 'Literal', - raw: '\\\\'fs\\\\'', + raw: '\\'fs\\'', value: 'fs', range: [122, 126], @@ -67,7 +67,7 @@ exports[`AST Fixtures legacy-fixtures namespaces-and-modules ambient-module-decl declare: true, id: Literal { type: 'Literal', - raw: '\\\\'i-use-things\\\\'', + raw: '\\'i-use-things\\'', value: 'i-use-things', range: [88, 102], diff --git a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/declare-namespace-with-exported-function/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/declare-namespace-with-exported-function/snapshots/1-TSESTree-AST.shot index c4767e22bd00..7a9520eefe6b 100644 --- a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/declare-namespace-with-exported-function/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/declare-namespace-with-exported-function/snapshots/1-TSESTree-AST.shot @@ -3,15 +3,15 @@ exports[`AST Fixtures legacy-fixtures namespaces-and-modules declare-namespace-with-exported-function TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: TSDeclareFunction { type: "TSDeclareFunction", async: false, @@ -27,7 +27,7 @@ Program { end: { column: 24, line: 4 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "selector", @@ -73,7 +73,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSAnyKeyword { type: "TSAnyKeyword", @@ -114,7 +114,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [98, 155], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/declare-namespace-with-exported-function/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/declare-namespace-with-exported-function/snapshots/2-TSESTree-Tokens.shot index f42cf348c256..7cca79885240 100644 --- a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/declare-namespace-with-exported-function/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/declare-namespace-with-exported-function/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures namespaces-and-modules declare-namespace-with-exported-function TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/declare-namespace-with-exported-function/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/declare-namespace-with-exported-function/snapshots/3-Babel-AST.shot index d153d51196f0..db52debf762a 100644 --- a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/declare-namespace-with-exported-function/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/declare-namespace-with-exported-function/snapshots/3-Babel-AST.shot @@ -3,15 +3,15 @@ exports[`AST Fixtures legacy-fixtures namespaces-and-modules declare-namespace-with-exported-function Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: TSDeclareFunction { type: "TSDeclareFunction", async: false, @@ -27,7 +27,7 @@ Program { end: { column: 24, line: 4 }, }, }, - params: Array [ + params: [ Identifier { type: "Identifier", name: "selector", @@ -73,7 +73,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSAnyKeyword { type: "TSAnyKeyword", @@ -114,7 +114,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [98, 155], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/declare-namespace-with-exported-function/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/declare-namespace-with-exported-function/snapshots/4-Babel-Tokens.shot index 3461c38ebce4..9f5f06d9331c 100644 --- a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/declare-namespace-with-exported-function/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/declare-namespace-with-exported-function/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures namespaces-and-modules declare-namespace-with-exported-function Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/global-module-declaration/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/global-module-declaration/snapshots/1-TSESTree-AST.shot index 8177f6c6582a..1d9549b200dd 100644 --- a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/global-module-declaration/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/global-module-declaration/snapshots/1-TSESTree-AST.shot @@ -3,17 +3,17 @@ exports[`AST Fixtures legacy-fixtures namespaces-and-modules global-module-declaration TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [], + body: [], range: [114, 116], loc: { @@ -44,7 +44,7 @@ Program { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [], + body: [], range: [144, 146], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/global-module-declaration/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/global-module-declaration/snapshots/2-TSESTree-Tokens.shot index fa644bf41cc2..4fe23df8a15e 100644 --- a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/global-module-declaration/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/global-module-declaration/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures namespaces-and-modules global-module-declaration TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/global-module-declaration/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/global-module-declaration/snapshots/3-Babel-AST.shot index 138b3944413d..005eb94d1bed 100644 --- a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/global-module-declaration/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/global-module-declaration/snapshots/3-Babel-AST.shot @@ -3,17 +3,17 @@ exports[`AST Fixtures legacy-fixtures namespaces-and-modules global-module-declaration Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [], + body: [], range: [114, 116], loc: { @@ -43,7 +43,7 @@ Program { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [], + body: [], range: [144, 146], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/global-module-declaration/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/global-module-declaration/snapshots/4-Babel-Tokens.shot index dcc869e00d23..7d7655cc8d11 100644 --- a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/global-module-declaration/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/global-module-declaration/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures namespaces-and-modules global-module-declaration Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/module-with-default-exports/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/module-with-default-exports/snapshots/1-TSESTree-AST.shot index 8ad7040deeec..8995a4b18b96 100644 --- a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/module-with-default-exports/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/module-with-default-exports/snapshots/1-TSESTree-AST.shot @@ -3,19 +3,19 @@ exports[`AST Fixtures legacy-fixtures namespaces-and-modules module-with-default-exports TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [ + body: [ ExportDefaultDeclaration { type: "ExportDefaultDeclaration", declaration: ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -37,7 +37,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [131, 133], loc: { @@ -48,7 +48,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSTypeReference { @@ -132,7 +132,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [170, 172], loc: { @@ -152,7 +152,7 @@ Program { end: { column: 29, line: 7 }, }, }, - params: Array [], + params: [], range: [155, 172], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/module-with-default-exports/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/module-with-default-exports/snapshots/2-TSESTree-Tokens.shot index c89588013c92..f62f887b4437 100644 --- a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/module-with-default-exports/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/module-with-default-exports/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures namespaces-and-modules module-with-default-exports TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "module", diff --git a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/module-with-default-exports/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/module-with-default-exports/snapshots/3-Babel-AST.shot index 9938ec6227ce..db1e7a7c4427 100644 --- a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/module-with-default-exports/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/module-with-default-exports/snapshots/3-Babel-AST.shot @@ -3,19 +3,19 @@ exports[`AST Fixtures legacy-fixtures namespaces-and-modules module-with-default-exports Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [ + body: [ ExportDefaultDeclaration { type: "ExportDefaultDeclaration", declaration: ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -36,7 +36,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [131, 133], loc: { @@ -47,7 +47,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSTypeReference { @@ -131,7 +131,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [170, 172], loc: { @@ -151,7 +151,7 @@ Program { end: { column: 29, line: 7 }, }, }, - params: Array [], + params: [], range: [155, 172], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/module-with-default-exports/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/module-with-default-exports/snapshots/4-Babel-Tokens.shot index 5994aef52bcc..ff04bc235648 100644 --- a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/module-with-default-exports/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/module-with-default-exports/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures namespaces-and-modules module-with-default-exports Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "module", diff --git a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/module-with-default-exports/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/module-with-default-exports/snapshots/5-AST-Alignment-AST.shot index 934dda17d284..8c520bc89571 100644 --- a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/module-with-default-exports/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/module-with-default-exports/snapshots/5-AST-Alignment-AST.shot @@ -182,7 +182,7 @@ exports[`AST Fixtures legacy-fixtures namespaces-and-modules module-with-default }, id: Literal { type: 'Literal', - raw: '\\\\'foo\\\\'', + raw: '\\'foo\\'', value: 'foo', range: [80, 85], diff --git a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/nested-internal-module/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/nested-internal-module/snapshots/1-TSESTree-AST.shot index e88155e93516..7a69ae733f8d 100644 --- a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/nested-internal-module/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/nested-internal-module/snapshots/1-TSESTree-AST.shot @@ -3,18 +3,18 @@ exports[`AST Fixtures legacy-fixtures namespaces-and-modules nested-internal-module TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -56,7 +56,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [86, 115], loc: { @@ -66,12 +66,12 @@ Program { }, ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -93,7 +93,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [191, 193], loc: { @@ -104,7 +104,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ TSParameterProperty { type: "TSParameterProperty", accessibility: "public", @@ -224,7 +224,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [118, 197], loc: { @@ -234,20 +234,20 @@ Program { }, ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [ + body: [ TSPropertySignature { type: "TSPropertySignature", computed: false, @@ -313,7 +313,7 @@ Program { }, exportKind: "type", source: null, - specifiers: Array [], + specifiers: [], range: [222, 269], loc: { @@ -349,7 +349,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [200, 273], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/nested-internal-module/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/nested-internal-module/snapshots/2-TSESTree-Tokens.shot index 126c97819117..e3447023c759 100644 --- a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/nested-internal-module/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/nested-internal-module/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures namespaces-and-modules nested-internal-module TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "module", diff --git a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/nested-internal-module/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/nested-internal-module/snapshots/3-Babel-AST.shot index fdfb3a4d9107..779d97cdbd1c 100644 --- a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/nested-internal-module/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/nested-internal-module/snapshots/3-Babel-AST.shot @@ -3,18 +3,18 @@ exports[`AST Fixtures legacy-fixtures namespaces-and-modules nested-internal-module Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -56,7 +56,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [86, 115], loc: { @@ -66,12 +66,12 @@ Program { }, ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -92,7 +92,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [191, 193], loc: { @@ -103,7 +103,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ TSParameterProperty { type: "TSParameterProperty", accessibility: "public", @@ -223,7 +223,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [118, 197], loc: { @@ -233,20 +233,20 @@ Program { }, ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: TSModuleDeclaration { type: "TSModuleDeclaration", body: TSModuleBlock { type: "TSModuleBlock", - body: Array [ + body: [ ExportNamedDeclaration { type: "ExportNamedDeclaration", - assertions: Array [], + assertions: [], declaration: TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [ + body: [ TSPropertySignature { type: "TSPropertySignature", computed: false, @@ -312,7 +312,7 @@ Program { }, exportKind: "type", source: null, - specifiers: Array [], + specifiers: [], range: [222, 269], loc: { @@ -347,7 +347,7 @@ Program { }, exportKind: "value", source: null, - specifiers: Array [], + specifiers: [], range: [200, 273], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/nested-internal-module/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/nested-internal-module/snapshots/4-Babel-Tokens.shot index 6ec3f766f4e1..7819eee28a12 100644 --- a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/nested-internal-module/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/nested-internal-module/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures namespaces-and-modules nested-internal-module Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "module", diff --git a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/nested-internal-module/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/nested-internal-module/snapshots/5-AST-Alignment-AST.shot index 1b64e4bd8e89..e56b3755388b 100644 --- a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/nested-internal-module/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/nested-internal-module/snapshots/5-AST-Alignment-AST.shot @@ -33,7 +33,7 @@ exports[`AST Fixtures legacy-fixtures namespaces-and-modules nested-internal-mod }, init: Literal { type: 'Literal', - raw: '\\\\'hello world\\\\'', + raw: '\\'hello world\\'', value: 'hello world', range: [101, 114], diff --git a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/nested-internal-module/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/nested-internal-module/snapshots/6-AST-Alignment-Tokens.shot index 0085ca364f98..22adb3f05ccf 100644 --- a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/nested-internal-module/snapshots/6-AST-Alignment-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/nested-internal-module/snapshots/6-AST-Alignment-Tokens.shot @@ -78,7 +78,7 @@ exports[`AST Fixtures legacy-fixtures namespaces-and-modules nested-internal-mod }, String { type: 'String', - value: '\\\\'hello world\\\\'', + value: '\\'hello world\\'', range: [101, 114], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/shorthand-ambient-module-declaration/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/shorthand-ambient-module-declaration/snapshots/1-TSESTree-AST.shot index 7f7359ae7fa6..0d66ff7b55fa 100644 --- a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/shorthand-ambient-module-declaration/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/shorthand-ambient-module-declaration/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures namespaces-and-modules shorthand-ambient-module-declaration TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", declare: true, diff --git a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/shorthand-ambient-module-declaration/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/shorthand-ambient-module-declaration/snapshots/2-TSESTree-Tokens.shot index 7617a3258cd5..9b9c3f759c2c 100644 --- a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/shorthand-ambient-module-declaration/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/shorthand-ambient-module-declaration/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures namespaces-and-modules shorthand-ambient-module-declaration TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/shorthand-ambient-module-declaration/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/shorthand-ambient-module-declaration/snapshots/3-Babel-AST.shot index 4e89ae88cf14..54e59c1327b2 100644 --- a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/shorthand-ambient-module-declaration/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/shorthand-ambient-module-declaration/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures namespaces-and-modules shorthand-ambient-module-declaration Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSModuleDeclaration { type: "TSModuleDeclaration", declare: true, diff --git a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/shorthand-ambient-module-declaration/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/shorthand-ambient-module-declaration/snapshots/4-Babel-Tokens.shot index 06a137ecafd8..b961ab8639a9 100644 --- a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/shorthand-ambient-module-declaration/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/shorthand-ambient-module-declaration/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures namespaces-and-modules shorthand-ambient-module-declaration Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", diff --git a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/shorthand-ambient-module-declaration/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/shorthand-ambient-module-declaration/snapshots/5-AST-Alignment-AST.shot index 99c15addea30..f03ca3edb1e7 100644 --- a/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/shorthand-ambient-module-declaration/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/namespaces-and-modules/fixtures/shorthand-ambient-module-declaration/snapshots/5-AST-Alignment-AST.shot @@ -13,7 +13,7 @@ exports[`AST Fixtures legacy-fixtures namespaces-and-modules shorthand-ambient-m declare: true, id: Literal { type: 'Literal', - raw: '\\\\'hot-new-module\\\\'', + raw: '\\'hot-new-module\\'', value: 'hot-new-module', range: [88, 104], diff --git a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-constructor/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-constructor/snapshots/1-TSESTree-AST.shot index afe6694b9f58..8c0302752486 100644 --- a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-constructor/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-constructor/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures parameter-decorators parameter-decorator-constructor TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -30,7 +30,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: AssignmentExpression { @@ -122,15 +122,15 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: CallExpression { type: "CallExpression", - arguments: Array [ + arguments: [ Identifier { type: "Identifier", name: "APP_CONFIG", diff --git a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-constructor/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-constructor/snapshots/2-TSESTree-Tokens.shot index b210b9ccc398..c92295b97ef6 100644 --- a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-constructor/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-constructor/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures parameter-decorators parameter-decorator-constructor TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-constructor/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-constructor/snapshots/3-Babel-AST.shot index 44ff47fce39f..3287a2d3f20e 100644 --- a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-constructor/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-constructor/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures parameter-decorators parameter-decorator-constructor Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -29,7 +29,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: AssignmentExpression { @@ -121,15 +121,15 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: CallExpression { type: "CallExpression", - arguments: Array [ + arguments: [ Identifier { type: "Identifier", name: "APP_CONFIG", diff --git a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-constructor/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-constructor/snapshots/4-Babel-Tokens.shot index b80d35e54b3f..83d47c221262 100644 --- a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-constructor/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-constructor/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures parameter-decorators parameter-decorator-constructor Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-decorator-instance-member/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-decorator-instance-member/snapshots/1-TSESTree-AST.shot index ab2868fbe2d3..8a4d5f4c98bc 100644 --- a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-decorator-instance-member/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-decorator-instance-member/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures parameter-decorators parameter-decorator-decorator-instance-member TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -30,7 +30,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [119, 121], loc: { @@ -41,15 +41,15 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: CallExpression { type: "CallExpression", - arguments: Array [ + arguments: [ Literal { type: "Literal", raw: "true", diff --git a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-decorator-instance-member/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-decorator-instance-member/snapshots/2-TSESTree-Tokens.shot index 96cd8f22e2ce..cbfbc2042217 100644 --- a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-decorator-instance-member/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-decorator-instance-member/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures parameter-decorators parameter-decorator-decorator-instance-member TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-decorator-instance-member/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-decorator-instance-member/snapshots/3-Babel-AST.shot index 5267fa1134b3..d0d2e08b36c2 100644 --- a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-decorator-instance-member/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-decorator-instance-member/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures parameter-decorators parameter-decorator-decorator-instance-member Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -29,7 +29,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [119, 121], loc: { @@ -40,15 +40,15 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: CallExpression { type: "CallExpression", - arguments: Array [ + arguments: [ Literal { type: "Literal", raw: "true", diff --git a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-decorator-instance-member/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-decorator-instance-member/snapshots/4-Babel-Tokens.shot index 070ea1c5cee5..11f089d82cea 100644 --- a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-decorator-instance-member/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-decorator-instance-member/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures parameter-decorators parameter-decorator-decorator-instance-member Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-decorator-static-member/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-decorator-static-member/snapshots/1-TSESTree-AST.shot index 48bbd6bdb662..13b43a4c7868 100644 --- a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-decorator-static-member/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-decorator-static-member/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures parameter-decorators parameter-decorator-decorator-static-member TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -30,7 +30,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [132, 134], loc: { @@ -41,15 +41,15 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: CallExpression { type: "CallExpression", - arguments: Array [ + arguments: [ Literal { type: "Literal", raw: "true", diff --git a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-decorator-static-member/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-decorator-static-member/snapshots/2-TSESTree-Tokens.shot index 2f09aadd14b1..f40401e45391 100644 --- a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-decorator-static-member/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-decorator-static-member/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures parameter-decorators parameter-decorator-decorator-static-member TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-decorator-static-member/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-decorator-static-member/snapshots/3-Babel-AST.shot index 0f29373520d7..062d3c8dedb4 100644 --- a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-decorator-static-member/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-decorator-static-member/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures parameter-decorators parameter-decorator-decorator-static-member Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -29,7 +29,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [132, 134], loc: { @@ -40,15 +40,15 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: CallExpression { type: "CallExpression", - arguments: Array [ + arguments: [ Literal { type: "Literal", raw: "true", diff --git a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-decorator-static-member/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-decorator-static-member/snapshots/4-Babel-Tokens.shot index 588806aa2107..e983516e09ba 100644 --- a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-decorator-static-member/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-decorator-static-member/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures parameter-decorators parameter-decorator-decorator-static-member Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-instance-member/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-instance-member/snapshots/1-TSESTree-AST.shot index dbb217b47aab..0c36c85c3fb6 100644 --- a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-instance-member/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-instance-member/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures parameter-decorators parameter-decorator-instance-member TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -30,7 +30,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: BinaryExpression { @@ -103,10 +103,10 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-instance-member/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-instance-member/snapshots/2-TSESTree-Tokens.shot index f03c33446329..6f09238f3d67 100644 --- a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-instance-member/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-instance-member/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures parameter-decorators parameter-decorator-instance-member TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-instance-member/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-instance-member/snapshots/3-Babel-AST.shot index aaa63ca2d734..9130cf80429c 100644 --- a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-instance-member/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-instance-member/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures parameter-decorators parameter-decorator-instance-member Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -29,7 +29,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: BinaryExpression { @@ -102,10 +102,10 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-instance-member/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-instance-member/snapshots/4-Babel-Tokens.shot index c336eda6669b..1676ca5587f7 100644 --- a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-instance-member/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-instance-member/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures parameter-decorators parameter-decorator-instance-member Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-instance-member/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-instance-member/snapshots/5-AST-Alignment-AST.shot index 8ea69118b84d..b84aefb6c2cd 100644 --- a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-instance-member/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-instance-member/snapshots/5-AST-Alignment-AST.shot @@ -43,7 +43,7 @@ exports[`AST Fixtures legacy-fixtures parameter-decorators parameter-decorator-i type: 'BinaryExpression', left: Literal { type: 'Literal', - raw: '\\\\'Hello \\\\'', + raw: '\\'Hello \\'', value: 'Hello ', range: [134, 142], @@ -73,7 +73,7 @@ exports[`AST Fixtures legacy-fixtures parameter-decorators parameter-decorator-i operator: '+', right: Literal { type: 'Literal', - raw: '\\\\'!\\\\'', + raw: '\\'!\\'', value: '!', range: [152, 155], diff --git a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-static-member/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-static-member/snapshots/1-TSESTree-AST.shot index d4cdbef76e31..010f9e11d874 100644 --- a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-static-member/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-static-member/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures parameter-decorators parameter-decorator-static-member TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -30,7 +30,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: BinaryExpression { @@ -103,10 +103,10 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-static-member/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-static-member/snapshots/2-TSESTree-Tokens.shot index f9990e5f313b..2d6fc95e59e7 100644 --- a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-static-member/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-static-member/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures parameter-decorators parameter-decorator-static-member TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-static-member/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-static-member/snapshots/3-Babel-AST.shot index 7db0f3ebff6e..3cdd432b398e 100644 --- a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-static-member/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-static-member/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures parameter-decorators parameter-decorator-static-member Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -29,7 +29,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: BinaryExpression { @@ -102,10 +102,10 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-static-member/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-static-member/snapshots/4-Babel-Tokens.shot index 39fddcb82066..25a67b8eeea5 100644 --- a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-static-member/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-static-member/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures parameter-decorators parameter-decorator-static-member Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-static-member/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-static-member/snapshots/5-AST-Alignment-AST.shot index ba29c4e732b6..137099e071b7 100644 --- a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-static-member/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-static-member/snapshots/5-AST-Alignment-AST.shot @@ -43,7 +43,7 @@ exports[`AST Fixtures legacy-fixtures parameter-decorators parameter-decorator-s type: 'BinaryExpression', left: Literal { type: 'Literal', - raw: '\\\\'Hello \\\\'', + raw: '\\'Hello \\'', value: 'Hello ', range: [147, 155], @@ -73,7 +73,7 @@ exports[`AST Fixtures legacy-fixtures parameter-decorators parameter-decorator-s operator: '+', right: Literal { type: 'Literal', - raw: '\\\\'!\\\\'', + raw: '\\'!\\'', value: '!', range: [165, 168], diff --git a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-object-pattern-decorator/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-object-pattern-decorator/snapshots/1-TSESTree-AST.shot index c99dd3f4cbe1..d74da3c5e8bd 100644 --- a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-object-pattern-decorator/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-object-pattern-decorator/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures parameter-decorators parameter-object-pattern-decorator TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -30,7 +30,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [120, 122], loc: { @@ -41,15 +41,15 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ ObjectPattern { type: "ObjectPattern", - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: CallExpression { type: "CallExpression", - arguments: Array [ + arguments: [ Literal { type: "Literal", raw: "true", @@ -88,7 +88,7 @@ Program { }, }, ], - properties: Array [ + properties: [ Property { type: "Property", computed: false, diff --git a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-object-pattern-decorator/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-object-pattern-decorator/snapshots/2-TSESTree-Tokens.shot index a953ec70926d..013c96b08d31 100644 --- a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-object-pattern-decorator/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-object-pattern-decorator/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures parameter-decorators parameter-object-pattern-decorator TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-object-pattern-decorator/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-object-pattern-decorator/snapshots/3-Babel-AST.shot index d572a736609d..f65be5ca33b9 100644 --- a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-object-pattern-decorator/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-object-pattern-decorator/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures parameter-decorators parameter-object-pattern-decorator Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -29,7 +29,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [120, 122], loc: { @@ -40,15 +40,15 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ ObjectPattern { type: "ObjectPattern", - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: CallExpression { type: "CallExpression", - arguments: Array [ + arguments: [ Literal { type: "Literal", raw: "true", @@ -87,7 +87,7 @@ Program { }, }, ], - properties: Array [ + properties: [ Property { type: "Property", computed: false, diff --git a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-object-pattern-decorator/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-object-pattern-decorator/snapshots/4-Babel-Tokens.shot index 9bce1d3a49b8..fdc38c527b5a 100644 --- a/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-object-pattern-decorator/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/parameter-decorators/fixtures/parameter-object-pattern-decorator/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures parameter-decorators parameter-object-pattern-decorator Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-factory-instance-member/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-factory-instance-member/snapshots/1-TSESTree-AST.shot index ab8352e9521b..966aaf6f6141 100644 --- a/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-factory-instance-member/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-factory-instance-member/snapshots/1-TSESTree-AST.shot @@ -3,22 +3,22 @@ exports[`AST Fixtures legacy-fixtures property-decorators property-decorator-factory-instance-member TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, declare: false, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "Input", @@ -69,12 +69,12 @@ Program { type: "PropertyDefinition", computed: false, declare: false, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "Output", @@ -115,7 +115,7 @@ Program { static: false, value: NewExpression { type: "NewExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "EventEmitter", diff --git a/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-factory-instance-member/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-factory-instance-member/snapshots/2-TSESTree-Tokens.shot index e025b79485f4..9feb2e57b3f0 100644 --- a/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-factory-instance-member/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-factory-instance-member/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures property-decorators property-decorator-factory-instance-member TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-factory-instance-member/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-factory-instance-member/snapshots/3-Babel-AST.shot index 9bbe009d87b3..d6dc97875f54 100644 --- a/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-factory-instance-member/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-factory-instance-member/snapshots/3-Babel-AST.shot @@ -3,21 +3,21 @@ exports[`AST Fixtures legacy-fixtures property-decorators property-decorator-factory-instance-member Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "Input", @@ -66,12 +66,12 @@ Program { PropertyDefinition { type: "PropertyDefinition", computed: false, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "Output", @@ -111,7 +111,7 @@ Program { static: false, value: NewExpression { type: "NewExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "EventEmitter", diff --git a/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-factory-instance-member/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-factory-instance-member/snapshots/4-Babel-Tokens.shot index e367175331eb..e831e6cefbd7 100644 --- a/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-factory-instance-member/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-factory-instance-member/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures property-decorators property-decorator-factory-instance-member Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-factory-static-member/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-factory-static-member/snapshots/1-TSESTree-AST.shot index 8f8fb3fb6c47..42d3d5a3c5cb 100644 --- a/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-factory-static-member/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-factory-static-member/snapshots/1-TSESTree-AST.shot @@ -3,22 +3,22 @@ exports[`AST Fixtures legacy-fixtures property-decorators property-decorator-factory-static-member TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, declare: false, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: CallExpression { type: "CallExpression", - arguments: Array [ + arguments: [ Literal { type: "Literal", raw: "true", @@ -81,12 +81,12 @@ Program { type: "PropertyDefinition", computed: false, declare: false, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: CallExpression { type: "CallExpression", - arguments: Array [ + arguments: [ Literal { type: "Literal", raw: "false", diff --git a/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-factory-static-member/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-factory-static-member/snapshots/2-TSESTree-Tokens.shot index a35bcf0e7fa8..0c4548c39b77 100644 --- a/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-factory-static-member/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-factory-static-member/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures property-decorators property-decorator-factory-static-member TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-factory-static-member/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-factory-static-member/snapshots/3-Babel-AST.shot index ab07dcffcbe2..c22d7c29c0c0 100644 --- a/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-factory-static-member/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-factory-static-member/snapshots/3-Babel-AST.shot @@ -3,21 +3,21 @@ exports[`AST Fixtures legacy-fixtures property-decorators property-decorator-factory-static-member Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: CallExpression { type: "CallExpression", - arguments: Array [ + arguments: [ Literal { type: "Literal", raw: "true", @@ -78,12 +78,12 @@ Program { PropertyDefinition { type: "PropertyDefinition", computed: false, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: CallExpression { type: "CallExpression", - arguments: Array [ + arguments: [ Literal { type: "Literal", raw: "false", diff --git a/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-factory-static-member/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-factory-static-member/snapshots/4-Babel-Tokens.shot index 30814bcf07f8..d8f1b97f1644 100644 --- a/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-factory-static-member/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-factory-static-member/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures property-decorators property-decorator-factory-static-member Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-instance-member/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-instance-member/snapshots/1-TSESTree-AST.shot index 8c553fa54dcb..dda047dc2e91 100644 --- a/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-instance-member/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-instance-member/snapshots/1-TSESTree-AST.shot @@ -3,17 +3,17 @@ exports[`AST Fixtures legacy-fixtures property-decorators property-decorator-instance-member TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, declare: false, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: Identifier { @@ -58,7 +58,7 @@ Program { type: "PropertyDefinition", computed: false, declare: false, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-instance-member/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-instance-member/snapshots/2-TSESTree-Tokens.shot index b95a5753e4bc..a17ae66f863d 100644 --- a/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-instance-member/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-instance-member/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures property-decorators property-decorator-instance-member TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-instance-member/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-instance-member/snapshots/3-Babel-AST.shot index 13515331c766..127a2555db2b 100644 --- a/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-instance-member/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-instance-member/snapshots/3-Babel-AST.shot @@ -3,16 +3,16 @@ exports[`AST Fixtures legacy-fixtures property-decorators property-decorator-instance-member Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: Identifier { @@ -55,7 +55,7 @@ Program { PropertyDefinition { type: "PropertyDefinition", computed: false, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-instance-member/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-instance-member/snapshots/4-Babel-Tokens.shot index 65a0bb9965e1..591271223685 100644 --- a/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-instance-member/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-instance-member/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures property-decorators property-decorator-instance-member Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-static-member/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-static-member/snapshots/1-TSESTree-AST.shot index 747ae05d1e84..02a59096f9bf 100644 --- a/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-static-member/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-static-member/snapshots/1-TSESTree-AST.shot @@ -3,17 +3,17 @@ exports[`AST Fixtures legacy-fixtures property-decorators property-decorator-static-member TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, declare: false, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: Identifier { @@ -58,7 +58,7 @@ Program { type: "PropertyDefinition", computed: false, declare: false, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-static-member/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-static-member/snapshots/2-TSESTree-Tokens.shot index 4656944d0606..8fd8b0d18e72 100644 --- a/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-static-member/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-static-member/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures property-decorators property-decorator-static-member TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-static-member/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-static-member/snapshots/3-Babel-AST.shot index e9566ee72efc..541c64304145 100644 --- a/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-static-member/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-static-member/snapshots/3-Babel-AST.shot @@ -3,16 +3,16 @@ exports[`AST Fixtures legacy-fixtures property-decorators property-decorator-static-member Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", computed: false, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: Identifier { @@ -55,7 +55,7 @@ Program { PropertyDefinition { type: "PropertyDefinition", computed: false, - decorators: Array [ + decorators: [ Decorator { type: "Decorator", expression: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-static-member/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-static-member/snapshots/4-Babel-Tokens.shot index 814edd131c44..8698b2917845 100644 --- a/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-static-member/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/property-decorators/fixtures/property-decorator-static-member/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures property-decorators property-decorator-static-member Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/array-type/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/array-type/snapshots/1-TSESTree-AST.shot index cc32cb09d97a..225fb3a806d4 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/array-type/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/array-type/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types array-type TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/array-type/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/array-type/snapshots/2-TSESTree-Tokens.shot index c91357a624d1..9c67dd884e0d 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/array-type/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/array-type/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types array-type TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/array-type/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/array-type/snapshots/3-Babel-AST.shot index 7d37fee24ea7..c395fe27cac2 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/array-type/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/array-type/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types array-type Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/array-type/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/array-type/snapshots/4-Babel-Tokens.shot index bd7873afde21..e4812db31c88 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/array-type/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/array-type/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types array-type Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-nested/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-nested/snapshots/1-TSESTree-AST.shot index 9bffe5d67176..90bc84863782 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-nested/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-nested/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types conditional-infer-nested TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -43,6 +43,7 @@ Program { type: "TSInferType", typeParameter: TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", @@ -101,6 +102,7 @@ Program { type: "TSInferType", typeParameter: TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", @@ -162,11 +164,12 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSInferType { type: "TSInferType", typeParameter: TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", @@ -307,9 +310,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-nested/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-nested/snapshots/2-TSESTree-Tokens.shot index 0d0c01c9b039..9bf54a28e3f0 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-nested/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-nested/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types conditional-infer-nested TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-nested/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-nested/snapshots/3-Babel-AST.shot index 3b698a334893..752bfc6fe719 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-nested/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-nested/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types conditional-infer-nested Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -149,7 +149,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSInferType { type: "TSInferType", typeParameter: TSTypeParameter { @@ -283,7 +283,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-nested/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-nested/snapshots/4-Babel-Tokens.shot index a76304ead586..f5f8aef5972b 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-nested/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-nested/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types conditional-infer-nested Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-nested/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-nested/snapshots/5-AST-Alignment-AST.shot index 390ac4c254d3..72a35e38426f 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-nested/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-nested/snapshots/5-AST-Alignment-AST.shot @@ -47,6 +47,7 @@ exports[`AST Fixtures legacy-fixtures types conditional-infer-nested AST Alignme - type: 'TSInferType', - typeParameter: TSTypeParameter { - type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', @@ -116,6 +117,7 @@ exports[`AST Fixtures legacy-fixtures types conditional-infer-nested AST Alignme type: 'TSInferType', typeParameter: TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', @@ -183,6 +185,7 @@ exports[`AST Fixtures legacy-fixtures types conditional-infer-nested AST Alignme type: 'TSInferType', typeParameter: TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', @@ -327,6 +330,7 @@ exports[`AST Fixtures legacy-fixtures types conditional-infer-nested AST Alignme params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-simple/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-simple/snapshots/1-TSESTree-AST.shot index a8b7cf3db2ff..75f88840e0cc 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-simple/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-simple/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types conditional-infer-simple TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -39,7 +39,7 @@ Program { }, extendsType: TSTypeLiteral { type: "TSTypeLiteral", - members: Array [ + members: [ TSPropertySignature { type: "TSPropertySignature", computed: false, @@ -59,6 +59,7 @@ Program { type: "TSInferType", typeParameter: TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", @@ -118,6 +119,7 @@ Program { type: "TSInferType", typeParameter: TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", @@ -203,9 +205,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-simple/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-simple/snapshots/2-TSESTree-Tokens.shot index a81808a72b07..2bb6b51ef00c 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-simple/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-simple/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types conditional-infer-simple TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-simple/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-simple/snapshots/3-Babel-AST.shot index 8ce395793ea2..78564e82fa00 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-simple/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-simple/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types conditional-infer-simple Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -39,7 +39,7 @@ Program { }, extendsType: TSTypeLiteral { type: "TSTypeLiteral", - members: Array [ + members: [ TSPropertySignature { type: "TSPropertySignature", computed: false, @@ -181,7 +181,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-simple/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-simple/snapshots/4-Babel-Tokens.shot index 2225197d7442..151fbca3a61f 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-simple/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-simple/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types conditional-infer-simple Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-simple/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-simple/snapshots/5-AST-Alignment-AST.shot index a4c653aa539c..3e71f1e73e3d 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-simple/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-simple/snapshots/5-AST-Alignment-AST.shot @@ -63,6 +63,7 @@ exports[`AST Fixtures legacy-fixtures types conditional-infer-simple AST Alignme type: 'TSInferType', typeParameter: TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', @@ -123,6 +124,7 @@ exports[`AST Fixtures legacy-fixtures types conditional-infer-simple AST Alignme type: 'TSInferType', typeParameter: TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', @@ -212,6 +214,7 @@ exports[`AST Fixtures legacy-fixtures types conditional-infer-simple AST Alignme params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-with-constraint/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-with-constraint/snapshots/1-TSESTree-AST.shot index f63f70371c8c..7f0ff3f13014 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-with-constraint/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-with-constraint/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types conditional-infer-with-constraint TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -39,11 +39,12 @@ Program { }, extendsType: TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSInferType { type: "TSInferType", typeParameter: TSTypeParameter { type: "TSTypeParameter", + const: false, constraint: TSNumberKeyword { type: "TSNumberKeyword", @@ -110,7 +111,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -154,9 +155,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", @@ -226,11 +228,12 @@ Program { }, extendsType: TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSInferType { type: "TSInferType", typeParameter: TSTypeParameter { type: "TSTypeParameter", + const: false, constraint: TSNumberKeyword { type: "TSNumberKeyword", @@ -270,6 +273,7 @@ Program { type: "TSInferType", typeParameter: TSTypeParameter { type: "TSTypeParameter", + const: false, constraint: TSNumberKeyword { type: "TSNumberKeyword", @@ -336,7 +340,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -380,9 +384,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", @@ -452,11 +457,12 @@ Program { }, extendsType: TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSInferType { type: "TSInferType", typeParameter: TSTypeParameter { type: "TSTypeParameter", + const: false, constraint: TSNumberKeyword { type: "TSNumberKeyword", @@ -496,6 +502,7 @@ Program { type: "TSInferType", typeParameter: TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", @@ -553,7 +560,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -597,9 +604,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", @@ -669,11 +677,12 @@ Program { }, extendsType: TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSInferType { type: "TSInferType", typeParameter: TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", @@ -704,6 +713,7 @@ Program { type: "TSInferType", typeParameter: TSTypeParameter { type: "TSTypeParameter", + const: false, constraint: TSNumberKeyword { type: "TSNumberKeyword", @@ -770,7 +780,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -814,9 +824,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", @@ -886,11 +897,12 @@ Program { }, extendsType: TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSInferType { type: "TSInferType", typeParameter: TSTypeParameter { type: "TSTypeParameter", + const: false, constraint: TSStringKeyword { type: "TSStringKeyword", @@ -930,6 +942,7 @@ Program { type: "TSInferType", typeParameter: TSTypeParameter { type: "TSTypeParameter", + const: false, constraint: TSNumberKeyword { type: "TSNumberKeyword", @@ -1010,9 +1023,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-with-constraint/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-with-constraint/snapshots/2-TSESTree-Tokens.shot index 39e473b45515..94390bde0206 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-with-constraint/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-with-constraint/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types conditional-infer-with-constraint TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-with-constraint/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-with-constraint/snapshots/3-Babel-AST.shot index f2bddd4af9c7..05b5fc8f7488 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-with-constraint/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-with-constraint/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types conditional-infer-with-constraint Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -39,7 +39,7 @@ Program { }, extendsType: TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSInferType { type: "TSInferType", typeParameter: TSTypeParameter { @@ -99,7 +99,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -143,7 +143,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", @@ -204,7 +204,7 @@ Program { }, extendsType: TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSInferType { type: "TSInferType", typeParameter: TSTypeParameter { @@ -292,7 +292,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -336,7 +336,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", @@ -397,7 +397,7 @@ Program { }, extendsType: TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSInferType { type: "TSInferType", typeParameter: TSTypeParameter { @@ -476,7 +476,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -520,7 +520,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", @@ -581,7 +581,7 @@ Program { }, extendsType: TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSInferType { type: "TSInferType", typeParameter: TSTypeParameter { @@ -660,7 +660,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -704,7 +704,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", @@ -765,7 +765,7 @@ Program { }, extendsType: TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSInferType { type: "TSInferType", typeParameter: TSTypeParameter { @@ -867,7 +867,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-with-constraint/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-with-constraint/snapshots/4-Babel-Tokens.shot index 1933e1029186..280d4099c71c 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-with-constraint/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-with-constraint/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types conditional-infer-with-constraint Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-with-constraint/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-with-constraint/snapshots/5-AST-Alignment-AST.shot index 5ae5b0f49662..66f821f85af7 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-with-constraint/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-with-constraint/snapshots/5-AST-Alignment-AST.shot @@ -48,6 +48,7 @@ exports[`AST Fixtures legacy-fixtures types conditional-infer-with-constraint AS type: 'TSInferType', typeParameter: TSTypeParameter { type: 'TSTypeParameter', +- const: false, constraint: TSNumberKeyword { type: 'TSNumberKeyword', @@ -162,6 +163,7 @@ exports[`AST Fixtures legacy-fixtures types conditional-infer-with-constraint AS params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', @@ -237,6 +239,7 @@ exports[`AST Fixtures legacy-fixtures types conditional-infer-with-constraint AS type: 'TSInferType', typeParameter: TSTypeParameter { type: 'TSTypeParameter', +- const: false, constraint: TSNumberKeyword { type: 'TSNumberKeyword', @@ -277,6 +280,7 @@ exports[`AST Fixtures legacy-fixtures types conditional-infer-with-constraint AS type: 'TSInferType', typeParameter: TSTypeParameter { type: 'TSTypeParameter', +- const: false, constraint: TSNumberKeyword { type: 'TSNumberKeyword', @@ -391,6 +395,7 @@ exports[`AST Fixtures legacy-fixtures types conditional-infer-with-constraint AS params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', @@ -466,6 +471,7 @@ exports[`AST Fixtures legacy-fixtures types conditional-infer-with-constraint AS type: 'TSInferType', typeParameter: TSTypeParameter { type: 'TSTypeParameter', +- const: false, constraint: TSNumberKeyword { type: 'TSNumberKeyword', @@ -479,7 +485,8 @@ exports[`AST Fixtures legacy-fixtures types conditional-infer-with-constraint AS - name: Identifier { - type: 'Identifier', - name: 'U', -- ++ name: 'U', + - range: [281, 282], - loc: { - start: { column: 30, line: 7 }, @@ -487,8 +494,7 @@ exports[`AST Fixtures legacy-fixtures types conditional-infer-with-constraint AS - }, - }, - out: false, -+ name: 'U', - +- range: [281, 297], loc: { start: { column: 30, line: 7 }, @@ -506,6 +512,7 @@ exports[`AST Fixtures legacy-fixtures types conditional-infer-with-constraint AS type: 'TSInferType', typeParameter: TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', @@ -611,6 +618,7 @@ exports[`AST Fixtures legacy-fixtures types conditional-infer-with-constraint AS params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', @@ -686,6 +694,7 @@ exports[`AST Fixtures legacy-fixtures types conditional-infer-with-constraint AS type: 'TSInferType', typeParameter: TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', @@ -717,6 +726,7 @@ exports[`AST Fixtures legacy-fixtures types conditional-infer-with-constraint AS type: 'TSInferType', typeParameter: TSTypeParameter { type: 'TSTypeParameter', +- const: false, constraint: TSNumberKeyword { type: 'TSNumberKeyword', @@ -831,6 +841,7 @@ exports[`AST Fixtures legacy-fixtures types conditional-infer-with-constraint AS params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', @@ -906,6 +917,7 @@ exports[`AST Fixtures legacy-fixtures types conditional-infer-with-constraint AS type: 'TSInferType', typeParameter: TSTypeParameter { type: 'TSTypeParameter', +- const: false, constraint: TSStringKeyword { type: 'TSStringKeyword', @@ -946,6 +958,7 @@ exports[`AST Fixtures legacy-fixtures types conditional-infer-with-constraint AS type: 'TSInferType', typeParameter: TSTypeParameter { type: 'TSTypeParameter', +- const: false, constraint: TSNumberKeyword { type: 'TSNumberKeyword', @@ -1030,6 +1043,7 @@ exports[`AST Fixtures legacy-fixtures types conditional-infer-with-constraint AS params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer/snapshots/1-TSESTree-AST.shot index 908466c31fdb..5729345d21ce 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types conditional-infer TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -43,6 +43,7 @@ Program { type: "TSInferType", typeParameter: TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", @@ -123,9 +124,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer/snapshots/2-TSESTree-Tokens.shot index 8836fca5c95b..637f047cf48c 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types conditional-infer TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer/snapshots/3-Babel-AST.shot index 52e7262ca188..1b1d98f06eb7 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types conditional-infer Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -121,7 +121,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer/snapshots/4-Babel-Tokens.shot index 9ce8b2c732ad..5186ec6c4aff 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types conditional-infer Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer/snapshots/5-AST-Alignment-AST.shot index 285e659b66b6..bc029519defe 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer/snapshots/5-AST-Alignment-AST.shot @@ -47,6 +47,7 @@ exports[`AST Fixtures legacy-fixtures types conditional-infer AST Alignment - AS - type: 'TSInferType', - typeParameter: TSTypeParameter { - type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', @@ -141,6 +142,7 @@ exports[`AST Fixtures legacy-fixtures types conditional-infer AST Alignment - AS params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-with-null/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-with-null/snapshots/1-TSESTree-AST.shot index e7d19856275e..c706c876155b 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-with-null/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-with-null/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types conditional-with-null TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-with-null/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-with-null/snapshots/2-TSESTree-Tokens.shot index 73f37eb82e4c..4d055081b807 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-with-null/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-with-null/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types conditional-with-null TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-with-null/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-with-null/snapshots/3-Babel-AST.shot index 9593b5fb2c05..b5fcbaeb7772 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-with-null/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-with-null/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types conditional-with-null Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-with-null/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-with-null/snapshots/4-Babel-Tokens.shot index 9cb32bb42d47..a8ae3aeac387 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-with-null/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-with-null/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types conditional-with-null Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional/snapshots/1-TSESTree-AST.shot index 49da7018a3f3..169e3213d250 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types conditional TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional/snapshots/2-TSESTree-Tokens.shot index 8005029de90c..9ca398675b6f 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types conditional TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional/snapshots/3-Babel-AST.shot index 14884b0de3c8..33406ab2a310 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types conditional Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional/snapshots/4-Babel-Tokens.shot index 0faa2500484a..759794a92cd9 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types conditional Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-abstract/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-abstract/snapshots/1-TSESTree-AST.shot index 1b948a21b47c..fe59ab02cade 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-abstract/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-abstract/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types constructor-abstract TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -17,7 +17,7 @@ Program { typeAnnotation: TSConstructorType { type: "TSConstructorType", abstract: true, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSVoidKeyword { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-abstract/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-abstract/snapshots/2-TSESTree-Tokens.shot index b71cb9dd1f8f..39faa1a32114 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-abstract/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-abstract/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types constructor-abstract TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "var", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-abstract/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-abstract/snapshots/3-Babel-AST.shot index 4494b2231000..3fd7707c7c0f 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-abstract/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-abstract/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types constructor-abstract Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -17,7 +17,7 @@ Program { typeAnnotation: TSConstructorType { type: "TSConstructorType", abstract: true, - parameters: Array [], + parameters: [], typeAnnotation: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSVoidKeyword { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-abstract/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-abstract/snapshots/4-Babel-Tokens.shot index fe543a963c56..28813935a84b 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-abstract/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-abstract/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types constructor-abstract Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "var", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-empty/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-empty/snapshots/1-TSESTree-AST.shot index 97094ac255f7..1c3027b53b7b 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-empty/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-empty/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types constructor-empty TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -17,7 +17,7 @@ Program { typeAnnotation: TSConstructorType { type: "TSConstructorType", abstract: false, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSVoidKeyword { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-empty/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-empty/snapshots/2-TSESTree-Tokens.shot index 3bca13e45f99..ac72407d3fea 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-empty/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-empty/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types constructor-empty TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "var", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-empty/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-empty/snapshots/3-Babel-AST.shot index d4a581866891..2fb1277e88bb 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-empty/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-empty/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types constructor-empty Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -17,7 +17,7 @@ Program { typeAnnotation: TSConstructorType { type: "TSConstructorType", abstract: false, - parameters: Array [], + parameters: [], typeAnnotation: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSVoidKeyword { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-empty/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-empty/snapshots/4-Babel-Tokens.shot index 560b0d6459ce..9c6be37d11b7 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-empty/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-empty/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types constructor-empty Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "var", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-generic/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-generic/snapshots/1-TSESTree-AST.shot index 37e9d21a8b9e..f033a300a711 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-generic/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-generic/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types constructor-generic TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -17,7 +17,7 @@ Program { typeAnnotation: TSConstructorType { type: "TSConstructorType", abstract: false, - params: Array [ + params: [ Identifier { type: "Identifier", name: "a", @@ -87,9 +87,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-generic/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-generic/snapshots/2-TSESTree-Tokens.shot index 785e9709024a..4bcc2ba7eefd 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-generic/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-generic/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types constructor-generic TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-generic/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-generic/snapshots/3-Babel-AST.shot index 8c13525e41f6..478497eecb0b 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-generic/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-generic/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types constructor-generic Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -17,7 +17,7 @@ Program { typeAnnotation: TSConstructorType { type: "TSConstructorType", abstract: false, - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "a", @@ -87,7 +87,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-generic/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-generic/snapshots/4-Babel-Tokens.shot index cec725353581..d40e81f1a7e8 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-generic/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-generic/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types constructor-generic Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-generic/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-generic/snapshots/5-AST-Alignment-AST.shot index fb218b26aa37..1726ad50b2fb 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-generic/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-generic/snapshots/5-AST-Alignment-AST.shot @@ -96,6 +96,7 @@ exports[`AST Fixtures legacy-fixtures types constructor-generic AST Alignment - params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-in-generic/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-in-generic/snapshots/1-TSESTree-AST.shot index 9178ec23de8c..b67848f0878e 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-in-generic/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-in-generic/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types constructor-in-generic TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -28,11 +28,11 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSConstructorType { type: "TSConstructorType", abstract: false, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSStringKeyword { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-in-generic/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-in-generic/snapshots/2-TSESTree-Tokens.shot index 3a59b96dc1a2..68b23cac7871 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-in-generic/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-in-generic/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types constructor-in-generic TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-in-generic/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-in-generic/snapshots/3-Babel-AST.shot index d4ce469e976d..5dcbb53d288b 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-in-generic/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-in-generic/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types constructor-in-generic Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -28,11 +28,11 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSConstructorType { type: "TSConstructorType", abstract: false, - parameters: Array [], + parameters: [], typeAnnotation: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSStringKeyword { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-in-generic/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-in-generic/snapshots/4-Babel-Tokens.shot index 02e2a1e44747..3fa2b0f8d5e9 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-in-generic/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-in-generic/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types constructor-in-generic Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-with-rest/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-with-rest/snapshots/1-TSESTree-AST.shot index f64c601255bb..2948097fb1cc 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-with-rest/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-with-rest/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types constructor-with-rest TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -17,7 +17,7 @@ Program { typeAnnotation: TSConstructorType { type: "TSConstructorType", abstract: false, - params: Array [ + params: [ RestElement { type: "RestElement", argument: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-with-rest/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-with-rest/snapshots/2-TSESTree-Tokens.shot index 95af4af85adb..30009e3096d6 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-with-rest/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-with-rest/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types constructor-with-rest TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-with-rest/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-with-rest/snapshots/3-Babel-AST.shot index 38eca71ac7d8..d6d1e02a5782 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-with-rest/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-with-rest/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types constructor-with-rest Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -17,7 +17,7 @@ Program { typeAnnotation: TSConstructorType { type: "TSConstructorType", abstract: false, - parameters: Array [ + parameters: [ RestElement { type: "RestElement", argument: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-with-rest/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-with-rest/snapshots/4-Babel-Tokens.shot index 2947223e8a9b..6d77ffbd9947 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-with-rest/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor-with-rest/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types constructor-with-rest Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor/snapshots/1-TSESTree-AST.shot index b4d3ef6fec77..a4234ce3c195 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types constructor TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -17,7 +17,7 @@ Program { typeAnnotation: TSConstructorType { type: "TSConstructorType", abstract: false, - params: Array [ + params: [ Identifier { type: "Identifier", name: "a", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor/snapshots/2-TSESTree-Tokens.shot index 0901a5f1ee72..b25a04261092 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types constructor TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor/snapshots/3-Babel-AST.shot index 0dfd10835134..c1c4516e7aa7 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types constructor Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -17,7 +17,7 @@ Program { typeAnnotation: TSConstructorType { type: "TSConstructorType", abstract: false, - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "a", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor/snapshots/4-Babel-Tokens.shot index cb98a14c7264..9b84a6def352 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/constructor/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types constructor Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-generic/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-generic/snapshots/1-TSESTree-AST.shot index a2a6283fff86..a35ab7d77703 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-generic/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-generic/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types function-generic TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -16,7 +16,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSFunctionType { type: "TSFunctionType", - params: Array [ + params: [ Identifier { type: "Identifier", name: "a", @@ -86,9 +86,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-generic/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-generic/snapshots/2-TSESTree-Tokens.shot index 886955b1b831..2c5d77a59e60 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-generic/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-generic/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types function-generic TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-generic/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-generic/snapshots/3-Babel-AST.shot index d96054c8727c..8ba3e03e793e 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-generic/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-generic/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types function-generic Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -16,7 +16,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSFunctionType { type: "TSFunctionType", - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "a", @@ -86,7 +86,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-generic/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-generic/snapshots/4-Babel-Tokens.shot index 05ec45050054..0c4e258dca6c 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-generic/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-generic/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types function-generic Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-generic/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-generic/snapshots/5-AST-Alignment-AST.shot index a8213dcf5ab1..8fcec2c09052 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-generic/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-generic/snapshots/5-AST-Alignment-AST.shot @@ -95,6 +95,7 @@ exports[`AST Fixtures legacy-fixtures types function-generic AST Alignment - AST params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-in-generic/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-in-generic/snapshots/1-TSESTree-AST.shot index ff04b86962ae..485bc5c50e6e 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-in-generic/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-in-generic/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types function-in-generic TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -28,10 +28,10 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSFunctionType { type: "TSFunctionType", - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSVoidKeyword { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-in-generic/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-in-generic/snapshots/2-TSESTree-Tokens.shot index 8964bca233cf..bdad9f772e6c 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-in-generic/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-in-generic/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types function-in-generic TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-in-generic/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-in-generic/snapshots/3-Babel-AST.shot index acc21c81409f..3513fae88e6a 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-in-generic/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-in-generic/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types function-in-generic Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -28,10 +28,10 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSFunctionType { type: "TSFunctionType", - parameters: Array [], + parameters: [], typeAnnotation: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSVoidKeyword { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-in-generic/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-in-generic/snapshots/4-Babel-Tokens.shot index f0e2d6e8ec8c..663960d2016a 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-in-generic/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-in-generic/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types function-in-generic Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-array-destruction/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-array-destruction/snapshots/1-TSESTree-AST.shot index 072e8d0b4a7c..59b1a0bf91fe 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-array-destruction/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-array-destruction/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types function-with-array-destruction TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,10 +18,10 @@ Program { }, typeAnnotation: TSFunctionType { type: "TSFunctionType", - params: Array [ + params: [ ArrayPattern { type: "ArrayPattern", - elements: Array [ + elements: [ Identifier { type: "Identifier", name: "a", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-array-destruction/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-array-destruction/snapshots/2-TSESTree-Tokens.shot index 89a057e6c0e3..1530a179c400 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-array-destruction/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-array-destruction/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types function-with-array-destruction TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-array-destruction/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-array-destruction/snapshots/3-Babel-AST.shot index abaccbf7bc3d..a32e19a06971 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-array-destruction/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-array-destruction/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types function-with-array-destruction Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,10 +18,10 @@ Program { }, typeAnnotation: TSFunctionType { type: "TSFunctionType", - parameters: Array [ + parameters: [ ArrayPattern { type: "ArrayPattern", - elements: Array [ + elements: [ Identifier { type: "Identifier", name: "a", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-array-destruction/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-array-destruction/snapshots/4-Babel-Tokens.shot index 3ed1b433c157..e7ab636fa002 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-array-destruction/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-array-destruction/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types function-with-array-destruction Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-object-destruction/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-object-destruction/snapshots/1-TSESTree-AST.shot index be8e8b7979ff..9483d5e94bc6 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-object-destruction/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-object-destruction/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types function-with-object-destruction TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,10 +18,10 @@ Program { }, typeAnnotation: TSFunctionType { type: "TSFunctionType", - params: Array [ + params: [ ObjectPattern { type: "ObjectPattern", - properties: Array [ + properties: [ Property { type: "Property", computed: false, diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-object-destruction/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-object-destruction/snapshots/2-TSESTree-Tokens.shot index db870fae35d2..d195ec6c2b9e 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-object-destruction/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-object-destruction/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types function-with-object-destruction TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-object-destruction/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-object-destruction/snapshots/3-Babel-AST.shot index d963a4348ba7..f6f2d9fcc18d 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-object-destruction/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-object-destruction/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types function-with-object-destruction Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,10 +18,10 @@ Program { }, typeAnnotation: TSFunctionType { type: "TSFunctionType", - parameters: Array [ + parameters: [ ObjectPattern { type: "ObjectPattern", - properties: Array [ + properties: [ Property { type: "Property", computed: false, diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-object-destruction/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-object-destruction/snapshots/4-Babel-Tokens.shot index f6b5757296f4..0dd7e96664d7 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-object-destruction/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-object-destruction/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types function-with-object-destruction Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-rest/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-rest/snapshots/1-TSESTree-AST.shot index 02d79101ce85..8d1b9c4abcbb 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-rest/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-rest/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types function-with-rest TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -16,7 +16,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSFunctionType { type: "TSFunctionType", - params: Array [ + params: [ RestElement { type: "RestElement", argument: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-rest/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-rest/snapshots/2-TSESTree-Tokens.shot index 7e5dd9b0d702..78bcbe169a8e 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-rest/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-rest/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types function-with-rest TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-rest/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-rest/snapshots/3-Babel-AST.shot index 302c9a5af5e9..40f8839841bd 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-rest/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-rest/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types function-with-rest Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -16,7 +16,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSFunctionType { type: "TSFunctionType", - parameters: Array [ + parameters: [ RestElement { type: "RestElement", argument: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-rest/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-rest/snapshots/4-Babel-Tokens.shot index f875b9200481..87589241f9ba 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-rest/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-rest/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types function-with-rest Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-this/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-this/snapshots/1-TSESTree-AST.shot index 01c4c33b0b9c..554d54e3428f 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-this/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-this/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types function-with-this TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -16,7 +16,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSFunctionType { type: "TSFunctionType", - params: Array [ + params: [ Identifier { type: "Identifier", name: "this", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-this/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-this/snapshots/2-TSESTree-Tokens.shot index 484748d787d7..babeae96c604 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-this/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-this/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types function-with-this TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-this/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-this/snapshots/3-Babel-AST.shot index 149856a56597..436cee2363d7 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-this/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-this/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types function-with-this Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -16,7 +16,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSFunctionType { type: "TSFunctionType", - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "this", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-this/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-this/snapshots/4-Babel-Tokens.shot index f22a3e12fd19..42a5ab8c2ef8 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-this/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function-with-this/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types function-with-this Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function/snapshots/1-TSESTree-AST.shot index d9cfb96a334a..be2b938133dc 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types function TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -16,7 +16,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSFunctionType { type: "TSFunctionType", - params: Array [ + params: [ Identifier { type: "Identifier", name: "a", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function/snapshots/2-TSESTree-Tokens.shot index c42ddc740a46..2ddcaf0ed82c 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types function TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function/snapshots/3-Babel-AST.shot index 07eda5852fe1..d56f1c2821b5 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types function Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -16,7 +16,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSFunctionType { type: "TSFunctionType", - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "a", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function/snapshots/4-Babel-Tokens.shot index 7acd90305c79..a97b148d9ba5 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/function/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/function/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types function Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature-readonly/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature-readonly/snapshots/1-TSESTree-AST.shot index a3a48e3bbab5..6a8370b6b8b0 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature-readonly/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature-readonly/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types index-signature-readonly TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,10 +18,10 @@ Program { }, typeAnnotation: TSTypeLiteral { type: "TSTypeLiteral", - members: Array [ + members: [ TSIndexSignature { type: "TSIndexSignature", - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "key", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature-readonly/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature-readonly/snapshots/2-TSESTree-Tokens.shot index b22a5a2ff61b..bda5f45929af 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature-readonly/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature-readonly/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types index-signature-readonly TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature-readonly/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature-readonly/snapshots/3-Babel-AST.shot index cbd8ee009201..d199808a7da2 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature-readonly/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature-readonly/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types index-signature-readonly Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,10 +18,10 @@ Program { }, typeAnnotation: TSTypeLiteral { type: "TSTypeLiteral", - members: Array [ + members: [ TSIndexSignature { type: "TSIndexSignature", - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "key", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature-readonly/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature-readonly/snapshots/4-Babel-Tokens.shot index 433a62f2b6b6..9a01884d35e1 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature-readonly/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature-readonly/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types index-signature-readonly Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature-without-type/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature-without-type/snapshots/1-TSESTree-AST.shot index 1251a19e63b6..e7fab0bebdf8 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature-without-type/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature-without-type/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types index-signature-without-type TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,10 +18,10 @@ Program { }, typeAnnotation: TSTypeLiteral { type: "TSTypeLiteral", - members: Array [ + members: [ TSIndexSignature { type: "TSIndexSignature", - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "a", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature-without-type/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature-without-type/snapshots/2-TSESTree-Tokens.shot index c33024097ec6..04f372b3ee48 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature-without-type/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature-without-type/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types index-signature-without-type TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature-without-type/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature-without-type/snapshots/3-Babel-AST.shot index 1047a0934e48..371088c2d1c4 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature-without-type/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature-without-type/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types index-signature-without-type Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,10 +18,10 @@ Program { }, typeAnnotation: TSTypeLiteral { type: "TSTypeLiteral", - members: Array [ + members: [ TSIndexSignature { type: "TSIndexSignature", - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "a", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature-without-type/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature-without-type/snapshots/4-Babel-Tokens.shot index 4a109485c1d9..b86f2006a1cb 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature-without-type/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature-without-type/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types index-signature-without-type Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature/snapshots/1-TSESTree-AST.shot index 1ab68c70a72f..48d1e43110b2 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types index-signature TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,10 +18,10 @@ Program { }, typeAnnotation: TSTypeLiteral { type: "TSTypeLiteral", - members: Array [ + members: [ TSIndexSignature { type: "TSIndexSignature", - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "a", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature/snapshots/2-TSESTree-Tokens.shot index baa531baa8d4..c29edb8f57f5 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types index-signature TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature/snapshots/3-Babel-AST.shot index 3c6adfa38394..31660444e165 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types index-signature Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,10 +18,10 @@ Program { }, typeAnnotation: TSTypeLiteral { type: "TSTypeLiteral", - members: Array [ + members: [ TSIndexSignature { type: "TSIndexSignature", - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "a", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature/snapshots/4-Babel-Tokens.shot index 8934428ebbe5..b4c5db37eb7d 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/index-signature/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types index-signature Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/indexed/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/indexed/snapshots/1-TSESTree-AST.shot index 5081b669353c..742fbfdcd812 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/indexed/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/indexed/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types indexed TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/indexed/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/indexed/snapshots/2-TSESTree-Tokens.shot index fa36492de873..a399fbc6baf0 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/indexed/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/indexed/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types indexed TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/indexed/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/indexed/snapshots/3-Babel-AST.shot index 824d7144dcb7..c9f01e485b5b 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/indexed/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/indexed/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types indexed Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/indexed/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/indexed/snapshots/4-Babel-Tokens.shot index 3e08160596ea..bcbe21b38b82 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/indexed/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/indexed/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types indexed Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/interface-with-accessors/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/interface-with-accessors/snapshots/1-TSESTree-AST.shot index 91fce2f91415..3cdaa13d47c9 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/interface-with-accessors/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/interface-with-accessors/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures types interface-with-accessors TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [ + body: [ TSMethodSignature { type: "TSMethodSignature", computed: false, @@ -23,7 +23,7 @@ Program { }, }, kind: "get", - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSNumberKeyword { @@ -63,7 +63,7 @@ Program { }, }, kind: "set", - params: Array [ + params: [ Identifier { type: "Identifier", name: "value", @@ -71,7 +71,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSNumberKeyword { type: "TSNumberKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/interface-with-accessors/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/interface-with-accessors/snapshots/2-TSESTree-Tokens.shot index df66c0ef9648..5f80b2d169d7 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/interface-with-accessors/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/interface-with-accessors/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types interface-with-accessors TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "interface", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/interface-with-accessors/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/interface-with-accessors/snapshots/3-Babel-AST.shot index dab68818dc44..0c64d5de8987 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/interface-with-accessors/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/interface-with-accessors/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures types interface-with-accessors Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [ + body: [ TSMethodSignature { type: "TSMethodSignature", computed: false, @@ -23,7 +23,7 @@ Program { }, }, kind: "get", - parameters: Array [], + parameters: [], typeAnnotation: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSNumberKeyword { @@ -63,7 +63,7 @@ Program { }, }, kind: "set", - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "value", @@ -71,7 +71,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSNumberKeyword { type: "TSNumberKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/interface-with-accessors/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/interface-with-accessors/snapshots/4-Babel-Tokens.shot index e6702e33df83..b5803b748c26 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/interface-with-accessors/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/interface-with-accessors/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types interface-with-accessors Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "interface", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/intersection-type/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/intersection-type/snapshots/1-TSESTree-AST.shot index de7addfe3963..8a6935a581d0 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/intersection-type/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/intersection-type/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types intersection-type TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,7 +18,7 @@ Program { }, typeAnnotation: TSIntersectionType { type: "TSIntersectionType", - types: Array [ + types: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -40,7 +40,7 @@ Program { }, TSTypeLiteral { type: "TSTypeLiteral", - members: Array [ + members: [ TSPropertySignature { type: "TSPropertySignature", computed: false, @@ -70,7 +70,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -137,9 +137,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/intersection-type/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/intersection-type/snapshots/2-TSESTree-Tokens.shot index 8051da1b30fd..a8d77c26890d 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/intersection-type/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/intersection-type/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types intersection-type TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/intersection-type/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/intersection-type/snapshots/3-Babel-AST.shot index c08c632eb855..ad426b7997af 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/intersection-type/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/intersection-type/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types intersection-type Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,7 +18,7 @@ Program { }, typeAnnotation: TSIntersectionType { type: "TSIntersectionType", - types: Array [ + types: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -40,7 +40,7 @@ Program { }, TSTypeLiteral { type: "TSTypeLiteral", - members: Array [ + members: [ TSPropertySignature { type: "TSPropertySignature", computed: false, @@ -70,7 +70,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -137,7 +137,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/intersection-type/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/intersection-type/snapshots/4-Babel-Tokens.shot index 8bf4698c5a73..4f27f6e1eb78 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/intersection-type/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/intersection-type/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types intersection-type Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/intersection-type/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/intersection-type/snapshots/5-AST-Alignment-AST.shot index 4462a057b8ba..1a756edb61f7 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/intersection-type/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/intersection-type/snapshots/5-AST-Alignment-AST.shot @@ -144,6 +144,7 @@ exports[`AST Fixtures legacy-fixtures types intersection-type AST Alignment - AS params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-number-negative/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-number-negative/snapshots/1-TSESTree-AST.shot index f1220c7e2ea9..c5ac10f6295e 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-number-negative/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-number-negative/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types literal-number-negative TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-number-negative/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-number-negative/snapshots/2-TSESTree-Tokens.shot index e7e91b113836..fd867415701b 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-number-negative/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-number-negative/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types literal-number-negative TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-number-negative/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-number-negative/snapshots/3-Babel-AST.shot index c44f84cc5a39..77db74a24bcf 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-number-negative/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-number-negative/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types literal-number-negative Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-number-negative/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-number-negative/snapshots/4-Babel-Tokens.shot index fa723cfe0854..e26873cda748 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-number-negative/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-number-negative/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types literal-number-negative Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-number/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-number/snapshots/1-TSESTree-AST.shot index b4c18ac1eca7..6c06c92f57db 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-number/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-number/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types literal-number TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-number/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-number/snapshots/2-TSESTree-Tokens.shot index f33cec5ae56b..f67a445ea3eb 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-number/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-number/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types literal-number TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-number/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-number/snapshots/3-Babel-AST.shot index 0b381b8e5698..a9b0951ab6ea 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-number/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-number/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types literal-number Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-number/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-number/snapshots/4-Babel-Tokens.shot index fcebea813464..9d164ca60ff9 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-number/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-number/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types literal-number Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-string/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-string/snapshots/1-TSESTree-AST.shot index 0193d55beb66..9fb6b4117f72 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-string/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-string/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types literal-string TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-string/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-string/snapshots/2-TSESTree-Tokens.shot index b3e8c534031c..6a8a4466854e 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-string/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-string/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types literal-string TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-string/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-string/snapshots/3-Babel-AST.shot index 2d7c07f66699..82fe98541721 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-string/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-string/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types literal-string Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-string/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-string/snapshots/4-Babel-Tokens.shot index 45fe14434956..95760c535732 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-string/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-string/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types literal-string Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-string/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-string/snapshots/6-AST-Alignment-Tokens.shot index 54970640aa70..53866df7eb0e 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-string/snapshots/6-AST-Alignment-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/literal-string/snapshots/6-AST-Alignment-Tokens.shot @@ -40,7 +40,7 @@ exports[`AST Fixtures legacy-fixtures types literal-string AST Alignment - Token }, String { type: 'String', - value: '\\\\'foo\\\\'', + value: '\\'foo\\'', range: [80, 85], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-named-type/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-named-type/snapshots/1-TSESTree-AST.shot index 6537caf714f5..646e99d15643 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-named-type/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-named-type/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types mapped-named-type TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -87,6 +87,7 @@ Program { }, typeParameter: TSTypeParameter { type: "TSTypeParameter", + const: false, constraint: TSTypeOperator { type: "TSTypeOperator", operator: "keyof", @@ -144,9 +145,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-named-type/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-named-type/snapshots/2-TSESTree-Tokens.shot index 944a0f5abc59..c6c5961854ff 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-named-type/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-named-type/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types mapped-named-type TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-named-type/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-named-type/snapshots/3-Babel-AST.shot index 379e37469319..97c83df05f30 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-named-type/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-named-type/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types mapped-named-type Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -133,7 +133,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-named-type/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-named-type/snapshots/4-Babel-Tokens.shot index 98cca579df3e..fde59f69c45e 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-named-type/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-named-type/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types mapped-named-type Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-named-type/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-named-type/snapshots/5-AST-Alignment-AST.shot index a57f192e4a2f..e18890770ec2 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-named-type/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-named-type/snapshots/5-AST-Alignment-AST.shot @@ -26,7 +26,7 @@ exports[`AST Fixtures legacy-fixtures types mapped-named-type AST Alignment - AS type: 'TSLiteralType', literal: Literal { type: 'Literal', - raw: '\\\\'a\\\\'', + raw: '\\'a\\'', value: 'a', range: [109, 112], @@ -91,6 +91,7 @@ exports[`AST Fixtures legacy-fixtures types mapped-named-type AST Alignment - AS }, typeParameter: TSTypeParameter { type: 'TSTypeParameter', +- const: false, constraint: TSTypeOperator { type: 'TSTypeOperator', operator: 'keyof', @@ -152,6 +153,7 @@ exports[`AST Fixtures legacy-fixtures types mapped-named-type AST Alignment - AS params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-minus/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-minus/snapshots/1-TSESTree-AST.shot index 20121cf188ab..a6cf5a6a9cee 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-minus/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-minus/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types mapped-readonly-minus TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -30,6 +30,7 @@ Program { }, typeParameter: TSTypeParameter { type: "TSTypeParameter", + const: false, constraint: TSStringKeyword { type: "TSStringKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-minus/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-minus/snapshots/2-TSESTree-Tokens.shot index a03216bedc0b..dbdec79a0e7b 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-minus/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-minus/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types mapped-readonly-minus TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-minus/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-minus/snapshots/3-Babel-AST.shot index 067b0bc3e171..7736a8f56412 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-minus/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-minus/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types mapped-readonly-minus Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-minus/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-minus/snapshots/4-Babel-Tokens.shot index 00560364c832..152db11b1556 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-minus/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-minus/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types mapped-readonly-minus Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-minus/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-minus/snapshots/5-AST-Alignment-AST.shot index 65aeb0689ca9..624a79fb35de 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-minus/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-minus/snapshots/5-AST-Alignment-AST.shot @@ -34,6 +34,7 @@ exports[`AST Fixtures legacy-fixtures types mapped-readonly-minus AST Alignment }, typeParameter: TSTypeParameter { type: 'TSTypeParameter', +- const: false, constraint: TSStringKeyword { type: 'TSStringKeyword', diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-plus/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-plus/snapshots/1-TSESTree-AST.shot index ad99fda9528e..0bdfb991d52c 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-plus/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-plus/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types mapped-readonly-plus TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -30,6 +30,7 @@ Program { }, typeParameter: TSTypeParameter { type: "TSTypeParameter", + const: false, constraint: TSStringKeyword { type: "TSStringKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-plus/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-plus/snapshots/2-TSESTree-Tokens.shot index b3855f351656..3253bd3d353d 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-plus/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-plus/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types mapped-readonly-plus TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-plus/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-plus/snapshots/3-Babel-AST.shot index fbfb0205d19e..c34b52c22009 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-plus/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-plus/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types mapped-readonly-plus Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-plus/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-plus/snapshots/4-Babel-Tokens.shot index 6d311e4d8296..7bd164d2f830 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-plus/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-plus/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types mapped-readonly-plus Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-plus/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-plus/snapshots/5-AST-Alignment-AST.shot index 3148bb5b7409..e6d132ed1619 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-plus/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-plus/snapshots/5-AST-Alignment-AST.shot @@ -34,6 +34,7 @@ exports[`AST Fixtures legacy-fixtures types mapped-readonly-plus AST Alignment - }, typeParameter: TSTypeParameter { type: 'TSTypeParameter', +- const: false, constraint: TSStringKeyword { type: 'TSStringKeyword', diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly/snapshots/1-TSESTree-AST.shot index d69be386629c..8c1a4635b40a 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types mapped-readonly TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -30,6 +30,7 @@ Program { }, typeParameter: TSTypeParameter { type: "TSTypeParameter", + const: false, constraint: TSStringKeyword { type: "TSStringKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly/snapshots/2-TSESTree-Tokens.shot index 79ea45d64c91..705376f0df66 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types mapped-readonly TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly/snapshots/3-Babel-AST.shot index f71c3737c978..5bdfc4077748 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types mapped-readonly Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly/snapshots/4-Babel-Tokens.shot index 393ab004cba3..9de57173f991 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types mapped-readonly Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly/snapshots/5-AST-Alignment-AST.shot index 75e06a9b433f..cd82008e2c36 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly/snapshots/5-AST-Alignment-AST.shot @@ -34,6 +34,7 @@ exports[`AST Fixtures legacy-fixtures types mapped-readonly AST Alignment - AST }, typeParameter: TSTypeParameter { type: 'TSTypeParameter', +- const: false, constraint: TSStringKeyword { type: 'TSStringKeyword', diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-untypped/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-untypped/snapshots/1-TSESTree-AST.shot index aedabb491bc6..fe12ec4ef043 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-untypped/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-untypped/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types mapped-untypped TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -19,6 +19,7 @@ Program { nameType: null, typeParameter: TSTypeParameter { type: "TSTypeParameter", + const: false, constraint: TSStringKeyword { type: "TSStringKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-untypped/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-untypped/snapshots/2-TSESTree-Tokens.shot index ce2ed49cd660..4ec59645edb0 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-untypped/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-untypped/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types mapped-untypped TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-untypped/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-untypped/snapshots/3-Babel-AST.shot index 56535786c450..1bcdd7f0c882 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-untypped/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-untypped/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types mapped-untypped Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-untypped/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-untypped/snapshots/4-Babel-Tokens.shot index d0020a150d1b..648bc8314de4 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-untypped/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-untypped/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types mapped-untypped Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-untypped/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-untypped/snapshots/5-AST-Alignment-AST.shot index 03f4bb194f82..11ad724238e3 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-untypped/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-untypped/snapshots/5-AST-Alignment-AST.shot @@ -23,6 +23,7 @@ exports[`AST Fixtures legacy-fixtures types mapped-untypped AST Alignment - AST nameType: null, typeParameter: TSTypeParameter { type: 'TSTypeParameter', +- const: false, constraint: TSStringKeyword { type: 'TSStringKeyword', diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped/snapshots/1-TSESTree-AST.shot index 95ee43a32552..7c422caf01e5 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types mapped TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -28,6 +28,7 @@ Program { }, typeParameter: TSTypeParameter { type: "TSTypeParameter", + const: false, constraint: TSStringKeyword { type: "TSStringKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped/snapshots/2-TSESTree-Tokens.shot index 5b08c4c14101..76d50d581a1f 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types mapped TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped/snapshots/3-Babel-AST.shot index dda941368129..2bb15fc4c5b2 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types mapped Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped/snapshots/4-Babel-Tokens.shot index f4d870ba6332..f3b342603c68 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types mapped Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped/snapshots/5-AST-Alignment-AST.shot index c46578e24d03..75db4f143539 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped/snapshots/5-AST-Alignment-AST.shot @@ -32,6 +32,7 @@ exports[`AST Fixtures legacy-fixtures types mapped AST Alignment - AST 1`] = ` }, typeParameter: TSTypeParameter { type: 'TSTypeParameter', +- const: false, constraint: TSStringKeyword { type: 'TSStringKeyword', diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/nested-types/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/nested-types/snapshots/1-TSESTree-AST.shot index edaba8621f1b..9b1b1ae826cb 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/nested-types/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/nested-types/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types nested-types TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,10 +18,10 @@ Program { }, typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSNumberKeyword { type: "TSNumberKeyword", @@ -77,13 +77,13 @@ Program { }, TSIntersectionType { type: "TSIntersectionType", - types: Array [ + types: [ TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSTypeLiteral { type: "TSTypeLiteral", - members: Array [], + members: [], range: [122, 124], loc: { @@ -93,10 +93,10 @@ Program { }, TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSOptionalType { type: "TSOptionalType", typeAnnotation: TSNumberKeyword { @@ -125,7 +125,7 @@ Program { }, TSIntersectionType { type: "TSIntersectionType", - types: Array [ + types: [ TSNullKeyword { type: "TSNullKeyword", @@ -179,7 +179,7 @@ Program { }, TSTypeLiteral { type: "TSTypeLiteral", - members: Array [], + members: [], range: [160, 162], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/nested-types/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/nested-types/snapshots/2-TSESTree-Tokens.shot index d5e8ff2e9d6d..8a6b492e5e85 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/nested-types/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/nested-types/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types nested-types TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/nested-types/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/nested-types/snapshots/3-Babel-AST.shot index 8c7b61a52c82..7023f1039e0f 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/nested-types/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/nested-types/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types nested-types Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,10 +18,10 @@ Program { }, typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSNumberKeyword { type: "TSNumberKeyword", @@ -79,13 +79,13 @@ Program { type: "TSParenthesizedType", typeAnnotation: TSIntersectionType { type: "TSIntersectionType", - types: Array [ + types: [ TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSTypeLiteral { type: "TSTypeLiteral", - members: Array [], + members: [], range: [122, 124], loc: { @@ -95,10 +95,10 @@ Program { }, TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSOptionalType { type: "TSOptionalType", typeAnnotation: TSNumberKeyword { @@ -129,7 +129,7 @@ Program { type: "TSParenthesizedType", typeAnnotation: TSIntersectionType { type: "TSIntersectionType", - types: Array [ + types: [ TSNullKeyword { type: "TSNullKeyword", @@ -190,7 +190,7 @@ Program { }, TSTypeLiteral { type: "TSTypeLiteral", - members: Array [], + members: [], range: [160, 162], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/nested-types/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/nested-types/snapshots/4-Babel-Tokens.shot index 7b38c3f89063..36b581613b84 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/nested-types/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/nested-types/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types nested-types Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/object-literal-type-with-accessors/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/object-literal-type-with-accessors/snapshots/1-TSESTree-AST.shot index f72d70c08459..7c92699d3913 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/object-literal-type-with-accessors/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/object-literal-type-with-accessors/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types object-literal-type-with-accessors TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,7 +18,7 @@ Program { }, typeAnnotation: TSTypeLiteral { type: "TSTypeLiteral", - members: Array [ + members: [ TSMethodSignature { type: "TSMethodSignature", computed: false, @@ -33,7 +33,7 @@ Program { }, }, kind: "get", - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSNumberKeyword { @@ -73,7 +73,7 @@ Program { }, }, kind: "set", - params: Array [ + params: [ Identifier { type: "Identifier", name: "value", @@ -81,7 +81,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSNumberKeyword { type: "TSNumberKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/object-literal-type-with-accessors/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/object-literal-type-with-accessors/snapshots/2-TSESTree-Tokens.shot index ce30377019f9..cea9972089d3 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/object-literal-type-with-accessors/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/object-literal-type-with-accessors/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types object-literal-type-with-accessors TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/object-literal-type-with-accessors/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/object-literal-type-with-accessors/snapshots/3-Babel-AST.shot index e5806cc2a171..ce2255fd5267 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/object-literal-type-with-accessors/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/object-literal-type-with-accessors/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types object-literal-type-with-accessors Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,7 +18,7 @@ Program { }, typeAnnotation: TSTypeLiteral { type: "TSTypeLiteral", - members: Array [ + members: [ TSMethodSignature { type: "TSMethodSignature", computed: false, @@ -33,7 +33,7 @@ Program { }, }, kind: "get", - parameters: Array [], + parameters: [], typeAnnotation: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSNumberKeyword { @@ -73,7 +73,7 @@ Program { }, }, kind: "set", - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "value", @@ -81,7 +81,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSNumberKeyword { type: "TSNumberKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/object-literal-type-with-accessors/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/object-literal-type-with-accessors/snapshots/4-Babel-Tokens.shot index 520ce3e9d190..94ea3503480b 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/object-literal-type-with-accessors/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/object-literal-type-with-accessors/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types object-literal-type-with-accessors Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-and-out/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-and-out/snapshots/1-TSESTree-AST.shot index f224655bb634..c30d5480c1f7 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-and-out/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-and-out/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types optional-variance-in-and-out TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,7 +18,7 @@ Program { }, typeAnnotation: TSFunctionType { type: "TSFunctionType", - params: Array [ + params: [ Identifier { type: "Identifier", name: "x", @@ -95,9 +95,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: true, name: Identifier { type: "Identifier", @@ -119,6 +120,7 @@ Program { }, TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-and-out/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-and-out/snapshots/2-TSESTree-Tokens.shot index 626b2bc72898..c3df1c6783ae 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-and-out/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-and-out/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types optional-variance-in-and-out TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-and-out/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-and-out/snapshots/3-Babel-AST.shot index fafece2841c1..df5ef6687c36 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-and-out/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-and-out/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types optional-variance-in-and-out Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,7 +18,7 @@ Program { }, typeAnnotation: TSFunctionType { type: "TSFunctionType", - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "x", @@ -95,7 +95,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", in: true, diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-and-out/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-and-out/snapshots/4-Babel-Tokens.shot index d6fbd84ba623..287f0c606b53 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-and-out/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-and-out/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types optional-variance-in-and-out Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-and-out/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-and-out/snapshots/5-AST-Alignment-AST.shot index 0acb047d6756..d5831586688e 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-and-out/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-and-out/snapshots/5-AST-Alignment-AST.shot @@ -104,6 +104,7 @@ exports[`AST Fixtures legacy-fixtures types optional-variance-in-and-out AST Ali params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, in: true, - name: Identifier { - type: 'Identifier', @@ -126,6 +127,7 @@ exports[`AST Fixtures legacy-fixtures types optional-variance-in-and-out AST Ali }, TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-out/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-out/snapshots/1-TSESTree-AST.shot index 86e8cc26e85c..1b19115ffe86 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-out/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-out/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types optional-variance-in-out TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,7 +18,7 @@ Program { }, typeAnnotation: TSFunctionType { type: "TSFunctionType", - params: Array [ + params: [ Identifier { type: "Identifier", name: "x", @@ -95,9 +95,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: true, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-out/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-out/snapshots/2-TSESTree-Tokens.shot index de3bdc5de778..98386238348d 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-out/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-out/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types optional-variance-in-out TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-out/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-out/snapshots/3-Babel-AST.shot index e6f0eabf34f8..6ec07072ebbb 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-out/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-out/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types optional-variance-in-out Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,7 +18,7 @@ Program { }, typeAnnotation: TSFunctionType { type: "TSFunctionType", - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "x", @@ -95,7 +95,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", in: true, diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-out/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-out/snapshots/4-Babel-Tokens.shot index 48478eab1616..323116893599 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-out/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-out/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types optional-variance-in-out Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-out/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-out/snapshots/5-AST-Alignment-AST.shot index c8f77719ef7a..5b560fa04c44 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-out/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in-out/snapshots/5-AST-Alignment-AST.shot @@ -104,6 +104,7 @@ exports[`AST Fixtures legacy-fixtures types optional-variance-in-out AST Alignme params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, in: true, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in/snapshots/1-TSESTree-AST.shot index 101936bcbabf..faca7d2d1f9e 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types optional-variance-in TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,7 +18,7 @@ Program { }, typeAnnotation: TSFunctionType { type: "TSFunctionType", - params: Array [ + params: [ Identifier { type: "Identifier", name: "x", @@ -85,9 +85,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: true, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in/snapshots/2-TSESTree-Tokens.shot index cb5b8dbf36b4..6554b94f0ee7 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types optional-variance-in TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in/snapshots/3-Babel-AST.shot index 9c42b738b209..7f48c7b6c851 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types optional-variance-in Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,7 +18,7 @@ Program { }, typeAnnotation: TSFunctionType { type: "TSFunctionType", - parameters: Array [ + parameters: [ Identifier { type: "Identifier", name: "x", @@ -85,7 +85,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", in: true, diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in/snapshots/4-Babel-Tokens.shot index 3999e8570813..419dfe94fc9b 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types optional-variance-in Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in/snapshots/5-AST-Alignment-AST.shot index 20b933b3fd64..1c8d89c36809 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in/snapshots/5-AST-Alignment-AST.shot @@ -94,6 +94,7 @@ exports[`AST Fixtures legacy-fixtures types optional-variance-in AST Alignment - params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, in: true, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-out/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-out/snapshots/1-TSESTree-AST.shot index 192a30ecd8b5..b815cfcfa19a 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-out/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-out/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types optional-variance-out TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,7 +18,7 @@ Program { }, typeAnnotation: TSFunctionType { type: "TSFunctionType", - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSTypeReference { @@ -56,9 +56,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, in: false, name: Identifier { type: "Identifier", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-out/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-out/snapshots/2-TSESTree-Tokens.shot index dc4d72a5083b..5fe33cb925c5 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-out/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-out/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types optional-variance-out TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-out/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-out/snapshots/3-Babel-AST.shot index 451d20aa1e61..5c330c303c5a 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-out/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-out/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types optional-variance-out Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,7 +18,7 @@ Program { }, typeAnnotation: TSFunctionType { type: "TSFunctionType", - parameters: Array [], + parameters: [], typeAnnotation: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSTypeReference { @@ -56,7 +56,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-out/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-out/snapshots/4-Babel-Tokens.shot index e70f05c115d2..004683c7e192 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-out/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-out/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types optional-variance-out Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-out/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-out/snapshots/5-AST-Alignment-AST.shot index ae55b74f2dc5..9afebcfe4301 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-out/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-out/snapshots/5-AST-Alignment-AST.shot @@ -65,6 +65,7 @@ exports[`AST Fixtures legacy-fixtures types optional-variance-out AST Alignment params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, - in: false, - name: Identifier { - type: 'Identifier', diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/parenthesized-type/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/parenthesized-type/snapshots/1-TSESTree-AST.shot index 6c3c6e241e07..5729d78a6fba 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/parenthesized-type/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/parenthesized-type/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types parenthesized-type TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,7 +18,7 @@ Program { }, typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSStringKeyword { type: "TSStringKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/parenthesized-type/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/parenthesized-type/snapshots/2-TSESTree-Tokens.shot index de2190dba61e..2e63347d9e98 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/parenthesized-type/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/parenthesized-type/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types parenthesized-type TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/parenthesized-type/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/parenthesized-type/snapshots/3-Babel-AST.shot index 5983bc284040..566d9f79dc16 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/parenthesized-type/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/parenthesized-type/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types parenthesized-type Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,7 +18,7 @@ Program { }, typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSStringKeyword { type: "TSStringKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/parenthesized-type/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/parenthesized-type/snapshots/4-Babel-Tokens.shot index 90b61826fce4..a30e2d603685 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/parenthesized-type/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/parenthesized-type/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types parenthesized-type Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference-generic-nested/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference-generic-nested/snapshots/1-TSESTree-AST.shot index 237af44d7d8a..5012a3b27dc9 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference-generic-nested/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference-generic-nested/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types reference-generic-nested TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -28,7 +28,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -43,7 +43,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSNumberKeyword { type: "TSNumberKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference-generic-nested/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference-generic-nested/snapshots/2-TSESTree-Tokens.shot index 179cb0647db7..811e573c8b50 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference-generic-nested/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference-generic-nested/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types reference-generic-nested TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference-generic-nested/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference-generic-nested/snapshots/3-Babel-AST.shot index 8d2c97b3fe7c..c44f05a2edcc 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference-generic-nested/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference-generic-nested/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types reference-generic-nested Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -28,7 +28,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -43,7 +43,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSNumberKeyword { type: "TSNumberKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference-generic-nested/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference-generic-nested/snapshots/4-Babel-Tokens.shot index 0d38e059df5a..75c70aa1e541 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference-generic-nested/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference-generic-nested/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types reference-generic-nested Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference-generic/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference-generic/snapshots/1-TSESTree-AST.shot index 02e66cecda88..50b96bafccea 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference-generic/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference-generic/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types reference-generic TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -28,7 +28,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSNumberKeyword { type: "TSNumberKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference-generic/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference-generic/snapshots/2-TSESTree-Tokens.shot index 451b6d485a97..6f137997ac5a 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference-generic/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference-generic/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types reference-generic TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference-generic/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference-generic/snapshots/3-Babel-AST.shot index 59216b0b5247..2ea8643a29cd 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference-generic/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference-generic/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types reference-generic Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -28,7 +28,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSNumberKeyword { type: "TSNumberKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference-generic/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference-generic/snapshots/4-Babel-Tokens.shot index 4bed44ed4ada..e152fe5d82a3 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference-generic/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference-generic/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types reference-generic Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference/snapshots/1-TSESTree-AST.shot index 110f172a2dce..c3beb71c60b6 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types reference TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference/snapshots/2-TSESTree-Tokens.shot index 9046bcd3bfd5..5580819e1a8f 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types reference TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference/snapshots/3-Babel-AST.shot index e5f62293830d..929f1d5f1cf6 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types reference Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference/snapshots/4-Babel-Tokens.shot index b684fa05a5ce..3848e7753db6 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/reference/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types reference Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-1/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-1/snapshots/1-TSESTree-AST.shot index 638e7a32809b..e489dedcf781 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-1/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-1/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types template-literal-type-1 TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -20,12 +20,12 @@ Program { type: "TSLiteralType", literal: TemplateLiteral { type: "TemplateLiteral", - expressions: Array [], - quasis: Array [ + expressions: [], + quasis: [ TemplateElement { type: "TemplateElement", tail: true, - value: Object { + value: { "cooked": "foo", "raw": "foo", }, diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-1/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-1/snapshots/2-TSESTree-Tokens.shot index 962595ac5169..badba46e9413 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-1/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-1/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types template-literal-type-1 TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-1/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-1/snapshots/3-Babel-AST.shot index 7f28f4324de9..e21d1030fd02 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-1/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-1/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types template-literal-type-1 Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -20,12 +20,12 @@ Program { type: "TSLiteralType", literal: TemplateLiteral { type: "TemplateLiteral", - expressions: Array [], - quasis: Array [ + expressions: [], + quasis: [ TemplateElement { type: "TemplateElement", tail: true, - value: Object { + value: { "cooked": "foo", "raw": "foo", }, diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-1/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-1/snapshots/4-Babel-Tokens.shot index 84a55c2ccc8f..3e266d4bfa6e 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-1/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-1/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types template-literal-type-1 Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-2/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-2/snapshots/1-TSESTree-AST.shot index 7e76c7e53fa4..4ac13fbd2c3c 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-2/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-2/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types template-literal-type-2 TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,11 +18,11 @@ Program { }, typeAnnotation: TSTemplateLiteralType { type: "TSTemplateLiteralType", - quasis: Array [ + quasis: [ TemplateElement { type: "TemplateElement", tail: false, - value: Object { + value: { "cooked": "foo", "raw": "foo", }, @@ -36,7 +36,7 @@ Program { TemplateElement { type: "TemplateElement", tail: true, - value: Object { + value: { "cooked": "", "raw": "", }, @@ -48,7 +48,7 @@ Program { }, }, ], - types: Array [ + types: [ TSLiteralType { type: "TSLiteralType", literal: Literal { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-2/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-2/snapshots/2-TSESTree-Tokens.shot index 8604d3a8f064..fca8930ea337 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-2/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-2/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types template-literal-type-2 TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-2/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-2/snapshots/3-Babel-AST.shot index a1836bdc130e..1167da5f3305 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-2/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-2/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types template-literal-type-2 Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -20,7 +20,7 @@ Program { type: "TSLiteralType", literal: TemplateLiteral { type: "TemplateLiteral", - expressions: Array [ + expressions: [ TSLiteralType { type: "TSLiteralType", literal: Literal { @@ -42,11 +42,11 @@ Program { }, }, ], - quasis: Array [ + quasis: [ TemplateElement { type: "TemplateElement", tail: false, - value: Object { + value: { "cooked": "foo", "raw": "foo", }, @@ -60,7 +60,7 @@ Program { TemplateElement { type: "TemplateElement", tail: true, - value: Object { + value: { "cooked": "", "raw": "", }, diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-2/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-2/snapshots/4-Babel-Tokens.shot index a6c90f6770e1..b05f47456e66 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-2/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-2/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types template-literal-type-2 Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-2/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-2/snapshots/5-AST-Alignment-AST.shot index 70a2fe689f31..f15ba271fc39 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-2/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-2/snapshots/5-AST-Alignment-AST.shot @@ -39,7 +39,7 @@ exports[`AST Fixtures legacy-fixtures types template-literal-type-2 AST Alignmen + type: 'TSLiteralType', + literal: Literal { + type: 'Literal', -+ raw: '\\\\'bar\\\\'', ++ raw: '\\'bar\\'', + value: 'bar', - range: [82, 88], @@ -74,7 +74,7 @@ exports[`AST Fixtures legacy-fixtures types template-literal-type-2 AST Alignmen - type: 'TSLiteralType', - literal: Literal { - type: 'Literal', -- raw: '\\\\'bar\\\\'', +- raw: '\\'bar\\'', - value: 'bar', - range: [88, 93], diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-3/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-3/snapshots/1-TSESTree-AST.shot index 4e5a39bfc464..30a5603b2a01 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-3/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-3/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types template-literal-type-3 TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,7 +18,7 @@ Program { }, typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSLiteralType { type: "TSLiteralType", literal: Literal { @@ -88,7 +88,7 @@ Program { }, typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSLiteralType { type: "TSLiteralType", literal: Literal { @@ -158,11 +158,11 @@ Program { }, typeAnnotation: TSTemplateLiteralType { type: "TSTemplateLiteralType", - quasis: Array [ + quasis: [ TemplateElement { type: "TemplateElement", tail: false, - value: Object { + value: { "cooked": "", "raw": "", }, @@ -176,7 +176,7 @@ Program { TemplateElement { type: "TemplateElement", tail: true, - value: Object { + value: { "cooked": " fish", "raw": " fish", }, @@ -188,10 +188,10 @@ Program { }, }, ], - types: Array [ + types: [ TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-3/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-3/snapshots/2-TSESTree-Tokens.shot index 3030f7915ba1..eddda106b141 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-3/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-3/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types template-literal-type-3 TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-3/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-3/snapshots/3-Babel-AST.shot index e20c38e5fa98..985dd988862c 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-3/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-3/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types template-literal-type-3 Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,7 +18,7 @@ Program { }, typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSLiteralType { type: "TSLiteralType", literal: Literal { @@ -88,7 +88,7 @@ Program { }, typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSLiteralType { type: "TSLiteralType", literal: Literal { @@ -160,10 +160,10 @@ Program { type: "TSLiteralType", literal: TemplateLiteral { type: "TemplateLiteral", - expressions: Array [ + expressions: [ TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -211,11 +211,11 @@ Program { }, }, ], - quasis: Array [ + quasis: [ TemplateElement { type: "TemplateElement", tail: false, - value: Object { + value: { "cooked": "", "raw": "", }, @@ -229,7 +229,7 @@ Program { TemplateElement { type: "TemplateElement", tail: true, - value: Object { + value: { "cooked": " fish", "raw": " fish", }, diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-3/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-3/snapshots/4-Babel-Tokens.shot index 33a769b7a254..8fcd21e74870 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-3/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-3/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types template-literal-type-3 Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-3/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-3/snapshots/5-AST-Alignment-AST.shot index 948340c0664c..570ef602314d 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-3/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-3/snapshots/5-AST-Alignment-AST.shot @@ -27,7 +27,7 @@ exports[`AST Fixtures legacy-fixtures types template-literal-type-3 AST Alignmen type: 'TSLiteralType', literal: Literal { type: 'Literal', - raw: '\\\\'red\\\\'', + raw: '\\'red\\'', value: 'red', range: [86, 91], @@ -47,7 +47,7 @@ exports[`AST Fixtures legacy-fixtures types template-literal-type-3 AST Alignmen type: 'TSLiteralType', literal: Literal { type: 'Literal', - raw: '\\\\'blue\\\\'', + raw: '\\'blue\\'', value: 'blue', range: [94, 100], @@ -97,7 +97,7 @@ exports[`AST Fixtures legacy-fixtures types template-literal-type-3 AST Alignmen type: 'TSLiteralType', literal: Literal { type: 'Literal', - raw: '\\\\'one\\\\'', + raw: '\\'one\\'', value: 'one', range: [118, 123], @@ -117,7 +117,7 @@ exports[`AST Fixtures legacy-fixtures types template-literal-type-3 AST Alignmen type: 'TSLiteralType', literal: Literal { type: 'Literal', - raw: '\\\\'two\\\\'', + raw: '\\'two\\'', value: 'two', range: [126, 131], diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-4/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-4/snapshots/1-TSESTree-AST.shot index 1b9878d79b7a..36213a03e944 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-4/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-4/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types template-literal-type-4 TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,11 +18,11 @@ Program { }, typeAnnotation: TSTemplateLiteralType { type: "TSTemplateLiteralType", - quasis: Array [ + quasis: [ TemplateElement { type: "TemplateElement", tail: false, - value: Object { + value: { "cooked": "", "raw": "", }, @@ -36,7 +36,7 @@ Program { TemplateElement { type: "TemplateElement", tail: false, - value: Object { + value: { "cooked": " - ", "raw": " - ", }, @@ -50,7 +50,7 @@ Program { TemplateElement { type: "TemplateElement", tail: false, - value: Object { + value: { "cooked": " - ", "raw": " - ", }, @@ -64,7 +64,7 @@ Program { TemplateElement { type: "TemplateElement", tail: false, - value: Object { + value: { "cooked": " - ", "raw": " - ", }, @@ -78,7 +78,7 @@ Program { TemplateElement { type: "TemplateElement", tail: true, - value: Object { + value: { "cooked": "", "raw": "", }, @@ -90,7 +90,7 @@ Program { }, }, ], - types: Array [ + types: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -105,7 +105,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -154,7 +154,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -203,7 +203,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -252,7 +252,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -297,9 +297,10 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", + const: false, constraint: TSStringKeyword { type: "TSStringKeyword", @@ -369,7 +370,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSLiteralType { type: "TSLiteralType", literal: Literal { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-4/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-4/snapshots/2-TSESTree-Tokens.shot index 7c82d85d7273..2cb6cc2099c2 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-4/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-4/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types template-literal-type-4 TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-4/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-4/snapshots/3-Babel-AST.shot index ddb20d7d10f3..7ac7d6187a5b 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-4/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-4/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types template-literal-type-4 Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -20,7 +20,7 @@ Program { type: "TSLiteralType", literal: TemplateLiteral { type: "TemplateLiteral", - expressions: Array [ + expressions: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -35,7 +35,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -84,7 +84,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -133,7 +133,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -182,7 +182,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -218,11 +218,11 @@ Program { }, }, ], - quasis: Array [ + quasis: [ TemplateElement { type: "TemplateElement", tail: false, - value: Object { + value: { "cooked": "", "raw": "", }, @@ -236,7 +236,7 @@ Program { TemplateElement { type: "TemplateElement", tail: false, - value: Object { + value: { "cooked": " - ", "raw": " - ", }, @@ -250,7 +250,7 @@ Program { TemplateElement { type: "TemplateElement", tail: false, - value: Object { + value: { "cooked": " - ", "raw": " - ", }, @@ -264,7 +264,7 @@ Program { TemplateElement { type: "TemplateElement", tail: false, - value: Object { + value: { "cooked": " - ", "raw": " - ", }, @@ -278,7 +278,7 @@ Program { TemplateElement { type: "TemplateElement", tail: true, - value: Object { + value: { "cooked": "", "raw": "", }, @@ -306,7 +306,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", constraint: TSStringKeyword { @@ -367,7 +367,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSLiteralType { type: "TSLiteralType", literal: Literal { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-4/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-4/snapshots/4-Babel-Tokens.shot index 24f5af2e86df..46a6b8dee51b 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-4/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-4/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types template-literal-type-4 Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-4/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-4/snapshots/5-AST-Alignment-AST.shot index d6b807f6ded2..a1f3c64cd6b3 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-4/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/template-literal-type-4/snapshots/5-AST-Alignment-AST.shot @@ -256,44 +256,35 @@ exports[`AST Fixtures legacy-fixtures types template-literal-type-4 AST Alignmen + start: { column: 23, line: 4 }, end: { column: 35, line: 4 }, }, - }, -+ TSTypeReference { -+ type: 'TSTypeReference', -+ typeName: Identifier { -+ type: 'Identifier', -+ name: 'Capitalize', - +- }, +- - range: [142, 154], - loc: { - start: { column: 23, line: 4 }, - end: { column: 35, line: 4 }, -- }, + }, - }, - TSTypeReference { - type: 'TSTypeReference', - typeName: Identifier { - type: 'Identifier', - name: 'Capitalize', -+ range: [160, 170], -+ loc: { -+ start: { column: 41, line: 4 }, -+ end: { column: 51, line: 4 }, -+ }, -+ }, -+ typeParameters: TSTypeParameterInstantiation { -+ type: 'TSTypeParameterInstantiation', -+ params: Array [ -+ TSTypeReference { -+ type: 'TSTypeReference', -+ typeName: Identifier { -+ type: 'Identifier', -+ name: 'T', ++ TSTypeReference { ++ type: 'TSTypeReference', ++ typeName: Identifier { ++ type: 'Identifier', ++ name: 'Capitalize', - range: [160, 170], - loc: { - start: { column: 41, line: 4 }, - end: { column: 51, line: 4 }, -- }, ++ range: [160, 170], ++ loc: { ++ start: { column: 41, line: 4 }, ++ end: { column: 51, line: 4 }, ++ }, + }, - }, - typeParameters: TSTypeParameterInstantiation { - type: 'TSTypeParameterInstantiation', @@ -303,13 +294,22 @@ exports[`AST Fixtures legacy-fixtures types template-literal-type-4 AST Alignmen - typeName: Identifier { - type: 'Identifier', - name: 'T', ++ typeParameters: TSTypeParameterInstantiation { ++ type: 'TSTypeParameterInstantiation', ++ params: Array [ ++ TSTypeReference { ++ type: 'TSTypeReference', ++ typeName: Identifier { ++ type: 'Identifier', ++ name: 'T', + + range: [171, 172], + loc: { + start: { column: 52, line: 4 }, + end: { column: 53, line: 4 }, + }, + }, - ++ range: [171, 172], loc: { start: { column: 52, line: 4 }, @@ -338,44 +338,35 @@ exports[`AST Fixtures legacy-fixtures types template-literal-type-4 AST Alignmen + start: { column: 41, line: 4 }, end: { column: 54, line: 4 }, }, - }, -+ TSTypeReference { -+ type: 'TSTypeReference', -+ typeName: Identifier { -+ type: 'Identifier', -+ name: 'Uncapitalize', - +- }, +- - range: [160, 173], - loc: { - start: { column: 41, line: 4 }, - end: { column: 54, line: 4 }, -- }, + }, - }, - TSTypeReference { - type: 'TSTypeReference', - typeName: Identifier { - type: 'Identifier', - name: 'Uncapitalize', -+ range: [179, 191], -+ loc: { -+ start: { column: 60, line: 4 }, -+ end: { column: 72, line: 4 }, -+ }, -+ }, -+ typeParameters: TSTypeParameterInstantiation { -+ type: 'TSTypeParameterInstantiation', -+ params: Array [ -+ TSTypeReference { -+ type: 'TSTypeReference', -+ typeName: Identifier { -+ type: 'Identifier', -+ name: 'T', ++ TSTypeReference { ++ type: 'TSTypeReference', ++ typeName: Identifier { ++ type: 'Identifier', ++ name: 'Uncapitalize', - range: [179, 191], - loc: { - start: { column: 60, line: 4 }, - end: { column: 72, line: 4 }, -- }, ++ range: [179, 191], ++ loc: { ++ start: { column: 60, line: 4 }, ++ end: { column: 72, line: 4 }, ++ }, + }, - }, - typeParameters: TSTypeParameterInstantiation { - type: 'TSTypeParameterInstantiation', @@ -385,6 +376,15 @@ exports[`AST Fixtures legacy-fixtures types template-literal-type-4 AST Alignmen - typeName: Identifier { - type: 'Identifier', - name: 'T', ++ typeParameters: TSTypeParameterInstantiation { ++ type: 'TSTypeParameterInstantiation', ++ params: Array [ ++ TSTypeReference { ++ type: 'TSTypeReference', ++ typeName: Identifier { ++ type: 'Identifier', ++ name: 'T', ++ + range: [192, 193], + loc: { + start: { column: 73, line: 4 }, @@ -518,6 +518,7 @@ exports[`AST Fixtures legacy-fixtures types template-literal-type-4 AST Alignmen params: Array [ TSTypeParameter { type: 'TSTypeParameter', +- const: false, constraint: TSStringKeyword { type: 'TSStringKeyword', @@ -593,7 +594,7 @@ exports[`AST Fixtures legacy-fixtures types template-literal-type-4 AST Alignmen type: 'TSLiteralType', literal: Literal { type: 'Literal', - raw: '\\\\'heLLo\\\\'', + raw: '\\'heLLo\\'', value: 'heLLo', range: [232, 239], diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/this-type-expanded/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/this-type-expanded/snapshots/1-TSESTree-AST.shot index 59345cea548d..352030ef386a 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/this-type-expanded/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/this-type-expanded/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures types this-type-expanded TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", accessibility: "public", @@ -74,7 +74,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: MemberExpression { @@ -125,7 +125,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", name: "this", @@ -209,7 +209,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: MemberExpression { @@ -260,7 +260,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", name: "this", @@ -354,10 +354,10 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -406,7 +406,7 @@ Program { expression: true, generator: false, id: null, - params: Array [], + params: [], range: [276, 288], loc: { @@ -434,7 +434,7 @@ Program { type: "ReturnStatement", argument: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "fn", @@ -471,7 +471,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", name: "this", @@ -555,10 +555,10 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -607,7 +607,7 @@ Program { expression: true, generator: false, id: null, - params: Array [], + params: [], range: [361, 373], loc: { @@ -635,7 +635,7 @@ Program { type: "ReturnStatement", argument: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "fn", @@ -672,7 +672,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", name: "this", @@ -765,7 +765,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: MemberExpression { @@ -816,7 +816,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", name: "this", @@ -909,7 +909,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: UnaryExpression { @@ -950,7 +950,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", name: "this", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/this-type-expanded/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/this-type-expanded/snapshots/2-TSESTree-Tokens.shot index aefe853b6dc5..08d8cf1f57ad 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/this-type-expanded/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/this-type-expanded/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types this-type-expanded TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/this-type-expanded/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/this-type-expanded/snapshots/3-Babel-AST.shot index 5b5628189f62..82c4b8175a43 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/this-type-expanded/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/this-type-expanded/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures types this-type-expanded Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ PropertyDefinition { type: "PropertyDefinition", accessibility: "public", @@ -71,7 +71,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: MemberExpression { @@ -122,7 +122,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", name: "this", @@ -205,7 +205,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: MemberExpression { @@ -256,7 +256,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", name: "this", @@ -349,10 +349,10 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -401,7 +401,7 @@ Program { expression: true, generator: false, id: null, - params: Array [], + params: [], range: [276, 288], loc: { @@ -429,7 +429,7 @@ Program { type: "ReturnStatement", argument: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "fn", @@ -466,7 +466,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", name: "this", @@ -549,10 +549,10 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -601,7 +601,7 @@ Program { expression: true, generator: false, id: null, - params: Array [], + params: [], range: [361, 373], loc: { @@ -629,7 +629,7 @@ Program { type: "ReturnStatement", argument: CallExpression { type: "CallExpression", - arguments: Array [], + arguments: [], callee: Identifier { type: "Identifier", name: "fn", @@ -666,7 +666,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", name: "this", @@ -758,7 +758,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: MemberExpression { @@ -809,7 +809,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", name: "this", @@ -901,7 +901,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: UnaryExpression { @@ -942,7 +942,7 @@ Program { expression: false, generator: false, id: null, - params: Array [ + params: [ Identifier { type: "Identifier", name: "this", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/this-type-expanded/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/this-type-expanded/snapshots/4-Babel-Tokens.shot index 603d715b520c..6aaaa4155439 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/this-type-expanded/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/this-type-expanded/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types this-type-expanded Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/this-type/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/this-type/snapshots/1-TSESTree-AST.shot index 6390741cd311..c87626f17e1c 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/this-type/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/this-type/snapshots/1-TSESTree-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures types this-type TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -30,7 +30,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: ThisExpression { @@ -60,7 +60,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSThisType { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/this-type/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/this-type/snapshots/2-TSESTree-Tokens.shot index fa942749ffea..8cae01093b5e 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/this-type/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/this-type/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types this-type TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/this-type/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/this-type/snapshots/3-Babel-AST.shot index b61830c06aac..55fad10f0951 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/this-type/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/this-type/snapshots/3-Babel-AST.shot @@ -3,12 +3,12 @@ exports[`AST Fixtures legacy-fixtures types this-type Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [ + body: [ MethodDefinition { type: "MethodDefinition", computed: false, @@ -29,7 +29,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: ThisExpression { @@ -59,7 +59,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSThisType { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/this-type/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/this-type/snapshots/4-Babel-Tokens.shot index 3fe9000560e6..4be7e15e3c45 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/this-type/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/this-type/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types this-type Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-empty/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-empty/snapshots/1-TSESTree-AST.shot index be5220d25e37..239f33768f09 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-empty/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-empty/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types tuple-empty TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -16,7 +16,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSTupleType { type: "TSTupleType", - elementTypes: Array [], + elementTypes: [], range: [80, 82], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-empty/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-empty/snapshots/2-TSESTree-Tokens.shot index e095c3d40173..8d658ac6a918 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-empty/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-empty/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types tuple-empty TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-empty/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-empty/snapshots/3-Babel-AST.shot index 1d0291451c4a..f464104f9529 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-empty/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-empty/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types tuple-empty Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -16,7 +16,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSTupleType { type: "TSTupleType", - elementTypes: Array [], + elementTypes: [], range: [80, 82], loc: { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-empty/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-empty/snapshots/4-Babel-Tokens.shot index 30831b226b8a..ddd9643958f3 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-empty/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-empty/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types tuple-empty Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-optional/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-optional/snapshots/1-TSESTree-AST.shot index 5e1f88bf5755..99d8dc3bbeb9 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-optional/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-optional/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types tuple-named-optional TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -16,7 +16,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSNamedTupleMember { type: "TSNamedTupleMember", elementType: TSStringKeyword { @@ -79,7 +79,7 @@ Program { type: "TSNamedTupleMember", elementType: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSStringKeyword { type: "TSStringKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-optional/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-optional/snapshots/2-TSESTree-Tokens.shot index 33a75b4daaa9..25ee3d0ac479 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-optional/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-optional/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types tuple-named-optional TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-optional/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-optional/snapshots/3-Babel-AST.shot index 360657919cc7..9ee190c32e15 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-optional/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-optional/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types tuple-named-optional Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -16,7 +16,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSNamedTupleMember { type: "TSNamedTupleMember", elementType: TSStringKeyword { @@ -79,7 +79,7 @@ Program { type: "TSNamedTupleMember", elementType: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSStringKeyword { type: "TSStringKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-optional/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-optional/snapshots/4-Babel-Tokens.shot index a0f1781cf8cb..dfa78bbe4bef 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-optional/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-optional/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types tuple-named-optional Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-rest/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-rest/snapshots/1-TSESTree-AST.shot index 3f033ff3b4a3..45c75cbc463f 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-rest/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-rest/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types tuple-named-rest TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -16,7 +16,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSNamedTupleMember { type: "TSNamedTupleMember", elementType: TSStringKeyword { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-rest/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-rest/snapshots/2-TSESTree-Tokens.shot index cbb92a24f2f8..a718df482a05 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-rest/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-rest/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types tuple-named-rest TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-rest/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-rest/snapshots/3-Babel-AST.shot index 5664ff39f398..021c7b1d2be8 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-rest/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-rest/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types tuple-named-rest Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -16,7 +16,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSNamedTupleMember { type: "TSNamedTupleMember", elementType: TSStringKeyword { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-rest/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-rest/snapshots/4-Babel-Tokens.shot index 3f09f788b42a..0204b0e6d355 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-rest/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-rest/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types tuple-named-rest Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-type/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-type/snapshots/1-TSESTree-AST.shot index cea3a5527f00..64bc8b2e2f6c 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-type/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-type/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types tuple-named-type TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,7 +18,7 @@ Program { }, typeAnnotation: TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSNamedTupleMember { type: "TSNamedTupleMember", elementType: TSStringKeyword { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-type/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-type/snapshots/2-TSESTree-Tokens.shot index 8e08a8c5928e..49f80d3ec3eb 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-type/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-type/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types tuple-named-type TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-type/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-type/snapshots/3-Babel-AST.shot index eee15f41e956..85bb7b0bae8d 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-type/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-type/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types tuple-named-type Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,7 +18,7 @@ Program { }, typeAnnotation: TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSNamedTupleMember { type: "TSNamedTupleMember", elementType: TSStringKeyword { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-type/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-type/snapshots/4-Babel-Tokens.shot index 1d10bc474c74..4c62ca261c19 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-type/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named-type/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types tuple-named-type Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named/snapshots/1-TSESTree-AST.shot index 733eacf0a27d..7dea97ebde46 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types tuple-named TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -16,7 +16,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSNamedTupleMember { type: "TSNamedTupleMember", elementType: TSNumberKeyword { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named/snapshots/2-TSESTree-Tokens.shot index 52e363ecde59..70f8c4510a03 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types tuple-named TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named/snapshots/3-Babel-AST.shot index 5348248af00e..34fbb78402a3 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types tuple-named Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -16,7 +16,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSNamedTupleMember { type: "TSNamedTupleMember", elementType: TSNumberKeyword { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named/snapshots/4-Babel-Tokens.shot index cdcbbd02ca78..edb9ce7c814f 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-named/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types tuple-named Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-optional/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-optional/snapshots/1-TSESTree-AST.shot index 5036e8cb6373..73cfc3cad6b1 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-optional/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-optional/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types tuple-optional TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -16,7 +16,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSStringKeyword { type: "TSStringKeyword", @@ -48,7 +48,7 @@ Program { type: "TSOptionalType", typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSStringKeyword { type: "TSStringKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-optional/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-optional/snapshots/2-TSESTree-Tokens.shot index 0f1ac5a1622b..c3beb23c270c 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-optional/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-optional/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types tuple-optional TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-optional/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-optional/snapshots/3-Babel-AST.shot index 172d1e1a873c..3a6e4b74d73c 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-optional/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-optional/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types tuple-optional Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -16,7 +16,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSStringKeyword { type: "TSStringKeyword", @@ -50,7 +50,7 @@ Program { type: "TSParenthesizedType", typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSStringKeyword { type: "TSStringKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-optional/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-optional/snapshots/4-Babel-Tokens.shot index 7227aaba06d7..b08affcbd45a 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-optional/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-optional/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types tuple-optional Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-rest/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-rest/snapshots/1-TSESTree-AST.shot index 3577cb828c0f..4661a8567f5e 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-rest/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-rest/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types tuple-rest TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -16,7 +16,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSStringKeyword { type: "TSStringKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-rest/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-rest/snapshots/2-TSESTree-Tokens.shot index 0a5734141485..2d7f92616a7a 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-rest/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-rest/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types tuple-rest TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-rest/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-rest/snapshots/3-Babel-AST.shot index 9b196dce9b5e..61aad1f65fce 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-rest/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-rest/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types tuple-rest Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -16,7 +16,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSStringKeyword { type: "TSStringKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-rest/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-rest/snapshots/4-Babel-Tokens.shot index 9579e04cdc0d..ebad129671d1 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-rest/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-rest/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types tuple-rest Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-type/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-type/snapshots/1-TSESTree-AST.shot index 5349bd45b02a..ee875d4f166a 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-type/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-type/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types tuple-type TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,7 +18,7 @@ Program { }, typeAnnotation: TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSStringKeyword { type: "TSStringKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-type/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-type/snapshots/2-TSESTree-Tokens.shot index 7e1ce1cf174f..3094a97dcf6d 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-type/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-type/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types tuple-type TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-type/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-type/snapshots/3-Babel-AST.shot index 8e4d637cbced..6ab7be1e3deb 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-type/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-type/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types tuple-type Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,7 +18,7 @@ Program { }, typeAnnotation: TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSStringKeyword { type: "TSStringKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-type/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-type/snapshots/4-Babel-Tokens.shot index ec7d44913700..442a7025027e 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-type/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple-type/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types tuple-type Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple/snapshots/1-TSESTree-AST.shot index 674810200f71..41466b9f8f2f 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types tuple TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -16,7 +16,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSNumberKeyword { type: "TSNumberKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple/snapshots/2-TSESTree-Tokens.shot index 9b2d42414b16..0109a8e663be 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types tuple TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple/snapshots/3-Babel-AST.shot index 12b658861222..3ac2a320ca90 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types tuple Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -16,7 +16,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSNumberKeyword { type: "TSNumberKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple/snapshots/4-Babel-Tokens.shot index ed70d59f7602..a92a2d3aab55 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/tuple/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types tuple Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/type-literal/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/type-literal/snapshots/1-TSESTree-AST.shot index 9b45172d796a..2b64d5846c8b 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/type-literal/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/type-literal/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types type-literal TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -16,7 +16,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSTypeLiteral { type: "TSTypeLiteral", - members: Array [ + members: [ TSPropertySignature { type: "TSPropertySignature", computed: false, diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/type-literal/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/type-literal/snapshots/2-TSESTree-Tokens.shot index 3dfb334346c5..27fc0b16d2d6 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/type-literal/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/type-literal/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types type-literal TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/type-literal/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/type-literal/snapshots/3-Babel-AST.shot index a88ef47daa45..844796b9bbb6 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/type-literal/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/type-literal/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types type-literal Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -16,7 +16,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSTypeLiteral { type: "TSTypeLiteral", - members: Array [ + members: [ TSPropertySignature { type: "TSPropertySignature", computed: false, diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/type-literal/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/type-literal/snapshots/4-Babel-Tokens.shot index 0e26849ea696..0babc1ec50ad 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/type-literal/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/type-literal/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types type-literal Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/type-operator/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/type-operator/snapshots/1-TSESTree-AST.shot index 66c567c2304d..29698cef44e1 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/type-operator/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/type-operator/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types type-operator TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -76,7 +76,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/type-operator/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/type-operator/snapshots/2-TSESTree-Tokens.shot index 622050dd3f87..8342a54237e4 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/type-operator/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/type-operator/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types type-operator TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/type-operator/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/type-operator/snapshots/3-Babel-AST.shot index b5adcfa7fcb1..d4b32e82f7df 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/type-operator/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/type-operator/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types type-operator Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -76,7 +76,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/type-operator/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/type-operator/snapshots/4-Babel-Tokens.shot index abbbeabb5075..f65669b64187 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/type-operator/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/type-operator/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types type-operator Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof-this/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof-this/snapshots/1-TSESTree-AST.shot index 7a8b4111b0dc..cb47a67aee4b 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof-this/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof-this/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types typeof-this TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -65,7 +65,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof-this/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof-this/snapshots/2-TSESTree-Tokens.shot index 504d48d07595..ba86068a49ed 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof-this/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof-this/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types typeof-this TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof-this/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof-this/snapshots/3-Babel-AST.shot index ac5fb2d72e3b..16be871c1c1e 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof-this/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof-this/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types typeof-this Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -66,7 +66,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof-this/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof-this/snapshots/4-Babel-Tokens.shot index 9d99f0c92e32..abf69e7ff073 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof-this/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof-this/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types typeof-this Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof-with-type-parameters/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof-with-type-parameters/snapshots/1-TSESTree-AST.shot index 95aaa57fb37f..da18ddbed86a 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof-with-type-parameters/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof-with-type-parameters/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types typeof-with-type-parameters TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -47,7 +47,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof-with-type-parameters/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof-with-type-parameters/snapshots/2-TSESTree-Tokens.shot index 62cf9c2c52a7..05ae68304c53 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof-with-type-parameters/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof-with-type-parameters/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types typeof-with-type-parameters TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof-with-type-parameters/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof-with-type-parameters/snapshots/3-Babel-AST.shot index 7b2d01aa6442..b98b2ff99ed9 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof-with-type-parameters/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof-with-type-parameters/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types typeof-with-type-parameters Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -47,7 +47,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof-with-type-parameters/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof-with-type-parameters/snapshots/4-Babel-Tokens.shot index 58e5c37dd22e..02080b5cc739 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof-with-type-parameters/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof-with-type-parameters/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types typeof-with-type-parameters Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof/snapshots/1-TSESTree-AST.shot index 94086e9e3212..31eaebb2e2da 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types typeof TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof/snapshots/2-TSESTree-Tokens.shot index 0d70b6e07451..fba71ceec00c 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types typeof TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof/snapshots/3-Babel-AST.shot index cfbb75087901..5e327598dec0 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types typeof Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof/snapshots/4-Babel-Tokens.shot index c171e99131c6..7ccacaf04787 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/typeof/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types typeof Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/union-intersection/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/union-intersection/snapshots/1-TSESTree-AST.shot index 22265118d1ff..0adf4ef0127a 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/union-intersection/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/union-intersection/snapshots/1-TSESTree-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types union-intersection TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -16,7 +16,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSNumberKeyword { type: "TSNumberKeyword", @@ -85,7 +85,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -95,7 +95,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSIntersectionType { type: "TSIntersectionType", - types: Array [ + types: [ TSNumberKeyword { type: "TSNumberKeyword", @@ -155,7 +155,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -165,7 +165,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSNumberKeyword { type: "TSNumberKeyword", @@ -177,7 +177,7 @@ Program { }, TSIntersectionType { type: "TSIntersectionType", - types: Array [ + types: [ TSStringKeyword { type: "TSStringKeyword", @@ -245,7 +245,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -255,10 +255,10 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSIntersectionType { type: "TSIntersectionType", - types: Array [ + types: [ TSNumberKeyword { type: "TSNumberKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/union-intersection/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/union-intersection/snapshots/2-TSESTree-Tokens.shot index 4451c3d6aee3..034e2c44ac04 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/union-intersection/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/union-intersection/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types union-intersection TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/union-intersection/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/union-intersection/snapshots/3-Babel-AST.shot index 1e1857f742a0..bc445e5dd03a 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/union-intersection/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/union-intersection/snapshots/3-Babel-AST.shot @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures types union-intersection Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -16,7 +16,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSNumberKeyword { type: "TSNumberKeyword", @@ -85,7 +85,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -95,7 +95,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSIntersectionType { type: "TSIntersectionType", - types: Array [ + types: [ TSNumberKeyword { type: "TSNumberKeyword", @@ -155,7 +155,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -165,7 +165,7 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSNumberKeyword { type: "TSNumberKeyword", @@ -179,7 +179,7 @@ Program { type: "TSParenthesizedType", typeAnnotation: TSIntersectionType { type: "TSIntersectionType", - types: Array [ + types: [ TSStringKeyword { type: "TSStringKeyword", @@ -254,7 +254,7 @@ Program { }, VariableDeclaration { type: "VariableDeclaration", - declarations: Array [ + declarations: [ VariableDeclarator { type: "VariableDeclarator", id: Identifier { @@ -264,12 +264,12 @@ Program { type: "TSTypeAnnotation", typeAnnotation: TSUnionType { type: "TSUnionType", - types: Array [ + types: [ TSParenthesizedType { type: "TSParenthesizedType", typeAnnotation: TSIntersectionType { type: "TSIntersectionType", - types: Array [ + types: [ TSNumberKeyword { type: "TSNumberKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/union-intersection/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/union-intersection/snapshots/4-Babel-Tokens.shot index 34dd032c8759..c9581564655c 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/union-intersection/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/union-intersection/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types union-intersection Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "let", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/union-type/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/union-type/snapshots/1-TSESTree-AST.shot index e96cd3e66744..4798d7da0453 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/union-type/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/union-type/snapshots/1-TSESTree-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types union-type TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,7 +18,7 @@ Program { }, typeAnnotation: TSIntersectionType { type: "TSIntersectionType", - types: Array [ + types: [ TSStringKeyword { type: "TSStringKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/union-type/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/union-type/snapshots/2-TSESTree-Tokens.shot index f45ec2978a67..266ed6f132ad 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/union-type/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/union-type/snapshots/2-TSESTree-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types union-type TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/union-type/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/union-type/snapshots/3-Babel-AST.shot index 60917914e54e..065f0949c91a 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/union-type/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/union-type/snapshots/3-Babel-AST.shot @@ -3,7 +3,7 @@ exports[`AST Fixtures legacy-fixtures types union-type Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", id: Identifier { @@ -18,7 +18,7 @@ Program { }, typeAnnotation: TSIntersectionType { type: "TSIntersectionType", - types: Array [ + types: [ TSStringKeyword { type: "TSStringKeyword", diff --git a/packages/ast-spec/src/legacy-fixtures/types/fixtures/union-type/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/union-type/snapshots/4-Babel-Tokens.shot index 084fdec7fb33..1bb015ac6678 100644 --- a/packages/ast-spec/src/legacy-fixtures/types/fixtures/union-type/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/legacy-fixtures/types/fixtures/union-type/snapshots/4-Babel-Tokens.shot @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures types union-type Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "type", diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier-extends/fixture.ts b/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier-extends/fixture.ts new file mode 100644 index 000000000000..6449f9a9a324 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier-extends/fixture.ts @@ -0,0 +1 @@ +() => {}; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier-extends/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier-extends/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..a6d847de1c2d --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier-extends/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,101 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter arrow-const-modifier-extends TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + ExpressionStatement { + type: "ExpressionStatement", + expression: ArrowFunctionExpression { + type: "ArrowFunctionExpression", + async: false, + body: BlockStatement { + type: "BlockStatement", + body: [], + + range: [25, 27], + loc: { + start: { column: 25, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + expression: false, + generator: false, + id: null, + params: [], + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + constraint: TSTypeReference { + type: "TSTypeReference", + typeName: Identifier { + type: "Identifier", + name: "U", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + in: false, + name: Identifier { + type: "Identifier", + name: "T", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + out: false, + + range: [1, 18], + loc: { + start: { column: 1, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], + + range: [0, 19], + loc: { + start: { column: 0, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [0, 27], + loc: { + start: { column: 0, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + + range: [0, 28], + loc: { + start: { column: 0, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 29], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier-extends/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier-extends/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..8d06df9d215b --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier-extends/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,126 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter arrow-const-modifier-extends TSESTree - Tokens 1`] = ` +[ + Punctuator { + type: "Punctuator", + value: "<", + + range: [0, 1], + loc: { + start: { column: 0, line: 1 }, + end: { column: 1, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [1, 6], + loc: { + start: { column: 1, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "extends", + + range: [9, 16], + loc: { + start: { column: 9, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "U", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "(", + + range: [19, 20], + loc: { + start: { column: 19, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "=>", + + range: [22, 24], + loc: { + start: { column: 22, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [25, 26], + loc: { + start: { column: 25, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [26, 27], + loc: { + start: { column: 26, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [27, 28], + loc: { + start: { column: 27, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier-extends/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier-extends/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..6d6084a0dab5 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier-extends/snapshots/3-Babel-AST.shot @@ -0,0 +1,90 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter arrow-const-modifier-extends Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + ExpressionStatement { + type: "ExpressionStatement", + expression: ArrowFunctionExpression { + type: "ArrowFunctionExpression", + async: false, + body: BlockStatement { + type: "BlockStatement", + body: [], + + range: [25, 27], + loc: { + start: { column: 25, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + expression: false, + generator: false, + id: null, + params: [], + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + constraint: TSTypeReference { + type: "TSTypeReference", + typeName: Identifier { + type: "Identifier", + name: "U", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + name: "T", + + range: [1, 18], + loc: { + start: { column: 1, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], + + range: [0, 19], + loc: { + start: { column: 0, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [0, 27], + loc: { + start: { column: 0, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + + range: [0, 28], + loc: { + start: { column: 0, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 29], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier-extends/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier-extends/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..0c5a13d7cb43 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier-extends/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,126 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter arrow-const-modifier-extends Babel - Tokens 1`] = ` +[ + Punctuator { + type: "Punctuator", + value: "<", + + range: [0, 1], + loc: { + start: { column: 0, line: 1 }, + end: { column: 1, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [1, 6], + loc: { + start: { column: 1, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "extends", + + range: [9, 16], + loc: { + start: { column: 9, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "U", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "(", + + range: [19, 20], + loc: { + start: { column: 19, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "=>", + + range: [22, 24], + loc: { + start: { column: 22, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [25, 26], + loc: { + start: { column: 25, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [26, 27], + loc: { + start: { column: 26, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [27, 28], + loc: { + start: { column: 27, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier-extends/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier-extends/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..a1609757d3c8 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier-extends/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,106 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter arrow-const-modifier-extends AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExpressionStatement { + type: 'ExpressionStatement', + expression: ArrowFunctionExpression { + type: 'ArrowFunctionExpression', + async: false, + body: BlockStatement { + type: 'BlockStatement', + body: Array [], + + range: [25, 27], + loc: { + start: { column: 25, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + expression: false, + generator: false, + id: null, + params: Array [], + typeParameters: TSTypeParameterDeclaration { + type: 'TSTypeParameterDeclaration', + params: Array [ + TSTypeParameter { + type: 'TSTypeParameter', + const: true, + constraint: TSTypeReference { + type: 'TSTypeReference', + typeName: Identifier { + type: 'Identifier', + name: 'U', + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, +- in: false, +- name: Identifier { +- type: 'Identifier', +- name: 'T', +- +- range: [7, 8], +- loc: { +- start: { column: 7, line: 1 }, +- end: { column: 8, line: 1 }, +- }, +- }, +- out: false, ++ name: 'T', + + range: [1, 18], + loc: { + start: { column: 1, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], + + range: [0, 19], + loc: { + start: { column: 0, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [0, 27], + loc: { + start: { column: 0, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + + range: [0, 28], + loc: { + start: { column: 0, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 29], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier-extends/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier-extends/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..098a78ba535d --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier-extends/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter arrow-const-modifier-extends AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier/fixture.ts b/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier/fixture.ts new file mode 100644 index 000000000000..e887ecf87886 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier/fixture.ts @@ -0,0 +1 @@ +() => {}; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..beab46e12b9e --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,82 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter arrow-const-modifier TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + ExpressionStatement { + type: "ExpressionStatement", + expression: ArrowFunctionExpression { + type: "ArrowFunctionExpression", + async: false, + body: BlockStatement { + type: "BlockStatement", + body: [], + + range: [15, 17], + loc: { + start: { column: 15, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + expression: false, + generator: false, + id: null, + params: [], + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + in: false, + name: Identifier { + type: "Identifier", + name: "T", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + out: false, + + range: [1, 8], + loc: { + start: { column: 1, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + ], + + range: [0, 9], + loc: { + start: { column: 0, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + + range: [0, 17], + loc: { + start: { column: 0, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + + range: [0, 18], + loc: { + start: { column: 0, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 19], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..c30a4cca61f6 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,106 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter arrow-const-modifier TSESTree - Tokens 1`] = ` +[ + Punctuator { + type: "Punctuator", + value: "<", + + range: [0, 1], + loc: { + start: { column: 0, line: 1 }, + end: { column: 1, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [1, 6], + loc: { + start: { column: 1, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [8, 9], + loc: { + start: { column: 8, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "(", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "=>", + + range: [12, 14], + loc: { + start: { column: 12, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [15, 16], + loc: { + start: { column: 15, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [16, 17], + loc: { + start: { column: 16, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..8fe677771132 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier/snapshots/3-Babel-AST.shot @@ -0,0 +1,71 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter arrow-const-modifier Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + ExpressionStatement { + type: "ExpressionStatement", + expression: ArrowFunctionExpression { + type: "ArrowFunctionExpression", + async: false, + body: BlockStatement { + type: "BlockStatement", + body: [], + + range: [15, 17], + loc: { + start: { column: 15, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + expression: false, + generator: false, + id: null, + params: [], + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + name: "T", + + range: [1, 8], + loc: { + start: { column: 1, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + ], + + range: [0, 9], + loc: { + start: { column: 0, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + + range: [0, 17], + loc: { + start: { column: 0, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + + range: [0, 18], + loc: { + start: { column: 0, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 19], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..e14fc6ad72dc --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,106 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter arrow-const-modifier Babel - Tokens 1`] = ` +[ + Punctuator { + type: "Punctuator", + value: "<", + + range: [0, 1], + loc: { + start: { column: 0, line: 1 }, + end: { column: 1, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [1, 6], + loc: { + start: { column: 1, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [8, 9], + loc: { + start: { column: 8, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "(", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "=>", + + range: [12, 14], + loc: { + start: { column: 12, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [15, 16], + loc: { + start: { column: 15, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [16, 17], + loc: { + start: { column: 16, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..0fd5e92e286a --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,87 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter arrow-const-modifier AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExpressionStatement { + type: 'ExpressionStatement', + expression: ArrowFunctionExpression { + type: 'ArrowFunctionExpression', + async: false, + body: BlockStatement { + type: 'BlockStatement', + body: Array [], + + range: [15, 17], + loc: { + start: { column: 15, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + expression: false, + generator: false, + id: null, + params: Array [], + typeParameters: TSTypeParameterDeclaration { + type: 'TSTypeParameterDeclaration', + params: Array [ + TSTypeParameter { + type: 'TSTypeParameter', + const: true, +- in: false, +- name: Identifier { +- type: 'Identifier', +- name: 'T', +- +- range: [7, 8], +- loc: { +- start: { column: 7, line: 1 }, +- end: { column: 8, line: 1 }, +- }, +- }, +- out: false, ++ name: 'T', + + range: [1, 8], + loc: { + start: { column: 1, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + ], + + range: [0, 9], + loc: { + start: { column: 0, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + + range: [0, 17], + loc: { + start: { column: 0, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + + range: [0, 18], + loc: { + start: { column: 0, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 19], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..30ea230053eb --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter arrow-const-modifier AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-in-modifier/fixture.ts b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-in-modifier/fixture.ts new file mode 100644 index 000000000000..a6771c2cdb4f --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-in-modifier/fixture.ts @@ -0,0 +1 @@ +class E {} diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-in-modifier/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-in-modifier/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..4c7658d5f79b --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-in-modifier/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,79 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-decl-const-in-modifier TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + ClassDeclaration { + type: "ClassDeclaration", + body: ClassBody { + type: "ClassBody", + body: [], + + range: [20, 22], + loc: { + start: { column: 20, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + id: Identifier { + type: "Identifier", + name: "E", + + range: [6, 7], + loc: { + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + superClass: null, + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + in: true, + name: Identifier { + type: "Identifier", + name: "T", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + out: false, + + range: [8, 18], + loc: { + start: { column: 8, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], + + range: [7, 19], + loc: { + start: { column: 7, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [0, 22], + loc: { + start: { column: 0, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 23], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-in-modifier/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-in-modifier/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..1b61e7caf2cd --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-in-modifier/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,96 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-decl-const-in-modifier TSESTree - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "class", + + range: [0, 5], + loc: { + start: { column: 0, line: 1 }, + end: { column: 5, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "E", + + range: [6, 7], + loc: { + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [8, 13], + loc: { + start: { column: 8, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "in", + + range: [14, 16], + loc: { + start: { column: 14, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-in-modifier/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-in-modifier/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..cf8bdeebdc93 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-in-modifier/snapshots/3-Babel-AST.shot @@ -0,0 +1,69 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-decl-const-in-modifier Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + ClassDeclaration { + type: "ClassDeclaration", + body: ClassBody { + type: "ClassBody", + body: [], + + range: [20, 22], + loc: { + start: { column: 20, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + id: Identifier { + type: "Identifier", + name: "E", + + range: [6, 7], + loc: { + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + superClass: null, + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + in: true, + name: "T", + + range: [8, 18], + loc: { + start: { column: 8, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], + + range: [7, 19], + loc: { + start: { column: 7, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [0, 22], + loc: { + start: { column: 0, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 23], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-in-modifier/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-in-modifier/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..fea85c0ee9b9 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-in-modifier/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,96 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-decl-const-in-modifier Babel - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "class", + + range: [0, 5], + loc: { + start: { column: 0, line: 1 }, + end: { column: 5, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "E", + + range: [6, 7], + loc: { + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [8, 13], + loc: { + start: { column: 8, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "in", + + range: [14, 16], + loc: { + start: { column: 14, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-in-modifier/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-in-modifier/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..b8aa62a507ca --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-in-modifier/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,84 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-decl-const-in-modifier AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ClassDeclaration { + type: 'ClassDeclaration', + body: ClassBody { + type: 'ClassBody', + body: Array [], + + range: [20, 22], + loc: { + start: { column: 20, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + id: Identifier { + type: 'Identifier', + name: 'E', + + range: [6, 7], + loc: { + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + superClass: null, + typeParameters: TSTypeParameterDeclaration { + type: 'TSTypeParameterDeclaration', + params: Array [ + TSTypeParameter { + type: 'TSTypeParameter', + const: true, + in: true, +- name: Identifier { +- type: 'Identifier', +- name: 'T', +- +- range: [17, 18], +- loc: { +- start: { column: 17, line: 1 }, +- end: { column: 18, line: 1 }, +- }, +- }, +- out: false, ++ name: 'T', + + range: [8, 18], + loc: { + start: { column: 8, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], + + range: [7, 19], + loc: { + start: { column: 7, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [0, 22], + loc: { + start: { column: 0, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 23], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-in-modifier/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-in-modifier/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..28f1e6988ff3 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-in-modifier/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-decl-const-in-modifier AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-extends/fixture.ts b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-extends/fixture.ts new file mode 100644 index 000000000000..ccc2587d9d04 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-extends/fixture.ts @@ -0,0 +1 @@ +class B {} diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-extends/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-extends/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..99c1b4bfa76d --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-extends/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,98 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-decl-const-modifier-extends TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + ClassDeclaration { + type: "ClassDeclaration", + body: ClassBody { + type: "ClassBody", + body: [], + + range: [27, 29], + loc: { + start: { column: 27, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + id: Identifier { + type: "Identifier", + name: "B", + + range: [6, 7], + loc: { + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + superClass: null, + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + constraint: TSTypeReference { + type: "TSTypeReference", + typeName: Identifier { + type: "Identifier", + name: "U", + + range: [24, 25], + loc: { + start: { column: 24, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + + range: [24, 25], + loc: { + start: { column: 24, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + in: false, + name: Identifier { + type: "Identifier", + name: "T", + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + out: false, + + range: [8, 25], + loc: { + start: { column: 8, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + ], + + range: [7, 26], + loc: { + start: { column: 7, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + + range: [0, 29], + loc: { + start: { column: 0, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 30], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-extends/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-extends/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..3d05f97a2ef4 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-extends/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,106 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-decl-const-modifier-extends TSESTree - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "class", + + range: [0, 5], + loc: { + start: { column: 0, line: 1 }, + end: { column: 5, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "B", + + range: [6, 7], + loc: { + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [8, 13], + loc: { + start: { column: 8, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "extends", + + range: [16, 23], + loc: { + start: { column: 16, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "U", + + range: [24, 25], + loc: { + start: { column: 24, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [25, 26], + loc: { + start: { column: 25, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [27, 28], + loc: { + start: { column: 27, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [28, 29], + loc: { + start: { column: 28, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-extends/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-extends/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..3503630e2e7d --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-extends/snapshots/3-Babel-AST.shot @@ -0,0 +1,87 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-decl-const-modifier-extends Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + ClassDeclaration { + type: "ClassDeclaration", + body: ClassBody { + type: "ClassBody", + body: [], + + range: [27, 29], + loc: { + start: { column: 27, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + id: Identifier { + type: "Identifier", + name: "B", + + range: [6, 7], + loc: { + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + superClass: null, + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + constraint: TSTypeReference { + type: "TSTypeReference", + typeName: Identifier { + type: "Identifier", + name: "U", + + range: [24, 25], + loc: { + start: { column: 24, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + + range: [24, 25], + loc: { + start: { column: 24, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + name: "T", + + range: [8, 25], + loc: { + start: { column: 8, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + ], + + range: [7, 26], + loc: { + start: { column: 7, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + + range: [0, 29], + loc: { + start: { column: 0, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 30], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-extends/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-extends/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..d18447a029d4 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-extends/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,106 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-decl-const-modifier-extends Babel - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "class", + + range: [0, 5], + loc: { + start: { column: 0, line: 1 }, + end: { column: 5, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "B", + + range: [6, 7], + loc: { + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [8, 13], + loc: { + start: { column: 8, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "extends", + + range: [16, 23], + loc: { + start: { column: 16, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "U", + + range: [24, 25], + loc: { + start: { column: 24, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [25, 26], + loc: { + start: { column: 25, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [27, 28], + loc: { + start: { column: 27, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [28, 29], + loc: { + start: { column: 28, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-extends/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-extends/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..6b9faf086d69 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-extends/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,103 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-decl-const-modifier-extends AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ClassDeclaration { + type: 'ClassDeclaration', + body: ClassBody { + type: 'ClassBody', + body: Array [], + + range: [27, 29], + loc: { + start: { column: 27, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + id: Identifier { + type: 'Identifier', + name: 'B', + + range: [6, 7], + loc: { + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + superClass: null, + typeParameters: TSTypeParameterDeclaration { + type: 'TSTypeParameterDeclaration', + params: Array [ + TSTypeParameter { + type: 'TSTypeParameter', + const: true, + constraint: TSTypeReference { + type: 'TSTypeReference', + typeName: Identifier { + type: 'Identifier', + name: 'U', + + range: [24, 25], + loc: { + start: { column: 24, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + + range: [24, 25], + loc: { + start: { column: 24, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, +- in: false, +- name: Identifier { +- type: 'Identifier', +- name: 'T', +- +- range: [14, 15], +- loc: { +- start: { column: 14, line: 1 }, +- end: { column: 15, line: 1 }, +- }, +- }, +- out: false, ++ name: 'T', + + range: [8, 25], + loc: { + start: { column: 8, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + ], + + range: [7, 26], + loc: { + start: { column: 7, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + + range: [0, 29], + loc: { + start: { column: 0, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 30], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-extends/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-extends/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..eeff4a273371 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-extends/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-decl-const-modifier-extends AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-multiple/fixture.ts b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-multiple/fixture.ts new file mode 100644 index 000000000000..20dc9a333dad --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-multiple/fixture.ts @@ -0,0 +1 @@ +class C {} diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-multiple/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-multiple/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..e4ea2237032a --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-multiple/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,101 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-decl-const-modifier-multiple TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + ClassDeclaration { + type: "ClassDeclaration", + body: ClassBody { + type: "ClassBody", + body: [], + + range: [20, 22], + loc: { + start: { column: 20, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + id: Identifier { + type: "Identifier", + name: "C", + + range: [6, 7], + loc: { + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + superClass: null, + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: false, + in: false, + name: Identifier { + type: "Identifier", + name: "T", + + range: [8, 9], + loc: { + start: { column: 8, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + out: false, + + range: [8, 9], + loc: { + start: { column: 8, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + TSTypeParameter { + type: "TSTypeParameter", + const: true, + in: false, + name: Identifier { + type: "Identifier", + name: "U", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + out: false, + + range: [11, 18], + loc: { + start: { column: 11, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], + + range: [7, 19], + loc: { + start: { column: 7, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [0, 22], + loc: { + start: { column: 0, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 23], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-multiple/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-multiple/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..ca84d4b91f55 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-multiple/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,106 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-decl-const-modifier-multiple TSESTree - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "class", + + range: [0, 5], + loc: { + start: { column: 0, line: 1 }, + end: { column: 5, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "C", + + range: [6, 7], + loc: { + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [8, 9], + loc: { + start: { column: 8, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ",", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [11, 16], + loc: { + start: { column: 11, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "U", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-multiple/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-multiple/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..609bb853b3f8 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-multiple/snapshots/3-Babel-AST.shot @@ -0,0 +1,78 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-decl-const-modifier-multiple Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + ClassDeclaration { + type: "ClassDeclaration", + body: ClassBody { + type: "ClassBody", + body: [], + + range: [20, 22], + loc: { + start: { column: 20, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + id: Identifier { + type: "Identifier", + name: "C", + + range: [6, 7], + loc: { + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + superClass: null, + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + name: "T", + + range: [8, 9], + loc: { + start: { column: 8, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + TSTypeParameter { + type: "TSTypeParameter", + const: true, + name: "U", + + range: [11, 18], + loc: { + start: { column: 11, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], + + range: [7, 19], + loc: { + start: { column: 7, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [0, 22], + loc: { + start: { column: 0, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 23], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-multiple/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-multiple/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..feb108072a1c --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-multiple/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,106 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-decl-const-modifier-multiple Babel - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "class", + + range: [0, 5], + loc: { + start: { column: 0, line: 1 }, + end: { column: 5, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "C", + + range: [6, 7], + loc: { + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [8, 9], + loc: { + start: { column: 8, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ",", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [11, 16], + loc: { + start: { column: 11, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "U", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-multiple/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-multiple/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..274981ae1255 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-multiple/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,107 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-decl-const-modifier-multiple AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ClassDeclaration { + type: 'ClassDeclaration', + body: ClassBody { + type: 'ClassBody', + body: Array [], + + range: [20, 22], + loc: { + start: { column: 20, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + id: Identifier { + type: 'Identifier', + name: 'C', + + range: [6, 7], + loc: { + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + superClass: null, + typeParameters: TSTypeParameterDeclaration { + type: 'TSTypeParameterDeclaration', + params: Array [ + TSTypeParameter { + type: 'TSTypeParameter', +- const: false, +- in: false, +- name: Identifier { +- type: 'Identifier', +- name: 'T', ++ name: 'T', + +- range: [8, 9], +- loc: { +- start: { column: 8, line: 1 }, +- end: { column: 9, line: 1 }, +- }, +- }, +- out: false, +- + range: [8, 9], + loc: { + start: { column: 8, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + TSTypeParameter { + type: 'TSTypeParameter', + const: true, +- in: false, +- name: Identifier { +- type: 'Identifier', +- name: 'U', +- +- range: [17, 18], +- loc: { +- start: { column: 17, line: 1 }, +- end: { column: 18, line: 1 }, +- }, +- }, +- out: false, ++ name: 'U', + + range: [11, 18], + loc: { + start: { column: 11, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], + + range: [7, 19], + loc: { + start: { column: 7, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [0, 22], + loc: { + start: { column: 0, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 23], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-multiple/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-multiple/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..c5dac045eb05 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier-multiple/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-decl-const-modifier-multiple AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier/fixture.ts b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier/fixture.ts new file mode 100644 index 000000000000..41a67eea3260 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier/fixture.ts @@ -0,0 +1 @@ +class A {} diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..6a0bab05f37f --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,79 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-decl-const-modifier TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + ClassDeclaration { + type: "ClassDeclaration", + body: ClassBody { + type: "ClassBody", + body: [], + + range: [17, 19], + loc: { + start: { column: 17, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + id: Identifier { + type: "Identifier", + name: "A", + + range: [6, 7], + loc: { + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + superClass: null, + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + in: false, + name: Identifier { + type: "Identifier", + name: "T", + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + out: false, + + range: [8, 15], + loc: { + start: { column: 8, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + ], + + range: [7, 16], + loc: { + start: { column: 7, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + + range: [0, 19], + loc: { + start: { column: 0, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 20], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..6cf2d50be8c4 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,86 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-decl-const-modifier TSESTree - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "class", + + range: [0, 5], + loc: { + start: { column: 0, line: 1 }, + end: { column: 5, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "A", + + range: [6, 7], + loc: { + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [8, 13], + loc: { + start: { column: 8, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [15, 16], + loc: { + start: { column: 15, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..62e2ab204551 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier/snapshots/3-Babel-AST.shot @@ -0,0 +1,68 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-decl-const-modifier Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + ClassDeclaration { + type: "ClassDeclaration", + body: ClassBody { + type: "ClassBody", + body: [], + + range: [17, 19], + loc: { + start: { column: 17, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + id: Identifier { + type: "Identifier", + name: "A", + + range: [6, 7], + loc: { + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + superClass: null, + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + name: "T", + + range: [8, 15], + loc: { + start: { column: 8, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + ], + + range: [7, 16], + loc: { + start: { column: 7, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + + range: [0, 19], + loc: { + start: { column: 0, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 20], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..93f61362d8f6 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,86 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-decl-const-modifier Babel - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "class", + + range: [0, 5], + loc: { + start: { column: 0, line: 1 }, + end: { column: 5, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "A", + + range: [6, 7], + loc: { + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [8, 13], + loc: { + start: { column: 8, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [15, 16], + loc: { + start: { column: 15, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..27b0483a19b8 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,84 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-decl-const-modifier AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ClassDeclaration { + type: 'ClassDeclaration', + body: ClassBody { + type: 'ClassBody', + body: Array [], + + range: [17, 19], + loc: { + start: { column: 17, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + id: Identifier { + type: 'Identifier', + name: 'A', + + range: [6, 7], + loc: { + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + superClass: null, + typeParameters: TSTypeParameterDeclaration { + type: 'TSTypeParameterDeclaration', + params: Array [ + TSTypeParameter { + type: 'TSTypeParameter', + const: true, +- in: false, +- name: Identifier { +- type: 'Identifier', +- name: 'T', +- +- range: [14, 15], +- loc: { +- start: { column: 14, line: 1 }, +- end: { column: 15, line: 1 }, +- }, +- }, +- out: false, ++ name: 'T', + + range: [8, 15], + loc: { + start: { column: 8, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + ], + + range: [7, 16], + loc: { + start: { column: 7, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + + range: [0, 19], + loc: { + start: { column: 0, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 20], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..f520c9957e15 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-const-modifier/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-decl-const-modifier AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-in-const-modifier/fixture.ts b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-in-const-modifier/fixture.ts new file mode 100644 index 000000000000..046c0ebea359 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-in-const-modifier/fixture.ts @@ -0,0 +1 @@ +class D {} diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-in-const-modifier/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-in-const-modifier/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..132ed8b6e376 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-in-const-modifier/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,79 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-decl-in-const-modifier TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + ClassDeclaration { + type: "ClassDeclaration", + body: ClassBody { + type: "ClassBody", + body: [], + + range: [20, 22], + loc: { + start: { column: 20, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + id: Identifier { + type: "Identifier", + name: "D", + + range: [6, 7], + loc: { + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + superClass: null, + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + in: true, + name: Identifier { + type: "Identifier", + name: "T", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + out: false, + + range: [8, 18], + loc: { + start: { column: 8, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], + + range: [7, 19], + loc: { + start: { column: 7, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [0, 22], + loc: { + start: { column: 0, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 23], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-in-const-modifier/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-in-const-modifier/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..c7afa0857168 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-in-const-modifier/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,96 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-decl-in-const-modifier TSESTree - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "class", + + range: [0, 5], + loc: { + start: { column: 0, line: 1 }, + end: { column: 5, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "D", + + range: [6, 7], + loc: { + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "in", + + range: [8, 10], + loc: { + start: { column: 8, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [11, 16], + loc: { + start: { column: 11, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-in-const-modifier/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-in-const-modifier/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..7a025f422201 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-in-const-modifier/snapshots/3-Babel-AST.shot @@ -0,0 +1,69 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-decl-in-const-modifier Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + ClassDeclaration { + type: "ClassDeclaration", + body: ClassBody { + type: "ClassBody", + body: [], + + range: [20, 22], + loc: { + start: { column: 20, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + id: Identifier { + type: "Identifier", + name: "D", + + range: [6, 7], + loc: { + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + superClass: null, + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + in: true, + name: "T", + + range: [8, 18], + loc: { + start: { column: 8, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], + + range: [7, 19], + loc: { + start: { column: 7, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [0, 22], + loc: { + start: { column: 0, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 23], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-in-const-modifier/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-in-const-modifier/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..93b1ee573afd --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-in-const-modifier/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,96 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-decl-in-const-modifier Babel - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "class", + + range: [0, 5], + loc: { + start: { column: 0, line: 1 }, + end: { column: 5, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "D", + + range: [6, 7], + loc: { + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "in", + + range: [8, 10], + loc: { + start: { column: 8, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [11, 16], + loc: { + start: { column: 11, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-in-const-modifier/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-in-const-modifier/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..f6ed4a29e37c --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-in-const-modifier/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,84 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-decl-in-const-modifier AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ClassDeclaration { + type: 'ClassDeclaration', + body: ClassBody { + type: 'ClassBody', + body: Array [], + + range: [20, 22], + loc: { + start: { column: 20, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + id: Identifier { + type: 'Identifier', + name: 'D', + + range: [6, 7], + loc: { + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + superClass: null, + typeParameters: TSTypeParameterDeclaration { + type: 'TSTypeParameterDeclaration', + params: Array [ + TSTypeParameter { + type: 'TSTypeParameter', + const: true, + in: true, +- name: Identifier { +- type: 'Identifier', +- name: 'T', +- +- range: [17, 18], +- loc: { +- start: { column: 17, line: 1 }, +- end: { column: 18, line: 1 }, +- }, +- }, +- out: false, ++ name: 'T', + + range: [8, 18], + loc: { + start: { column: 8, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], + + range: [7, 19], + loc: { + start: { column: 7, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [0, 22], + loc: { + start: { column: 0, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 23], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-in-const-modifier/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-in-const-modifier/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..00026112623a --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-in-const-modifier/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-decl-in-const-modifier AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-in-modifier/fixture.ts b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-in-modifier/fixture.ts new file mode 100644 index 000000000000..7a02fba43020 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-in-modifier/fixture.ts @@ -0,0 +1 @@ +(class {}); diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-in-modifier/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-in-modifier/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..2ae40e1f3f44 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-in-modifier/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,79 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-expr-const-in-modifier TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + ExpressionStatement { + type: "ExpressionStatement", + expression: ClassExpression { + type: "ClassExpression", + body: ClassBody { + type: "ClassBody", + body: [], + + range: [20, 22], + loc: { + start: { column: 20, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + id: null, + superClass: null, + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + in: true, + name: Identifier { + type: "Identifier", + name: "T", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + out: false, + + range: [8, 18], + loc: { + start: { column: 8, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], + + range: [7, 19], + loc: { + start: { column: 7, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [1, 22], + loc: { + start: { column: 1, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + + range: [0, 24], + loc: { + start: { column: 0, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 25], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-in-modifier/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-in-modifier/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..b72435e44963 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-in-modifier/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,116 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-expr-const-in-modifier TSESTree - Tokens 1`] = ` +[ + Punctuator { + type: "Punctuator", + value: "(", + + range: [0, 1], + loc: { + start: { column: 0, line: 1 }, + end: { column: 1, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "class", + + range: [1, 6], + loc: { + start: { column: 1, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [8, 13], + loc: { + start: { column: 8, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "in", + + range: [14, 16], + loc: { + start: { column: 14, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [23, 24], + loc: { + start: { column: 23, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-in-modifier/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-in-modifier/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..b91328e335ff --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-in-modifier/snapshots/3-Babel-AST.shot @@ -0,0 +1,69 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-expr-const-in-modifier Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + ExpressionStatement { + type: "ExpressionStatement", + expression: ClassExpression { + type: "ClassExpression", + body: ClassBody { + type: "ClassBody", + body: [], + + range: [20, 22], + loc: { + start: { column: 20, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + id: null, + superClass: null, + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + in: true, + name: "T", + + range: [8, 18], + loc: { + start: { column: 8, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], + + range: [7, 19], + loc: { + start: { column: 7, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [1, 22], + loc: { + start: { column: 1, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + + range: [0, 24], + loc: { + start: { column: 0, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 25], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-in-modifier/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-in-modifier/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..2bb229553460 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-in-modifier/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,116 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-expr-const-in-modifier Babel - Tokens 1`] = ` +[ + Punctuator { + type: "Punctuator", + value: "(", + + range: [0, 1], + loc: { + start: { column: 0, line: 1 }, + end: { column: 1, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "class", + + range: [1, 6], + loc: { + start: { column: 1, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [8, 13], + loc: { + start: { column: 8, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "in", + + range: [14, 16], + loc: { + start: { column: 14, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [23, 24], + loc: { + start: { column: 23, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-in-modifier/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-in-modifier/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..d212dd9308fd --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-in-modifier/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,84 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-expr-const-in-modifier AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExpressionStatement { + type: 'ExpressionStatement', + expression: ClassExpression { + type: 'ClassExpression', + body: ClassBody { + type: 'ClassBody', + body: Array [], + + range: [20, 22], + loc: { + start: { column: 20, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + id: null, + superClass: null, + typeParameters: TSTypeParameterDeclaration { + type: 'TSTypeParameterDeclaration', + params: Array [ + TSTypeParameter { + type: 'TSTypeParameter', + const: true, + in: true, +- name: Identifier { +- type: 'Identifier', +- name: 'T', +- +- range: [17, 18], +- loc: { +- start: { column: 17, line: 1 }, +- end: { column: 18, line: 1 }, +- }, +- }, +- out: false, ++ name: 'T', + + range: [8, 18], + loc: { + start: { column: 8, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], + + range: [7, 19], + loc: { + start: { column: 7, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [1, 22], + loc: { + start: { column: 1, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + + range: [0, 24], + loc: { + start: { column: 0, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 25], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-in-modifier/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-in-modifier/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..fd592298c031 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-in-modifier/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-expr-const-in-modifier AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/fixture.ts b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/fixture.ts new file mode 100644 index 000000000000..cd6ecc95bec3 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/fixture.ts @@ -0,0 +1 @@ +(class {}); diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..9c4dee68d2bc --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,98 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-extends TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + ExpressionStatement { + type: "ExpressionStatement", + expression: ClassExpression { + type: "ClassExpression", + body: ClassBody { + type: "ClassBody", + body: [], + + range: [27, 29], + loc: { + start: { column: 27, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + id: null, + superClass: null, + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + constraint: TSTypeReference { + type: "TSTypeReference", + typeName: Identifier { + type: "Identifier", + name: "U", + + range: [24, 25], + loc: { + start: { column: 24, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + + range: [24, 25], + loc: { + start: { column: 24, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + in: false, + name: Identifier { + type: "Identifier", + name: "T", + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + out: false, + + range: [8, 25], + loc: { + start: { column: 8, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + ], + + range: [7, 26], + loc: { + start: { column: 7, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + + range: [1, 29], + loc: { + start: { column: 1, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + + range: [0, 31], + loc: { + start: { column: 0, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 32], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..9cd407c13d33 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,126 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-extends TSESTree - Tokens 1`] = ` +[ + Punctuator { + type: "Punctuator", + value: "(", + + range: [0, 1], + loc: { + start: { column: 0, line: 1 }, + end: { column: 1, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "class", + + range: [1, 6], + loc: { + start: { column: 1, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [8, 13], + loc: { + start: { column: 8, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "extends", + + range: [16, 23], + loc: { + start: { column: 16, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "U", + + range: [24, 25], + loc: { + start: { column: 24, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [25, 26], + loc: { + start: { column: 25, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [27, 28], + loc: { + start: { column: 27, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [28, 29], + loc: { + start: { column: 28, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [29, 30], + loc: { + start: { column: 29, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [30, 31], + loc: { + start: { column: 30, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..6f6690c12313 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/snapshots/3-Babel-AST.shot @@ -0,0 +1,87 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-extends Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + ExpressionStatement { + type: "ExpressionStatement", + expression: ClassExpression { + type: "ClassExpression", + body: ClassBody { + type: "ClassBody", + body: [], + + range: [27, 29], + loc: { + start: { column: 27, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + id: null, + superClass: null, + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + constraint: TSTypeReference { + type: "TSTypeReference", + typeName: Identifier { + type: "Identifier", + name: "U", + + range: [24, 25], + loc: { + start: { column: 24, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + + range: [24, 25], + loc: { + start: { column: 24, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + name: "T", + + range: [8, 25], + loc: { + start: { column: 8, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + ], + + range: [7, 26], + loc: { + start: { column: 7, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + + range: [1, 29], + loc: { + start: { column: 1, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + + range: [0, 31], + loc: { + start: { column: 0, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 32], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..8878acf69126 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,126 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-extends Babel - Tokens 1`] = ` +[ + Punctuator { + type: "Punctuator", + value: "(", + + range: [0, 1], + loc: { + start: { column: 0, line: 1 }, + end: { column: 1, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "class", + + range: [1, 6], + loc: { + start: { column: 1, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [8, 13], + loc: { + start: { column: 8, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "extends", + + range: [16, 23], + loc: { + start: { column: 16, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "U", + + range: [24, 25], + loc: { + start: { column: 24, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [25, 26], + loc: { + start: { column: 25, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [27, 28], + loc: { + start: { column: 27, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [28, 29], + loc: { + start: { column: 28, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [29, 30], + loc: { + start: { column: 29, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [30, 31], + loc: { + start: { column: 30, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..3d17a9cdd495 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,103 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-extends AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExpressionStatement { + type: 'ExpressionStatement', + expression: ClassExpression { + type: 'ClassExpression', + body: ClassBody { + type: 'ClassBody', + body: Array [], + + range: [27, 29], + loc: { + start: { column: 27, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + id: null, + superClass: null, + typeParameters: TSTypeParameterDeclaration { + type: 'TSTypeParameterDeclaration', + params: Array [ + TSTypeParameter { + type: 'TSTypeParameter', + const: true, + constraint: TSTypeReference { + type: 'TSTypeReference', + typeName: Identifier { + type: 'Identifier', + name: 'U', + + range: [24, 25], + loc: { + start: { column: 24, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + + range: [24, 25], + loc: { + start: { column: 24, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, +- in: false, +- name: Identifier { +- type: 'Identifier', +- name: 'T', +- +- range: [14, 15], +- loc: { +- start: { column: 14, line: 1 }, +- end: { column: 15, line: 1 }, +- }, +- }, +- out: false, ++ name: 'T', + + range: [8, 25], + loc: { + start: { column: 8, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + ], + + range: [7, 26], + loc: { + start: { column: 7, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + + range: [1, 29], + loc: { + start: { column: 1, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + + range: [0, 31], + loc: { + start: { column: 0, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 32], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..958efeb49a12 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-extends AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/fixture.ts b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/fixture.ts new file mode 100644 index 000000000000..a0fd2dc36d9e --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/fixture.ts @@ -0,0 +1 @@ +(class {}); diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..183080d0ea2a --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,101 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-multiple TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + ExpressionStatement { + type: "ExpressionStatement", + expression: ClassExpression { + type: "ClassExpression", + body: ClassBody { + type: "ClassBody", + body: [], + + range: [20, 22], + loc: { + start: { column: 20, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + id: null, + superClass: null, + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: false, + in: false, + name: Identifier { + type: "Identifier", + name: "T", + + range: [8, 9], + loc: { + start: { column: 8, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + out: false, + + range: [8, 9], + loc: { + start: { column: 8, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + TSTypeParameter { + type: "TSTypeParameter", + const: true, + in: false, + name: Identifier { + type: "Identifier", + name: "U", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + out: false, + + range: [11, 18], + loc: { + start: { column: 11, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], + + range: [7, 19], + loc: { + start: { column: 7, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [1, 22], + loc: { + start: { column: 1, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + + range: [0, 24], + loc: { + start: { column: 0, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 25], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..825375374759 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,126 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-multiple TSESTree - Tokens 1`] = ` +[ + Punctuator { + type: "Punctuator", + value: "(", + + range: [0, 1], + loc: { + start: { column: 0, line: 1 }, + end: { column: 1, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "class", + + range: [1, 6], + loc: { + start: { column: 1, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [8, 9], + loc: { + start: { column: 8, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ",", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [11, 16], + loc: { + start: { column: 11, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "U", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [23, 24], + loc: { + start: { column: 23, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..70dec76e302f --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/snapshots/3-Babel-AST.shot @@ -0,0 +1,78 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-multiple Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + ExpressionStatement { + type: "ExpressionStatement", + expression: ClassExpression { + type: "ClassExpression", + body: ClassBody { + type: "ClassBody", + body: [], + + range: [20, 22], + loc: { + start: { column: 20, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + id: null, + superClass: null, + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + name: "T", + + range: [8, 9], + loc: { + start: { column: 8, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + TSTypeParameter { + type: "TSTypeParameter", + const: true, + name: "U", + + range: [11, 18], + loc: { + start: { column: 11, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], + + range: [7, 19], + loc: { + start: { column: 7, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [1, 22], + loc: { + start: { column: 1, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + + range: [0, 24], + loc: { + start: { column: 0, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 25], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..dd07dc882c06 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,126 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-multiple Babel - Tokens 1`] = ` +[ + Punctuator { + type: "Punctuator", + value: "(", + + range: [0, 1], + loc: { + start: { column: 0, line: 1 }, + end: { column: 1, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "class", + + range: [1, 6], + loc: { + start: { column: 1, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [8, 9], + loc: { + start: { column: 8, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ",", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [11, 16], + loc: { + start: { column: 11, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "U", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [23, 24], + loc: { + start: { column: 23, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..b6d1dee5b192 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,107 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-multiple AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExpressionStatement { + type: 'ExpressionStatement', + expression: ClassExpression { + type: 'ClassExpression', + body: ClassBody { + type: 'ClassBody', + body: Array [], + + range: [20, 22], + loc: { + start: { column: 20, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + id: null, + superClass: null, + typeParameters: TSTypeParameterDeclaration { + type: 'TSTypeParameterDeclaration', + params: Array [ + TSTypeParameter { + type: 'TSTypeParameter', +- const: false, +- in: false, +- name: Identifier { +- type: 'Identifier', +- name: 'T', ++ name: 'T', + +- range: [8, 9], +- loc: { +- start: { column: 8, line: 1 }, +- end: { column: 9, line: 1 }, +- }, +- }, +- out: false, +- + range: [8, 9], + loc: { + start: { column: 8, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + TSTypeParameter { + type: 'TSTypeParameter', + const: true, +- in: false, +- name: Identifier { +- type: 'Identifier', +- name: 'U', +- +- range: [17, 18], +- loc: { +- start: { column: 17, line: 1 }, +- end: { column: 18, line: 1 }, +- }, +- }, +- out: false, ++ name: 'U', + + range: [11, 18], + loc: { + start: { column: 11, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], + + range: [7, 19], + loc: { + start: { column: 7, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [1, 22], + loc: { + start: { column: 1, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + + range: [0, 24], + loc: { + start: { column: 0, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 25], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..64789f76ca48 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-multiple AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier/fixture.ts b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier/fixture.ts new file mode 100644 index 000000000000..e7c0e459e69f --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier/fixture.ts @@ -0,0 +1 @@ +(class {}); diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..97670b76950a --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,79 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + ExpressionStatement { + type: "ExpressionStatement", + expression: ClassExpression { + type: "ClassExpression", + body: ClassBody { + type: "ClassBody", + body: [], + + range: [17, 19], + loc: { + start: { column: 17, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + id: null, + superClass: null, + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + in: false, + name: Identifier { + type: "Identifier", + name: "T", + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + out: false, + + range: [8, 15], + loc: { + start: { column: 8, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + ], + + range: [7, 16], + loc: { + start: { column: 7, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + + range: [1, 19], + loc: { + start: { column: 1, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [0, 21], + loc: { + start: { column: 0, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 22], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..a599070370a6 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,106 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier TSESTree - Tokens 1`] = ` +[ + Punctuator { + type: "Punctuator", + value: "(", + + range: [0, 1], + loc: { + start: { column: 0, line: 1 }, + end: { column: 1, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "class", + + range: [1, 6], + loc: { + start: { column: 1, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [8, 13], + loc: { + start: { column: 8, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [15, 16], + loc: { + start: { column: 15, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [19, 20], + loc: { + start: { column: 19, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..592ea11dcc9a --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier/snapshots/3-Babel-AST.shot @@ -0,0 +1,68 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + ExpressionStatement { + type: "ExpressionStatement", + expression: ClassExpression { + type: "ClassExpression", + body: ClassBody { + type: "ClassBody", + body: [], + + range: [17, 19], + loc: { + start: { column: 17, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + id: null, + superClass: null, + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + name: "T", + + range: [8, 15], + loc: { + start: { column: 8, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + ], + + range: [7, 16], + loc: { + start: { column: 7, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + + range: [1, 19], + loc: { + start: { column: 1, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [0, 21], + loc: { + start: { column: 0, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 22], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..0e54bfc1447d --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,106 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier Babel - Tokens 1`] = ` +[ + Punctuator { + type: "Punctuator", + value: "(", + + range: [0, 1], + loc: { + start: { column: 0, line: 1 }, + end: { column: 1, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "class", + + range: [1, 6], + loc: { + start: { column: 1, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [8, 13], + loc: { + start: { column: 8, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [15, 16], + loc: { + start: { column: 15, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [19, 20], + loc: { + start: { column: 19, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..2363475fdb49 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,84 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExpressionStatement { + type: 'ExpressionStatement', + expression: ClassExpression { + type: 'ClassExpression', + body: ClassBody { + type: 'ClassBody', + body: Array [], + + range: [17, 19], + loc: { + start: { column: 17, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + id: null, + superClass: null, + typeParameters: TSTypeParameterDeclaration { + type: 'TSTypeParameterDeclaration', + params: Array [ + TSTypeParameter { + type: 'TSTypeParameter', + const: true, +- in: false, +- name: Identifier { +- type: 'Identifier', +- name: 'T', +- +- range: [14, 15], +- loc: { +- start: { column: 14, line: 1 }, +- end: { column: 15, line: 1 }, +- }, +- }, +- out: false, ++ name: 'T', + + range: [8, 15], + loc: { + start: { column: 8, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + ], + + range: [7, 16], + loc: { + start: { column: 7, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + + range: [1, 19], + loc: { + start: { column: 1, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [0, 21], + loc: { + start: { column: 0, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 22], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..e0ae36e4faad --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-in-const-modifier/fixture.ts b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-in-const-modifier/fixture.ts new file mode 100644 index 000000000000..eb21599bf3b2 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-in-const-modifier/fixture.ts @@ -0,0 +1 @@ +(class {}); diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-in-const-modifier/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-in-const-modifier/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..fa67e5d5be07 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-in-const-modifier/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,79 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-expr-in-const-modifier TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + ExpressionStatement { + type: "ExpressionStatement", + expression: ClassExpression { + type: "ClassExpression", + body: ClassBody { + type: "ClassBody", + body: [], + + range: [20, 22], + loc: { + start: { column: 20, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + id: null, + superClass: null, + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + in: true, + name: Identifier { + type: "Identifier", + name: "T", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + out: false, + + range: [8, 18], + loc: { + start: { column: 8, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], + + range: [7, 19], + loc: { + start: { column: 7, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [1, 22], + loc: { + start: { column: 1, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + + range: [0, 24], + loc: { + start: { column: 0, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 25], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-in-const-modifier/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-in-const-modifier/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..1046c2c28015 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-in-const-modifier/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,116 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-expr-in-const-modifier TSESTree - Tokens 1`] = ` +[ + Punctuator { + type: "Punctuator", + value: "(", + + range: [0, 1], + loc: { + start: { column: 0, line: 1 }, + end: { column: 1, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "class", + + range: [1, 6], + loc: { + start: { column: 1, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "in", + + range: [8, 10], + loc: { + start: { column: 8, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [11, 16], + loc: { + start: { column: 11, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [23, 24], + loc: { + start: { column: 23, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-in-const-modifier/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-in-const-modifier/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..3229c6fab61b --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-in-const-modifier/snapshots/3-Babel-AST.shot @@ -0,0 +1,69 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-expr-in-const-modifier Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + ExpressionStatement { + type: "ExpressionStatement", + expression: ClassExpression { + type: "ClassExpression", + body: ClassBody { + type: "ClassBody", + body: [], + + range: [20, 22], + loc: { + start: { column: 20, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + id: null, + superClass: null, + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + in: true, + name: "T", + + range: [8, 18], + loc: { + start: { column: 8, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], + + range: [7, 19], + loc: { + start: { column: 7, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [1, 22], + loc: { + start: { column: 1, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + + range: [0, 24], + loc: { + start: { column: 0, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 25], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-in-const-modifier/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-in-const-modifier/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..3cdb8cd44bc7 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-in-const-modifier/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,116 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-expr-in-const-modifier Babel - Tokens 1`] = ` +[ + Punctuator { + type: "Punctuator", + value: "(", + + range: [0, 1], + loc: { + start: { column: 0, line: 1 }, + end: { column: 1, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "class", + + range: [1, 6], + loc: { + start: { column: 1, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "in", + + range: [8, 10], + loc: { + start: { column: 8, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [11, 16], + loc: { + start: { column: 11, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [23, 24], + loc: { + start: { column: 23, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-in-const-modifier/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-in-const-modifier/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..f3f3121a24c6 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-in-const-modifier/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,84 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-expr-in-const-modifier AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExpressionStatement { + type: 'ExpressionStatement', + expression: ClassExpression { + type: 'ClassExpression', + body: ClassBody { + type: 'ClassBody', + body: Array [], + + range: [20, 22], + loc: { + start: { column: 20, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + id: null, + superClass: null, + typeParameters: TSTypeParameterDeclaration { + type: 'TSTypeParameterDeclaration', + params: Array [ + TSTypeParameter { + type: 'TSTypeParameter', + const: true, + in: true, +- name: Identifier { +- type: 'Identifier', +- name: 'T', +- +- range: [17, 18], +- loc: { +- start: { column: 17, line: 1 }, +- end: { column: 18, line: 1 }, +- }, +- }, +- out: false, ++ name: 'T', + + range: [8, 18], + loc: { + start: { column: 8, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], + + range: [7, 19], + loc: { + start: { column: 7, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [1, 22], + loc: { + start: { column: 1, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + + range: [0, 24], + loc: { + start: { column: 0, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 25], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-in-const-modifier/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-in-const-modifier/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..f56069113d35 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-in-const-modifier/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter class-expr-in-const-modifier AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/declare-func-const-modifier/fixture.ts b/packages/ast-spec/src/special/TSTypeParameter/fixtures/declare-func-const-modifier/fixture.ts new file mode 100644 index 000000000000..64a3bb417559 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/declare-func-const-modifier/fixture.ts @@ -0,0 +1 @@ +declare function d(); diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/declare-func-const-modifier/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/declare-func-const-modifier/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..11f14029939d --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/declare-func-const-modifier/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,73 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter declare-func-const-modifier TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + TSDeclareFunction { + type: "TSDeclareFunction", + async: false, + declare: true, + expression: false, + generator: false, + id: Identifier { + type: "Identifier", + name: "d", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + params: [], + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + in: false, + name: Identifier { + type: "Identifier", + name: "T", + + range: [25, 26], + loc: { + start: { column: 25, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + out: false, + + range: [19, 26], + loc: { + start: { column: 19, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + ], + + range: [18, 27], + loc: { + start: { column: 18, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + + range: [0, 30], + loc: { + start: { column: 0, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 31], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/declare-func-const-modifier/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/declare-func-const-modifier/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..668c91cd46ac --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/declare-func-const-modifier/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,106 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter declare-func-const-modifier TSESTree - Tokens 1`] = ` +[ + Identifier { + type: "Identifier", + value: "declare", + + range: [0, 7], + loc: { + start: { column: 0, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "function", + + range: [8, 16], + loc: { + start: { column: 8, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "d", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [19, 24], + loc: { + start: { column: 19, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [25, 26], + loc: { + start: { column: 25, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [26, 27], + loc: { + start: { column: 26, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "(", + + range: [27, 28], + loc: { + start: { column: 27, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [28, 29], + loc: { + start: { column: 28, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [29, 30], + loc: { + start: { column: 29, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/declare-func-const-modifier/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/declare-func-const-modifier/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..c32422990f46 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/declare-func-const-modifier/snapshots/3-Babel-AST.shot @@ -0,0 +1,62 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter declare-func-const-modifier Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + TSDeclareFunction { + type: "TSDeclareFunction", + async: false, + declare: true, + expression: false, + generator: false, + id: Identifier { + type: "Identifier", + name: "d", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + params: [], + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + name: "T", + + range: [19, 26], + loc: { + start: { column: 19, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + ], + + range: [18, 27], + loc: { + start: { column: 18, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + + range: [0, 30], + loc: { + start: { column: 0, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 31], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/declare-func-const-modifier/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/declare-func-const-modifier/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..a0bbcc39b1c0 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/declare-func-const-modifier/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,106 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter declare-func-const-modifier Babel - Tokens 1`] = ` +[ + Identifier { + type: "Identifier", + value: "declare", + + range: [0, 7], + loc: { + start: { column: 0, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "function", + + range: [8, 16], + loc: { + start: { column: 8, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "d", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [19, 24], + loc: { + start: { column: 19, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [25, 26], + loc: { + start: { column: 25, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [26, 27], + loc: { + start: { column: 26, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "(", + + range: [27, 28], + loc: { + start: { column: 27, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [28, 29], + loc: { + start: { column: 28, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [29, 30], + loc: { + start: { column: 29, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/declare-func-const-modifier/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/declare-func-const-modifier/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..15e908f2a614 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/declare-func-const-modifier/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,78 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter declare-func-const-modifier AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSDeclareFunction { + type: 'TSDeclareFunction', + async: false, + declare: true, + expression: false, + generator: false, + id: Identifier { + type: 'Identifier', + name: 'd', + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + params: Array [], + typeParameters: TSTypeParameterDeclaration { + type: 'TSTypeParameterDeclaration', + params: Array [ + TSTypeParameter { + type: 'TSTypeParameter', + const: true, +- in: false, +- name: Identifier { +- type: 'Identifier', +- name: 'T', +- +- range: [25, 26], +- loc: { +- start: { column: 25, line: 1 }, +- end: { column: 26, line: 1 }, +- }, +- }, +- out: false, ++ name: 'T', + + range: [19, 26], + loc: { + start: { column: 19, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + ], + + range: [18, 27], + loc: { + start: { column: 18, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + + range: [0, 30], + loc: { + start: { column: 0, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 31], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/declare-func-const-modifier/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/declare-func-const-modifier/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..ae8d720d1e02 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/declare-func-const-modifier/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter declare-func-const-modifier AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-extends/fixture.ts b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-extends/fixture.ts new file mode 100644 index 000000000000..4890237a6c9c --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-extends/fixture.ts @@ -0,0 +1 @@ +function b() {} diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-extends/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-extends/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..5572b5335c89 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-extends/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,101 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter func-decl-const-modifier-extends TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + FunctionDeclaration { + type: "FunctionDeclaration", + async: false, + body: BlockStatement { + type: "BlockStatement", + body: [], + + range: [32, 34], + loc: { + start: { column: 32, line: 1 }, + end: { column: 34, line: 1 }, + }, + }, + expression: false, + generator: false, + id: Identifier { + type: "Identifier", + name: "b", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + params: [], + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + constraint: TSTypeReference { + type: "TSTypeReference", + typeName: Identifier { + type: "Identifier", + name: "U", + + range: [27, 28], + loc: { + start: { column: 27, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + + range: [27, 28], + loc: { + start: { column: 27, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + in: false, + name: Identifier { + type: "Identifier", + name: "T", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + out: false, + + range: [11, 28], + loc: { + start: { column: 11, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + ], + + range: [10, 29], + loc: { + start: { column: 10, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + + range: [0, 34], + loc: { + start: { column: 0, line: 1 }, + end: { column: 34, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 35], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-extends/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-extends/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..cb52a63e8936 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-extends/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,126 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter func-decl-const-modifier-extends TSESTree - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "function", + + range: [0, 8], + loc: { + start: { column: 0, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "b", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [11, 16], + loc: { + start: { column: 11, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "extends", + + range: [19, 26], + loc: { + start: { column: 19, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "U", + + range: [27, 28], + loc: { + start: { column: 27, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [28, 29], + loc: { + start: { column: 28, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "(", + + range: [29, 30], + loc: { + start: { column: 29, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [30, 31], + loc: { + start: { column: 30, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [32, 33], + loc: { + start: { column: 32, line: 1 }, + end: { column: 33, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [33, 34], + loc: { + start: { column: 33, line: 1 }, + end: { column: 34, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-extends/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-extends/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..9e78b8b5283b --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-extends/snapshots/3-Babel-AST.shot @@ -0,0 +1,90 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter func-decl-const-modifier-extends Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + FunctionDeclaration { + type: "FunctionDeclaration", + async: false, + body: BlockStatement { + type: "BlockStatement", + body: [], + + range: [32, 34], + loc: { + start: { column: 32, line: 1 }, + end: { column: 34, line: 1 }, + }, + }, + expression: false, + generator: false, + id: Identifier { + type: "Identifier", + name: "b", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + params: [], + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + constraint: TSTypeReference { + type: "TSTypeReference", + typeName: Identifier { + type: "Identifier", + name: "U", + + range: [27, 28], + loc: { + start: { column: 27, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + + range: [27, 28], + loc: { + start: { column: 27, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + name: "T", + + range: [11, 28], + loc: { + start: { column: 11, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + ], + + range: [10, 29], + loc: { + start: { column: 10, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + + range: [0, 34], + loc: { + start: { column: 0, line: 1 }, + end: { column: 34, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 35], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-extends/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-extends/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..51e81f4f277a --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-extends/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,126 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter func-decl-const-modifier-extends Babel - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "function", + + range: [0, 8], + loc: { + start: { column: 0, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "b", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [11, 16], + loc: { + start: { column: 11, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "extends", + + range: [19, 26], + loc: { + start: { column: 19, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "U", + + range: [27, 28], + loc: { + start: { column: 27, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [28, 29], + loc: { + start: { column: 28, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "(", + + range: [29, 30], + loc: { + start: { column: 29, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [30, 31], + loc: { + start: { column: 30, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [32, 33], + loc: { + start: { column: 32, line: 1 }, + end: { column: 33, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [33, 34], + loc: { + start: { column: 33, line: 1 }, + end: { column: 34, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-extends/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-extends/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..737f0d3abc77 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-extends/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,106 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter func-decl-const-modifier-extends AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + FunctionDeclaration { + type: 'FunctionDeclaration', + async: false, + body: BlockStatement { + type: 'BlockStatement', + body: Array [], + + range: [32, 34], + loc: { + start: { column: 32, line: 1 }, + end: { column: 34, line: 1 }, + }, + }, + expression: false, + generator: false, + id: Identifier { + type: 'Identifier', + name: 'b', + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + params: Array [], + typeParameters: TSTypeParameterDeclaration { + type: 'TSTypeParameterDeclaration', + params: Array [ + TSTypeParameter { + type: 'TSTypeParameter', + const: true, + constraint: TSTypeReference { + type: 'TSTypeReference', + typeName: Identifier { + type: 'Identifier', + name: 'U', + + range: [27, 28], + loc: { + start: { column: 27, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + + range: [27, 28], + loc: { + start: { column: 27, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, +- in: false, +- name: Identifier { +- type: 'Identifier', +- name: 'T', +- +- range: [17, 18], +- loc: { +- start: { column: 17, line: 1 }, +- end: { column: 18, line: 1 }, +- }, +- }, +- out: false, ++ name: 'T', + + range: [11, 28], + loc: { + start: { column: 11, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + ], + + range: [10, 29], + loc: { + start: { column: 10, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + + range: [0, 34], + loc: { + start: { column: 0, line: 1 }, + end: { column: 34, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 35], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-extends/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-extends/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..fa7630102222 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-extends/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter func-decl-const-modifier-extends AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-multiple/fixture.ts b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-multiple/fixture.ts new file mode 100644 index 000000000000..210ce695b011 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-multiple/fixture.ts @@ -0,0 +1 @@ +function c() {} diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-multiple/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-multiple/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..71d3cd47f020 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-multiple/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,104 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter func-decl-const-modifier-multiple TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + FunctionDeclaration { + type: "FunctionDeclaration", + async: false, + body: BlockStatement { + type: "BlockStatement", + body: [], + + range: [25, 27], + loc: { + start: { column: 25, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + expression: false, + generator: false, + id: Identifier { + type: "Identifier", + name: "c", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + params: [], + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: false, + in: false, + name: Identifier { + type: "Identifier", + name: "T", + + range: [11, 12], + loc: { + start: { column: 11, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + out: false, + + range: [11, 12], + loc: { + start: { column: 11, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + TSTypeParameter { + type: "TSTypeParameter", + const: true, + in: false, + name: Identifier { + type: "Identifier", + name: "U", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + out: false, + + range: [14, 21], + loc: { + start: { column: 14, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + ], + + range: [10, 22], + loc: { + start: { column: 10, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + + range: [0, 27], + loc: { + start: { column: 0, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 28], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-multiple/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-multiple/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..acc82f658662 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-multiple/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,126 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter func-decl-const-modifier-multiple TSESTree - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "function", + + range: [0, 8], + loc: { + start: { column: 0, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "c", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [11, 12], + loc: { + start: { column: 11, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ",", + + range: [12, 13], + loc: { + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [14, 19], + loc: { + start: { column: 14, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "U", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "(", + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [23, 24], + loc: { + start: { column: 23, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [25, 26], + loc: { + start: { column: 25, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [26, 27], + loc: { + start: { column: 26, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-multiple/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-multiple/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..ec86c4a37258 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-multiple/snapshots/3-Babel-AST.shot @@ -0,0 +1,81 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter func-decl-const-modifier-multiple Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + FunctionDeclaration { + type: "FunctionDeclaration", + async: false, + body: BlockStatement { + type: "BlockStatement", + body: [], + + range: [25, 27], + loc: { + start: { column: 25, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + expression: false, + generator: false, + id: Identifier { + type: "Identifier", + name: "c", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + params: [], + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + name: "T", + + range: [11, 12], + loc: { + start: { column: 11, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + TSTypeParameter { + type: "TSTypeParameter", + const: true, + name: "U", + + range: [14, 21], + loc: { + start: { column: 14, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + ], + + range: [10, 22], + loc: { + start: { column: 10, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + + range: [0, 27], + loc: { + start: { column: 0, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 28], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-multiple/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-multiple/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..d82c818d79d7 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-multiple/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,126 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter func-decl-const-modifier-multiple Babel - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "function", + + range: [0, 8], + loc: { + start: { column: 0, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "c", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [11, 12], + loc: { + start: { column: 11, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ",", + + range: [12, 13], + loc: { + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [14, 19], + loc: { + start: { column: 14, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "U", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "(", + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [23, 24], + loc: { + start: { column: 23, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [25, 26], + loc: { + start: { column: 25, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [26, 27], + loc: { + start: { column: 26, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-multiple/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-multiple/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..eba1adb09f47 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-multiple/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,110 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter func-decl-const-modifier-multiple AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + FunctionDeclaration { + type: 'FunctionDeclaration', + async: false, + body: BlockStatement { + type: 'BlockStatement', + body: Array [], + + range: [25, 27], + loc: { + start: { column: 25, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + expression: false, + generator: false, + id: Identifier { + type: 'Identifier', + name: 'c', + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + params: Array [], + typeParameters: TSTypeParameterDeclaration { + type: 'TSTypeParameterDeclaration', + params: Array [ + TSTypeParameter { + type: 'TSTypeParameter', +- const: false, +- in: false, +- name: Identifier { +- type: 'Identifier', +- name: 'T', ++ name: 'T', + +- range: [11, 12], +- loc: { +- start: { column: 11, line: 1 }, +- end: { column: 12, line: 1 }, +- }, +- }, +- out: false, +- + range: [11, 12], + loc: { + start: { column: 11, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + TSTypeParameter { + type: 'TSTypeParameter', + const: true, +- in: false, +- name: Identifier { +- type: 'Identifier', +- name: 'U', +- +- range: [20, 21], +- loc: { +- start: { column: 20, line: 1 }, +- end: { column: 21, line: 1 }, +- }, +- }, +- out: false, ++ name: 'U', + + range: [14, 21], + loc: { + start: { column: 14, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + ], + + range: [10, 22], + loc: { + start: { column: 10, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + + range: [0, 27], + loc: { + start: { column: 0, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 28], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-multiple/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-multiple/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..f694d6108398 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier-multiple/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter func-decl-const-modifier-multiple AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier/fixture.ts b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier/fixture.ts new file mode 100644 index 000000000000..ed2db338e0de --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier/fixture.ts @@ -0,0 +1 @@ +function a() {} diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..439f20b8d924 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,82 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter func-decl-const-modifier TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + FunctionDeclaration { + type: "FunctionDeclaration", + async: false, + body: BlockStatement { + type: "BlockStatement", + body: [], + + range: [22, 24], + loc: { + start: { column: 22, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + expression: false, + generator: false, + id: Identifier { + type: "Identifier", + name: "a", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + params: [], + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + in: false, + name: Identifier { + type: "Identifier", + name: "T", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + out: false, + + range: [11, 18], + loc: { + start: { column: 11, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], + + range: [10, 19], + loc: { + start: { column: 10, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [0, 24], + loc: { + start: { column: 0, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 25], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..747515023c47 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,106 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter func-decl-const-modifier TSESTree - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "function", + + range: [0, 8], + loc: { + start: { column: 0, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "a", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [11, 16], + loc: { + start: { column: 11, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "(", + + range: [19, 20], + loc: { + start: { column: 19, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [23, 24], + loc: { + start: { column: 23, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..225a278876a7 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier/snapshots/3-Babel-AST.shot @@ -0,0 +1,71 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter func-decl-const-modifier Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + FunctionDeclaration { + type: "FunctionDeclaration", + async: false, + body: BlockStatement { + type: "BlockStatement", + body: [], + + range: [22, 24], + loc: { + start: { column: 22, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + expression: false, + generator: false, + id: Identifier { + type: "Identifier", + name: "a", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + params: [], + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + name: "T", + + range: [11, 18], + loc: { + start: { column: 11, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], + + range: [10, 19], + loc: { + start: { column: 10, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [0, 24], + loc: { + start: { column: 0, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 25], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..adcc59676f88 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,106 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter func-decl-const-modifier Babel - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "function", + + range: [0, 8], + loc: { + start: { column: 0, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "a", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [11, 16], + loc: { + start: { column: 11, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "(", + + range: [19, 20], + loc: { + start: { column: 19, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [23, 24], + loc: { + start: { column: 23, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..71ee0e188f1b --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,87 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter func-decl-const-modifier AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + FunctionDeclaration { + type: 'FunctionDeclaration', + async: false, + body: BlockStatement { + type: 'BlockStatement', + body: Array [], + + range: [22, 24], + loc: { + start: { column: 22, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + expression: false, + generator: false, + id: Identifier { + type: 'Identifier', + name: 'a', + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + params: Array [], + typeParameters: TSTypeParameterDeclaration { + type: 'TSTypeParameterDeclaration', + params: Array [ + TSTypeParameter { + type: 'TSTypeParameter', + const: true, +- in: false, +- name: Identifier { +- type: 'Identifier', +- name: 'T', +- +- range: [17, 18], +- loc: { +- start: { column: 17, line: 1 }, +- end: { column: 18, line: 1 }, +- }, +- }, +- out: false, ++ name: 'T', + + range: [11, 18], + loc: { + start: { column: 11, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], + + range: [10, 19], + loc: { + start: { column: 10, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [0, 24], + loc: { + start: { column: 0, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 25], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..08d9c0b92f10 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-decl-const-modifier/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter func-decl-const-modifier AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-extends/fixture.ts b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-extends/fixture.ts new file mode 100644 index 000000000000..956e8a53eb9d --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-extends/fixture.ts @@ -0,0 +1 @@ +(function () {}); diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-extends/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-extends/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..4687caca30c2 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-extends/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,101 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter func-expr-const-modifier-extends TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + ExpressionStatement { + type: "ExpressionStatement", + expression: FunctionExpression { + type: "FunctionExpression", + async: false, + body: BlockStatement { + type: "BlockStatement", + body: [], + + range: [32, 34], + loc: { + start: { column: 32, line: 1 }, + end: { column: 34, line: 1 }, + }, + }, + expression: false, + generator: false, + id: null, + params: [], + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + constraint: TSTypeReference { + type: "TSTypeReference", + typeName: Identifier { + type: "Identifier", + name: "U", + + range: [27, 28], + loc: { + start: { column: 27, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + + range: [27, 28], + loc: { + start: { column: 27, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + in: false, + name: Identifier { + type: "Identifier", + name: "T", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + out: false, + + range: [11, 28], + loc: { + start: { column: 11, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + ], + + range: [10, 29], + loc: { + start: { column: 10, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + + range: [1, 34], + loc: { + start: { column: 1, line: 1 }, + end: { column: 34, line: 1 }, + }, + }, + + range: [0, 36], + loc: { + start: { column: 0, line: 1 }, + end: { column: 36, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 37], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-extends/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-extends/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..6a7532c61885 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-extends/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,146 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter func-expr-const-modifier-extends TSESTree - Tokens 1`] = ` +[ + Punctuator { + type: "Punctuator", + value: "(", + + range: [0, 1], + loc: { + start: { column: 0, line: 1 }, + end: { column: 1, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "function", + + range: [1, 9], + loc: { + start: { column: 1, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [11, 16], + loc: { + start: { column: 11, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "extends", + + range: [19, 26], + loc: { + start: { column: 19, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "U", + + range: [27, 28], + loc: { + start: { column: 27, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [28, 29], + loc: { + start: { column: 28, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "(", + + range: [29, 30], + loc: { + start: { column: 29, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [30, 31], + loc: { + start: { column: 30, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [32, 33], + loc: { + start: { column: 32, line: 1 }, + end: { column: 33, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [33, 34], + loc: { + start: { column: 33, line: 1 }, + end: { column: 34, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [34, 35], + loc: { + start: { column: 34, line: 1 }, + end: { column: 35, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [35, 36], + loc: { + start: { column: 35, line: 1 }, + end: { column: 36, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-extends/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-extends/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..2ca0b768f209 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-extends/snapshots/3-Babel-AST.shot @@ -0,0 +1,90 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter func-expr-const-modifier-extends Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + ExpressionStatement { + type: "ExpressionStatement", + expression: FunctionExpression { + type: "FunctionExpression", + async: false, + body: BlockStatement { + type: "BlockStatement", + body: [], + + range: [32, 34], + loc: { + start: { column: 32, line: 1 }, + end: { column: 34, line: 1 }, + }, + }, + expression: false, + generator: false, + id: null, + params: [], + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + constraint: TSTypeReference { + type: "TSTypeReference", + typeName: Identifier { + type: "Identifier", + name: "U", + + range: [27, 28], + loc: { + start: { column: 27, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + + range: [27, 28], + loc: { + start: { column: 27, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + name: "T", + + range: [11, 28], + loc: { + start: { column: 11, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + ], + + range: [10, 29], + loc: { + start: { column: 10, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + + range: [1, 34], + loc: { + start: { column: 1, line: 1 }, + end: { column: 34, line: 1 }, + }, + }, + + range: [0, 36], + loc: { + start: { column: 0, line: 1 }, + end: { column: 36, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 37], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-extends/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-extends/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..d374debdd199 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-extends/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,146 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter func-expr-const-modifier-extends Babel - Tokens 1`] = ` +[ + Punctuator { + type: "Punctuator", + value: "(", + + range: [0, 1], + loc: { + start: { column: 0, line: 1 }, + end: { column: 1, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "function", + + range: [1, 9], + loc: { + start: { column: 1, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [11, 16], + loc: { + start: { column: 11, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "extends", + + range: [19, 26], + loc: { + start: { column: 19, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "U", + + range: [27, 28], + loc: { + start: { column: 27, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [28, 29], + loc: { + start: { column: 28, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "(", + + range: [29, 30], + loc: { + start: { column: 29, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [30, 31], + loc: { + start: { column: 30, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [32, 33], + loc: { + start: { column: 32, line: 1 }, + end: { column: 33, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [33, 34], + loc: { + start: { column: 33, line: 1 }, + end: { column: 34, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [34, 35], + loc: { + start: { column: 34, line: 1 }, + end: { column: 35, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [35, 36], + loc: { + start: { column: 35, line: 1 }, + end: { column: 36, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-extends/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-extends/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..64cbd211b5da --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-extends/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,106 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter func-expr-const-modifier-extends AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExpressionStatement { + type: 'ExpressionStatement', + expression: FunctionExpression { + type: 'FunctionExpression', + async: false, + body: BlockStatement { + type: 'BlockStatement', + body: Array [], + + range: [32, 34], + loc: { + start: { column: 32, line: 1 }, + end: { column: 34, line: 1 }, + }, + }, + expression: false, + generator: false, + id: null, + params: Array [], + typeParameters: TSTypeParameterDeclaration { + type: 'TSTypeParameterDeclaration', + params: Array [ + TSTypeParameter { + type: 'TSTypeParameter', + const: true, + constraint: TSTypeReference { + type: 'TSTypeReference', + typeName: Identifier { + type: 'Identifier', + name: 'U', + + range: [27, 28], + loc: { + start: { column: 27, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + + range: [27, 28], + loc: { + start: { column: 27, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, +- in: false, +- name: Identifier { +- type: 'Identifier', +- name: 'T', +- +- range: [17, 18], +- loc: { +- start: { column: 17, line: 1 }, +- end: { column: 18, line: 1 }, +- }, +- }, +- out: false, ++ name: 'T', + + range: [11, 28], + loc: { + start: { column: 11, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + ], + + range: [10, 29], + loc: { + start: { column: 10, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + + range: [1, 34], + loc: { + start: { column: 1, line: 1 }, + end: { column: 34, line: 1 }, + }, + }, + + range: [0, 36], + loc: { + start: { column: 0, line: 1 }, + end: { column: 36, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 37], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-extends/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-extends/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..80c919e9a1ca --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-extends/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter func-expr-const-modifier-extends AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-multiple/fixture.ts b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-multiple/fixture.ts new file mode 100644 index 000000000000..7fa1dc543ca9 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-multiple/fixture.ts @@ -0,0 +1 @@ +(function () {}); diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-multiple/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-multiple/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..981d3e4bfbc5 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-multiple/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,104 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter func-expr-const-modifier-multiple TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + ExpressionStatement { + type: "ExpressionStatement", + expression: FunctionExpression { + type: "FunctionExpression", + async: false, + body: BlockStatement { + type: "BlockStatement", + body: [], + + range: [25, 27], + loc: { + start: { column: 25, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + expression: false, + generator: false, + id: null, + params: [], + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: false, + in: false, + name: Identifier { + type: "Identifier", + name: "T", + + range: [11, 12], + loc: { + start: { column: 11, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + out: false, + + range: [11, 12], + loc: { + start: { column: 11, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + TSTypeParameter { + type: "TSTypeParameter", + const: true, + in: false, + name: Identifier { + type: "Identifier", + name: "U", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + out: false, + + range: [14, 21], + loc: { + start: { column: 14, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + ], + + range: [10, 22], + loc: { + start: { column: 10, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + + range: [1, 27], + loc: { + start: { column: 1, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + + range: [0, 29], + loc: { + start: { column: 0, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 30], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-multiple/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-multiple/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..f88da14670a8 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-multiple/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,146 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter func-expr-const-modifier-multiple TSESTree - Tokens 1`] = ` +[ + Punctuator { + type: "Punctuator", + value: "(", + + range: [0, 1], + loc: { + start: { column: 0, line: 1 }, + end: { column: 1, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "function", + + range: [1, 9], + loc: { + start: { column: 1, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [11, 12], + loc: { + start: { column: 11, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ",", + + range: [12, 13], + loc: { + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [14, 19], + loc: { + start: { column: 14, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "U", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "(", + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [23, 24], + loc: { + start: { column: 23, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [25, 26], + loc: { + start: { column: 25, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [26, 27], + loc: { + start: { column: 26, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [27, 28], + loc: { + start: { column: 27, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [28, 29], + loc: { + start: { column: 28, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-multiple/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-multiple/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..006a480bb382 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-multiple/snapshots/3-Babel-AST.shot @@ -0,0 +1,81 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter func-expr-const-modifier-multiple Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + ExpressionStatement { + type: "ExpressionStatement", + expression: FunctionExpression { + type: "FunctionExpression", + async: false, + body: BlockStatement { + type: "BlockStatement", + body: [], + + range: [25, 27], + loc: { + start: { column: 25, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + expression: false, + generator: false, + id: null, + params: [], + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + name: "T", + + range: [11, 12], + loc: { + start: { column: 11, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + TSTypeParameter { + type: "TSTypeParameter", + const: true, + name: "U", + + range: [14, 21], + loc: { + start: { column: 14, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + ], + + range: [10, 22], + loc: { + start: { column: 10, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + + range: [1, 27], + loc: { + start: { column: 1, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + + range: [0, 29], + loc: { + start: { column: 0, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 30], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-multiple/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-multiple/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..d09fb6259bc0 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-multiple/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,146 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter func-expr-const-modifier-multiple Babel - Tokens 1`] = ` +[ + Punctuator { + type: "Punctuator", + value: "(", + + range: [0, 1], + loc: { + start: { column: 0, line: 1 }, + end: { column: 1, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "function", + + range: [1, 9], + loc: { + start: { column: 1, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [11, 12], + loc: { + start: { column: 11, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ",", + + range: [12, 13], + loc: { + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [14, 19], + loc: { + start: { column: 14, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "U", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "(", + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [23, 24], + loc: { + start: { column: 23, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [25, 26], + loc: { + start: { column: 25, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [26, 27], + loc: { + start: { column: 26, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [27, 28], + loc: { + start: { column: 27, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [28, 29], + loc: { + start: { column: 28, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-multiple/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-multiple/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..2a50d483de22 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-multiple/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,110 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter func-expr-const-modifier-multiple AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExpressionStatement { + type: 'ExpressionStatement', + expression: FunctionExpression { + type: 'FunctionExpression', + async: false, + body: BlockStatement { + type: 'BlockStatement', + body: Array [], + + range: [25, 27], + loc: { + start: { column: 25, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + expression: false, + generator: false, + id: null, + params: Array [], + typeParameters: TSTypeParameterDeclaration { + type: 'TSTypeParameterDeclaration', + params: Array [ + TSTypeParameter { + type: 'TSTypeParameter', +- const: false, +- in: false, +- name: Identifier { +- type: 'Identifier', +- name: 'T', ++ name: 'T', + +- range: [11, 12], +- loc: { +- start: { column: 11, line: 1 }, +- end: { column: 12, line: 1 }, +- }, +- }, +- out: false, +- + range: [11, 12], + loc: { + start: { column: 11, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + TSTypeParameter { + type: 'TSTypeParameter', + const: true, +- in: false, +- name: Identifier { +- type: 'Identifier', +- name: 'U', +- +- range: [20, 21], +- loc: { +- start: { column: 20, line: 1 }, +- end: { column: 21, line: 1 }, +- }, +- }, +- out: false, ++ name: 'U', + + range: [14, 21], + loc: { + start: { column: 14, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + ], + + range: [10, 22], + loc: { + start: { column: 10, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + + range: [1, 27], + loc: { + start: { column: 1, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + + range: [0, 29], + loc: { + start: { column: 0, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 30], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-multiple/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-multiple/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..e5a3f88961e2 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier-multiple/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter func-expr-const-modifier-multiple AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier/fixture.ts b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier/fixture.ts new file mode 100644 index 000000000000..a0f0b5dda215 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier/fixture.ts @@ -0,0 +1 @@ +(function () {}); diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..249dc8e42534 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,82 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter func-expr-const-modifier TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + ExpressionStatement { + type: "ExpressionStatement", + expression: FunctionExpression { + type: "FunctionExpression", + async: false, + body: BlockStatement { + type: "BlockStatement", + body: [], + + range: [22, 24], + loc: { + start: { column: 22, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + expression: false, + generator: false, + id: null, + params: [], + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + in: false, + name: Identifier { + type: "Identifier", + name: "T", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + out: false, + + range: [11, 18], + loc: { + start: { column: 11, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], + + range: [10, 19], + loc: { + start: { column: 10, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [1, 24], + loc: { + start: { column: 1, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + + range: [0, 26], + loc: { + start: { column: 0, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 27], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..e40fbaca9a0e --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,126 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter func-expr-const-modifier TSESTree - Tokens 1`] = ` +[ + Punctuator { + type: "Punctuator", + value: "(", + + range: [0, 1], + loc: { + start: { column: 0, line: 1 }, + end: { column: 1, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "function", + + range: [1, 9], + loc: { + start: { column: 1, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [11, 16], + loc: { + start: { column: 11, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "(", + + range: [19, 20], + loc: { + start: { column: 19, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [23, 24], + loc: { + start: { column: 23, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [24, 25], + loc: { + start: { column: 24, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [25, 26], + loc: { + start: { column: 25, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..3b10ac45310d --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier/snapshots/3-Babel-AST.shot @@ -0,0 +1,71 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter func-expr-const-modifier Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + ExpressionStatement { + type: "ExpressionStatement", + expression: FunctionExpression { + type: "FunctionExpression", + async: false, + body: BlockStatement { + type: "BlockStatement", + body: [], + + range: [22, 24], + loc: { + start: { column: 22, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + expression: false, + generator: false, + id: null, + params: [], + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + name: "T", + + range: [11, 18], + loc: { + start: { column: 11, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], + + range: [10, 19], + loc: { + start: { column: 10, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [1, 24], + loc: { + start: { column: 1, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + + range: [0, 26], + loc: { + start: { column: 0, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 27], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..438eb0185dff --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,126 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter func-expr-const-modifier Babel - Tokens 1`] = ` +[ + Punctuator { + type: "Punctuator", + value: "(", + + range: [0, 1], + loc: { + start: { column: 0, line: 1 }, + end: { column: 1, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "function", + + range: [1, 9], + loc: { + start: { column: 1, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [11, 16], + loc: { + start: { column: 11, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "(", + + range: [19, 20], + loc: { + start: { column: 19, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [23, 24], + loc: { + start: { column: 23, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [24, 25], + loc: { + start: { column: 24, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [25, 26], + loc: { + start: { column: 25, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..a5476c5645ad --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,87 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter func-expr-const-modifier AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExpressionStatement { + type: 'ExpressionStatement', + expression: FunctionExpression { + type: 'FunctionExpression', + async: false, + body: BlockStatement { + type: 'BlockStatement', + body: Array [], + + range: [22, 24], + loc: { + start: { column: 22, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + expression: false, + generator: false, + id: null, + params: Array [], + typeParameters: TSTypeParameterDeclaration { + type: 'TSTypeParameterDeclaration', + params: Array [ + TSTypeParameter { + type: 'TSTypeParameter', + const: true, +- in: false, +- name: Identifier { +- type: 'Identifier', +- name: 'T', +- +- range: [17, 18], +- loc: { +- start: { column: 17, line: 1 }, +- end: { column: 18, line: 1 }, +- }, +- }, +- out: false, ++ name: 'T', + + range: [11, 18], + loc: { + start: { column: 11, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], + + range: [10, 19], + loc: { + start: { column: 10, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [1, 24], + loc: { + start: { column: 1, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + + range: [0, 26], + loc: { + start: { column: 0, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 27], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..c3e5830fb8b5 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/func-expr-const-modifier/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter func-expr-const-modifier AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-in-modifier-multiple/fixture.ts b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-in-modifier-multiple/fixture.ts new file mode 100644 index 000000000000..14025fb6fd5b --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-in-modifier-multiple/fixture.ts @@ -0,0 +1 @@ +interface M {} diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-in-modifier-multiple/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-in-modifier-multiple/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..21c5d81390de --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-in-modifier-multiple/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,78 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter interface-const-in-modifier-multiple TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + TSInterfaceDeclaration { + type: "TSInterfaceDeclaration", + body: TSInterfaceBody { + type: "TSInterfaceBody", + body: [], + + range: [24, 26], + loc: { + start: { column: 24, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + id: Identifier { + type: "Identifier", + name: "M", + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + in: true, + name: Identifier { + type: "Identifier", + name: "T", + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + out: false, + + range: [12, 22], + loc: { + start: { column: 12, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + ], + + range: [11, 23], + loc: { + start: { column: 11, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + + range: [0, 26], + loc: { + start: { column: 0, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 27], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-in-modifier-multiple/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-in-modifier-multiple/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..7c0b068becc5 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-in-modifier-multiple/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,96 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter interface-const-in-modifier-multiple TSESTree - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "interface", + + range: [0, 9], + loc: { + start: { column: 0, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "M", + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [11, 12], + loc: { + start: { column: 11, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [12, 17], + loc: { + start: { column: 12, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "in", + + range: [18, 20], + loc: { + start: { column: 18, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [24, 25], + loc: { + start: { column: 24, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [25, 26], + loc: { + start: { column: 25, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-in-modifier-multiple/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-in-modifier-multiple/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..9b22b7523cbc --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-in-modifier-multiple/snapshots/3-Babel-AST.shot @@ -0,0 +1,68 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter interface-const-in-modifier-multiple Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + TSInterfaceDeclaration { + type: "TSInterfaceDeclaration", + body: TSInterfaceBody { + type: "TSInterfaceBody", + body: [], + + range: [24, 26], + loc: { + start: { column: 24, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + id: Identifier { + type: "Identifier", + name: "M", + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + in: true, + name: "T", + + range: [12, 22], + loc: { + start: { column: 12, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + ], + + range: [11, 23], + loc: { + start: { column: 11, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + + range: [0, 26], + loc: { + start: { column: 0, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 27], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-in-modifier-multiple/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-in-modifier-multiple/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..65f255cefeb6 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-in-modifier-multiple/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,96 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter interface-const-in-modifier-multiple Babel - Tokens 1`] = ` +[ + Identifier { + type: "Identifier", + value: "interface", + + range: [0, 9], + loc: { + start: { column: 0, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "M", + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [11, 12], + loc: { + start: { column: 11, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [12, 17], + loc: { + start: { column: 12, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "in", + + range: [18, 20], + loc: { + start: { column: 18, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [24, 25], + loc: { + start: { column: 24, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [25, 26], + loc: { + start: { column: 25, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-in-modifier-multiple/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-in-modifier-multiple/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..4add40cf5d13 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-in-modifier-multiple/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,83 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter interface-const-in-modifier-multiple AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSInterfaceDeclaration { + type: 'TSInterfaceDeclaration', + body: TSInterfaceBody { + type: 'TSInterfaceBody', + body: Array [], + + range: [24, 26], + loc: { + start: { column: 24, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + id: Identifier { + type: 'Identifier', + name: 'M', + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + typeParameters: TSTypeParameterDeclaration { + type: 'TSTypeParameterDeclaration', + params: Array [ + TSTypeParameter { + type: 'TSTypeParameter', + const: true, + in: true, +- name: Identifier { +- type: 'Identifier', +- name: 'T', +- +- range: [21, 22], +- loc: { +- start: { column: 21, line: 1 }, +- end: { column: 22, line: 1 }, +- }, +- }, +- out: false, ++ name: 'T', + + range: [12, 22], + loc: { + start: { column: 12, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + ], + + range: [11, 23], + loc: { + start: { column: 11, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + + range: [0, 26], + loc: { + start: { column: 0, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 27], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-in-modifier-multiple/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-in-modifier-multiple/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..9c4fc733e263 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-in-modifier-multiple/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,102 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter interface-const-in-modifier-multiple AST Alignment - Token 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Array [ +- Keyword { +- type: 'Keyword', ++ Identifier { ++ type: 'Identifier', + value: 'interface', + + range: [0, 9], + loc: { + start: { column: 0, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + Identifier { + type: 'Identifier', + value: 'M', + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + Punctuator { + type: 'Punctuator', + value: '<', + + range: [11, 12], + loc: { + start: { column: 11, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + Keyword { + type: 'Keyword', + value: 'const', + + range: [12, 17], + loc: { + start: { column: 12, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Keyword { + type: 'Keyword', + value: 'in', + + range: [18, 20], + loc: { + start: { column: 18, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + Identifier { + type: 'Identifier', + value: 'T', + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + Punctuator { + type: 'Punctuator', + value: '>', + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + Punctuator { + type: 'Punctuator', + value: '{', + + range: [24, 25], + loc: { + start: { column: 24, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + Punctuator { + type: 'Punctuator', + value: '}', + + range: [25, 26], + loc: { + start: { column: 25, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + ]" +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-extends/fixture.ts b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-extends/fixture.ts new file mode 100644 index 000000000000..039606144f17 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-extends/fixture.ts @@ -0,0 +1 @@ +interface J {} diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-extends/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-extends/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..eb7f3b8a5886 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-extends/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,97 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter interface-const-modifier-extends TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + TSInterfaceDeclaration { + type: "TSInterfaceDeclaration", + body: TSInterfaceBody { + type: "TSInterfaceBody", + body: [], + + range: [31, 33], + loc: { + start: { column: 31, line: 1 }, + end: { column: 33, line: 1 }, + }, + }, + id: Identifier { + type: "Identifier", + name: "J", + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + constraint: TSTypeReference { + type: "TSTypeReference", + typeName: Identifier { + type: "Identifier", + name: "U", + + range: [28, 29], + loc: { + start: { column: 28, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + + range: [28, 29], + loc: { + start: { column: 28, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + in: false, + name: Identifier { + type: "Identifier", + name: "T", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + out: false, + + range: [12, 29], + loc: { + start: { column: 12, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + ], + + range: [11, 30], + loc: { + start: { column: 11, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + + range: [0, 33], + loc: { + start: { column: 0, line: 1 }, + end: { column: 33, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 34], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-extends/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-extends/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..d02485dd18fc --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-extends/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,106 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter interface-const-modifier-extends TSESTree - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "interface", + + range: [0, 9], + loc: { + start: { column: 0, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "J", + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [11, 12], + loc: { + start: { column: 11, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [12, 17], + loc: { + start: { column: 12, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "extends", + + range: [20, 27], + loc: { + start: { column: 20, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "U", + + range: [28, 29], + loc: { + start: { column: 28, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [29, 30], + loc: { + start: { column: 29, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [31, 32], + loc: { + start: { column: 31, line: 1 }, + end: { column: 32, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [32, 33], + loc: { + start: { column: 32, line: 1 }, + end: { column: 33, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-extends/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-extends/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..d3a89f49e44b --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-extends/snapshots/3-Babel-AST.shot @@ -0,0 +1,86 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter interface-const-modifier-extends Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + TSInterfaceDeclaration { + type: "TSInterfaceDeclaration", + body: TSInterfaceBody { + type: "TSInterfaceBody", + body: [], + + range: [31, 33], + loc: { + start: { column: 31, line: 1 }, + end: { column: 33, line: 1 }, + }, + }, + id: Identifier { + type: "Identifier", + name: "J", + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + constraint: TSTypeReference { + type: "TSTypeReference", + typeName: Identifier { + type: "Identifier", + name: "U", + + range: [28, 29], + loc: { + start: { column: 28, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + + range: [28, 29], + loc: { + start: { column: 28, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + name: "T", + + range: [12, 29], + loc: { + start: { column: 12, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + ], + + range: [11, 30], + loc: { + start: { column: 11, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + + range: [0, 33], + loc: { + start: { column: 0, line: 1 }, + end: { column: 33, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 34], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-extends/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-extends/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..856e0fa81ce5 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-extends/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,106 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter interface-const-modifier-extends Babel - Tokens 1`] = ` +[ + Identifier { + type: "Identifier", + value: "interface", + + range: [0, 9], + loc: { + start: { column: 0, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "J", + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [11, 12], + loc: { + start: { column: 11, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [12, 17], + loc: { + start: { column: 12, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "extends", + + range: [20, 27], + loc: { + start: { column: 20, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "U", + + range: [28, 29], + loc: { + start: { column: 28, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [29, 30], + loc: { + start: { column: 29, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [31, 32], + loc: { + start: { column: 31, line: 1 }, + end: { column: 32, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [32, 33], + loc: { + start: { column: 32, line: 1 }, + end: { column: 33, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-extends/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-extends/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..47c6ccd25b6e --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-extends/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,102 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter interface-const-modifier-extends AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSInterfaceDeclaration { + type: 'TSInterfaceDeclaration', + body: TSInterfaceBody { + type: 'TSInterfaceBody', + body: Array [], + + range: [31, 33], + loc: { + start: { column: 31, line: 1 }, + end: { column: 33, line: 1 }, + }, + }, + id: Identifier { + type: 'Identifier', + name: 'J', + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + typeParameters: TSTypeParameterDeclaration { + type: 'TSTypeParameterDeclaration', + params: Array [ + TSTypeParameter { + type: 'TSTypeParameter', + const: true, + constraint: TSTypeReference { + type: 'TSTypeReference', + typeName: Identifier { + type: 'Identifier', + name: 'U', + + range: [28, 29], + loc: { + start: { column: 28, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + + range: [28, 29], + loc: { + start: { column: 28, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, +- in: false, +- name: Identifier { +- type: 'Identifier', +- name: 'T', +- +- range: [18, 19], +- loc: { +- start: { column: 18, line: 1 }, +- end: { column: 19, line: 1 }, +- }, +- }, +- out: false, ++ name: 'T', + + range: [12, 29], + loc: { + start: { column: 12, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + ], + + range: [11, 30], + loc: { + start: { column: 11, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + + range: [0, 33], + loc: { + start: { column: 0, line: 1 }, + end: { column: 33, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 34], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-extends/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-extends/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..8ca3d093cdb3 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-extends/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,112 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter interface-const-modifier-extends AST Alignment - Token 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Array [ +- Keyword { +- type: 'Keyword', ++ Identifier { ++ type: 'Identifier', + value: 'interface', + + range: [0, 9], + loc: { + start: { column: 0, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + Identifier { + type: 'Identifier', + value: 'J', + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + Punctuator { + type: 'Punctuator', + value: '<', + + range: [11, 12], + loc: { + start: { column: 11, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + Keyword { + type: 'Keyword', + value: 'const', + + range: [12, 17], + loc: { + start: { column: 12, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Identifier { + type: 'Identifier', + value: 'T', + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Keyword { + type: 'Keyword', + value: 'extends', + + range: [20, 27], + loc: { + start: { column: 20, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + Identifier { + type: 'Identifier', + value: 'U', + + range: [28, 29], + loc: { + start: { column: 28, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + Punctuator { + type: 'Punctuator', + value: '>', + + range: [29, 30], + loc: { + start: { column: 29, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + Punctuator { + type: 'Punctuator', + value: '{', + + range: [31, 32], + loc: { + start: { column: 31, line: 1 }, + end: { column: 32, line: 1 }, + }, + }, + Punctuator { + type: 'Punctuator', + value: '}', + + range: [32, 33], + loc: { + start: { column: 32, line: 1 }, + end: { column: 33, line: 1 }, + }, + }, + ]" +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-multiple/fixture.ts b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-multiple/fixture.ts new file mode 100644 index 000000000000..6c8c019b3bd1 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-multiple/fixture.ts @@ -0,0 +1 @@ +interface I {} diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-multiple/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-multiple/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..341ae78b2525 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-multiple/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,100 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter interface-const-modifier-multiple TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + TSInterfaceDeclaration { + type: "TSInterfaceDeclaration", + body: TSInterfaceBody { + type: "TSInterfaceBody", + body: [], + + range: [24, 26], + loc: { + start: { column: 24, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + id: Identifier { + type: "Identifier", + name: "I", + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: false, + in: false, + name: Identifier { + type: "Identifier", + name: "T", + + range: [12, 13], + loc: { + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + out: false, + + range: [12, 13], + loc: { + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + TSTypeParameter { + type: "TSTypeParameter", + const: true, + in: false, + name: Identifier { + type: "Identifier", + name: "T", + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + out: false, + + range: [15, 22], + loc: { + start: { column: 15, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + ], + + range: [11, 23], + loc: { + start: { column: 11, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + + range: [0, 26], + loc: { + start: { column: 0, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 27], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-multiple/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-multiple/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..b2d9c40576f7 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-multiple/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,106 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter interface-const-modifier-multiple TSESTree - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "interface", + + range: [0, 9], + loc: { + start: { column: 0, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "I", + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [11, 12], + loc: { + start: { column: 11, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [12, 13], + loc: { + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ",", + + range: [13, 14], + loc: { + start: { column: 13, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [15, 20], + loc: { + start: { column: 15, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [24, 25], + loc: { + start: { column: 24, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [25, 26], + loc: { + start: { column: 25, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-multiple/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-multiple/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..52e6fda9e2cf --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-multiple/snapshots/3-Babel-AST.shot @@ -0,0 +1,77 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter interface-const-modifier-multiple Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + TSInterfaceDeclaration { + type: "TSInterfaceDeclaration", + body: TSInterfaceBody { + type: "TSInterfaceBody", + body: [], + + range: [24, 26], + loc: { + start: { column: 24, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + id: Identifier { + type: "Identifier", + name: "I", + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + name: "T", + + range: [12, 13], + loc: { + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + TSTypeParameter { + type: "TSTypeParameter", + const: true, + name: "T", + + range: [15, 22], + loc: { + start: { column: 15, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + ], + + range: [11, 23], + loc: { + start: { column: 11, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + + range: [0, 26], + loc: { + start: { column: 0, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 27], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-multiple/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-multiple/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..dba8ba69ea0b --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-multiple/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,106 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter interface-const-modifier-multiple Babel - Tokens 1`] = ` +[ + Identifier { + type: "Identifier", + value: "interface", + + range: [0, 9], + loc: { + start: { column: 0, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "I", + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [11, 12], + loc: { + start: { column: 11, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [12, 13], + loc: { + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ",", + + range: [13, 14], + loc: { + start: { column: 13, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [15, 20], + loc: { + start: { column: 15, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [24, 25], + loc: { + start: { column: 24, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [25, 26], + loc: { + start: { column: 25, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-multiple/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-multiple/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..80b85b253f04 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-multiple/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,106 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter interface-const-modifier-multiple AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSInterfaceDeclaration { + type: 'TSInterfaceDeclaration', + body: TSInterfaceBody { + type: 'TSInterfaceBody', + body: Array [], + + range: [24, 26], + loc: { + start: { column: 24, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + id: Identifier { + type: 'Identifier', + name: 'I', + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + typeParameters: TSTypeParameterDeclaration { + type: 'TSTypeParameterDeclaration', + params: Array [ + TSTypeParameter { + type: 'TSTypeParameter', +- const: false, +- in: false, +- name: Identifier { +- type: 'Identifier', +- name: 'T', ++ name: 'T', + +- range: [12, 13], +- loc: { +- start: { column: 12, line: 1 }, +- end: { column: 13, line: 1 }, +- }, +- }, +- out: false, +- + range: [12, 13], + loc: { + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + TSTypeParameter { + type: 'TSTypeParameter', + const: true, +- in: false, +- name: Identifier { +- type: 'Identifier', +- name: 'T', +- +- range: [21, 22], +- loc: { +- start: { column: 21, line: 1 }, +- end: { column: 22, line: 1 }, +- }, +- }, +- out: false, ++ name: 'T', + + range: [15, 22], + loc: { + start: { column: 15, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + ], + + range: [11, 23], + loc: { + start: { column: 11, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + + range: [0, 26], + loc: { + start: { column: 0, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 27], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-multiple/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-multiple/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..87b3bd7d4732 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier-multiple/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,112 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter interface-const-modifier-multiple AST Alignment - Token 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Array [ +- Keyword { +- type: 'Keyword', ++ Identifier { ++ type: 'Identifier', + value: 'interface', + + range: [0, 9], + loc: { + start: { column: 0, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + Identifier { + type: 'Identifier', + value: 'I', + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + Punctuator { + type: 'Punctuator', + value: '<', + + range: [11, 12], + loc: { + start: { column: 11, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + Identifier { + type: 'Identifier', + value: 'T', + + range: [12, 13], + loc: { + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + Punctuator { + type: 'Punctuator', + value: ',', + + range: [13, 14], + loc: { + start: { column: 13, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + Keyword { + type: 'Keyword', + value: 'const', + + range: [15, 20], + loc: { + start: { column: 15, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + Identifier { + type: 'Identifier', + value: 'T', + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + Punctuator { + type: 'Punctuator', + value: '>', + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + Punctuator { + type: 'Punctuator', + value: '{', + + range: [24, 25], + loc: { + start: { column: 24, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + Punctuator { + type: 'Punctuator', + value: '}', + + range: [25, 26], + loc: { + start: { column: 25, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + ]" +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier/fixture.ts b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier/fixture.ts new file mode 100644 index 000000000000..b39faab878aa --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier/fixture.ts @@ -0,0 +1 @@ +interface I {} diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..65601c74de47 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,78 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter interface-const-modifier TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + TSInterfaceDeclaration { + type: "TSInterfaceDeclaration", + body: TSInterfaceBody { + type: "TSInterfaceBody", + body: [], + + range: [21, 23], + loc: { + start: { column: 21, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + id: Identifier { + type: "Identifier", + name: "I", + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + in: false, + name: Identifier { + type: "Identifier", + name: "T", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + out: false, + + range: [12, 19], + loc: { + start: { column: 12, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + ], + + range: [11, 20], + loc: { + start: { column: 11, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + + range: [0, 23], + loc: { + start: { column: 0, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 24], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..b29c746f2bff --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,86 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter interface-const-modifier TSESTree - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "interface", + + range: [0, 9], + loc: { + start: { column: 0, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "I", + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [11, 12], + loc: { + start: { column: 11, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [12, 17], + loc: { + start: { column: 12, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [19, 20], + loc: { + start: { column: 19, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..3de821316a50 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier/snapshots/3-Babel-AST.shot @@ -0,0 +1,67 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter interface-const-modifier Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + TSInterfaceDeclaration { + type: "TSInterfaceDeclaration", + body: TSInterfaceBody { + type: "TSInterfaceBody", + body: [], + + range: [21, 23], + loc: { + start: { column: 21, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + id: Identifier { + type: "Identifier", + name: "I", + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + name: "T", + + range: [12, 19], + loc: { + start: { column: 12, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + ], + + range: [11, 20], + loc: { + start: { column: 11, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + + range: [0, 23], + loc: { + start: { column: 0, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 24], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..73947b5bb340 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,86 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter interface-const-modifier Babel - Tokens 1`] = ` +[ + Identifier { + type: "Identifier", + value: "interface", + + range: [0, 9], + loc: { + start: { column: 0, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "I", + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [11, 12], + loc: { + start: { column: 11, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [12, 17], + loc: { + start: { column: 12, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [19, 20], + loc: { + start: { column: 19, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..f24056fd5d6a --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,83 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter interface-const-modifier AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSInterfaceDeclaration { + type: 'TSInterfaceDeclaration', + body: TSInterfaceBody { + type: 'TSInterfaceBody', + body: Array [], + + range: [21, 23], + loc: { + start: { column: 21, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + id: Identifier { + type: 'Identifier', + name: 'I', + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + typeParameters: TSTypeParameterDeclaration { + type: 'TSTypeParameterDeclaration', + params: Array [ + TSTypeParameter { + type: 'TSTypeParameter', + const: true, +- in: false, +- name: Identifier { +- type: 'Identifier', +- name: 'T', +- +- range: [18, 19], +- loc: { +- start: { column: 18, line: 1 }, +- end: { column: 19, line: 1 }, +- }, +- }, +- out: false, ++ name: 'T', + + range: [12, 19], + loc: { + start: { column: 12, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + ], + + range: [11, 20], + loc: { + start: { column: 11, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + + range: [0, 23], + loc: { + start: { column: 0, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 24], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..7e76e0508261 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-const-modifier/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,92 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter interface-const-modifier AST Alignment - Token 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Array [ +- Keyword { +- type: 'Keyword', ++ Identifier { ++ type: 'Identifier', + value: 'interface', + + range: [0, 9], + loc: { + start: { column: 0, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + Identifier { + type: 'Identifier', + value: 'I', + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + Punctuator { + type: 'Punctuator', + value: '<', + + range: [11, 12], + loc: { + start: { column: 11, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + Keyword { + type: 'Keyword', + value: 'const', + + range: [12, 17], + loc: { + start: { column: 12, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Identifier { + type: 'Identifier', + value: 'T', + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Punctuator { + type: 'Punctuator', + value: '>', + + range: [19, 20], + loc: { + start: { column: 19, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + Punctuator { + type: 'Punctuator', + value: '{', + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + Punctuator { + type: 'Punctuator', + value: '}', + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + ]" +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-in-const-modifier-multiple/fixture.ts b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-in-const-modifier-multiple/fixture.ts new file mode 100644 index 000000000000..8dc6e2f6033f --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-in-const-modifier-multiple/fixture.ts @@ -0,0 +1 @@ +interface L {} diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-in-const-modifier-multiple/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-in-const-modifier-multiple/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..2971baddac51 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-in-const-modifier-multiple/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,78 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter interface-in-const-modifier-multiple TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + TSInterfaceDeclaration { + type: "TSInterfaceDeclaration", + body: TSInterfaceBody { + type: "TSInterfaceBody", + body: [], + + range: [24, 26], + loc: { + start: { column: 24, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + id: Identifier { + type: "Identifier", + name: "L", + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + in: true, + name: Identifier { + type: "Identifier", + name: "T", + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + out: false, + + range: [12, 22], + loc: { + start: { column: 12, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + ], + + range: [11, 23], + loc: { + start: { column: 11, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + + range: [0, 26], + loc: { + start: { column: 0, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 27], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-in-const-modifier-multiple/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-in-const-modifier-multiple/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..abc1c07187ed --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-in-const-modifier-multiple/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,96 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter interface-in-const-modifier-multiple TSESTree - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "interface", + + range: [0, 9], + loc: { + start: { column: 0, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "L", + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [11, 12], + loc: { + start: { column: 11, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "in", + + range: [12, 14], + loc: { + start: { column: 12, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [15, 20], + loc: { + start: { column: 15, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [24, 25], + loc: { + start: { column: 24, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [25, 26], + loc: { + start: { column: 25, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-in-const-modifier-multiple/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-in-const-modifier-multiple/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..52ab3f627a92 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-in-const-modifier-multiple/snapshots/3-Babel-AST.shot @@ -0,0 +1,68 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter interface-in-const-modifier-multiple Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + TSInterfaceDeclaration { + type: "TSInterfaceDeclaration", + body: TSInterfaceBody { + type: "TSInterfaceBody", + body: [], + + range: [24, 26], + loc: { + start: { column: 24, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + id: Identifier { + type: "Identifier", + name: "L", + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + in: true, + name: "T", + + range: [12, 22], + loc: { + start: { column: 12, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + ], + + range: [11, 23], + loc: { + start: { column: 11, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + + range: [0, 26], + loc: { + start: { column: 0, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 27], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-in-const-modifier-multiple/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-in-const-modifier-multiple/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..b2701779685b --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-in-const-modifier-multiple/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,96 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter interface-in-const-modifier-multiple Babel - Tokens 1`] = ` +[ + Identifier { + type: "Identifier", + value: "interface", + + range: [0, 9], + loc: { + start: { column: 0, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "L", + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [11, 12], + loc: { + start: { column: 11, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "in", + + range: [12, 14], + loc: { + start: { column: 12, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [15, 20], + loc: { + start: { column: 15, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [24, 25], + loc: { + start: { column: 24, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [25, 26], + loc: { + start: { column: 25, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-in-const-modifier-multiple/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-in-const-modifier-multiple/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..3579f6bbe03b --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-in-const-modifier-multiple/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,83 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter interface-in-const-modifier-multiple AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSInterfaceDeclaration { + type: 'TSInterfaceDeclaration', + body: TSInterfaceBody { + type: 'TSInterfaceBody', + body: Array [], + + range: [24, 26], + loc: { + start: { column: 24, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + id: Identifier { + type: 'Identifier', + name: 'L', + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + typeParameters: TSTypeParameterDeclaration { + type: 'TSTypeParameterDeclaration', + params: Array [ + TSTypeParameter { + type: 'TSTypeParameter', + const: true, + in: true, +- name: Identifier { +- type: 'Identifier', +- name: 'T', +- +- range: [21, 22], +- loc: { +- start: { column: 21, line: 1 }, +- end: { column: 22, line: 1 }, +- }, +- }, +- out: false, ++ name: 'T', + + range: [12, 22], + loc: { + start: { column: 12, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + ], + + range: [11, 23], + loc: { + start: { column: 11, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + + range: [0, 26], + loc: { + start: { column: 0, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 27], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-in-const-modifier-multiple/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-in-const-modifier-multiple/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..2968ea8bf5ea --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-in-const-modifier-multiple/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,102 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter interface-in-const-modifier-multiple AST Alignment - Token 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Array [ +- Keyword { +- type: 'Keyword', ++ Identifier { ++ type: 'Identifier', + value: 'interface', + + range: [0, 9], + loc: { + start: { column: 0, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + Identifier { + type: 'Identifier', + value: 'L', + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + Punctuator { + type: 'Punctuator', + value: '<', + + range: [11, 12], + loc: { + start: { column: 11, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + Keyword { + type: 'Keyword', + value: 'in', + + range: [12, 14], + loc: { + start: { column: 12, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + Keyword { + type: 'Keyword', + value: 'const', + + range: [15, 20], + loc: { + start: { column: 15, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + Identifier { + type: 'Identifier', + value: 'T', + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + Punctuator { + type: 'Punctuator', + value: '>', + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + Punctuator { + type: 'Punctuator', + value: '{', + + range: [24, 25], + loc: { + start: { column: 24, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + Punctuator { + type: 'Punctuator', + value: '}', + + range: [25, 26], + loc: { + start: { column: 25, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + ]" +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/method-const-modifiers/fixture.ts b/packages/ast-spec/src/special/TSTypeParameter/fixtures/method-const-modifiers/fixture.ts new file mode 100644 index 000000000000..6d80230d43c8 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/method-const-modifiers/fixture.ts @@ -0,0 +1,5 @@ +class _ { + method() {} + method() {} + method() {} +} diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/method-const-modifiers/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/method-const-modifiers/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..6b8bb7862af7 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/method-const-modifiers/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,328 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter method-const-modifiers TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + ClassDeclaration { + type: "ClassDeclaration", + body: ClassBody { + type: "ClassBody", + body: [ + MethodDefinition { + type: "MethodDefinition", + computed: false, + key: Identifier { + type: "Identifier", + name: "method", + + range: [12, 18], + loc: { + start: { column: 2, line: 2 }, + end: { column: 8, line: 2 }, + }, + }, + kind: "method", + override: false, + static: false, + value: FunctionExpression { + type: "FunctionExpression", + async: false, + body: BlockStatement { + type: "BlockStatement", + body: [], + + range: [30, 32], + loc: { + start: { column: 20, line: 2 }, + end: { column: 22, line: 2 }, + }, + }, + expression: false, + generator: false, + id: null, + params: [], + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + in: false, + name: Identifier { + type: "Identifier", + name: "T", + + range: [25, 26], + loc: { + start: { column: 15, line: 2 }, + end: { column: 16, line: 2 }, + }, + }, + out: false, + + range: [19, 26], + loc: { + start: { column: 9, line: 2 }, + end: { column: 16, line: 2 }, + }, + }, + ], + + range: [18, 27], + loc: { + start: { column: 8, line: 2 }, + end: { column: 17, line: 2 }, + }, + }, + + range: [18, 32], + loc: { + start: { column: 8, line: 2 }, + end: { column: 22, line: 2 }, + }, + }, + + range: [12, 32], + loc: { + start: { column: 2, line: 2 }, + end: { column: 22, line: 2 }, + }, + }, + MethodDefinition { + type: "MethodDefinition", + computed: false, + key: Identifier { + type: "Identifier", + name: "method", + + range: [35, 41], + loc: { + start: { column: 2, line: 3 }, + end: { column: 8, line: 3 }, + }, + }, + kind: "method", + override: false, + static: false, + value: FunctionExpression { + type: "FunctionExpression", + async: false, + body: BlockStatement { + type: "BlockStatement", + body: [], + + range: [63, 65], + loc: { + start: { column: 30, line: 3 }, + end: { column: 32, line: 3 }, + }, + }, + expression: false, + generator: false, + id: null, + params: [], + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + constraint: TSTypeReference { + type: "TSTypeReference", + typeName: Identifier { + type: "Identifier", + name: "U", + + range: [58, 59], + loc: { + start: { column: 25, line: 3 }, + end: { column: 26, line: 3 }, + }, + }, + + range: [58, 59], + loc: { + start: { column: 25, line: 3 }, + end: { column: 26, line: 3 }, + }, + }, + in: false, + name: Identifier { + type: "Identifier", + name: "T", + + range: [48, 49], + loc: { + start: { column: 15, line: 3 }, + end: { column: 16, line: 3 }, + }, + }, + out: false, + + range: [42, 59], + loc: { + start: { column: 9, line: 3 }, + end: { column: 26, line: 3 }, + }, + }, + ], + + range: [41, 60], + loc: { + start: { column: 8, line: 3 }, + end: { column: 27, line: 3 }, + }, + }, + + range: [41, 65], + loc: { + start: { column: 8, line: 3 }, + end: { column: 32, line: 3 }, + }, + }, + + range: [35, 65], + loc: { + start: { column: 2, line: 3 }, + end: { column: 32, line: 3 }, + }, + }, + MethodDefinition { + type: "MethodDefinition", + computed: false, + key: Identifier { + type: "Identifier", + name: "method", + + range: [68, 74], + loc: { + start: { column: 2, line: 4 }, + end: { column: 8, line: 4 }, + }, + }, + kind: "method", + override: false, + static: false, + value: FunctionExpression { + type: "FunctionExpression", + async: false, + body: BlockStatement { + type: "BlockStatement", + body: [], + + range: [89, 91], + loc: { + start: { column: 23, line: 4 }, + end: { column: 25, line: 4 }, + }, + }, + expression: false, + generator: false, + id: null, + params: [], + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: false, + in: false, + name: Identifier { + type: "Identifier", + name: "T", + + range: [75, 76], + loc: { + start: { column: 9, line: 4 }, + end: { column: 10, line: 4 }, + }, + }, + out: false, + + range: [75, 76], + loc: { + start: { column: 9, line: 4 }, + end: { column: 10, line: 4 }, + }, + }, + TSTypeParameter { + type: "TSTypeParameter", + const: true, + in: false, + name: Identifier { + type: "Identifier", + name: "U", + + range: [84, 85], + loc: { + start: { column: 18, line: 4 }, + end: { column: 19, line: 4 }, + }, + }, + out: false, + + range: [78, 85], + loc: { + start: { column: 12, line: 4 }, + end: { column: 19, line: 4 }, + }, + }, + ], + + range: [74, 86], + loc: { + start: { column: 8, line: 4 }, + end: { column: 20, line: 4 }, + }, + }, + + range: [74, 91], + loc: { + start: { column: 8, line: 4 }, + end: { column: 25, line: 4 }, + }, + }, + + range: [68, 91], + loc: { + start: { column: 2, line: 4 }, + end: { column: 25, line: 4 }, + }, + }, + ], + + range: [8, 93], + loc: { + start: { column: 8, line: 1 }, + end: { column: 1, line: 5 }, + }, + }, + id: Identifier { + type: "Identifier", + name: "_", + + range: [6, 7], + loc: { + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + superClass: null, + + range: [0, 93], + loc: { + start: { column: 0, line: 1 }, + end: { column: 1, line: 5 }, + }, + }, + ], + sourceType: "script", + + range: [0, 94], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 6 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/method-const-modifiers/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/method-const-modifiers/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..40f4f507c3f7 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/method-const-modifiers/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,356 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter method-const-modifiers TSESTree - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "class", + + range: [0, 5], + loc: { + start: { column: 0, line: 1 }, + end: { column: 5, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "_", + + range: [6, 7], + loc: { + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [8, 9], + loc: { + start: { column: 8, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "method", + + range: [12, 18], + loc: { + start: { column: 2, line: 2 }, + end: { column: 8, line: 2 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [18, 19], + loc: { + start: { column: 8, line: 2 }, + end: { column: 9, line: 2 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [19, 24], + loc: { + start: { column: 9, line: 2 }, + end: { column: 14, line: 2 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [25, 26], + loc: { + start: { column: 15, line: 2 }, + end: { column: 16, line: 2 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [26, 27], + loc: { + start: { column: 16, line: 2 }, + end: { column: 17, line: 2 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "(", + + range: [27, 28], + loc: { + start: { column: 17, line: 2 }, + end: { column: 18, line: 2 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [28, 29], + loc: { + start: { column: 18, line: 2 }, + end: { column: 19, line: 2 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [30, 31], + loc: { + start: { column: 20, line: 2 }, + end: { column: 21, line: 2 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [31, 32], + loc: { + start: { column: 21, line: 2 }, + end: { column: 22, line: 2 }, + }, + }, + Identifier { + type: "Identifier", + value: "method", + + range: [35, 41], + loc: { + start: { column: 2, line: 3 }, + end: { column: 8, line: 3 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [41, 42], + loc: { + start: { column: 8, line: 3 }, + end: { column: 9, line: 3 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [42, 47], + loc: { + start: { column: 9, line: 3 }, + end: { column: 14, line: 3 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [48, 49], + loc: { + start: { column: 15, line: 3 }, + end: { column: 16, line: 3 }, + }, + }, + Keyword { + type: "Keyword", + value: "extends", + + range: [50, 57], + loc: { + start: { column: 17, line: 3 }, + end: { column: 24, line: 3 }, + }, + }, + Identifier { + type: "Identifier", + value: "U", + + range: [58, 59], + loc: { + start: { column: 25, line: 3 }, + end: { column: 26, line: 3 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [59, 60], + loc: { + start: { column: 26, line: 3 }, + end: { column: 27, line: 3 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "(", + + range: [60, 61], + loc: { + start: { column: 27, line: 3 }, + end: { column: 28, line: 3 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [61, 62], + loc: { + start: { column: 28, line: 3 }, + end: { column: 29, line: 3 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [63, 64], + loc: { + start: { column: 30, line: 3 }, + end: { column: 31, line: 3 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [64, 65], + loc: { + start: { column: 31, line: 3 }, + end: { column: 32, line: 3 }, + }, + }, + Identifier { + type: "Identifier", + value: "method", + + range: [68, 74], + loc: { + start: { column: 2, line: 4 }, + end: { column: 8, line: 4 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [74, 75], + loc: { + start: { column: 8, line: 4 }, + end: { column: 9, line: 4 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [75, 76], + loc: { + start: { column: 9, line: 4 }, + end: { column: 10, line: 4 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ",", + + range: [76, 77], + loc: { + start: { column: 10, line: 4 }, + end: { column: 11, line: 4 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [78, 83], + loc: { + start: { column: 12, line: 4 }, + end: { column: 17, line: 4 }, + }, + }, + Identifier { + type: "Identifier", + value: "U", + + range: [84, 85], + loc: { + start: { column: 18, line: 4 }, + end: { column: 19, line: 4 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [85, 86], + loc: { + start: { column: 19, line: 4 }, + end: { column: 20, line: 4 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "(", + + range: [86, 87], + loc: { + start: { column: 20, line: 4 }, + end: { column: 21, line: 4 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [87, 88], + loc: { + start: { column: 21, line: 4 }, + end: { column: 22, line: 4 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [89, 90], + loc: { + start: { column: 23, line: 4 }, + end: { column: 24, line: 4 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [90, 91], + loc: { + start: { column: 24, line: 4 }, + end: { column: 25, line: 4 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [92, 93], + loc: { + start: { column: 0, line: 5 }, + end: { column: 1, line: 5 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/method-const-modifiers/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/method-const-modifiers/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..c1527f785958 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/method-const-modifiers/snapshots/3-Babel-AST.shot @@ -0,0 +1,280 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter method-const-modifiers Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + ClassDeclaration { + type: "ClassDeclaration", + body: ClassBody { + type: "ClassBody", + body: [ + MethodDefinition { + type: "MethodDefinition", + computed: false, + key: Identifier { + type: "Identifier", + name: "method", + + range: [12, 18], + loc: { + start: { column: 2, line: 2 }, + end: { column: 8, line: 2 }, + }, + }, + kind: "method", + static: false, + value: FunctionExpression { + type: "FunctionExpression", + async: false, + body: BlockStatement { + type: "BlockStatement", + body: [], + + range: [30, 32], + loc: { + start: { column: 20, line: 2 }, + end: { column: 22, line: 2 }, + }, + }, + expression: false, + generator: false, + id: null, + params: [], + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + name: "T", + + range: [19, 26], + loc: { + start: { column: 9, line: 2 }, + end: { column: 16, line: 2 }, + }, + }, + ], + + range: [18, 27], + loc: { + start: { column: 8, line: 2 }, + end: { column: 17, line: 2 }, + }, + }, + + range: [27, 32], + loc: { + start: { column: 17, line: 2 }, + end: { column: 22, line: 2 }, + }, + }, + + range: [12, 32], + loc: { + start: { column: 2, line: 2 }, + end: { column: 22, line: 2 }, + }, + }, + MethodDefinition { + type: "MethodDefinition", + computed: false, + key: Identifier { + type: "Identifier", + name: "method", + + range: [35, 41], + loc: { + start: { column: 2, line: 3 }, + end: { column: 8, line: 3 }, + }, + }, + kind: "method", + static: false, + value: FunctionExpression { + type: "FunctionExpression", + async: false, + body: BlockStatement { + type: "BlockStatement", + body: [], + + range: [63, 65], + loc: { + start: { column: 30, line: 3 }, + end: { column: 32, line: 3 }, + }, + }, + expression: false, + generator: false, + id: null, + params: [], + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + const: true, + constraint: TSTypeReference { + type: "TSTypeReference", + typeName: Identifier { + type: "Identifier", + name: "U", + + range: [58, 59], + loc: { + start: { column: 25, line: 3 }, + end: { column: 26, line: 3 }, + }, + }, + + range: [58, 59], + loc: { + start: { column: 25, line: 3 }, + end: { column: 26, line: 3 }, + }, + }, + name: "T", + + range: [42, 59], + loc: { + start: { column: 9, line: 3 }, + end: { column: 26, line: 3 }, + }, + }, + ], + + range: [41, 60], + loc: { + start: { column: 8, line: 3 }, + end: { column: 27, line: 3 }, + }, + }, + + range: [60, 65], + loc: { + start: { column: 27, line: 3 }, + end: { column: 32, line: 3 }, + }, + }, + + range: [35, 65], + loc: { + start: { column: 2, line: 3 }, + end: { column: 32, line: 3 }, + }, + }, + MethodDefinition { + type: "MethodDefinition", + computed: false, + key: Identifier { + type: "Identifier", + name: "method", + + range: [68, 74], + loc: { + start: { column: 2, line: 4 }, + end: { column: 8, line: 4 }, + }, + }, + kind: "method", + static: false, + value: FunctionExpression { + type: "FunctionExpression", + async: false, + body: BlockStatement { + type: "BlockStatement", + body: [], + + range: [89, 91], + loc: { + start: { column: 23, line: 4 }, + end: { column: 25, line: 4 }, + }, + }, + expression: false, + generator: false, + id: null, + params: [], + typeParameters: TSTypeParameterDeclaration { + type: "TSTypeParameterDeclaration", + params: [ + TSTypeParameter { + type: "TSTypeParameter", + name: "T", + + range: [75, 76], + loc: { + start: { column: 9, line: 4 }, + end: { column: 10, line: 4 }, + }, + }, + TSTypeParameter { + type: "TSTypeParameter", + const: true, + name: "U", + + range: [78, 85], + loc: { + start: { column: 12, line: 4 }, + end: { column: 19, line: 4 }, + }, + }, + ], + + range: [74, 86], + loc: { + start: { column: 8, line: 4 }, + end: { column: 20, line: 4 }, + }, + }, + + range: [86, 91], + loc: { + start: { column: 20, line: 4 }, + end: { column: 25, line: 4 }, + }, + }, + + range: [68, 91], + loc: { + start: { column: 2, line: 4 }, + end: { column: 25, line: 4 }, + }, + }, + ], + + range: [8, 93], + loc: { + start: { column: 8, line: 1 }, + end: { column: 1, line: 5 }, + }, + }, + id: Identifier { + type: "Identifier", + name: "_", + + range: [6, 7], + loc: { + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + superClass: null, + + range: [0, 93], + loc: { + start: { column: 0, line: 1 }, + end: { column: 1, line: 5 }, + }, + }, + ], + sourceType: "script", + + range: [0, 94], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 6 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/method-const-modifiers/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/method-const-modifiers/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..878dac619e26 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/method-const-modifiers/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,356 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter method-const-modifiers Babel - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "class", + + range: [0, 5], + loc: { + start: { column: 0, line: 1 }, + end: { column: 5, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "_", + + range: [6, 7], + loc: { + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [8, 9], + loc: { + start: { column: 8, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "method", + + range: [12, 18], + loc: { + start: { column: 2, line: 2 }, + end: { column: 8, line: 2 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [18, 19], + loc: { + start: { column: 8, line: 2 }, + end: { column: 9, line: 2 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [19, 24], + loc: { + start: { column: 9, line: 2 }, + end: { column: 14, line: 2 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [25, 26], + loc: { + start: { column: 15, line: 2 }, + end: { column: 16, line: 2 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [26, 27], + loc: { + start: { column: 16, line: 2 }, + end: { column: 17, line: 2 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "(", + + range: [27, 28], + loc: { + start: { column: 17, line: 2 }, + end: { column: 18, line: 2 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [28, 29], + loc: { + start: { column: 18, line: 2 }, + end: { column: 19, line: 2 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [30, 31], + loc: { + start: { column: 20, line: 2 }, + end: { column: 21, line: 2 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [31, 32], + loc: { + start: { column: 21, line: 2 }, + end: { column: 22, line: 2 }, + }, + }, + Identifier { + type: "Identifier", + value: "method", + + range: [35, 41], + loc: { + start: { column: 2, line: 3 }, + end: { column: 8, line: 3 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [41, 42], + loc: { + start: { column: 8, line: 3 }, + end: { column: 9, line: 3 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [42, 47], + loc: { + start: { column: 9, line: 3 }, + end: { column: 14, line: 3 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [48, 49], + loc: { + start: { column: 15, line: 3 }, + end: { column: 16, line: 3 }, + }, + }, + Keyword { + type: "Keyword", + value: "extends", + + range: [50, 57], + loc: { + start: { column: 17, line: 3 }, + end: { column: 24, line: 3 }, + }, + }, + Identifier { + type: "Identifier", + value: "U", + + range: [58, 59], + loc: { + start: { column: 25, line: 3 }, + end: { column: 26, line: 3 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [59, 60], + loc: { + start: { column: 26, line: 3 }, + end: { column: 27, line: 3 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "(", + + range: [60, 61], + loc: { + start: { column: 27, line: 3 }, + end: { column: 28, line: 3 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [61, 62], + loc: { + start: { column: 28, line: 3 }, + end: { column: 29, line: 3 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [63, 64], + loc: { + start: { column: 30, line: 3 }, + end: { column: 31, line: 3 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [64, 65], + loc: { + start: { column: 31, line: 3 }, + end: { column: 32, line: 3 }, + }, + }, + Identifier { + type: "Identifier", + value: "method", + + range: [68, 74], + loc: { + start: { column: 2, line: 4 }, + end: { column: 8, line: 4 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "<", + + range: [74, 75], + loc: { + start: { column: 8, line: 4 }, + end: { column: 9, line: 4 }, + }, + }, + Identifier { + type: "Identifier", + value: "T", + + range: [75, 76], + loc: { + start: { column: 9, line: 4 }, + end: { column: 10, line: 4 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ",", + + range: [76, 77], + loc: { + start: { column: 10, line: 4 }, + end: { column: 11, line: 4 }, + }, + }, + Keyword { + type: "Keyword", + value: "const", + + range: [78, 83], + loc: { + start: { column: 12, line: 4 }, + end: { column: 17, line: 4 }, + }, + }, + Identifier { + type: "Identifier", + value: "U", + + range: [84, 85], + loc: { + start: { column: 18, line: 4 }, + end: { column: 19, line: 4 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + + range: [85, 86], + loc: { + start: { column: 19, line: 4 }, + end: { column: 20, line: 4 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "(", + + range: [86, 87], + loc: { + start: { column: 20, line: 4 }, + end: { column: 21, line: 4 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ")", + + range: [87, 88], + loc: { + start: { column: 21, line: 4 }, + end: { column: 22, line: 4 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [89, 90], + loc: { + start: { column: 23, line: 4 }, + end: { column: 24, line: 4 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [90, 91], + loc: { + start: { column: 24, line: 4 }, + end: { column: 25, line: 4 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [92, 93], + loc: { + start: { column: 0, line: 5 }, + end: { column: 1, line: 5 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/method-const-modifiers/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/method-const-modifiers/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..14bbb7928aa3 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/method-const-modifiers/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,342 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter method-const-modifiers AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ClassDeclaration { + type: 'ClassDeclaration', + body: ClassBody { + type: 'ClassBody', + body: Array [ + MethodDefinition { + type: 'MethodDefinition', + computed: false, + key: Identifier { + type: 'Identifier', + name: 'method', + + range: [12, 18], + loc: { + start: { column: 2, line: 2 }, + end: { column: 8, line: 2 }, + }, + }, + kind: 'method', +- override: false, + static: false, + value: FunctionExpression { + type: 'FunctionExpression', + async: false, + body: BlockStatement { + type: 'BlockStatement', + body: Array [], + + range: [30, 32], + loc: { + start: { column: 20, line: 2 }, + end: { column: 22, line: 2 }, + }, + }, + expression: false, + generator: false, + id: null, + params: Array [], + typeParameters: TSTypeParameterDeclaration { + type: 'TSTypeParameterDeclaration', + params: Array [ + TSTypeParameter { + type: 'TSTypeParameter', + const: true, +- in: false, +- name: Identifier { +- type: 'Identifier', +- name: 'T', +- +- range: [25, 26], +- loc: { +- start: { column: 15, line: 2 }, +- end: { column: 16, line: 2 }, +- }, +- }, +- out: false, ++ name: 'T', + + range: [19, 26], + loc: { + start: { column: 9, line: 2 }, + end: { column: 16, line: 2 }, + }, + }, + ], + + range: [18, 27], + loc: { + start: { column: 8, line: 2 }, + end: { column: 17, line: 2 }, + }, + }, + +- range: [18, 32], ++ range: [27, 32], + loc: { +- start: { column: 8, line: 2 }, ++ start: { column: 17, line: 2 }, + end: { column: 22, line: 2 }, + }, + }, + + range: [12, 32], + loc: { + start: { column: 2, line: 2 }, + end: { column: 22, line: 2 }, + }, + }, + MethodDefinition { + type: 'MethodDefinition', + computed: false, + key: Identifier { + type: 'Identifier', + name: 'method', + + range: [35, 41], + loc: { + start: { column: 2, line: 3 }, + end: { column: 8, line: 3 }, + }, + }, + kind: 'method', +- override: false, + static: false, + value: FunctionExpression { + type: 'FunctionExpression', + async: false, + body: BlockStatement { + type: 'BlockStatement', + body: Array [], + + range: [63, 65], + loc: { + start: { column: 30, line: 3 }, + end: { column: 32, line: 3 }, + }, + }, + expression: false, + generator: false, + id: null, + params: Array [], + typeParameters: TSTypeParameterDeclaration { + type: 'TSTypeParameterDeclaration', + params: Array [ + TSTypeParameter { + type: 'TSTypeParameter', + const: true, + constraint: TSTypeReference { + type: 'TSTypeReference', + typeName: Identifier { + type: 'Identifier', + name: 'U', + + range: [58, 59], + loc: { + start: { column: 25, line: 3 }, + end: { column: 26, line: 3 }, + }, + }, + + range: [58, 59], + loc: { + start: { column: 25, line: 3 }, + end: { column: 26, line: 3 }, + }, + }, +- in: false, +- name: Identifier { +- type: 'Identifier', +- name: 'T', +- +- range: [48, 49], +- loc: { +- start: { column: 15, line: 3 }, +- end: { column: 16, line: 3 }, +- }, +- }, +- out: false, ++ name: 'T', + + range: [42, 59], + loc: { + start: { column: 9, line: 3 }, + end: { column: 26, line: 3 }, + }, + }, + ], + + range: [41, 60], + loc: { + start: { column: 8, line: 3 }, + end: { column: 27, line: 3 }, + }, + }, + +- range: [41, 65], ++ range: [60, 65], + loc: { +- start: { column: 8, line: 3 }, ++ start: { column: 27, line: 3 }, + end: { column: 32, line: 3 }, + }, + }, + + range: [35, 65], + loc: { + start: { column: 2, line: 3 }, + end: { column: 32, line: 3 }, + }, + }, + MethodDefinition { + type: 'MethodDefinition', + computed: false, + key: Identifier { + type: 'Identifier', + name: 'method', + + range: [68, 74], + loc: { + start: { column: 2, line: 4 }, + end: { column: 8, line: 4 }, + }, + }, + kind: 'method', +- override: false, + static: false, + value: FunctionExpression { + type: 'FunctionExpression', + async: false, + body: BlockStatement { + type: 'BlockStatement', + body: Array [], + + range: [89, 91], + loc: { + start: { column: 23, line: 4 }, + end: { column: 25, line: 4 }, + }, + }, + expression: false, + generator: false, + id: null, + params: Array [], + typeParameters: TSTypeParameterDeclaration { + type: 'TSTypeParameterDeclaration', + params: Array [ + TSTypeParameter { + type: 'TSTypeParameter', +- const: false, +- in: false, +- name: Identifier { +- type: 'Identifier', +- name: 'T', +- +- range: [75, 76], +- loc: { +- start: { column: 9, line: 4 }, +- end: { column: 10, line: 4 }, +- }, +- }, +- out: false, ++ name: 'T', + + range: [75, 76], + loc: { + start: { column: 9, line: 4 }, + end: { column: 10, line: 4 }, + }, + }, + TSTypeParameter { + type: 'TSTypeParameter', + const: true, +- in: false, +- name: Identifier { +- type: 'Identifier', +- name: 'U', +- +- range: [84, 85], +- loc: { +- start: { column: 18, line: 4 }, +- end: { column: 19, line: 4 }, +- }, +- }, +- out: false, ++ name: 'U', + + range: [78, 85], + loc: { + start: { column: 12, line: 4 }, + end: { column: 19, line: 4 }, + }, + }, + ], + + range: [74, 86], + loc: { + start: { column: 8, line: 4 }, + end: { column: 20, line: 4 }, + }, + }, + +- range: [74, 91], ++ range: [86, 91], + loc: { +- start: { column: 8, line: 4 }, ++ start: { column: 20, line: 4 }, + end: { column: 25, line: 4 }, + }, + }, + + range: [68, 91], + loc: { + start: { column: 2, line: 4 }, + end: { column: 25, line: 4 }, + }, + }, + ], + + range: [8, 93], + loc: { + start: { column: 8, line: 1 }, + end: { column: 1, line: 5 }, + }, + }, + id: Identifier { + type: 'Identifier', + name: '_', + + range: [6, 7], + loc: { + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + superClass: null, + + range: [0, 93], + loc: { + start: { column: 0, line: 1 }, + end: { column: 1, line: 5 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 94], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 6 }, + }, + }" +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/method-const-modifiers/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/method-const-modifiers/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..bceb93e84d35 --- /dev/null +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/method-const-modifiers/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special TSTypeParameter method-const-modifiers AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/special/TSTypeParameter/spec.ts b/packages/ast-spec/src/special/TSTypeParameter/spec.ts index 7487e4f56177..1d0bc76f127d 100644 --- a/packages/ast-spec/src/special/TSTypeParameter/spec.ts +++ b/packages/ast-spec/src/special/TSTypeParameter/spec.ts @@ -10,4 +10,5 @@ export interface TSTypeParameter extends BaseNode { default?: TypeNode; in: boolean; out: boolean; + const: boolean; } diff --git a/packages/ast-spec/tests/fixtures-with-differences-ast.shot b/packages/ast-spec/tests/fixtures-with-differences-ast.shot index 7602cbedcdc1..4b7b8657e760 100644 --- a/packages/ast-spec/tests/fixtures-with-differences-ast.shot +++ b/packages/ast-spec/tests/fixtures-with-differences-ast.shot @@ -7,6 +7,8 @@ Set { "declaration/ClassDeclaration/fixtures/type-param/fixture.ts", "declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/fixture.ts", "declaration/ClassDeclaration/fixtures/with-member-one/fixture.ts", + "declaration/ExportAllDeclaration/fixtures/kind-type/fixture.ts", + "declaration/ExportAllDeclaration/fixtures/type-kind/fixture.ts", "declaration/ExportNamedDeclaration/fixtures/aliased/fixture.ts", "declaration/ExportNamedDeclaration/fixtures/declare-function/fixture.ts", "declaration/ExportNamedDeclaration/fixtures/identifier-braced/fixture.ts", @@ -121,6 +123,7 @@ Set { "legacy-fixtures/basics/fixtures/export-type-as/fixture.ts", "legacy-fixtures/basics/fixtures/export-type-from-as/fixture.ts", "legacy-fixtures/basics/fixtures/export-type-from/fixture.ts", + "legacy-fixtures/basics/fixtures/export-type-star-from/fixture.ts", "legacy-fixtures/basics/fixtures/export-type/fixture.ts", "legacy-fixtures/basics/fixtures/function-anonymus-with-type-parameters/fixture.ts", "legacy-fixtures/basics/fixtures/function-with-type-parameters-that-have-comments/fixture.ts", @@ -232,5 +235,30 @@ Set { "legacy-fixtures/types/fixtures/tuple-optional/fixture.ts", "legacy-fixtures/types/fixtures/typeof-this/fixture.ts", "legacy-fixtures/types/fixtures/union-intersection/fixture.ts", + "special/TSTypeParameter/fixtures/arrow-const-modifier-extends/fixture.ts", + "special/TSTypeParameter/fixtures/arrow-const-modifier/fixture.ts", + "special/TSTypeParameter/fixtures/class-decl-const-in-modifier/fixture.ts", + "special/TSTypeParameter/fixtures/class-decl-const-modifier-extends/fixture.ts", + "special/TSTypeParameter/fixtures/class-decl-const-modifier-multiple/fixture.ts", + "special/TSTypeParameter/fixtures/class-decl-const-modifier/fixture.ts", + "special/TSTypeParameter/fixtures/class-decl-in-const-modifier/fixture.ts", + "special/TSTypeParameter/fixtures/class-expr-const-in-modifier/fixture.ts", + "special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/fixture.ts", + "special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/fixture.ts", + "special/TSTypeParameter/fixtures/class-expr-const-modifier/fixture.ts", + "special/TSTypeParameter/fixtures/class-expr-in-const-modifier/fixture.ts", + "special/TSTypeParameter/fixtures/declare-func-const-modifier/fixture.ts", + "special/TSTypeParameter/fixtures/func-decl-const-modifier-extends/fixture.ts", + "special/TSTypeParameter/fixtures/func-decl-const-modifier-multiple/fixture.ts", + "special/TSTypeParameter/fixtures/func-decl-const-modifier/fixture.ts", + "special/TSTypeParameter/fixtures/func-expr-const-modifier-extends/fixture.ts", + "special/TSTypeParameter/fixtures/func-expr-const-modifier-multiple/fixture.ts", + "special/TSTypeParameter/fixtures/func-expr-const-modifier/fixture.ts", + "special/TSTypeParameter/fixtures/interface-const-in-modifier-multiple/fixture.ts", + "special/TSTypeParameter/fixtures/interface-const-modifier-extends/fixture.ts", + "special/TSTypeParameter/fixtures/interface-const-modifier-multiple/fixture.ts", + "special/TSTypeParameter/fixtures/interface-const-modifier/fixture.ts", + "special/TSTypeParameter/fixtures/interface-in-const-modifier-multiple/fixture.ts", + "special/TSTypeParameter/fixtures/method-const-modifiers/fixture.ts", } `; diff --git a/packages/ast-spec/tests/fixtures-with-differences-errors.shot b/packages/ast-spec/tests/fixtures-with-differences-errors.shot index b57d165dd07d..bdb34fe6b4b3 100644 --- a/packages/ast-spec/tests/fixtures-with-differences-errors.shot +++ b/packages/ast-spec/tests/fixtures-with-differences-errors.shot @@ -1,13 +1,11 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures List fixtures with Error differences 1`] = ` -Object { +{ "Babel errored but TSESTree didn't": Set { "declaration/ClassDeclaration/fixtures/_error_/implements-non-identifier/fixture.ts", "declaration/ClassDeclaration/fixtures/_error_/missing-extends-type-param/fixture.ts", "declaration/ClassDeclaration/fixtures/_error_/missing-type-param/fixture.ts", - "declaration/ExportAllDeclaration/fixtures/_error_/kind-type/fixture.ts", - "declaration/ExportAllDeclaration/fixtures/_error_/type-kind/fixture.ts", "declaration/ExportNamedDeclaration/fixtures/_error_/anonymous-class/fixture.ts", "declaration/ExportNamedDeclaration/fixtures/_error_/assertion/fixture.ts", "declaration/FunctionDeclaration/fixtures/_error_/missing-type-param/fixture.ts", @@ -36,7 +34,6 @@ Object { "legacy-fixtures/basics/fixtures/_error_/export-named-enum-computed-number/fixture.ts", "legacy-fixtures/basics/fixtures/_error_/export-named-enum-computed-string/fixture.ts", "legacy-fixtures/basics/fixtures/_error_/export-named-enum-computed-var-ref/fixture.ts", - "legacy-fixtures/basics/fixtures/_error_/export-type-star-from/fixture.ts", "legacy-fixtures/basics/fixtures/_error_/export-with-import-assertions/fixture.ts", "legacy-fixtures/basics/fixtures/_error_/import-type-error/fixture.ts", "legacy-fixtures/basics/fixtures/_error_/interface-with-construct-signature-with-parameter-accessibility/fixture.ts", diff --git a/packages/ast-spec/tests/fixtures-with-differences-tokens.shot b/packages/ast-spec/tests/fixtures-with-differences-tokens.shot index 78042128e16c..7a512bf413c5 100644 --- a/packages/ast-spec/tests/fixtures-with-differences-tokens.shot +++ b/packages/ast-spec/tests/fixtures-with-differences-tokens.shot @@ -124,5 +124,10 @@ Set { "legacy-fixtures/types/fixtures/typeof-with-type-parameters/fixture.ts", "legacy-fixtures/types/fixtures/typeof/fixture.ts", "legacy-fixtures/types/fixtures/union-intersection/fixture.ts", + "special/TSTypeParameter/fixtures/interface-const-in-modifier-multiple/fixture.ts", + "special/TSTypeParameter/fixtures/interface-const-modifier-extends/fixture.ts", + "special/TSTypeParameter/fixtures/interface-const-modifier-multiple/fixture.ts", + "special/TSTypeParameter/fixtures/interface-const-modifier/fixture.ts", + "special/TSTypeParameter/fixtures/interface-in-const-modifier-multiple/fixture.ts", } `; diff --git a/packages/eslint-plugin-internal/CHANGELOG.md b/packages/eslint-plugin-internal/CHANGELOG.md index 70b3dcdab1ec..0b55b4eca835 100644 --- a/packages/eslint-plugin-internal/CHANGELOG.md +++ b/packages/eslint-plugin-internal/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [5.55.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.54.1...v5.55.0) (2023-03-13) + +**Note:** Version bump only for package @typescript-eslint/eslint-plugin-internal + + + + + ## [5.54.1](https://github.com/typescript-eslint/typescript-eslint/compare/v5.54.0...v5.54.1) (2023-03-06) **Note:** Version bump only for package @typescript-eslint/eslint-plugin-internal diff --git a/packages/eslint-plugin-internal/package.json b/packages/eslint-plugin-internal/package.json index 5b8ce8788415..bfaadbf0bde5 100644 --- a/packages/eslint-plugin-internal/package.json +++ b/packages/eslint-plugin-internal/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/eslint-plugin-internal", - "version": "5.54.1", + "version": "5.55.0", "private": true, "main": "dist/index.js", "scripts": { @@ -14,9 +14,9 @@ }, "dependencies": { "@types/prettier": "*", - "@typescript-eslint/scope-manager": "5.54.1", - "@typescript-eslint/type-utils": "5.54.1", - "@typescript-eslint/utils": "5.54.1", + "@typescript-eslint/scope-manager": "5.55.0", + "@typescript-eslint/type-utils": "5.55.0", + "@typescript-eslint/utils": "5.55.0", "prettier": "*" } } diff --git a/packages/eslint-plugin-tslint/CHANGELOG.md b/packages/eslint-plugin-tslint/CHANGELOG.md index 392b13bcc252..145d1f8bfb12 100644 --- a/packages/eslint-plugin-tslint/CHANGELOG.md +++ b/packages/eslint-plugin-tslint/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [5.55.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.54.1...v5.55.0) (2023-03-13) + +**Note:** Version bump only for package @typescript-eslint/eslint-plugin-tslint + + + + + ## [5.54.1](https://github.com/typescript-eslint/typescript-eslint/compare/v5.54.0...v5.54.1) (2023-03-06) **Note:** Version bump only for package @typescript-eslint/eslint-plugin-tslint diff --git a/packages/eslint-plugin-tslint/package.json b/packages/eslint-plugin-tslint/package.json index 0db186480772..9854304604dd 100644 --- a/packages/eslint-plugin-tslint/package.json +++ b/packages/eslint-plugin-tslint/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/eslint-plugin-tslint", - "version": "5.54.1", + "version": "5.55.0", "main": "dist/index.js", "typings": "src/index.ts", "description": "ESLint plugin that wraps a TSLint configuration and lints the whole source using TSLint", @@ -38,7 +38,7 @@ "typecheck": "tsc -p tsconfig.json --noEmit" }, "dependencies": { - "@typescript-eslint/utils": "5.54.1", + "@typescript-eslint/utils": "5.55.0", "lodash": "^4.17.21" }, "peerDependencies": { @@ -48,6 +48,6 @@ }, "devDependencies": { "@types/lodash": "*", - "@typescript-eslint/parser": "5.54.1" + "@typescript-eslint/parser": "5.55.0" } } diff --git a/packages/eslint-plugin/CHANGELOG.md b/packages/eslint-plugin/CHANGELOG.md index c40f186cd4d5..39d3ee933f27 100644 --- a/packages/eslint-plugin/CHANGELOG.md +++ b/packages/eslint-plugin/CHANGELOG.md @@ -3,6 +3,27 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [5.55.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.54.1...v5.55.0) (2023-03-13) + + +### Bug Fixes + +* **eslint-plugin:** [no-confusing-void-expression] check sequence expressions for void is in last position ([#6597](https://github.com/typescript-eslint/typescript-eslint/issues/6597)) ([d73d7d3](https://github.com/typescript-eslint/typescript-eslint/commit/d73d7d3904a088e2bf7127240dd1f1cefe325e69)) +* **eslint-plugin:** [no-unnecessary-boolean-literal-compare] fixer should handle parentheses ([#6569](https://github.com/typescript-eslint/typescript-eslint/issues/6569)) ([2d8c196](https://github.com/typescript-eslint/typescript-eslint/commit/2d8c196294bcbe4989e310ec056a1a9000967600)) + + +### Features + +* **eslint-plugin:** [lines-around-comment] add extension rule ([#5327](https://github.com/typescript-eslint/typescript-eslint/issues/5327)) ([d55211c](https://github.com/typescript-eslint/typescript-eslint/commit/d55211caf63e4731f103e94237b3449e88322bb9)) +* **eslint-plugin:** [member-ordering] add support for grouping readonly fields ([#6349](https://github.com/typescript-eslint/typescript-eslint/issues/6349)) ([9d3bdfc](https://github.com/typescript-eslint/typescript-eslint/commit/9d3bdfcb2fe3d2b2c0b82d9587d52f0e2ef4e344)) +* **eslint-plugin:** [no-unnecessary-cond] check logical assignments ([#6594](https://github.com/typescript-eslint/typescript-eslint/issues/6594)) ([dbc203a](https://github.com/typescript-eslint/typescript-eslint/commit/dbc203aeb64833a4d67bc62a578aa5533083af3d)) +* update TypeScript to 5.0 RC ([#6570](https://github.com/typescript-eslint/typescript-eslint/issues/6570)) ([36ef0e1](https://github.com/typescript-eslint/typescript-eslint/commit/36ef0e16f31810c27dda299e739d1610b689d3ad)) +* use [@eslint-community](https://github.com/eslint-community) dependencies ([#6603](https://github.com/typescript-eslint/typescript-eslint/issues/6603)) ([5f6ed73](https://github.com/typescript-eslint/typescript-eslint/commit/5f6ed738a2b8c08878999e24477e3c206a0ade1b)) + + + + + ## [5.54.1](https://github.com/typescript-eslint/typescript-eslint/compare/v5.54.0...v5.54.1) (2023-03-06) **Note:** Version bump only for package @typescript-eslint/eslint-plugin diff --git a/packages/eslint-plugin/docs/rules/lines-around-comment.md b/packages/eslint-plugin/docs/rules/lines-around-comment.md new file mode 100644 index 000000000000..602503230328 --- /dev/null +++ b/packages/eslint-plugin/docs/rules/lines-around-comment.md @@ -0,0 +1,41 @@ +--- +description: 'Require empty lines around comments.' +--- + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/lines-around-comment** for documentation. + +## Rule Details + +This rule extends the base [`eslint/lines-around-comment`](https://eslint.org/docs/rules/lines-around-comment) rule. +It adds support for TypeScript syntax. + +See the [ESLint documentation](https://eslint.org/docs/rules/lines-around-comment) for more details on the `comma-dangle` rule. + +## Rule Changes + +```jsonc +{ + // note you must disable the base rule as it can report incorrect errors + "lines-around-comment": "off", + "@typescript-eslint/lines-around-comment": ["error"] +} +``` + +In addition to the options supported by the `lines-around-comment` rule in ESLint core, the rule adds the following options: + +## Options + +- `allowInterfaceStart: true` doesn't require a blank line after the interface body block start +- `allowInterfaceEnd: true` doesn't require a blank line before the interface body block end +- `allowTypeStart: true` doesn't require a blank line after the type literal block start +- `allowTypeEnd: true` doesn't require a blank line after the type literal block end + +[See the other options allowed](https://eslint.org/docs/rules/comma-dangle#options) + + + +Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/main/docs/rules/lines-around-comment.md) + + diff --git a/packages/eslint-plugin/docs/rules/member-ordering.md b/packages/eslint-plugin/docs/rules/member-ordering.md index 919ec88186ff..b4d1e217b2c9 100644 --- a/packages/eslint-plugin/docs/rules/member-ordering.md +++ b/packages/eslint-plugin/docs/rules/member-ordering.md @@ -58,7 +58,7 @@ The supported member attributes are, in order: - **Accessibility** (`'public' | 'protected' | 'private' | '#private'`) - **Decoration** (`'decorated'`): Whether the member has an explicit accessibility decorator -- **Kind** (`'call-signature' | 'constructor' | 'field' | 'get' | 'method' | 'set' | 'signature'`) +- **Kind** (`'call-signature' | 'constructor' | 'field' | 'readonly-field' | 'get' | 'method' | 'set' | 'signature' | 'readonly-signature'`) Member attributes may be joined with a `'-'` to combine into more specific groups. For example, `'public-field'` would come before `'private-field'`. @@ -1014,37 +1014,60 @@ The most explicit and granular form is the following: [ // Index signature "signature", + "readonly-signature", // Fields "public-static-field", + "public-static-readonly-field", "protected-static-field", + "protected-static-readonly-field", "private-static-field", + "private-static-readonly-field", "#private-static-field", + "#private-static-readonly-field", "public-decorated-field", + "public-decorated-readonly-field", "protected-decorated-field", + "protected-decorated-readonly-field", "private-decorated-field", + "private-decorated-readonly-field", "public-instance-field", + "public-instance-readonly-field", "protected-instance-field", + "protected-instance-readonly-field", "private-instance-field", + "private-instance-readonly-field", "#private-instance-field", + "#private-instance-readonly-field", "public-abstract-field", + "public-abstract-readonly-field", "protected-abstract-field", + "protected-abstract-readonly-field", "public-field", + "public-readonly-field", "protected-field", + "protected-readonly-field", "private-field", + "private-readonly-field" "#private-field", + "#private-readonly-field" "static-field", + "static-readonly-field", "instance-field", + "instance-readonly-field" "abstract-field", + "abstract-readonly-field", "decorated-field", + "decorated-readonly-field", "field", + "readonly-field", // Static initialization "static-initialization", @@ -1290,6 +1313,22 @@ The third grouping option is to ignore both scope and accessibility. ] ``` +### Member Group Types (Readonly Fields) + +It is possible to group fields by their `readonly` modifiers. + +```jsonc +[ + // Index signature + "readonly-signature", + "signature", + + // Fields + "readonly-field", // = ["public-static-readonly-field", "protected-static-readonly-field", "private-static-readonly-field", "public-instance-readonly-field", "protected-instance-readonly-field", "private-instance-readonly-field", "public-abstract-readonly-field", "protected-abstract-readonly-field"] + "field" // = ["public-static-field", "protected-static-field", "private-static-field", "public-instance-field", "protected-instance-field", "private-instance-field", "public-abstract-field", "protected-abstract-field"] +] +``` + ### Grouping Different Member Types at the Same Rank It is also possible to group different member types at the same rank. diff --git a/packages/eslint-plugin/docs/rules/prefer-function-type.md b/packages/eslint-plugin/docs/rules/prefer-function-type.md index 5ec8490a4879..a8aca65f296b 100644 --- a/packages/eslint-plugin/docs/rules/prefer-function-type.md +++ b/packages/eslint-plugin/docs/rules/prefer-function-type.md @@ -85,3 +85,8 @@ type Intersection = ((data: string) => number) & ((id: number) => string); ## When Not To Use It If you specifically want to use an interface or type literal with a single call signature for stylistic reasons, you can disable this rule. + +This rule has a known edge case of sometimes triggering on global augmentations such as `interface Function`. +These edge cases are rare and often symptomatic of odd code. +We recommend you use an [inline ESLint disable comment](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1). +See [#454](https://github.com/typescript-eslint/typescript-eslint/issues/454) for details. diff --git a/packages/eslint-plugin/package.json b/packages/eslint-plugin/package.json index 5aaf65c6f07a..0dbe9415a608 100644 --- a/packages/eslint-plugin/package.json +++ b/packages/eslint-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/eslint-plugin", - "version": "5.54.1", + "version": "5.55.0", "description": "TypeScript plugin for ESLint", "keywords": [ "eslint", @@ -44,14 +44,14 @@ "typecheck": "tsc -p tsconfig.json --noEmit" }, "dependencies": { - "@typescript-eslint/scope-manager": "5.54.1", - "@typescript-eslint/type-utils": "5.54.1", - "@typescript-eslint/utils": "5.54.1", + "@eslint-community/regexpp": "^4.4.0", + "@typescript-eslint/scope-manager": "5.55.0", + "@typescript-eslint/type-utils": "5.55.0", + "@typescript-eslint/utils": "5.55.0", "debug": "^4.3.4", "grapheme-splitter": "^1.0.4", "ignore": "^5.2.0", "natural-compare-lite": "^1.4.0", - "regexpp": "^3.2.0", "semver": "^7.3.7", "tsutils": "^3.21.0" }, diff --git a/packages/eslint-plugin/src/configs/all.ts b/packages/eslint-plugin/src/configs/all.ts index 7a99a4830255..63ce9b1305a9 100644 --- a/packages/eslint-plugin/src/configs/all.ts +++ b/packages/eslint-plugin/src/configs/all.ts @@ -43,6 +43,8 @@ export = { '@typescript-eslint/key-spacing': 'error', 'keyword-spacing': 'off', '@typescript-eslint/keyword-spacing': 'error', + 'lines-around-comment': 'off', + '@typescript-eslint/lines-around-comment': 'error', 'lines-between-class-members': 'off', '@typescript-eslint/lines-between-class-members': 'error', '@typescript-eslint/member-delimiter-style': 'error', diff --git a/packages/eslint-plugin/src/rules/index.ts b/packages/eslint-plugin/src/rules/index.ts index 7dc5488142ea..e1d871103ec9 100644 --- a/packages/eslint-plugin/src/rules/index.ts +++ b/packages/eslint-plugin/src/rules/index.ts @@ -25,6 +25,7 @@ import indent from './indent'; import initDeclarations from './init-declarations'; import keySpacing from './key-spacing'; import keywordSpacing from './keyword-spacing'; +import linesAroundComment from './lines-around-comment'; import linesBetweenClassMembers from './lines-between-class-members'; import memberDelimiterStyle from './member-delimiter-style'; import memberOrdering from './member-ordering'; @@ -160,6 +161,7 @@ export default { 'init-declarations': initDeclarations, 'key-spacing': keySpacing, 'keyword-spacing': keywordSpacing, + 'lines-around-comment': linesAroundComment, 'lines-between-class-members': linesBetweenClassMembers, 'member-delimiter-style': memberDelimiterStyle, 'member-ordering': memberOrdering, diff --git a/packages/eslint-plugin/src/rules/lines-around-comment.ts b/packages/eslint-plugin/src/rules/lines-around-comment.ts new file mode 100644 index 000000000000..478667040c5a --- /dev/null +++ b/packages/eslint-plugin/src/rules/lines-around-comment.ts @@ -0,0 +1,456 @@ +import type { TSESTree } from '@typescript-eslint/utils'; +import { AST_NODE_TYPES, AST_TOKEN_TYPES } from '@typescript-eslint/utils'; + +import * as util from '../util'; +import { getESLintCoreRule } from '../util/getESLintCoreRule'; + +const baseRule = getESLintCoreRule('lines-around-comment'); + +export type Options = util.InferOptionsTypeFromRule; +export type MessageIds = util.InferMessageIdsTypeFromRule; + +const COMMENTS_IGNORE_PATTERN = + /^\s*(?:eslint|jshint\s+|jslint\s+|istanbul\s+|globals?\s+|exported\s+|jscs)/u; + +/** + * @returns an array with with any line numbers that are empty. + */ +function getEmptyLineNums(lines: string[]): number[] { + const emptyLines = lines + .map((line, i) => ({ + code: line.trim(), + num: i + 1, + })) + .filter(line => !line.code) + .map(line => line.num); + + return emptyLines; +} + +/** + * @returns an array with with any line numbers that contain comments. + */ +function getCommentLineNums(comments: TSESTree.Comment[]): number[] { + const lines: number[] = []; + + comments.forEach(token => { + const start = token.loc.start.line; + const end = token.loc.end.line; + + lines.push(start, end); + }); + return lines; +} + +export default util.createRule({ + name: 'lines-around-comment', + meta: { + type: 'layout', + docs: { + description: 'Require empty lines around comments', + recommended: false, + extendsBaseRule: true, + }, + schema: { + type: 'array', + items: [ + { + type: 'object', + properties: { + beforeBlockComment: { + type: 'boolean', + default: true, + }, + afterBlockComment: { + type: 'boolean', + default: false, + }, + beforeLineComment: { + type: 'boolean', + default: false, + }, + afterLineComment: { + type: 'boolean', + default: false, + }, + allowBlockStart: { + type: 'boolean', + default: false, + }, + allowBlockEnd: { + type: 'boolean', + default: false, + }, + allowClassStart: { + type: 'boolean', + }, + allowClassEnd: { + type: 'boolean', + }, + allowObjectStart: { + type: 'boolean', + }, + allowObjectEnd: { + type: 'boolean', + }, + allowArrayStart: { + type: 'boolean', + }, + allowArrayEnd: { + type: 'boolean', + }, + allowInterfaceStart: { + type: 'boolean', + }, + allowInterfaceEnd: { + type: 'boolean', + }, + allowTypeStart: { + type: 'boolean', + }, + allowTypeEnd: { + type: 'boolean', + }, + allowEnumStart: { + type: 'boolean', + }, + allowEnumEnd: { + type: 'boolean', + }, + allowModuleStart: { + type: 'boolean', + }, + allowModuleEnd: { + type: 'boolean', + }, + ignorePattern: { + type: 'string', + }, + applyDefaultIgnorePatterns: { + type: 'boolean', + }, + }, + additionalProperties: false, + }, + ], + }, + fixable: baseRule.meta.fixable, + hasSuggestions: baseRule.meta.hasSuggestions, + messages: baseRule.meta.messages, + }, + defaultOptions: [ + { + beforeBlockComment: true, + }, + ], + create(context, [_options]) { + const options = _options!; + const defaultIgnoreRegExp = COMMENTS_IGNORE_PATTERN; + const customIgnoreRegExp = new RegExp(options.ignorePattern ?? '', 'u'); + + const sourceCode = context.getSourceCode(); + const comments = sourceCode.getAllComments(); + + const lines = sourceCode.lines; + const commentLines = getCommentLineNums(comments); + const emptyLines = getEmptyLineNums(lines); + const commentAndEmptyLines = new Set(commentLines.concat(emptyLines)); + + /** + * @returns whether comments are on lines starting with or ending with code. + */ + function codeAroundComment(token: TSESTree.Token): boolean { + let currentToken: TSESTree.Token | null = token; + + do { + currentToken = sourceCode.getTokenBefore(currentToken, { + includeComments: true, + }); + } while (currentToken && util.isCommentToken(currentToken)); + + if (currentToken && util.isTokenOnSameLine(currentToken, token)) { + return true; + } + + currentToken = token; + do { + currentToken = sourceCode.getTokenAfter(currentToken, { + includeComments: true, + }); + } while (currentToken && util.isCommentToken(currentToken)); + + if (currentToken && util.isTokenOnSameLine(token, currentToken)) { + return true; + } + + return false; + } + + /** + * @returns whether comments are inside a node type. + */ + function isParentNodeType( + parent: TSESTree.Node, + nodeType: T, + ): parent is Extract { + return parent.type === nodeType; + } + + /** + * @returns the parent node that contains the given token. + */ + function getParentNodeOfToken(token: TSESTree.Token): TSESTree.Node | null { + const node = sourceCode.getNodeByRangeIndex(token.range[0]); + + return node; + } + + /** + * @returns whether comments are at the parent start. + */ + function isCommentAtParentStart( + token: TSESTree.Token, + nodeType: TSESTree.AST_NODE_TYPES, + ): boolean { + const parent = getParentNodeOfToken(token); + + if (parent && isParentNodeType(parent, nodeType)) { + const parentStartNodeOrToken = parent; + + return ( + token.loc.start.line - parentStartNodeOrToken.loc.start.line === 1 + ); + } + + return false; + } + + /** + * @returns whether comments are at the parent end. + */ + function isCommentAtParentEnd( + token: TSESTree.Token, + nodeType: TSESTree.AST_NODE_TYPES, + ): boolean { + const parent = getParentNodeOfToken(token); + + return ( + !!parent && + isParentNodeType(parent, nodeType) && + parent.loc.end.line - token.loc.end.line === 1 + ); + } + + function isCommentAtInterfaceStart(token: TSESTree.Comment): boolean { + return isCommentAtParentStart(token, AST_NODE_TYPES.TSInterfaceBody); + } + + function isCommentAtInterfaceEnd(token: TSESTree.Comment): boolean { + return isCommentAtParentEnd(token, AST_NODE_TYPES.TSInterfaceBody); + } + + function isCommentAtTypeStart(token: TSESTree.Comment): boolean { + return isCommentAtParentStart(token, AST_NODE_TYPES.TSTypeLiteral); + } + + function isCommentAtTypeEnd(token: TSESTree.Comment): boolean { + return isCommentAtParentEnd(token, AST_NODE_TYPES.TSTypeLiteral); + } + + function isCommentAtEnumStart(token: TSESTree.Comment): boolean { + return isCommentAtParentStart(token, AST_NODE_TYPES.TSEnumDeclaration); + } + + function isCommentAtEnumEnd(token: TSESTree.Comment): boolean { + return isCommentAtParentEnd(token, AST_NODE_TYPES.TSEnumDeclaration); + } + + function isCommentAtModuleStart(token: TSESTree.Comment): boolean { + return isCommentAtParentStart(token, AST_NODE_TYPES.TSModuleBlock); + } + + function isCommentAtModuleEnd(token: TSESTree.Comment): boolean { + return isCommentAtParentEnd(token, AST_NODE_TYPES.TSModuleBlock); + } + + function isCommentNearTSConstruct(token: TSESTree.Comment): boolean { + return ( + isCommentAtInterfaceStart(token) || + isCommentAtInterfaceEnd(token) || + isCommentAtTypeStart(token) || + isCommentAtTypeEnd(token) || + isCommentAtEnumStart(token) || + isCommentAtEnumEnd(token) || + isCommentAtModuleStart(token) || + isCommentAtModuleEnd(token) + ); + } + + function checkForEmptyLine( + token: TSESTree.Comment, + { before, after }: { before?: boolean; after?: boolean }, + ): void { + // the base rule handles comments away from TS constructs blocks correctly, we skip those + if (!isCommentNearTSConstruct(token)) { + return; + } + + if ( + options.applyDefaultIgnorePatterns !== false && + defaultIgnoreRegExp.test(token.value) + ) { + return; + } + + if (options.ignorePattern && customIgnoreRegExp.test(token.value)) { + return; + } + + const prevLineNum = token.loc.start.line - 1; + const nextLineNum = token.loc.end.line + 1; + + // we ignore all inline comments + if (codeAroundComment(token)) { + return; + } + + const interfaceStartAllowed = + Boolean(options.allowInterfaceStart) && + isCommentAtInterfaceStart(token); + const interfaceEndAllowed = + Boolean(options.allowInterfaceEnd) && isCommentAtInterfaceEnd(token); + const typeStartAllowed = + Boolean(options.allowTypeStart) && isCommentAtTypeStart(token); + const typeEndAllowed = + Boolean(options.allowTypeEnd) && isCommentAtTypeEnd(token); + const enumStartAllowed = + Boolean(options.allowEnumStart) && isCommentAtEnumStart(token); + const enumEndAllowed = + Boolean(options.allowEnumEnd) && isCommentAtEnumEnd(token); + const moduleStartAllowed = + Boolean(options.allowModuleStart) && isCommentAtModuleStart(token); + const moduleEndAllowed = + Boolean(options.allowModuleEnd) && isCommentAtModuleEnd(token); + + const exceptionStartAllowed = + interfaceStartAllowed || + typeStartAllowed || + enumStartAllowed || + moduleStartAllowed; + const exceptionEndAllowed = + interfaceEndAllowed || + typeEndAllowed || + enumEndAllowed || + moduleEndAllowed; + + const previousTokenOrComment = sourceCode.getTokenBefore(token, { + includeComments: true, + }); + const nextTokenOrComment = sourceCode.getTokenAfter(token, { + includeComments: true, + }); + + // check for newline before + if ( + !exceptionStartAllowed && + before && + !commentAndEmptyLines.has(prevLineNum) && + !( + util.isCommentToken(previousTokenOrComment!) && + util.isTokenOnSameLine(previousTokenOrComment, token) + ) + ) { + const lineStart = token.range[0] - token.loc.start.column; + const range = [lineStart, lineStart] as const; + + context.report({ + node: token, + messageId: 'before', + fix(fixer) { + return fixer.insertTextBeforeRange(range, '\n'); + }, + }); + } + + // check for newline after + if ( + !exceptionEndAllowed && + after && + !commentAndEmptyLines.has(nextLineNum) && + !( + util.isCommentToken(nextTokenOrComment!) && + util.isTokenOnSameLine(token, nextTokenOrComment) + ) + ) { + context.report({ + node: token, + messageId: 'after', + fix(fixer) { + return fixer.insertTextAfter(token, '\n'); + }, + }); + } + } + + /** + * A custom report function for the baseRule to ignore false positive errors + * caused by TS-specific codes + */ + const customReport: typeof context.report = descriptor => { + if ('node' in descriptor) { + if ( + descriptor.node.type === AST_TOKEN_TYPES.Line || + descriptor.node.type === AST_TOKEN_TYPES.Block + ) { + if (isCommentNearTSConstruct(descriptor.node)) { + return; + } + } + } + return context.report(descriptor); + }; + + const customContext = { report: customReport }; + + // we can't directly proxy `context` because its `report` property is non-configurable + // and non-writable. So we proxy `customContext` and redirect all + // property access to the original context except for `report` + const proxiedContext = new Proxy( + customContext as typeof context, + { + get(target, path, receiver): unknown { + if (path !== 'report') { + return Reflect.get(context, path, receiver); + } + return Reflect.get(target, path, receiver); + }, + }, + ); + + const rules = baseRule.create(proxiedContext); + + return { + Program(): void { + rules.Program(); + + comments.forEach(token => { + if (token.type === AST_TOKEN_TYPES.Line) { + if (options.beforeLineComment || options.afterLineComment) { + checkForEmptyLine(token, { + after: options.afterLineComment, + before: options.beforeLineComment, + }); + } + } else if (token.type === AST_TOKEN_TYPES.Block) { + if (options.beforeBlockComment || options.afterBlockComment) { + checkForEmptyLine(token, { + after: options.afterBlockComment, + before: options.beforeBlockComment, + }); + } + } + }); + }, + }; + }, +}); diff --git a/packages/eslint-plugin/src/rules/member-ordering.ts b/packages/eslint-plugin/src/rules/member-ordering.ts index f8db5ade0caf..f6b76c4bfad4 100644 --- a/packages/eslint-plugin/src/rules/member-ordering.ts +++ b/packages/eslint-plugin/src/rules/member-ordering.ts @@ -9,9 +9,12 @@ export type MessageIds = | 'incorrectOrder' | 'incorrectRequiredMembersOrder'; +type ReadonlyType = 'readonly-field' | 'readonly-signature'; + type MemberKind = | 'call-signature' | 'constructor' + | ReadonlyType | 'field' | 'get' | 'method' @@ -19,9 +22,17 @@ type MemberKind = | 'signature' | 'static-initialization'; -type DecoratedMemberKind = 'field' | 'method' | 'get' | 'set'; +type DecoratedMemberKind = + | Exclude + | 'field' + | 'method' + | 'get' + | 'set'; -type NonCallableMemberKind = Exclude; +type NonCallableMemberKind = Exclude< + MemberKind, + 'constructor' | 'signature' | 'readonly-signature' +>; type MemberScope = 'static' | 'instance' | 'abstract'; @@ -31,7 +42,7 @@ type BaseMemberType = | MemberKind | `${Accessibility}-${Exclude< MemberKind, - 'signature' | 'static-initialization' + 'signature' | 'readonly-signature' | 'static-initialization' >}` | `${Accessibility}-decorated-${DecoratedMemberKind}` | `decorated-${DecoratedMemberKind}` @@ -258,7 +269,9 @@ export const defaultOrder: MemberType[] = [ const allMemberTypes = Array.from( ( [ + 'readonly-signature', 'signature', + 'readonly-field', 'field', 'method', 'call-signature', @@ -273,6 +286,7 @@ const allMemberTypes = Array.from( (['public', 'protected', 'private', '#private'] as const).forEach( accessibility => { if ( + type !== 'readonly-signature' && type !== 'signature' && type !== 'static-initialization' && type !== 'call-signature' && @@ -284,7 +298,8 @@ const allMemberTypes = Array.from( // Only class instance fields, methods, get and set can have decorators attached to them if ( accessibility !== '#private' && - (type === 'field' || + (type === 'readonly-field' || + type === 'field' || type === 'method' || type === 'get' || type === 'set') @@ -295,6 +310,7 @@ const allMemberTypes = Array.from( if ( type !== 'constructor' && + type !== 'readonly-signature' && type !== 'signature' && type !== 'call-signature' ) { @@ -340,15 +356,17 @@ function getNodeType(node: Member): MemberKind | null { case AST_NODE_TYPES.TSConstructSignatureDeclaration: return 'constructor'; case AST_NODE_TYPES.TSAbstractPropertyDefinition: - return 'field'; + return node.readonly ? 'readonly-field' : 'field'; case AST_NODE_TYPES.PropertyDefinition: return node.value && functionExpressions.includes(node.value.type) ? 'method' + : node.readonly + ? 'readonly-field' : 'field'; case AST_NODE_TYPES.TSPropertySignature: - return 'field'; + return node.readonly ? 'readonly-field' : 'field'; case AST_NODE_TYPES.TSIndexSignature: - return 'signature'; + return node.readonly ? 'readonly-signature' : 'signature'; case AST_NODE_TYPES.StaticBlock: return 'static-initialization'; default: @@ -514,27 +532,50 @@ function getRank( const decorated = 'decorators' in node && node.decorators!.length > 0; if ( decorated && - (type === 'field' || + (type === 'readonly-field' || + type === 'field' || type === 'method' || type === 'get' || type === 'set') ) { memberGroups.push(`${accessibility}-decorated-${type}`); memberGroups.push(`decorated-${type}`); + + if (type === 'readonly-field') { + memberGroups.push(`${accessibility}-decorated-field`); + memberGroups.push(`decorated-field`); + } } - if (type !== 'signature' && type !== 'static-initialization') { + if ( + type !== 'readonly-signature' && + type !== 'signature' && + type !== 'static-initialization' + ) { if (type !== 'constructor') { // Constructors have no scope memberGroups.push(`${accessibility}-${scope}-${type}`); memberGroups.push(`${scope}-${type}`); + + if (type === 'readonly-field') { + memberGroups.push(`${accessibility}-${scope}-field`); + memberGroups.push(`${scope}-field`); + } } memberGroups.push(`${accessibility}-${type}`); + if (type === 'readonly-field') { + memberGroups.push(`${accessibility}-field`); + } } } memberGroups.push(type); + if (type === 'readonly-signature') { + memberGroups.push('signature'); + } else if (type === 'readonly-field') { + memberGroups.push('field'); + } // ...then get the rank order for those member groups based on the node return getRankOrder(memberGroups, orderConfig); @@ -621,15 +662,43 @@ export default util.createRule({ interfaces: { oneOf: [ neverConfig, - arrayConfig(['signature', 'field', 'method', 'constructor']), - objectConfig(['signature', 'field', 'method', 'constructor']), + arrayConfig([ + 'readonly-signature', + 'signature', + 'readonly-field', + 'field', + 'method', + 'constructor', + ]), + objectConfig([ + 'readonly-signature', + 'signature', + 'readonly-field', + 'field', + 'method', + 'constructor', + ]), ], }, typeLiterals: { oneOf: [ neverConfig, - arrayConfig(['signature', 'field', 'method', 'constructor']), - objectConfig(['signature', 'field', 'method', 'constructor']), + arrayConfig([ + 'readonly-signature', + 'signature', + 'readonly-field', + 'field', + 'method', + 'constructor', + ]), + objectConfig([ + 'readonly-signature', + 'signature', + 'readonly-field', + 'field', + 'method', + 'constructor', + ]), ], }, }, diff --git a/packages/eslint-plugin/src/rules/no-confusing-void-expression.ts b/packages/eslint-plugin/src/rules/no-confusing-void-expression.ts index 01e5b45dbb8b..62945ac689b4 100644 --- a/packages/eslint-plugin/src/rules/no-confusing-void-expression.ts +++ b/packages/eslint-plugin/src/rules/no-confusing-void-expression.ts @@ -205,6 +205,7 @@ export default util.createRule({ suggest: [{ messageId: 'voidExprWrapVoid', fix: wrapVoidFix }], }); } + context.report({ node, messageId: 'invalidVoidExpr', @@ -225,6 +226,11 @@ export default util.createRule({ node.parent, util.NullThrowsReasons.MissingParent, ); + if (parent.type === AST_NODE_TYPES.SequenceExpression) { + if (node !== parent.expressions[parent.expressions.length - 1]) { + return null; + } + } if (parent.type === AST_NODE_TYPES.ExpressionStatement) { // e.g. `{ console.log("foo"); }` diff --git a/packages/eslint-plugin/src/rules/no-explicit-any.ts b/packages/eslint-plugin/src/rules/no-explicit-any.ts index 6823a3c7bcdd..65b253a8a33f 100644 --- a/packages/eslint-plugin/src/rules/no-explicit-any.ts +++ b/packages/eslint-plugin/src/rules/no-explicit-any.ts @@ -83,7 +83,7 @@ export default util.createRule({ function isNodeRestElementInFunction(node: TSESTree.Node): boolean { return ( node.type === AST_NODE_TYPES.RestElement && - typeof node.parent !== 'undefined' && + node.parent !== undefined && isNodeValidFunction(node.parent) ); } @@ -110,7 +110,7 @@ export default util.createRule({ function isNodeValidArrayTSTypeReference(node: TSESTree.Node): boolean { return ( node.type === AST_NODE_TYPES.TSTypeReference && - typeof node.typeName !== 'undefined' && + node.typeName !== undefined && node.typeName.type === AST_NODE_TYPES.Identifier && ['Array', 'ReadonlyArray'].includes(node.typeName.name) ); diff --git a/packages/eslint-plugin/src/rules/no-redundant-type-constituents.ts b/packages/eslint-plugin/src/rules/no-redundant-type-constituents.ts index 33237a8ae4e2..bc8fc8a4a3f5 100644 --- a/packages/eslint-plugin/src/rules/no-redundant-type-constituents.ts +++ b/packages/eslint-plugin/src/rules/no-redundant-type-constituents.ts @@ -82,6 +82,10 @@ function describeLiteralType(type: ts.Type): string { return JSON.stringify(type.value); } + if (util.isTypeBigIntLiteralType(type)) { + return `${type.value.negative ? '-' : ''}${type.value.base10Value}n`; + } + if (type.isLiteral()) { return type.value.toString(); } @@ -102,10 +106,6 @@ function describeLiteralType(type: ts.Type): string { return 'template literal type'; } - if (util.isTypeBigIntLiteralType(type)) { - return `${type.value.negative ? '-' : ''}${type.value.base10Value}n`; - } - if (tsutils.isBooleanLiteralType(type, true)) { return 'true'; } diff --git a/packages/eslint-plugin/src/rules/no-unnecessary-boolean-literal-compare.ts b/packages/eslint-plugin/src/rules/no-unnecessary-boolean-literal-compare.ts index f874905b738b..f14b44fec275 100644 --- a/packages/eslint-plugin/src/rules/no-unnecessary-boolean-literal-compare.ts +++ b/packages/eslint-plugin/src/rules/no-unnecessary-boolean-literal-compare.ts @@ -24,7 +24,6 @@ interface BooleanComparison { literalBooleanInComparison: boolean; forTruthy: boolean; negated: boolean; - range: [number, number]; } interface BooleanComparisonWithTypeInformation extends BooleanComparison { @@ -82,6 +81,7 @@ export default util.createRule({ create(context, [options]) { const parserServices = util.getParserServices(context); const checker = parserServices.program.getTypeChecker(); + const sourceCode = context.getSourceCode(); function getBooleanComparison( node: TSESTree.BinaryExpression, @@ -185,10 +185,6 @@ export default util.createRule({ forTruthy: literalBooleanInComparison ? !negated : negated, expression, negated, - range: - expression.range[0] < against.range[0] - ? [expression.range[1], against.range[1]] - : [against.range[0], expression.range[0]], }; } @@ -227,7 +223,10 @@ export default util.createRule({ context.report({ fix: function* (fixer) { - yield fixer.removeRange(comparison.range); + yield fixer.replaceText( + node, + sourceCode.getText(comparison.expression), + ); // if the expression `exp` isn't nullable, or we're comparing to `true`, // we can just replace the entire comparison with `exp` or `!exp` @@ -237,6 +236,10 @@ export default util.createRule({ ) { if (!comparison.forTruthy) { yield fixer.insertTextBefore(node, '!'); + if (!util.isStrongPrecedenceNode(comparison.expression)) { + yield fixer.insertTextBefore(node, '('); + yield fixer.insertTextAfter(node, ')'); + } } return; } diff --git a/packages/eslint-plugin/src/rules/no-unnecessary-condition.ts b/packages/eslint-plugin/src/rules/no-unnecessary-condition.ts index 4951e281af4e..6af9bc0e9e09 100644 --- a/packages/eslint-plugin/src/rules/no-unnecessary-condition.ts +++ b/packages/eslint-plugin/src/rules/no-unnecessary-condition.ts @@ -636,7 +636,20 @@ export default createRule({ checkOptionalChain(node, node.callee, ''); } + function checkAssignmentExpression( + node: TSESTree.AssignmentExpression, + ): void { + // Similar to checkLogicalExpressionForUnnecessaryConditionals, since + // a ||= b is equivalent to a || (a = b) + if (['||=', '&&='].includes(node.operator)) { + checkNode(node.left); + } else if (node.operator === '??=') { + checkNodeForNullish(node.left); + } + } + return { + AssignmentExpression: checkAssignmentExpression, BinaryExpression: checkIfBinaryExpressionIsNecessaryConditional, CallExpression: checkCallExpression, ConditionalExpression: (node): void => checkNode(node.test), diff --git a/packages/eslint-plugin/src/rules/no-unnecessary-qualifier.ts b/packages/eslint-plugin/src/rules/no-unnecessary-qualifier.ts index 632ad6c5ba0f..3d0541ac453f 100644 --- a/packages/eslint-plugin/src/rules/no-unnecessary-qualifier.ts +++ b/packages/eslint-plugin/src/rules/no-unnecessary-qualifier.ts @@ -81,7 +81,7 @@ export default util.createRule({ const namespaceSymbol = checker.getSymbolAtLocation(tsQualifier); if ( - typeof namespaceSymbol === 'undefined' || + namespaceSymbol === undefined || !symbolIsNamespaceInScope(namespaceSymbol) ) { return false; @@ -89,7 +89,7 @@ export default util.createRule({ const accessedSymbol = checker.getSymbolAtLocation(tsName); - if (typeof accessedSymbol === 'undefined') { + if (accessedSymbol === undefined) { return false; } @@ -101,8 +101,7 @@ export default util.createRule({ ); return ( - typeof fromScope === 'undefined' || - symbolsAreEqual(accessedSymbol, fromScope) + fromScope === undefined || symbolsAreEqual(accessedSymbol, fromScope) ); } diff --git a/packages/eslint-plugin/src/rules/prefer-function-type.ts b/packages/eslint-plugin/src/rules/prefer-function-type.ts index db5dde69d001..66c3ed0162f5 100644 --- a/packages/eslint-plugin/src/rules/prefer-function-type.ts +++ b/packages/eslint-plugin/src/rules/prefer-function-type.ts @@ -79,7 +79,7 @@ export default util.createRule({ if ( (member.type === AST_NODE_TYPES.TSCallSignatureDeclaration || member.type === AST_NODE_TYPES.TSConstructSignatureDeclaration) && - typeof member.returnType !== 'undefined' + member.returnType !== undefined ) { if ( tsThisTypes?.length && @@ -123,7 +123,7 @@ export default util.createRule({ } if (node.type === AST_NODE_TYPES.TSInterfaceDeclaration) { - if (typeof node.typeParameters !== 'undefined') { + if (node.typeParameters !== undefined) { suggestion = `type ${sourceCode .getText() .slice( diff --git a/packages/eslint-plugin/src/rules/prefer-includes.ts b/packages/eslint-plugin/src/rules/prefer-includes.ts index 720d5fbe8092..e0b5719a5108 100644 --- a/packages/eslint-plugin/src/rules/prefer-includes.ts +++ b/packages/eslint-plugin/src/rules/prefer-includes.ts @@ -1,7 +1,7 @@ +import type { AST as RegExpAST } from '@eslint-community/regexpp'; +import { parseRegExpLiteral } from '@eslint-community/regexpp'; import type { TSESLint, TSESTree } from '@typescript-eslint/utils'; import { AST_NODE_TYPES } from '@typescript-eslint/utils'; -import type { AST as RegExpAST } from 'regexpp'; -import { parseRegExpLiteral } from 'regexpp'; import * as ts from 'typescript'; import { diff --git a/packages/eslint-plugin/src/rules/prefer-string-starts-ends-with.ts b/packages/eslint-plugin/src/rules/prefer-string-starts-ends-with.ts index 104637062bb6..6548468430c3 100644 --- a/packages/eslint-plugin/src/rules/prefer-string-starts-ends-with.ts +++ b/packages/eslint-plugin/src/rules/prefer-string-starts-ends-with.ts @@ -1,7 +1,7 @@ +import type { AST as RegExpAST } from '@eslint-community/regexpp'; +import { RegExpParser } from '@eslint-community/regexpp'; import type { TSESLint, TSESTree } from '@typescript-eslint/utils'; import { AST_NODE_TYPES } from '@typescript-eslint/utils'; -import type { AST as RegExpAST } from 'regexpp'; -import { RegExpParser } from 'regexpp'; import { createRule, diff --git a/packages/eslint-plugin/src/util/getESLintCoreRule.ts b/packages/eslint-plugin/src/util/getESLintCoreRule.ts index ae68a317e080..96785ad6f152 100644 --- a/packages/eslint-plugin/src/util/getESLintCoreRule.ts +++ b/packages/eslint-plugin/src/util/getESLintCoreRule.ts @@ -15,6 +15,7 @@ interface RuleMap { 'init-declarations': typeof import('eslint/lib/rules/init-declarations'); 'key-spacing': typeof import('eslint/lib/rules/key-spacing'); 'keyword-spacing': typeof import('eslint/lib/rules/keyword-spacing'); + 'lines-around-comment': typeof import('eslint/lib/rules/lines-around-comment'); 'lines-between-class-members': typeof import('eslint/lib/rules/lines-between-class-members'); 'no-dupe-args': typeof import('eslint/lib/rules/no-dupe-args'); 'no-dupe-class-members': typeof import('eslint/lib/rules/no-dupe-class-members'); diff --git a/packages/eslint-plugin/src/util/getWrappingFixer.ts b/packages/eslint-plugin/src/util/getWrappingFixer.ts index 0f867033b047..73203cf8cdfc 100644 --- a/packages/eslint-plugin/src/util/getWrappingFixer.ts +++ b/packages/eslint-plugin/src/util/getWrappingFixer.ts @@ -69,7 +69,7 @@ export function getWrappingFixer( /** * Check if a node will always have the same precedence if it's parent changes. */ -function isStrongPrecedenceNode(innerNode: TSESTree.Node): boolean { +export function isStrongPrecedenceNode(innerNode: TSESTree.Node): boolean { return ( innerNode.type === AST_NODE_TYPES.Literal || innerNode.type === AST_NODE_TYPES.Identifier || diff --git a/packages/eslint-plugin/tests/rules/lines-around-comment.test.ts b/packages/eslint-plugin/tests/rules/lines-around-comment.test.ts new file mode 100644 index 000000000000..a312bb19cd0a --- /dev/null +++ b/packages/eslint-plugin/tests/rules/lines-around-comment.test.ts @@ -0,0 +1,1053 @@ +import { AST_TOKEN_TYPES } from '@typescript-eslint/utils'; + +import rule from '../../src/rules/lines-around-comment'; +import { RuleTester } from '../RuleTester'; +import { unIndent } from './indent/utils'; + +const ruleTester = new RuleTester({ + parser: '@typescript-eslint/parser', +}); + +ruleTester.run('lines-around-comment', rule, { + valid: [ + // Interface + { + code: unIndent` +interface A { + // line + a: string; +} +`, + options: [ + { + beforeLineComment: true, + allowInterfaceStart: true, + }, + ], + }, + { + code: unIndent` +interface A { + /* block + comment */ + a: string; +} +`, + options: [ + { + beforeBlockComment: true, + allowInterfaceStart: true, + }, + ], + }, + { + code: unIndent` +interface A { + a: string; + // line +} +`, + options: [ + { + afterLineComment: true, + allowInterfaceEnd: true, + }, + ], + }, + { + code: unIndent` +interface A { + a: string; + /* block + comment */ +} +`, + options: [ + { + beforeBlockComment: false, + afterBlockComment: true, + allowInterfaceEnd: true, + }, + ], + }, + // Type + { + code: unIndent` +type A = { + // line + a: string; +} +`, + options: [ + { + beforeLineComment: true, + allowTypeStart: true, + }, + ], + }, + { + code: unIndent` +type A = { + /* block + comment */ + a: string; +} +`, + options: [ + { + beforeBlockComment: true, + allowTypeStart: true, + }, + ], + }, + { + code: unIndent` +type A = { + a: string; + // line +} +`, + options: [ + { + afterLineComment: true, + allowTypeEnd: true, + }, + ], + }, + { + code: unIndent` +type A = { + a: string; + /* block + comment */ +} +`, + options: [ + { + beforeBlockComment: false, + afterBlockComment: true, + allowTypeEnd: true, + }, + ], + }, + + // Enum + { + code: unIndent` +enum A { + // line + a, +} +`, + options: [ + { + beforeLineComment: true, + allowEnumStart: true, + }, + ], + }, + { + code: unIndent` +enum A { + /* block + comment */ + a, +} +`, + options: [ + { + beforeBlockComment: true, + allowEnumStart: true, + }, + ], + }, + { + code: unIndent` +enum A { + a, + // line +} +`, + options: [ + { + afterLineComment: true, + allowEnumEnd: true, + }, + ], + }, + { + code: unIndent` +enum A { + a, + /* block + comment */ +} +`, + options: [ + { + beforeBlockComment: false, + afterBlockComment: true, + allowEnumEnd: true, + }, + ], + }, + + // TS module + { + code: unIndent` +declare module A { + // line + const a: string; +} +`, + options: [ + { + beforeLineComment: true, + allowModuleStart: true, + }, + ], + }, + { + code: unIndent` +declare module A { + /* block + comment */ + const a: string; +} +`, + options: [ + { + beforeBlockComment: true, + allowModuleStart: true, + }, + ], + }, + { + code: unIndent` +declare module A { + const a: string; + // line +} +`, + options: [ + { + afterLineComment: true, + allowModuleEnd: true, + }, + ], + }, + { + code: unIndent` +declare module A { + const a: string; + /* block + comment */ +} +`, + options: [ + { + beforeBlockComment: false, + afterBlockComment: true, + allowModuleEnd: true, + }, + ], + }, + // ignorePattern + { + code: + 'interface A {' + + 'foo: string;\n\n' + + '/* eslint-disable no-underscore-dangle */\n\n' + + '_values: 2;\n' + + '_values2: true;\n' + + '/* eslint-enable no-underscore-dangle */\n' + + 'bar: boolean' + + '}', + options: [ + { + beforeBlockComment: true, + afterBlockComment: true, + }, + ], + }, + ` +interface A { + foo; + /* eslint */ +} + `, + ` +interface A { + foo; + /* jshint */ +} + `, + ` +interface A { + foo; + /* jslint */ +} + `, + ` +interface A { + foo; + /* istanbul */ +} + `, + ` +interface A { + foo; + /* global */ +} + `, + ` +interface A { + foo; + /* globals */ +} + `, + ` +interface A { + foo; + /* exported */ +} + `, + ` +interface A { + foo; + /* jscs */ +} + `, + { + code: ` +interface A { + foo: boolean; + /* this is pragmatic */ +} + `, + options: [{ ignorePattern: 'pragma' }], + }, + { + code: ` +interface A { + foo; + /* this is pragmatic */ +} + `, + options: [{ applyDefaultIgnorePatterns: false, ignorePattern: 'pragma' }], + }, + { + code: ` +interface A { + foo: string; // this is inline line comment +} + `, + options: [{ beforeLineComment: true }], + }, + { + code: ` +interface A { + foo: string /* this is inline block comment */; +} + `, + }, + { + code: ` +interface A { + /* this is inline block comment */ foo: string; +} + `, + }, + { + code: ` +interface A { + /* this is inline block comment */ foo: string /* this is inline block comment */; +} + `, + }, + { + code: ` +interface A { + /* this is inline block comment */ foo: string; // this is inline line comment ; +} + `, + }, + ], + invalid: [ + // ESLint base rule test to cover the usage of the original reporter + { + code: ` +bar(); +/** block block block + * block + */ +var a = 1; + `, + output: ` +bar(); + +/** block block block + * block + */ +var a = 1; + `, + errors: [{ messageId: 'before', type: AST_TOKEN_TYPES.Block }], + }, + + // interface + { + code: unIndent` +interface A { + a: string; + // line +} +`, + output: unIndent` +interface A { + a: string; + + // line +} +`, + options: [ + { + beforeLineComment: true, + allowInterfaceStart: true, + }, + ], + errors: [{ messageId: 'before', type: AST_TOKEN_TYPES.Line, line: 3 }], + }, + { + code: unIndent` +interface A { + a: string; + /* block + comment */ +} +`, + output: unIndent` +interface A { + a: string; + + /* block + comment */ +} +`, + options: [ + { + beforeBlockComment: true, + allowInterfaceStart: true, + }, + ], + errors: [{ messageId: 'before', type: AST_TOKEN_TYPES.Block, line: 3 }], + }, + { + code: unIndent` +interface A { + // line + a: string; +} +`, + output: unIndent` +interface A { + + // line + a: string; +} +`, + options: [ + { + beforeLineComment: true, + allowInterfaceStart: false, + }, + ], + errors: [{ messageId: 'before', type: AST_TOKEN_TYPES.Line, line: 2 }], + }, + { + code: unIndent` +interface A { + /* block + comment */ + a: string; +} +`, + output: unIndent` +interface A { + + /* block + comment */ + a: string; +} +`, + options: [ + { + beforeBlockComment: true, + allowInterfaceStart: false, + }, + ], + errors: [{ messageId: 'before', type: AST_TOKEN_TYPES.Block, line: 2 }], + }, + { + code: unIndent` +interface A { + a: string; + // line +} +`, + output: unIndent` +interface A { + a: string; + // line + +} +`, + options: [ + { + afterLineComment: true, + allowInterfaceEnd: false, + }, + ], + errors: [{ messageId: 'after', type: AST_TOKEN_TYPES.Line, line: 3 }], + }, + { + code: unIndent` +interface A { + a: string; + /* block + comment */ +} +`, + output: unIndent` +interface A { + a: string; + /* block + comment */ + +} +`, + options: [ + { + beforeBlockComment: false, + afterBlockComment: true, + allowInterfaceEnd: false, + }, + ], + errors: [{ messageId: 'after', type: AST_TOKEN_TYPES.Block, line: 3 }], + }, + + // type + { + code: unIndent` +type A = { + a: string; + // line +} +`, + output: unIndent` +type A = { + a: string; + + // line +} +`, + options: [ + { + beforeLineComment: true, + allowInterfaceStart: true, + }, + ], + errors: [{ messageId: 'before', type: AST_TOKEN_TYPES.Line, line: 3 }], + }, + { + code: unIndent` +type A = { + a: string; + /* block + comment */ +} +`, + output: unIndent` +type A = { + a: string; + + /* block + comment */ +} +`, + options: [ + { + beforeBlockComment: true, + allowInterfaceStart: true, + }, + ], + errors: [{ messageId: 'before', type: AST_TOKEN_TYPES.Block, line: 3 }], + }, + { + code: unIndent` +type A = { + // line + a: string; +} +`, + output: unIndent` +type A = { + + // line + a: string; +} +`, + options: [ + { + beforeLineComment: true, + allowInterfaceStart: false, + }, + ], + errors: [{ messageId: 'before', type: AST_TOKEN_TYPES.Line, line: 2 }], + }, + { + code: unIndent` +type A = { + /* block + comment */ + a: string; +} +`, + output: unIndent` +type A = { + + /* block + comment */ + a: string; +} +`, + options: [ + { + beforeBlockComment: true, + allowInterfaceStart: false, + }, + ], + errors: [{ messageId: 'before', type: AST_TOKEN_TYPES.Block, line: 2 }], + }, + { + code: unIndent` +type A = { + a: string; + // line +} +`, + output: unIndent` +type A = { + a: string; + // line + +} +`, + options: [ + { + afterLineComment: true, + allowInterfaceEnd: false, + }, + ], + errors: [{ messageId: 'after', type: AST_TOKEN_TYPES.Line, line: 3 }], + }, + { + code: unIndent` +type A = { + a: string; + /* block + comment */ +} +`, + output: unIndent` +type A = { + a: string; + /* block + comment */ + +} +`, + options: [ + { + beforeBlockComment: false, + afterBlockComment: true, + allowInterfaceEnd: false, + }, + ], + errors: [{ messageId: 'after', type: AST_TOKEN_TYPES.Block, line: 3 }], + }, + + // Enum + { + code: unIndent` +enum A { + a, + // line +} +`, + output: unIndent` +enum A { + a, + + // line +} +`, + options: [ + { + beforeLineComment: true, + allowEnumStart: true, + }, + ], + errors: [{ messageId: 'before', type: AST_TOKEN_TYPES.Line, line: 3 }], + }, + { + code: unIndent` +enum A { + a, + /* block + comment */ +} +`, + output: unIndent` +enum A { + a, + + /* block + comment */ +} +`, + options: [ + { + beforeBlockComment: true, + allowEnumStart: true, + }, + ], + errors: [{ messageId: 'before', type: AST_TOKEN_TYPES.Block, line: 3 }], + }, + { + code: unIndent` +enum A { + // line + a, +} +`, + output: unIndent` +enum A { + + // line + a, +} +`, + options: [ + { + beforeLineComment: true, + allowEnumStart: false, + }, + ], + errors: [{ messageId: 'before', type: AST_TOKEN_TYPES.Line, line: 2 }], + }, + { + code: unIndent` +enum A { + /* block + comment */ + a, +} +`, + output: unIndent` +enum A { + + /* block + comment */ + a, +} +`, + options: [ + { + beforeBlockComment: true, + allowEnumStart: false, + }, + ], + errors: [{ messageId: 'before', type: AST_TOKEN_TYPES.Block, line: 2 }], + }, + { + code: unIndent` +enum A { + a, + // line +} +`, + output: unIndent` +enum A { + a, + // line + +} +`, + options: [ + { + afterLineComment: true, + allowEnumEnd: false, + }, + ], + errors: [{ messageId: 'after', type: AST_TOKEN_TYPES.Line, line: 3 }], + }, + { + code: unIndent` +enum A { + a, + /* block + comment */ +} +`, + output: unIndent` +enum A { + a, + /* block + comment */ + +} +`, + options: [ + { + beforeBlockComment: false, + afterBlockComment: true, + allowEnumEnd: false, + }, + ], + errors: [{ messageId: 'after', type: AST_TOKEN_TYPES.Block, line: 3 }], + }, + + // TS module + { + code: unIndent` +module A { + const a: string; + // line +} +`, + output: unIndent` +module A { + const a: string; + + // line +} +`, + options: [ + { + beforeLineComment: true, + allowModuleStart: true, + }, + ], + errors: [{ messageId: 'before', type: AST_TOKEN_TYPES.Line, line: 3 }], + }, + { + code: unIndent` +module A { + const a: string; + /* block + comment */ +} +`, + output: unIndent` +module A { + const a: string; + + /* block + comment */ +} +`, + options: [ + { + beforeBlockComment: true, + allowModuleStart: true, + }, + ], + errors: [{ messageId: 'before', type: AST_TOKEN_TYPES.Block, line: 3 }], + }, + { + code: unIndent` +module A { + // line + const a: string; +} +`, + output: unIndent` +module A { + + // line + const a: string; +} +`, + options: [ + { + beforeLineComment: true, + allowModuleStart: false, + }, + ], + errors: [{ messageId: 'before', type: AST_TOKEN_TYPES.Line, line: 2 }], + }, + { + code: unIndent` +module A { + /* block + comment */ + const a: string; +} +`, + output: unIndent` +module A { + + /* block + comment */ + const a: string; +} +`, + options: [ + { + beforeBlockComment: true, + allowModuleStart: false, + }, + ], + errors: [{ messageId: 'before', type: AST_TOKEN_TYPES.Block, line: 2 }], + }, + { + code: unIndent` +module A { + const a: string; + // line +} +`, + output: unIndent` +module A { + const a: string; + // line + +} +`, + options: [ + { + afterLineComment: true, + allowModuleEnd: false, + }, + ], + errors: [{ messageId: 'after', type: AST_TOKEN_TYPES.Line, line: 3 }], + }, + { + code: unIndent` +module A { + const a: string; + /* block + comment */ +} +`, + output: unIndent` +module A { + const a: string; + /* block + comment */ + +} +`, + options: [ + { + beforeBlockComment: false, + afterBlockComment: true, + allowModuleEnd: false, + }, + ], + errors: [{ messageId: 'after', type: AST_TOKEN_TYPES.Block, line: 3 }], + }, + + // multiple comments in one line + { + code: unIndent` +interface A { + a: string; + /* block */ /* block */ +} +`, + output: unIndent` +interface A { + a: string; + + /* block */ /* block */ +} +`, + options: [ + { + beforeBlockComment: true, + allowInterfaceEnd: false, + }, + ], + errors: [{ messageId: 'before', type: AST_TOKEN_TYPES.Block, line: 3 }], + }, + { + code: unIndent` +interface A { + a: string; + /* block */ // line +} +`, + output: unIndent` +interface A { + a: string; + + /* block */ // line +} +`, + options: [ + { + beforeBlockComment: true, + allowInterfaceEnd: false, + }, + ], + errors: [{ messageId: 'before', type: AST_TOKEN_TYPES.Block, line: 3 }], + }, + { + code: unIndent` +interface A { + /* block */ /* block */ + a: string; +} +`, + output: unIndent` +interface A { + /* block */ /* block */ + + a: string; +} +`, + options: [ + { + beforeBlockComment: false, + afterBlockComment: true, + allowInterfaceStart: false, + }, + ], + errors: [{ messageId: 'after', type: AST_TOKEN_TYPES.Block, line: 2 }], + }, + { + code: unIndent` +interface A { + /* block */ // line + a: string; +} +`, + output: unIndent` +interface A { + /* block */ // line + + a: string; +} +`, + options: [ + { + beforeBlockComment: false, + afterLineComment: true, + allowInterfaceStart: false, + }, + ], + errors: [{ messageId: 'after', type: AST_TOKEN_TYPES.Line, line: 2 }], + }, + ], +}); diff --git a/packages/eslint-plugin/tests/rules/member-ordering.test.ts b/packages/eslint-plugin/tests/rules/member-ordering.test.ts index 3305bebfa8cd..89f499d697be 100644 --- a/packages/eslint-plugin/tests/rules/member-ordering.test.ts +++ b/packages/eslint-plugin/tests/rules/member-ordering.test.ts @@ -1648,6 +1648,365 @@ class Foo { }, ], }, + { + code: ` +class Foo { + readonly B: string; + readonly A: string; + constructor() {} + D: string; + C: string; + E(): void; + F(): void; +} + `, + options: [{ default: ['readonly-field', 'field'] }], + }, + { + code: ` +class Foo { + A: string; + B: string; + private readonly C: string; + private D: string; +} + `, + options: [ + { + default: ['public-field', 'private-readonly-field', 'private-field'], + }, + ], + }, + { + code: ` +class Foo { + private readonly A: string; + constructor() {} + private B: string; +} + `, + options: [ + { + default: ['private-readonly-field', 'constructor', 'private-field'], + }, + ], + }, + { + code: ` +class Foo { + public A: string; + private readonly B: string; +} + `, + options: [ + { + default: ['private-readonly-field', 'public-instance-field'], + classes: ['public-instance-field', 'private-readonly-field'], + }, + ], + }, + // class + ignore readonly + { + code: ` +class Foo { + public A(): string; + public B(): string; + public C(): string; + + d: string; + readonly e: string; + f: string; +} + `, + options: [ + { + default: ['public-method', 'field'], + }, + ], + }, + { + code: ` +class Foo { + private readonly A: string; + readonly B: string; + C: string; + constructor() {} + @Dec() private D: string; + private E(): void; + set F() {} + G(): void; +} + `, + options: [ + { + default: [ + 'readonly-field', + 'public-field', + 'constructor', + ['private-decorated-field', 'public-set', 'private-method'], + 'public-method', + ], + }, + ], + }, + { + code: ` +abstract class Foo { + public static readonly SA: string; + protected static readonly SB: string; + private static readonly SC: string; + static readonly #SD: string; + + public readonly IA: string; + protected readonly IB: string; + private readonly IC: string; + readonly #ID: string; + + public abstract readonly AA: string; + protected abstract readonly AB: string; + + @Dec public readonly DA: string; + @Dec protected readonly DB: string; + @Dec private readonly DC: string; +} + `, + options: [ + { + default: [ + 'public-static-readonly-field', + 'protected-static-readonly-field', + 'private-static-readonly-field', + '#private-static-readonly-field', + + 'static-readonly-field', + + 'public-instance-readonly-field', + 'protected-instance-readonly-field', + 'private-instance-readonly-field', + '#private-instance-readonly-field', + + 'instance-readonly-field', + + 'public-readonly-field', + 'protected-readonly-field', + 'private-readonly-field', + '#private-readonly-field', + + 'readonly-field', + + 'public-abstract-readonly-field', + 'protected-abstract-readonly-field', + + 'abstract-readonly-field', + + 'public-decorated-readonly-field', + 'protected-decorated-readonly-field', + 'private-decorated-readonly-field', + 'decorated-readonly-field', + ], + }, + ], + }, + { + code: ` +abstract class Foo { + @Dec public readonly DA: string; + @Dec protected readonly DB: string; + @Dec private readonly DC: string; + + public static readonly SA: string; + protected static readonly SB: string; + private static readonly SC: string; + static readonly #SD: string; + + public readonly IA: string; + protected readonly IB: string; + private readonly IC: string; + readonly #ID: string; + + public abstract readonly AA: string; + protected abstract readonly AB: string; +} + `, + options: [ + { + default: [ + 'decorated-readonly-field', + 'static-readonly-field', + 'instance-readonly-field', + 'abstract-readonly-field', + ], + }, + ], + }, + { + code: ` +abstract class Foo { + @Dec public readonly DA: string; + @Dec protected readonly DB: string; + @Dec private readonly DC: string; + + public static readonly SA: string; + public readonly IA: string; + public abstract readonly AA: string; + + protected static readonly SB: string; + protected readonly IB: string; + protected abstract readonly AB: string; + + private static readonly SC: string; + private readonly IC: string; + + static readonly #SD: string; + readonly #ID: string; +} + `, + options: [ + { + default: [ + 'decorated-readonly-field', + 'public-readonly-field', + 'protected-readonly-field', + 'private-readonly-field', + ], + }, + ], + }, + { + code: ` +abstract class Foo { + @Dec public readonly DA: string; + @Dec protected readonly DB: string; + @Dec private readonly DC: string; + + public static readonly SA: string; + public readonly IA: string; + static readonly #SD: string; + readonly #ID: string; + + protected static readonly SB: string; + protected readonly IB: string; + + private static readonly SC: string; + private readonly IC: string; + + public abstract readonly AA: string; + protected abstract readonly AB: string; +} + `, + options: [ + { + default: [ + 'decorated-readonly-field', + ['public-readonly-field', 'readonly-field'], + 'protected-readonly-field', + 'private-readonly-field', + 'abstract-readonly-field', + ], + }, + ], + }, + { + code: ` +abstract class Foo { + @Dec public readonly A: string; + @Dec public B: string; + + public readonly C: string; + public static readonly D: string; + public E: string; + public static F: string; + + static readonly #G: string; + readonly #H: string; + static #I: string; + #J: string; +} + `, + options: [ + { + default: [ + ['decorated-field', 'decorated-readonly-field'], + ['field', 'readonly-field'], + ['#private-field', '#private-readonly-field'], + ], + }, + ], + }, + { + code: ` +interface Foo { + readonly A: string; + readonly B: string; + + C: string; + D: string; +} + `, + options: [ + { + default: ['readonly-field', 'field'], + }, + ], + }, + { + code: ` +interface Foo { + readonly [i: string]: string; + readonly A: string; + + [i: number]: string; + B: string; +} + `, + options: [ + { + default: [ + 'readonly-signature', + 'readonly-field', + 'signature', + 'field', + ], + }, + ], + }, + { + code: ` +interface Foo { + readonly [i: string]: string; + [i: number]: string; + + readonly A: string; + B: string; +} + `, + options: [ + { + default: [ + 'readonly-signature', + 'signature', + 'readonly-field', + 'field', + ], + }, + ], + }, + { + code: ` +interface Foo { + readonly A: string; + B: string; + + [i: number]: string; + readonly [i: string]: string; +} + `, + options: [ + { + default: ['readonly-field', 'field', 'signature'], + }, + ], + }, ], invalid: [ { @@ -4410,6 +4769,254 @@ class Foo { }, ], }, + { + code: ` +// no accessibility === public +class Foo { + B: string; + readonly A: string = ''; + C: string = ''; + constructor() {} + D() {} + E() {} +} + `, + options: [{ default: ['readonly-field', 'field'] }], + errors: [ + { + messageId: 'incorrectGroupOrder', + data: { + name: 'A', + rank: 'field', + }, + line: 5, + column: 3, + }, + ], + }, + { + code: ` +class Foo { + A: string; + private C(): void; + constructor() {} + private readonly B: string; + set D() {} + E(): void; +} + `, + options: [ + { + default: [ + 'private-readonly-field', + 'public-field', + 'constructor', + ['public-set', 'private-method'], + 'public-method', + ], + }, + ], + errors: [ + { + messageId: 'incorrectGroupOrder', + data: { + name: 'constructor', + rank: 'public set, private method', + }, + line: 5, + column: 3, + }, + { + messageId: 'incorrectGroupOrder', + data: { + name: 'B', + rank: 'public field', + }, + line: 6, + column: 3, + }, + ], + }, + { + code: ` +abstract class Foo { + @Dec public readonly A: string; + public readonly B: string; + public static readonly C: string; + static readonly #D: string; + readonly #E: string; + + @Dec public F: string; + public G: string; + public static H: string; + static readonly #I: string; + readonly #J: string; +} + `, + options: [ + { + default: ['decorated-field', 'readonly-field', 'field'], + }, + ], + errors: [ + { + messageId: 'incorrectGroupOrder', + data: { + name: 'F', + rank: 'readonly field', + }, + line: 9, + column: 3, + }, + { + messageId: 'incorrectGroupOrder', + data: { + name: 'I', + rank: 'field', + }, + line: 12, + column: 3, + }, + { + messageId: 'incorrectGroupOrder', + data: { + name: 'J', + rank: 'field', + }, + line: 13, + column: 3, + }, + ], + }, + { + code: ` +abstract class Foo { + @Dec public readonly DA: string; + @Dec protected readonly DB: string; + @Dec private readonly DC: string; + + public static readonly SA: string; + protected static readonly SB: string; + private static readonly SC: string; + static readonly #SD: string; + + public readonly IA: string; + protected readonly IB: string; + private readonly IC: string; + readonly #ID: string; + + public abstract readonly AA: string; + protected abstract readonly AB: string; +} + `, + options: [ + { + default: [ + 'decorated-readonly-field', + 'abstract-readonly-field', + 'static-readonly-field', + 'instance-readonly-field', + ], + }, + ], + errors: [ + { + messageId: 'incorrectGroupOrder', + data: { + name: 'AA', + rank: 'static readonly field', + }, + line: 17, + column: 3, + }, + { + messageId: 'incorrectGroupOrder', + data: { + name: 'AB', + rank: 'static readonly field', + }, + line: 18, + column: 3, + }, + ], + }, + { + code: ` +interface Foo { + readonly A: string; + readonly B: string; + + C: string; + D: string; +} + `, + options: [ + { + default: ['field', 'readonly-field'], + }, + ], + errors: [ + { + messageId: 'incorrectGroupOrder', + data: { + name: 'C', + rank: 'readonly field', + }, + line: 6, + column: 3, + }, + { + messageId: 'incorrectGroupOrder', + data: { + name: 'D', + rank: 'readonly field', + }, + line: 7, + column: 3, + }, + ], + }, + { + code: ` +interface Foo { + [i: number]: string; + readonly [i: string]: string; + + A: string; + readonly B: string; +} + `, + options: [ + { + default: [ + 'readonly-signature', + 'signature', + 'readonly-field', + 'field', + ], + }, + ], + errors: [ + { + messageId: 'incorrectGroupOrder', + data: { + name: 'i', + rank: 'signature', + }, + line: 4, + column: 3, + }, + { + messageId: 'incorrectGroupOrder', + data: { + name: 'B', + rank: 'field', + }, + line: 7, + column: 3, + }, + ], + }, ], }; diff --git a/packages/eslint-plugin/tests/rules/no-confusing-void-expression.test.ts b/packages/eslint-plugin/tests/rules/no-confusing-void-expression.test.ts index ce79ce4966e7..b0133a10b3ce 100644 --- a/packages/eslint-plugin/tests/rules/no-confusing-void-expression.test.ts +++ b/packages/eslint-plugin/tests/rules/no-confusing-void-expression.test.ts @@ -57,6 +57,18 @@ ruleTester.run('no-confusing-void-expression', rule, { return void console.log('foo'); `, }), + ` +function cool(input: string) { + return console.log(input), input; +} + `, + { + code: ` +function cool(input: string) { + return input, console.log(input), input; +} + `, + }, ], invalid: [ @@ -87,6 +99,14 @@ ruleTester.run('no-confusing-void-expression', rule, { ], }), + { + code: ` +function notcool(input: string) { + return input, console.log(input); +} + `, + errors: [{ line: 3, column: 17, messageId: 'invalidVoidExpr' }], + }, { code: "() => console.log('foo');", errors: [{ line: 1, column: 7, messageId: 'invalidVoidExprArrow' }], diff --git a/packages/eslint-plugin/tests/rules/no-unnecessary-boolean-literal-compare.test.ts b/packages/eslint-plugin/tests/rules/no-unnecessary-boolean-literal-compare.test.ts index a519e5f11a0a..24dce35c7990 100644 --- a/packages/eslint-plugin/tests/rules/no-unnecessary-boolean-literal-compare.test.ts +++ b/packages/eslint-plugin/tests/rules/no-unnecessary-boolean-literal-compare.test.ts @@ -1,5 +1,5 @@ import rule from '../../src/rules/no-unnecessary-boolean-literal-compare'; -import { getFixturesRootDir, RuleTester } from '../RuleTester'; +import { getFixturesRootDir, noFormat, RuleTester } from '../RuleTester'; const rootDir = getFixturesRootDir(); const ruleTester = new RuleTester({ @@ -258,5 +258,107 @@ ruleTester.run('no-unnecessary-boolean-literal-compare', rule, { } `, }, + { + code: noFormat` + declare const x; + if ((x instanceof Error) === false) { + } + `, + errors: [ + { + messageId: 'direct', + }, + ], + output: ` + declare const x; + if (!(x instanceof Error)) { + } + `, + }, + { + code: noFormat` + declare const x; + if (false === (x instanceof Error)) { + } + `, + errors: [ + { + messageId: 'direct', + }, + ], + output: ` + declare const x; + if (!(x instanceof Error)) { + } + `, + }, + { + code: ` + declare const x; + if (x instanceof Error === false) { + } + `, + errors: [ + { + messageId: 'direct', + }, + ], + output: ` + declare const x; + if (!(x instanceof Error)) { + } + `, + }, + { + code: noFormat` + declare const x; + if (typeof x === 'string' === false) { + } + `, + errors: [ + { + messageId: 'direct', + }, + ], + output: ` + declare const x; + if (!(typeof x === 'string')) { + } + `, + }, + { + code: noFormat` + declare const x; + if (x instanceof Error === (false)) { + } + `, + errors: [ + { + messageId: 'direct', + }, + ], + output: ` + declare const x; + if (!(x instanceof Error)) { + } + `, + }, + { + code: noFormat` + declare const x; + if ((false) === x instanceof Error) { + } + `, + errors: [ + { + messageId: 'direct', + }, + ], + output: ` + declare const x; + if (!(x instanceof Error)) { + } + `, + }, ], }); diff --git a/packages/eslint-plugin/tests/rules/no-unnecessary-condition.test.ts b/packages/eslint-plugin/tests/rules/no-unnecessary-condition.test.ts index 96cad00c908b..e3647102305b 100644 --- a/packages/eslint-plugin/tests/rules/no-unnecessary-condition.test.ts +++ b/packages/eslint-plugin/tests/rules/no-unnecessary-condition.test.ts @@ -548,6 +548,18 @@ interface Foo { type OptionalFoo = Foo | undefined; declare const foo: OptionalFoo; foo?.[1]?.length; + `, + ` +declare let foo: number | null; +foo ??= 1; + `, + ` +declare let foo: number; +foo ||= 1; + `, + ` +declare let foo: number; +foo &&= 1; `, // https://github.com/typescript-eslint/typescript-eslint/issues/6264 ` @@ -1676,5 +1688,110 @@ function getElem(dict: Record, key: string) { }, ], }, + { + code: ` +declare let foo: {}; +foo ??= 1; + `, + errors: [ + { + messageId: 'neverNullish', + line: 3, + endLine: 3, + column: 1, + endColumn: 4, + }, + ], + }, + { + code: ` +declare let foo: number; +foo ??= 1; + `, + errors: [ + { + messageId: 'neverNullish', + line: 3, + endLine: 3, + column: 1, + endColumn: 4, + }, + ], + }, + { + code: ` +declare let foo: null; +foo ??= null; + `, + errors: [ + { + messageId: 'alwaysNullish', + line: 3, + endLine: 3, + column: 1, + endColumn: 4, + }, + ], + }, + { + code: ` +declare let foo: {}; +foo ||= 1; + `, + errors: [ + { + messageId: 'alwaysTruthy', + line: 3, + endLine: 3, + column: 1, + endColumn: 4, + }, + ], + }, + { + code: ` +declare let foo: null; +foo ||= null; + `, + errors: [ + { + messageId: 'alwaysFalsy', + line: 3, + endLine: 3, + column: 1, + endColumn: 4, + }, + ], + }, + { + code: ` +declare let foo: {}; +foo &&= 1; + `, + errors: [ + { + messageId: 'alwaysTruthy', + line: 3, + endLine: 3, + column: 1, + endColumn: 4, + }, + ], + }, + { + code: ` +declare let foo: null; +foo &&= null; + `, + errors: [ + { + messageId: 'alwaysFalsy', + line: 3, + endLine: 3, + column: 1, + endColumn: 4, + }, + ], + }, ], }); diff --git a/packages/eslint-plugin/typings/eslint-rules.d.ts b/packages/eslint-plugin/typings/eslint-rules.d.ts index f5e0f715f0b4..1726745df3ff 100644 --- a/packages/eslint-plugin/typings/eslint-rules.d.ts +++ b/packages/eslint-plugin/typings/eslint-rules.d.ts @@ -730,6 +730,44 @@ declare module 'eslint/lib/rules/no-extra-semi' { export = rule; } +declare module 'eslint/lib/rules/lines-around-comment' { + import type { TSESLint } from '@typescript-eslint/utils'; + + const rule: TSESLint.RuleModule< + 'after' | 'before', + [ + { + beforeBlockComment?: boolean; + afterBlockComment?: boolean; + beforeLineComment?: boolean; + afterLineComment?: boolean; + allowBlockStart?: boolean; + allowBlockEnd?: boolean; + allowClassStart?: boolean; + allowClassEnd?: boolean; + allowObjectStart?: boolean; + allowObjectEnd?: boolean; + allowArrayStart?: boolean; + allowArrayEnd?: boolean; + allowInterfaceStart?: boolean; + allowInterfaceEnd?: boolean; + allowTypeStart?: boolean; + allowTypeEnd?: boolean; + allowEnumStart?: boolean; + allowEnumEnd?: boolean; + allowModuleStart?: boolean; + allowModuleEnd?: boolean; + ignorePattern?: string; + applyDefaultIgnorePatterns?: boolean; + }?, + ], + { + Program(): void; + } + >; + export = rule; +} + declare module 'eslint/lib/rules/lines-between-class-members' { import type { TSESLint, TSESTree } from '@typescript-eslint/utils'; diff --git a/packages/experimental-utils/CHANGELOG.md b/packages/experimental-utils/CHANGELOG.md index b375c7b96d43..54591299f39a 100644 --- a/packages/experimental-utils/CHANGELOG.md +++ b/packages/experimental-utils/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [5.55.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.54.1...v5.55.0) (2023-03-13) + +**Note:** Version bump only for package @typescript-eslint/experimental-utils + + + + + ## [5.54.1](https://github.com/typescript-eslint/typescript-eslint/compare/v5.54.0...v5.54.1) (2023-03-06) **Note:** Version bump only for package @typescript-eslint/experimental-utils diff --git a/packages/experimental-utils/package.json b/packages/experimental-utils/package.json index 1a974e06eb95..d4dac5ef30f3 100644 --- a/packages/experimental-utils/package.json +++ b/packages/experimental-utils/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/experimental-utils", - "version": "5.54.1", + "version": "5.55.0", "description": "(Experimental) Utilities for working with TypeScript + ESLint together", "keywords": [ "eslint", @@ -38,7 +38,7 @@ "typecheck": "tsc -p tsconfig.json --noEmit" }, "dependencies": { - "@typescript-eslint/utils": "5.54.1" + "@typescript-eslint/utils": "5.55.0" }, "peerDependencies": { "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" diff --git a/packages/parser/CHANGELOG.md b/packages/parser/CHANGELOG.md index b7ce27143852..3fb1e5f57f51 100644 --- a/packages/parser/CHANGELOG.md +++ b/packages/parser/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [5.55.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.54.1...v5.55.0) (2023-03-13) + + +### Features + +* **parser:** add exported meta object ([#6586](https://github.com/typescript-eslint/typescript-eslint/issues/6586)) ([d05c3d8](https://github.com/typescript-eslint/typescript-eslint/commit/d05c3d8aa4093e88ffdfc2dbcff522eafbd455fb)) + + + + + ## [5.54.1](https://github.com/typescript-eslint/typescript-eslint/compare/v5.54.0...v5.54.1) (2023-03-06) **Note:** Version bump only for package @typescript-eslint/parser diff --git a/packages/parser/package.json b/packages/parser/package.json index abcaaf0c65f2..b370f0938b3b 100644 --- a/packages/parser/package.json +++ b/packages/parser/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/parser", - "version": "5.54.1", + "version": "5.55.0", "description": "An ESLint custom parser which leverages TypeScript ESTree", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -45,9 +45,9 @@ "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" }, "dependencies": { - "@typescript-eslint/scope-manager": "5.54.1", - "@typescript-eslint/types": "5.54.1", - "@typescript-eslint/typescript-estree": "5.54.1", + "@typescript-eslint/scope-manager": "5.55.0", + "@typescript-eslint/types": "5.55.0", + "@typescript-eslint/typescript-estree": "5.55.0", "debug": "^4.3.4" }, "devDependencies": { diff --git a/packages/parser/src/index.ts b/packages/parser/src/index.ts index 928671a3c5c1..7ed83e242d1e 100644 --- a/packages/parser/src/index.ts +++ b/packages/parser/src/index.ts @@ -8,3 +8,8 @@ export { // note - cannot migrate this to an import statement because it will make TSC copy the package.json to the dist folder // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access export const version: string = require('../package.json').version; + +export const meta = { + name: 'typescript-eslint/parser', + version, +}; diff --git a/packages/scope-manager/CHANGELOG.md b/packages/scope-manager/CHANGELOG.md index dee6e258787d..7a89a528b878 100644 --- a/packages/scope-manager/CHANGELOG.md +++ b/packages/scope-manager/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [5.55.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.54.1...v5.55.0) (2023-03-13) + + +### Features + +* update TypeScript to 5.0 RC ([#6570](https://github.com/typescript-eslint/typescript-eslint/issues/6570)) ([36ef0e1](https://github.com/typescript-eslint/typescript-eslint/commit/36ef0e16f31810c27dda299e739d1610b689d3ad)) + + + + + ## [5.54.1](https://github.com/typescript-eslint/typescript-eslint/compare/v5.54.0...v5.54.1) (2023-03-06) **Note:** Version bump only for package @typescript-eslint/scope-manager diff --git a/packages/scope-manager/package.json b/packages/scope-manager/package.json index 547067d42807..3e46775a5c53 100644 --- a/packages/scope-manager/package.json +++ b/packages/scope-manager/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/scope-manager", - "version": "5.54.1", + "version": "5.55.0", "description": "TypeScript scope analyser for ESLint", "keywords": [ "eslint", @@ -38,12 +38,12 @@ "typecheck": "nx typecheck" }, "dependencies": { - "@typescript-eslint/types": "5.54.1", - "@typescript-eslint/visitor-keys": "5.54.1" + "@typescript-eslint/types": "5.55.0", + "@typescript-eslint/visitor-keys": "5.55.0" }, "devDependencies": { "@types/glob": "*", - "@typescript-eslint/typescript-estree": "5.54.1", + "@typescript-eslint/typescript-estree": "5.55.0", "glob": "*", "jest-specific-snapshot": "*", "make-dir": "*", diff --git a/packages/scope-manager/src/lib/decorators.legacy.ts b/packages/scope-manager/src/lib/decorators.legacy.ts new file mode 100644 index 000000000000..8a02028b68e9 --- /dev/null +++ b/packages/scope-manager/src/lib/decorators.legacy.ts @@ -0,0 +1,14 @@ +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib @typescript-eslint/scope-manager + +import type { ImplicitLibVariableOptions } from '../variable'; +import { TYPE } from './base-config'; + +export const decorators_legacy = { + ClassDecorator: TYPE, + PropertyDecorator: TYPE, + MethodDecorator: TYPE, + ParameterDecorator: TYPE, +} as Record; diff --git a/packages/scope-manager/src/lib/decorators.ts b/packages/scope-manager/src/lib/decorators.ts new file mode 100644 index 000000000000..cbeb41eba291 --- /dev/null +++ b/packages/scope-manager/src/lib/decorators.ts @@ -0,0 +1,20 @@ +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib @typescript-eslint/scope-manager + +import type { ImplicitLibVariableOptions } from '../variable'; +import { TYPE } from './base-config'; + +export const decorators = { + ClassMemberDecoratorContext: TYPE, + DecoratorContext: TYPE, + ClassDecoratorContext: TYPE, + ClassMethodDecoratorContext: TYPE, + ClassGetterDecoratorContext: TYPE, + ClassSetterDecoratorContext: TYPE, + ClassAccessorDecoratorContext: TYPE, + ClassAccessorDecoratorTarget: TYPE, + ClassAccessorDecoratorResult: TYPE, + ClassFieldDecoratorContext: TYPE, +} as Record; diff --git a/packages/scope-manager/src/lib/dom.iterable.ts b/packages/scope-manager/src/lib/dom.iterable.ts index 1d43661478b4..10c5d0eada18 100644 --- a/packages/scope-manager/src/lib/dom.iterable.ts +++ b/packages/scope-manager/src/lib/dom.iterable.ts @@ -10,6 +10,7 @@ export const dom_iterable = { AudioParam: TYPE, AudioParamMap: TYPE, BaseAudioContext: TYPE, + CSSKeyframesRule: TYPE, CSSRuleList: TYPE, CSSStyleDeclaration: TYPE, Cache: TYPE, @@ -31,6 +32,9 @@ export const dom_iterable = { Headers: TYPE, IDBDatabase: TYPE, IDBObjectStore: TYPE, + MIDIInputMap: TYPE, + MIDIOutput: TYPE, + MIDIOutputMap: TYPE, MediaKeyStatusMap: TYPE, MediaList: TYPE, MessageEvent: TYPE, diff --git a/packages/scope-manager/src/lib/dom.ts b/packages/scope-manager/src/lib/dom.ts index 1087a238dfca..5976f8794927 100644 --- a/packages/scope-manager/src/lib/dom.ts +++ b/packages/scope-manager/src/lib/dom.ts @@ -38,6 +38,7 @@ export const dom = { CanvasRenderingContext2DSettings: TYPE, ChannelMergerOptions: TYPE, ChannelSplitterOptions: TYPE, + CheckVisibilityOptions: TYPE, ClientQueryOptions: TYPE, ClipboardEventInit: TYPE, ClipboardItemOptions: TYPE, @@ -115,6 +116,7 @@ export const dom = { ImageBitmapOptions: TYPE, ImageBitmapRenderingContextSettings: TYPE, ImageDataSettings: TYPE, + ImageEncodeOptions: TYPE, ImportMeta: TYPE, InputEventInit: TYPE, IntersectionObserverEntryInit: TYPE, @@ -128,6 +130,9 @@ export const dom = { LockInfo: TYPE, LockManagerSnapshot: TYPE, LockOptions: TYPE, + MIDIConnectionEventInit: TYPE, + MIDIMessageEventInit: TYPE, + MIDIOptions: TYPE, MediaCapabilitiesDecodingInfo: TYPE, MediaCapabilitiesEncodingInfo: TYPE, MediaCapabilitiesInfo: TYPE, @@ -354,6 +359,7 @@ export const dom = { CSSContainerRule: TYPE_VALUE, CSSCounterStyleRule: TYPE_VALUE, CSSFontFaceRule: TYPE_VALUE, + CSSFontFeatureValuesRule: TYPE_VALUE, CSSFontPaletteValuesRule: TYPE_VALUE, CSSGroupingRule: TYPE_VALUE, CSSImportRule: TYPE_VALUE, @@ -441,8 +447,6 @@ export const dom = { DeviceOrientationEvent: TYPE_VALUE, DocumentEventMap: TYPE, Document: TYPE_VALUE, - DocumentAndElementEventHandlersEventMap: TYPE, - DocumentAndElementEventHandlers: TYPE, DocumentFragment: TYPE_VALUE, DocumentOrShadowRoot: TYPE, DocumentTimeline: TYPE_VALUE, @@ -628,6 +632,17 @@ export const dom = { Location: TYPE_VALUE, Lock: TYPE_VALUE, LockManager: TYPE_VALUE, + MIDIAccessEventMap: TYPE, + MIDIAccess: TYPE_VALUE, + MIDIConnectionEvent: TYPE_VALUE, + MIDIInputEventMap: TYPE, + MIDIInput: TYPE_VALUE, + MIDIInputMap: TYPE_VALUE, + MIDIMessageEvent: TYPE_VALUE, + MIDIOutput: TYPE_VALUE, + MIDIOutputMap: TYPE_VALUE, + MIDIPortEventMap: TYPE, + MIDIPort: TYPE_VALUE, MathMLElementEventMap: TYPE, MathMLElement: TYPE_VALUE, MediaCapabilities: TYPE_VALUE, @@ -1078,6 +1093,7 @@ export const dom = { HTMLElementTagNameMap: TYPE, HTMLElementDeprecatedTagNameMap: TYPE, SVGElementTagNameMap: TYPE, + MathMLElementTagNameMap: TYPE, ElementTagNameMap: TYPE, AlgorithmIdentifier: TYPE, BigInteger: TYPE, @@ -1117,7 +1133,6 @@ export const dom = { HeadersInit: TYPE, IDBValidKey: TYPE, ImageBitmapSource: TYPE, - InsertPosition: TYPE, Int32List: TYPE, LineAndPositionSetting: TYPE, MediaProvider: TYPE, @@ -1182,6 +1197,7 @@ export const dom = { EndingType: TYPE, FileSystemHandleKind: TYPE, FillMode: TYPE, + FontDisplay: TYPE, FontFaceLoadStatus: TYPE, FontFaceSetLoadStatus: TYPE, FullscreenNavigationUI: TYPE, @@ -1195,12 +1211,16 @@ export const dom = { IDBTransactionMode: TYPE, ImageOrientation: TYPE, ImageSmoothingQuality: TYPE, + InsertPosition: TYPE, IterationCompositeOperation: TYPE, KeyFormat: TYPE, KeyType: TYPE, KeyUsage: TYPE, LineAlignSetting: TYPE, LockMode: TYPE, + MIDIPortConnectionState: TYPE, + MIDIPortDeviceState: TYPE, + MIDIPortType: TYPE, MediaDecodingType: TYPE, MediaDeviceKind: TYPE, MediaEncodingType: TYPE, diff --git a/packages/scope-manager/src/lib/es2015.symbol.wellknown.ts b/packages/scope-manager/src/lib/es2015.symbol.wellknown.ts index 94fd4ac4e70f..94e522cfe03d 100644 --- a/packages/scope-manager/src/lib/es2015.symbol.wellknown.ts +++ b/packages/scope-manager/src/lib/es2015.symbol.wellknown.ts @@ -12,6 +12,7 @@ export const es2015_symbol_wellknown = { SymbolConstructor: TYPE, Symbol: TYPE, Array: TYPE, + ReadonlyArray: TYPE, Date: TYPE, Map: TYPE, WeakMap: TYPE, diff --git a/packages/scope-manager/src/lib/es2022.regexp.ts b/packages/scope-manager/src/lib/es2022.regexp.ts new file mode 100644 index 000000000000..85998ffe3682 --- /dev/null +++ b/packages/scope-manager/src/lib/es2022.regexp.ts @@ -0,0 +1,14 @@ +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib @typescript-eslint/scope-manager + +import type { ImplicitLibVariableOptions } from '../variable'; +import { TYPE } from './base-config'; + +export const es2022_regexp = { + RegExpMatchArray: TYPE, + RegExpExecArray: TYPE, + RegExpIndicesArray: TYPE, + RegExp: TYPE, +} as Record; diff --git a/packages/scope-manager/src/lib/es2022.ts b/packages/scope-manager/src/lib/es2022.ts index 0956c0111d6c..1e5eb867a2b6 100644 --- a/packages/scope-manager/src/lib/es2022.ts +++ b/packages/scope-manager/src/lib/es2022.ts @@ -9,6 +9,7 @@ import { es2022_array } from './es2022.array'; import { es2022_error } from './es2022.error'; import { es2022_intl } from './es2022.intl'; import { es2022_object } from './es2022.object'; +import { es2022_regexp } from './es2022.regexp'; import { es2022_sharedmemory } from './es2022.sharedmemory'; import { es2022_string } from './es2022.string'; @@ -20,4 +21,5 @@ export const es2022 = { ...es2022_object, ...es2022_sharedmemory, ...es2022_string, + ...es2022_regexp, } as Record; diff --git a/packages/scope-manager/src/lib/es2023.array.ts b/packages/scope-manager/src/lib/es2023.array.ts new file mode 100644 index 000000000000..029b058a8cdd --- /dev/null +++ b/packages/scope-manager/src/lib/es2023.array.ts @@ -0,0 +1,23 @@ +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib @typescript-eslint/scope-manager + +import type { ImplicitLibVariableOptions } from '../variable'; +import { TYPE } from './base-config'; + +export const es2023_array = { + Array: TYPE, + ReadonlyArray: TYPE, + Int8Array: TYPE, + Uint8Array: TYPE, + Uint8ClampedArray: TYPE, + Int16Array: TYPE, + Uint16Array: TYPE, + Int32Array: TYPE, + Uint32Array: TYPE, + Float32Array: TYPE, + Float64Array: TYPE, + BigInt64Array: TYPE, + BigUint64Array: TYPE, +} as Record; diff --git a/packages/scope-manager/src/lib/es2023.full.ts b/packages/scope-manager/src/lib/es2023.full.ts new file mode 100644 index 000000000000..b8a3c9310b6e --- /dev/null +++ b/packages/scope-manager/src/lib/es2023.full.ts @@ -0,0 +1,19 @@ +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib @typescript-eslint/scope-manager + +import type { ImplicitLibVariableOptions } from '../variable'; +import { dom } from './dom'; +import { dom_iterable } from './dom.iterable'; +import { es2023 } from './es2023'; +import { scripthost } from './scripthost'; +import { webworker_importscripts } from './webworker.importscripts'; + +export const es2023_full = { + ...es2023, + ...dom, + ...webworker_importscripts, + ...scripthost, + ...dom_iterable, +} as Record; diff --git a/packages/scope-manager/src/lib/es2023.ts b/packages/scope-manager/src/lib/es2023.ts new file mode 100644 index 000000000000..9e98d3766115 --- /dev/null +++ b/packages/scope-manager/src/lib/es2023.ts @@ -0,0 +1,13 @@ +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib @typescript-eslint/scope-manager + +import type { ImplicitLibVariableOptions } from '../variable'; +import { es2022 } from './es2022'; +import { es2023_array } from './es2023.array'; + +export const es2023 = { + ...es2022, + ...es2023_array, +} as Record; diff --git a/packages/scope-manager/src/lib/es5.ts b/packages/scope-manager/src/lib/es5.ts index cef8eb253ce6..94c6eff46d0b 100644 --- a/packages/scope-manager/src/lib/es5.ts +++ b/packages/scope-manager/src/lib/es5.ts @@ -5,8 +5,12 @@ import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE, TYPE_VALUE } from './base-config'; +import { decorators } from './decorators'; +import { decorators_legacy } from './decorators.legacy'; export const es5 = { + ...decorators, + ...decorators_legacy, Symbol: TYPE, PropertyKey: TYPE, PropertyDescriptor: TYPE, @@ -57,10 +61,6 @@ export const es5 = { Array: TYPE_VALUE, ArrayConstructor: TYPE, TypedPropertyDescriptor: TYPE, - ClassDecorator: TYPE, - PropertyDecorator: TYPE, - MethodDecorator: TYPE, - ParameterDecorator: TYPE, PromiseConstructorLike: TYPE, PromiseLike: TYPE, Promise: TYPE, diff --git a/packages/scope-manager/src/lib/esnext.ts b/packages/scope-manager/src/lib/esnext.ts index 31ac2762267a..72089f282dcc 100644 --- a/packages/scope-manager/src/lib/esnext.ts +++ b/packages/scope-manager/src/lib/esnext.ts @@ -4,10 +4,10 @@ // npx nx generate-lib @typescript-eslint/scope-manager import type { ImplicitLibVariableOptions } from '../variable'; -import { es2022 } from './es2022'; +import { es2023 } from './es2023'; import { esnext_intl } from './esnext.intl'; export const esnext = { - ...es2022, + ...es2023, ...esnext_intl, } as Record; diff --git a/packages/scope-manager/src/lib/index.ts b/packages/scope-manager/src/lib/index.ts index dfee880fa16e..a91568b6be6e 100644 --- a/packages/scope-manager/src/lib/index.ts +++ b/packages/scope-manager/src/lib/index.ts @@ -3,6 +3,8 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager +import { decorators } from './decorators'; +import { decorators_legacy } from './decorators.legacy'; import { dom } from './dom'; import { dom_iterable } from './dom.iterable'; import { es5 } from './es5'; @@ -64,8 +66,12 @@ import { es2022_error } from './es2022.error'; import { es2022_full } from './es2022.full'; import { es2022_intl } from './es2022.intl'; import { es2022_object } from './es2022.object'; +import { es2022_regexp } from './es2022.regexp'; import { es2022_sharedmemory } from './es2022.sharedmemory'; import { es2022_string } from './es2022.string'; +import { es2023 } from './es2023'; +import { es2023_array } from './es2023.array'; +import { es2023_full } from './es2023.full'; import { esnext } from './esnext'; import { esnext_array } from './esnext.array'; import { esnext_asynciterable } from './esnext.asynciterable'; @@ -94,6 +100,7 @@ const lib = { es2020, es2021, es2022, + es2023, esnext, dom, 'dom.iterable': dom_iterable, @@ -144,6 +151,8 @@ const lib = { 'es2022.object': es2022_object, 'es2022.sharedmemory': es2022_sharedmemory, 'es2022.string': es2022_string, + 'es2022.regexp': es2022_regexp, + 'es2023.array': es2023_array, 'esnext.array': esnext_array, 'esnext.symbol': esnext_symbol, 'esnext.asynciterable': esnext_asynciterable, @@ -152,6 +161,8 @@ const lib = { 'esnext.string': esnext_string, 'esnext.promise': esnext_promise, 'esnext.weakref': esnext_weakref, + decorators, + 'decorators.legacy': decorators_legacy, 'es2016.full': es2016_full, 'es2017.full': es2017_full, 'es2018.full': es2018_full, @@ -159,6 +170,7 @@ const lib = { 'es2020.full': es2020_full, 'es2021.full': es2021_full, 'es2022.full': es2022_full, + 'es2023.full': es2023_full, 'esnext.full': esnext_full, lib: libBase, } as const; diff --git a/packages/scope-manager/src/lib/webworker.ts b/packages/scope-manager/src/lib/webworker.ts index bddb6bf9aa4d..5e2aaad12f41 100644 --- a/packages/scope-manager/src/lib/webworker.ts +++ b/packages/scope-manager/src/lib/webworker.ts @@ -41,6 +41,7 @@ export const webworker = { FilePropertyBag: TYPE, FileSystemGetDirectoryOptions: TYPE, FileSystemGetFileOptions: TYPE, + FileSystemReadWriteOptions: TYPE, FileSystemRemoveOptions: TYPE, FontFaceDescriptors: TYPE, FontFaceSetLoadEventInit: TYPE, @@ -56,6 +57,7 @@ export const webworker = { ImageBitmapOptions: TYPE, ImageBitmapRenderingContextSettings: TYPE, ImageDataSettings: TYPE, + ImageEncodeOptions: TYPE, ImportMeta: TYPE, JsonWebKey: TYPE, KeyAlgorithm: TYPE, @@ -196,6 +198,7 @@ export const webworker = { FileSystemDirectoryHandle: TYPE_VALUE, FileSystemFileHandle: TYPE_VALUE, FileSystemHandle: TYPE_VALUE, + FileSystemSyncAccessHandle: TYPE_VALUE, FontFace: TYPE_VALUE, FontFaceSetEventMap: TYPE, FontFaceSet: TYPE_VALUE, @@ -441,6 +444,7 @@ export const webworker = { DocumentVisibilityState: TYPE, EndingType: TYPE, FileSystemHandleKind: TYPE, + FontDisplay: TYPE, FontFaceLoadStatus: TYPE, FontFaceSetLoadStatus: TYPE, FrameType: TYPE, diff --git a/packages/scope-manager/tests/fixtures/block/inherited-scope.ts.shot b/packages/scope-manager/tests/fixtures/block/inherited-scope.ts.shot index 3be6ff4b18d4..00efa3624733 100644 --- a/packages/scope-manager/tests/fixtures/block/inherited-scope.ts.shot +++ b/packages/scope-manager/tests/fixtures/block/inherited-scope.ts.shot @@ -2,17 +2,17 @@ exports[`block inherited-scope 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"a">, node: VariableDeclarator$1, }, ], name: "a", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"a">, init: true, @@ -36,11 +36,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -49,7 +49,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -57,13 +57,13 @@ ScopeManager { BlockScope$2 { block: BlockStatement$4, isStrict: false, - references: Array [ + references: [ Reference$2, ], set: Map {}, type: "block", upper: GlobalScope$1, - variables: Array [], + variables: [], }, ], } diff --git a/packages/scope-manager/tests/fixtures/block/scope.ts.shot b/packages/scope-manager/tests/fixtures/block/scope.ts.shot index 69a26f99f017..05a479820ed0 100644 --- a/packages/scope-manager/tests/fixtures/block/scope.ts.shot +++ b/packages/scope-manager/tests/fixtures/block/scope.ts.shot @@ -2,17 +2,17 @@ exports[`block scope 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"i">, node: VariableDeclarator$1, }, ], name: "i", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"i">, init: true, @@ -36,14 +36,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"j">, node: VariableDeclarator$3, }, ], name: "j", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"j">, init: true, @@ -59,11 +59,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [ + references: [ Reference$4 { identifier: Identifier<"j">, isRead: true, @@ -78,14 +78,14 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, BlockScope$2 { block: BlockStatement$6, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, Reference$3, @@ -96,7 +96,7 @@ ScopeManager { }, type: "block", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, Variable$3, ], diff --git a/packages/scope-manager/tests/fixtures/call-expression/call-expression.ts.shot b/packages/scope-manager/tests/fixtures/call-expression/call-expression.ts.shot index 38488a3a6811..e0f3c0911d73 100644 --- a/packages/scope-manager/tests/fixtures/call-expression/call-expression.ts.shot +++ b/packages/scope-manager/tests/fixtures/call-expression/call-expression.ts.shot @@ -2,17 +2,17 @@ exports[`call-expression call-expression 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"foo">, node: VariableDeclarator$1, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, init: true, @@ -44,14 +44,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"a">, node: VariableDeclarator$3, }, ], name: "a", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"a">, init: true, @@ -83,11 +83,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, Reference$3, @@ -102,7 +102,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -111,11 +111,11 @@ ScopeManager { FunctionScope$2 { block: ArrowFunctionExpression$2, isStrict: false, - references: Array [], + references: [], set: Map {}, type: "function", upper: GlobalScope$1, - variables: Array [], + variables: [], }, ], } diff --git a/packages/scope-manager/tests/fixtures/call-expression/type-parameters1.ts.shot b/packages/scope-manager/tests/fixtures/call-expression/type-parameters1.ts.shot index 983bda61d613..ef40a9d096d9 100644 --- a/packages/scope-manager/tests/fixtures/call-expression/type-parameters1.ts.shot +++ b/packages/scope-manager/tests/fixtures/call-expression/type-parameters1.ts.shot @@ -2,17 +2,17 @@ exports[`call-expression type-parameters1 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"T">, isRead: true, @@ -26,11 +26,11 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$2, isStrict: false, - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, isRead: true, @@ -47,7 +47,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], diff --git a/packages/scope-manager/tests/fixtures/call-expression/type-parameters2.ts.shot b/packages/scope-manager/tests/fixtures/call-expression/type-parameters2.ts.shot index 6201d0d8f9f0..015dbcef6889 100644 --- a/packages/scope-manager/tests/fixtures/call-expression/type-parameters2.ts.shot +++ b/packages/scope-manager/tests/fixtures/call-expression/type-parameters2.ts.shot @@ -2,17 +2,17 @@ exports[`call-expression type-parameters2 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"T">, node: VariableDeclarator$1, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, init: true, @@ -28,11 +28,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2 { identifier: Identifier<"foo">, @@ -57,7 +57,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], diff --git a/packages/scope-manager/tests/fixtures/catch/inherited-scope.ts.shot b/packages/scope-manager/tests/fixtures/catch/inherited-scope.ts.shot index 206d762ed0bd..ef6024741730 100644 --- a/packages/scope-manager/tests/fixtures/catch/inherited-scope.ts.shot +++ b/packages/scope-manager/tests/fixtures/catch/inherited-scope.ts.shot @@ -2,17 +2,17 @@ exports[`catch inherited-scope 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"a">, node: VariableDeclarator$1, }, ], name: "a", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"a">, init: true, @@ -36,23 +36,23 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ CatchClauseDefinition$2 { name: Identifier<"e">, node: CatchClause$3, }, ], name: "e", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -61,7 +61,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -69,35 +69,35 @@ ScopeManager { BlockScope$2 { block: BlockStatement$5, isStrict: false, - references: Array [], + references: [], set: Map {}, type: "block", upper: GlobalScope$1, - variables: Array [], + variables: [], }, CatchScope$3 { block: CatchClause$3, isStrict: false, - references: Array [], + references: [], set: Map { "e" => Variable$3, }, type: "catch", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, BlockScope$4 { block: BlockStatement$6, isStrict: false, - references: Array [ + references: [ Reference$2, ], set: Map {}, type: "block", upper: CatchScope$3, - variables: Array [], + variables: [], }, ], } diff --git a/packages/scope-manager/tests/fixtures/catch/scope.ts.shot b/packages/scope-manager/tests/fixtures/catch/scope.ts.shot index c042fe1b8d91..dcc48d88a73e 100644 --- a/packages/scope-manager/tests/fixtures/catch/scope.ts.shot +++ b/packages/scope-manager/tests/fixtures/catch/scope.ts.shot @@ -2,17 +2,17 @@ exports[`catch scope 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ CatchClauseDefinition$1 { name: Identifier<"e">, node: CatchClause$1, }, ], name: "e", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"e">, isRead: true, @@ -26,14 +26,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"a">, node: VariableDeclarator$2, }, ], name: "a", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"a">, init: true, @@ -49,14 +49,14 @@ ScopeManager { isTypeVariable: false, }, Variable$4 { - defs: Array [ + defs: [ VariableDefinition$3 { name: Identifier<"unresolved">, node: VariableDeclarator$4, }, ], name: "unresolved", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"unresolved">, init: true, @@ -72,14 +72,14 @@ ScopeManager { isTypeVariable: false, }, Variable$5 { - defs: Array [ + defs: [ VariableDefinition$4 { name: Identifier<"dontReference2">, node: VariableDeclarator$5, }, ], name: "dontReference2", - references: Array [ + references: [ Reference$5 { identifier: Identifier<"dontReference2">, init: true, @@ -95,11 +95,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$6, isStrict: false, - references: Array [ + references: [ Reference$3, Reference$4 { identifier: Identifier<"e">, @@ -126,7 +126,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$4, Variable$5, @@ -135,29 +135,29 @@ ScopeManager { BlockScope$2 { block: BlockStatement$7, isStrict: false, - references: Array [], + references: [], set: Map {}, type: "block", upper: GlobalScope$1, - variables: Array [], + variables: [], }, CatchScope$3 { block: CatchClause$1, isStrict: false, - references: Array [], + references: [], set: Map { "e" => Variable$2, }, type: "catch", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, ], }, BlockScope$4 { block: BlockStatement$8, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -166,7 +166,7 @@ ScopeManager { }, type: "block", upper: CatchScope$3, - variables: Array [ + variables: [ Variable$3, ], }, diff --git a/packages/scope-manager/tests/fixtures/class/declaration/abstract-accessor-property.ts.shot b/packages/scope-manager/tests/fixtures/class/declaration/abstract-accessor-property.ts.shot index c895afba9043..c1b7aeff3e57 100644 --- a/packages/scope-manager/tests/fixtures/class/declaration/abstract-accessor-property.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/declaration/abstract-accessor-property.ts.shot @@ -2,17 +2,17 @@ exports[`class declaration abstract-accessor-property 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -26,35 +26,35 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ ClassNameDefinition$2 { name: Identifier<"Foo">, node: ClassDeclaration$2, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ClassNameDefinition$3 { name: Identifier<"Foo">, node: ClassDeclaration$2, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "T" => Variable$2, @@ -62,7 +62,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -71,7 +71,7 @@ ScopeManager { ClassScope$2 { block: ClassDeclaration$2, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -79,7 +79,7 @@ ScopeManager { }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, ], }, diff --git a/packages/scope-manager/tests/fixtures/class/declaration/abstract-property.ts.shot b/packages/scope-manager/tests/fixtures/class/declaration/abstract-property.ts.shot index 61adde1dd551..477084bb3bfb 100644 --- a/packages/scope-manager/tests/fixtures/class/declaration/abstract-property.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/declaration/abstract-property.ts.shot @@ -2,17 +2,17 @@ exports[`class declaration abstract-property 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -26,35 +26,35 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ ClassNameDefinition$2 { name: Identifier<"Foo">, node: ClassDeclaration$2, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ClassNameDefinition$3 { name: Identifier<"Foo">, node: ClassDeclaration$2, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "T" => Variable$2, @@ -62,7 +62,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -71,7 +71,7 @@ ScopeManager { ClassScope$2 { block: ClassDeclaration$2, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -79,7 +79,7 @@ ScopeManager { }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, ], }, diff --git a/packages/scope-manager/tests/fixtures/class/declaration/abstract.ts.shot b/packages/scope-manager/tests/fixtures/class/declaration/abstract.ts.shot index 85db667ad33f..9d0df30ba07d 100644 --- a/packages/scope-manager/tests/fixtures/class/declaration/abstract.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/declaration/abstract.ts.shot @@ -2,76 +2,76 @@ exports[`class declaration abstract 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ClassNameDefinition$1 { name: Identifier<"A">, node: ClassDeclaration$1, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ ClassNameDefinition$2 { name: Identifier<"A">, node: ClassDeclaration$1, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"a">, node: TSEmptyBodyFunctionExpression$2, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$6 { - defs: Array [ + defs: [ ParameterDefinition$4 { name: Identifier<"b">, node: TSEmptyBodyFunctionExpression$2, }, ], name: "b", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "A" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -79,20 +79,20 @@ ScopeManager { ClassScope$2 { block: ClassDeclaration$1, isStrict: true, - references: Array [], + references: [], set: Map { "A" => Variable$3, }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, FunctionScope$3 { block: TSEmptyBodyFunctionExpression$2, isStrict: true, - references: Array [], + references: [], set: Map { "arguments" => Variable$4, "a" => Variable$5, @@ -100,7 +100,7 @@ ScopeManager { }, type: "function", upper: ClassScope$2, - variables: Array [ + variables: [ Variable$4, Variable$5, Variable$6, diff --git a/packages/scope-manager/tests/fixtures/class/declaration/accessor-property-type-annotation.ts.shot b/packages/scope-manager/tests/fixtures/class/declaration/accessor-property-type-annotation.ts.shot index fb8248edefe5..0a1d19090e9c 100644 --- a/packages/scope-manager/tests/fixtures/class/declaration/accessor-property-type-annotation.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/declaration/accessor-property-type-annotation.ts.shot @@ -2,17 +2,17 @@ exports[`class declaration accessor-property-type-annotation 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -26,35 +26,35 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ ClassNameDefinition$2 { name: Identifier<"A">, node: ClassDeclaration$2, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ClassNameDefinition$3 { name: Identifier<"A">, node: ClassDeclaration$2, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "T" => Variable$2, @@ -62,7 +62,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -71,7 +71,7 @@ ScopeManager { ClassScope$2 { block: ClassDeclaration$2, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -79,7 +79,7 @@ ScopeManager { }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, ], }, diff --git a/packages/scope-manager/tests/fixtures/class/declaration/accessor-property.ts.shot b/packages/scope-manager/tests/fixtures/class/declaration/accessor-property.ts.shot index 88914131b5c1..c2b674bedfb6 100644 --- a/packages/scope-manager/tests/fixtures/class/declaration/accessor-property.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/declaration/accessor-property.ts.shot @@ -2,17 +2,17 @@ exports[`class declaration accessor-property 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"x">, node: VariableDeclarator$1, }, ], name: "x", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"x">, init: true, @@ -36,38 +36,38 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ ClassNameDefinition$2 { name: Identifier<"A">, node: ClassDeclaration$3, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ClassNameDefinition$3 { name: Identifier<"A">, node: ClassDeclaration$3, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ VariableDefinition$4 { name: Identifier<"unresolved">, node: VariableDeclarator$4, }, ], name: "unresolved", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"unresolved">, init: true, @@ -83,11 +83,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$3, Reference$4 { @@ -107,7 +107,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -117,35 +117,35 @@ ScopeManager { ClassScope$2 { block: ClassDeclaration$3, isStrict: true, - references: Array [], + references: [], set: Map { "A" => Variable$4, }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, ], }, ClassFieldInitializerScope$3 { block: Literal$6, isStrict: true, - references: Array [], + references: [], set: Map {}, type: "class-field-initializer", upper: ClassScope$2, - variables: Array [], + variables: [], }, ClassFieldInitializerScope$4 { block: Identifier<"x">, isStrict: true, - references: Array [ + references: [ Reference$2, ], set: Map {}, type: "class-field-initializer", upper: ClassScope$2, - variables: Array [], + variables: [], }, ], } diff --git a/packages/scope-manager/tests/fixtures/class/declaration/computed-member.ts.shot b/packages/scope-manager/tests/fixtures/class/declaration/computed-member.ts.shot index 87bcc27ae85a..2ae66d871a8e 100644 --- a/packages/scope-manager/tests/fixtures/class/declaration/computed-member.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/declaration/computed-member.ts.shot @@ -2,17 +2,17 @@ exports[`class declaration computed-member 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"outer1">, node: VariableDeclarator$1, }, ], name: "outer1", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"outer1">, init: true, @@ -36,14 +36,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"outer2">, node: VariableDeclarator$3, }, ], name: "outer2", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"outer2">, init: true, @@ -67,42 +67,42 @@ ScopeManager { isTypeVariable: false, }, Variable$4 { - defs: Array [ + defs: [ ClassNameDefinition$3 { name: Identifier<"A">, node: ClassDeclaration$5, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ClassNameDefinition$4 { name: Identifier<"A">, node: ClassDeclaration$5, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$6 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$6, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -114,7 +114,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -124,7 +124,7 @@ ScopeManager { ClassScope$2 { block: ClassDeclaration$5, isStrict: true, - references: Array [ + references: [ Reference$3, Reference$4, ], @@ -133,29 +133,29 @@ ScopeManager { }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$5, ], }, ClassFieldInitializerScope$3 { block: Literal$7, isStrict: true, - references: Array [], + references: [], set: Map {}, type: "class-field-initializer", upper: ClassScope$2, - variables: Array [], + variables: [], }, FunctionScope$4 { block: FunctionExpression$8, isStrict: true, - references: Array [], + references: [], set: Map { "arguments" => Variable$6, }, type: "function", upper: ClassScope$2, - variables: Array [ + variables: [ Variable$6, ], }, diff --git a/packages/scope-manager/tests/fixtures/class/declaration/extends-generic.ts.shot b/packages/scope-manager/tests/fixtures/class/declaration/extends-generic.ts.shot index 4e52705d309c..fa02ab682ff6 100644 --- a/packages/scope-manager/tests/fixtures/class/declaration/extends-generic.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/declaration/extends-generic.ts.shot @@ -2,17 +2,17 @@ exports[`class declaration extends-generic 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ClassNameDefinition$1 { name: Identifier<"A">, node: ClassDeclaration$1, }, ], name: "A", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"A">, isRead: true, @@ -26,38 +26,38 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ ClassNameDefinition$2 { name: Identifier<"A">, node: ClassDeclaration$1, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"U">, node: TSTypeParameter$2, }, ], name: "U", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ TypeDefinition$4 { name: Identifier<"T">, node: TSTypeAliasDeclaration$3, }, ], name: "T", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"T">, isRead: true, @@ -71,35 +71,35 @@ ScopeManager { isTypeVariable: true, }, Variable$6 { - defs: Array [ + defs: [ ClassNameDefinition$5 { name: Identifier<"B">, node: ClassDeclaration$4, }, ], name: "B", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$7 { - defs: Array [ + defs: [ ClassNameDefinition$6 { name: Identifier<"B">, node: ClassDeclaration$4, }, ], name: "B", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "A" => Variable$2, @@ -108,7 +108,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$5, @@ -118,14 +118,14 @@ ScopeManager { ClassScope$2 { block: ClassDeclaration$1, isStrict: true, - references: Array [], + references: [], set: Map { "A" => Variable$3, "U" => Variable$4, }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, ], @@ -133,7 +133,7 @@ ScopeManager { ClassScope$3 { block: ClassDeclaration$4, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -142,7 +142,7 @@ ScopeManager { }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$7, ], }, diff --git a/packages/scope-manager/tests/fixtures/class/declaration/extends.ts.shot b/packages/scope-manager/tests/fixtures/class/declaration/extends.ts.shot index 00148ab72e56..d84c13821dc7 100644 --- a/packages/scope-manager/tests/fixtures/class/declaration/extends.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/declaration/extends.ts.shot @@ -2,17 +2,17 @@ exports[`class declaration extends 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ClassNameDefinition$1 { name: Identifier<"A">, node: ClassDeclaration$1, }, ], name: "A", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"A">, isRead: true, @@ -26,47 +26,47 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ ClassNameDefinition$2 { name: Identifier<"A">, node: ClassDeclaration$1, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ClassNameDefinition$3 { name: Identifier<"B">, node: ClassDeclaration$2, }, ], name: "B", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ClassNameDefinition$4 { name: Identifier<"B">, node: ClassDeclaration$2, }, ], name: "B", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "A" => Variable$2, @@ -74,7 +74,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$4, @@ -83,20 +83,20 @@ ScopeManager { ClassScope$2 { block: ClassDeclaration$1, isStrict: true, - references: Array [], + references: [], set: Map { "A" => Variable$3, }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, ClassScope$3 { block: ClassDeclaration$2, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -104,7 +104,7 @@ ScopeManager { }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$5, ], }, diff --git a/packages/scope-manager/tests/fixtures/class/declaration/generic-ref-extends.ts.shot b/packages/scope-manager/tests/fixtures/class/declaration/generic-ref-extends.ts.shot index 307735e76f24..5da629250d63 100644 --- a/packages/scope-manager/tests/fixtures/class/declaration/generic-ref-extends.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/declaration/generic-ref-extends.ts.shot @@ -2,41 +2,41 @@ exports[`class declaration generic-ref-extends 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ClassNameDefinition$1 { name: Identifier<"Foo">, node: ClassDeclaration$1, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ ClassNameDefinition$2 { name: Identifier<"Foo">, node: ClassDeclaration$1, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"A">, node: TSTypeParameter$2, }, ], name: "A", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"A">, isRead: true, @@ -50,18 +50,18 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "Foo" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -69,7 +69,7 @@ ScopeManager { ClassScope$2 { block: ClassDeclaration$1, isStrict: true, - references: Array [ + references: [ Reference$1 { identifier: Identifier<"Bar">, isRead: true, @@ -86,7 +86,7 @@ ScopeManager { }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, ], diff --git a/packages/scope-manager/tests/fixtures/class/declaration/generic-ref-implements.ts.shot b/packages/scope-manager/tests/fixtures/class/declaration/generic-ref-implements.ts.shot index 6198d70760ba..d228bcb2a50d 100644 --- a/packages/scope-manager/tests/fixtures/class/declaration/generic-ref-implements.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/declaration/generic-ref-implements.ts.shot @@ -2,41 +2,41 @@ exports[`class declaration generic-ref-implements 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ClassNameDefinition$1 { name: Identifier<"Foo">, node: ClassDeclaration$1, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ ClassNameDefinition$2 { name: Identifier<"Foo">, node: ClassDeclaration$1, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"A">, node: TSTypeParameter$2, }, ], name: "A", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"A">, isRead: true, @@ -50,18 +50,18 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "Foo" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -69,7 +69,7 @@ ScopeManager { ClassScope$2 { block: ClassDeclaration$1, isStrict: true, - references: Array [ + references: [ Reference$1 { identifier: Identifier<"Bar">, isRead: true, @@ -86,7 +86,7 @@ ScopeManager { }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, ], diff --git a/packages/scope-manager/tests/fixtures/class/declaration/generic.ts.shot b/packages/scope-manager/tests/fixtures/class/declaration/generic.ts.shot index 649e88b395fb..f8d7b9c02b91 100644 --- a/packages/scope-manager/tests/fixtures/class/declaration/generic.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/declaration/generic.ts.shot @@ -2,62 +2,62 @@ exports[`class declaration generic 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ClassNameDefinition$1 { name: Identifier<"Foo">, node: ClassDeclaration$1, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ ClassNameDefinition$2 { name: Identifier<"Foo">, node: ClassDeclaration$1, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"A">, node: TSTypeParameter$2, }, ], name: "A", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ TypeDefinition$4 { name: Identifier<"Unresolved">, node: TSTypeAliasDeclaration$3, }, ], name: "Unresolved", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1 { identifier: Identifier<"A">, isRead: true, @@ -74,7 +74,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$5, @@ -83,14 +83,14 @@ ScopeManager { ClassScope$2 { block: ClassDeclaration$1, isStrict: true, - references: Array [], + references: [], set: Map { "Foo" => Variable$3, "A" => Variable$4, }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, ], diff --git a/packages/scope-manager/tests/fixtures/class/declaration/implements-generic.ts.shot b/packages/scope-manager/tests/fixtures/class/declaration/implements-generic.ts.shot index 9c4d0b28244c..3dcf4c063a41 100644 --- a/packages/scope-manager/tests/fixtures/class/declaration/implements-generic.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/declaration/implements-generic.ts.shot @@ -2,17 +2,17 @@ exports[`class declaration implements-generic 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"A">, node: TSInterfaceDeclaration$1, }, ], name: "A", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"A">, isRead: true, @@ -26,26 +26,26 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"U">, node: TSTypeParameter$2, }, ], name: "U", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"T">, node: TSTypeAliasDeclaration$3, }, ], name: "T", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"T">, isRead: true, @@ -59,35 +59,35 @@ ScopeManager { isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ClassNameDefinition$4 { name: Identifier<"B">, node: ClassDeclaration$4, }, ], name: "B", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$6 { - defs: Array [ + defs: [ ClassNameDefinition$5 { name: Identifier<"B">, node: ClassDeclaration$4, }, ], name: "B", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "A" => Variable$2, @@ -96,7 +96,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$4, @@ -106,20 +106,20 @@ ScopeManager { TypeScope$2 { block: TSInterfaceDeclaration$1, isStrict: true, - references: Array [], + references: [], set: Map { "U" => Variable$3, }, type: "type", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, ClassScope$3 { block: ClassDeclaration$4, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -128,7 +128,7 @@ ScopeManager { }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$6, ], }, diff --git a/packages/scope-manager/tests/fixtures/class/declaration/implements.ts.shot b/packages/scope-manager/tests/fixtures/class/declaration/implements.ts.shot index 368793c0259c..0a76dc62608a 100644 --- a/packages/scope-manager/tests/fixtures/class/declaration/implements.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/declaration/implements.ts.shot @@ -2,17 +2,17 @@ exports[`class declaration implements 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"A">, node: TSInterfaceDeclaration$1, }, ], name: "A", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"A">, isRead: true, @@ -26,35 +26,35 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ ClassNameDefinition$2 { name: Identifier<"B">, node: ClassDeclaration$2, }, ], name: "B", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ClassNameDefinition$3 { name: Identifier<"B">, node: ClassDeclaration$2, }, ], name: "B", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "A" => Variable$2, @@ -62,7 +62,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -71,7 +71,7 @@ ScopeManager { ClassScope$2 { block: ClassDeclaration$2, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -79,7 +79,7 @@ ScopeManager { }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, ], }, diff --git a/packages/scope-manager/tests/fixtures/class/declaration/method-param-default.ts.shot b/packages/scope-manager/tests/fixtures/class/declaration/method-param-default.ts.shot index 9b1cfa227906..d7d7d38cb2de 100644 --- a/packages/scope-manager/tests/fixtures/class/declaration/method-param-default.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/declaration/method-param-default.ts.shot @@ -2,48 +2,48 @@ exports[`class declaration method-param-default 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ClassNameDefinition$1 { name: Identifier<"A">, node: ClassDeclaration$1, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ ClassNameDefinition$2 { name: Identifier<"A">, node: ClassDeclaration$1, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"printName">, node: FunctionExpression$2, }, ], name: "printName", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"printName">, isRead: true, @@ -57,21 +57,21 @@ ScopeManager { isTypeVariable: false, }, Variable$6 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$7 { - defs: Array [ + defs: [ ParameterDefinition$4 { name: Identifier<"printerName">, node: FunctionExpression$3, }, ], name: "printerName", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"printerName">, init: true, @@ -95,18 +95,18 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "A" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -114,20 +114,20 @@ ScopeManager { ClassScope$2 { block: ClassDeclaration$1, isStrict: true, - references: Array [], + references: [], set: Map { "A" => Variable$3, }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, FunctionScope$3 { block: FunctionExpression$2, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -136,7 +136,7 @@ ScopeManager { }, type: "function", upper: ClassScope$2, - variables: Array [ + variables: [ Variable$4, Variable$5, ], @@ -144,7 +144,7 @@ ScopeManager { FunctionScope$4 { block: FunctionExpression$3, isStrict: true, - references: Array [ + references: [ Reference$2, Reference$3, ], @@ -154,7 +154,7 @@ ScopeManager { }, type: "function", upper: ClassScope$2, - variables: Array [ + variables: [ Variable$6, Variable$7, ], diff --git a/packages/scope-manager/tests/fixtures/class/declaration/method.ts.shot b/packages/scope-manager/tests/fixtures/class/declaration/method.ts.shot index 468589bfad8a..db0e77d6aa06 100644 --- a/packages/scope-manager/tests/fixtures/class/declaration/method.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/declaration/method.ts.shot @@ -2,48 +2,48 @@ exports[`class declaration method 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ClassNameDefinition$1 { name: Identifier<"A">, node: ClassDeclaration$1, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ ClassNameDefinition$2 { name: Identifier<"A">, node: ClassDeclaration$1, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"a">, node: FunctionExpression$2, }, ], name: "a", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"a">, isRead: true, @@ -65,38 +65,38 @@ ScopeManager { isTypeVariable: false, }, Variable$6 { - defs: Array [ + defs: [ ParameterDefinition$4 { name: Identifier<"b">, node: FunctionExpression$2, }, ], name: "b", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$7 { - defs: Array [ + defs: [ ParameterDefinition$5 { name: Identifier<"c">, node: FunctionExpression$2, }, ], name: "c", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$8 { - defs: Array [ + defs: [ ParameterDefinition$6 { name: Identifier<"d">, node: FunctionExpression$2, }, ], name: "d", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"d">, init: true, @@ -112,14 +112,14 @@ ScopeManager { isTypeVariable: false, }, Variable$9 { - defs: Array [ + defs: [ ParameterDefinition$7 { name: Identifier<"e">, node: FunctionExpression$2, }, ], name: "e", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"e">, init: true, @@ -135,26 +135,26 @@ ScopeManager { isTypeVariable: false, }, Variable$10 { - defs: Array [ + defs: [ ParameterDefinition$8 { name: Identifier<"f">, node: FunctionExpression$2, }, ], name: "f", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$11 { - defs: Array [ + defs: [ VariableDefinition$9 { name: Identifier<"unresolved1">, node: VariableDeclarator$4, }, ], name: "unresolved1", - references: Array [ + references: [ Reference$5 { identifier: Identifier<"unresolved1">, init: true, @@ -170,14 +170,14 @@ ScopeManager { isTypeVariable: false, }, Variable$12 { - defs: Array [ + defs: [ VariableDefinition$10 { name: Identifier<"unresolved2">, node: VariableDeclarator$5, }, ], name: "unresolved2", - references: Array [ + references: [ Reference$7 { identifier: Identifier<"unresolved2">, init: true, @@ -193,11 +193,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$6, isStrict: false, - references: Array [ + references: [ Reference$5, Reference$6 { identifier: Identifier<"f">, @@ -225,7 +225,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$11, @@ -235,20 +235,20 @@ ScopeManager { ClassScope$2 { block: ClassDeclaration$1, isStrict: true, - references: Array [], + references: [], set: Map { "A" => Variable$3, }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, FunctionScope$3 { block: FunctionExpression$2, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, Reference$3, @@ -265,7 +265,7 @@ ScopeManager { }, type: "function", upper: ClassScope$2, - variables: Array [ + variables: [ Variable$4, Variable$5, Variable$6, diff --git a/packages/scope-manager/tests/fixtures/class/declaration/new.ts.shot b/packages/scope-manager/tests/fixtures/class/declaration/new.ts.shot index 0a411aba998e..541419238a97 100644 --- a/packages/scope-manager/tests/fixtures/class/declaration/new.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/declaration/new.ts.shot @@ -2,17 +2,17 @@ exports[`class declaration new 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ClassNameDefinition$1 { name: Identifier<"A">, node: ClassDeclaration$1, }, ], name: "A", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"A">, isRead: true, @@ -26,23 +26,23 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ ClassNameDefinition$2 { name: Identifier<"A">, node: ClassDeclaration$1, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$2, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -51,7 +51,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -59,13 +59,13 @@ ScopeManager { ClassScope$2 { block: ClassDeclaration$1, isStrict: true, - references: Array [], + references: [], set: Map { "A" => Variable$3, }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, diff --git a/packages/scope-manager/tests/fixtures/class/declaration/parameter-properties.ts.shot b/packages/scope-manager/tests/fixtures/class/declaration/parameter-properties.ts.shot index ab92b6c3b117..42a143936639 100644 --- a/packages/scope-manager/tests/fixtures/class/declaration/parameter-properties.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/declaration/parameter-properties.ts.shot @@ -2,17 +2,17 @@ exports[`class declaration parameter-properties 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"outer">, node: VariableDeclarator$1, }, ], name: "outer", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"outer">, init: true, @@ -36,14 +36,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"Outer">, node: TSTypeAliasDeclaration$3, }, ], name: "Outer", - references: Array [ + references: [ Reference$7 { identifier: Identifier<"Outer">, isRead: true, @@ -57,45 +57,45 @@ ScopeManager { isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ClassNameDefinition$3 { name: Identifier<"A">, node: ClassDeclaration$4, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ClassNameDefinition$4 { name: Identifier<"A">, node: ClassDeclaration$4, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$6 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$7 { - defs: Array [ + defs: [ ParameterDefinition$5 { name: Identifier<"a">, node: FunctionExpression$5, }, ], name: "a", - references: Array [ + references: [ Reference$4 { identifier: Identifier<"a">, isRead: true, @@ -117,14 +117,14 @@ ScopeManager { isTypeVariable: false, }, Variable$8 { - defs: Array [ + defs: [ ParameterDefinition$6 { name: Identifier<"b">, node: FunctionExpression$5, }, ], name: "b", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"b">, init: true, @@ -140,14 +140,14 @@ ScopeManager { isTypeVariable: false, }, Variable$9 { - defs: Array [ + defs: [ ParameterDefinition$7 { name: Identifier<"c">, node: FunctionExpression$5, }, ], name: "c", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"c">, init: true, @@ -163,14 +163,14 @@ ScopeManager { isTypeVariable: false, }, Variable$10 { - defs: Array [ + defs: [ ParameterDefinition$8 { name: Identifier<"d">, node: FunctionExpression$5, }, ], name: "d", - references: Array [ + references: [ Reference$5 { identifier: Identifier<"d">, init: true, @@ -186,38 +186,38 @@ ScopeManager { isTypeVariable: false, }, Variable$11 { - defs: Array [ + defs: [ ParameterDefinition$9 { name: Identifier<"e">, node: FunctionExpression$5, }, ], name: "e", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$12 { - defs: Array [ + defs: [ ParameterDefinition$10 { name: Identifier<"f">, node: FunctionExpression$5, }, ], name: "f", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$13 { - defs: Array [ + defs: [ VariableDefinition$11 { name: Identifier<"unresovled">, node: VariableDeclarator$7, }, ], name: "unresovled", - references: Array [ + references: [ Reference$9 { identifier: Identifier<"unresovled">, init: true, @@ -233,11 +233,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$8, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$9, Reference$10 { @@ -258,7 +258,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -269,20 +269,20 @@ ScopeManager { ClassScope$2 { block: ClassDeclaration$4, isStrict: true, - references: Array [], + references: [], set: Map { "A" => Variable$5, }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$5, ], }, FunctionScope$3 { block: FunctionExpression$5, isStrict: true, - references: Array [ + references: [ Reference$2, Reference$3, Reference$4, @@ -302,7 +302,7 @@ ScopeManager { }, type: "function", upper: ClassScope$2, - variables: Array [ + variables: [ Variable$6, Variable$7, Variable$8, diff --git a/packages/scope-manager/tests/fixtures/class/declaration/private-identifier.ts.shot b/packages/scope-manager/tests/fixtures/class/declaration/private-identifier.ts.shot index bed463a748a8..664ce84870fc 100644 --- a/packages/scope-manager/tests/fixtures/class/declaration/private-identifier.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/declaration/private-identifier.ts.shot @@ -2,52 +2,52 @@ exports[`class declaration private-identifier 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ClassNameDefinition$1 { name: Identifier<"Foo">, node: ClassDeclaration$1, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ ClassNameDefinition$2 { name: Identifier<"Foo">, node: ClassDeclaration$1, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$2, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "Foo" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -55,26 +55,26 @@ ScopeManager { ClassScope$2 { block: ClassDeclaration$1, isStrict: true, - references: Array [], + references: [], set: Map { "Foo" => Variable$3, }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, FunctionScope$3 { block: FunctionExpression$3, isStrict: true, - references: Array [], + references: [], set: Map { "arguments" => Variable$4, }, type: "function", upper: ClassScope$2, - variables: Array [ + variables: [ Variable$4, ], }, diff --git a/packages/scope-manager/tests/fixtures/class/declaration/properties-type-annotation.ts.shot b/packages/scope-manager/tests/fixtures/class/declaration/properties-type-annotation.ts.shot index 429118937915..4a06091e0ede 100644 --- a/packages/scope-manager/tests/fixtures/class/declaration/properties-type-annotation.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/declaration/properties-type-annotation.ts.shot @@ -2,17 +2,17 @@ exports[`class declaration properties-type-annotation 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -26,35 +26,35 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ ClassNameDefinition$2 { name: Identifier<"A">, node: ClassDeclaration$2, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ClassNameDefinition$3 { name: Identifier<"A">, node: ClassDeclaration$2, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "T" => Variable$2, @@ -62,7 +62,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -71,7 +71,7 @@ ScopeManager { ClassScope$2 { block: ClassDeclaration$2, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -79,7 +79,7 @@ ScopeManager { }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, ], }, diff --git a/packages/scope-manager/tests/fixtures/class/declaration/properties.ts.shot b/packages/scope-manager/tests/fixtures/class/declaration/properties.ts.shot index 180bf6246fb7..1f3a9ada0462 100644 --- a/packages/scope-manager/tests/fixtures/class/declaration/properties.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/declaration/properties.ts.shot @@ -2,17 +2,17 @@ exports[`class declaration properties 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"x">, node: VariableDeclarator$1, }, ], name: "x", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"x">, init: true, @@ -36,38 +36,38 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ ClassNameDefinition$2 { name: Identifier<"A">, node: ClassDeclaration$3, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ClassNameDefinition$3 { name: Identifier<"A">, node: ClassDeclaration$3, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ VariableDefinition$4 { name: Identifier<"unresolved">, node: VariableDeclarator$4, }, ], name: "unresolved", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"unresolved">, init: true, @@ -83,11 +83,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$3, Reference$4 { @@ -107,7 +107,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -117,35 +117,35 @@ ScopeManager { ClassScope$2 { block: ClassDeclaration$3, isStrict: true, - references: Array [], + references: [], set: Map { "A" => Variable$4, }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, ], }, ClassFieldInitializerScope$3 { block: Literal$6, isStrict: true, - references: Array [], + references: [], set: Map {}, type: "class-field-initializer", upper: ClassScope$2, - variables: Array [], + variables: [], }, ClassFieldInitializerScope$4 { block: Identifier<"x">, isStrict: true, - references: Array [ + references: [ Reference$2, ], set: Map {}, type: "class-field-initializer", upper: ClassScope$2, - variables: Array [], + variables: [], }, ], } diff --git a/packages/scope-manager/tests/fixtures/class/declaration/static-block.ts.shot b/packages/scope-manager/tests/fixtures/class/declaration/static-block.ts.shot index b49013a55755..d95afb639209 100644 --- a/packages/scope-manager/tests/fixtures/class/declaration/static-block.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/declaration/static-block.ts.shot @@ -2,45 +2,45 @@ exports[`class declaration static-block 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ClassNameDefinition$1 { name: Identifier<"A">, node: ClassDeclaration$1, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ ClassNameDefinition$2 { name: Identifier<"A">, node: ClassDeclaration$1, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$2, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "A" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -48,24 +48,24 @@ ScopeManager { ClassScope$2 { block: ClassDeclaration$1, isStrict: true, - references: Array [], + references: [], set: Map { "A" => Variable$3, }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, ClassStaticBlockScope$3 { block: StaticBlock$3, isStrict: true, - references: Array [], + references: [], set: Map {}, type: "class-static-block", upper: ClassScope$2, - variables: Array [], + variables: [], }, ], } diff --git a/packages/scope-manager/tests/fixtures/class/declaration/static-external-ref.ts.shot b/packages/scope-manager/tests/fixtures/class/declaration/static-external-ref.ts.shot index 0ef13dfe6d5a..9c01872dd3f8 100644 --- a/packages/scope-manager/tests/fixtures/class/declaration/static-external-ref.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/declaration/static-external-ref.ts.shot @@ -2,17 +2,17 @@ exports[`class declaration static-external-ref 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ FunctionNameDefinition$1 { name: Identifier<"f">, node: FunctionDeclaration$1, }, ], name: "f", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"f">, isRead: true, @@ -26,42 +26,42 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ClassNameDefinition$2 { name: Identifier<"A">, node: ClassDeclaration$2, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ClassNameDefinition$3 { name: Identifier<"A">, node: ClassDeclaration$2, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "f" => Variable$2, @@ -69,7 +69,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$4, @@ -78,39 +78,39 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$1, isStrict: false, - references: Array [], + references: [], set: Map { "arguments" => Variable$3, }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, ClassScope$3 { block: ClassDeclaration$2, isStrict: true, - references: Array [], + references: [], set: Map { "A" => Variable$5, }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$5, ], }, ClassStaticBlockScope$4 { block: StaticBlock$4, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map {}, type: "class-static-block", upper: ClassScope$3, - variables: Array [], + variables: [], }, ], } diff --git a/packages/scope-manager/tests/fixtures/class/declaration/static-with-constructor.ts.shot b/packages/scope-manager/tests/fixtures/class/declaration/static-with-constructor.ts.shot index 76d943c8df85..d9edbafed679 100644 --- a/packages/scope-manager/tests/fixtures/class/declaration/static-with-constructor.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/declaration/static-with-constructor.ts.shot @@ -2,17 +2,17 @@ exports[`class declaration static-with-constructor 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ FunctionNameDefinition$1 { name: Identifier<"f">, node: FunctionDeclaration$1, }, ], name: "f", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"f">, isRead: true, @@ -26,49 +26,49 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ClassNameDefinition$2 { name: Identifier<"A">, node: ClassDeclaration$2, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ClassNameDefinition$3 { name: Identifier<"A">, node: ClassDeclaration$2, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$6 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "f" => Variable$2, @@ -76,7 +76,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$4, @@ -85,42 +85,42 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$1, isStrict: false, - references: Array [], + references: [], set: Map { "arguments" => Variable$3, }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, ClassScope$3 { block: ClassDeclaration$2, isStrict: true, - references: Array [], + references: [], set: Map { "A" => Variable$5, }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$5, ], }, ClassStaticBlockScope$4 { block: StaticBlock$4, isStrict: true, - references: Array [], + references: [], set: Map {}, type: "class-static-block", upper: ClassScope$3, - variables: Array [], + variables: [], }, FunctionScope$5 { block: FunctionExpression$5, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -128,7 +128,7 @@ ScopeManager { }, type: "function", upper: ClassScope$3, - variables: Array [ + variables: [ Variable$6, ], }, diff --git a/packages/scope-manager/tests/fixtures/class/declaration/type-reference.ts.shot b/packages/scope-manager/tests/fixtures/class/declaration/type-reference.ts.shot index 78b65954b2e6..b005b8b02aad 100644 --- a/packages/scope-manager/tests/fixtures/class/declaration/type-reference.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/declaration/type-reference.ts.shot @@ -2,17 +2,17 @@ exports[`class declaration type-reference 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ClassNameDefinition$1 { name: Identifier<"A">, node: ClassDeclaration$1, }, ], name: "A", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"A">, isRead: true, @@ -42,50 +42,50 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ ClassNameDefinition$2 { name: Identifier<"A">, node: ClassDeclaration$1, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"T1">, node: TSTypeAliasDeclaration$2, }, ], name: "T1", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ TypeDefinition$4 { name: Identifier<"T2">, node: TSTypeAliasDeclaration$3, }, ], name: "T2", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$6 { - defs: Array [ + defs: [ VariableDefinition$5 { name: Identifier<"v">, node: VariableDeclarator$4, }, ], name: "v", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"v">, init: true, @@ -101,11 +101,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, Reference$3, @@ -120,7 +120,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$4, @@ -131,13 +131,13 @@ ScopeManager { ClassScope$2 { block: ClassDeclaration$1, isStrict: true, - references: Array [], + references: [], set: Map { "A" => Variable$3, }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, diff --git a/packages/scope-manager/tests/fixtures/class/emit-metadata/accessor-deco.ts.shot b/packages/scope-manager/tests/fixtures/class/emit-metadata/accessor-deco.ts.shot index f535f8e61be2..8051ca3382c9 100644 --- a/packages/scope-manager/tests/fixtures/class/emit-metadata/accessor-deco.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/emit-metadata/accessor-deco.ts.shot @@ -2,17 +2,17 @@ exports[`class emit-metadata accessor-deco 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ FunctionNameDefinition$1 { name: Identifier<"deco">, node: FunctionDeclaration$1, }, ], name: "deco", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"deco">, isRead: true, @@ -50,33 +50,33 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$2 { name: Identifier<"param">, node: FunctionDeclaration$1, }, ], name: "param", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$5 { - defs: Array [ + defs: [ ClassNameDefinition$3 { name: Identifier<"T">, node: ClassDeclaration$2, }, ], name: "T", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"T">, isRead: true, @@ -114,26 +114,26 @@ ScopeManager { isTypeVariable: true, }, Variable$6 { - defs: Array [ + defs: [ ClassNameDefinition$4 { name: Identifier<"T">, node: ClassDeclaration$2, }, ], name: "T", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$7 { - defs: Array [ + defs: [ VariableDefinition$5 { name: Identifier<"keyName">, node: VariableDeclarator$3, }, ], name: "keyName", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"keyName">, init: true, @@ -165,132 +165,132 @@ ScopeManager { isTypeVariable: false, }, Variable$8 { - defs: Array [ + defs: [ ClassNameDefinition$6 { name: Identifier<"A">, node: ClassDeclaration$5, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$9 { - defs: Array [ + defs: [ ClassNameDefinition$7 { name: Identifier<"A">, node: ClassDeclaration$5, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$10 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$11 { - defs: Array [ + defs: [ ParameterDefinition$8 { name: Identifier<"b">, node: FunctionExpression$6, }, ], name: "b", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$12 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$13 { - defs: Array [ + defs: [ ParameterDefinition$9 { name: Identifier<"a">, node: FunctionExpression$7, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$14 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$15 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$16 { - defs: Array [ + defs: [ ParameterDefinition$10 { name: Identifier<"a">, node: FunctionExpression$8, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$17 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$18 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$19 { - defs: Array [ + defs: [ ParameterDefinition$11 { name: Identifier<"a">, node: FunctionExpression$9, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$20 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$10, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -302,7 +302,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$5, @@ -313,14 +313,14 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$1, isStrict: false, - references: Array [], + references: [], set: Map { "arguments" => Variable$3, "param" => Variable$4, }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, ], @@ -328,20 +328,20 @@ ScopeManager { ClassScope$3 { block: ClassDeclaration$2, isStrict: true, - references: Array [], + references: [], set: Map { "T" => Variable$6, }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$6, ], }, ClassScope$4 { block: ClassDeclaration$5, isStrict: true, - references: Array [ + references: [ Reference$3, Reference$5, Reference$7, @@ -354,14 +354,14 @@ ScopeManager { }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$9, ], }, FunctionScope$5 { block: FunctionExpression$6, isStrict: true, - references: Array [ + references: [ Reference$2, ], set: Map { @@ -370,7 +370,7 @@ ScopeManager { }, type: "function", upper: ClassScope$4, - variables: Array [ + variables: [ Variable$10, Variable$11, ], @@ -378,7 +378,7 @@ ScopeManager { FunctionScope$6 { block: FunctionExpression$7, isStrict: true, - references: Array [ + references: [ Reference$4, ], set: Map { @@ -387,7 +387,7 @@ ScopeManager { }, type: "function", upper: ClassScope$4, - variables: Array [ + variables: [ Variable$12, Variable$13, ], @@ -395,20 +395,20 @@ ScopeManager { FunctionScope$7 { block: FunctionExpression$11, isStrict: true, - references: Array [], + references: [], set: Map { "arguments" => Variable$14, }, type: "function", upper: ClassScope$4, - variables: Array [ + variables: [ Variable$14, ], }, FunctionScope$8 { block: FunctionExpression$8, isStrict: true, - references: Array [ + references: [ Reference$6, ], set: Map { @@ -417,7 +417,7 @@ ScopeManager { }, type: "function", upper: ClassScope$4, - variables: Array [ + variables: [ Variable$15, Variable$16, ], @@ -425,20 +425,20 @@ ScopeManager { FunctionScope$9 { block: FunctionExpression$12, isStrict: true, - references: Array [], + references: [], set: Map { "arguments" => Variable$17, }, type: "function", upper: ClassScope$4, - variables: Array [ + variables: [ Variable$17, ], }, FunctionScope$10 { block: FunctionExpression$9, isStrict: true, - references: Array [ + references: [ Reference$9, ], set: Map { @@ -447,7 +447,7 @@ ScopeManager { }, type: "function", upper: ClassScope$4, - variables: Array [ + variables: [ Variable$18, Variable$19, ], @@ -455,13 +455,13 @@ ScopeManager { FunctionScope$11 { block: FunctionExpression$13, isStrict: true, - references: Array [], + references: [], set: Map { "arguments" => Variable$20, }, type: "function", upper: ClassScope$4, - variables: Array [ + variables: [ Variable$20, ], }, diff --git a/packages/scope-manager/tests/fixtures/class/emit-metadata/method-deco.ts.shot b/packages/scope-manager/tests/fixtures/class/emit-metadata/method-deco.ts.shot index 74707c85f354..567fbceb9d51 100644 --- a/packages/scope-manager/tests/fixtures/class/emit-metadata/method-deco.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/emit-metadata/method-deco.ts.shot @@ -2,17 +2,17 @@ exports[`class emit-metadata method-deco 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ FunctionNameDefinition$1 { name: Identifier<"deco">, node: FunctionDeclaration$1, }, ], name: "deco", - references: Array [ + references: [ Reference$6 { identifier: Identifier<"deco">, isRead: true, @@ -26,33 +26,33 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$2 { name: Identifier<"param">, node: FunctionDeclaration$1, }, ], name: "param", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$5 { - defs: Array [ + defs: [ ClassNameDefinition$3 { name: Identifier<"T">, node: ClassDeclaration$2, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -98,97 +98,97 @@ ScopeManager { isTypeVariable: true, }, Variable$6 { - defs: Array [ + defs: [ ClassNameDefinition$4 { name: Identifier<"T">, node: ClassDeclaration$2, }, ], name: "T", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$7 { - defs: Array [ + defs: [ ClassNameDefinition$5 { name: Identifier<"A">, node: ClassDeclaration$3, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$8 { - defs: Array [ + defs: [ ClassNameDefinition$6 { name: Identifier<"A">, node: ClassDeclaration$3, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$9 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$10 { - defs: Array [ + defs: [ ParameterDefinition$7 { name: Identifier<"a">, node: FunctionExpression$4, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$11 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$12 { - defs: Array [ + defs: [ ParameterDefinition$8 { name: Identifier<"a">, node: FunctionExpression$5, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$13 { - defs: Array [ + defs: [ ParameterDefinition$9 { name: Identifier<"b">, node: FunctionExpression$5, }, ], name: "b", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$6, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "deco" => Variable$2, @@ -197,7 +197,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$5, @@ -207,14 +207,14 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$1, isStrict: false, - references: Array [], + references: [], set: Map { "arguments" => Variable$3, "param" => Variable$4, }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, ], @@ -222,20 +222,20 @@ ScopeManager { ClassScope$3 { block: ClassDeclaration$2, isStrict: true, - references: Array [], + references: [], set: Map { "T" => Variable$6, }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$6, ], }, ClassScope$4 { block: ClassDeclaration$3, isStrict: true, - references: Array [ + references: [ Reference$6, ], set: Map { @@ -243,14 +243,14 @@ ScopeManager { }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$8, ], }, FunctionScope$5 { block: FunctionExpression$4, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -260,7 +260,7 @@ ScopeManager { }, type: "function", upper: ClassScope$4, - variables: Array [ + variables: [ Variable$9, Variable$10, ], @@ -268,7 +268,7 @@ ScopeManager { FunctionScope$6 { block: FunctionExpression$5, isStrict: true, - references: Array [ + references: [ Reference$3, Reference$4, Reference$5, @@ -280,7 +280,7 @@ ScopeManager { }, type: "function", upper: ClassScope$4, - variables: Array [ + variables: [ Variable$11, Variable$12, Variable$13, diff --git a/packages/scope-manager/tests/fixtures/class/emit-metadata/method-return-generic.ts.shot b/packages/scope-manager/tests/fixtures/class/emit-metadata/method-return-generic.ts.shot index 64e13471b5ee..5812d8360b7f 100644 --- a/packages/scope-manager/tests/fixtures/class/emit-metadata/method-return-generic.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/emit-metadata/method-return-generic.ts.shot @@ -2,17 +2,17 @@ exports[`class emit-metadata method-return-generic 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ImportBindingDefinition$1 { name: Identifier<"TestGeneric">, node: ImportSpecifier$1, }, ], name: "TestGeneric", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"TestGeneric">, isRead: true, @@ -26,14 +26,14 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ ImportBindingDefinition$2 { name: Identifier<"Test">, node: ImportSpecifier$2, }, ], name: "Test", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"Test">, isRead: true, @@ -47,14 +47,14 @@ ScopeManager { isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ FunctionNameDefinition$3 { name: Identifier<"deco">, node: TSDeclareFunction$3, }, ], name: "deco", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"deco">, isRead: true, @@ -68,61 +68,61 @@ ScopeManager { isTypeVariable: false, }, Variable$5 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$6 { - defs: Array [ + defs: [ ParameterDefinition$4 { name: Identifier<"_param">, node: TSDeclareFunction$3, }, ], name: "_param", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$7 { - defs: Array [ + defs: [ ClassNameDefinition$5 { name: Identifier<"TestClass">, node: ClassDeclaration$4, }, ], name: "TestClass", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$8 { - defs: Array [ + defs: [ ClassNameDefinition$6 { name: Identifier<"TestClass">, node: ClassDeclaration$4, }, ], name: "TestClass", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$9 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "TestGeneric" => Variable$2, @@ -132,7 +132,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -143,14 +143,14 @@ ScopeManager { FunctionScope$2 { block: TSDeclareFunction$3, isStrict: false, - references: Array [], + references: [], set: Map { "arguments" => Variable$5, "_param" => Variable$6, }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$5, Variable$6, ], @@ -158,7 +158,7 @@ ScopeManager { ClassScope$3 { block: ClassDeclaration$4, isStrict: true, - references: Array [ + references: [ Reference$3, ], set: Map { @@ -166,14 +166,14 @@ ScopeManager { }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$8, ], }, FunctionScope$4 { block: FunctionExpression$6, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -182,7 +182,7 @@ ScopeManager { }, type: "function", upper: ClassScope$3, - variables: Array [ + variables: [ Variable$9, ], }, diff --git a/packages/scope-manager/tests/fixtures/class/emit-metadata/nested-class-both.ts.shot b/packages/scope-manager/tests/fixtures/class/emit-metadata/nested-class-both.ts.shot index 01686cb28848..0e6e399e45e4 100644 --- a/packages/scope-manager/tests/fixtures/class/emit-metadata/nested-class-both.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/emit-metadata/nested-class-both.ts.shot @@ -2,17 +2,17 @@ exports[`class emit-metadata nested-class-both 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ FunctionNameDefinition$1 { name: Identifier<"deco">, node: FunctionDeclaration$1, }, ], name: "deco", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"deco">, isRead: true, @@ -34,33 +34,33 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$2 { name: Identifier<"param">, node: FunctionDeclaration$1, }, ], name: "param", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$5 { - defs: Array [ + defs: [ ClassNameDefinition$3 { name: Identifier<"T">, node: ClassDeclaration$2, }, ], name: "T", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"T">, isRead: true, @@ -82,109 +82,109 @@ ScopeManager { isTypeVariable: true, }, Variable$6 { - defs: Array [ + defs: [ ClassNameDefinition$4 { name: Identifier<"T">, node: ClassDeclaration$2, }, ], name: "T", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$7 { - defs: Array [ + defs: [ ClassNameDefinition$5 { name: Identifier<"A">, node: ClassDeclaration$3, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$8 { - defs: Array [ + defs: [ ClassNameDefinition$6 { name: Identifier<"A">, node: ClassDeclaration$3, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$9 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$10 { - defs: Array [ + defs: [ ParameterDefinition$7 { name: Identifier<"foo">, node: FunctionExpression$4, }, ], name: "foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$11 { - defs: Array [ + defs: [ ClassNameDefinition$8 { name: Identifier<"B">, node: ClassDeclaration$5, }, ], name: "B", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$12 { - defs: Array [ + defs: [ ClassNameDefinition$9 { name: Identifier<"B">, node: ClassDeclaration$5, }, ], name: "B", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$13 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$14 { - defs: Array [ + defs: [ ParameterDefinition$10 { name: Identifier<"bar">, node: FunctionExpression$6, }, ], name: "bar", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$7, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -195,7 +195,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$5, @@ -205,14 +205,14 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$1, isStrict: false, - references: Array [], + references: [], set: Map { "arguments" => Variable$3, "param" => Variable$4, }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, ], @@ -220,33 +220,33 @@ ScopeManager { ClassScope$3 { block: ClassDeclaration$2, isStrict: true, - references: Array [], + references: [], set: Map { "T" => Variable$6, }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$6, ], }, ClassScope$4 { block: ClassDeclaration$3, isStrict: true, - references: Array [], + references: [], set: Map { "A" => Variable$8, }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$8, ], }, FunctionScope$5 { block: FunctionExpression$4, isStrict: true, - references: Array [ + references: [ Reference$2, Reference$3, ], @@ -257,7 +257,7 @@ ScopeManager { }, type: "function", upper: ClassScope$4, - variables: Array [ + variables: [ Variable$9, Variable$10, Variable$11, @@ -266,20 +266,20 @@ ScopeManager { ClassScope$6 { block: ClassDeclaration$5, isStrict: true, - references: Array [], + references: [], set: Map { "B" => Variable$12, }, type: "class", upper: FunctionScope$5, - variables: Array [ + variables: [ Variable$12, ], }, FunctionScope$7 { block: FunctionExpression$6, isStrict: true, - references: Array [ + references: [ Reference$4, ], set: Map { @@ -288,7 +288,7 @@ ScopeManager { }, type: "function", upper: ClassScope$6, - variables: Array [ + variables: [ Variable$13, Variable$14, ], diff --git a/packages/scope-manager/tests/fixtures/class/emit-metadata/nested-class-inner.ts.shot b/packages/scope-manager/tests/fixtures/class/emit-metadata/nested-class-inner.ts.shot index 963402a90367..f46cd16af2ef 100644 --- a/packages/scope-manager/tests/fixtures/class/emit-metadata/nested-class-inner.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/emit-metadata/nested-class-inner.ts.shot @@ -2,17 +2,17 @@ exports[`class emit-metadata nested-class-inner 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ FunctionNameDefinition$1 { name: Identifier<"deco">, node: FunctionDeclaration$1, }, ], name: "deco", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"deco">, isRead: true, @@ -26,33 +26,33 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$2 { name: Identifier<"param">, node: FunctionDeclaration$1, }, ], name: "param", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$5 { - defs: Array [ + defs: [ ClassNameDefinition$3 { name: Identifier<"T">, node: ClassDeclaration$2, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -74,109 +74,109 @@ ScopeManager { isTypeVariable: true, }, Variable$6 { - defs: Array [ + defs: [ ClassNameDefinition$4 { name: Identifier<"T">, node: ClassDeclaration$2, }, ], name: "T", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$7 { - defs: Array [ + defs: [ ClassNameDefinition$5 { name: Identifier<"A">, node: ClassDeclaration$3, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$8 { - defs: Array [ + defs: [ ClassNameDefinition$6 { name: Identifier<"A">, node: ClassDeclaration$3, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$9 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$10 { - defs: Array [ + defs: [ ParameterDefinition$7 { name: Identifier<"foo">, node: FunctionExpression$4, }, ], name: "foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$11 { - defs: Array [ + defs: [ ClassNameDefinition$8 { name: Identifier<"B">, node: ClassDeclaration$5, }, ], name: "B", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$12 { - defs: Array [ + defs: [ ClassNameDefinition$9 { name: Identifier<"B">, node: ClassDeclaration$5, }, ], name: "B", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$13 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$14 { - defs: Array [ + defs: [ ParameterDefinition$10 { name: Identifier<"bar">, node: FunctionExpression$6, }, ], name: "bar", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$7, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "deco" => Variable$2, @@ -185,7 +185,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$5, @@ -195,14 +195,14 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$1, isStrict: false, - references: Array [], + references: [], set: Map { "arguments" => Variable$3, "param" => Variable$4, }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, ], @@ -210,33 +210,33 @@ ScopeManager { ClassScope$3 { block: ClassDeclaration$2, isStrict: true, - references: Array [], + references: [], set: Map { "T" => Variable$6, }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$6, ], }, ClassScope$4 { block: ClassDeclaration$3, isStrict: true, - references: Array [], + references: [], set: Map { "A" => Variable$8, }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$8, ], }, FunctionScope$5 { block: FunctionExpression$4, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -247,7 +247,7 @@ ScopeManager { }, type: "function", upper: ClassScope$4, - variables: Array [ + variables: [ Variable$9, Variable$10, Variable$11, @@ -256,20 +256,20 @@ ScopeManager { ClassScope$6 { block: ClassDeclaration$5, isStrict: true, - references: Array [], + references: [], set: Map { "B" => Variable$12, }, type: "class", upper: FunctionScope$5, - variables: Array [ + variables: [ Variable$12, ], }, FunctionScope$7 { block: FunctionExpression$6, isStrict: true, - references: Array [ + references: [ Reference$3, ], set: Map { @@ -278,7 +278,7 @@ ScopeManager { }, type: "function", upper: ClassScope$6, - variables: Array [ + variables: [ Variable$13, Variable$14, ], diff --git a/packages/scope-manager/tests/fixtures/class/emit-metadata/nested-class-outer.ts.shot b/packages/scope-manager/tests/fixtures/class/emit-metadata/nested-class-outer.ts.shot index 5db83db9116b..226235e83795 100644 --- a/packages/scope-manager/tests/fixtures/class/emit-metadata/nested-class-outer.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/emit-metadata/nested-class-outer.ts.shot @@ -2,17 +2,17 @@ exports[`class emit-metadata nested-class-outer 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ FunctionNameDefinition$1 { name: Identifier<"deco">, node: FunctionDeclaration$1, }, ], name: "deco", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"deco">, isRead: true, @@ -26,33 +26,33 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$2 { name: Identifier<"param">, node: FunctionDeclaration$1, }, ], name: "param", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$5 { - defs: Array [ + defs: [ ClassNameDefinition$3 { name: Identifier<"T">, node: ClassDeclaration$2, }, ], name: "T", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"T">, isRead: true, @@ -74,109 +74,109 @@ ScopeManager { isTypeVariable: true, }, Variable$6 { - defs: Array [ + defs: [ ClassNameDefinition$4 { name: Identifier<"T">, node: ClassDeclaration$2, }, ], name: "T", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$7 { - defs: Array [ + defs: [ ClassNameDefinition$5 { name: Identifier<"A">, node: ClassDeclaration$3, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$8 { - defs: Array [ + defs: [ ClassNameDefinition$6 { name: Identifier<"A">, node: ClassDeclaration$3, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$9 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$10 { - defs: Array [ + defs: [ ParameterDefinition$7 { name: Identifier<"foo">, node: FunctionExpression$4, }, ], name: "foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$11 { - defs: Array [ + defs: [ ClassNameDefinition$8 { name: Identifier<"B">, node: ClassDeclaration$5, }, ], name: "B", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$12 { - defs: Array [ + defs: [ ClassNameDefinition$9 { name: Identifier<"B">, node: ClassDeclaration$5, }, ], name: "B", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$13 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$14 { - defs: Array [ + defs: [ ParameterDefinition$10 { name: Identifier<"bar">, node: FunctionExpression$6, }, ], name: "bar", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$7, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -187,7 +187,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$5, @@ -197,14 +197,14 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$1, isStrict: false, - references: Array [], + references: [], set: Map { "arguments" => Variable$3, "param" => Variable$4, }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, ], @@ -212,33 +212,33 @@ ScopeManager { ClassScope$3 { block: ClassDeclaration$2, isStrict: true, - references: Array [], + references: [], set: Map { "T" => Variable$6, }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$6, ], }, ClassScope$4 { block: ClassDeclaration$3, isStrict: true, - references: Array [], + references: [], set: Map { "A" => Variable$8, }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$8, ], }, FunctionScope$5 { block: FunctionExpression$4, isStrict: true, - references: Array [ + references: [ Reference$2, ], set: Map { @@ -248,7 +248,7 @@ ScopeManager { }, type: "function", upper: ClassScope$4, - variables: Array [ + variables: [ Variable$9, Variable$10, Variable$11, @@ -257,20 +257,20 @@ ScopeManager { ClassScope$6 { block: ClassDeclaration$5, isStrict: true, - references: Array [], + references: [], set: Map { "B" => Variable$12, }, type: "class", upper: FunctionScope$5, - variables: Array [ + variables: [ Variable$12, ], }, FunctionScope$7 { block: FunctionExpression$6, isStrict: true, - references: Array [ + references: [ Reference$3, ], set: Map { @@ -279,7 +279,7 @@ ScopeManager { }, type: "function", upper: ClassScope$6, - variables: Array [ + variables: [ Variable$13, Variable$14, ], diff --git a/packages/scope-manager/tests/fixtures/class/emit-metadata/parameters-deco.ts.shot b/packages/scope-manager/tests/fixtures/class/emit-metadata/parameters-deco.ts.shot index ac1f8b41de5e..5a1ff4d6429a 100644 --- a/packages/scope-manager/tests/fixtures/class/emit-metadata/parameters-deco.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/emit-metadata/parameters-deco.ts.shot @@ -2,17 +2,17 @@ exports[`class emit-metadata parameters-deco 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ FunctionNameDefinition$1 { name: Identifier<"deco">, node: FunctionDeclaration$1, }, ], name: "deco", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"deco">, isRead: true, @@ -50,33 +50,33 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$2 { name: Identifier<"param">, node: FunctionDeclaration$1, }, ], name: "param", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$5 { - defs: Array [ + defs: [ ClassNameDefinition$3 { name: Identifier<"T">, node: ClassDeclaration$2, }, ], name: "T", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"T">, isRead: true, @@ -114,116 +114,116 @@ ScopeManager { isTypeVariable: true, }, Variable$6 { - defs: Array [ + defs: [ ClassNameDefinition$4 { name: Identifier<"T">, node: ClassDeclaration$2, }, ], name: "T", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$7 { - defs: Array [ + defs: [ ClassNameDefinition$5 { name: Identifier<"A">, node: ClassDeclaration$3, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$8 { - defs: Array [ + defs: [ ClassNameDefinition$6 { name: Identifier<"A">, node: ClassDeclaration$3, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$9 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$10 { - defs: Array [ + defs: [ ParameterDefinition$7 { name: Identifier<"foo">, node: FunctionExpression$4, }, ], name: "foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$11 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$12 { - defs: Array [ + defs: [ ParameterDefinition$8 { name: Identifier<"a">, node: FunctionExpression$5, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$13 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$14 { - defs: Array [ + defs: [ ParameterDefinition$9 { name: Identifier<"a">, node: FunctionExpression$6, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$15 { - defs: Array [ + defs: [ ParameterDefinition$10 { name: Identifier<"b">, node: FunctionExpression$6, }, ], name: "b", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$7, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -234,7 +234,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$5, @@ -244,14 +244,14 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$1, isStrict: false, - references: Array [], + references: [], set: Map { "arguments" => Variable$3, "param" => Variable$4, }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, ], @@ -259,33 +259,33 @@ ScopeManager { ClassScope$3 { block: ClassDeclaration$2, isStrict: true, - references: Array [], + references: [], set: Map { "T" => Variable$6, }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$6, ], }, ClassScope$4 { block: ClassDeclaration$3, isStrict: true, - references: Array [], + references: [], set: Map { "A" => Variable$8, }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$8, ], }, FunctionScope$5 { block: FunctionExpression$4, isStrict: true, - references: Array [ + references: [ Reference$2, Reference$3, ], @@ -295,7 +295,7 @@ ScopeManager { }, type: "function", upper: ClassScope$4, - variables: Array [ + variables: [ Variable$9, Variable$10, ], @@ -303,7 +303,7 @@ ScopeManager { FunctionScope$6 { block: FunctionExpression$5, isStrict: true, - references: Array [ + references: [ Reference$4, Reference$5, ], @@ -313,7 +313,7 @@ ScopeManager { }, type: "function", upper: ClassScope$4, - variables: Array [ + variables: [ Variable$11, Variable$12, ], @@ -321,7 +321,7 @@ ScopeManager { FunctionScope$7 { block: FunctionExpression$6, isStrict: true, - references: Array [ + references: [ Reference$6, Reference$7, Reference$8, @@ -333,7 +333,7 @@ ScopeManager { }, type: "function", upper: ClassScope$4, - variables: Array [ + variables: [ Variable$13, Variable$14, Variable$15, diff --git a/packages/scope-manager/tests/fixtures/class/emit-metadata/property-deco.ts.shot b/packages/scope-manager/tests/fixtures/class/emit-metadata/property-deco.ts.shot index 348c6009163d..91636155f5a9 100644 --- a/packages/scope-manager/tests/fixtures/class/emit-metadata/property-deco.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/emit-metadata/property-deco.ts.shot @@ -2,17 +2,17 @@ exports[`class emit-metadata property-deco 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ FunctionNameDefinition$1 { name: Identifier<"deco">, node: FunctionDeclaration$1, }, ], name: "deco", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"deco">, isRead: true, @@ -26,33 +26,33 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$2 { name: Identifier<"param">, node: FunctionDeclaration$1, }, ], name: "param", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$5 { - defs: Array [ + defs: [ TSModuleNameDefinition$3 { name: Identifier<"a">, node: TSModuleDeclaration$2, }, ], name: "a", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"a">, isRead: true, @@ -74,59 +74,59 @@ ScopeManager { isTypeVariable: true, }, Variable$6 { - defs: Array [ + defs: [ ClassNameDefinition$4 { name: Identifier<"B">, node: ClassDeclaration$3, }, ], name: "B", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$7 { - defs: Array [ + defs: [ ClassNameDefinition$5 { name: Identifier<"B">, node: ClassDeclaration$3, }, ], name: "B", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$8 { - defs: Array [ + defs: [ ClassNameDefinition$6 { name: Identifier<"A">, node: ClassDeclaration$4, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$9 { - defs: Array [ + defs: [ ClassNameDefinition$7 { name: Identifier<"A">, node: ClassDeclaration$4, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "deco" => Variable$2, @@ -135,7 +135,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$5, @@ -145,14 +145,14 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$1, isStrict: false, - references: Array [], + references: [], set: Map { "arguments" => Variable$3, "param" => Variable$4, }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, ], @@ -160,33 +160,33 @@ ScopeManager { TSModuleScope$3 { block: TSModuleDeclaration$2, isStrict: true, - references: Array [], + references: [], set: Map { "B" => Variable$6, }, type: "tsModule", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$6, ], }, ClassScope$4 { block: ClassDeclaration$3, isStrict: true, - references: Array [], + references: [], set: Map { "B" => Variable$7, }, type: "class", upper: TSModuleScope$3, - variables: Array [ + variables: [ Variable$7, ], }, ClassScope$5 { block: ClassDeclaration$4, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, Reference$3, @@ -196,7 +196,7 @@ ScopeManager { }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$9, ], }, diff --git a/packages/scope-manager/tests/fixtures/class/expression/computed-member.ts.shot b/packages/scope-manager/tests/fixtures/class/expression/computed-member.ts.shot index f9080b0c6ee2..51a34859b278 100644 --- a/packages/scope-manager/tests/fixtures/class/expression/computed-member.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/expression/computed-member.ts.shot @@ -2,17 +2,17 @@ exports[`class expression computed-member 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"outer1">, node: VariableDeclarator$1, }, ], name: "outer1", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"outer1">, init: true, @@ -36,14 +36,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"outer2">, node: VariableDeclarator$3, }, ], name: "outer2", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"outer2">, init: true, @@ -67,14 +67,14 @@ ScopeManager { isTypeVariable: false, }, Variable$4 { - defs: Array [ + defs: [ VariableDefinition$3 { name: Identifier<"A">, node: VariableDeclarator$5, }, ], name: "A", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"A">, init: true, @@ -90,18 +90,18 @@ ScopeManager { isTypeVariable: false, }, Variable$5 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$7, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, Reference$3, @@ -114,7 +114,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -124,34 +124,34 @@ ScopeManager { ClassScope$2 { block: ClassExpression$6, isStrict: true, - references: Array [ + references: [ Reference$4, Reference$5, ], set: Map {}, type: "class", upper: GlobalScope$1, - variables: Array [], + variables: [], }, ClassFieldInitializerScope$3 { block: Literal$8, isStrict: true, - references: Array [], + references: [], set: Map {}, type: "class-field-initializer", upper: ClassScope$2, - variables: Array [], + variables: [], }, FunctionScope$4 { block: FunctionExpression$9, isStrict: true, - references: Array [], + references: [], set: Map { "arguments" => Variable$5, }, type: "function", upper: ClassScope$2, - variables: Array [ + variables: [ Variable$5, ], }, diff --git a/packages/scope-manager/tests/fixtures/class/expression/extends.ts.shot b/packages/scope-manager/tests/fixtures/class/expression/extends.ts.shot index cd4f6d36a491..10cea48dadfd 100644 --- a/packages/scope-manager/tests/fixtures/class/expression/extends.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/expression/extends.ts.shot @@ -2,17 +2,17 @@ exports[`class expression extends 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ClassNameDefinition$1 { name: Identifier<"A">, node: ClassDeclaration$1, }, ], name: "A", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"A">, isRead: true, @@ -26,26 +26,26 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ ClassNameDefinition$2 { name: Identifier<"A">, node: ClassDeclaration$1, }, ], name: "A", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ VariableDefinition$3 { name: Identifier<"B">, node: VariableDeclarator$2, }, ], name: "B", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"B">, init: true, @@ -61,11 +61,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -75,7 +75,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$4, @@ -84,26 +84,26 @@ ScopeManager { ClassScope$2 { block: ClassDeclaration$1, isStrict: true, - references: Array [], + references: [], set: Map { "A" => Variable$3, }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, ClassScope$3 { block: ClassExpression$3, isStrict: true, - references: Array [ + references: [ Reference$2, ], set: Map {}, type: "class", upper: GlobalScope$1, - variables: Array [], + variables: [], }, ], } diff --git a/packages/scope-manager/tests/fixtures/class/expression/method.ts.shot b/packages/scope-manager/tests/fixtures/class/expression/method.ts.shot index e384c15dc7d6..38e9f8efdfed 100644 --- a/packages/scope-manager/tests/fixtures/class/expression/method.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/expression/method.ts.shot @@ -2,17 +2,17 @@ exports[`class expression method 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"A">, node: VariableDeclarator$1, }, ], name: "A", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"A">, init: true, @@ -28,21 +28,21 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$2 { name: Identifier<"a">, node: FunctionExpression$3, }, ], name: "a", - references: Array [ + references: [ Reference$4 { identifier: Identifier<"a">, isRead: true, @@ -64,38 +64,38 @@ ScopeManager { isTypeVariable: false, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"b">, node: FunctionExpression$3, }, ], name: "b", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$6 { - defs: Array [ + defs: [ ParameterDefinition$4 { name: Identifier<"c">, node: FunctionExpression$3, }, ], name: "c", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$7 { - defs: Array [ + defs: [ ParameterDefinition$5 { name: Identifier<"d">, node: FunctionExpression$3, }, ], name: "d", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"d">, init: true, @@ -111,14 +111,14 @@ ScopeManager { isTypeVariable: false, }, Variable$8 { - defs: Array [ + defs: [ ParameterDefinition$6 { name: Identifier<"e">, node: FunctionExpression$3, }, ], name: "e", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"e">, init: true, @@ -134,26 +134,26 @@ ScopeManager { isTypeVariable: false, }, Variable$9 { - defs: Array [ + defs: [ ParameterDefinition$7 { name: Identifier<"f">, node: FunctionExpression$3, }, ], name: "f", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$10 { - defs: Array [ + defs: [ VariableDefinition$8 { name: Identifier<"unresolved1">, node: VariableDeclarator$5, }, ], name: "unresolved1", - references: Array [ + references: [ Reference$6 { identifier: Identifier<"unresolved1">, init: true, @@ -169,14 +169,14 @@ ScopeManager { isTypeVariable: false, }, Variable$11 { - defs: Array [ + defs: [ VariableDefinition$9 { name: Identifier<"unresolved2">, node: VariableDeclarator$6, }, ], name: "unresolved2", - references: Array [ + references: [ Reference$8 { identifier: Identifier<"unresolved2">, init: true, @@ -192,11 +192,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$7, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$6, Reference$7 { @@ -225,7 +225,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$10, @@ -235,16 +235,16 @@ ScopeManager { ClassScope$2 { block: ClassExpression$2, isStrict: true, - references: Array [], + references: [], set: Map {}, type: "class", upper: GlobalScope$1, - variables: Array [], + variables: [], }, FunctionScope$3 { block: FunctionExpression$3, isStrict: true, - references: Array [ + references: [ Reference$2, Reference$3, Reference$4, @@ -261,7 +261,7 @@ ScopeManager { }, type: "function", upper: ClassScope$2, - variables: Array [ + variables: [ Variable$3, Variable$4, Variable$5, diff --git a/packages/scope-manager/tests/fixtures/class/expression/new.ts.shot b/packages/scope-manager/tests/fixtures/class/expression/new.ts.shot index 6fdc35d5fcb2..42bca5fa5253 100644 --- a/packages/scope-manager/tests/fixtures/class/expression/new.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/expression/new.ts.shot @@ -2,17 +2,17 @@ exports[`class expression new 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"A">, node: VariableDeclarator$1, }, ], name: "A", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"A">, init: true, @@ -36,11 +36,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -50,7 +50,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -58,11 +58,11 @@ ScopeManager { ClassScope$2 { block: ClassExpression$2, isStrict: true, - references: Array [], + references: [], set: Map {}, type: "class", upper: GlobalScope$1, - variables: Array [], + variables: [], }, ], } diff --git a/packages/scope-manager/tests/fixtures/class/expression/parameter-properties.ts.shot b/packages/scope-manager/tests/fixtures/class/expression/parameter-properties.ts.shot index 66dbb6d1a6a5..5014e75c9c54 100644 --- a/packages/scope-manager/tests/fixtures/class/expression/parameter-properties.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/expression/parameter-properties.ts.shot @@ -2,17 +2,17 @@ exports[`class expression parameter-properties 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"outer">, node: VariableDeclarator$1, }, ], name: "outer", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"outer">, init: true, @@ -36,14 +36,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"Outer">, node: TSTypeAliasDeclaration$3, }, ], name: "Outer", - references: Array [ + references: [ Reference$8 { identifier: Identifier<"Outer">, isRead: true, @@ -57,14 +57,14 @@ ScopeManager { isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ VariableDefinition$3 { name: Identifier<"A">, node: VariableDeclarator$4, }, ], name: "A", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"A">, init: true, @@ -80,21 +80,21 @@ ScopeManager { isTypeVariable: false, }, Variable$5 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$6 { - defs: Array [ + defs: [ ParameterDefinition$4 { name: Identifier<"a">, node: FunctionExpression$6, }, ], name: "a", - references: Array [ + references: [ Reference$5 { identifier: Identifier<"a">, isRead: true, @@ -116,14 +116,14 @@ ScopeManager { isTypeVariable: false, }, Variable$7 { - defs: Array [ + defs: [ ParameterDefinition$5 { name: Identifier<"b">, node: FunctionExpression$6, }, ], name: "b", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"b">, init: true, @@ -139,14 +139,14 @@ ScopeManager { isTypeVariable: false, }, Variable$8 { - defs: Array [ + defs: [ ParameterDefinition$6 { name: Identifier<"c">, node: FunctionExpression$6, }, ], name: "c", - references: Array [ + references: [ Reference$4 { identifier: Identifier<"c">, init: true, @@ -162,14 +162,14 @@ ScopeManager { isTypeVariable: false, }, Variable$9 { - defs: Array [ + defs: [ ParameterDefinition$7 { name: Identifier<"d">, node: FunctionExpression$6, }, ], name: "d", - references: Array [ + references: [ Reference$6 { identifier: Identifier<"d">, init: true, @@ -185,38 +185,38 @@ ScopeManager { isTypeVariable: false, }, Variable$10 { - defs: Array [ + defs: [ ParameterDefinition$8 { name: Identifier<"e">, node: FunctionExpression$6, }, ], name: "e", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$11 { - defs: Array [ + defs: [ ParameterDefinition$9 { name: Identifier<"f">, node: FunctionExpression$6, }, ], name: "f", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$12 { - defs: Array [ + defs: [ VariableDefinition$10 { name: Identifier<"unresovled">, node: VariableDeclarator$8, }, ], name: "unresovled", - references: Array [ + references: [ Reference$10 { identifier: Identifier<"unresovled">, init: true, @@ -232,11 +232,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$9, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, Reference$10, @@ -258,7 +258,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -269,16 +269,16 @@ ScopeManager { ClassScope$2 { block: ClassExpression$5, isStrict: true, - references: Array [], + references: [], set: Map {}, type: "class", upper: GlobalScope$1, - variables: Array [], + variables: [], }, FunctionScope$3 { block: FunctionExpression$6, isStrict: true, - references: Array [ + references: [ Reference$3, Reference$4, Reference$5, @@ -298,7 +298,7 @@ ScopeManager { }, type: "function", upper: ClassScope$2, - variables: Array [ + variables: [ Variable$5, Variable$6, Variable$7, diff --git a/packages/scope-manager/tests/fixtures/class/expression/private-identifier.ts.shot b/packages/scope-manager/tests/fixtures/class/expression/private-identifier.ts.shot index d9961a857634..24139d5331ca 100644 --- a/packages/scope-manager/tests/fixtures/class/expression/private-identifier.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/expression/private-identifier.ts.shot @@ -2,17 +2,17 @@ exports[`class expression private-identifier 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"Foo">, node: VariableDeclarator$1, }, ], name: "Foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"Foo">, init: true, @@ -28,18 +28,18 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -48,7 +48,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -56,22 +56,22 @@ ScopeManager { ClassScope$2 { block: ClassExpression$2, isStrict: true, - references: Array [], + references: [], set: Map {}, type: "class", upper: GlobalScope$1, - variables: Array [], + variables: [], }, FunctionScope$3 { block: FunctionExpression$4, isStrict: true, - references: Array [], + references: [], set: Map { "arguments" => Variable$3, }, type: "function", upper: ClassScope$2, - variables: Array [ + variables: [ Variable$3, ], }, diff --git a/packages/scope-manager/tests/fixtures/class/expression/properties.ts.shot b/packages/scope-manager/tests/fixtures/class/expression/properties.ts.shot index b5f489d2502b..632c5c94dcfd 100644 --- a/packages/scope-manager/tests/fixtures/class/expression/properties.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/expression/properties.ts.shot @@ -2,17 +2,17 @@ exports[`class expression properties 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"x">, node: VariableDeclarator$1, }, ], name: "x", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"x">, init: true, @@ -36,14 +36,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"A">, node: VariableDeclarator$3, }, ], name: "A", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"A">, init: true, @@ -59,14 +59,14 @@ ScopeManager { isTypeVariable: false, }, Variable$4 { - defs: Array [ + defs: [ VariableDefinition$3 { name: Identifier<"unresolved">, node: VariableDeclarator$5, }, ], name: "unresolved", - references: Array [ + references: [ Reference$4 { identifier: Identifier<"unresolved">, init: true, @@ -82,11 +82,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$6, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, Reference$4, @@ -107,7 +107,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -117,31 +117,31 @@ ScopeManager { ClassScope$2 { block: ClassExpression$4, isStrict: true, - references: Array [], + references: [], set: Map {}, type: "class", upper: GlobalScope$1, - variables: Array [], + variables: [], }, ClassFieldInitializerScope$3 { block: Literal$7, isStrict: true, - references: Array [], + references: [], set: Map {}, type: "class-field-initializer", upper: ClassScope$2, - variables: Array [], + variables: [], }, ClassFieldInitializerScope$4 { block: Identifier<"x">, isStrict: true, - references: Array [ + references: [ Reference$3, ], set: Map {}, type: "class-field-initializer", upper: ClassScope$2, - variables: Array [], + variables: [], }, ], } diff --git a/packages/scope-manager/tests/fixtures/class/expression/self-reference-super.ts.shot b/packages/scope-manager/tests/fixtures/class/expression/self-reference-super.ts.shot index 9c6b38b8fea2..a5378d83ea92 100644 --- a/packages/scope-manager/tests/fixtures/class/expression/self-reference-super.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/expression/self-reference-super.ts.shot @@ -2,17 +2,17 @@ exports[`class expression self-reference-super 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"A">, node: VariableDeclarator$1, }, ], name: "A", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"A">, init: true, @@ -28,14 +28,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ ClassNameDefinition$2 { name: Identifier<"A">, node: ClassExpression$2, }, ], name: "A", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"A">, isRead: true, @@ -49,11 +49,11 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -62,7 +62,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -70,7 +70,7 @@ ScopeManager { ClassScope$2 { block: ClassExpression$2, isStrict: true, - references: Array [ + references: [ Reference$2, ], set: Map { @@ -78,7 +78,7 @@ ScopeManager { }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, diff --git a/packages/scope-manager/tests/fixtures/decorators/accessor.ts.shot b/packages/scope-manager/tests/fixtures/decorators/accessor.ts.shot index 0b471462d3a7..7cdbee72d9f8 100644 --- a/packages/scope-manager/tests/fixtures/decorators/accessor.ts.shot +++ b/packages/scope-manager/tests/fixtures/decorators/accessor.ts.shot @@ -2,17 +2,17 @@ exports[`decorators accessor 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ FunctionNameDefinition$1 { name: Identifier<"decorator">, node: FunctionDeclaration$1, }, ], name: "decorator", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"decorator">, isRead: true, @@ -34,56 +34,56 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ClassNameDefinition$2 { name: Identifier<"Foo">, node: ClassDeclaration$2, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ClassNameDefinition$3 { name: Identifier<"Foo">, node: ClassDeclaration$2, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$6 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$7 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "decorator" => Variable$2, @@ -91,7 +91,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$4, @@ -100,20 +100,20 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$1, isStrict: false, - references: Array [], + references: [], set: Map { "arguments" => Variable$3, }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, ClassScope$3 { block: ClassDeclaration$2, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -122,33 +122,33 @@ ScopeManager { }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$5, ], }, FunctionScope$4 { block: FunctionExpression$4, isStrict: true, - references: Array [], + references: [], set: Map { "arguments" => Variable$6, }, type: "function", upper: ClassScope$3, - variables: Array [ + variables: [ Variable$6, ], }, FunctionScope$5 { block: FunctionExpression$5, isStrict: true, - references: Array [], + references: [], set: Map { "arguments" => Variable$7, }, type: "function", upper: ClassScope$3, - variables: Array [ + variables: [ Variable$7, ], }, diff --git a/packages/scope-manager/tests/fixtures/decorators/class-deco-with-object-param.ts.shot b/packages/scope-manager/tests/fixtures/decorators/class-deco-with-object-param.ts.shot index 144c0baf14fd..0a8287df0044 100644 --- a/packages/scope-manager/tests/fixtures/decorators/class-deco-with-object-param.ts.shot +++ b/packages/scope-manager/tests/fixtures/decorators/class-deco-with-object-param.ts.shot @@ -2,17 +2,17 @@ exports[`decorators class-deco-with-object-param 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ FunctionNameDefinition$1 { name: Identifier<"deco">, node: TSDeclareFunction$1, }, ], name: "deco", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"deco">, isRead: true, @@ -26,66 +26,66 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$2 { name: Identifier<"param">, node: TSDeclareFunction$1, }, ], name: "param", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"param">, node: TSFunctionType$2, }, ], name: "param", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$6 { - defs: Array [ + defs: [ ClassNameDefinition$4 { name: Identifier<"Foo">, node: ClassDeclaration$3, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$7 { - defs: Array [ + defs: [ ClassNameDefinition$5 { name: Identifier<"Foo">, node: ClassDeclaration$3, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -95,7 +95,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$6, @@ -104,14 +104,14 @@ ScopeManager { FunctionScope$2 { block: TSDeclareFunction$1, isStrict: false, - references: Array [], + references: [], set: Map { "arguments" => Variable$3, "param" => Variable$4, }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, ], @@ -119,26 +119,26 @@ ScopeManager { FunctionTypeScope$3 { block: TSFunctionType$2, isStrict: true, - references: Array [], + references: [], set: Map { "param" => Variable$5, }, type: "functionType", upper: FunctionScope$2, - variables: Array [ + variables: [ Variable$5, ], }, ClassScope$4 { block: ClassDeclaration$3, isStrict: true, - references: Array [], + references: [], set: Map { "Foo" => Variable$7, }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$7, ], }, diff --git a/packages/scope-manager/tests/fixtures/decorators/class-property.ts.shot b/packages/scope-manager/tests/fixtures/decorators/class-property.ts.shot index dca6fe84e64b..6ed5fa1ed1dc 100644 --- a/packages/scope-manager/tests/fixtures/decorators/class-property.ts.shot +++ b/packages/scope-manager/tests/fixtures/decorators/class-property.ts.shot @@ -2,17 +2,17 @@ exports[`decorators class-property 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ FunctionNameDefinition$1 { name: Identifier<"decorator">, node: FunctionDeclaration$1, }, ], name: "decorator", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"decorator">, isRead: true, @@ -26,42 +26,42 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ClassNameDefinition$2 { name: Identifier<"Foo">, node: ClassDeclaration$2, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ClassNameDefinition$3 { name: Identifier<"Foo">, node: ClassDeclaration$2, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "decorator" => Variable$2, @@ -69,7 +69,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$4, @@ -78,20 +78,20 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$1, isStrict: false, - references: Array [], + references: [], set: Map { "arguments" => Variable$3, }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, ClassScope$3 { block: ClassDeclaration$2, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -99,7 +99,7 @@ ScopeManager { }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$5, ], }, diff --git a/packages/scope-manager/tests/fixtures/decorators/class.ts.shot b/packages/scope-manager/tests/fixtures/decorators/class.ts.shot index d4c6514a0db1..9bacf8199203 100644 --- a/packages/scope-manager/tests/fixtures/decorators/class.ts.shot +++ b/packages/scope-manager/tests/fixtures/decorators/class.ts.shot @@ -2,17 +2,17 @@ exports[`decorators class 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ FunctionNameDefinition$1 { name: Identifier<"decorator">, node: FunctionDeclaration$1, }, ], name: "decorator", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"decorator">, isRead: true, @@ -26,42 +26,42 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ClassNameDefinition$2 { name: Identifier<"Foo">, node: ClassDeclaration$2, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ClassNameDefinition$3 { name: Identifier<"Foo">, node: ClassDeclaration$2, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -71,7 +71,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$4, @@ -80,26 +80,26 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$1, isStrict: false, - references: Array [], + references: [], set: Map { "arguments" => Variable$3, }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, ClassScope$3 { block: ClassDeclaration$2, isStrict: true, - references: Array [], + references: [], set: Map { "Foo" => Variable$5, }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$5, ], }, diff --git a/packages/scope-manager/tests/fixtures/decorators/method.ts.shot b/packages/scope-manager/tests/fixtures/decorators/method.ts.shot index 8cd6d4718cac..2472c21a268d 100644 --- a/packages/scope-manager/tests/fixtures/decorators/method.ts.shot +++ b/packages/scope-manager/tests/fixtures/decorators/method.ts.shot @@ -2,17 +2,17 @@ exports[`decorators method 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ FunctionNameDefinition$1 { name: Identifier<"decorator">, node: FunctionDeclaration$1, }, ], name: "decorator", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"decorator">, isRead: true, @@ -26,49 +26,49 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ClassNameDefinition$2 { name: Identifier<"Foo">, node: ClassDeclaration$2, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ClassNameDefinition$3 { name: Identifier<"Foo">, node: ClassDeclaration$2, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$6 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "decorator" => Variable$2, @@ -76,7 +76,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$4, @@ -85,20 +85,20 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$1, isStrict: false, - references: Array [], + references: [], set: Map { "arguments" => Variable$3, }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, ClassScope$3 { block: ClassDeclaration$2, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -106,20 +106,20 @@ ScopeManager { }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$5, ], }, FunctionScope$4 { block: FunctionExpression$4, isStrict: true, - references: Array [], + references: [], set: Map { "arguments" => Variable$6, }, type: "function", upper: ClassScope$3, - variables: Array [ + variables: [ Variable$6, ], }, diff --git a/packages/scope-manager/tests/fixtures/decorators/parameter-property.ts.shot b/packages/scope-manager/tests/fixtures/decorators/parameter-property.ts.shot index 5e349bb45225..dd65f9828627 100644 --- a/packages/scope-manager/tests/fixtures/decorators/parameter-property.ts.shot +++ b/packages/scope-manager/tests/fixtures/decorators/parameter-property.ts.shot @@ -2,17 +2,17 @@ exports[`decorators parameter-property 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ FunctionNameDefinition$1 { name: Identifier<"decorator">, node: FunctionDeclaration$1, }, ], name: "decorator", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"decorator">, isRead: true, @@ -34,64 +34,64 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ClassNameDefinition$2 { name: Identifier<"Foo">, node: ClassDeclaration$2, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ClassNameDefinition$3 { name: Identifier<"Foo">, node: ClassDeclaration$2, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$6 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$7 { - defs: Array [ + defs: [ ParameterDefinition$4 { name: Identifier<"a">, node: FunctionExpression$3, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$8 { - defs: Array [ + defs: [ ParameterDefinition$5 { name: Identifier<"b">, node: FunctionExpression$3, }, ], name: "b", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"b">, init: true, @@ -107,11 +107,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "decorator" => Variable$2, @@ -119,7 +119,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$4, @@ -128,33 +128,33 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$1, isStrict: false, - references: Array [], + references: [], set: Map { "arguments" => Variable$3, }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, ClassScope$3 { block: ClassDeclaration$2, isStrict: true, - references: Array [], + references: [], set: Map { "Foo" => Variable$5, }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$5, ], }, FunctionScope$4 { block: FunctionExpression$3, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, Reference$3, @@ -166,7 +166,7 @@ ScopeManager { }, type: "function", upper: ClassScope$3, - variables: Array [ + variables: [ Variable$6, Variable$7, Variable$8, diff --git a/packages/scope-manager/tests/fixtures/decorators/parameter.ts.shot b/packages/scope-manager/tests/fixtures/decorators/parameter.ts.shot index 9fd72e7d7042..07744f723abd 100644 --- a/packages/scope-manager/tests/fixtures/decorators/parameter.ts.shot +++ b/packages/scope-manager/tests/fixtures/decorators/parameter.ts.shot @@ -2,17 +2,17 @@ exports[`decorators parameter 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ FunctionNameDefinition$1 { name: Identifier<"decorator">, node: FunctionDeclaration$1, }, ], name: "decorator", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"decorator">, isRead: true, @@ -50,76 +50,76 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ FunctionNameDefinition$2 { name: Identifier<"foo">, node: FunctionDeclaration$2, }, ], name: "foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$5 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$6 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"a">, node: FunctionDeclaration$2, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$7 { - defs: Array [ + defs: [ ParameterDefinition$4 { name: Identifier<"b">, node: FunctionDeclaration$2, }, ], name: "b", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$8 { - defs: Array [ + defs: [ ParameterDefinition$5 { name: Identifier<"c">, node: FunctionDeclaration$2, }, ], name: "c", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$9 { - defs: Array [ + defs: [ ParameterDefinition$6 { name: Identifier<"d">, node: FunctionDeclaration$2, }, ], name: "d", - references: Array [ + references: [ Reference$4 { identifier: Identifier<"d">, init: true, @@ -135,11 +135,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "decorator" => Variable$2, @@ -147,7 +147,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$4, @@ -156,20 +156,20 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$1, isStrict: false, - references: Array [], + references: [], set: Map { "arguments" => Variable$3, }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, FunctionScope$3 { block: FunctionDeclaration$2, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, Reference$3, @@ -185,7 +185,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$5, Variable$6, Variable$7, diff --git a/packages/scope-manager/tests/fixtures/decorators/typeof-this.ts.shot b/packages/scope-manager/tests/fixtures/decorators/typeof-this.ts.shot index 39c4468e53c7..a01faae2291a 100644 --- a/packages/scope-manager/tests/fixtures/decorators/typeof-this.ts.shot +++ b/packages/scope-manager/tests/fixtures/decorators/typeof-this.ts.shot @@ -2,17 +2,17 @@ exports[`decorators typeof-this 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ FunctionNameDefinition$1 { name: Identifier<"decorator">, node: FunctionDeclaration$1, }, ], name: "decorator", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"decorator">, isRead: true, @@ -26,61 +26,61 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ClassNameDefinition$2 { name: Identifier<"Foo">, node: ClassDeclaration$2, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ClassNameDefinition$3 { name: Identifier<"Foo">, node: ClassDeclaration$2, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$6 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$7 { - defs: Array [ + defs: [ ParameterDefinition$4 { name: Identifier<"baz">, node: FunctionExpression$3, }, ], name: "baz", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -90,7 +90,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$4, @@ -99,40 +99,40 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$1, isStrict: false, - references: Array [], + references: [], set: Map { "arguments" => Variable$3, }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, ClassScope$3 { block: ClassDeclaration$2, isStrict: true, - references: Array [], + references: [], set: Map { "Foo" => Variable$5, }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$5, ], }, FunctionScope$4 { block: FunctionExpression$3, isStrict: true, - references: Array [], + references: [], set: Map { "arguments" => Variable$6, "baz" => Variable$7, }, type: "function", upper: ClassScope$3, - variables: Array [ + variables: [ Variable$6, Variable$7, ], diff --git a/packages/scope-manager/tests/fixtures/destructuring/array-assignment.ts.shot b/packages/scope-manager/tests/fixtures/destructuring/array-assignment.ts.shot index cff8c3d21798..72769c897dce 100644 --- a/packages/scope-manager/tests/fixtures/destructuring/array-assignment.ts.shot +++ b/packages/scope-manager/tests/fixtures/destructuring/array-assignment.ts.shot @@ -2,17 +2,17 @@ exports[`destructuring array-assignment 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"obj">, node: VariableDeclarator$1, }, ], name: "obj", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"obj">, init: true, @@ -36,14 +36,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"b">, node: VariableDeclarator$3, }, ], name: "b", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"b">, init: false, @@ -59,14 +59,14 @@ ScopeManager { isTypeVariable: false, }, Variable$4 { - defs: Array [ + defs: [ VariableDefinition$3 { name: Identifier<"c">, node: VariableDeclarator$5, }, ], name: "c", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"c">, init: false, @@ -82,11 +82,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$6, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, Reference$3, @@ -100,7 +100,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, diff --git a/packages/scope-manager/tests/fixtures/destructuring/array.ts.shot b/packages/scope-manager/tests/fixtures/destructuring/array.ts.shot index cccf164ebe48..1a96e3fb206a 100644 --- a/packages/scope-manager/tests/fixtures/destructuring/array.ts.shot +++ b/packages/scope-manager/tests/fixtures/destructuring/array.ts.shot @@ -2,17 +2,17 @@ exports[`destructuring array 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"a">, node: VariableDeclarator$1, }, ], name: "a", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"a">, init: true, @@ -28,14 +28,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"b">, node: VariableDeclarator$1, }, ], name: "b", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"b">, init: true, @@ -51,14 +51,14 @@ ScopeManager { isTypeVariable: false, }, Variable$4 { - defs: Array [ + defs: [ VariableDefinition$3 { name: Identifier<"c">, node: VariableDeclarator$1, }, ], name: "c", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"c">, init: true, @@ -74,14 +74,14 @@ ScopeManager { isTypeVariable: false, }, Variable$5 { - defs: Array [ + defs: [ VariableDefinition$4 { name: Identifier<"d">, node: VariableDeclarator$1, }, ], name: "d", - references: Array [ + references: [ Reference$4 { identifier: Identifier<"d">, init: true, @@ -107,14 +107,14 @@ ScopeManager { isTypeVariable: false, }, Variable$6 { - defs: Array [ + defs: [ VariableDefinition$5 { name: Identifier<"e">, node: VariableDeclarator$1, }, ], name: "e", - references: Array [ + references: [ Reference$6 { identifier: Identifier<"e">, init: true, @@ -130,14 +130,14 @@ ScopeManager { isTypeVariable: false, }, Variable$7 { - defs: Array [ + defs: [ VariableDefinition$6 { name: Identifier<"f">, node: VariableDeclarator$1, }, ], name: "f", - references: Array [ + references: [ Reference$7 { identifier: Identifier<"f">, init: true, @@ -163,14 +163,14 @@ ScopeManager { isTypeVariable: false, }, Variable$8 { - defs: Array [ + defs: [ VariableDefinition$7 { name: Identifier<"rest">, node: VariableDeclarator$1, }, ], name: "rest", - references: Array [ + references: [ Reference$9 { identifier: Identifier<"rest">, init: true, @@ -186,11 +186,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, Reference$3, @@ -221,7 +221,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, diff --git a/packages/scope-manager/tests/fixtures/destructuring/object-assignment.ts.shot b/packages/scope-manager/tests/fixtures/destructuring/object-assignment.ts.shot index 7652978efd21..66c69862db94 100644 --- a/packages/scope-manager/tests/fixtures/destructuring/object-assignment.ts.shot +++ b/packages/scope-manager/tests/fixtures/destructuring/object-assignment.ts.shot @@ -2,17 +2,17 @@ exports[`destructuring object-assignment 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"obj">, node: VariableDeclarator$1, }, ], name: "obj", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"obj">, init: true, @@ -36,11 +36,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2 { identifier: Identifier<"shorthand">, @@ -78,7 +78,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], diff --git a/packages/scope-manager/tests/fixtures/destructuring/object.ts.shot b/packages/scope-manager/tests/fixtures/destructuring/object.ts.shot index c23beb599210..26d48c55dd0e 100644 --- a/packages/scope-manager/tests/fixtures/destructuring/object.ts.shot +++ b/packages/scope-manager/tests/fixtures/destructuring/object.ts.shot @@ -2,17 +2,17 @@ exports[`destructuring object 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"shorthand">, node: VariableDeclarator$1, }, ], name: "shorthand", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"shorthand">, init: true, @@ -28,14 +28,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"value">, node: VariableDeclarator$1, }, ], name: "value", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"value">, init: true, @@ -51,14 +51,14 @@ ScopeManager { isTypeVariable: false, }, Variable$4 { - defs: Array [ + defs: [ VariableDefinition$3 { name: Identifier<"world">, node: VariableDeclarator$1, }, ], name: "world", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"world">, init: true, @@ -74,14 +74,14 @@ ScopeManager { isTypeVariable: false, }, Variable$5 { - defs: Array [ + defs: [ VariableDefinition$4 { name: Identifier<"a">, node: VariableDeclarator$1, }, ], name: "a", - references: Array [ + references: [ Reference$4 { identifier: Identifier<"a">, init: true, @@ -97,14 +97,14 @@ ScopeManager { isTypeVariable: false, }, Variable$6 { - defs: Array [ + defs: [ VariableDefinition$5 { name: Identifier<"b">, node: VariableDeclarator$1, }, ], name: "b", - references: Array [ + references: [ Reference$5 { identifier: Identifier<"b">, init: true, @@ -120,14 +120,14 @@ ScopeManager { isTypeVariable: false, }, Variable$7 { - defs: Array [ + defs: [ VariableDefinition$6 { name: Identifier<"c">, node: VariableDeclarator$1, }, ], name: "c", - references: Array [ + references: [ Reference$6 { identifier: Identifier<"c">, init: true, @@ -143,14 +143,14 @@ ScopeManager { isTypeVariable: false, }, Variable$8 { - defs: Array [ + defs: [ VariableDefinition$7 { name: Identifier<"d">, node: VariableDeclarator$1, }, ], name: "d", - references: Array [ + references: [ Reference$7 { identifier: Identifier<"d">, init: true, @@ -166,11 +166,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$2, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, Reference$3, @@ -199,7 +199,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, diff --git a/packages/scope-manager/tests/fixtures/export/all.ts.shot b/packages/scope-manager/tests/fixtures/export/all.ts.shot index 207e8fc5cf30..8c30b08878ec 100644 --- a/packages/scope-manager/tests/fixtures/export/all.ts.shot +++ b/packages/scope-manager/tests/fixtures/export/all.ts.shot @@ -2,31 +2,31 @@ exports[`export all 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$1, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$1, isStrict: true, - references: Array [], + references: [], set: Map {}, type: "module", upper: GlobalScope$1, - variables: Array [], + variables: [], }, ], } diff --git a/packages/scope-manager/tests/fixtures/export/default-type.ts.shot b/packages/scope-manager/tests/fixtures/export/default-type.ts.shot index a03744ca6faf..68665d463d31 100644 --- a/packages/scope-manager/tests/fixtures/export/default-type.ts.shot +++ b/packages/scope-manager/tests/fixtures/export/default-type.ts.shot @@ -2,10 +2,10 @@ exports[`export default-type 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"T">, node: VariableDeclarator$1, @@ -16,7 +16,7 @@ ScopeManager { }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, init: true, @@ -40,24 +40,24 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$4, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -66,7 +66,7 @@ ScopeManager { }, type: "module", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, ], }, diff --git a/packages/scope-manager/tests/fixtures/export/default1.ts.shot b/packages/scope-manager/tests/fixtures/export/default1.ts.shot index 28eba0906342..a37533f617b4 100644 --- a/packages/scope-manager/tests/fixtures/export/default1.ts.shot +++ b/packages/scope-manager/tests/fixtures/export/default1.ts.shot @@ -2,65 +2,65 @@ exports[`export default1 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ FunctionNameDefinition$1 { name: Identifier<"f">, node: FunctionDeclaration$1, }, ], name: "f", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$2, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$2, isStrict: true, - references: Array [], + references: [], set: Map { "f" => Variable$2, }, type: "module", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, ], }, FunctionScope$3 { block: FunctionDeclaration$1, isStrict: true, - references: Array [], + references: [], set: Map { "arguments" => Variable$3, }, type: "function", upper: ModuleScope$2, - variables: Array [ + variables: [ Variable$3, ], }, diff --git a/packages/scope-manager/tests/fixtures/export/default2.ts.shot b/packages/scope-manager/tests/fixtures/export/default2.ts.shot index af1ce16878c7..295547d644f6 100644 --- a/packages/scope-manager/tests/fixtures/export/default2.ts.shot +++ b/packages/scope-manager/tests/fixtures/export/default2.ts.shot @@ -2,17 +2,17 @@ exports[`export default2 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"a">, node: VariableDeclarator$1, }, ], name: "a", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"a">, init: true, @@ -36,24 +36,24 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$3, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -62,7 +62,7 @@ ScopeManager { }, type: "module", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, ], }, diff --git a/packages/scope-manager/tests/fixtures/export/default3.ts.shot b/packages/scope-manager/tests/fixtures/export/default3.ts.shot index de0b2e6a2809..c38a8a52e959 100644 --- a/packages/scope-manager/tests/fixtures/export/default3.ts.shot +++ b/packages/scope-manager/tests/fixtures/export/default3.ts.shot @@ -2,31 +2,31 @@ exports[`export default3 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$1, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$1, isStrict: true, - references: Array [], + references: [], set: Map {}, type: "module", upper: GlobalScope$1, - variables: Array [], + variables: [], }, ], } diff --git a/packages/scope-manager/tests/fixtures/export/default4.ts.shot b/packages/scope-manager/tests/fixtures/export/default4.ts.shot index 1544042a6e86..dab11ba0ed95 100644 --- a/packages/scope-manager/tests/fixtures/export/default4.ts.shot +++ b/packages/scope-manager/tests/fixtures/export/default4.ts.shot @@ -2,49 +2,49 @@ exports[`export default4 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$1, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$1, isStrict: true, - references: Array [], + references: [], set: Map {}, type: "module", upper: GlobalScope$1, - variables: Array [], + variables: [], }, FunctionScope$3 { block: FunctionDeclaration$2, isStrict: true, - references: Array [], + references: [], set: Map { "arguments" => Variable$2, }, type: "function", upper: ModuleScope$2, - variables: Array [ + variables: [ Variable$2, ], }, diff --git a/packages/scope-manager/tests/fixtures/export/equals1.ts.shot b/packages/scope-manager/tests/fixtures/export/equals1.ts.shot index 5185581a0d27..729abd96f92f 100644 --- a/packages/scope-manager/tests/fixtures/export/equals1.ts.shot +++ b/packages/scope-manager/tests/fixtures/export/equals1.ts.shot @@ -2,17 +2,17 @@ exports[`export equals1 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"x">, node: VariableDeclarator$1, }, ], name: "x", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"x">, init: true, @@ -36,24 +36,24 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$3, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -62,7 +62,7 @@ ScopeManager { }, type: "module", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, ], }, diff --git a/packages/scope-manager/tests/fixtures/export/equals2.ts.shot b/packages/scope-manager/tests/fixtures/export/equals2.ts.shot index c12dced3391f..a9ce0141fa68 100644 --- a/packages/scope-manager/tests/fixtures/export/equals2.ts.shot +++ b/packages/scope-manager/tests/fixtures/export/equals2.ts.shot @@ -2,31 +2,31 @@ exports[`export equals2 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$1, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$1, isStrict: true, - references: Array [], + references: [], set: Map {}, type: "module", upper: GlobalScope$1, - variables: Array [], + variables: [], }, ], } diff --git a/packages/scope-manager/tests/fixtures/export/named-dual.ts.shot b/packages/scope-manager/tests/fixtures/export/named-dual.ts.shot index dcc2b576ab1b..ffe69f693679 100644 --- a/packages/scope-manager/tests/fixtures/export/named-dual.ts.shot +++ b/packages/scope-manager/tests/fixtures/export/named-dual.ts.shot @@ -2,10 +2,10 @@ exports[`export named-dual 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"T">, node: VariableDeclarator$1, @@ -16,7 +16,7 @@ ScopeManager { }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, init: true, @@ -40,11 +40,11 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -54,7 +54,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], diff --git a/packages/scope-manager/tests/fixtures/export/named-source1.ts.shot b/packages/scope-manager/tests/fixtures/export/named-source1.ts.shot index b0c72051de2b..3f310ef95578 100644 --- a/packages/scope-manager/tests/fixtures/export/named-source1.ts.shot +++ b/packages/scope-manager/tests/fixtures/export/named-source1.ts.shot @@ -2,31 +2,31 @@ exports[`export named-source1 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$1, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$1, isStrict: true, - references: Array [], + references: [], set: Map {}, type: "module", upper: GlobalScope$1, - variables: Array [], + variables: [], }, ], } diff --git a/packages/scope-manager/tests/fixtures/export/named-source2.ts.shot b/packages/scope-manager/tests/fixtures/export/named-source2.ts.shot index 11873326c52b..f1d6e4ce4208 100644 --- a/packages/scope-manager/tests/fixtures/export/named-source2.ts.shot +++ b/packages/scope-manager/tests/fixtures/export/named-source2.ts.shot @@ -2,31 +2,31 @@ exports[`export named-source2 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$1, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$1, isStrict: true, - references: Array [], + references: [], set: Map {}, type: "module", upper: GlobalScope$1, - variables: Array [], + variables: [], }, ], } diff --git a/packages/scope-manager/tests/fixtures/export/named-type1.ts.shot b/packages/scope-manager/tests/fixtures/export/named-type1.ts.shot index c999b4dfa3eb..8840b0debf0e 100644 --- a/packages/scope-manager/tests/fixtures/export/named-type1.ts.shot +++ b/packages/scope-manager/tests/fixtures/export/named-type1.ts.shot @@ -2,45 +2,45 @@ exports[`export named-type1 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"X">, node: TSTypeAliasDeclaration$1, }, ], name: "X", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$2, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$2, isStrict: true, - references: Array [], + references: [], set: Map { "X" => Variable$2, }, type: "module", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, ], }, diff --git a/packages/scope-manager/tests/fixtures/export/named1.ts.shot b/packages/scope-manager/tests/fixtures/export/named1.ts.shot index 148561757f0c..6c7c40dc0d01 100644 --- a/packages/scope-manager/tests/fixtures/export/named1.ts.shot +++ b/packages/scope-manager/tests/fixtures/export/named1.ts.shot @@ -2,17 +2,17 @@ exports[`export named1 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"x">, node: VariableDeclarator$1, }, ], name: "x", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"x">, init: true, @@ -28,24 +28,24 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$3, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -53,7 +53,7 @@ ScopeManager { }, type: "module", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, ], }, diff --git a/packages/scope-manager/tests/fixtures/export/named2-type.ts.shot b/packages/scope-manager/tests/fixtures/export/named2-type.ts.shot index d14df664ec59..47c32e67efe5 100644 --- a/packages/scope-manager/tests/fixtures/export/named2-type.ts.shot +++ b/packages/scope-manager/tests/fixtures/export/named2-type.ts.shot @@ -2,17 +2,17 @@ exports[`export named2-type 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"A">, node: TSTypeAliasDeclaration$1, }, ], name: "A", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"A">, isRead: true, @@ -26,24 +26,24 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$2, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$2, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -51,7 +51,7 @@ ScopeManager { }, type: "module", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, ], }, diff --git a/packages/scope-manager/tests/fixtures/export/named2.ts.shot b/packages/scope-manager/tests/fixtures/export/named2.ts.shot index 979be9bd9628..bbf2b17d1ab1 100644 --- a/packages/scope-manager/tests/fixtures/export/named2.ts.shot +++ b/packages/scope-manager/tests/fixtures/export/named2.ts.shot @@ -2,17 +2,17 @@ exports[`export named2 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"a">, node: VariableDeclarator$1, }, ], name: "a", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"a">, init: true, @@ -36,24 +36,24 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$3, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -62,7 +62,7 @@ ScopeManager { }, type: "module", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, ], }, diff --git a/packages/scope-manager/tests/fixtures/export/named3-type.ts.shot b/packages/scope-manager/tests/fixtures/export/named3-type.ts.shot index 1f2cdf0f0ce1..a1f2e6b9e8b3 100644 --- a/packages/scope-manager/tests/fixtures/export/named3-type.ts.shot +++ b/packages/scope-manager/tests/fixtures/export/named3-type.ts.shot @@ -2,17 +2,17 @@ exports[`export named3-type 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"V">, node: TSTypeAliasDeclaration$1, }, ], name: "V", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"V">, isRead: true, @@ -26,24 +26,24 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$2, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$2, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -51,7 +51,7 @@ ScopeManager { }, type: "module", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, ], }, diff --git a/packages/scope-manager/tests/fixtures/export/named3.ts.shot b/packages/scope-manager/tests/fixtures/export/named3.ts.shot index 2ef856086ea2..6a2da56b599d 100644 --- a/packages/scope-manager/tests/fixtures/export/named3.ts.shot +++ b/packages/scope-manager/tests/fixtures/export/named3.ts.shot @@ -2,17 +2,17 @@ exports[`export named3 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"v">, node: VariableDeclarator$1, }, ], name: "v", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"v">, init: true, @@ -36,24 +36,24 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$3, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -62,7 +62,7 @@ ScopeManager { }, type: "module", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, ], }, diff --git a/packages/scope-manager/tests/fixtures/export/type-inline.ts.shot b/packages/scope-manager/tests/fixtures/export/type-inline.ts.shot index 0463684b9638..1f805563bee1 100644 --- a/packages/scope-manager/tests/fixtures/export/type-inline.ts.shot +++ b/packages/scope-manager/tests/fixtures/export/type-inline.ts.shot @@ -2,10 +2,10 @@ exports[`export type-inline 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"T">, node: VariableDeclarator$1, @@ -16,7 +16,7 @@ ScopeManager { }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, init: true, @@ -40,24 +40,24 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$4, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -66,7 +66,7 @@ ScopeManager { }, type: "module", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, ], }, diff --git a/packages/scope-manager/tests/fixtures/export/type.ts.shot b/packages/scope-manager/tests/fixtures/export/type.ts.shot index c95efa551ab2..c259700bd9d1 100644 --- a/packages/scope-manager/tests/fixtures/export/type.ts.shot +++ b/packages/scope-manager/tests/fixtures/export/type.ts.shot @@ -2,10 +2,10 @@ exports[`export type 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"T">, node: VariableDeclarator$1, @@ -16,7 +16,7 @@ ScopeManager { }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, init: true, @@ -40,24 +40,24 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$4, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -66,7 +66,7 @@ ScopeManager { }, type: "module", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, ], }, diff --git a/packages/scope-manager/tests/fixtures/functions/arrow/default-params/readable-ref-body-shadow.ts.shot b/packages/scope-manager/tests/fixtures/functions/arrow/default-params/readable-ref-body-shadow.ts.shot index 3f56afcb1645..b58ed429e02d 100644 --- a/packages/scope-manager/tests/fixtures/functions/arrow/default-params/readable-ref-body-shadow.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/arrow/default-params/readable-ref-body-shadow.ts.shot @@ -2,17 +2,17 @@ exports[`functions arrow default-params readable-ref-body-shadow 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"a">, node: VariableDeclarator$1, }, ], name: "a", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"a">, isRead: true, @@ -26,14 +26,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"foo">, node: VariableDeclarator$2, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, init: true, @@ -49,14 +49,14 @@ ScopeManager { isTypeVariable: false, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"b">, node: ArrowFunctionExpression$3, }, ], name: "b", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"b">, init: true, @@ -72,23 +72,23 @@ ScopeManager { isTypeVariable: false, }, Variable$5 { - defs: Array [ + defs: [ VariableDefinition$4 { name: Identifier<"a">, node: VariableDeclarator$4, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -98,7 +98,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -107,7 +107,7 @@ ScopeManager { FunctionScope$2 { block: ArrowFunctionExpression$3, isStrict: false, - references: Array [ + references: [ Reference$2, Reference$3, ], @@ -117,7 +117,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, Variable$5, ], diff --git a/packages/scope-manager/tests/fixtures/functions/arrow/default-params/readable-ref-const.ts.shot b/packages/scope-manager/tests/fixtures/functions/arrow/default-params/readable-ref-const.ts.shot index ef1e32d36e21..22fd6ea9018b 100644 --- a/packages/scope-manager/tests/fixtures/functions/arrow/default-params/readable-ref-const.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/arrow/default-params/readable-ref-const.ts.shot @@ -2,17 +2,17 @@ exports[`functions arrow default-params readable-ref-const 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"a">, node: VariableDeclarator$1, }, ], name: "a", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"a">, init: true, @@ -36,14 +36,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"foo">, node: VariableDeclarator$3, }, ], name: "foo", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"foo">, init: true, @@ -59,14 +59,14 @@ ScopeManager { isTypeVariable: false, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"b">, node: ArrowFunctionExpression$4, }, ], name: "b", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"b">, init: true, @@ -82,11 +82,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -97,7 +97,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -106,7 +106,7 @@ ScopeManager { FunctionScope$2 { block: ArrowFunctionExpression$4, isStrict: false, - references: Array [ + references: [ Reference$3, Reference$4, ], @@ -115,7 +115,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, ], }, diff --git a/packages/scope-manager/tests/fixtures/functions/arrow/default-params/readable-ref-let.ts.shot b/packages/scope-manager/tests/fixtures/functions/arrow/default-params/readable-ref-let.ts.shot index 8e9eea5929e6..f09c45de2d5b 100644 --- a/packages/scope-manager/tests/fixtures/functions/arrow/default-params/readable-ref-let.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/arrow/default-params/readable-ref-let.ts.shot @@ -2,17 +2,17 @@ exports[`functions arrow default-params readable-ref-let 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"a">, node: VariableDeclarator$1, }, ], name: "a", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"a">, isRead: true, @@ -26,14 +26,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"foo">, node: VariableDeclarator$2, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, init: true, @@ -49,14 +49,14 @@ ScopeManager { isTypeVariable: false, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"b">, node: ArrowFunctionExpression$3, }, ], name: "b", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"b">, init: true, @@ -72,11 +72,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -86,7 +86,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -95,7 +95,7 @@ ScopeManager { FunctionScope$2 { block: ArrowFunctionExpression$3, isStrict: false, - references: Array [ + references: [ Reference$2, Reference$3, ], @@ -104,7 +104,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, ], }, diff --git a/packages/scope-manager/tests/fixtures/functions/arrow/default-params/readable-ref-nested-body-shadow.ts.shot b/packages/scope-manager/tests/fixtures/functions/arrow/default-params/readable-ref-nested-body-shadow.ts.shot index 10e7d131caa4..e02082011f12 100644 --- a/packages/scope-manager/tests/fixtures/functions/arrow/default-params/readable-ref-nested-body-shadow.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/arrow/default-params/readable-ref-nested-body-shadow.ts.shot @@ -2,17 +2,17 @@ exports[`functions arrow default-params readable-ref-nested-body-shadow 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"a">, node: VariableDeclarator$1, }, ], name: "a", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"a">, isRead: true, @@ -26,14 +26,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"foo">, node: VariableDeclarator$2, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, init: true, @@ -49,14 +49,14 @@ ScopeManager { isTypeVariable: false, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"b">, node: ArrowFunctionExpression$3, }, ], name: "b", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"b">, init: true, @@ -72,30 +72,30 @@ ScopeManager { isTypeVariable: false, }, Variable$5 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$6 { - defs: Array [ + defs: [ VariableDefinition$4 { name: Identifier<"a">, node: VariableDeclarator$5, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$6, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -105,7 +105,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -114,7 +114,7 @@ ScopeManager { FunctionScope$2 { block: ArrowFunctionExpression$3, isStrict: false, - references: Array [ + references: [ Reference$2, ], set: Map { @@ -123,7 +123,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, Variable$6, ], @@ -131,7 +131,7 @@ ScopeManager { FunctionScope$3 { block: FunctionExpression$4, isStrict: false, - references: Array [ + references: [ Reference$3, ], set: Map { @@ -139,7 +139,7 @@ ScopeManager { }, type: "function", upper: FunctionScope$2, - variables: Array [ + variables: [ Variable$5, ], }, diff --git a/packages/scope-manager/tests/fixtures/functions/arrow/default-params/readable-ref-nested.ts.shot b/packages/scope-manager/tests/fixtures/functions/arrow/default-params/readable-ref-nested.ts.shot index 88bb598d6305..9f3b9d796381 100644 --- a/packages/scope-manager/tests/fixtures/functions/arrow/default-params/readable-ref-nested.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/arrow/default-params/readable-ref-nested.ts.shot @@ -2,17 +2,17 @@ exports[`functions arrow default-params readable-ref-nested 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"a">, node: VariableDeclarator$1, }, ], name: "a", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"a">, isRead: true, @@ -26,14 +26,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"foo">, node: VariableDeclarator$2, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, init: true, @@ -49,14 +49,14 @@ ScopeManager { isTypeVariable: false, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"b">, node: ArrowFunctionExpression$3, }, ], name: "b", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"b">, init: true, @@ -72,18 +72,18 @@ ScopeManager { isTypeVariable: false, }, Variable$5 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -93,7 +93,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -102,7 +102,7 @@ ScopeManager { FunctionScope$2 { block: ArrowFunctionExpression$3, isStrict: false, - references: Array [ + references: [ Reference$2, ], set: Map { @@ -110,14 +110,14 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, ], }, FunctionScope$3 { block: FunctionExpression$4, isStrict: false, - references: Array [ + references: [ Reference$3, ], set: Map { @@ -125,7 +125,7 @@ ScopeManager { }, type: "function", upper: FunctionScope$2, - variables: Array [ + variables: [ Variable$5, ], }, diff --git a/packages/scope-manager/tests/fixtures/functions/arrow/default-params/readable-ref-param-shadow.ts.shot b/packages/scope-manager/tests/fixtures/functions/arrow/default-params/readable-ref-param-shadow.ts.shot index b6de5d4fa74b..2507e6ad2cca 100644 --- a/packages/scope-manager/tests/fixtures/functions/arrow/default-params/readable-ref-param-shadow.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/arrow/default-params/readable-ref-param-shadow.ts.shot @@ -2,29 +2,29 @@ exports[`functions arrow default-params readable-ref-param-shadow 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"a">, node: VariableDeclarator$1, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"foo">, node: VariableDeclarator$2, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, init: true, @@ -40,14 +40,14 @@ ScopeManager { isTypeVariable: false, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"b">, node: ArrowFunctionExpression$3, }, ], name: "b", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"b">, init: true, @@ -63,14 +63,14 @@ ScopeManager { isTypeVariable: false, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$4 { name: Identifier<"a">, node: ArrowFunctionExpression$3, }, ], name: "a", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"a">, isRead: true, @@ -84,11 +84,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -98,7 +98,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -107,7 +107,7 @@ ScopeManager { FunctionScope$2 { block: ArrowFunctionExpression$3, isStrict: false, - references: Array [ + references: [ Reference$2, Reference$3, ], @@ -117,7 +117,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, Variable$5, ], diff --git a/packages/scope-manager/tests/fixtures/functions/arrow/default-params/readable-ref-partial.ts.shot b/packages/scope-manager/tests/fixtures/functions/arrow/default-params/readable-ref-partial.ts.shot index 229916ae650f..bd14ef195dba 100644 --- a/packages/scope-manager/tests/fixtures/functions/arrow/default-params/readable-ref-partial.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/arrow/default-params/readable-ref-partial.ts.shot @@ -2,17 +2,17 @@ exports[`functions arrow default-params readable-ref-partial 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"a">, node: VariableDeclarator$1, }, ], name: "a", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"a">, isRead: true, @@ -26,14 +26,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"foo">, node: VariableDeclarator$2, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, init: true, @@ -49,14 +49,14 @@ ScopeManager { isTypeVariable: false, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"b">, node: ArrowFunctionExpression$3, }, ], name: "b", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"b">, init: true, @@ -72,11 +72,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -86,7 +86,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -95,7 +95,7 @@ ScopeManager { FunctionScope$2 { block: ArrowFunctionExpression$3, isStrict: false, - references: Array [ + references: [ Reference$2, Reference$3, ], @@ -104,7 +104,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, ], }, diff --git a/packages/scope-manager/tests/fixtures/functions/arrow/default-params/writable-ref.ts.shot b/packages/scope-manager/tests/fixtures/functions/arrow/default-params/writable-ref.ts.shot index 46bae0801a77..b397d30c666c 100644 --- a/packages/scope-manager/tests/fixtures/functions/arrow/default-params/writable-ref.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/arrow/default-params/writable-ref.ts.shot @@ -2,17 +2,17 @@ exports[`functions arrow default-params writable-ref 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"foo">, node: VariableDeclarator$1, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, init: true, @@ -28,26 +28,26 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ ParameterDefinition$2 { name: Identifier<"a">, node: ArrowFunctionExpression$2, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"b">, node: ArrowFunctionExpression$2, }, ], name: "b", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"b">, init: true, @@ -63,11 +63,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -76,7 +76,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -84,7 +84,7 @@ ScopeManager { FunctionScope$2 { block: ArrowFunctionExpression$2, isStrict: false, - references: Array [ + references: [ Reference$2, ], set: Map { @@ -93,7 +93,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, ], diff --git a/packages/scope-manager/tests/fixtures/functions/arrow/inherited-scope.ts.shot b/packages/scope-manager/tests/fixtures/functions/arrow/inherited-scope.ts.shot index e0317bc5fccb..6e705f39e0e5 100644 --- a/packages/scope-manager/tests/fixtures/functions/arrow/inherited-scope.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/arrow/inherited-scope.ts.shot @@ -2,17 +2,17 @@ exports[`functions arrow inherited-scope 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"parentScoped">, node: VariableDeclarator$1, }, ], name: "parentScoped", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"parentScoped">, init: true, @@ -36,11 +36,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -49,7 +49,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -57,13 +57,13 @@ ScopeManager { FunctionScope$2 { block: ArrowFunctionExpression$4, isStrict: false, - references: Array [ + references: [ Reference$2, ], set: Map {}, type: "function", upper: GlobalScope$1, - variables: Array [], + variables: [], }, ], } diff --git a/packages/scope-manager/tests/fixtures/functions/arrow/no-body.ts.shot b/packages/scope-manager/tests/fixtures/functions/arrow/no-body.ts.shot index edc43182dacf..524606c14f5e 100644 --- a/packages/scope-manager/tests/fixtures/functions/arrow/no-body.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/arrow/no-body.ts.shot @@ -2,17 +2,17 @@ exports[`functions arrow no-body 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ParameterDefinition$1 { name: Identifier<"a">, node: ArrowFunctionExpression$1, }, ], name: "a", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"a">, isRead: true, @@ -26,24 +26,24 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$2, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, FunctionScope$2 { block: ArrowFunctionExpression$1, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -51,7 +51,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, ], }, diff --git a/packages/scope-manager/tests/fixtures/functions/arrow/params.ts.shot b/packages/scope-manager/tests/fixtures/functions/arrow/params.ts.shot index 7198aa95bdec..1f210290b549 100644 --- a/packages/scope-manager/tests/fixtures/functions/arrow/params.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/arrow/params.ts.shot @@ -2,17 +2,17 @@ exports[`functions arrow params 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"outer">, node: VariableDeclarator$1, }, ], name: "outer", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"outer">, init: true, @@ -36,14 +36,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ ParameterDefinition$2 { name: Identifier<"a">, node: ArrowFunctionExpression$3, }, ], name: "a", - references: Array [ + references: [ Reference$4 { identifier: Identifier<"a">, isRead: true, @@ -65,38 +65,38 @@ ScopeManager { isTypeVariable: false, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"b">, node: ArrowFunctionExpression$3, }, ], name: "b", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$4 { name: Identifier<"c">, node: ArrowFunctionExpression$3, }, ], name: "c", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$6 { - defs: Array [ + defs: [ ParameterDefinition$5 { name: Identifier<"d">, node: ArrowFunctionExpression$3, }, ], name: "d", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"d">, init: true, @@ -112,14 +112,14 @@ ScopeManager { isTypeVariable: false, }, Variable$7 { - defs: Array [ + defs: [ ParameterDefinition$6 { name: Identifier<"e">, node: ArrowFunctionExpression$3, }, ], name: "e", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"e">, init: true, @@ -135,14 +135,14 @@ ScopeManager { isTypeVariable: false, }, Variable$8 { - defs: Array [ + defs: [ ParameterDefinition$7 { name: Identifier<"f">, node: ArrowFunctionExpression$3, }, ], name: "f", - references: Array [ + references: [ Reference$5 { identifier: Identifier<"f">, init: true, @@ -158,26 +158,26 @@ ScopeManager { isTypeVariable: false, }, Variable$9 { - defs: Array [ + defs: [ ParameterDefinition$8 { name: Identifier<"g">, node: ArrowFunctionExpression$3, }, ], name: "g", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$10 { - defs: Array [ + defs: [ VariableDefinition$9 { name: Identifier<"unresolved">, node: VariableDeclarator$5, }, ], name: "unresolved", - references: Array [ + references: [ Reference$8 { identifier: Identifier<"unresolved">, init: true, @@ -193,11 +193,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$6, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$8, Reference$9 { @@ -216,7 +216,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$10, @@ -225,7 +225,7 @@ ScopeManager { FunctionScope$2 { block: ArrowFunctionExpression$3, isStrict: false, - references: Array [ + references: [ Reference$2, Reference$3, Reference$4, @@ -244,7 +244,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, Variable$5, diff --git a/packages/scope-manager/tests/fixtures/functions/arrow/scope.ts.shot b/packages/scope-manager/tests/fixtures/functions/arrow/scope.ts.shot index e86dcb34208f..3e93f3c46af6 100644 --- a/packages/scope-manager/tests/fixtures/functions/arrow/scope.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/arrow/scope.ts.shot @@ -2,17 +2,17 @@ exports[`functions arrow scope 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"arrow">, node: VariableDeclarator$1, }, ], name: "arrow", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"arrow">, init: true, @@ -28,14 +28,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"i">, node: VariableDeclarator$3, }, ], name: "i", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"i">, init: true, @@ -59,14 +59,14 @@ ScopeManager { isTypeVariable: false, }, Variable$4 { - defs: Array [ + defs: [ VariableDefinition$3 { name: Identifier<"j">, node: VariableDeclarator$5, }, ], name: "j", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"j">, init: true, @@ -82,14 +82,14 @@ ScopeManager { isTypeVariable: false, }, Variable$5 { - defs: Array [ + defs: [ VariableDefinition$4 { name: Identifier<"unresolved">, node: VariableDeclarator$7, }, ], name: "unresolved", - references: Array [ + references: [ Reference$5 { identifier: Identifier<"unresolved">, init: true, @@ -105,11 +105,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$8, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$5, Reference$6 { @@ -128,7 +128,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$5, @@ -137,7 +137,7 @@ ScopeManager { FunctionScope$2 { block: ArrowFunctionExpression$2, isStrict: false, - references: Array [ + references: [ Reference$2, Reference$3, Reference$4, @@ -148,7 +148,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, ], diff --git a/packages/scope-manager/tests/fixtures/functions/arrow/type-parameters/body-reference.ts.shot b/packages/scope-manager/tests/fixtures/functions/arrow/type-parameters/body-reference.ts.shot index c9f3b62f1fd7..0b904a897230 100644 --- a/packages/scope-manager/tests/fixtures/functions/arrow/type-parameters/body-reference.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/arrow/type-parameters/body-reference.ts.shot @@ -2,17 +2,17 @@ exports[`functions arrow type-parameters body-reference 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"foo">, node: VariableDeclarator$1, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, init: true, @@ -28,14 +28,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeParameter$3, }, ], name: "T", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"T">, isRead: true, @@ -49,23 +49,23 @@ ScopeManager { isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ VariableDefinition$3 { name: Identifier<"x">, node: VariableDeclarator$4, }, ], name: "x", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -74,7 +74,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -82,7 +82,7 @@ ScopeManager { FunctionScope$2 { block: ArrowFunctionExpression$2, isStrict: false, - references: Array [ + references: [ Reference$2, ], set: Map { @@ -91,7 +91,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, ], diff --git a/packages/scope-manager/tests/fixtures/functions/arrow/type-parameters/param-reference.ts.shot b/packages/scope-manager/tests/fixtures/functions/arrow/type-parameters/param-reference.ts.shot index 387cfcf9b5a4..e3f44362cf7c 100644 --- a/packages/scope-manager/tests/fixtures/functions/arrow/type-parameters/param-reference.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/arrow/type-parameters/param-reference.ts.shot @@ -2,17 +2,17 @@ exports[`functions arrow type-parameters param-reference 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"foo">, node: VariableDeclarator$1, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, init: true, @@ -28,26 +28,26 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ ParameterDefinition$2 { name: Identifier<"a">, node: ArrowFunctionExpression$2, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"T">, node: TSTypeParameter$3, }, ], name: "T", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"T">, isRead: true, @@ -61,11 +61,11 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -74,7 +74,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -82,7 +82,7 @@ ScopeManager { FunctionScope$2 { block: ArrowFunctionExpression$2, isStrict: false, - references: Array [ + references: [ Reference$2, ], set: Map { @@ -91,7 +91,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, ], diff --git a/packages/scope-manager/tests/fixtures/functions/arrow/type-parameters/return-value-reference.ts.shot b/packages/scope-manager/tests/fixtures/functions/arrow/type-parameters/return-value-reference.ts.shot index cc45823e15e2..4e44c4d8ba64 100644 --- a/packages/scope-manager/tests/fixtures/functions/arrow/type-parameters/return-value-reference.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/arrow/type-parameters/return-value-reference.ts.shot @@ -2,17 +2,17 @@ exports[`functions arrow type-parameters return-value-reference 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"foo">, node: VariableDeclarator$1, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, init: true, @@ -28,14 +28,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeParameter$3, }, ], name: "T", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"T">, isRead: true, @@ -49,11 +49,11 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -62,7 +62,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -70,7 +70,7 @@ ScopeManager { FunctionScope$2 { block: ArrowFunctionExpression$2, isStrict: false, - references: Array [ + references: [ Reference$2, ], set: Map { @@ -78,7 +78,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, diff --git a/packages/scope-manager/tests/fixtures/functions/arrow/type-parameters/type-param-reference.ts.shot b/packages/scope-manager/tests/fixtures/functions/arrow/type-parameters/type-param-reference.ts.shot index c35121db6ab5..b5fdd249826a 100644 --- a/packages/scope-manager/tests/fixtures/functions/arrow/type-parameters/type-param-reference.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/arrow/type-parameters/type-param-reference.ts.shot @@ -2,17 +2,17 @@ exports[`functions arrow type-parameters type-param-reference 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"foo">, node: VariableDeclarator$1, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, init: true, @@ -28,14 +28,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeParameter$3, }, ], name: "T", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"T">, isRead: true, @@ -49,23 +49,23 @@ ScopeManager { isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"U">, node: TSTypeParameter$4, }, ], name: "U", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -74,7 +74,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -82,7 +82,7 @@ ScopeManager { FunctionScope$2 { block: ArrowFunctionExpression$2, isStrict: false, - references: Array [ + references: [ Reference$2, ], set: Map { @@ -91,7 +91,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, ], diff --git a/packages/scope-manager/tests/fixtures/functions/arrow/type-parameters/type-parameter-declaration.ts.shot b/packages/scope-manager/tests/fixtures/functions/arrow/type-parameters/type-parameter-declaration.ts.shot index f2dcb15ca7a6..b0a6a038b096 100644 --- a/packages/scope-manager/tests/fixtures/functions/arrow/type-parameters/type-parameter-declaration.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/arrow/type-parameters/type-parameter-declaration.ts.shot @@ -2,17 +2,17 @@ exports[`functions arrow type-parameters type-parameter-declaration 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"foo">, node: VariableDeclarator$1, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, init: true, @@ -28,35 +28,35 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeParameter$3, }, ], name: "T", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"Unresolved">, node: TSTypeAliasDeclaration$4, }, ], name: "Unresolved", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2 { identifier: Identifier<"T">, @@ -74,7 +74,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$4, @@ -83,13 +83,13 @@ ScopeManager { FunctionScope$2 { block: ArrowFunctionExpression$2, isStrict: false, - references: Array [], + references: [], set: Map { "T" => Variable$3, }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, diff --git a/packages/scope-manager/tests/fixtures/functions/arrow/type-predicate-asserts1.ts.shot b/packages/scope-manager/tests/fixtures/functions/arrow/type-predicate-asserts1.ts.shot index 106976682c74..67d352f5eef6 100644 --- a/packages/scope-manager/tests/fixtures/functions/arrow/type-predicate-asserts1.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/arrow/type-predicate-asserts1.ts.shot @@ -2,17 +2,17 @@ exports[`functions arrow type-predicate-asserts1 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"foo">, node: VariableDeclarator$1, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, init: true, @@ -28,14 +28,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ ParameterDefinition$2 { name: Identifier<"arg">, node: ArrowFunctionExpression$2, }, ], name: "arg", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"arg">, isRead: true, @@ -49,11 +49,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -62,7 +62,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -70,7 +70,7 @@ ScopeManager { FunctionScope$2 { block: ArrowFunctionExpression$2, isStrict: false, - references: Array [ + references: [ Reference$2, ], set: Map { @@ -78,7 +78,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, diff --git a/packages/scope-manager/tests/fixtures/functions/arrow/type-predicate-asserts2.ts.shot b/packages/scope-manager/tests/fixtures/functions/arrow/type-predicate-asserts2.ts.shot index 695374e49152..9144d1c60697 100644 --- a/packages/scope-manager/tests/fixtures/functions/arrow/type-predicate-asserts2.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/arrow/type-predicate-asserts2.ts.shot @@ -2,17 +2,17 @@ exports[`functions arrow type-predicate-asserts2 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"T">, isRead: true, @@ -26,14 +26,14 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"foo">, node: VariableDeclarator$2, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, init: true, @@ -49,14 +49,14 @@ ScopeManager { isTypeVariable: false, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"arg">, node: ArrowFunctionExpression$3, }, ], name: "arg", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"arg">, isRead: true, @@ -70,11 +70,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -84,7 +84,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -93,7 +93,7 @@ ScopeManager { FunctionScope$2 { block: ArrowFunctionExpression$3, isStrict: false, - references: Array [ + references: [ Reference$2, Reference$3, ], @@ -102,7 +102,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, ], }, diff --git a/packages/scope-manager/tests/fixtures/functions/arrow/type-predicate1.ts.shot b/packages/scope-manager/tests/fixtures/functions/arrow/type-predicate1.ts.shot index 27909f8a757b..2ae489bf6fe5 100644 --- a/packages/scope-manager/tests/fixtures/functions/arrow/type-predicate1.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/arrow/type-predicate1.ts.shot @@ -2,17 +2,17 @@ exports[`functions arrow type-predicate1 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"foo">, node: VariableDeclarator$1, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, init: true, @@ -28,14 +28,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ ParameterDefinition$2 { name: Identifier<"arg">, node: ArrowFunctionExpression$2, }, ], name: "arg", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"arg">, isRead: true, @@ -57,11 +57,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -70,7 +70,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -78,7 +78,7 @@ ScopeManager { FunctionScope$2 { block: ArrowFunctionExpression$2, isStrict: false, - references: Array [ + references: [ Reference$2, Reference$3, ], @@ -87,7 +87,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, diff --git a/packages/scope-manager/tests/fixtures/functions/arrow/type-predicate2.ts.shot b/packages/scope-manager/tests/fixtures/functions/arrow/type-predicate2.ts.shot index f061a729a3f4..ba3ad3b10b12 100644 --- a/packages/scope-manager/tests/fixtures/functions/arrow/type-predicate2.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/arrow/type-predicate2.ts.shot @@ -2,17 +2,17 @@ exports[`functions arrow type-predicate2 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"T">, isRead: true, @@ -26,14 +26,14 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"foo">, node: VariableDeclarator$2, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, init: true, @@ -49,14 +49,14 @@ ScopeManager { isTypeVariable: false, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"arg">, node: ArrowFunctionExpression$3, }, ], name: "arg", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"arg">, isRead: true, @@ -78,11 +78,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -92,7 +92,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -101,7 +101,7 @@ ScopeManager { FunctionScope$2 { block: ArrowFunctionExpression$3, isStrict: false, - references: Array [ + references: [ Reference$2, Reference$3, Reference$4, @@ -111,7 +111,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, ], }, diff --git a/packages/scope-manager/tests/fixtures/functions/function-declaration/default-params/readable-ref-body-shadow.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-declaration/default-params/readable-ref-body-shadow.ts.shot index 2d9702db068a..b33917be6a90 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-declaration/default-params/readable-ref-body-shadow.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-declaration/default-params/readable-ref-body-shadow.ts.shot @@ -2,17 +2,17 @@ exports[`functions function-declaration default-params readable-ref-body-shadow 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"a">, node: VariableDeclarator$1, }, ], name: "a", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"a">, isRead: true, @@ -26,33 +26,33 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ FunctionNameDefinition$2 { name: Identifier<"foo">, node: FunctionDeclaration$2, }, ], name: "foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$4 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"b">, node: FunctionDeclaration$2, }, ], name: "b", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"b">, init: true, @@ -68,23 +68,23 @@ ScopeManager { isTypeVariable: false, }, Variable$6 { - defs: Array [ + defs: [ VariableDefinition$4 { name: Identifier<"a">, node: VariableDeclarator$3, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "a" => Variable$2, @@ -92,7 +92,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -101,7 +101,7 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$2, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -112,7 +112,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, Variable$5, Variable$6, diff --git a/packages/scope-manager/tests/fixtures/functions/function-declaration/default-params/readable-ref-const.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-declaration/default-params/readable-ref-const.ts.shot index 6e37efafb7f7..71cebbc903f0 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-declaration/default-params/readable-ref-const.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-declaration/default-params/readable-ref-const.ts.shot @@ -2,17 +2,17 @@ exports[`functions function-declaration default-params readable-ref-const 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"a">, node: VariableDeclarator$1, }, ], name: "a", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"a">, init: true, @@ -36,33 +36,33 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ FunctionNameDefinition$2 { name: Identifier<"foo">, node: FunctionDeclaration$3, }, ], name: "foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$4 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"b">, node: FunctionDeclaration$3, }, ], name: "b", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"b">, init: true, @@ -78,11 +78,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -92,7 +92,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -101,7 +101,7 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$3, isStrict: false, - references: Array [ + references: [ Reference$2, Reference$3, ], @@ -111,7 +111,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, Variable$5, ], diff --git a/packages/scope-manager/tests/fixtures/functions/function-declaration/default-params/readable-ref-let.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-declaration/default-params/readable-ref-let.ts.shot index 8bb27c9898f5..71ce5ae9071c 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-declaration/default-params/readable-ref-let.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-declaration/default-params/readable-ref-let.ts.shot @@ -2,17 +2,17 @@ exports[`functions function-declaration default-params readable-ref-let 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"a">, node: VariableDeclarator$1, }, ], name: "a", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"a">, isRead: true, @@ -26,33 +26,33 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ FunctionNameDefinition$2 { name: Identifier<"foo">, node: FunctionDeclaration$2, }, ], name: "foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$4 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"b">, node: FunctionDeclaration$2, }, ], name: "b", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"b">, init: true, @@ -68,11 +68,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "a" => Variable$2, @@ -80,7 +80,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -89,7 +89,7 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$2, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -99,7 +99,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, Variable$5, ], diff --git a/packages/scope-manager/tests/fixtures/functions/function-declaration/default-params/readable-ref-nested-body-shadow.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-declaration/default-params/readable-ref-nested-body-shadow.ts.shot index 265974f967f0..ff905aa38429 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-declaration/default-params/readable-ref-nested-body-shadow.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-declaration/default-params/readable-ref-nested-body-shadow.ts.shot @@ -2,17 +2,17 @@ exports[`functions function-declaration default-params readable-ref-nested-body-shadow 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"a">, node: VariableDeclarator$1, }, ], name: "a", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"a">, isRead: true, @@ -26,33 +26,33 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ FunctionNameDefinition$2 { name: Identifier<"foo">, node: FunctionDeclaration$2, }, ], name: "foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$4 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"b">, node: FunctionDeclaration$2, }, ], name: "b", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"b">, init: true, @@ -68,30 +68,30 @@ ScopeManager { isTypeVariable: false, }, Variable$6 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$7 { - defs: Array [ + defs: [ VariableDefinition$4 { name: Identifier<"a">, node: VariableDeclarator$4, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "a" => Variable$2, @@ -99,7 +99,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -108,7 +108,7 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$2, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -118,7 +118,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, Variable$5, Variable$7, @@ -127,7 +127,7 @@ ScopeManager { FunctionScope$3 { block: FunctionExpression$3, isStrict: false, - references: Array [ + references: [ Reference$2, ], set: Map { @@ -135,7 +135,7 @@ ScopeManager { }, type: "function", upper: FunctionScope$2, - variables: Array [ + variables: [ Variable$6, ], }, diff --git a/packages/scope-manager/tests/fixtures/functions/function-declaration/default-params/readable-ref-nested.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-declaration/default-params/readable-ref-nested.ts.shot index f3ad55a5841e..94c8f0d15e3d 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-declaration/default-params/readable-ref-nested.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-declaration/default-params/readable-ref-nested.ts.shot @@ -2,17 +2,17 @@ exports[`functions function-declaration default-params readable-ref-nested 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"a">, node: VariableDeclarator$1, }, ], name: "a", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"a">, isRead: true, @@ -26,33 +26,33 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ FunctionNameDefinition$2 { name: Identifier<"foo">, node: FunctionDeclaration$2, }, ], name: "foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$4 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"b">, node: FunctionDeclaration$2, }, ], name: "b", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"b">, init: true, @@ -68,18 +68,18 @@ ScopeManager { isTypeVariable: false, }, Variable$6 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "a" => Variable$2, @@ -87,7 +87,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -96,7 +96,7 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$2, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -105,7 +105,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, Variable$5, ], @@ -113,7 +113,7 @@ ScopeManager { FunctionScope$3 { block: FunctionExpression$3, isStrict: false, - references: Array [ + references: [ Reference$2, ], set: Map { @@ -121,7 +121,7 @@ ScopeManager { }, type: "function", upper: FunctionScope$2, - variables: Array [ + variables: [ Variable$6, ], }, diff --git a/packages/scope-manager/tests/fixtures/functions/function-declaration/default-params/readable-ref-param-shadow.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-declaration/default-params/readable-ref-param-shadow.ts.shot index f6e1776dd1ca..cfee6470863a 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-declaration/default-params/readable-ref-param-shadow.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-declaration/default-params/readable-ref-param-shadow.ts.shot @@ -2,48 +2,48 @@ exports[`functions function-declaration default-params readable-ref-param-shadow 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"a">, node: VariableDeclarator$1, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ FunctionNameDefinition$2 { name: Identifier<"foo">, node: FunctionDeclaration$2, }, ], name: "foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$4 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"b">, node: FunctionDeclaration$2, }, ], name: "b", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"b">, init: true, @@ -59,14 +59,14 @@ ScopeManager { isTypeVariable: false, }, Variable$6 { - defs: Array [ + defs: [ ParameterDefinition$4 { name: Identifier<"a">, node: FunctionDeclaration$2, }, ], name: "a", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"a">, isRead: true, @@ -80,11 +80,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "a" => Variable$2, @@ -92,7 +92,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -101,7 +101,7 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$2, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -112,7 +112,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, Variable$5, Variable$6, diff --git a/packages/scope-manager/tests/fixtures/functions/function-declaration/default-params/readable-ref-partial.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-declaration/default-params/readable-ref-partial.ts.shot index b55432219962..178135b94987 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-declaration/default-params/readable-ref-partial.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-declaration/default-params/readable-ref-partial.ts.shot @@ -2,17 +2,17 @@ exports[`functions function-declaration default-params readable-ref-partial 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"a">, node: VariableDeclarator$1, }, ], name: "a", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"a">, isRead: true, @@ -26,33 +26,33 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ FunctionNameDefinition$2 { name: Identifier<"foo">, node: FunctionDeclaration$2, }, ], name: "foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$4 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"b">, node: FunctionDeclaration$2, }, ], name: "b", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"b">, init: true, @@ -68,11 +68,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "a" => Variable$2, @@ -80,7 +80,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -89,7 +89,7 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$2, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -99,7 +99,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, Variable$5, ], diff --git a/packages/scope-manager/tests/fixtures/functions/function-declaration/default-params/writable-ref.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-declaration/default-params/writable-ref.ts.shot index c44dbf8facc2..ddcbbff2b4ee 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-declaration/default-params/writable-ref.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-declaration/default-params/writable-ref.ts.shot @@ -2,48 +2,48 @@ exports[`functions function-declaration default-params writable-ref 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ FunctionNameDefinition$1 { name: Identifier<"foo">, node: FunctionDeclaration$1, }, ], name: "foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$2 { name: Identifier<"a">, node: FunctionDeclaration$1, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"b">, node: FunctionDeclaration$1, }, ], name: "b", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"b">, init: true, @@ -59,18 +59,18 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "foo" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -78,7 +78,7 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$1, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -88,7 +88,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, Variable$5, diff --git a/packages/scope-manager/tests/fixtures/functions/function-declaration/inherited-scope.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-declaration/inherited-scope.ts.shot index 62a87751b28d..cf29482369f8 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-declaration/inherited-scope.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-declaration/inherited-scope.ts.shot @@ -2,17 +2,17 @@ exports[`functions function-declaration inherited-scope 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"parentScoped">, node: VariableDeclarator$1, }, ], name: "parentScoped", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"parentScoped">, init: true, @@ -36,30 +36,30 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ FunctionNameDefinition$2 { name: Identifier<"foo">, node: FunctionDeclaration$3, }, ], name: "foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$4 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -69,7 +69,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -78,7 +78,7 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$3, isStrict: false, - references: Array [ + references: [ Reference$2, ], set: Map { @@ -86,7 +86,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, ], }, diff --git a/packages/scope-manager/tests/fixtures/functions/function-declaration/name-shadowed-in-body.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-declaration/name-shadowed-in-body.ts.shot index 38cc2459ba44..b88e35785a76 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-declaration/name-shadowed-in-body.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-declaration/name-shadowed-in-body.ts.shot @@ -2,17 +2,17 @@ exports[`functions function-declaration name-shadowed-in-body 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ FunctionNameDefinition$1 { name: Identifier<"Foo">, node: FunctionDeclaration$1, }, ], name: "Foo", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"Foo">, isRead: true, @@ -26,21 +26,21 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"Foo">, node: VariableDeclarator$2, }, ], name: "Foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"Foo">, init: true, @@ -56,14 +56,14 @@ ScopeManager { isTypeVariable: false, }, Variable$5 { - defs: Array [ + defs: [ VariableDefinition$3 { name: Identifier<"usage">, node: VariableDeclarator$4, }, ], name: "usage", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"usage">, init: true, @@ -79,11 +79,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [ + references: [ Reference$2, Reference$3, ], @@ -94,7 +94,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$5, @@ -103,7 +103,7 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$1, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -112,7 +112,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, ], diff --git a/packages/scope-manager/tests/fixtures/functions/function-declaration/overload.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-declaration/overload.ts.shot index 7ef3e182e2bf..d715e60e1311 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-declaration/overload.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-declaration/overload.ts.shot @@ -2,10 +2,10 @@ exports[`functions function-declaration overload 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ FunctionNameDefinition$1 { name: Identifier<"foo">, node: TSDeclareFunction$1, @@ -16,57 +16,57 @@ ScopeManager { }, ], name: "foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$2 { name: Identifier<"a">, node: TSDeclareFunction$1, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"b">, node: TSDeclareFunction$1, }, ], name: "b", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$6 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$7 { - defs: Array [ + defs: [ ParameterDefinition$5 { name: Identifier<"a">, node: FunctionDeclaration$2, }, ], name: "a", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"a">, isRead: true, @@ -80,30 +80,30 @@ ScopeManager { isTypeVariable: false, }, Variable$8 { - defs: Array [ + defs: [ ParameterDefinition$6 { name: Identifier<"b">, node: FunctionDeclaration$2, }, ], name: "b", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "foo" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -111,7 +111,7 @@ ScopeManager { FunctionScope$2 { block: TSDeclareFunction$1, isStrict: false, - references: Array [], + references: [], set: Map { "arguments" => Variable$3, "a" => Variable$4, @@ -119,7 +119,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, Variable$5, @@ -128,7 +128,7 @@ ScopeManager { FunctionScope$3 { block: FunctionDeclaration$2, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -138,7 +138,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$6, Variable$7, Variable$8, diff --git a/packages/scope-manager/tests/fixtures/functions/function-declaration/params.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-declaration/params.ts.shot index 74412933dbe9..5b7eab953eba 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-declaration/params.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-declaration/params.ts.shot @@ -2,17 +2,17 @@ exports[`functions function-declaration params 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"outer">, node: VariableDeclarator$1, }, ], name: "outer", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"outer">, init: true, @@ -36,33 +36,33 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ FunctionNameDefinition$2 { name: Identifier<"foo">, node: FunctionDeclaration$3, }, ], name: "foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$4 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"a">, node: FunctionDeclaration$3, }, ], name: "a", - references: Array [ + references: [ Reference$4 { identifier: Identifier<"a">, isRead: true, @@ -84,38 +84,38 @@ ScopeManager { isTypeVariable: false, }, Variable$6 { - defs: Array [ + defs: [ ParameterDefinition$4 { name: Identifier<"b">, node: FunctionDeclaration$3, }, ], name: "b", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$7 { - defs: Array [ + defs: [ ParameterDefinition$5 { name: Identifier<"c">, node: FunctionDeclaration$3, }, ], name: "c", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$8 { - defs: Array [ + defs: [ ParameterDefinition$6 { name: Identifier<"d">, node: FunctionDeclaration$3, }, ], name: "d", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"d">, init: true, @@ -131,14 +131,14 @@ ScopeManager { isTypeVariable: false, }, Variable$9 { - defs: Array [ + defs: [ ParameterDefinition$7 { name: Identifier<"e">, node: FunctionDeclaration$3, }, ], name: "e", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"e">, init: true, @@ -154,14 +154,14 @@ ScopeManager { isTypeVariable: false, }, Variable$10 { - defs: Array [ + defs: [ ParameterDefinition$8 { name: Identifier<"f">, node: FunctionDeclaration$3, }, ], name: "f", - references: Array [ + references: [ Reference$5 { identifier: Identifier<"f">, init: true, @@ -177,26 +177,26 @@ ScopeManager { isTypeVariable: false, }, Variable$11 { - defs: Array [ + defs: [ ParameterDefinition$9 { name: Identifier<"g">, node: FunctionDeclaration$3, }, ], name: "g", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$12 { - defs: Array [ + defs: [ VariableDefinition$10 { name: Identifier<"unresolved">, node: VariableDeclarator$5, }, ], name: "unresolved", - references: Array [ + references: [ Reference$8 { identifier: Identifier<"unresolved">, init: true, @@ -212,11 +212,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$6, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$8, Reference$9 { @@ -236,7 +236,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -246,7 +246,7 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$3, isStrict: false, - references: Array [ + references: [ Reference$2, Reference$3, Reference$4, @@ -266,7 +266,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, Variable$5, Variable$6, diff --git a/packages/scope-manager/tests/fixtures/functions/function-declaration/scope.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-declaration/scope.ts.shot index ee093eceedcd..31960875e9a2 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-declaration/scope.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-declaration/scope.ts.shot @@ -2,36 +2,36 @@ exports[`functions function-declaration scope 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ FunctionNameDefinition$1 { name: Identifier<"foo">, node: FunctionDeclaration$1, }, ], name: "foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"i">, node: VariableDeclarator$2, }, ], name: "i", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"i">, init: true, @@ -55,14 +55,14 @@ ScopeManager { isTypeVariable: false, }, Variable$5 { - defs: Array [ + defs: [ VariableDefinition$3 { name: Identifier<"j">, node: VariableDeclarator$4, }, ], name: "j", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"j">, init: true, @@ -78,14 +78,14 @@ ScopeManager { isTypeVariable: false, }, Variable$6 { - defs: Array [ + defs: [ VariableDefinition$4 { name: Identifier<"unresolved">, node: VariableDeclarator$6, }, ], name: "unresolved", - references: Array [ + references: [ Reference$4 { identifier: Identifier<"unresolved">, init: true, @@ -101,11 +101,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$7, isStrict: false, - references: Array [ + references: [ Reference$4, Reference$5 { identifier: Identifier<"j">, @@ -123,7 +123,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$6, @@ -132,7 +132,7 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$1, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, Reference$3, @@ -144,7 +144,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, Variable$5, diff --git a/packages/scope-manager/tests/fixtures/functions/function-declaration/type-parameters/body-reference.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-declaration/type-parameters/body-reference.ts.shot index 509b76e73867..82b6c82e1c25 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-declaration/type-parameters/body-reference.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-declaration/type-parameters/body-reference.ts.shot @@ -2,36 +2,36 @@ exports[`functions function-declaration type-parameters body-reference 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ FunctionNameDefinition$1 { name: Identifier<"foo">, node: FunctionDeclaration$1, }, ], name: "foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeParameter$2, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -45,30 +45,30 @@ ScopeManager { isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ VariableDefinition$3 { name: Identifier<"x">, node: VariableDeclarator$3, }, ], name: "x", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "foo" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -76,7 +76,7 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$1, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -86,7 +86,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, Variable$5, diff --git a/packages/scope-manager/tests/fixtures/functions/function-declaration/type-parameters/param-reference.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-declaration/type-parameters/param-reference.ts.shot index 450bbbf8fe94..b8ee1e780a1f 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-declaration/type-parameters/param-reference.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-declaration/type-parameters/param-reference.ts.shot @@ -2,48 +2,48 @@ exports[`functions function-declaration type-parameters param-reference 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ FunctionNameDefinition$1 { name: Identifier<"foo">, node: FunctionDeclaration$1, }, ], name: "foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$2 { name: Identifier<"a">, node: FunctionDeclaration$1, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$5 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"T">, node: TSTypeParameter$2, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -57,18 +57,18 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "foo" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -76,7 +76,7 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$1, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -86,7 +86,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, Variable$5, diff --git a/packages/scope-manager/tests/fixtures/functions/function-declaration/type-parameters/return-value-reference.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-declaration/type-parameters/return-value-reference.ts.shot index 7a82a1954c90..02805772d126 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-declaration/type-parameters/return-value-reference.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-declaration/type-parameters/return-value-reference.ts.shot @@ -2,36 +2,36 @@ exports[`functions function-declaration type-parameters return-value-reference 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ FunctionNameDefinition$1 { name: Identifier<"foo">, node: FunctionDeclaration$1, }, ], name: "foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeParameter$2, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -45,18 +45,18 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "foo" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -64,7 +64,7 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$1, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -73,7 +73,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, ], diff --git a/packages/scope-manager/tests/fixtures/functions/function-declaration/type-parameters/type-param-reference.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-declaration/type-parameters/type-param-reference.ts.shot index 2a794bb37d5e..779fd3b229fb 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-declaration/type-parameters/type-param-reference.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-declaration/type-parameters/type-param-reference.ts.shot @@ -2,36 +2,36 @@ exports[`functions function-declaration type-parameters type-param-reference 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ FunctionNameDefinition$1 { name: Identifier<"foo">, node: FunctionDeclaration$1, }, ], name: "foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeParameter$2, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -45,30 +45,30 @@ ScopeManager { isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"U">, node: TSTypeParameter$3, }, ], name: "U", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "foo" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -76,7 +76,7 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$1, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -86,7 +86,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, Variable$5, diff --git a/packages/scope-manager/tests/fixtures/functions/function-declaration/type-parameters/type-parameter-declaration.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-declaration/type-parameters/type-parameter-declaration.ts.shot index 95d3379de930..cd8d3b286993 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-declaration/type-parameters/type-parameter-declaration.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-declaration/type-parameters/type-parameter-declaration.ts.shot @@ -2,57 +2,57 @@ exports[`functions function-declaration type-parameters type-parameter-declaration 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ FunctionNameDefinition$1 { name: Identifier<"foo">, node: FunctionDeclaration$1, }, ], name: "foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeParameter$2, }, ], name: "T", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"Unresolved">, node: TSTypeAliasDeclaration$3, }, ], name: "Unresolved", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -69,7 +69,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$5, @@ -78,14 +78,14 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$1, isStrict: false, - references: Array [], + references: [], set: Map { "arguments" => Variable$3, "T" => Variable$4, }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, ], diff --git a/packages/scope-manager/tests/fixtures/functions/function-declaration/type-predicate-asserts1.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-declaration/type-predicate-asserts1.ts.shot index 74cbb2a55338..58bbf6ca3f77 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-declaration/type-predicate-asserts1.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-declaration/type-predicate-asserts1.ts.shot @@ -2,36 +2,36 @@ exports[`functions function-declaration type-predicate-asserts1 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ FunctionNameDefinition$1 { name: Identifier<"foo">, node: FunctionDeclaration$1, }, ], name: "foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$2 { name: Identifier<"arg">, node: FunctionDeclaration$1, }, ], name: "arg", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"arg">, isRead: true, @@ -45,18 +45,18 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$2, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "foo" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -64,7 +64,7 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$1, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -73,7 +73,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, ], diff --git a/packages/scope-manager/tests/fixtures/functions/function-declaration/type-predicate-asserts2.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-declaration/type-predicate-asserts2.ts.shot index 912ac72e0e1b..5800523279e3 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-declaration/type-predicate-asserts2.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-declaration/type-predicate-asserts2.ts.shot @@ -2,17 +2,17 @@ exports[`functions function-declaration type-predicate-asserts2 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"T">, isRead: true, @@ -26,33 +26,33 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ FunctionNameDefinition$2 { name: Identifier<"foo">, node: FunctionDeclaration$2, }, ], name: "foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$4 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"arg">, node: FunctionDeclaration$2, }, ], name: "arg", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"arg">, isRead: true, @@ -66,11 +66,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "T" => Variable$2, @@ -78,7 +78,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -87,7 +87,7 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$2, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -97,7 +97,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, Variable$5, ], diff --git a/packages/scope-manager/tests/fixtures/functions/function-declaration/type-predicate1.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-declaration/type-predicate1.ts.shot index 1982885870d5..126d680e3c60 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-declaration/type-predicate1.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-declaration/type-predicate1.ts.shot @@ -2,36 +2,36 @@ exports[`functions function-declaration type-predicate1 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ FunctionNameDefinition$1 { name: Identifier<"foo">, node: FunctionDeclaration$1, }, ], name: "foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$2 { name: Identifier<"arg">, node: FunctionDeclaration$1, }, ], name: "arg", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"arg">, isRead: true, @@ -53,18 +53,18 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$2, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "foo" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -72,7 +72,7 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$1, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -82,7 +82,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, ], diff --git a/packages/scope-manager/tests/fixtures/functions/function-declaration/type-predicate2.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-declaration/type-predicate2.ts.shot index 878adc032255..1286288ddb65 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-declaration/type-predicate2.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-declaration/type-predicate2.ts.shot @@ -2,17 +2,17 @@ exports[`functions function-declaration type-predicate2 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"T">, isRead: true, @@ -26,33 +26,33 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ FunctionNameDefinition$2 { name: Identifier<"foo">, node: FunctionDeclaration$2, }, ], name: "foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$4 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"arg">, node: FunctionDeclaration$2, }, ], name: "arg", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"arg">, isRead: true, @@ -74,11 +74,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "T" => Variable$2, @@ -86,7 +86,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -95,7 +95,7 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$2, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, Reference$3, @@ -106,7 +106,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, Variable$5, ], diff --git a/packages/scope-manager/tests/fixtures/functions/function-expression/anonymous.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-expression/anonymous.ts.shot index d3350c6e2398..d92483667335 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-expression/anonymous.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-expression/anonymous.ts.shot @@ -2,17 +2,17 @@ exports[`functions function-expression anonymous 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"foo">, node: VariableDeclarator$1, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, init: true, @@ -28,18 +28,18 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -48,7 +48,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -56,13 +56,13 @@ ScopeManager { FunctionScope$2 { block: FunctionExpression$2, isStrict: false, - references: Array [], + references: [], set: Map { "arguments" => Variable$3, }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, diff --git a/packages/scope-manager/tests/fixtures/functions/function-expression/default-params/readable-ref-body-shadow.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-expression/default-params/readable-ref-body-shadow.ts.shot index 1a9a514ee5cd..42bc4e028b1a 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-expression/default-params/readable-ref-body-shadow.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-expression/default-params/readable-ref-body-shadow.ts.shot @@ -2,17 +2,17 @@ exports[`functions function-expression default-params readable-ref-body-shadow 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"a">, node: VariableDeclarator$1, }, ], name: "a", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"a">, isRead: true, @@ -26,14 +26,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"foo">, node: VariableDeclarator$2, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, init: true, @@ -49,21 +49,21 @@ ScopeManager { isTypeVariable: false, }, Variable$4 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"b">, node: FunctionExpression$3, }, ], name: "b", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"b">, init: true, @@ -79,23 +79,23 @@ ScopeManager { isTypeVariable: false, }, Variable$6 { - defs: Array [ + defs: [ VariableDefinition$4 { name: Identifier<"a">, node: VariableDeclarator$4, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -105,7 +105,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -114,7 +114,7 @@ ScopeManager { FunctionScope$2 { block: FunctionExpression$3, isStrict: false, - references: Array [ + references: [ Reference$2, Reference$3, ], @@ -125,7 +125,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, Variable$5, Variable$6, diff --git a/packages/scope-manager/tests/fixtures/functions/function-expression/default-params/readable-ref-const.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-expression/default-params/readable-ref-const.ts.shot index 29ea4b888828..fab5e18a2e1c 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-expression/default-params/readable-ref-const.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-expression/default-params/readable-ref-const.ts.shot @@ -2,17 +2,17 @@ exports[`functions function-expression default-params readable-ref-const 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"a">, node: VariableDeclarator$1, }, ], name: "a", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"a">, init: true, @@ -36,14 +36,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"foo">, node: VariableDeclarator$3, }, ], name: "foo", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"foo">, init: true, @@ -59,21 +59,21 @@ ScopeManager { isTypeVariable: false, }, Variable$4 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"b">, node: FunctionExpression$4, }, ], name: "b", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"b">, init: true, @@ -89,11 +89,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -104,7 +104,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -113,7 +113,7 @@ ScopeManager { FunctionScope$2 { block: FunctionExpression$4, isStrict: false, - references: Array [ + references: [ Reference$3, Reference$4, ], @@ -123,7 +123,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, Variable$5, ], diff --git a/packages/scope-manager/tests/fixtures/functions/function-expression/default-params/readable-ref-let.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-expression/default-params/readable-ref-let.ts.shot index 218a3a8d91ae..7542d5c468b9 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-expression/default-params/readable-ref-let.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-expression/default-params/readable-ref-let.ts.shot @@ -2,17 +2,17 @@ exports[`functions function-expression default-params readable-ref-let 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"a">, node: VariableDeclarator$1, }, ], name: "a", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"a">, isRead: true, @@ -26,14 +26,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"foo">, node: VariableDeclarator$2, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, init: true, @@ -49,21 +49,21 @@ ScopeManager { isTypeVariable: false, }, Variable$4 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"b">, node: FunctionExpression$3, }, ], name: "b", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"b">, init: true, @@ -79,11 +79,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -93,7 +93,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -102,7 +102,7 @@ ScopeManager { FunctionScope$2 { block: FunctionExpression$3, isStrict: false, - references: Array [ + references: [ Reference$2, Reference$3, ], @@ -112,7 +112,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, Variable$5, ], diff --git a/packages/scope-manager/tests/fixtures/functions/function-expression/default-params/readable-ref-nested-body-shadow.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-expression/default-params/readable-ref-nested-body-shadow.ts.shot index ed80aaccc6c2..1043ff8fb6bc 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-expression/default-params/readable-ref-nested-body-shadow.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-expression/default-params/readable-ref-nested-body-shadow.ts.shot @@ -2,17 +2,17 @@ exports[`functions function-expression default-params readable-ref-nested-body-shadow 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"a">, node: VariableDeclarator$1, }, ], name: "a", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"a">, isRead: true, @@ -26,14 +26,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"foo">, node: VariableDeclarator$2, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, init: true, @@ -49,21 +49,21 @@ ScopeManager { isTypeVariable: false, }, Variable$4 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"b">, node: FunctionExpression$3, }, ], name: "b", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"b">, init: true, @@ -79,30 +79,30 @@ ScopeManager { isTypeVariable: false, }, Variable$6 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$7 { - defs: Array [ + defs: [ VariableDefinition$4 { name: Identifier<"a">, node: VariableDeclarator$5, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$6, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -112,7 +112,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -121,7 +121,7 @@ ScopeManager { FunctionScope$2 { block: FunctionExpression$3, isStrict: false, - references: Array [ + references: [ Reference$2, ], set: Map { @@ -131,7 +131,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, Variable$5, Variable$7, @@ -140,7 +140,7 @@ ScopeManager { FunctionScope$3 { block: FunctionExpression$4, isStrict: false, - references: Array [ + references: [ Reference$3, ], set: Map { @@ -148,7 +148,7 @@ ScopeManager { }, type: "function", upper: FunctionScope$2, - variables: Array [ + variables: [ Variable$6, ], }, diff --git a/packages/scope-manager/tests/fixtures/functions/function-expression/default-params/readable-ref-nested.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-expression/default-params/readable-ref-nested.ts.shot index f0b5dd9ea539..374f8e621260 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-expression/default-params/readable-ref-nested.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-expression/default-params/readable-ref-nested.ts.shot @@ -2,17 +2,17 @@ exports[`functions function-expression default-params readable-ref-nested 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"a">, node: VariableDeclarator$1, }, ], name: "a", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"a">, isRead: true, @@ -26,14 +26,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"foo">, node: VariableDeclarator$2, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, init: true, @@ -49,21 +49,21 @@ ScopeManager { isTypeVariable: false, }, Variable$4 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"b">, node: FunctionExpression$3, }, ], name: "b", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"b">, init: true, @@ -79,18 +79,18 @@ ScopeManager { isTypeVariable: false, }, Variable$6 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -100,7 +100,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -109,7 +109,7 @@ ScopeManager { FunctionScope$2 { block: FunctionExpression$3, isStrict: false, - references: Array [ + references: [ Reference$2, ], set: Map { @@ -118,7 +118,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, Variable$5, ], @@ -126,7 +126,7 @@ ScopeManager { FunctionScope$3 { block: FunctionExpression$4, isStrict: false, - references: Array [ + references: [ Reference$3, ], set: Map { @@ -134,7 +134,7 @@ ScopeManager { }, type: "function", upper: FunctionScope$2, - variables: Array [ + variables: [ Variable$6, ], }, diff --git a/packages/scope-manager/tests/fixtures/functions/function-expression/default-params/readable-ref-param-shadow.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-expression/default-params/readable-ref-param-shadow.ts.shot index 414983469280..e54dbb30b521 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-expression/default-params/readable-ref-param-shadow.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-expression/default-params/readable-ref-param-shadow.ts.shot @@ -2,29 +2,29 @@ exports[`functions function-expression default-params readable-ref-param-shadow 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"a">, node: VariableDeclarator$1, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"foo">, node: VariableDeclarator$2, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, init: true, @@ -40,21 +40,21 @@ ScopeManager { isTypeVariable: false, }, Variable$4 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"b">, node: FunctionExpression$3, }, ], name: "b", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"b">, init: true, @@ -70,14 +70,14 @@ ScopeManager { isTypeVariable: false, }, Variable$6 { - defs: Array [ + defs: [ ParameterDefinition$4 { name: Identifier<"a">, node: FunctionExpression$3, }, ], name: "a", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"a">, isRead: true, @@ -91,11 +91,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -105,7 +105,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -114,7 +114,7 @@ ScopeManager { FunctionScope$2 { block: FunctionExpression$3, isStrict: false, - references: Array [ + references: [ Reference$2, Reference$3, ], @@ -125,7 +125,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, Variable$5, Variable$6, diff --git a/packages/scope-manager/tests/fixtures/functions/function-expression/default-params/readable-ref-partial.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-expression/default-params/readable-ref-partial.ts.shot index 097daa97b6fa..abc7ae25e5c7 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-expression/default-params/readable-ref-partial.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-expression/default-params/readable-ref-partial.ts.shot @@ -2,17 +2,17 @@ exports[`functions function-expression default-params readable-ref-partial 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"a">, node: VariableDeclarator$1, }, ], name: "a", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"a">, isRead: true, @@ -26,14 +26,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"foo">, node: VariableDeclarator$2, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, init: true, @@ -49,21 +49,21 @@ ScopeManager { isTypeVariable: false, }, Variable$4 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"b">, node: FunctionExpression$3, }, ], name: "b", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"b">, init: true, @@ -79,11 +79,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -93,7 +93,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -102,7 +102,7 @@ ScopeManager { FunctionScope$2 { block: FunctionExpression$3, isStrict: false, - references: Array [ + references: [ Reference$2, Reference$3, ], @@ -112,7 +112,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, Variable$5, ], diff --git a/packages/scope-manager/tests/fixtures/functions/function-expression/default-params/writable-ref.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-expression/default-params/writable-ref.ts.shot index 077c35f147d3..463399d84696 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-expression/default-params/writable-ref.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-expression/default-params/writable-ref.ts.shot @@ -2,17 +2,17 @@ exports[`functions function-expression default-params writable-ref 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"foo">, node: VariableDeclarator$1, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, init: true, @@ -28,33 +28,33 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$2 { name: Identifier<"a">, node: FunctionExpression$2, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"b">, node: FunctionExpression$2, }, ], name: "b", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"b">, init: true, @@ -70,11 +70,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -83,7 +83,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -91,7 +91,7 @@ ScopeManager { FunctionScope$2 { block: FunctionExpression$2, isStrict: false, - references: Array [ + references: [ Reference$2, ], set: Map { @@ -101,7 +101,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, Variable$5, diff --git a/packages/scope-manager/tests/fixtures/functions/function-expression/inherited-scope.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-expression/inherited-scope.ts.shot index 4510909af711..288e003d4f89 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-expression/inherited-scope.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-expression/inherited-scope.ts.shot @@ -2,17 +2,17 @@ exports[`functions function-expression inherited-scope 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"parentScoped">, node: VariableDeclarator$1, }, ], name: "parentScoped", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"parentScoped">, init: true, @@ -36,14 +36,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"foo">, node: VariableDeclarator$3, }, ], name: "foo", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"foo">, init: true, @@ -59,18 +59,18 @@ ScopeManager { isTypeVariable: false, }, Variable$4 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -81,7 +81,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -90,7 +90,7 @@ ScopeManager { FunctionScope$2 { block: FunctionExpression$4, isStrict: false, - references: Array [ + references: [ Reference$3, ], set: Map { @@ -98,7 +98,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, ], }, diff --git a/packages/scope-manager/tests/fixtures/functions/function-expression/params.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-expression/params.ts.shot index 425932dc3d91..c7e8bb36546d 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-expression/params.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-expression/params.ts.shot @@ -2,17 +2,17 @@ exports[`functions function-expression params 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"outer">, node: VariableDeclarator$1, }, ], name: "outer", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"outer">, init: true, @@ -36,14 +36,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"foo">, node: VariableDeclarator$3, }, ], name: "foo", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"foo">, init: true, @@ -59,21 +59,21 @@ ScopeManager { isTypeVariable: false, }, Variable$4 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"a">, node: FunctionExpression$4, }, ], name: "a", - references: Array [ + references: [ Reference$5 { identifier: Identifier<"a">, isRead: true, @@ -95,38 +95,38 @@ ScopeManager { isTypeVariable: false, }, Variable$6 { - defs: Array [ + defs: [ ParameterDefinition$4 { name: Identifier<"b">, node: FunctionExpression$4, }, ], name: "b", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$7 { - defs: Array [ + defs: [ ParameterDefinition$5 { name: Identifier<"c">, node: FunctionExpression$4, }, ], name: "c", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$8 { - defs: Array [ + defs: [ ParameterDefinition$6 { name: Identifier<"d">, node: FunctionExpression$4, }, ], name: "d", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"d">, init: true, @@ -142,14 +142,14 @@ ScopeManager { isTypeVariable: false, }, Variable$9 { - defs: Array [ + defs: [ ParameterDefinition$7 { name: Identifier<"e">, node: FunctionExpression$4, }, ], name: "e", - references: Array [ + references: [ Reference$4 { identifier: Identifier<"e">, init: true, @@ -165,14 +165,14 @@ ScopeManager { isTypeVariable: false, }, Variable$10 { - defs: Array [ + defs: [ ParameterDefinition$8 { name: Identifier<"f">, node: FunctionExpression$4, }, ], name: "f", - references: Array [ + references: [ Reference$6 { identifier: Identifier<"f">, init: true, @@ -188,26 +188,26 @@ ScopeManager { isTypeVariable: false, }, Variable$11 { - defs: Array [ + defs: [ ParameterDefinition$9 { name: Identifier<"g">, node: FunctionExpression$4, }, ], name: "g", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$12 { - defs: Array [ + defs: [ VariableDefinition$10 { name: Identifier<"unresolved">, node: VariableDeclarator$6, }, ], name: "unresolved", - references: Array [ + references: [ Reference$9 { identifier: Identifier<"unresolved">, init: true, @@ -223,11 +223,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$7, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, Reference$9, @@ -248,7 +248,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -258,7 +258,7 @@ ScopeManager { FunctionScope$2 { block: FunctionExpression$4, isStrict: false, - references: Array [ + references: [ Reference$3, Reference$4, Reference$5, @@ -278,7 +278,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, Variable$5, Variable$6, diff --git a/packages/scope-manager/tests/fixtures/functions/function-expression/scope.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-expression/scope.ts.shot index d0c93a9a0dbf..e86ff00255b8 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-expression/scope.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-expression/scope.ts.shot @@ -2,17 +2,17 @@ exports[`functions function-expression scope 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"foo">, node: VariableDeclarator$1, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, init: true, @@ -28,21 +28,21 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"i">, node: VariableDeclarator$3, }, ], name: "i", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"i">, init: true, @@ -66,14 +66,14 @@ ScopeManager { isTypeVariable: false, }, Variable$5 { - defs: Array [ + defs: [ VariableDefinition$3 { name: Identifier<"j">, node: VariableDeclarator$5, }, ], name: "j", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"j">, init: true, @@ -89,14 +89,14 @@ ScopeManager { isTypeVariable: false, }, Variable$6 { - defs: Array [ + defs: [ VariableDefinition$4 { name: Identifier<"unresolved">, node: VariableDeclarator$7, }, ], name: "unresolved", - references: Array [ + references: [ Reference$5 { identifier: Identifier<"unresolved">, init: true, @@ -112,11 +112,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$8, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$5, Reference$6 { @@ -135,7 +135,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$6, @@ -144,7 +144,7 @@ ScopeManager { FunctionScope$2 { block: FunctionExpression$2, isStrict: false, - references: Array [ + references: [ Reference$2, Reference$3, Reference$4, @@ -156,7 +156,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, Variable$5, diff --git a/packages/scope-manager/tests/fixtures/functions/function-expression/type-parameters/body-reference.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-expression/type-parameters/body-reference.ts.shot index febc3e09efa1..a1a00222b0a8 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-expression/type-parameters/body-reference.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-expression/type-parameters/body-reference.ts.shot @@ -2,17 +2,17 @@ exports[`functions function-expression type-parameters body-reference 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"foo">, node: VariableDeclarator$1, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, init: true, @@ -28,21 +28,21 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeParameter$3, }, ], name: "T", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"T">, isRead: true, @@ -56,23 +56,23 @@ ScopeManager { isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ VariableDefinition$3 { name: Identifier<"x">, node: VariableDeclarator$4, }, ], name: "x", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -81,7 +81,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -89,7 +89,7 @@ ScopeManager { FunctionScope$2 { block: FunctionExpression$2, isStrict: false, - references: Array [ + references: [ Reference$2, ], set: Map { @@ -99,7 +99,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, Variable$5, diff --git a/packages/scope-manager/tests/fixtures/functions/function-expression/type-parameters/param-reference.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-expression/type-parameters/param-reference.ts.shot index 96a2ea373410..70a9021c04ee 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-expression/type-parameters/param-reference.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-expression/type-parameters/param-reference.ts.shot @@ -2,17 +2,17 @@ exports[`functions function-expression type-parameters param-reference 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"foo">, node: VariableDeclarator$1, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, init: true, @@ -28,33 +28,33 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$2 { name: Identifier<"a">, node: FunctionExpression$2, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$5 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"T">, node: TSTypeParameter$3, }, ], name: "T", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"T">, isRead: true, @@ -68,11 +68,11 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -81,7 +81,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -89,7 +89,7 @@ ScopeManager { FunctionScope$2 { block: FunctionExpression$2, isStrict: false, - references: Array [ + references: [ Reference$2, ], set: Map { @@ -99,7 +99,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, Variable$5, diff --git a/packages/scope-manager/tests/fixtures/functions/function-expression/type-parameters/return-value-reference.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-expression/type-parameters/return-value-reference.ts.shot index f198fc3efe1b..27b8819fcae9 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-expression/type-parameters/return-value-reference.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-expression/type-parameters/return-value-reference.ts.shot @@ -2,17 +2,17 @@ exports[`functions function-expression type-parameters return-value-reference 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"foo">, node: VariableDeclarator$1, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, init: true, @@ -28,21 +28,21 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeParameter$3, }, ], name: "T", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"T">, isRead: true, @@ -56,11 +56,11 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -69,7 +69,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -77,7 +77,7 @@ ScopeManager { FunctionScope$2 { block: FunctionExpression$2, isStrict: false, - references: Array [ + references: [ Reference$2, ], set: Map { @@ -86,7 +86,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, ], diff --git a/packages/scope-manager/tests/fixtures/functions/function-expression/type-parameters/type-param-reference.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-expression/type-parameters/type-param-reference.ts.shot index d1c45c8b840b..ce68a02c8be1 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-expression/type-parameters/type-param-reference.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-expression/type-parameters/type-param-reference.ts.shot @@ -2,17 +2,17 @@ exports[`functions function-expression type-parameters type-param-reference 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"foo">, node: VariableDeclarator$1, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, init: true, @@ -28,21 +28,21 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeParameter$3, }, ], name: "T", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"T">, isRead: true, @@ -56,23 +56,23 @@ ScopeManager { isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"U">, node: TSTypeParameter$4, }, ], name: "U", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -81,7 +81,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -89,7 +89,7 @@ ScopeManager { FunctionScope$2 { block: FunctionExpression$2, isStrict: false, - references: Array [ + references: [ Reference$2, ], set: Map { @@ -99,7 +99,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, Variable$5, diff --git a/packages/scope-manager/tests/fixtures/functions/function-expression/type-parameters/type-parameter-declaration.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-expression/type-parameters/type-parameter-declaration.ts.shot index f090f4c7abe8..7335c06c37ac 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-expression/type-parameters/type-parameter-declaration.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-expression/type-parameters/type-parameter-declaration.ts.shot @@ -2,17 +2,17 @@ exports[`functions function-expression type-parameters type-parameter-declaration 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"foo">, node: VariableDeclarator$1, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, init: true, @@ -28,42 +28,42 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeParameter$3, }, ], name: "T", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"Unresolved">, node: TSTypeAliasDeclaration$4, }, ], name: "Unresolved", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2 { identifier: Identifier<"T">, @@ -81,7 +81,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$5, @@ -90,14 +90,14 @@ ScopeManager { FunctionScope$2 { block: FunctionExpression$2, isStrict: false, - references: Array [], + references: [], set: Map { "arguments" => Variable$3, "T" => Variable$4, }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, ], diff --git a/packages/scope-manager/tests/fixtures/functions/function-expression/type-predicate-asserts1.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-expression/type-predicate-asserts1.ts.shot index 4193011b8dba..c8a30508c0f1 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-expression/type-predicate-asserts1.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-expression/type-predicate-asserts1.ts.shot @@ -2,17 +2,17 @@ exports[`functions function-expression type-predicate-asserts1 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"foo">, node: VariableDeclarator$1, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, init: true, @@ -28,21 +28,21 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$2 { name: Identifier<"arg">, node: FunctionExpression$2, }, ], name: "arg", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"arg">, isRead: true, @@ -56,11 +56,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -69,7 +69,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -77,7 +77,7 @@ ScopeManager { FunctionScope$2 { block: FunctionExpression$2, isStrict: false, - references: Array [ + references: [ Reference$2, ], set: Map { @@ -86,7 +86,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, ], diff --git a/packages/scope-manager/tests/fixtures/functions/function-expression/type-predicate-asserts2.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-expression/type-predicate-asserts2.ts.shot index 5fa2038599f0..9b8dd6d91a0e 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-expression/type-predicate-asserts2.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-expression/type-predicate-asserts2.ts.shot @@ -2,17 +2,17 @@ exports[`functions function-expression type-predicate-asserts2 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"T">, isRead: true, @@ -26,14 +26,14 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"foo">, node: VariableDeclarator$2, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, init: true, @@ -49,21 +49,21 @@ ScopeManager { isTypeVariable: false, }, Variable$4 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"arg">, node: FunctionExpression$3, }, ], name: "arg", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"arg">, isRead: true, @@ -77,11 +77,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -91,7 +91,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -100,7 +100,7 @@ ScopeManager { FunctionScope$2 { block: FunctionExpression$3, isStrict: false, - references: Array [ + references: [ Reference$2, Reference$3, ], @@ -110,7 +110,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, Variable$5, ], diff --git a/packages/scope-manager/tests/fixtures/functions/function-expression/type-predicate1.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-expression/type-predicate1.ts.shot index 154f475a4f2d..b2a6758bd867 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-expression/type-predicate1.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-expression/type-predicate1.ts.shot @@ -2,17 +2,17 @@ exports[`functions function-expression type-predicate1 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"foo">, node: VariableDeclarator$1, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, init: true, @@ -28,21 +28,21 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$2 { name: Identifier<"arg">, node: FunctionExpression$2, }, ], name: "arg", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"arg">, isRead: true, @@ -64,11 +64,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -77,7 +77,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -85,7 +85,7 @@ ScopeManager { FunctionScope$2 { block: FunctionExpression$2, isStrict: false, - references: Array [ + references: [ Reference$2, Reference$3, ], @@ -95,7 +95,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, ], diff --git a/packages/scope-manager/tests/fixtures/functions/function-expression/type-predicate2.ts.shot b/packages/scope-manager/tests/fixtures/functions/function-expression/type-predicate2.ts.shot index f9a88efb941b..d014825a68bb 100644 --- a/packages/scope-manager/tests/fixtures/functions/function-expression/type-predicate2.ts.shot +++ b/packages/scope-manager/tests/fixtures/functions/function-expression/type-predicate2.ts.shot @@ -2,17 +2,17 @@ exports[`functions function-expression type-predicate2 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"T">, isRead: true, @@ -26,14 +26,14 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"foo">, node: VariableDeclarator$2, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, init: true, @@ -49,21 +49,21 @@ ScopeManager { isTypeVariable: false, }, Variable$4 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"arg">, node: FunctionExpression$3, }, ], name: "arg", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"arg">, isRead: true, @@ -85,11 +85,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -99,7 +99,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -108,7 +108,7 @@ ScopeManager { FunctionScope$2 { block: FunctionExpression$3, isStrict: false, - references: Array [ + references: [ Reference$2, Reference$3, Reference$4, @@ -119,7 +119,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, Variable$5, ], diff --git a/packages/scope-manager/tests/fixtures/global-resolution/module/class.ts.shot b/packages/scope-manager/tests/fixtures/global-resolution/module/class.ts.shot index 75e28e474cb7..cdb2958a85ce 100644 --- a/packages/scope-manager/tests/fixtures/global-resolution/module/class.ts.shot +++ b/packages/scope-manager/tests/fixtures/global-resolution/module/class.ts.shot @@ -2,17 +2,17 @@ exports[`global-resolution module class 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ClassNameDefinition$1 { name: Identifier<"Foo">, node: ClassDeclaration$1, }, ], name: "Foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"Foo">, isRead: true, @@ -26,36 +26,36 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ ClassNameDefinition$2 { name: Identifier<"Foo">, node: ClassDeclaration$1, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$2, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$2, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -63,20 +63,20 @@ ScopeManager { }, type: "module", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, ], }, ClassScope$3 { block: ClassDeclaration$1, isStrict: true, - references: Array [], + references: [], set: Map { "Foo" => Variable$3, }, type: "class", upper: ModuleScope$2, - variables: Array [ + variables: [ Variable$3, ], }, diff --git a/packages/scope-manager/tests/fixtures/global-resolution/module/function.ts.shot b/packages/scope-manager/tests/fixtures/global-resolution/module/function.ts.shot index d3f74d777036..9124462fbfbc 100644 --- a/packages/scope-manager/tests/fixtures/global-resolution/module/function.ts.shot +++ b/packages/scope-manager/tests/fixtures/global-resolution/module/function.ts.shot @@ -2,17 +2,17 @@ exports[`global-resolution module function 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ FunctionNameDefinition$1 { name: Identifier<"top">, node: FunctionDeclaration$1, }, ], name: "top", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"top">, isRead: true, @@ -26,31 +26,31 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$2, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$2, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -58,20 +58,20 @@ ScopeManager { }, type: "module", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, ], }, FunctionScope$3 { block: FunctionDeclaration$1, isStrict: true, - references: Array [], + references: [], set: Map { "arguments" => Variable$3, }, type: "function", upper: ModuleScope$2, - variables: Array [ + variables: [ Variable$3, ], }, diff --git a/packages/scope-manager/tests/fixtures/global-resolution/module/variable-decl-const.ts.shot b/packages/scope-manager/tests/fixtures/global-resolution/module/variable-decl-const.ts.shot index f75dfd16e0c7..f2abe6f88630 100644 --- a/packages/scope-manager/tests/fixtures/global-resolution/module/variable-decl-const.ts.shot +++ b/packages/scope-manager/tests/fixtures/global-resolution/module/variable-decl-const.ts.shot @@ -2,17 +2,17 @@ exports[`global-resolution module variable-decl-const 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"top">, node: VariableDeclarator$1, }, ], name: "top", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"top">, init: true, @@ -36,24 +36,24 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$3, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -62,18 +62,18 @@ ScopeManager { }, type: "module", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, ], }, FunctionScope$3 { block: ArrowFunctionExpression$2, isStrict: true, - references: Array [], + references: [], set: Map {}, type: "function", upper: ModuleScope$2, - variables: Array [], + variables: [], }, ], } diff --git a/packages/scope-manager/tests/fixtures/global-resolution/module/variable-decl-let.ts.shot b/packages/scope-manager/tests/fixtures/global-resolution/module/variable-decl-let.ts.shot index 7147cf4277d3..18989259b7a0 100644 --- a/packages/scope-manager/tests/fixtures/global-resolution/module/variable-decl-let.ts.shot +++ b/packages/scope-manager/tests/fixtures/global-resolution/module/variable-decl-let.ts.shot @@ -2,17 +2,17 @@ exports[`global-resolution module variable-decl-let 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"top">, node: VariableDeclarator$1, }, ], name: "top", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"top">, init: true, @@ -36,24 +36,24 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$3, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -62,18 +62,18 @@ ScopeManager { }, type: "module", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, ], }, FunctionScope$3 { block: ArrowFunctionExpression$2, isStrict: true, - references: Array [], + references: [], set: Map {}, type: "function", upper: ModuleScope$2, - variables: Array [], + variables: [], }, ], } diff --git a/packages/scope-manager/tests/fixtures/global-resolution/module/variable-decl-var.ts.shot b/packages/scope-manager/tests/fixtures/global-resolution/module/variable-decl-var.ts.shot index d272adf20c8c..f07908635a06 100644 --- a/packages/scope-manager/tests/fixtures/global-resolution/module/variable-decl-var.ts.shot +++ b/packages/scope-manager/tests/fixtures/global-resolution/module/variable-decl-var.ts.shot @@ -2,17 +2,17 @@ exports[`global-resolution module variable-decl-var 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"top">, node: VariableDeclarator$1, }, ], name: "top", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"top">, init: true, @@ -36,24 +36,24 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$3, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -62,18 +62,18 @@ ScopeManager { }, type: "module", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, ], }, FunctionScope$3 { block: ArrowFunctionExpression$2, isStrict: true, - references: Array [], + references: [], set: Map {}, type: "function", upper: ModuleScope$2, - variables: Array [], + variables: [], }, ], } diff --git a/packages/scope-manager/tests/fixtures/global-resolution/script/class.ts.shot b/packages/scope-manager/tests/fixtures/global-resolution/script/class.ts.shot index 984646c4c21a..9f281b323747 100644 --- a/packages/scope-manager/tests/fixtures/global-resolution/script/class.ts.shot +++ b/packages/scope-manager/tests/fixtures/global-resolution/script/class.ts.shot @@ -2,17 +2,17 @@ exports[`global-resolution script class 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ClassNameDefinition$1 { name: Identifier<"Foo">, node: ClassDeclaration$1, }, ], name: "Foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"Foo">, isRead: true, @@ -26,23 +26,23 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ ClassNameDefinition$2 { name: Identifier<"Foo">, node: ClassDeclaration$1, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$2, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -51,7 +51,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -59,13 +59,13 @@ ScopeManager { ClassScope$2 { block: ClassDeclaration$1, isStrict: true, - references: Array [], + references: [], set: Map { "Foo" => Variable$3, }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, diff --git a/packages/scope-manager/tests/fixtures/global-resolution/script/function.ts.shot b/packages/scope-manager/tests/fixtures/global-resolution/script/function.ts.shot index c237ae2953a3..8c3f647e6830 100644 --- a/packages/scope-manager/tests/fixtures/global-resolution/script/function.ts.shot +++ b/packages/scope-manager/tests/fixtures/global-resolution/script/function.ts.shot @@ -2,17 +2,17 @@ exports[`global-resolution script function 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ FunctionNameDefinition$1 { name: Identifier<"top">, node: FunctionDeclaration$1, }, ], name: "top", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"top">, isRead: true, @@ -26,18 +26,18 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$2, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -46,7 +46,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -54,13 +54,13 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$1, isStrict: false, - references: Array [], + references: [], set: Map { "arguments" => Variable$3, }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, diff --git a/packages/scope-manager/tests/fixtures/global-resolution/script/variable-decl-const.ts.shot b/packages/scope-manager/tests/fixtures/global-resolution/script/variable-decl-const.ts.shot index f83cbfcdaec1..2f76c5879876 100644 --- a/packages/scope-manager/tests/fixtures/global-resolution/script/variable-decl-const.ts.shot +++ b/packages/scope-manager/tests/fixtures/global-resolution/script/variable-decl-const.ts.shot @@ -2,17 +2,17 @@ exports[`global-resolution script variable-decl-const 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"top">, node: VariableDeclarator$1, }, ], name: "top", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"top">, init: true, @@ -36,11 +36,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -50,7 +50,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -58,11 +58,11 @@ ScopeManager { FunctionScope$2 { block: ArrowFunctionExpression$2, isStrict: false, - references: Array [], + references: [], set: Map {}, type: "function", upper: GlobalScope$1, - variables: Array [], + variables: [], }, ], } diff --git a/packages/scope-manager/tests/fixtures/global-resolution/script/variable-decl-let.ts.shot b/packages/scope-manager/tests/fixtures/global-resolution/script/variable-decl-let.ts.shot index 516c63a9191f..cc353b1fe023 100644 --- a/packages/scope-manager/tests/fixtures/global-resolution/script/variable-decl-let.ts.shot +++ b/packages/scope-manager/tests/fixtures/global-resolution/script/variable-decl-let.ts.shot @@ -2,17 +2,17 @@ exports[`global-resolution script variable-decl-let 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"top">, node: VariableDeclarator$1, }, ], name: "top", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"top">, init: true, @@ -36,11 +36,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -50,7 +50,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -58,11 +58,11 @@ ScopeManager { FunctionScope$2 { block: ArrowFunctionExpression$2, isStrict: false, - references: Array [], + references: [], set: Map {}, type: "function", upper: GlobalScope$1, - variables: Array [], + variables: [], }, ], } diff --git a/packages/scope-manager/tests/fixtures/global-resolution/script/variable-decl-var.ts.shot b/packages/scope-manager/tests/fixtures/global-resolution/script/variable-decl-var.ts.shot index f7efeaa669b4..9e81aa96e076 100644 --- a/packages/scope-manager/tests/fixtures/global-resolution/script/variable-decl-var.ts.shot +++ b/packages/scope-manager/tests/fixtures/global-resolution/script/variable-decl-var.ts.shot @@ -2,26 +2,26 @@ exports[`global-resolution script variable-decl-var 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"top">, node: VariableDeclarator$1, }, ], name: "top", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$2, isStrict: false, - references: Array [ + references: [ Reference$1 { identifier: Identifier<"top">, init: true, @@ -47,7 +47,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -55,11 +55,11 @@ ScopeManager { FunctionScope$2 { block: ArrowFunctionExpression$3, isStrict: false, - references: Array [], + references: [], set: Map {}, type: "function", upper: GlobalScope$1, - variables: Array [], + variables: [], }, ], } diff --git a/packages/scope-manager/tests/fixtures/implicit/implicit1.ts.shot b/packages/scope-manager/tests/fixtures/implicit/implicit1.ts.shot index 0fa96bf3beee..69975f651713 100644 --- a/packages/scope-manager/tests/fixtures/implicit/implicit1.ts.shot +++ b/packages/scope-manager/tests/fixtures/implicit/implicit1.ts.shot @@ -2,17 +2,17 @@ exports[`implicit implicit1 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"x">, node: VariableDeclarator$1, }, ], name: "x", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"x">, init: true, @@ -28,11 +28,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$2, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2 { identifier: Identifier<"y">, @@ -49,7 +49,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], diff --git a/packages/scope-manager/tests/fixtures/import/default.ts.shot b/packages/scope-manager/tests/fixtures/import/default.ts.shot index 427e6cb7ee4b..e1f2f15061c7 100644 --- a/packages/scope-manager/tests/fixtures/import/default.ts.shot +++ b/packages/scope-manager/tests/fixtures/import/default.ts.shot @@ -2,17 +2,17 @@ exports[`import default 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ImportBindingDefinition$1 { name: Identifier<"v">, node: ImportDefaultSpecifier$1, }, ], name: "v", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"v">, isRead: true, @@ -34,36 +34,36 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeAliasDeclaration$2, }, ], name: "T", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$3, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -73,7 +73,7 @@ ScopeManager { }, type: "module", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, Variable$3, ], diff --git a/packages/scope-manager/tests/fixtures/import/equals1.ts.shot b/packages/scope-manager/tests/fixtures/import/equals1.ts.shot index e20ab068f8c0..f5492b5c0b34 100644 --- a/packages/scope-manager/tests/fixtures/import/equals1.ts.shot +++ b/packages/scope-manager/tests/fixtures/import/equals1.ts.shot @@ -2,17 +2,17 @@ exports[`import equals1 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ImportBindingDefinition$1 { name: Identifier<"foo">, node: TSImportEqualsDeclaration$1, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, isRead: true, @@ -26,24 +26,24 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$2, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$2, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -51,7 +51,7 @@ ScopeManager { }, type: "module", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, ], }, diff --git a/packages/scope-manager/tests/fixtures/import/equals2.ts.shot b/packages/scope-manager/tests/fixtures/import/equals2.ts.shot index e69befe705b7..f420056f8fb7 100644 --- a/packages/scope-manager/tests/fixtures/import/equals2.ts.shot +++ b/packages/scope-manager/tests/fixtures/import/equals2.ts.shot @@ -2,17 +2,17 @@ exports[`import equals2 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"x">, node: VariableDeclarator$1, }, ], name: "x", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"x">, init: true, @@ -36,36 +36,36 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ ImportBindingDefinition$2 { name: Identifier<"foo">, node: TSImportEqualsDeclaration$3, }, ], name: "foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$4, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -75,7 +75,7 @@ ScopeManager { }, type: "module", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, Variable$3, ], diff --git a/packages/scope-manager/tests/fixtures/import/named-alias.ts.shot b/packages/scope-manager/tests/fixtures/import/named-alias.ts.shot index bc093fec64a9..d4829a612cc4 100644 --- a/packages/scope-manager/tests/fixtures/import/named-alias.ts.shot +++ b/packages/scope-manager/tests/fixtures/import/named-alias.ts.shot @@ -2,17 +2,17 @@ exports[`import named-alias 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ImportBindingDefinition$1 { name: Identifier<"t">, node: ImportSpecifier$1, }, ], name: "t", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"t">, isRead: true, @@ -34,36 +34,36 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeAliasDeclaration$2, }, ], name: "T", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$3, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -73,7 +73,7 @@ ScopeManager { }, type: "module", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, Variable$3, ], diff --git a/packages/scope-manager/tests/fixtures/import/named.ts.shot b/packages/scope-manager/tests/fixtures/import/named.ts.shot index f983ab379359..e36df5a8ce79 100644 --- a/packages/scope-manager/tests/fixtures/import/named.ts.shot +++ b/packages/scope-manager/tests/fixtures/import/named.ts.shot @@ -2,17 +2,17 @@ exports[`import named 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ImportBindingDefinition$1 { name: Identifier<"v">, node: ImportSpecifier$1, }, ], name: "v", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"v">, isRead: true, @@ -34,36 +34,36 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeAliasDeclaration$2, }, ], name: "T", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$3, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -73,7 +73,7 @@ ScopeManager { }, type: "module", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, Variable$3, ], diff --git a/packages/scope-manager/tests/fixtures/import/namespace.ts.shot b/packages/scope-manager/tests/fixtures/import/namespace.ts.shot index 0431b9a0580c..d3e2d4238de6 100644 --- a/packages/scope-manager/tests/fixtures/import/namespace.ts.shot +++ b/packages/scope-manager/tests/fixtures/import/namespace.ts.shot @@ -2,17 +2,17 @@ exports[`import namespace 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ImportBindingDefinition$1 { name: Identifier<"v">, node: ImportNamespaceSpecifier$1, }, ], name: "v", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"v">, isRead: true, @@ -34,36 +34,36 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeAliasDeclaration$2, }, ], name: "T", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$3, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -73,7 +73,7 @@ ScopeManager { }, type: "module", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, Variable$3, ], diff --git a/packages/scope-manager/tests/fixtures/import/type-default-value.ts.shot b/packages/scope-manager/tests/fixtures/import/type-default-value.ts.shot index c269d5be2a05..f8baa13e445e 100644 --- a/packages/scope-manager/tests/fixtures/import/type-default-value.ts.shot +++ b/packages/scope-manager/tests/fixtures/import/type-default-value.ts.shot @@ -2,17 +2,17 @@ exports[`import type-default-value 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ImportBindingDefinition$1 { name: Identifier<"foo">, node: ImportDefaultSpecifier$1, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, isRead: true, @@ -26,36 +26,36 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeAliasDeclaration$2, }, ], name: "T", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$3, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -64,7 +64,7 @@ ScopeManager { }, type: "module", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, Variable$3, ], diff --git a/packages/scope-manager/tests/fixtures/import/type-default.ts.shot b/packages/scope-manager/tests/fixtures/import/type-default.ts.shot index 11a150a59a39..d6ed327ca1ed 100644 --- a/packages/scope-manager/tests/fixtures/import/type-default.ts.shot +++ b/packages/scope-manager/tests/fixtures/import/type-default.ts.shot @@ -2,17 +2,17 @@ exports[`import type-default 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ImportBindingDefinition$1 { name: Identifier<"T">, node: ImportDefaultSpecifier$1, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -34,26 +34,26 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"Ref">, node: TSTypeAliasDeclaration$2, }, ], name: "Ref", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ VariableDefinition$3 { name: Identifier<"unresolved">, node: VariableDeclarator$3, }, ], name: "unresolved", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"unresolved">, init: true, @@ -69,24 +69,24 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$4, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, Reference$3, @@ -98,7 +98,7 @@ ScopeManager { }, type: "module", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, Variable$3, Variable$4, diff --git a/packages/scope-manager/tests/fixtures/import/type-inline-value.ts.shot b/packages/scope-manager/tests/fixtures/import/type-inline-value.ts.shot index 037a97b96fc3..e707e4378348 100644 --- a/packages/scope-manager/tests/fixtures/import/type-inline-value.ts.shot +++ b/packages/scope-manager/tests/fixtures/import/type-inline-value.ts.shot @@ -2,17 +2,17 @@ exports[`import type-inline-value 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ImportBindingDefinition$1 { name: Identifier<"foo">, node: ImportSpecifier$1, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, isRead: true, @@ -26,36 +26,36 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeAliasDeclaration$2, }, ], name: "T", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$3, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -64,7 +64,7 @@ ScopeManager { }, type: "module", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, Variable$3, ], diff --git a/packages/scope-manager/tests/fixtures/import/type-inline.ts.shot b/packages/scope-manager/tests/fixtures/import/type-inline.ts.shot index 4e5205e91d27..4f7f51451865 100644 --- a/packages/scope-manager/tests/fixtures/import/type-inline.ts.shot +++ b/packages/scope-manager/tests/fixtures/import/type-inline.ts.shot @@ -2,17 +2,17 @@ exports[`import type-inline 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ImportBindingDefinition$1 { name: Identifier<"T">, node: ImportSpecifier$1, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -34,26 +34,26 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"Ref">, node: TSTypeAliasDeclaration$2, }, ], name: "Ref", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ VariableDefinition$3 { name: Identifier<"unresolved">, node: VariableDeclarator$3, }, ], name: "unresolved", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"unresolved">, init: true, @@ -69,24 +69,24 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$4, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, Reference$3, @@ -98,7 +98,7 @@ ScopeManager { }, type: "module", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, Variable$3, Variable$4, diff --git a/packages/scope-manager/tests/fixtures/import/type-named-value.ts.shot b/packages/scope-manager/tests/fixtures/import/type-named-value.ts.shot index dfaf7fa31ad0..5e0f4fd44f8a 100644 --- a/packages/scope-manager/tests/fixtures/import/type-named-value.ts.shot +++ b/packages/scope-manager/tests/fixtures/import/type-named-value.ts.shot @@ -2,17 +2,17 @@ exports[`import type-named-value 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ImportBindingDefinition$1 { name: Identifier<"foo">, node: ImportSpecifier$1, }, ], name: "foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"foo">, isRead: true, @@ -26,36 +26,36 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeAliasDeclaration$2, }, ], name: "T", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$3, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -64,7 +64,7 @@ ScopeManager { }, type: "module", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, Variable$3, ], diff --git a/packages/scope-manager/tests/fixtures/import/type-named.ts.shot b/packages/scope-manager/tests/fixtures/import/type-named.ts.shot index 75b2214ff067..1ae374ec3cb2 100644 --- a/packages/scope-manager/tests/fixtures/import/type-named.ts.shot +++ b/packages/scope-manager/tests/fixtures/import/type-named.ts.shot @@ -2,17 +2,17 @@ exports[`import type-named 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ImportBindingDefinition$1 { name: Identifier<"T">, node: ImportSpecifier$1, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -34,26 +34,26 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"Ref">, node: TSTypeAliasDeclaration$2, }, ], name: "Ref", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ VariableDefinition$3 { name: Identifier<"unresolved">, node: VariableDeclarator$3, }, ], name: "unresolved", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"unresolved">, init: true, @@ -69,24 +69,24 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$4, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, Reference$3, @@ -98,7 +98,7 @@ ScopeManager { }, type: "module", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, Variable$3, Variable$4, diff --git a/packages/scope-manager/tests/fixtures/instantiation-expressions/type-arguments1.ts.shot b/packages/scope-manager/tests/fixtures/instantiation-expressions/type-arguments1.ts.shot index 4b22bb095c80..2b1fc5516095 100644 --- a/packages/scope-manager/tests/fixtures/instantiation-expressions/type-arguments1.ts.shot +++ b/packages/scope-manager/tests/fixtures/instantiation-expressions/type-arguments1.ts.shot @@ -2,17 +2,17 @@ exports[`instantiation-expressions type-arguments1 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ClassNameDefinition$1 { name: Identifier<"Foo">, node: ClassDeclaration$1, }, ], name: "Foo", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"Foo">, isRead: true, @@ -26,26 +26,26 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ ClassNameDefinition$2 { name: Identifier<"Foo">, node: ClassDeclaration$1, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"T">, node: TSTypeParameter$2, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -59,14 +59,14 @@ ScopeManager { isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ClassNameDefinition$4 { name: Identifier<"Bar">, node: ClassDeclaration$3, }, ], name: "Bar", - references: Array [ + references: [ Reference$4 { identifier: Identifier<"Bar">, isRead: true, @@ -80,26 +80,26 @@ ScopeManager { isTypeVariable: true, }, Variable$6 { - defs: Array [ + defs: [ ClassNameDefinition$5 { name: Identifier<"Bar">, node: ClassDeclaration$3, }, ], name: "Bar", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$7 { - defs: Array [ + defs: [ TypeDefinition$6 { name: Identifier<"T">, node: TSTypeParameter$4, }, ], name: "T", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"T">, isRead: true, @@ -113,11 +113,11 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [ + references: [ Reference$4, ], set: Map { @@ -127,7 +127,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$5, @@ -136,7 +136,7 @@ ScopeManager { ClassScope$2 { block: ClassDeclaration$1, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -145,7 +145,7 @@ ScopeManager { }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, ], @@ -153,14 +153,14 @@ ScopeManager { ClassScope$3 { block: ClassDeclaration$3, isStrict: true, - references: Array [], + references: [], set: Map { "Bar" => Variable$6, "T" => Variable$7, }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$6, Variable$7, ], @@ -168,14 +168,14 @@ ScopeManager { ClassFieldInitializerScope$4 { block: TSInstantiationExpression$6, isStrict: true, - references: Array [ + references: [ Reference$2, Reference$3, ], set: Map {}, type: "class-field-initializer", upper: ClassScope$3, - variables: Array [], + variables: [], }, ], } diff --git a/packages/scope-manager/tests/fixtures/instantiation-expressions/type-arguments2.ts.shot b/packages/scope-manager/tests/fixtures/instantiation-expressions/type-arguments2.ts.shot index e2f0a03503c7..41e65e1fc9e5 100644 --- a/packages/scope-manager/tests/fixtures/instantiation-expressions/type-arguments2.ts.shot +++ b/packages/scope-manager/tests/fixtures/instantiation-expressions/type-arguments2.ts.shot @@ -2,17 +2,17 @@ exports[`instantiation-expressions type-arguments2 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ FunctionNameDefinition$1 { name: Identifier<"makeBox">, node: FunctionDeclaration$1, }, ], name: "makeBox", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"makeBox">, isRead: true, @@ -34,21 +34,21 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$2 { name: Identifier<"value">, node: FunctionDeclaration$1, }, ], name: "value", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"value">, isRead: true, @@ -62,14 +62,14 @@ ScopeManager { isTypeVariable: false, }, Variable$5 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"T">, node: TSTypeParameter$2, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -83,26 +83,26 @@ ScopeManager { isTypeVariable: true, }, Variable$6 { - defs: Array [ + defs: [ TypeDefinition$4 { name: Identifier<"BoxFunc">, node: TSTypeAliasDeclaration$3, }, ], name: "BoxFunc", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$7 { - defs: Array [ + defs: [ TypeDefinition$5 { name: Identifier<"T">, node: TSTypeParameter$4, }, ], name: "T", - references: Array [ + references: [ Reference$4 { identifier: Identifier<"T">, isRead: true, @@ -116,14 +116,14 @@ ScopeManager { isTypeVariable: true, }, Variable$8 { - defs: Array [ + defs: [ VariableDefinition$6 { name: Identifier<"makeStringBox">, node: VariableDeclarator$5, }, ], name: "makeStringBox", - references: Array [ + references: [ Reference$5 { identifier: Identifier<"makeStringBox">, init: true, @@ -139,11 +139,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$7, isStrict: false, - references: Array [ + references: [ Reference$5, Reference$6, ], @@ -155,7 +155,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$6, @@ -165,7 +165,7 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$1, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -176,7 +176,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, Variable$5, @@ -185,7 +185,7 @@ ScopeManager { TypeScope$3 { block: TSTypeAliasDeclaration$3, isStrict: true, - references: Array [ + references: [ Reference$3, Reference$4, ], @@ -194,7 +194,7 @@ ScopeManager { }, type: "type", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$7, ], }, diff --git a/packages/scope-manager/tests/fixtures/jsx/attribute-spread.tsx.shot b/packages/scope-manager/tests/fixtures/jsx/attribute-spread.tsx.shot index df4f72b6ffe8..81fa17cd3325 100644 --- a/packages/scope-manager/tests/fixtures/jsx/attribute-spread.tsx.shot +++ b/packages/scope-manager/tests/fixtures/jsx/attribute-spread.tsx.shot @@ -2,17 +2,17 @@ exports[`jsx attribute-spread 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"x">, node: VariableDeclarator$1, }, ], name: "x", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"x">, init: true, @@ -36,11 +36,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2 { identifier: JSXIdentifier$4, @@ -58,7 +58,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], diff --git a/packages/scope-manager/tests/fixtures/jsx/attribute.tsx.shot b/packages/scope-manager/tests/fixtures/jsx/attribute.tsx.shot index c9a7d3e1ea79..03e39320d301 100644 --- a/packages/scope-manager/tests/fixtures/jsx/attribute.tsx.shot +++ b/packages/scope-manager/tests/fixtures/jsx/attribute.tsx.shot @@ -2,17 +2,17 @@ exports[`jsx attribute 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"x">, node: VariableDeclarator$1, }, ], name: "x", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"x">, init: true, @@ -36,14 +36,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"attr">, node: VariableDeclarator$3, }, ], name: "attr", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"attr">, init: true, @@ -59,11 +59,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, Reference$3 { @@ -83,7 +83,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, diff --git a/packages/scope-manager/tests/fixtures/jsx/children.tsx.shot b/packages/scope-manager/tests/fixtures/jsx/children.tsx.shot index 964f735f3c58..34fb1952672a 100644 --- a/packages/scope-manager/tests/fixtures/jsx/children.tsx.shot +++ b/packages/scope-manager/tests/fixtures/jsx/children.tsx.shot @@ -2,17 +2,17 @@ exports[`jsx children 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"child">, node: VariableDeclarator$1, }, ], name: "child", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"child">, init: true, @@ -36,11 +36,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2 { identifier: JSXIdentifier$4, @@ -58,7 +58,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], diff --git a/packages/scope-manager/tests/fixtures/jsx/component-intrinsic-name.tsx.shot b/packages/scope-manager/tests/fixtures/jsx/component-intrinsic-name.tsx.shot index f67914bac29c..89eb9e506c6a 100644 --- a/packages/scope-manager/tests/fixtures/jsx/component-intrinsic-name.tsx.shot +++ b/packages/scope-manager/tests/fixtures/jsx/component-intrinsic-name.tsx.shot @@ -2,40 +2,40 @@ exports[`jsx component-intrinsic-name 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ FunctionNameDefinition$1 { name: Identifier<"div">, node: FunctionDeclaration$1, }, ], name: "div", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$2, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "div" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -43,13 +43,13 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$1, isStrict: false, - references: Array [], + references: [], set: Map { "arguments" => Variable$3, }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, diff --git a/packages/scope-manager/tests/fixtures/jsx/component-namespaced1.tsx.shot b/packages/scope-manager/tests/fixtures/jsx/component-namespaced1.tsx.shot index 291e01032323..79ce89305957 100644 --- a/packages/scope-manager/tests/fixtures/jsx/component-namespaced1.tsx.shot +++ b/packages/scope-manager/tests/fixtures/jsx/component-namespaced1.tsx.shot @@ -2,17 +2,17 @@ exports[`jsx component-namespaced1 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"X">, node: VariableDeclarator$1, }, ], name: "X", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"X">, init: true, @@ -36,21 +36,21 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"Foo">, node: VariableDeclarator$4, }, ], name: "Foo", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"Foo">, init: true, @@ -66,11 +66,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$6, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, Reference$3, @@ -82,7 +82,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$4, @@ -91,13 +91,13 @@ ScopeManager { FunctionScope$2 { block: FunctionExpression$7, isStrict: false, - references: Array [], + references: [], set: Map { "arguments" => Variable$3, }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, diff --git a/packages/scope-manager/tests/fixtures/jsx/component-namespaced2.tsx.shot b/packages/scope-manager/tests/fixtures/jsx/component-namespaced2.tsx.shot index 29a55db86ad0..d09154ae74c0 100644 --- a/packages/scope-manager/tests/fixtures/jsx/component-namespaced2.tsx.shot +++ b/packages/scope-manager/tests/fixtures/jsx/component-namespaced2.tsx.shot @@ -2,17 +2,17 @@ exports[`jsx component-namespaced2 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"x">, node: VariableDeclarator$1, }, ], name: "x", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"x">, init: true, @@ -36,21 +36,21 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"Foo">, node: VariableDeclarator$4, }, ], name: "Foo", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"Foo">, init: true, @@ -66,11 +66,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$6, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, Reference$3, @@ -82,7 +82,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$4, @@ -91,13 +91,13 @@ ScopeManager { FunctionScope$2 { block: FunctionExpression$7, isStrict: false, - references: Array [], + references: [], set: Map { "arguments" => Variable$3, }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, diff --git a/packages/scope-manager/tests/fixtures/jsx/component.tsx.shot b/packages/scope-manager/tests/fixtures/jsx/component.tsx.shot index 90dfd10b7ec2..7e39028c5a97 100644 --- a/packages/scope-manager/tests/fixtures/jsx/component.tsx.shot +++ b/packages/scope-manager/tests/fixtures/jsx/component.tsx.shot @@ -2,17 +2,17 @@ exports[`jsx component 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ FunctionNameDefinition$1 { name: Identifier<"Foo">, node: FunctionDeclaration$1, }, ], name: "Foo", - references: Array [ + references: [ Reference$1 { identifier: JSXIdentifier$2, isRead: true, @@ -26,18 +26,18 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -46,7 +46,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -54,13 +54,13 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$1, isStrict: false, - references: Array [], + references: [], set: Map { "arguments" => Variable$3, }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, diff --git a/packages/scope-manager/tests/fixtures/jsx/factory/default-jsxFragmentName.tsx.shot b/packages/scope-manager/tests/fixtures/jsx/factory/default-jsxFragmentName.tsx.shot index 182c52b0606a..2cefb6aabd16 100644 --- a/packages/scope-manager/tests/fixtures/jsx/factory/default-jsxFragmentName.tsx.shot +++ b/packages/scope-manager/tests/fixtures/jsx/factory/default-jsxFragmentName.tsx.shot @@ -2,17 +2,17 @@ exports[`jsx factory default-jsxFragmentName 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ImportBindingDefinition$1 { name: Identifier<"React">, node: ImportDefaultSpecifier$1, }, ], name: "React", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"React">, isRead: true, @@ -26,36 +26,36 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ ImportBindingDefinition$2 { name: Identifier<"Fragment">, node: ImportSpecifier$2, }, ], name: "Fragment", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$3, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -64,7 +64,7 @@ ScopeManager { }, type: "module", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, Variable$3, ], diff --git a/packages/scope-manager/tests/fixtures/jsx/factory/default-jsxPragma-fragment.tsx.shot b/packages/scope-manager/tests/fixtures/jsx/factory/default-jsxPragma-fragment.tsx.shot index cdae17be19f9..6d30458e27de 100644 --- a/packages/scope-manager/tests/fixtures/jsx/factory/default-jsxPragma-fragment.tsx.shot +++ b/packages/scope-manager/tests/fixtures/jsx/factory/default-jsxPragma-fragment.tsx.shot @@ -2,17 +2,17 @@ exports[`jsx factory default-jsxPragma-fragment 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ImportBindingDefinition$1 { name: Identifier<"React">, node: ImportDefaultSpecifier$1, }, ], name: "React", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"React">, isRead: true, @@ -26,24 +26,24 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$2, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$2, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -51,7 +51,7 @@ ScopeManager { }, type: "module", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, ], }, diff --git a/packages/scope-manager/tests/fixtures/jsx/factory/default-jsxPragma.tsx.shot b/packages/scope-manager/tests/fixtures/jsx/factory/default-jsxPragma.tsx.shot index 48c3476764e9..b0543b8c472d 100644 --- a/packages/scope-manager/tests/fixtures/jsx/factory/default-jsxPragma.tsx.shot +++ b/packages/scope-manager/tests/fixtures/jsx/factory/default-jsxPragma.tsx.shot @@ -2,17 +2,17 @@ exports[`jsx factory default-jsxPragma 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ImportBindingDefinition$1 { name: Identifier<"React">, node: ImportDefaultSpecifier$1, }, ], name: "React", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"React">, isRead: true, @@ -26,24 +26,24 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$2, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$2, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2 { identifier: JSXIdentifier$3, @@ -59,7 +59,7 @@ ScopeManager { }, type: "module", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, ], }, diff --git a/packages/scope-manager/tests/fixtures/jsx/factory/jsxFragmentName.tsx.shot b/packages/scope-manager/tests/fixtures/jsx/factory/jsxFragmentName.tsx.shot index 80777e67185c..26773be751fb 100644 --- a/packages/scope-manager/tests/fixtures/jsx/factory/jsxFragmentName.tsx.shot +++ b/packages/scope-manager/tests/fixtures/jsx/factory/jsxFragmentName.tsx.shot @@ -2,17 +2,17 @@ exports[`jsx factory jsxFragmentName 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ImportBindingDefinition$1 { name: Identifier<"React">, node: ImportDefaultSpecifier$1, }, ], name: "React", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"React">, isRead: true, @@ -26,14 +26,14 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ ImportBindingDefinition$2 { name: Identifier<"Fragment">, node: ImportSpecifier$2, }, ], name: "Fragment", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"Fragment">, isRead: true, @@ -47,24 +47,24 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$3, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -74,7 +74,7 @@ ScopeManager { }, type: "module", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, Variable$3, ], diff --git a/packages/scope-manager/tests/fixtures/jsx/factory/jsxPragma-jsxFragmentName.tsx.shot b/packages/scope-manager/tests/fixtures/jsx/factory/jsxPragma-jsxFragmentName.tsx.shot index d59f6526fc5f..0ca83a961093 100644 --- a/packages/scope-manager/tests/fixtures/jsx/factory/jsxPragma-jsxFragmentName.tsx.shot +++ b/packages/scope-manager/tests/fixtures/jsx/factory/jsxPragma-jsxFragmentName.tsx.shot @@ -2,29 +2,29 @@ exports[`jsx factory jsxPragma-jsxFragmentName 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ImportBindingDefinition$1 { name: Identifier<"React">, node: ImportDefaultSpecifier$1, }, ], name: "React", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ ImportBindingDefinition$2 { name: Identifier<"h">, node: ImportSpecifier$2, }, ], name: "h", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"h">, isRead: true, @@ -38,14 +38,14 @@ ScopeManager { isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ImportBindingDefinition$3 { name: Identifier<"Fragment">, node: ImportSpecifier$3, }, ], name: "Fragment", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"Fragment">, isRead: true, @@ -59,24 +59,24 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$4, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -87,7 +87,7 @@ ScopeManager { }, type: "module", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, Variable$3, Variable$4, diff --git a/packages/scope-manager/tests/fixtures/jsx/factory/jsxPragma.tsx.shot b/packages/scope-manager/tests/fixtures/jsx/factory/jsxPragma.tsx.shot index 6f2580a0950a..504cf01c2d8d 100644 --- a/packages/scope-manager/tests/fixtures/jsx/factory/jsxPragma.tsx.shot +++ b/packages/scope-manager/tests/fixtures/jsx/factory/jsxPragma.tsx.shot @@ -2,29 +2,29 @@ exports[`jsx factory jsxPragma 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ImportBindingDefinition$1 { name: Identifier<"React">, node: ImportDefaultSpecifier$1, }, ], name: "React", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ ImportBindingDefinition$2 { name: Identifier<"h">, node: ImportSpecifier$2, }, ], name: "h", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"h">, isRead: true, @@ -38,24 +38,24 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$3, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2 { identifier: JSXIdentifier$4, @@ -72,7 +72,7 @@ ScopeManager { }, type: "module", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$2, Variable$3, ], diff --git a/packages/scope-manager/tests/fixtures/jsx/fragment-children.tsx.shot b/packages/scope-manager/tests/fixtures/jsx/fragment-children.tsx.shot index 69a035379a99..a1ec9eeb6065 100644 --- a/packages/scope-manager/tests/fixtures/jsx/fragment-children.tsx.shot +++ b/packages/scope-manager/tests/fixtures/jsx/fragment-children.tsx.shot @@ -2,17 +2,17 @@ exports[`jsx fragment-children 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"child">, node: VariableDeclarator$1, }, ], name: "child", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"child">, init: true, @@ -36,11 +36,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -50,7 +50,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], diff --git a/packages/scope-manager/tests/fixtures/jsx/fragment.tsx.shot b/packages/scope-manager/tests/fixtures/jsx/fragment.tsx.shot index 77342297d2c9..dc0ee50b76a2 100644 --- a/packages/scope-manager/tests/fixtures/jsx/fragment.tsx.shot +++ b/packages/scope-manager/tests/fixtures/jsx/fragment.tsx.shot @@ -2,20 +2,20 @@ exports[`jsx fragment 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$1, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, diff --git a/packages/scope-manager/tests/fixtures/jsx/generic-type-param.tsx.shot b/packages/scope-manager/tests/fixtures/jsx/generic-type-param.tsx.shot index a7b995fd461e..49cf5735dd22 100644 --- a/packages/scope-manager/tests/fixtures/jsx/generic-type-param.tsx.shot +++ b/packages/scope-manager/tests/fixtures/jsx/generic-type-param.tsx.shot @@ -2,17 +2,17 @@ exports[`jsx generic-type-param 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"T">, isRead: true, @@ -26,11 +26,11 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$2, isStrict: false, - references: Array [ + references: [ Reference$1 { identifier: JSXIdentifier$3, isRead: true, @@ -47,7 +47,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], diff --git a/packages/scope-manager/tests/fixtures/jsx/text.tsx.shot b/packages/scope-manager/tests/fixtures/jsx/text.tsx.shot index 6d52dea69199..7909393c7404 100644 --- a/packages/scope-manager/tests/fixtures/jsx/text.tsx.shot +++ b/packages/scope-manager/tests/fixtures/jsx/text.tsx.shot @@ -2,17 +2,17 @@ exports[`jsx text 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"Foo">, node: VariableDeclarator$1, }, ], name: "Foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"Foo">, init: true, @@ -28,11 +28,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -41,7 +41,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], diff --git a/packages/scope-manager/tests/fixtures/jsx/this-jsxidentifier.tsx.shot b/packages/scope-manager/tests/fixtures/jsx/this-jsxidentifier.tsx.shot index 713e659bb5bc..b8d1bbe5ac35 100644 --- a/packages/scope-manager/tests/fixtures/jsx/this-jsxidentifier.tsx.shot +++ b/packages/scope-manager/tests/fixtures/jsx/this-jsxidentifier.tsx.shot @@ -2,17 +2,17 @@ exports[`jsx this-jsxidentifier 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"React">, node: VariableDeclarator$1, }, ], name: "React", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"React">, isRead: true, @@ -26,42 +26,42 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ ClassNameDefinition$2 { name: Identifier<"Foo">, node: ClassDeclaration$2, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ClassNameDefinition$3 { name: Identifier<"Foo">, node: ClassDeclaration$2, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -71,7 +71,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -80,38 +80,38 @@ ScopeManager { ClassScope$2 { block: ClassDeclaration$2, isStrict: true, - references: Array [], + references: [], set: Map { "Foo" => Variable$4, }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, ], }, ClassFieldInitializerScope$3 { block: ObjectExpression$4, isStrict: true, - references: Array [], + references: [], set: Map {}, type: "class-field-initializer", upper: ClassScope$2, - variables: Array [], + variables: [], }, FunctionScope$4 { block: ArrowFunctionExpression$5, isStrict: true, - references: Array [], + references: [], set: Map {}, type: "function", upper: ClassFieldInitializerScope$3, - variables: Array [], + variables: [], }, FunctionScope$5 { block: FunctionExpression$6, isStrict: true, - references: Array [ + references: [ Reference$2 { identifier: JSXIdentifier$7, isRead: true, @@ -134,7 +134,7 @@ ScopeManager { }, type: "function", upper: ClassScope$2, - variables: Array [ + variables: [ Variable$5, ], }, diff --git a/packages/scope-manager/tests/fixtures/member-expression/member-expression.ts.shot b/packages/scope-manager/tests/fixtures/member-expression/member-expression.ts.shot index 3608c5d5d2b2..aef45836f2cb 100644 --- a/packages/scope-manager/tests/fixtures/member-expression/member-expression.ts.shot +++ b/packages/scope-manager/tests/fixtures/member-expression/member-expression.ts.shot @@ -2,17 +2,17 @@ exports[`member-expression member-expression 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"x">, node: VariableDeclarator$1, }, ], name: "x", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"x">, init: true, @@ -68,11 +68,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, Reference$3, @@ -86,7 +86,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], diff --git a/packages/scope-manager/tests/fixtures/new-expression/new-expression.ts.shot b/packages/scope-manager/tests/fixtures/new-expression/new-expression.ts.shot index 36106a8eeba5..5bb09d673581 100644 --- a/packages/scope-manager/tests/fixtures/new-expression/new-expression.ts.shot +++ b/packages/scope-manager/tests/fixtures/new-expression/new-expression.ts.shot @@ -2,17 +2,17 @@ exports[`new-expression new-expression 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ClassNameDefinition$1 { name: Identifier<"Foo">, node: ClassDeclaration$1, }, ], name: "Foo", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"Foo">, isRead: true, @@ -26,26 +26,26 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ ClassNameDefinition$2 { name: Identifier<"Foo">, node: ClassDeclaration$1, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ VariableDefinition$3 { name: Identifier<"a">, node: VariableDeclarator$2, }, ], name: "a", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"a">, init: true, @@ -69,11 +69,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, Reference$3, @@ -85,7 +85,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$4, @@ -94,13 +94,13 @@ ScopeManager { ClassScope$2 { block: ClassDeclaration$1, isStrict: true, - references: Array [], + references: [], set: Map { "Foo" => Variable$3, }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, diff --git a/packages/scope-manager/tests/fixtures/new-expression/type-parameters1.ts.shot b/packages/scope-manager/tests/fixtures/new-expression/type-parameters1.ts.shot index cc469c9d4c6a..8a3a242e5373 100644 --- a/packages/scope-manager/tests/fixtures/new-expression/type-parameters1.ts.shot +++ b/packages/scope-manager/tests/fixtures/new-expression/type-parameters1.ts.shot @@ -2,17 +2,17 @@ exports[`new-expression type-parameters1 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"T">, isRead: true, @@ -26,11 +26,11 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$2, isStrict: false, - references: Array [ + references: [ Reference$1 { identifier: Identifier<"Foo">, isRead: true, @@ -47,7 +47,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], diff --git a/packages/scope-manager/tests/fixtures/new-expression/type-parameters2.ts.shot b/packages/scope-manager/tests/fixtures/new-expression/type-parameters2.ts.shot index ac28701d4f45..a7a9b7d06fa5 100644 --- a/packages/scope-manager/tests/fixtures/new-expression/type-parameters2.ts.shot +++ b/packages/scope-manager/tests/fixtures/new-expression/type-parameters2.ts.shot @@ -2,17 +2,17 @@ exports[`new-expression type-parameters2 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"T">, node: VariableDeclarator$1, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, init: true, @@ -28,11 +28,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2 { identifier: Identifier<"Foo">, @@ -57,7 +57,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], diff --git a/packages/scope-manager/tests/fixtures/ts-enum/external-ref.ts.shot b/packages/scope-manager/tests/fixtures/ts-enum/external-ref.ts.shot index 5a4aec35a3ab..5702c7630c55 100644 --- a/packages/scope-manager/tests/fixtures/ts-enum/external-ref.ts.shot +++ b/packages/scope-manager/tests/fixtures/ts-enum/external-ref.ts.shot @@ -2,17 +2,17 @@ exports[`ts-enum external-ref 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TSEnumNameDefinition$1 { name: Identifier<"Foo">, node: TSEnumDeclaration$1, }, ], name: "Foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"Foo">, isRead: true, @@ -26,35 +26,35 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TSEnumNameDefinition$2 { name: Identifier<"Foo">, node: TSEnumDeclaration$1, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TSEnumMemberDefinition$3 { name: Identifier<"a">, node: TSEnumMember$2, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -63,7 +63,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -71,14 +71,14 @@ ScopeManager { TSEnumScope$2 { block: TSEnumDeclaration$1, isStrict: true, - references: Array [], + references: [], set: Map { "Foo" => Variable$3, "a" => Variable$4, }, type: "tsEnum", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, ], diff --git a/packages/scope-manager/tests/fixtures/ts-enum/literal-member-ref.ts.shot b/packages/scope-manager/tests/fixtures/ts-enum/literal-member-ref.ts.shot index 32f15eba2e5d..ced0d8421032 100644 --- a/packages/scope-manager/tests/fixtures/ts-enum/literal-member-ref.ts.shot +++ b/packages/scope-manager/tests/fixtures/ts-enum/literal-member-ref.ts.shot @@ -2,41 +2,41 @@ exports[`ts-enum literal-member-ref 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TSEnumNameDefinition$1 { name: Identifier<"Foo">, node: TSEnumDeclaration$1, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TSEnumNameDefinition$2 { name: Identifier<"Foo">, node: TSEnumDeclaration$1, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TSEnumMemberDefinition$3 { name: Literal$2, node: TSEnumMember$3, }, ], name: "a", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"a">, isRead: true, @@ -50,30 +50,30 @@ ScopeManager { isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ TSEnumMemberDefinition$4 { name: Identifier<"b">, node: TSEnumMember$4, }, ], name: "b", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "Foo" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -81,7 +81,7 @@ ScopeManager { TSEnumScope$2 { block: TSEnumDeclaration$1, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -91,7 +91,7 @@ ScopeManager { }, type: "tsEnum", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, Variable$5, diff --git a/packages/scope-manager/tests/fixtures/ts-enum/literal-member.ts.shot b/packages/scope-manager/tests/fixtures/ts-enum/literal-member.ts.shot index 3ed420ea4b77..1d47840172b3 100644 --- a/packages/scope-manager/tests/fixtures/ts-enum/literal-member.ts.shot +++ b/packages/scope-manager/tests/fixtures/ts-enum/literal-member.ts.shot @@ -2,57 +2,57 @@ exports[`ts-enum literal-member 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TSEnumNameDefinition$1 { name: Identifier<"Foo">, node: TSEnumDeclaration$1, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TSEnumNameDefinition$2 { name: Identifier<"Foo">, node: TSEnumDeclaration$1, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TSEnumMemberDefinition$3 { name: Literal$2, node: TSEnumMember$3, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "Foo" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -60,14 +60,14 @@ ScopeManager { TSEnumScope$2 { block: TSEnumDeclaration$1, isStrict: true, - references: Array [], + references: [], set: Map { "Foo" => Variable$3, "a" => Variable$4, }, type: "tsEnum", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, ], diff --git a/packages/scope-manager/tests/fixtures/ts-enum/member-ref.ts.shot b/packages/scope-manager/tests/fixtures/ts-enum/member-ref.ts.shot index 65057dbd1030..71c949c32dc8 100644 --- a/packages/scope-manager/tests/fixtures/ts-enum/member-ref.ts.shot +++ b/packages/scope-manager/tests/fixtures/ts-enum/member-ref.ts.shot @@ -2,41 +2,41 @@ exports[`ts-enum member-ref 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TSEnumNameDefinition$1 { name: Identifier<"Foo">, node: TSEnumDeclaration$1, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TSEnumNameDefinition$2 { name: Identifier<"Foo">, node: TSEnumDeclaration$1, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TSEnumMemberDefinition$3 { name: Identifier<"a">, node: TSEnumMember$2, }, ], name: "a", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"a">, isRead: true, @@ -50,30 +50,30 @@ ScopeManager { isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ TSEnumMemberDefinition$4 { name: Identifier<"b">, node: TSEnumMember$3, }, ], name: "b", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "Foo" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -81,7 +81,7 @@ ScopeManager { TSEnumScope$2 { block: TSEnumDeclaration$1, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -91,7 +91,7 @@ ScopeManager { }, type: "tsEnum", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, Variable$5, diff --git a/packages/scope-manager/tests/fixtures/ts-enum/scope.ts.shot b/packages/scope-manager/tests/fixtures/ts-enum/scope.ts.shot index d355ac577515..329ce74b931d 100644 --- a/packages/scope-manager/tests/fixtures/ts-enum/scope.ts.shot +++ b/packages/scope-manager/tests/fixtures/ts-enum/scope.ts.shot @@ -2,53 +2,53 @@ exports[`ts-enum scope 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TSEnumNameDefinition$1 { name: Identifier<"Foo">, node: TSEnumDeclaration$1, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TSEnumNameDefinition$2 { name: Identifier<"Foo">, node: TSEnumDeclaration$1, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TSEnumMemberDefinition$3 { name: Identifier<"a">, node: TSEnumMember$2, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ VariableDefinition$4 { name: Identifier<"unresolved">, node: VariableDeclarator$3, }, ], name: "unresolved", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"unresolved">, init: true, @@ -64,11 +64,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2 { identifier: Identifier<"a">, @@ -86,7 +86,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$5, @@ -95,14 +95,14 @@ ScopeManager { TSEnumScope$2 { block: TSEnumDeclaration$1, isStrict: true, - references: Array [], + references: [], set: Map { "Foo" => Variable$3, "a" => Variable$4, }, type: "tsEnum", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, ], diff --git a/packages/scope-manager/tests/fixtures/ts-enum/self-ref.ts.shot b/packages/scope-manager/tests/fixtures/ts-enum/self-ref.ts.shot index 3222c89d467c..541e5457731b 100644 --- a/packages/scope-manager/tests/fixtures/ts-enum/self-ref.ts.shot +++ b/packages/scope-manager/tests/fixtures/ts-enum/self-ref.ts.shot @@ -2,29 +2,29 @@ exports[`ts-enum self-ref 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TSEnumNameDefinition$1 { name: Identifier<"Foo">, node: TSEnumDeclaration$1, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TSEnumNameDefinition$2 { name: Identifier<"Foo">, node: TSEnumDeclaration$1, }, ], name: "Foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"Foo">, isRead: true, @@ -38,42 +38,42 @@ ScopeManager { isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TSEnumMemberDefinition$3 { name: Identifier<"a">, node: TSEnumMember$2, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ TSEnumMemberDefinition$4 { name: Identifier<"b">, node: TSEnumMember$3, }, ], name: "b", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "Foo" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -81,7 +81,7 @@ ScopeManager { TSEnumScope$2 { block: TSEnumDeclaration$1, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -91,7 +91,7 @@ ScopeManager { }, type: "tsEnum", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, Variable$5, diff --git a/packages/scope-manager/tests/fixtures/ts-module/declaration-merging/class-namespace.ts.shot b/packages/scope-manager/tests/fixtures/ts-module/declaration-merging/class-namespace.ts.shot index d99112e93f93..97bf5b48f693 100644 --- a/packages/scope-manager/tests/fixtures/ts-module/declaration-merging/class-namespace.ts.shot +++ b/packages/scope-manager/tests/fixtures/ts-module/declaration-merging/class-namespace.ts.shot @@ -2,10 +2,10 @@ exports[`ts-module declaration-merging class-namespace 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ClassNameDefinition$1 { name: Identifier<"Foo">, node: ClassDeclaration$1, @@ -16,7 +16,7 @@ ScopeManager { }, ], name: "Foo", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"Foo">, isRead: true, @@ -30,26 +30,26 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ ClassNameDefinition$2 { name: Identifier<"Foo">, node: ClassDeclaration$1, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ VariableDefinition$4 { name: Identifier<"x">, node: VariableDeclarator$3, }, ], name: "x", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"x">, init: true, @@ -65,14 +65,14 @@ ScopeManager { isTypeVariable: false, }, Variable$5 { - defs: Array [ + defs: [ VariableDefinition$5 { name: Identifier<"usage">, node: VariableDeclarator$5, }, ], name: "usage", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"usage">, init: true, @@ -88,11 +88,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$6, isStrict: false, - references: Array [ + references: [ Reference$2, Reference$3, ], @@ -103,7 +103,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$5, @@ -112,20 +112,20 @@ ScopeManager { ClassScope$2 { block: ClassDeclaration$1, isStrict: true, - references: Array [], + references: [], set: Map { "Foo" => Variable$3, }, type: "class", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, TSModuleScope$3 { block: TSModuleDeclaration$2, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -133,7 +133,7 @@ ScopeManager { }, type: "tsModule", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, ], }, diff --git a/packages/scope-manager/tests/fixtures/ts-module/declaration-merging/function-namespace.ts.shot b/packages/scope-manager/tests/fixtures/ts-module/declaration-merging/function-namespace.ts.shot index 67258fa0278e..24ffa22ce70b 100644 --- a/packages/scope-manager/tests/fixtures/ts-module/declaration-merging/function-namespace.ts.shot +++ b/packages/scope-manager/tests/fixtures/ts-module/declaration-merging/function-namespace.ts.shot @@ -2,10 +2,10 @@ exports[`ts-module declaration-merging function-namespace 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ FunctionNameDefinition$1 { name: Identifier<"Foo">, node: FunctionDeclaration$1, @@ -16,7 +16,7 @@ ScopeManager { }, ], name: "Foo", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"Foo">, isRead: true, @@ -30,21 +30,21 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ VariableDefinition$3 { name: Identifier<"x">, node: VariableDeclarator$3, }, ], name: "x", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"x">, init: true, @@ -60,14 +60,14 @@ ScopeManager { isTypeVariable: false, }, Variable$5 { - defs: Array [ + defs: [ VariableDefinition$4 { name: Identifier<"usage">, node: VariableDeclarator$5, }, ], name: "usage", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"usage">, init: true, @@ -83,11 +83,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$6, isStrict: false, - references: Array [ + references: [ Reference$2, Reference$3, ], @@ -98,7 +98,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$5, @@ -107,20 +107,20 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$1, isStrict: false, - references: Array [], + references: [], set: Map { "arguments" => Variable$3, }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, TSModuleScope$3 { block: TSModuleDeclaration$2, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -128,7 +128,7 @@ ScopeManager { }, type: "tsModule", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, ], }, diff --git a/packages/scope-manager/tests/fixtures/ts-module/declaration-merging/namespace-variable.ts.shot b/packages/scope-manager/tests/fixtures/ts-module/declaration-merging/namespace-variable.ts.shot index b01a1ed686a3..d30c1fa19097 100644 --- a/packages/scope-manager/tests/fixtures/ts-module/declaration-merging/namespace-variable.ts.shot +++ b/packages/scope-manager/tests/fixtures/ts-module/declaration-merging/namespace-variable.ts.shot @@ -2,10 +2,10 @@ exports[`ts-module declaration-merging namespace-variable 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TSModuleNameDefinition$1 { name: Identifier<"Foo">, node: TSModuleDeclaration$1, @@ -16,7 +16,7 @@ ScopeManager { }, ], name: "Foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"Foo">, init: true, @@ -40,14 +40,14 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$3 { name: Identifier<"usage">, node: VariableDeclarator$4, }, ], name: "usage", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"usage">, init: true, @@ -63,11 +63,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, Reference$3, @@ -79,7 +79,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -88,11 +88,11 @@ ScopeManager { TSModuleScope$2 { block: TSModuleDeclaration$1, isStrict: true, - references: Array [], + references: [], set: Map {}, type: "tsModule", upper: GlobalScope$1, - variables: Array [], + variables: [], }, ], } diff --git a/packages/scope-manager/tests/fixtures/ts-module/external-ref.ts.shot b/packages/scope-manager/tests/fixtures/ts-module/external-ref.ts.shot index 717be21b8e62..7568f8cc14f6 100644 --- a/packages/scope-manager/tests/fixtures/ts-module/external-ref.ts.shot +++ b/packages/scope-manager/tests/fixtures/ts-module/external-ref.ts.shot @@ -2,17 +2,17 @@ exports[`ts-module external-ref 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TSModuleNameDefinition$1 { name: Identifier<"Foo">, node: TSModuleDeclaration$1, }, ], name: "Foo", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"Foo">, isRead: true, @@ -26,14 +26,14 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"x">, node: VariableDeclarator$2, }, ], name: "x", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"x">, init: true, @@ -49,11 +49,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$2, ], set: Map { @@ -62,7 +62,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -70,7 +70,7 @@ ScopeManager { TSModuleScope$2 { block: TSModuleDeclaration$1, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -78,7 +78,7 @@ ScopeManager { }, type: "tsModule", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, diff --git a/packages/scope-manager/tests/fixtures/ts-module/global-augmentation.ts.shot b/packages/scope-manager/tests/fixtures/ts-module/global-augmentation.ts.shot index 4a93b6395457..e11277e0e831 100644 --- a/packages/scope-manager/tests/fixtures/ts-module/global-augmentation.ts.shot +++ b/packages/scope-manager/tests/fixtures/ts-module/global-augmentation.ts.shot @@ -2,40 +2,40 @@ exports[`ts-module global-augmentation 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$1, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$1, isStrict: true, - references: Array [], + references: [], set: Map {}, type: "module", upper: GlobalScope$1, - variables: Array [], + variables: [], }, TSModuleScope$3 { block: TSModuleDeclaration$2, isStrict: true, - references: Array [], + references: [], set: Map {}, type: "tsModule", upper: ModuleScope$2, - variables: Array [], + variables: [], }, ], } diff --git a/packages/scope-manager/tests/fixtures/ts-module/import.ts.shot b/packages/scope-manager/tests/fixtures/ts-module/import.ts.shot index f28381e40230..63896fbbe30c 100644 --- a/packages/scope-manager/tests/fixtures/ts-module/import.ts.shot +++ b/packages/scope-manager/tests/fixtures/ts-module/import.ts.shot @@ -2,54 +2,54 @@ exports[`ts-module import 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ ImportBindingDefinition$1 { name: Identifier<"bar">, node: ImportSpecifier$1, }, ], name: "bar", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$2, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, ], }, ModuleScope$2 { block: Program$2, isStrict: true, - references: Array [], + references: [], set: Map {}, type: "module", upper: GlobalScope$1, - variables: Array [], + variables: [], }, TSModuleScope$3 { block: TSModuleDeclaration$3, isStrict: true, - references: Array [], + references: [], set: Map { "bar" => Variable$2, }, type: "tsModule", upper: ModuleScope$2, - variables: Array [ + variables: [ Variable$2, ], }, diff --git a/packages/scope-manager/tests/fixtures/ts-module/name-shadowed-in-body.ts.shot b/packages/scope-manager/tests/fixtures/ts-module/name-shadowed-in-body.ts.shot index c26f00fc21b4..00bd08a0cf72 100644 --- a/packages/scope-manager/tests/fixtures/ts-module/name-shadowed-in-body.ts.shot +++ b/packages/scope-manager/tests/fixtures/ts-module/name-shadowed-in-body.ts.shot @@ -2,17 +2,17 @@ exports[`ts-module name-shadowed-in-body 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TSModuleNameDefinition$1 { name: Identifier<"Foo">, node: TSModuleDeclaration$1, }, ], name: "Foo", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"Foo">, isRead: true, @@ -26,14 +26,14 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"Foo">, node: VariableDeclarator$2, }, ], name: "Foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"Foo">, init: true, @@ -49,14 +49,14 @@ ScopeManager { isTypeVariable: false, }, Variable$4 { - defs: Array [ + defs: [ VariableDefinition$3 { name: Identifier<"usage">, node: VariableDeclarator$4, }, ], name: "usage", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"usage">, init: true, @@ -72,11 +72,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [ + references: [ Reference$2, Reference$3, ], @@ -87,7 +87,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$4, @@ -96,7 +96,7 @@ ScopeManager { TSModuleScope$2 { block: TSModuleDeclaration$1, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -104,7 +104,7 @@ ScopeManager { }, type: "tsModule", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, diff --git a/packages/scope-manager/tests/fixtures/ts-module/namespace.ts.shot b/packages/scope-manager/tests/fixtures/ts-module/namespace.ts.shot index c35b4130baca..f770a4177697 100644 --- a/packages/scope-manager/tests/fixtures/ts-module/namespace.ts.shot +++ b/packages/scope-manager/tests/fixtures/ts-module/namespace.ts.shot @@ -2,17 +2,17 @@ exports[`ts-module namespace 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TSModuleNameDefinition$1 { name: Identifier<"Foo">, node: TSModuleDeclaration$1, }, ], name: "Foo", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"Foo">, isRead: true, @@ -34,14 +34,14 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"x">, node: VariableDeclarator$2, }, ], name: "x", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"x">, init: true, @@ -57,14 +57,14 @@ ScopeManager { isTypeVariable: false, }, Variable$4 { - defs: Array [ + defs: [ VariableDefinition$3 { name: Identifier<"unresolved">, node: VariableDeclarator$4, }, ], name: "unresolved", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"unresolved">, init: true, @@ -80,11 +80,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [ + references: [ Reference$3, Reference$4 { identifier: Identifier<"x">, @@ -103,7 +103,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$4, @@ -112,7 +112,7 @@ ScopeManager { TSModuleScope$2 { block: TSModuleDeclaration$1, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -121,7 +121,7 @@ ScopeManager { }, type: "tsModule", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, diff --git a/packages/scope-manager/tests/fixtures/ts-module/scope.ts.shot b/packages/scope-manager/tests/fixtures/ts-module/scope.ts.shot index 087824c121e0..b6d9ef01ee17 100644 --- a/packages/scope-manager/tests/fixtures/ts-module/scope.ts.shot +++ b/packages/scope-manager/tests/fixtures/ts-module/scope.ts.shot @@ -2,29 +2,29 @@ exports[`ts-module scope 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TSModuleNameDefinition$1 { name: Identifier<"Foo">, node: TSModuleDeclaration$1, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"x">, node: VariableDeclarator$2, }, ], name: "x", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"x">, init: true, @@ -40,14 +40,14 @@ ScopeManager { isTypeVariable: false, }, Variable$4 { - defs: Array [ + defs: [ VariableDefinition$3 { name: Identifier<"unresolved">, node: VariableDeclarator$4, }, ], name: "unresolved", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"unresolved">, init: true, @@ -63,11 +63,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [ + references: [ Reference$2, Reference$3 { identifier: Identifier<"x">, @@ -85,7 +85,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$4, @@ -94,7 +94,7 @@ ScopeManager { TSModuleScope$2 { block: TSModuleDeclaration$1, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -102,7 +102,7 @@ ScopeManager { }, type: "tsModule", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, diff --git a/packages/scope-manager/tests/fixtures/ts-module/self-ref.ts.shot b/packages/scope-manager/tests/fixtures/ts-module/self-ref.ts.shot index a86baa108867..ed2862f0a588 100644 --- a/packages/scope-manager/tests/fixtures/ts-module/self-ref.ts.shot +++ b/packages/scope-manager/tests/fixtures/ts-module/self-ref.ts.shot @@ -2,17 +2,17 @@ exports[`ts-module self-ref 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TSModuleNameDefinition$1 { name: Identifier<"Foo">, node: TSModuleDeclaration$1, }, ], name: "Foo", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"Foo">, isRead: true, @@ -26,14 +26,14 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"x">, node: VariableDeclarator$2, }, ], name: "x", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"x">, init: true, @@ -49,18 +49,18 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "Foo" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -68,7 +68,7 @@ ScopeManager { TSModuleScope$2 { block: TSModuleDeclaration$1, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -77,7 +77,7 @@ ScopeManager { }, type: "tsModule", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, diff --git a/packages/scope-manager/tests/fixtures/type-annotation/parameter-array-destructure.ts.shot b/packages/scope-manager/tests/fixtures/type-annotation/parameter-array-destructure.ts.shot index 8d08f8a7b502..63262a55417c 100644 --- a/packages/scope-manager/tests/fixtures/type-annotation/parameter-array-destructure.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-annotation/parameter-array-destructure.ts.shot @@ -2,17 +2,17 @@ exports[`type-annotation parameter-array-destructure 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -26,42 +26,42 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ FunctionNameDefinition$2 { name: Identifier<"foo">, node: FunctionDeclaration$2, }, ], name: "foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$4 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"a">, node: FunctionDeclaration$2, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "T" => Variable$2, @@ -69,7 +69,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -78,7 +78,7 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$2, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -87,7 +87,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, Variable$5, ], diff --git a/packages/scope-manager/tests/fixtures/type-annotation/parameter-default.ts.shot b/packages/scope-manager/tests/fixtures/type-annotation/parameter-default.ts.shot index fde1483a8736..e4db8c93d15a 100644 --- a/packages/scope-manager/tests/fixtures/type-annotation/parameter-default.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-annotation/parameter-default.ts.shot @@ -2,17 +2,17 @@ exports[`type-annotation parameter-default 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"T">, isRead: true, @@ -26,33 +26,33 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ FunctionNameDefinition$2 { name: Identifier<"foo">, node: FunctionDeclaration$2, }, ], name: "foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$4 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"a">, node: FunctionDeclaration$2, }, ], name: "a", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"a">, init: true, @@ -68,11 +68,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "T" => Variable$2, @@ -80,7 +80,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -89,7 +89,7 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$2, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -99,7 +99,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, Variable$5, ], diff --git a/packages/scope-manager/tests/fixtures/type-annotation/parameter-object-destructure.ts.shot b/packages/scope-manager/tests/fixtures/type-annotation/parameter-object-destructure.ts.shot index 284dbb744757..bdda0b42ecc7 100644 --- a/packages/scope-manager/tests/fixtures/type-annotation/parameter-object-destructure.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-annotation/parameter-object-destructure.ts.shot @@ -2,17 +2,17 @@ exports[`type-annotation parameter-object-destructure 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -26,42 +26,42 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ FunctionNameDefinition$2 { name: Identifier<"foo">, node: FunctionDeclaration$2, }, ], name: "foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$4 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"a">, node: FunctionDeclaration$2, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "T" => Variable$2, @@ -69,7 +69,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -78,7 +78,7 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$2, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -87,7 +87,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, Variable$5, ], diff --git a/packages/scope-manager/tests/fixtures/type-annotation/parameter-rest.ts.shot b/packages/scope-manager/tests/fixtures/type-annotation/parameter-rest.ts.shot index 6dd0e5c52777..601f7040cd92 100644 --- a/packages/scope-manager/tests/fixtures/type-annotation/parameter-rest.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-annotation/parameter-rest.ts.shot @@ -2,17 +2,17 @@ exports[`type-annotation parameter-rest 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -26,42 +26,42 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ FunctionNameDefinition$2 { name: Identifier<"foo">, node: FunctionDeclaration$2, }, ], name: "foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$4 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"a">, node: FunctionDeclaration$2, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "T" => Variable$2, @@ -69,7 +69,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -78,7 +78,7 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$2, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -87,7 +87,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, Variable$5, ], diff --git a/packages/scope-manager/tests/fixtures/type-annotation/parameter.ts.shot b/packages/scope-manager/tests/fixtures/type-annotation/parameter.ts.shot index 251e0607bf3b..8729302dafe2 100644 --- a/packages/scope-manager/tests/fixtures/type-annotation/parameter.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-annotation/parameter.ts.shot @@ -2,17 +2,17 @@ exports[`type-annotation parameter 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -26,42 +26,42 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ FunctionNameDefinition$2 { name: Identifier<"foo">, node: FunctionDeclaration$2, }, ], name: "foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$4 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"a">, node: FunctionDeclaration$2, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "T" => Variable$2, @@ -69,7 +69,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -78,7 +78,7 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$2, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -87,7 +87,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, Variable$5, ], diff --git a/packages/scope-manager/tests/fixtures/type-annotation/variable-array-destructure.ts.shot b/packages/scope-manager/tests/fixtures/type-annotation/variable-array-destructure.ts.shot index 15eddcbd4966..648b6c2f249f 100644 --- a/packages/scope-manager/tests/fixtures/type-annotation/variable-array-destructure.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-annotation/variable-array-destructure.ts.shot @@ -2,17 +2,17 @@ exports[`type-annotation variable-array-destructure 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"T">, isRead: true, @@ -26,14 +26,14 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"x">, node: VariableDeclarator$2, }, ], name: "x", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"x">, init: true, @@ -49,11 +49,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -64,7 +64,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, diff --git a/packages/scope-manager/tests/fixtures/type-annotation/variable-const.ts.shot b/packages/scope-manager/tests/fixtures/type-annotation/variable-const.ts.shot index 81e215fc0dda..4ce7836f76d7 100644 --- a/packages/scope-manager/tests/fixtures/type-annotation/variable-const.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-annotation/variable-const.ts.shot @@ -2,17 +2,17 @@ exports[`type-annotation variable-const 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"T">, isRead: true, @@ -26,14 +26,14 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"x">, node: VariableDeclarator$2, }, ], name: "x", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"x">, init: true, @@ -49,11 +49,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -64,7 +64,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, diff --git a/packages/scope-manager/tests/fixtures/type-annotation/variable-let.ts.shot b/packages/scope-manager/tests/fixtures/type-annotation/variable-let.ts.shot index b6e96944d623..ff9eeb73edcb 100644 --- a/packages/scope-manager/tests/fixtures/type-annotation/variable-let.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-annotation/variable-let.ts.shot @@ -2,17 +2,17 @@ exports[`type-annotation variable-let 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -26,23 +26,23 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"x">, node: VariableDeclarator$2, }, ], name: "x", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -52,7 +52,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, diff --git a/packages/scope-manager/tests/fixtures/type-annotation/variable-object-destructure.ts.shot b/packages/scope-manager/tests/fixtures/type-annotation/variable-object-destructure.ts.shot index 2b9c3e2da32d..2292c4928bd9 100644 --- a/packages/scope-manager/tests/fixtures/type-annotation/variable-object-destructure.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-annotation/variable-object-destructure.ts.shot @@ -2,17 +2,17 @@ exports[`type-annotation variable-object-destructure 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"T">, isRead: true, @@ -26,14 +26,14 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"x">, node: VariableDeclarator$2, }, ], name: "x", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"x">, init: true, @@ -49,11 +49,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -64,7 +64,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, diff --git a/packages/scope-manager/tests/fixtures/type-annotation/variable-var.ts.shot b/packages/scope-manager/tests/fixtures/type-annotation/variable-var.ts.shot index cf0d553ea76d..67fedd4ec0cd 100644 --- a/packages/scope-manager/tests/fixtures/type-annotation/variable-var.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-annotation/variable-var.ts.shot @@ -2,17 +2,17 @@ exports[`type-annotation variable-var 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -26,23 +26,23 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"x">, node: VariableDeclarator$2, }, ], name: "x", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -52,7 +52,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, diff --git a/packages/scope-manager/tests/fixtures/type-assertion/angle-bracket.ts.shot b/packages/scope-manager/tests/fixtures/type-assertion/angle-bracket.ts.shot index 351a44ff3d8c..4ddd9b1e6f9d 100644 --- a/packages/scope-manager/tests/fixtures/type-assertion/angle-bracket.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-assertion/angle-bracket.ts.shot @@ -2,17 +2,17 @@ exports[`type-assertion angle-bracket 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"x">, node: VariableDeclarator$1, }, ], name: "x", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"x">, init: true, @@ -36,14 +36,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeAliasDeclaration$3, }, ], name: "T", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"T">, isRead: true, @@ -57,11 +57,11 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, Reference$3, @@ -73,7 +73,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, diff --git a/packages/scope-manager/tests/fixtures/type-assertion/as.ts.shot b/packages/scope-manager/tests/fixtures/type-assertion/as.ts.shot index f5ba1eeff1a1..2fda1cadf45b 100644 --- a/packages/scope-manager/tests/fixtures/type-assertion/as.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-assertion/as.ts.shot @@ -2,17 +2,17 @@ exports[`type-assertion as 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"x">, node: VariableDeclarator$1, }, ], name: "x", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"x">, init: true, @@ -36,14 +36,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeAliasDeclaration$3, }, ], name: "T", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"T">, isRead: true, @@ -57,11 +57,11 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, Reference$3, @@ -73,7 +73,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, diff --git a/packages/scope-manager/tests/fixtures/type-assertion/assignment/angle-bracket-assignment.ts.shot b/packages/scope-manager/tests/fixtures/type-assertion/assignment/angle-bracket-assignment.ts.shot index b5ee6ad87b09..8cd7ffcc40c6 100644 --- a/packages/scope-manager/tests/fixtures/type-assertion/assignment/angle-bracket-assignment.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-assertion/assignment/angle-bracket-assignment.ts.shot @@ -2,17 +2,17 @@ exports[`type-assertion assignment angle-bracket-assignment 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"x">, node: VariableDeclarator$1, }, ], name: "x", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"x">, init: true, @@ -38,11 +38,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -52,7 +52,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], diff --git a/packages/scope-manager/tests/fixtures/type-assertion/assignment/as-assignment.ts.shot b/packages/scope-manager/tests/fixtures/type-assertion/assignment/as-assignment.ts.shot index 3baa60792938..5113cf590627 100644 --- a/packages/scope-manager/tests/fixtures/type-assertion/assignment/as-assignment.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-assertion/assignment/as-assignment.ts.shot @@ -2,17 +2,17 @@ exports[`type-assertion assignment as-assignment 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"x">, node: VariableDeclarator$1, }, ], name: "x", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"x">, init: true, @@ -38,11 +38,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -52,7 +52,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], diff --git a/packages/scope-manager/tests/fixtures/type-assertion/assignment/non-null-assignment.ts.shot b/packages/scope-manager/tests/fixtures/type-assertion/assignment/non-null-assignment.ts.shot index 6aa2a23aecb7..46fe2b6a7d9f 100644 --- a/packages/scope-manager/tests/fixtures/type-assertion/assignment/non-null-assignment.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-assertion/assignment/non-null-assignment.ts.shot @@ -2,17 +2,17 @@ exports[`type-assertion assignment non-null-assignment 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"x">, node: VariableDeclarator$1, }, ], name: "x", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"x">, init: true, @@ -38,11 +38,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -52,7 +52,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], diff --git a/packages/scope-manager/tests/fixtures/type-assertion/satisfies.ts.shot b/packages/scope-manager/tests/fixtures/type-assertion/satisfies.ts.shot index 9d6dcc03ce1a..ab6a33591ac6 100644 --- a/packages/scope-manager/tests/fixtures/type-assertion/satisfies.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-assertion/satisfies.ts.shot @@ -2,17 +2,17 @@ exports[`type-assertion satisfies 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"x">, node: VariableDeclarator$1, }, ], name: "x", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"x">, init: true, @@ -36,14 +36,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeAliasDeclaration$3, }, ], name: "T", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"T">, isRead: true, @@ -57,11 +57,11 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, Reference$3, @@ -73,7 +73,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/conditional-nested.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/conditional-nested.ts.shot index 21cdfcca5f3f..b7aa0bdd0f8b 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/conditional-nested.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/conditional-nested.ts.shot @@ -2,29 +2,29 @@ exports[`type-declaration conditional-nested 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"Test">, node: TSTypeAliasDeclaration$1, }, ], name: "Test", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeParameter$2, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -46,14 +46,14 @@ ScopeManager { isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"U">, node: TSTypeParameter$3, }, ], name: "U", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"U">, isRead: true, @@ -67,14 +67,14 @@ ScopeManager { isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ TypeDefinition$4 { name: Identifier<"U">, node: TSTypeParameter$4, }, ], name: "U", - references: Array [ + references: [ Reference$6 { identifier: Identifier<"U">, isRead: true, @@ -88,18 +88,18 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "Test" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -107,20 +107,20 @@ ScopeManager { TypeScope$2 { block: TSTypeAliasDeclaration$1, isStrict: true, - references: Array [], + references: [], set: Map { "T" => Variable$3, }, type: "type", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, ConditionalTypeScope$3 { block: TSConditionalType$6, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2 { identifier: Identifier<"Array">, @@ -137,14 +137,14 @@ ScopeManager { }, type: "conditionalType", upper: TypeScope$2, - variables: Array [ + variables: [ Variable$4, ], }, ConditionalTypeScope$4 { block: TSConditionalType$7, isStrict: true, - references: Array [ + references: [ Reference$4, Reference$5 { identifier: Identifier<"Set">, @@ -161,7 +161,7 @@ ScopeManager { }, type: "conditionalType", upper: TypeScope$2, - variables: Array [ + variables: [ Variable$5, ], }, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/conditional1.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/conditional1.ts.shot index 4fb0e402b4b3..df10132098d2 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/conditional1.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/conditional1.ts.shot @@ -2,29 +2,29 @@ exports[`type-declaration conditional1 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"U">, node: TSTypeParameter$2, }, ], name: "U", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"U">, isRead: true, @@ -38,14 +38,14 @@ ScopeManager { isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"V">, node: TSTypeParameter$3, }, ], name: "V", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"V">, isRead: true, @@ -59,23 +59,23 @@ ScopeManager { isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ TypeDefinition$4 { name: Identifier<"Unresolved">, node: TSTypeAliasDeclaration$4, }, ], name: "Unresolved", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [ + references: [ Reference$3 { identifier: Identifier<"V">, isRead: true, @@ -92,7 +92,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$5, @@ -101,20 +101,20 @@ ScopeManager { TypeScope$2 { block: TSTypeAliasDeclaration$1, isStrict: true, - references: Array [], + references: [], set: Map { "U" => Variable$3, }, type: "type", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, ConditionalTypeScope$3 { block: TSConditionalType$6, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -123,7 +123,7 @@ ScopeManager { }, type: "conditionalType", upper: TypeScope$2, - variables: Array [ + variables: [ Variable$4, ], }, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/conditional2.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/conditional2.ts.shot index f3ef0767e262..90aef395be48 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/conditional2.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/conditional2.ts.shot @@ -2,29 +2,29 @@ exports[`type-declaration conditional2 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"U">, node: TSTypeParameter$2, }, ], name: "U", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"U">, isRead: true, @@ -38,23 +38,23 @@ ScopeManager { isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"Unresolved">, node: TSTypeAliasDeclaration$3, }, ], name: "Unresolved", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$2 { identifier: Identifier<"U">, isRead: true, @@ -71,7 +71,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$4, @@ -80,7 +80,7 @@ ScopeManager { ConditionalTypeScope$2 { block: TSConditionalType$5, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -88,7 +88,7 @@ ScopeManager { }, type: "conditionalType", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/conditional3.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/conditional3.ts.shot index 7271162cbacf..a624adb1d22c 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/conditional3.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/conditional3.ts.shot @@ -2,29 +2,29 @@ exports[`type-declaration conditional3 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"Test">, node: TSTypeAliasDeclaration$1, }, ], name: "Test", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"U">, node: TSTypeParameter$2, }, ], name: "U", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"U">, isRead: true, @@ -38,26 +38,26 @@ ScopeManager { isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"k">, node: TSFunctionType$3, }, ], name: "k", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$5 { - defs: Array [ + defs: [ TypeDefinition$4 { name: Identifier<"I">, node: TSTypeParameter$4, }, ], name: "I", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"I">, isRead: true, @@ -71,18 +71,18 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "Test" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -90,20 +90,20 @@ ScopeManager { TypeScope$2 { block: TSTypeAliasDeclaration$1, isStrict: true, - references: Array [], + references: [], set: Map { "U" => Variable$3, }, type: "type", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, ConditionalTypeScope$3 { block: TSConditionalType$6, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -112,20 +112,20 @@ ScopeManager { }, type: "conditionalType", upper: TypeScope$2, - variables: Array [ + variables: [ Variable$5, ], }, FunctionTypeScope$4 { block: TSFunctionType$3, isStrict: true, - references: Array [], + references: [], set: Map { "k" => Variable$4, }, type: "functionType", upper: ConditionalTypeScope$3, - variables: Array [ + variables: [ Variable$4, ], }, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/conditional4.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/conditional4.ts.shot index 2fe48b779984..3b2a1ebaa88a 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/conditional4.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/conditional4.ts.shot @@ -2,29 +2,29 @@ exports[`type-declaration conditional4 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"Test">, node: TSTypeAliasDeclaration$1, }, ], name: "Test", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"U">, node: TSTypeParameter$2, }, ], name: "U", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"U">, isRead: true, @@ -38,14 +38,14 @@ ScopeManager { isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"I">, node: TSTypeParameter$3, }, ], name: "I", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"I">, isRead: true, @@ -59,18 +59,18 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "Test" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -78,20 +78,20 @@ ScopeManager { TypeScope$2 { block: TSTypeAliasDeclaration$1, isStrict: true, - references: Array [], + references: [], set: Map { "U" => Variable$3, }, type: "type", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, ConditionalTypeScope$3 { block: TSConditionalType$5, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -100,7 +100,7 @@ ScopeManager { }, type: "conditionalType", upper: TypeScope$2, - variables: Array [ + variables: [ Variable$4, ], }, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/conditional5.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/conditional5.ts.shot index 92fada83fdf4..08b5da7e154b 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/conditional5.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/conditional5.ts.shot @@ -2,29 +2,29 @@ exports[`type-declaration conditional5 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"Test">, node: TSTypeAliasDeclaration$1, }, ], name: "Test", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"U">, node: TSTypeParameter$2, }, ], name: "U", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"U">, isRead: true, @@ -38,38 +38,38 @@ ScopeManager { isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"arg">, node: TSFunctionType$3, }, ], name: "arg", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$4 { name: Identifier<"arg2">, node: TSFunctionType$4, }, ], name: "arg2", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$6 { - defs: Array [ + defs: [ TypeDefinition$5 { name: Identifier<"I">, node: TSTypeParameter$5, }, ], name: "I", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"I">, isRead: true, @@ -83,18 +83,18 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$6, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "Test" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -102,20 +102,20 @@ ScopeManager { TypeScope$2 { block: TSTypeAliasDeclaration$1, isStrict: true, - references: Array [], + references: [], set: Map { "U" => Variable$3, }, type: "type", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, ConditionalTypeScope$3 { block: TSConditionalType$7, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -124,33 +124,33 @@ ScopeManager { }, type: "conditionalType", upper: TypeScope$2, - variables: Array [ + variables: [ Variable$6, ], }, FunctionTypeScope$4 { block: TSFunctionType$3, isStrict: true, - references: Array [], + references: [], set: Map { "arg" => Variable$4, }, type: "functionType", upper: ConditionalTypeScope$3, - variables: Array [ + variables: [ Variable$4, ], }, FunctionTypeScope$5 { block: TSFunctionType$4, isStrict: true, - references: Array [], + references: [], set: Map { "arg2" => Variable$5, }, type: "functionType", upper: FunctionTypeScope$4, - variables: Array [ + variables: [ Variable$5, ], }, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/dual-type-value.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/dual-type-value.ts.shot index 678e04514581..2d516f1b6fbb 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/dual-type-value.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/dual-type-value.ts.shot @@ -2,10 +2,10 @@ exports[`type-declaration dual-type-value 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"dual">, node: VariableDeclarator$1, @@ -16,7 +16,7 @@ ScopeManager { }, ], name: "dual", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"dual">, init: true, @@ -48,26 +48,26 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"reference1">, node: TSTypeAliasDeclaration$4, }, ], name: "reference1", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ VariableDefinition$4 { name: Identifier<"reference2">, node: VariableDeclarator$5, }, ], name: "reference2", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"reference2">, init: true, @@ -83,11 +83,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$6, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, Reference$3, @@ -101,7 +101,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/function/constructor-generics1.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/function/constructor-generics1.ts.shot index 03d2a8bfc335..4334a01a3ece 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/function/constructor-generics1.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/function/constructor-generics1.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration function constructor-generics1 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"T">, isRead: true, @@ -26,26 +26,26 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"A">, node: TSTypeAliasDeclaration$2, }, ], name: "A", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"U">, node: TSTypeParameter$3, }, ], name: "U", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"U">, isRead: true, @@ -59,23 +59,23 @@ ScopeManager { isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$4 { name: Identifier<"arg">, node: TSConstructorType$4, }, ], name: "arg", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "T" => Variable$2, @@ -83,7 +83,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -92,20 +92,20 @@ ScopeManager { TypeScope$2 { block: TSTypeAliasDeclaration$2, isStrict: true, - references: Array [], + references: [], set: Map { "U" => Variable$4, }, type: "type", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, ], }, FunctionTypeScope$3 { block: TSConstructorType$4, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -114,7 +114,7 @@ ScopeManager { }, type: "functionType", upper: TypeScope$2, - variables: Array [ + variables: [ Variable$5, ], }, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/function/constructor-generics2.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/function/constructor-generics2.ts.shot index 5eb9b9e80ebf..399a1ec94a4a 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/function/constructor-generics2.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/function/constructor-generics2.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration function constructor-generics2 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"T">, isRead: true, @@ -26,26 +26,26 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"A">, node: TSTypeAliasDeclaration$2, }, ], name: "A", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"U">, node: TSTypeParameter$3, }, ], name: "U", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"U">, isRead: true, @@ -59,23 +59,23 @@ ScopeManager { isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$4 { name: Identifier<"arg">, node: TSConstructorType$4, }, ], name: "arg", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "T" => Variable$2, @@ -83,7 +83,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -92,7 +92,7 @@ ScopeManager { FunctionTypeScope$2 { block: TSConstructorType$4, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -102,7 +102,7 @@ ScopeManager { }, type: "functionType", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, Variable$5, ], diff --git a/packages/scope-manager/tests/fixtures/type-declaration/function/constructor.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/function/constructor.ts.shot index 8fc5107456b4..16cd9ffbe8e4 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/function/constructor.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/function/constructor.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration function constructor 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -34,35 +34,35 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"A">, node: TSTypeAliasDeclaration$2, }, ], name: "A", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"arg">, node: TSConstructorType$3, }, ], name: "arg", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "T" => Variable$2, @@ -70,7 +70,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -79,7 +79,7 @@ ScopeManager { FunctionTypeScope$2 { block: TSConstructorType$3, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -88,7 +88,7 @@ ScopeManager { }, type: "functionType", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, ], }, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/function/function-generics1.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/function/function-generics1.ts.shot index 8a066428ca52..fc5c65c50f5f 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/function/function-generics1.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/function/function-generics1.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration function function-generics1 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"T">, isRead: true, @@ -26,26 +26,26 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"A">, node: TSTypeAliasDeclaration$2, }, ], name: "A", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"U">, node: TSTypeParameter$3, }, ], name: "U", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"U">, isRead: true, @@ -59,23 +59,23 @@ ScopeManager { isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$4 { name: Identifier<"arg">, node: TSFunctionType$4, }, ], name: "arg", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "T" => Variable$2, @@ -83,7 +83,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -92,20 +92,20 @@ ScopeManager { TypeScope$2 { block: TSTypeAliasDeclaration$2, isStrict: true, - references: Array [], + references: [], set: Map { "U" => Variable$4, }, type: "type", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, ], }, FunctionTypeScope$3 { block: TSFunctionType$4, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -114,7 +114,7 @@ ScopeManager { }, type: "functionType", upper: TypeScope$2, - variables: Array [ + variables: [ Variable$5, ], }, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/function/function-generics2.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/function/function-generics2.ts.shot index ebd6d82910d9..3ea537911f82 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/function/function-generics2.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/function/function-generics2.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration function function-generics2 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"T">, isRead: true, @@ -26,26 +26,26 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"A">, node: TSTypeAliasDeclaration$2, }, ], name: "A", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"U">, node: TSTypeParameter$3, }, ], name: "U", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"U">, isRead: true, @@ -59,23 +59,23 @@ ScopeManager { isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$4 { name: Identifier<"arg">, node: TSFunctionType$4, }, ], name: "arg", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "T" => Variable$2, @@ -83,7 +83,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -92,7 +92,7 @@ ScopeManager { FunctionTypeScope$2 { block: TSFunctionType$4, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -102,7 +102,7 @@ ScopeManager { }, type: "functionType", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, Variable$5, ], diff --git a/packages/scope-manager/tests/fixtures/type-declaration/function/function1.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/function/function1.ts.shot index f9041adfda6f..a8037422c505 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/function/function1.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/function/function1.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration function function1 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -34,35 +34,35 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"A">, node: TSTypeAliasDeclaration$2, }, ], name: "A", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"arg">, node: TSFunctionType$3, }, ], name: "arg", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "T" => Variable$2, @@ -70,7 +70,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -79,7 +79,7 @@ ScopeManager { FunctionTypeScope$2 { block: TSFunctionType$3, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -88,7 +88,7 @@ ScopeManager { }, type: "functionType", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, ], }, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/function/function2.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/function/function2.ts.shot index 1ce6aabe88f0..ca2bd02a72f2 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/function/function2.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/function/function2.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration function function2 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"arg">, node: VariableDeclarator$1, }, ], name: "arg", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"arg">, init: true, @@ -28,26 +28,26 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"A">, node: TSTypeAliasDeclaration$3, }, ], name: "A", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"arg">, node: TSFunctionType$4, }, ], name: "arg", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"arg">, isRead: true, @@ -61,11 +61,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -75,7 +75,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -84,7 +84,7 @@ ScopeManager { FunctionTypeScope$2 { block: TSFunctionType$4, isStrict: true, - references: Array [ + references: [ Reference$2, ], set: Map { @@ -92,7 +92,7 @@ ScopeManager { }, type: "functionType", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, ], }, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/function/params/array-pattern.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/function/params/array-pattern.ts.shot index d1e79e45137a..20eab71e39f4 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/function/params/array-pattern.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/function/params/array-pattern.ts.shot @@ -2,29 +2,29 @@ exports[`type-declaration function params array-pattern 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"Fn">, node: TSTypeAliasDeclaration$1, }, ], name: "Fn", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"A">, node: TSTypeParameter$2, }, ], name: "A", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"A">, isRead: true, @@ -38,30 +38,30 @@ ScopeManager { isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"a">, node: TSFunctionType$3, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "Fn" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -69,20 +69,20 @@ ScopeManager { TypeScope$2 { block: TSTypeAliasDeclaration$1, isStrict: true, - references: Array [], + references: [], set: Map { "A" => Variable$3, }, type: "type", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, FunctionTypeScope$3 { block: TSFunctionType$3, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -90,7 +90,7 @@ ScopeManager { }, type: "functionType", upper: TypeScope$2, - variables: Array [ + variables: [ Variable$4, ], }, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/function/params/object-pattern.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/function/params/object-pattern.ts.shot index c8a1c9dcd722..acdf2d261abf 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/function/params/object-pattern.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/function/params/object-pattern.ts.shot @@ -2,29 +2,29 @@ exports[`type-declaration function params object-pattern 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"Fn">, node: TSTypeAliasDeclaration$1, }, ], name: "Fn", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"A">, node: TSTypeParameter$2, }, ], name: "A", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"A">, isRead: true, @@ -38,30 +38,30 @@ ScopeManager { isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"a">, node: TSFunctionType$3, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "Fn" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -69,20 +69,20 @@ ScopeManager { TypeScope$2 { block: TSTypeAliasDeclaration$1, isStrict: true, - references: Array [], + references: [], set: Map { "A" => Variable$3, }, type: "type", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, FunctionTypeScope$3 { block: TSFunctionType$3, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -90,7 +90,7 @@ ScopeManager { }, type: "functionType", upper: TypeScope$2, - variables: Array [ + variables: [ Variable$4, ], }, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/function/params/rest-element.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/function/params/rest-element.ts.shot index 9ed0d680f25f..6e0e7cf6f59c 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/function/params/rest-element.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/function/params/rest-element.ts.shot @@ -2,29 +2,29 @@ exports[`type-declaration function params rest-element 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"Fn">, node: TSTypeAliasDeclaration$1, }, ], name: "Fn", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"A">, node: TSTypeParameter$2, }, ], name: "A", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"A">, isRead: true, @@ -38,30 +38,30 @@ ScopeManager { isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"a">, node: TSFunctionType$3, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "Fn" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -69,20 +69,20 @@ ScopeManager { TypeScope$2 { block: TSTypeAliasDeclaration$1, isStrict: true, - references: Array [], + references: [], set: Map { "A" => Variable$3, }, type: "type", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, FunctionTypeScope$3 { block: TSFunctionType$3, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -90,7 +90,7 @@ ScopeManager { }, type: "functionType", upper: TypeScope$2, - variables: Array [ + variables: [ Variable$4, ], }, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/import-type-with-qualifier.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/import-type-with-qualifier.ts.shot index 25e42ebd08b4..0c99d1cf85d8 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/import-type-with-qualifier.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/import-type-with-qualifier.ts.shot @@ -2,33 +2,33 @@ exports[`type-declaration import-type-with-qualifier 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$2, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "T" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], diff --git a/packages/scope-manager/tests/fixtures/type-declaration/import-type-with-type-params.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/import-type-with-type-params.ts.shot index 4a48b256ff93..3ba6307d3472 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/import-type-with-type-params.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/import-type-with-type-params.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration import-type-with-type-params 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"Param">, node: TSTypeAliasDeclaration$1, }, ], name: "Param", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"Param">, isRead: true, @@ -26,23 +26,23 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeAliasDeclaration$2, }, ], name: "T", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -52,7 +52,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/import-type.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/import-type.ts.shot index af47658faac4..0e3e64f8619a 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/import-type.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/import-type.ts.shot @@ -2,33 +2,33 @@ exports[`type-declaration import-type 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$2, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "T" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], diff --git a/packages/scope-manager/tests/fixtures/type-declaration/index-access1.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/index-access1.ts.shot index 96ab00dc7734..8dbadad1bfa6 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/index-access1.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/index-access1.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration index-access1 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -26,23 +26,23 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"A">, node: TSTypeAliasDeclaration$2, }, ], name: "A", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -52,7 +52,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/index-access2.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/index-access2.ts.shot index a36547fde3fe..5617ffcbffeb 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/index-access2.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/index-access2.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration index-access2 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"T">, isRead: true, @@ -26,14 +26,14 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"K">, node: TSTypeAliasDeclaration$2, }, ], name: "K", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"K">, isRead: true, @@ -47,23 +47,23 @@ ScopeManager { isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"A">, node: TSTypeAliasDeclaration$3, }, ], name: "A", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -75,7 +75,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/index-access3.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/index-access3.ts.shot index 244ccb849244..bec2c0e1bcce 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/index-access3.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/index-access3.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration index-access3 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"T">, isRead: true, @@ -26,14 +26,14 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ VariableDefinition$2 { name: Identifier<"k">, node: VariableDeclarator$2, }, ], name: "k", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"k">, init: true, @@ -57,23 +57,23 @@ ScopeManager { isTypeVariable: false, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"A">, node: TSTypeAliasDeclaration$4, }, ], name: "A", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, Reference$3, @@ -86,7 +86,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/infer-type-constraint.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/infer-type-constraint.ts.shot index d26d25584a20..d672b487b3cf 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/infer-type-constraint.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/infer-type-constraint.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration infer-type-constraint 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"X">, node: TSTypeAliasDeclaration$1, }, ], name: "X", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"X">, isRead: true, @@ -26,26 +26,26 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"Id">, node: TSTypeAliasDeclaration$2, }, ], name: "Id", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"T">, node: TSTypeParameter$3, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -59,14 +59,14 @@ ScopeManager { isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ TypeDefinition$4 { name: Identifier<"Id">, node: TSTypeParameter$4, }, ], name: "Id", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"Id">, isRead: true, @@ -80,11 +80,11 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "X" => Variable$2, @@ -92,7 +92,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -101,20 +101,20 @@ ScopeManager { TypeScope$2 { block: TSTypeAliasDeclaration$2, isStrict: true, - references: Array [], + references: [], set: Map { "T" => Variable$4, }, type: "type", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, ], }, ConditionalTypeScope$3 { block: TSConditionalType$6, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, Reference$3, @@ -124,7 +124,7 @@ ScopeManager { }, type: "conditionalType", upper: TypeScope$2, - variables: Array [ + variables: [ Variable$5, ], }, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/interface-heritage1.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/interface-heritage1.ts.shot index 7d232a948739..e2f4df59e13f 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/interface-heritage1.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/interface-heritage1.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration interface-heritage1 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"Parent">, node: TSInterfaceDeclaration$1, }, ], name: "Parent", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"Parent">, isRead: true, @@ -26,23 +26,23 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"Foo">, node: TSInterfaceDeclaration$2, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -52,7 +52,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/interface-heritage2.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/interface-heritage2.ts.shot index e5e580cf99d9..dc03c2ba3ed9 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/interface-heritage2.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/interface-heritage2.ts.shot @@ -2,29 +2,29 @@ exports[`type-declaration interface-heritage2 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"unreferenced">, node: TSTypeAliasDeclaration$1, }, ], name: "unreferenced", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TSModuleNameDefinition$2 { name: Identifier<"Member">, node: TSModuleDeclaration$2, }, ], name: "Member", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"Member">, isRead: true, @@ -38,35 +38,35 @@ ScopeManager { isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"unreferenced">, node: TSTypeAliasDeclaration$3, }, ], name: "unreferenced", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ TypeDefinition$4 { name: Identifier<"Foo">, node: TSInterfaceDeclaration$4, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -77,7 +77,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -87,13 +87,13 @@ ScopeManager { TSModuleScope$2 { block: TSModuleDeclaration$2, isStrict: true, - references: Array [], + references: [], set: Map { "unreferenced" => Variable$4, }, type: "tsModule", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, ], }, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/interface1.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/interface1.ts.shot index 2ed17026820c..eadfe45c9971 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/interface1.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/interface1.ts.shot @@ -2,33 +2,33 @@ exports[`type-declaration interface1 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"A">, node: TSInterfaceDeclaration$1, }, ], name: "A", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$2, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "A" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], diff --git a/packages/scope-manager/tests/fixtures/type-declaration/interface2.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/interface2.ts.shot index 2348f347e79a..3e6de84fcc75 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/interface2.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/interface2.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration interface2 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"A">, node: TSInterfaceDeclaration$1, }, ], name: "A", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"A">, isRead: true, @@ -26,23 +26,23 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"B">, node: TSTypeAliasDeclaration$2, }, ], name: "B", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -52,7 +52,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/literal-type1.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/literal-type1.ts.shot index 341b30deea37..d2cfb7229749 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/literal-type1.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/literal-type1.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration literal-type1 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"Color">, node: TSTypeAliasDeclaration$1, }, ], name: "Color", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"Color">, isRead: true, @@ -26,14 +26,14 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"Quantity">, node: TSTypeAliasDeclaration$2, }, ], name: "Quantity", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"Quantity">, isRead: true, @@ -47,23 +47,23 @@ ScopeManager { isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"SeussFish">, node: TSTypeAliasDeclaration$3, }, ], name: "SeussFish", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -75,7 +75,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/literal-type2.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/literal-type2.ts.shot index cb70b4ff434b..0f6c95b48b9a 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/literal-type2.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/literal-type2.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration literal-type2 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"EnthusiasticGreeting">, node: TSTypeAliasDeclaration$1, }, ], name: "EnthusiasticGreeting", - references: Array [ + references: [ Reference$9 { identifier: Identifier<"EnthusiasticGreeting">, isRead: true, @@ -26,14 +26,14 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeParameter$2, }, ], name: "T", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"T">, isRead: true, @@ -71,23 +71,23 @@ ScopeManager { isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"HELLO">, node: TSTypeAliasDeclaration$3, }, ], name: "HELLO", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$9, ], set: Map { @@ -97,7 +97,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$4, @@ -106,7 +106,7 @@ ScopeManager { TypeScope$2 { block: TSTypeAliasDeclaration$1, isStrict: true, - references: Array [ + references: [ Reference$1 { identifier: Identifier<"Uppercase">, isRead: true, @@ -149,7 +149,7 @@ ScopeManager { }, type: "type", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/literal-type3.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/literal-type3.ts.shot index be4f964133e1..4373d8ba55ef 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/literal-type3.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/literal-type3.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration literal-type3 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"VerticalAlignment">, node: TSTypeAliasDeclaration$1, }, ], name: "VerticalAlignment", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"VerticalAlignment">, isRead: true, @@ -26,14 +26,14 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"HorizontalAlignment">, node: TSTypeAliasDeclaration$2, }, ], name: "HorizontalAlignment", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"HorizontalAlignment">, isRead: true, @@ -47,42 +47,42 @@ ScopeManager { isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ FunctionNameDefinition$3 { name: Identifier<"setAlignment">, node: TSDeclareFunction$3, }, ], name: "setAlignment", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$5 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$6 { - defs: Array [ + defs: [ ParameterDefinition$4 { name: Identifier<"value">, node: TSDeclareFunction$3, }, ], name: "value", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "VerticalAlignment" => Variable$2, @@ -91,7 +91,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -101,7 +101,7 @@ ScopeManager { FunctionScope$2 { block: TSDeclareFunction$3, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -111,7 +111,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$5, Variable$6, ], diff --git a/packages/scope-manager/tests/fixtures/type-declaration/mapped-named.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/mapped-named.ts.shot index b0b19e3e1c19..c5e5927384fc 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/mapped-named.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/mapped-named.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration mapped-named 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$4 { identifier: Identifier<"T">, isRead: true, @@ -26,26 +26,26 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"A">, node: TSTypeAliasDeclaration$2, }, ], name: "A", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"k">, node: TSTypeParameter$3, }, ], name: "k", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"k">, isRead: true, @@ -67,11 +67,11 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1 { identifier: Identifier<"Record">, isRead: true, @@ -88,7 +88,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -97,7 +97,7 @@ ScopeManager { MappedTypeScope$2 { block: TSMappedType$5, isStrict: true, - references: Array [ + references: [ Reference$2, Reference$3, Reference$4, @@ -107,7 +107,7 @@ ScopeManager { }, type: "mappedType", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, ], }, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/mapped.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/mapped.ts.shot index 793a715be50a..6790ca3dd92c 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/mapped.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/mapped.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration mapped 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"T">, isRead: true, @@ -26,26 +26,26 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"A">, node: TSTypeAliasDeclaration$2, }, ], name: "A", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"k">, node: TSTypeParameter$3, }, ], name: "k", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"k">, isRead: true, @@ -59,11 +59,11 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1 { identifier: Identifier<"Record">, isRead: true, @@ -80,7 +80,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -89,7 +89,7 @@ ScopeManager { MappedTypeScope$2 { block: TSMappedType$5, isStrict: true, - references: Array [ + references: [ Reference$2, Reference$3, ], @@ -98,7 +98,7 @@ ScopeManager { }, type: "mappedType", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, ], }, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/qualified-name.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/qualified-name.ts.shot index 45bbe7d5ba42..0855e4812da0 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/qualified-name.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/qualified-name.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration qualified-name 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -26,23 +26,23 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"A">, node: TSTypeAliasDeclaration$2, }, ], name: "A", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -52,7 +52,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/signatures/call-generics.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/signatures/call-generics.ts.shot index f34706c71a2f..96ec73574611 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/signatures/call-generics.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/signatures/call-generics.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration signatures call-generics 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"T">, isRead: true, @@ -26,26 +26,26 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"A">, node: TSTypeAliasDeclaration$2, }, ], name: "A", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"U">, node: TSTypeParameter$3, }, ], name: "U", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"U">, isRead: true, @@ -59,23 +59,23 @@ ScopeManager { isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$4 { name: Identifier<"arg">, node: TSCallSignatureDeclaration$4, }, ], name: "arg", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "T" => Variable$2, @@ -83,7 +83,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -92,7 +92,7 @@ ScopeManager { FunctionTypeScope$2 { block: TSCallSignatureDeclaration$4, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -102,7 +102,7 @@ ScopeManager { }, type: "functionType", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, Variable$5, ], diff --git a/packages/scope-manager/tests/fixtures/type-declaration/signatures/call.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/signatures/call.ts.shot index 1d3fd59a25f9..be3f7b0b6907 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/signatures/call.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/signatures/call.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration signatures call 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -34,35 +34,35 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"A">, node: TSTypeAliasDeclaration$2, }, ], name: "A", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"arg">, node: TSCallSignatureDeclaration$3, }, ], name: "arg", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "T" => Variable$2, @@ -70,7 +70,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -79,7 +79,7 @@ ScopeManager { FunctionTypeScope$2 { block: TSCallSignatureDeclaration$3, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -88,7 +88,7 @@ ScopeManager { }, type: "functionType", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, ], }, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/signatures/construct-generics.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/signatures/construct-generics.ts.shot index 1e970692dd86..78638ed606bc 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/signatures/construct-generics.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/signatures/construct-generics.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration signatures construct-generics 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"T">, isRead: true, @@ -26,26 +26,26 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"A">, node: TSTypeAliasDeclaration$2, }, ], name: "A", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"U">, node: TSTypeParameter$3, }, ], name: "U", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"U">, isRead: true, @@ -59,23 +59,23 @@ ScopeManager { isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$4 { name: Identifier<"arg">, node: TSConstructSignatureDeclaration$4, }, ], name: "arg", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "T" => Variable$2, @@ -83,7 +83,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -92,7 +92,7 @@ ScopeManager { FunctionTypeScope$2 { block: TSConstructSignatureDeclaration$4, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -102,7 +102,7 @@ ScopeManager { }, type: "functionType", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, Variable$5, ], diff --git a/packages/scope-manager/tests/fixtures/type-declaration/signatures/construct.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/signatures/construct.ts.shot index 6f3b14b78acb..0d69334505c5 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/signatures/construct.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/signatures/construct.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration signatures construct 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -34,35 +34,35 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"A">, node: TSTypeAliasDeclaration$2, }, ], name: "A", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"arg">, node: TSConstructSignatureDeclaration$3, }, ], name: "arg", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "T" => Variable$2, @@ -70,7 +70,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -79,7 +79,7 @@ ScopeManager { FunctionTypeScope$2 { block: TSConstructSignatureDeclaration$3, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -88,7 +88,7 @@ ScopeManager { }, type: "functionType", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, ], }, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/signatures/index-sig.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/signatures/index-sig.ts.shot index bef377e02c54..ff80fb6b99fd 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/signatures/index-sig.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/signatures/index-sig.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration signatures index-sig 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -26,23 +26,23 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"A">, node: TSTypeAliasDeclaration$2, }, ], name: "A", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -52,7 +52,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/signatures/method-computed-name.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/signatures/method-computed-name.ts.shot index 08df5624f01d..aeee5e2de4c4 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/signatures/method-computed-name.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/signatures/method-computed-name.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration signatures method-computed-name 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"x">, node: VariableDeclarator$1, }, ], name: "x", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"x">, init: true, @@ -36,14 +36,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeAliasDeclaration$3, }, ], name: "T", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"T">, isRead: true, @@ -65,35 +65,35 @@ ScopeManager { isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"A">, node: TSTypeAliasDeclaration$4, }, ], name: "A", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$4 { name: Identifier<"arg">, node: TSMethodSignature$5, }, ], name: "arg", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$6, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -105,7 +105,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -115,7 +115,7 @@ ScopeManager { FunctionTypeScope$2 { block: TSMethodSignature$5, isStrict: true, - references: Array [ + references: [ Reference$3, Reference$4, ], @@ -124,7 +124,7 @@ ScopeManager { }, type: "functionType", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$5, ], }, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/signatures/method-computed-name2.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/signatures/method-computed-name2.ts.shot index 04dc3906220e..c3664e85979e 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/signatures/method-computed-name2.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/signatures/method-computed-name2.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration signatures method-computed-name2 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TSEnumNameDefinition$1 { name: Identifier<"Foo">, node: TSEnumDeclaration$1, }, ], name: "Foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"Foo">, isRead: true, @@ -26,47 +26,47 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TSEnumNameDefinition$2 { name: Identifier<"Foo">, node: TSEnumDeclaration$1, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TSEnumMemberDefinition$3 { name: Identifier<"a">, node: TSEnumMember$2, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ TypeDefinition$4 { name: Identifier<"A">, node: TSTypeAliasDeclaration$3, }, ], name: "A", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -76,7 +76,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$5, @@ -85,14 +85,14 @@ ScopeManager { TSEnumScope$2 { block: TSEnumDeclaration$1, isStrict: true, - references: Array [], + references: [], set: Map { "Foo" => Variable$3, "a" => Variable$4, }, type: "tsEnum", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, ], @@ -100,11 +100,11 @@ ScopeManager { FunctionTypeScope$3 { block: TSMethodSignature$5, isStrict: true, - references: Array [], + references: [], set: Map {}, type: "functionType", upper: GlobalScope$1, - variables: Array [], + variables: [], }, ], } diff --git a/packages/scope-manager/tests/fixtures/type-declaration/signatures/method-generics.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/signatures/method-generics.ts.shot index 41dc907f616a..a44a42784bbf 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/signatures/method-generics.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/signatures/method-generics.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration signatures method-generics 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -26,26 +26,26 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"A">, node: TSTypeAliasDeclaration$2, }, ], name: "A", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"U">, node: TSTypeParameter$3, }, ], name: "U", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"U">, isRead: true, @@ -59,23 +59,23 @@ ScopeManager { isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$4 { name: Identifier<"arg">, node: TSMethodSignature$4, }, ], name: "arg", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "T" => Variable$2, @@ -83,7 +83,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -92,7 +92,7 @@ ScopeManager { FunctionTypeScope$2 { block: TSMethodSignature$4, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -102,7 +102,7 @@ ScopeManager { }, type: "functionType", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, Variable$5, ], diff --git a/packages/scope-manager/tests/fixtures/type-declaration/signatures/method.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/signatures/method.ts.shot index ee4e5972e2dd..bf75b61acfce 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/signatures/method.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/signatures/method.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration signatures method 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -34,35 +34,35 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"A">, node: TSTypeAliasDeclaration$2, }, ], name: "A", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"arg">, node: TSMethodSignature$3, }, ], name: "arg", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "T" => Variable$2, @@ -70,7 +70,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -79,7 +79,7 @@ ScopeManager { FunctionTypeScope$2 { block: TSMethodSignature$3, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -88,7 +88,7 @@ ScopeManager { }, type: "functionType", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, ], }, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/signatures/property-computed-name.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/signatures/property-computed-name.ts.shot index 3adccad9c5a3..1b92c06221a5 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/signatures/property-computed-name.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/signatures/property-computed-name.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration signatures property-computed-name 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"x">, node: VariableDeclarator$1, }, ], name: "x", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"x">, init: true, @@ -36,14 +36,14 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeAliasDeclaration$3, }, ], name: "T", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"T">, isRead: true, @@ -57,23 +57,23 @@ ScopeManager { isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"A">, node: TSTypeAliasDeclaration$4, }, ], name: "A", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, Reference$3, @@ -86,7 +86,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/signatures/property-computed-name2.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/signatures/property-computed-name2.ts.shot index a723f32c995d..3bdcd2395537 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/signatures/property-computed-name2.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/signatures/property-computed-name2.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration signatures property-computed-name2 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TSEnumNameDefinition$1 { name: Identifier<"Foo">, node: TSEnumDeclaration$1, }, ], name: "Foo", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"Foo">, isRead: true, @@ -26,47 +26,47 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TSEnumNameDefinition$2 { name: Identifier<"Foo">, node: TSEnumDeclaration$1, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TSEnumMemberDefinition$3 { name: Identifier<"a">, node: TSEnumMember$2, }, ], name: "a", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ TypeDefinition$4 { name: Identifier<"A">, node: TSTypeAliasDeclaration$3, }, ], name: "A", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -76,7 +76,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$5, @@ -85,14 +85,14 @@ ScopeManager { TSEnumScope$2 { block: TSEnumDeclaration$1, isStrict: true, - references: Array [], + references: [], set: Map { "Foo" => Variable$3, "a" => Variable$4, }, type: "tsEnum", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, ], diff --git a/packages/scope-manager/tests/fixtures/type-declaration/signatures/property.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/signatures/property.ts.shot index 4526e0803064..829833d91f34 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/signatures/property.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/signatures/property.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration signatures property 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -26,23 +26,23 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"A">, node: TSTypeAliasDeclaration$2, }, ], name: "A", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -52,7 +52,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/tuple-labelled-rest.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/tuple-labelled-rest.ts.shot index ee18e019f8bd..abce7f1cdba0 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/tuple-labelled-rest.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/tuple-labelled-rest.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration tuple-labelled-rest 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -26,23 +26,23 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"A">, node: TSTypeAliasDeclaration$2, }, ], name: "A", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -52,7 +52,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/tuple-labelled.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/tuple-labelled.ts.shot index c6217bd67802..102897b0396c 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/tuple-labelled.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/tuple-labelled.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration tuple-labelled 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T1">, node: TSTypeAliasDeclaration$1, }, ], name: "T1", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T1">, isRead: true, @@ -26,14 +26,14 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T2">, node: TSTypeAliasDeclaration$2, }, ], name: "T2", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"T2">, isRead: true, @@ -47,23 +47,23 @@ ScopeManager { isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"A">, node: TSTypeAliasDeclaration$3, }, ], name: "A", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -75,7 +75,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/tuple-rest.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/tuple-rest.ts.shot index 51e162440a49..c3732169aa24 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/tuple-rest.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/tuple-rest.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration tuple-rest 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -26,23 +26,23 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"A">, node: TSTypeAliasDeclaration$2, }, ], name: "A", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -52,7 +52,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/tuple.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/tuple.ts.shot index d47d7eef009c..2d26e0b471cb 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/tuple.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/tuple.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration tuple 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -26,23 +26,23 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"A">, node: TSTypeAliasDeclaration$2, }, ], name: "A", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -52,7 +52,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/interface/body-reference.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/interface/body-reference.ts.shot index b3c29ba227d8..356315c6a245 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/interface/body-reference.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/interface/body-reference.ts.shot @@ -2,29 +2,29 @@ exports[`type-declaration type-parameters interface body-reference 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"Foo">, node: TSInterfaceDeclaration$1, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeParameter$2, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -38,18 +38,18 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "Foo" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -57,7 +57,7 @@ ScopeManager { TypeScope$2 { block: TSInterfaceDeclaration$1, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -65,7 +65,7 @@ ScopeManager { }, type: "type", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/interface/extends-reference.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/interface/extends-reference.ts.shot index 0ae78c63d470..6f43d86383b2 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/interface/extends-reference.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/interface/extends-reference.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration type-parameters interface extends-reference 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"A">, node: TSInterfaceDeclaration$1, }, ], name: "A", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"A">, isRead: true, @@ -26,38 +26,38 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeParameter$2, }, ], name: "T", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"Foo">, node: TSInterfaceDeclaration$3, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ TypeDefinition$4 { name: Identifier<"T">, node: TSTypeParameter$4, }, ], name: "T", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"T">, isRead: true, @@ -71,11 +71,11 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "A" => Variable$2, @@ -83,7 +83,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$4, @@ -92,20 +92,20 @@ ScopeManager { TypeScope$2 { block: TSInterfaceDeclaration$1, isStrict: true, - references: Array [], + references: [], set: Map { "T" => Variable$3, }, type: "type", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, TypeScope$3 { block: TSInterfaceDeclaration$3, isStrict: true, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -114,7 +114,7 @@ ScopeManager { }, type: "type", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$5, ], }, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/interface/type-param-reference.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/interface/type-param-reference.ts.shot index 0556d9dfca19..b1a40eba7066 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/interface/type-param-reference.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/interface/type-param-reference.ts.shot @@ -2,29 +2,29 @@ exports[`type-declaration type-parameters interface type-param-reference 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"Foo">, node: TSInterfaceDeclaration$1, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeParameter$2, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -38,30 +38,30 @@ ScopeManager { isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"U">, node: TSTypeParameter$3, }, ], name: "U", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "Foo" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -69,7 +69,7 @@ ScopeManager { TypeScope$2 { block: TSInterfaceDeclaration$1, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -78,7 +78,7 @@ ScopeManager { }, type: "type", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, ], diff --git a/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/interface/type-parameter-declaration-extends.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/interface/type-parameter-declaration-extends.ts.shot index f69b99b5f1fa..36b1f89ffaee 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/interface/type-parameter-declaration-extends.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/interface/type-parameter-declaration-extends.ts.shot @@ -2,29 +2,29 @@ exports[`type-declaration type-parameters interface type-parameter-declaration-extends 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"Foo">, node: TSInterfaceDeclaration$1, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeParameter$2, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -38,30 +38,30 @@ ScopeManager { isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"U">, node: TSTypeParameter$3, }, ], name: "U", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "Foo" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -69,7 +69,7 @@ ScopeManager { TypeScope$2 { block: TSInterfaceDeclaration$1, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -78,7 +78,7 @@ ScopeManager { }, type: "type", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, ], diff --git a/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/interface/type-parameter-declaration.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/interface/type-parameter-declaration.ts.shot index e0d9a8d70736..da9d1a792bad 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/interface/type-parameter-declaration.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/interface/type-parameter-declaration.ts.shot @@ -2,50 +2,50 @@ exports[`type-declaration type-parameters interface type-parameter-declaration 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"Foo">, node: TSInterfaceDeclaration$1, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeParameter$2, }, ], name: "T", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"Unresolved">, node: TSTypeAliasDeclaration$3, }, ], name: "Unresolved", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -62,7 +62,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$4, @@ -71,13 +71,13 @@ ScopeManager { TypeScope$2 { block: TSInterfaceDeclaration$1, isStrict: true, - references: Array [], + references: [], set: Map { "T" => Variable$3, }, type: "type", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/tagged-template.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/tagged-template.ts.shot index 51d496f17c39..3b61814020f3 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/tagged-template.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/tagged-template.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration type-parameters tagged-template 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"StyledPaymentProps">, node: TSTypeAliasDeclaration$1, }, ], name: "StyledPaymentProps", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"StyledPaymentProps">, isRead: true, @@ -26,14 +26,14 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ FunctionNameDefinition$2 { name: Identifier<"div">, node: FunctionDeclaration$2, }, ], name: "div", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"div">, isRead: true, @@ -47,45 +47,45 @@ ScopeManager { isTypeVariable: false, }, Variable$4 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$5 { - defs: Array [ + defs: [ ParameterDefinition$3 { name: Identifier<"arg">, node: FunctionDeclaration$2, }, ], name: "arg", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: false, }, Variable$6 { - defs: Array [ + defs: [ TypeDefinition$4 { name: Identifier<"T">, node: TSTypeParameter$3, }, ], name: "T", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$7 { - defs: Array [ + defs: [ VariableDefinition$5 { name: Identifier<"StyledPayment">, node: VariableDeclarator$4, }, ], name: "StyledPayment", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"StyledPayment">, init: true, @@ -101,11 +101,11 @@ ScopeManager { isTypeVariable: false, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$6, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, Reference$3, @@ -118,7 +118,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, @@ -128,7 +128,7 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$2, isStrict: false, - references: Array [], + references: [], set: Map { "arguments" => Variable$4, "arg" => Variable$5, @@ -136,7 +136,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$4, Variable$5, Variable$6, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/type-decl/body-reference.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/type-decl/body-reference.ts.shot index 708f3b64ab7c..e818da88a46d 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/type-decl/body-reference.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/type-decl/body-reference.ts.shot @@ -2,29 +2,29 @@ exports[`type-declaration type-parameters type-decl body-reference 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"Foo">, node: TSTypeAliasDeclaration$1, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeParameter$2, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -38,18 +38,18 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "Foo" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -57,7 +57,7 @@ ScopeManager { TypeScope$2 { block: TSTypeAliasDeclaration$1, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -65,7 +65,7 @@ ScopeManager { }, type: "type", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/type-decl/type-param-reference.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/type-decl/type-param-reference.ts.shot index e0c4773c4739..00b76086d50d 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/type-decl/type-param-reference.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/type-decl/type-param-reference.ts.shot @@ -2,29 +2,29 @@ exports[`type-declaration type-parameters type-decl type-param-reference 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"Foo">, node: TSTypeAliasDeclaration$1, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeParameter$2, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -38,30 +38,30 @@ ScopeManager { isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"U">, node: TSTypeParameter$3, }, ], name: "U", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "Foo" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -69,7 +69,7 @@ ScopeManager { TypeScope$2 { block: TSTypeAliasDeclaration$1, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -78,7 +78,7 @@ ScopeManager { }, type: "type", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, ], diff --git a/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/type-decl/type-parameter-declaration-extends.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/type-decl/type-parameter-declaration-extends.ts.shot index ffd470e8a167..60f31e847440 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/type-decl/type-parameter-declaration-extends.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/type-decl/type-parameter-declaration-extends.ts.shot @@ -2,29 +2,29 @@ exports[`type-declaration type-parameters type-decl type-parameter-declaration-extends 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"Foo">, node: TSTypeAliasDeclaration$1, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeParameter$2, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -38,30 +38,30 @@ ScopeManager { isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"U">, node: TSTypeParameter$3, }, ], name: "U", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "Foo" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], @@ -69,7 +69,7 @@ ScopeManager { TypeScope$2 { block: TSTypeAliasDeclaration$1, isStrict: true, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -78,7 +78,7 @@ ScopeManager { }, type: "type", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, ], diff --git a/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/type-decl/type-parameter-declaration.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/type-decl/type-parameter-declaration.ts.shot index 3aad34fefaab..c145e8030e20 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/type-decl/type-parameter-declaration.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/type-parameters/type-decl/type-parameter-declaration.ts.shot @@ -2,50 +2,50 @@ exports[`type-declaration type-parameters type-decl type-parameter-declaration 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"Foo">, node: TSTypeAliasDeclaration$1, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeParameter$2, }, ], name: "T", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"Unresolved">, node: TSTypeAliasDeclaration$3, }, ], name: "Unresolved", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$4, isStrict: false, - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -62,7 +62,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$4, @@ -71,13 +71,13 @@ ScopeManager { TypeScope$2 { block: TSTypeAliasDeclaration$1, isStrict: true, - references: Array [], + references: [], set: Map { "T" => Variable$3, }, type: "type", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, ], }, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/type-query-qualified.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/type-query-qualified.ts.shot index afb1ec52a0d2..236687c48f79 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/type-query-qualified.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/type-query-qualified.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration type-query-qualified 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"x">, node: VariableDeclarator$1, }, ], name: "x", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"x">, init: true, @@ -36,35 +36,35 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeAliasDeclaration$3, }, ], name: "T", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"Unresolved">, node: TSTypeAliasDeclaration$4, }, ], name: "Unresolved", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, Reference$3 { @@ -84,7 +84,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/type-query-with-parameters.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/type-query-with-parameters.ts.shot index 7ec279b55f82..4262287277ac 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/type-query-with-parameters.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/type-query-with-parameters.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration type-query-with-parameters 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ FunctionNameDefinition$1 { name: Identifier<"foo">, node: FunctionDeclaration$1, }, ], name: "foo", - references: Array [ + references: [ Reference$3 { identifier: Identifier<"foo">, isRead: true, @@ -26,21 +26,21 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [], + defs: [], name: "arguments", - references: Array [], + references: [], isValueVariable: true, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ ParameterDefinition$2 { name: Identifier<"y">, node: FunctionDeclaration$1, }, ], name: "y", - references: Array [ + references: [ Reference$2 { identifier: Identifier<"y">, isRead: true, @@ -54,14 +54,14 @@ ScopeManager { isTypeVariable: false, }, Variable$5 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"T">, node: TSTypeParameter$2, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -75,26 +75,26 @@ ScopeManager { isTypeVariable: true, }, Variable$6 { - defs: Array [ + defs: [ TypeDefinition$4 { name: Identifier<"Foo">, node: TSTypeAliasDeclaration$3, }, ], name: "Foo", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$7 { - defs: Array [ + defs: [ TypeDefinition$5 { name: Identifier<"T">, node: TSTypeParameter$4, }, ], name: "T", - references: Array [ + references: [ Reference$4 { identifier: Identifier<"T">, isRead: true, @@ -108,11 +108,11 @@ ScopeManager { isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "foo" => Variable$2, @@ -120,7 +120,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$6, @@ -129,7 +129,7 @@ ScopeManager { FunctionScope$2 { block: FunctionDeclaration$1, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, ], @@ -140,7 +140,7 @@ ScopeManager { }, type: "function", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$3, Variable$4, Variable$5, @@ -149,7 +149,7 @@ ScopeManager { TypeScope$3 { block: TSTypeAliasDeclaration$3, isStrict: true, - references: Array [ + references: [ Reference$3, Reference$4, ], @@ -158,7 +158,7 @@ ScopeManager { }, type: "type", upper: GlobalScope$1, - variables: Array [ + variables: [ Variable$7, ], }, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/type-query.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/type-query.ts.shot index c59a91eee9dc..74e00a2fe0c7 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/type-query.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/type-query.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration type-query 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ VariableDefinition$1 { name: Identifier<"x">, node: VariableDeclarator$1, }, ], name: "x", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"x">, init: true, @@ -36,35 +36,35 @@ ScopeManager { isTypeVariable: false, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"T">, node: TSTypeAliasDeclaration$3, }, ], name: "T", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, Variable$4 { - defs: Array [ + defs: [ TypeDefinition$3 { name: Identifier<"Unresolved">, node: TSTypeAliasDeclaration$4, }, ], name: "Unresolved", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$5, isStrict: false, - references: Array [ + references: [ Reference$1, Reference$2, Reference$3 { @@ -84,7 +84,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/type1.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/type1.ts.shot index fd26de02af9a..09d59996c0f6 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/type1.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/type1.ts.shot @@ -2,33 +2,33 @@ exports[`type-declaration type1 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$2, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "T" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], diff --git a/packages/scope-manager/tests/fixtures/type-declaration/type2.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/type2.ts.shot index d3ee411e1d7c..71ed9baf9f90 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/type2.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/type2.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration type2 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"A">, node: TSTypeAliasDeclaration$1, }, ], name: "A", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"A">, isRead: true, @@ -26,23 +26,23 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"B">, node: TSTypeAliasDeclaration$2, }, ], name: "B", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -52,7 +52,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/type3.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/type3.ts.shot index 32a193ed0df6..a8a2bada8a58 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/type3.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/type3.ts.shot @@ -2,17 +2,17 @@ exports[`type-declaration type3 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [ + references: [ Reference$1 { identifier: Identifier<"T">, isRead: true, @@ -26,23 +26,23 @@ ScopeManager { isTypeVariable: true, }, Variable$3 { - defs: Array [ + defs: [ TypeDefinition$2 { name: Identifier<"A">, node: TSTypeAliasDeclaration$2, }, ], name: "A", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$3, isStrict: false, - references: Array [ + references: [ Reference$1, ], set: Map { @@ -52,7 +52,7 @@ ScopeManager { }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, Variable$3, diff --git a/packages/scope-manager/tests/fixtures/type-declaration/typeof-import-type-with-qualifier.ts.shot b/packages/scope-manager/tests/fixtures/type-declaration/typeof-import-type-with-qualifier.ts.shot index 95ad0a27df5b..0be95e24b509 100644 --- a/packages/scope-manager/tests/fixtures/type-declaration/typeof-import-type-with-qualifier.ts.shot +++ b/packages/scope-manager/tests/fixtures/type-declaration/typeof-import-type-with-qualifier.ts.shot @@ -2,33 +2,33 @@ exports[`type-declaration typeof-import-type-with-qualifier 1`] = ` ScopeManager { - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2 { - defs: Array [ + defs: [ TypeDefinition$1 { name: Identifier<"T">, node: TSTypeAliasDeclaration$1, }, ], name: "T", - references: Array [], + references: [], isValueVariable: false, isTypeVariable: true, }, ], - scopes: Array [ + scopes: [ GlobalScope$1 { block: Program$2, isStrict: false, - references: Array [], + references: [], set: Map { "const" => ImplicitGlobalConstTypeVariable, "T" => Variable$2, }, type: "global", upper: null, - variables: Array [ + variables: [ ImplicitGlobalConstTypeVariable, Variable$2, ], diff --git a/packages/type-utils/CHANGELOG.md b/packages/type-utils/CHANGELOG.md index 3026d655fd59..ad817d39d049 100644 --- a/packages/type-utils/CHANGELOG.md +++ b/packages/type-utils/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [5.55.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.54.1...v5.55.0) (2023-03-13) + + +### Features + +* update TypeScript to 5.0 RC ([#6570](https://github.com/typescript-eslint/typescript-eslint/issues/6570)) ([36ef0e1](https://github.com/typescript-eslint/typescript-eslint/commit/36ef0e16f31810c27dda299e739d1610b689d3ad)) + + + + + ## [5.54.1](https://github.com/typescript-eslint/typescript-eslint/compare/v5.54.0...v5.54.1) (2023-03-06) **Note:** Version bump only for package @typescript-eslint/type-utils diff --git a/packages/type-utils/package.json b/packages/type-utils/package.json index d85f75ba9aa5..59f97c73b751 100644 --- a/packages/type-utils/package.json +++ b/packages/type-utils/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/type-utils", - "version": "5.54.1", + "version": "5.55.0", "description": "Type utilities for working with TypeScript + ESLint together", "keywords": [ "eslint", @@ -39,13 +39,13 @@ "typecheck": "tsc -p tsconfig.json --noEmit" }, "dependencies": { - "@typescript-eslint/typescript-estree": "5.54.1", - "@typescript-eslint/utils": "5.54.1", + "@typescript-eslint/typescript-estree": "5.55.0", + "@typescript-eslint/utils": "5.55.0", "debug": "^4.3.4", "tsutils": "^3.21.0" }, "devDependencies": { - "@typescript-eslint/parser": "5.54.1", + "@typescript-eslint/parser": "5.55.0", "typescript": "*" }, "peerDependencies": { diff --git a/packages/type-utils/src/containsAllTypesByName.ts b/packages/type-utils/src/containsAllTypesByName.ts index 9c3fb5222366..455938f42649 100644 --- a/packages/type-utils/src/containsAllTypesByName.ts +++ b/packages/type-utils/src/containsAllTypesByName.ts @@ -41,7 +41,7 @@ export function containsAllTypesByName( const bases = type.getBaseTypes(); return ( - typeof bases !== 'undefined' && + bases !== undefined && (matchAnyInstead ? bases.some(predicate) : bases.length > 0 && bases.every(predicate)) diff --git a/packages/type-utils/src/typeFlagUtils.ts b/packages/type-utils/src/typeFlagUtils.ts index 134fdcf4ece1..aa71d702b19a 100644 --- a/packages/type-utils/src/typeFlagUtils.ts +++ b/packages/type-utils/src/typeFlagUtils.ts @@ -5,6 +5,7 @@ import * as ts from 'typescript'; * Gets all of the type flags in a type, iterating through unions automatically */ export function getTypeFlags(type: ts.Type): ts.TypeFlags { + // @ts-expect-error Since typescript 5.0, this is invalid, but uses 0 as the default value of TypeFlags. let flags: ts.TypeFlags = 0; for (const t of unionTypeParts(type)) { flags |= t.flags; diff --git a/packages/types/CHANGELOG.md b/packages/types/CHANGELOG.md index 3ddd28b629cd..e74b723e88c8 100644 --- a/packages/types/CHANGELOG.md +++ b/packages/types/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [5.55.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.54.1...v5.55.0) (2023-03-13) + + +### Features + +* update TypeScript to 5.0 RC ([#6570](https://github.com/typescript-eslint/typescript-eslint/issues/6570)) ([36ef0e1](https://github.com/typescript-eslint/typescript-eslint/commit/36ef0e16f31810c27dda299e739d1610b689d3ad)) + + + + + ## [5.54.1](https://github.com/typescript-eslint/typescript-eslint/compare/v5.54.0...v5.54.1) (2023-03-06) **Note:** Version bump only for package @typescript-eslint/types diff --git a/packages/types/package.json b/packages/types/package.json index 4c8d71c8e278..ea8d8d70b15b 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/types", - "version": "5.54.1", + "version": "5.55.0", "description": "Types for the TypeScript-ESTree AST spec", "keywords": [ "eslint", diff --git a/packages/types/src/lib.ts b/packages/types/src/lib.ts index 880bafe5b5e6..c1c60650ffd4 100644 --- a/packages/types/src/lib.ts +++ b/packages/types/src/lib.ts @@ -15,6 +15,7 @@ type Lib = | 'es2020' | 'es2021' | 'es2022' + | 'es2023' | 'esnext' | 'dom' | 'dom.iterable' @@ -65,6 +66,8 @@ type Lib = | 'es2022.object' | 'es2022.sharedmemory' | 'es2022.string' + | 'es2022.regexp' + | 'es2023.array' | 'esnext.array' | 'esnext.symbol' | 'esnext.asynciterable' @@ -73,6 +76,8 @@ type Lib = | 'esnext.string' | 'esnext.promise' | 'esnext.weakref' + | 'decorators' + | 'decorators.legacy' | 'es2016.full' | 'es2017.full' | 'es2018.full' @@ -80,6 +85,7 @@ type Lib = | 'es2020.full' | 'es2021.full' | 'es2022.full' + | 'es2023.full' | 'esnext.full' | 'lib'; diff --git a/packages/typescript-estree/CHANGELOG.md b/packages/typescript-estree/CHANGELOG.md index c175d6624991..e95900792463 100644 --- a/packages/typescript-estree/CHANGELOG.md +++ b/packages/typescript-estree/CHANGELOG.md @@ -3,6 +3,18 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [5.55.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.54.1...v5.55.0) (2023-03-13) + + +### Features + +* **typescript-estree:** support `const` modifiers for type parameters ([#6600](https://github.com/typescript-eslint/typescript-eslint/issues/6600)) ([f3c6373](https://github.com/typescript-eslint/typescript-eslint/commit/f3c637328b1a3923b9ecdfaeea86ccf73cbdda06)) +* update TypeScript to 5.0 RC ([#6570](https://github.com/typescript-eslint/typescript-eslint/issues/6570)) ([36ef0e1](https://github.com/typescript-eslint/typescript-eslint/commit/36ef0e16f31810c27dda299e739d1610b689d3ad)) + + + + + ## [5.54.1](https://github.com/typescript-eslint/typescript-eslint/compare/v5.54.0...v5.54.1) (2023-03-06) diff --git a/packages/typescript-estree/package.json b/packages/typescript-estree/package.json index 81b87e3f9d8c..88c831a913f6 100644 --- a/packages/typescript-estree/package.json +++ b/packages/typescript-estree/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/typescript-estree", - "version": "5.54.1", + "version": "5.55.0", "description": "A parser that converts TypeScript source code into an ESTree compatible form", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -42,8 +42,8 @@ "typecheck": "tsc -p tsconfig.json --noEmit" }, "dependencies": { - "@typescript-eslint/types": "5.54.1", - "@typescript-eslint/visitor-keys": "5.54.1", + "@typescript-eslint/types": "5.55.0", + "@typescript-eslint/visitor-keys": "5.55.0", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", diff --git a/packages/typescript-estree/src/convert.ts b/packages/typescript-estree/src/convert.ts index 4f7a89d97c14..e9c3e39d7a92 100644 --- a/packages/typescript-estree/src/convert.ts +++ b/packages/typescript-estree/src/convert.ts @@ -2407,6 +2407,7 @@ export class Converter { default: node.default ? this.convertType(node.default) : undefined, in: hasModifier(SyntaxKind.InKeyword, node), out: hasModifier(SyntaxKind.OutKeyword, node), + const: hasModifier(SyntaxKind.ConstKeyword, node), }); } @@ -2553,8 +2554,8 @@ export class Converter { : undefined, initializer: this.convertChild( - // eslint-disable-next-line deprecation/deprecation -- TODO breaking change remove this from the AST - node.initializer, + // @ts-expect-error TODO breaking change remove this from the AST + node.initializer as ts.Node, ) || undefined, readonly: hasModifier(SyntaxKind.ReadonlyKeyword, node) || undefined, static: hasModifier(SyntaxKind.StaticKeyword, node) || undefined, diff --git a/packages/typescript-estree/src/create-program/createDefaultProgram.ts b/packages/typescript-estree/src/create-program/createDefaultProgram.ts index a2de81399d20..b533746fff60 100644 --- a/packages/typescript-estree/src/create-program/createDefaultProgram.ts +++ b/packages/typescript-estree/src/create-program/createDefaultProgram.ts @@ -45,6 +45,7 @@ function createDefaultProgram( ); if (parseSettings.moduleResolver) { + // eslint-disable-next-line deprecation/deprecation -- intentional for older TS versions compilerHost.resolveModuleNames = getModuleResolver( parseSettings.moduleResolver, ).resolveModuleNames; diff --git a/packages/typescript-estree/src/create-program/getWatchProgramsForProjects.ts b/packages/typescript-estree/src/create-program/getWatchProgramsForProjects.ts index d9d4de9c833f..c1263ce342a2 100644 --- a/packages/typescript-estree/src/create-program/getWatchProgramsForProjects.ts +++ b/packages/typescript-estree/src/create-program/getWatchProgramsForProjects.ts @@ -270,6 +270,7 @@ function createWatchProgram( ) as WatchCompilerHostOfConfigFile; if (parseSettings.moduleResolver) { + // eslint-disable-next-line deprecation/deprecation -- intentional for older TS versions watchCompilerHost.resolveModuleNames = getModuleResolver( parseSettings.moduleResolver, ).resolveModuleNames; diff --git a/packages/typescript-estree/src/getModifiers.ts b/packages/typescript-estree/src/getModifiers.ts index a584a7659a77..24ef670a2c0b 100644 --- a/packages/typescript-estree/src/getModifiers.ts +++ b/packages/typescript-estree/src/getModifiers.ts @@ -23,8 +23,10 @@ export function getModifiers( } return ( - // eslint-disable-next-line deprecation/deprecation -- intentional fallback for older TS versions - node.modifiers?.filter((m): m is ts.Modifier => !ts.isDecorator(m)) + // @ts-expect-error intentional fallback for older TS versions + (node.modifiers as ts.Modifier[])?.filter( + (m): m is ts.Modifier => !ts.isDecorator(m), + ) ); } @@ -47,7 +49,7 @@ export function getDecorators( } return ( - // eslint-disable-next-line deprecation/deprecation -- intentional fallback for older TS versions - node.decorators?.filter(ts.isDecorator) + // @ts-expect-error intentional fallback for older TS versions + (node.decorators as ts.Node[])?.filter(ts.isDecorator) ); } diff --git a/packages/typescript-estree/src/node-utils.ts b/packages/typescript-estree/src/node-utils.ts index 2b7351b0408f..4be3ae8e3739 100644 --- a/packages/typescript-estree/src/node-utils.ts +++ b/packages/typescript-estree/src/node-utils.ts @@ -4,6 +4,9 @@ import { getModifiers } from './getModifiers'; import { xhtmlEntities } from './jsx/xhtml-entities'; import type { TSESTree } from './ts-estree'; import { AST_NODE_TYPES, AST_TOKEN_TYPES } from './ts-estree'; +import { typescriptVersionIsAtLeast } from './version-check'; + +const isAtLeast50 = typescriptVersionIsAtLeast['5.0']; const SyntaxKind = ts.SyntaxKind; @@ -433,12 +436,19 @@ export function isChildUnwrappableOptionalChain( export function getTokenType( token: ts.Identifier | ts.Token, ): Exclude { - if ('originalKeywordKind' in token && token.originalKeywordKind) { - if (token.originalKeywordKind === SyntaxKind.NullKeyword) { + let keywordKind: ts.SyntaxKind | undefined; + if (isAtLeast50 && token.kind === SyntaxKind.Identifier) { + keywordKind = ts.identifierToKeywordKind(token as ts.Identifier); + } else if ('originalKeywordKind' in token) { + // eslint-disable-next-line deprecation/deprecation -- intentional fallback for older TS versions + keywordKind = token.originalKeywordKind; + } + if (keywordKind) { + if (keywordKind === SyntaxKind.NullKeyword) { return AST_TOKEN_TYPES.Null; } else if ( - token.originalKeywordKind >= SyntaxKind.FirstFutureReservedWord && - token.originalKeywordKind <= SyntaxKind.LastKeyword + keywordKind >= SyntaxKind.FirstFutureReservedWord && + keywordKind <= SyntaxKind.LastKeyword ) { return AST_TOKEN_TYPES.Identifier; } @@ -663,7 +673,11 @@ export function firstDefined( } export function identifierIsThisKeyword(id: ts.Identifier): boolean { - return id.originalKeywordKind === SyntaxKind.ThisKeyword; + return ( + // eslint-disable-next-line deprecation/deprecation -- intentional for older TS versions + (isAtLeast50 ? ts.identifierToKeywordKind(id) : id.originalKeywordKind) === + SyntaxKind.ThisKeyword + ); } export function isThisIdentifier( diff --git a/packages/typescript-estree/src/parseSettings/warnAboutTSVersion.ts b/packages/typescript-estree/src/parseSettings/warnAboutTSVersion.ts index 13eef19e7964..5d0069ed1606 100644 --- a/packages/typescript-estree/src/parseSettings/warnAboutTSVersion.ts +++ b/packages/typescript-estree/src/parseSettings/warnAboutTSVersion.ts @@ -6,13 +6,13 @@ import type { ParseSettings } from './index'; * This needs to be kept in sync with /docs/maintenance/Versioning.md * in the typescript-eslint monorepo */ -const SUPPORTED_TYPESCRIPT_VERSIONS = '>=3.3.1 <5.0.0'; +const SUPPORTED_TYPESCRIPT_VERSIONS = '>=3.3.1 <5.1.0'; /* * The semver package will ignore prerelease ranges, and we don't want to explicitly document every one * List them all separately here, so we can automatically create the full string */ -const SUPPORTED_PRERELEASE_RANGES: string[] = []; +const SUPPORTED_PRERELEASE_RANGES: string[] = ['5.0.1-rc']; const ACTIVE_TYPESCRIPT_VERSION = ts.version; const isRunningSupportedTypeScriptVersion = semver.satisfies( ACTIVE_TYPESCRIPT_VERSION, diff --git a/packages/typescript-estree/src/parser.ts b/packages/typescript-estree/src/parser.ts index c5504ba961a0..b7f8c064dd66 100644 --- a/packages/typescript-estree/src/parser.ts +++ b/packages/typescript-estree/src/parser.ts @@ -136,7 +136,7 @@ function parseAndGenerateServices( */ const parseSettings = createParseSettings(code, options); - if (typeof options !== 'undefined') { + if (options !== undefined) { if ( typeof options.errorOnTypeScriptSyntacticAndSemanticIssues === 'boolean' && diff --git a/packages/typescript-estree/src/ts-estree/ts-nodes.ts b/packages/typescript-estree/src/ts-estree/ts-nodes.ts index 0ba5414e1376..fe1042260d8d 100644 --- a/packages/typescript-estree/src/ts-estree/ts-nodes.ts +++ b/packages/typescript-estree/src/ts-estree/ts-nodes.ts @@ -182,7 +182,9 @@ export type TSNode = | ts.ExportAssignment | ts.SourceFile | ts.Bundle + // eslint-disable-next-line deprecation/deprecation -- intentional for old TS versions | ts.InputFiles + // eslint-disable-next-line deprecation/deprecation -- intentional for old TS versions | ts.UnparsedSource | ts.JsonMinusNumericLiteral | ts.TemplateLiteralTypeNode diff --git a/packages/typescript-estree/src/version-check.ts b/packages/typescript-estree/src/version-check.ts index 194636cb5870..62bef222eb5c 100644 --- a/packages/typescript-estree/src/version-check.ts +++ b/packages/typescript-estree/src/version-check.ts @@ -24,6 +24,8 @@ const versions = [ '4.6', '4.7', '4.8', + '4.9', + '5.0', ] as const; type Versions = typeof versions extends ArrayLike ? U : never; diff --git a/packages/typescript-estree/tests/lib/__snapshots__/convert.test.ts.snap b/packages/typescript-estree/tests/lib/__snapshots__/convert.test.ts.snap index 45d71e343243..866e23ab1ce8 100644 --- a/packages/typescript-estree/tests/lib/__snapshots__/convert.test.ts.snap +++ b/packages/typescript-estree/tests/lib/__snapshots__/convert.test.ts.snap @@ -2,11 +2,14 @@ exports[`convert deeplyCopy should convert array of nodes 1`] = ` { + "ambientModuleNames": undefined, "amdDependencies": [], "bindDiagnostics": [], "bindSuggestionDiagnostics": undefined, "checkJsDirective": undefined, + "classifiableNames": undefined, "commentDirectives": undefined, + "endFlowNode": undefined, "endOfFileToken": { "loc": { "end": { @@ -32,6 +35,8 @@ exports[`convert deeplyCopy should convert array of nodes 1`] = ` "foo" => "foo", "T" => "T", }, + "impliedNodeFormat": undefined, + "imports": undefined, "isDeclarationFile": false, "languageVariant": 1, "languageVersion": 99, @@ -49,14 +54,21 @@ exports[`convert deeplyCopy should convert array of nodes 1`] = ` "line": 1, }, }, + "moduleAugmentations": undefined, "nodeCount": 8, + "originalFileName": "", + "packageJsonLocations": undefined, + "packageJsonScope": undefined, "parseDiagnostics": [], + "path": "", "pragmas": Map {}, "range": [ 0, 12, ], "referencedFiles": [], + "resolvedModules": undefined, + "resolvedPath": "", "scriptKind": 4, "setExternalModuleIndicator": [Function], "statements": [ @@ -169,6 +181,7 @@ exports[`convert deeplyCopy should convert array of nodes 1`] = ` "type": "ExpressionStatement", }, ], + "symbolCount": 0, "text": "new foo()", "type": "TSSourceFile", "typeReferenceDirectives": [], @@ -191,6 +204,7 @@ exports[`convert deeplyCopy should convert node correctly 1`] = ` }, "name": { "escapedText": "foo", + "flowNode": undefined, "loc": { "end": { "column": 8, @@ -201,7 +215,6 @@ exports[`convert deeplyCopy should convert node correctly 1`] = ` "line": 1, }, }, - "originalKeywordKind": undefined, "range": [ 5, 8, @@ -456,6 +469,7 @@ exports[`convert deeplyCopy should convert node with type parameters correctly 1 }, "params": [ { + "const": false, "constraint": undefined, "default": undefined, "in": false, diff --git a/packages/typescript-estree/tests/lib/__snapshots__/semantic-diagnostics-enabled.test.ts.snap b/packages/typescript-estree/tests/lib/__snapshots__/semantic-diagnostics-enabled.test.ts.snap deleted file mode 100644 index f3e70c9914e8..000000000000 --- a/packages/typescript-estree/tests/lib/__snapshots__/semantic-diagnostics-enabled.test.ts.snap +++ /dev/null @@ -1,1956 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ClassDeclaration/fixtures/_error_/implements-non-identifier/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ClassDeclaration/fixtures/_error_/missing-body/fixture 1`] = ` -TSError { - "column": 9, - "index": 9, - "lineNumber": 1, - "message": "'{' expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ClassDeclaration/fixtures/_error_/missing-extends-type-param/fixture 1`] = ` -TSError { - "column": 17, - "index": 17, - "lineNumber": 1, - "message": "Type argument list cannot be empty.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ClassDeclaration/fixtures/_error_/missing-type-param/fixture 1`] = ` -TSError { - "column": 7, - "index": 7, - "lineNumber": 1, - "message": "Type parameter list cannot be empty.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ClassDeclaration/fixtures/_error_/non-identifier-name/fixture 1`] = ` -TSError { - "column": 6, - "index": 6, - "lineNumber": 1, - "message": "'{' expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ClassDeclaration/fixtures/_error_/non-identifier-type-param/fixture 1`] = ` -TSError { - "column": 8, - "index": 8, - "lineNumber": 1, - "message": "Type parameter declaration expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ClassDeclaration/fixtures/abstract/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ClassDeclaration/fixtures/declare/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ClassDeclaration/fixtures/decorator-many/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ClassDeclaration/fixtures/decorator-one/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ClassDeclaration/fixtures/empty/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ClassDeclaration/fixtures/extends/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ClassDeclaration/fixtures/extends-literal/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ClassDeclaration/fixtures/extends-type-param/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ClassDeclaration/fixtures/implements-many/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ClassDeclaration/fixtures/implements-one/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ClassDeclaration/fixtures/type-param/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ClassDeclaration/fixtures/with-member-one/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportAllDeclaration/fixtures/_error_/kind-type/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportAllDeclaration/fixtures/_error_/missing-source/fixture 1`] = ` -TSError { - "column": 13, - "index": 13, - "lineNumber": 1, - "message": "Expression expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportAllDeclaration/fixtures/_error_/named-non-identifier/fixture 1`] = ` -TSError { - "column": 12, - "index": 12, - "lineNumber": 1, - "message": "Identifier expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportAllDeclaration/fixtures/_error_/non-string-source/fixture 1`] = ` -TSError { - "column": 13, - "index": 13, - "lineNumber": 1, - "message": "Module specifier must be a string literal.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportAllDeclaration/fixtures/_error_/type-kind/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportAllDeclaration/fixtures/assertion/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportAllDeclaration/fixtures/named/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportAllDeclaration/fixtures/unnamed/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportDefaultDeclaration/fixtures/_error_/enum/fixture 1`] = ` -TSError { - "column": 15, - "index": 15, - "lineNumber": 1, - "message": "Expression expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportDefaultDeclaration/fixtures/_error_/namespace/fixture 1`] = ` -TSError { - "column": 25, - "index": 25, - "lineNumber": 1, - "message": "';' expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportDefaultDeclaration/fixtures/_error_/type-alias/fixture 1`] = ` -TSError { - "column": 20, - "index": 20, - "lineNumber": 1, - "message": "';' expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportDefaultDeclaration/fixtures/_error_/variable-declaration/fixture 1`] = ` -TSError { - "column": 15, - "index": 15, - "lineNumber": 1, - "message": "Expression expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportDefaultDeclaration/fixtures/anonymous-class/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportDefaultDeclaration/fixtures/anonymous-function/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportDefaultDeclaration/fixtures/arrow-function-expression/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportDefaultDeclaration/fixtures/class/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportDefaultDeclaration/fixtures/class-expression/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportDefaultDeclaration/fixtures/function/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportDefaultDeclaration/fixtures/identifier/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportDefaultDeclaration/fixtures/interface/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportDefaultDeclaration/fixtures/literal/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportNamedDeclaration/fixtures/_error_/aliased-literal/fixture 1`] = ` -TSError { - "column": 14, - "index": 14, - "lineNumber": 1, - "message": "Identifier expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportNamedDeclaration/fixtures/_error_/anonymous-class/fixture 1`] = ` -TSError { - "column": 0, - "index": 0, - "lineNumber": 1, - "message": "A class declaration without the 'default' modifier must have a name.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportNamedDeclaration/fixtures/_error_/anonymous-function-expression/fixture 1`] = ` -TSError { - "column": 16, - "index": 16, - "lineNumber": 1, - "message": "Identifier expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportNamedDeclaration/fixtures/_error_/arrow-function/fixture 1`] = ` -TSError { - "column": 0, - "index": 0, - "lineNumber": 1, - "message": "Declaration or statement expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportNamedDeclaration/fixtures/_error_/assertion/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportNamedDeclaration/fixtures/_error_/class-expression/fixture 1`] = ` -TSError { - "column": 0, - "index": 0, - "lineNumber": 1, - "message": "Declaration or statement expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportNamedDeclaration/fixtures/_error_/identifier-direct/fixture 1`] = ` -TSError { - "column": 0, - "index": 0, - "lineNumber": 1, - "message": "Declaration or statement expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportNamedDeclaration/fixtures/_error_/literal-braced/fixture 1`] = ` -TSError { - "column": 9, - "index": 9, - "lineNumber": 1, - "message": "Identifier expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportNamedDeclaration/fixtures/_error_/literal-direct/fixture 1`] = ` -TSError { - "column": 0, - "index": 0, - "lineNumber": 1, - "message": "Declaration or statement expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportNamedDeclaration/fixtures/aliased/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportNamedDeclaration/fixtures/class/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportNamedDeclaration/fixtures/declare-function/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportNamedDeclaration/fixtures/enum/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportNamedDeclaration/fixtures/function-declaration/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportNamedDeclaration/fixtures/identifier-braced/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportNamedDeclaration/fixtures/identifier-many/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportNamedDeclaration/fixtures/interface/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportNamedDeclaration/fixtures/namespace/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportNamedDeclaration/fixtures/type-alias/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportNamedDeclaration/fixtures/variable-declaration/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/FunctionDeclaration/fixtures/_error_/missing-id-and-not-exported/fixture 1`] = ` -TSError { - "column": 9, - "index": 9, - "lineNumber": 1, - "message": "Identifier expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/FunctionDeclaration/fixtures/_error_/missing-type-param/fixture 1`] = ` -TSError { - "column": 12, - "index": 12, - "lineNumber": 1, - "message": "Type parameter list cannot be empty.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/FunctionDeclaration/fixtures/_error_/non-identifier-name/fixture 1`] = ` -TSError { - "column": 9, - "index": 9, - "lineNumber": 1, - "message": "Identifier expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/FunctionDeclaration/fixtures/_error_/non-identifier-type-param/fixture 1`] = ` -TSError { - "column": 13, - "index": 13, - "lineNumber": 1, - "message": "Type parameter declaration expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/FunctionDeclaration/fixtures/async/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/FunctionDeclaration/fixtures/empty/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/FunctionDeclaration/fixtures/generator/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/FunctionDeclaration/fixtures/param-many/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/FunctionDeclaration/fixtures/param-one/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/FunctionDeclaration/fixtures/returnType/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/FunctionDeclaration/fixtures/type-param-many/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/FunctionDeclaration/fixtures/type-param-one/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ImportDeclaration/fixtures/_error_/default-non-identifier/fixture 1`] = ` -TSError { - "column": 0, - "index": 0, - "lineNumber": 1, - "message": "Declaration or statement expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ImportDeclaration/fixtures/_error_/named-and-namespace/fixture 1`] = ` -TSError { - "column": 12, - "index": 12, - "lineNumber": 1, - "message": "'from' expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ImportDeclaration/fixtures/_error_/named-non-identifier/fixture 1`] = ` -TSError { - "column": 9, - "index": 9, - "lineNumber": 1, - "message": "Identifier expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ImportDeclaration/fixtures/_error_/namespace-and-default/fixture 1`] = ` -TSError { - "column": 13, - "index": 13, - "lineNumber": 1, - "message": "'from' expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ImportDeclaration/fixtures/_error_/namespace-and-named/fixture 1`] = ` -TSError { - "column": 13, - "index": 13, - "lineNumber": 1, - "message": "'from' expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ImportDeclaration/fixtures/_error_/namespace-and-namespace/fixture 1`] = ` -TSError { - "column": 13, - "index": 13, - "lineNumber": 1, - "message": "'from' expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ImportDeclaration/fixtures/_error_/namespace-non-identifier/fixture 1`] = ` -TSError { - "column": 12, - "index": 12, - "lineNumber": 1, - "message": "Identifier expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ImportDeclaration/fixtures/_error_/non-string-source/fixture 1`] = ` -TSError { - "column": 18, - "index": 18, - "lineNumber": 1, - "message": "Module specifier must be a string literal.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ImportDeclaration/fixtures/assertion/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ImportDeclaration/fixtures/default/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ImportDeclaration/fixtures/default-and-named-many/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ImportDeclaration/fixtures/default-and-named-none/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ImportDeclaration/fixtures/default-and-named-one/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ImportDeclaration/fixtures/default-and-namespace/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ImportDeclaration/fixtures/named-many/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ImportDeclaration/fixtures/named-none/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ImportDeclaration/fixtures/named-one/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ImportDeclaration/fixtures/side-effect/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSDeclareFunction/fixtures/_error_/async/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSDeclareFunction/fixtures/_error_/declare-with-body/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSDeclareFunction/fixtures/_error_/missing-id-and-not-exported/fixture 1`] = ` -TSError { - "column": 17, - "index": 17, - "lineNumber": 1, - "message": "Identifier expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSDeclareFunction/fixtures/_error_/missing-type-param/fixture 1`] = ` -TSError { - "column": 20, - "index": 20, - "lineNumber": 1, - "message": "Type parameter list cannot be empty.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSDeclareFunction/fixtures/_error_/non-identifier-name/fixture 1`] = ` -TSError { - "column": 17, - "index": 17, - "lineNumber": 1, - "message": "Identifier expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSDeclareFunction/fixtures/_error_/non-identifier-type-param/fixture 1`] = ` -TSError { - "column": 19, - "index": 19, - "lineNumber": 1, - "message": "Type parameter declaration expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSDeclareFunction/fixtures/empty/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSDeclareFunction/fixtures/generator/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSDeclareFunction/fixtures/param-many/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSDeclareFunction/fixtures/param-one/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSDeclareFunction/fixtures/returnType/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSDeclareFunction/fixtures/type-param-many/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSDeclareFunction/fixtures/type-param-one/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSDeclareFunction/fixtures/without-declare/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSEnumDeclaration/fixtures/_error_/missing-body/fixture 1`] = ` -TSError { - "column": 8, - "index": 8, - "lineNumber": 1, - "message": "'{' expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSEnumDeclaration/fixtures/_error_/missing-id/fixture 1`] = ` -TSError { - "column": 5, - "index": 5, - "lineNumber": 1, - "message": "Identifier expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSEnumDeclaration/fixtures/_error_/non-identifier-name/fixture 1`] = ` -TSError { - "column": 5, - "index": 5, - "lineNumber": 1, - "message": "Identifier expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSEnumDeclaration/fixtures/const/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSEnumDeclaration/fixtures/declare/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSEnumDeclaration/fixtures/empty/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSEnumDeclaration/fixtures/with-member-one/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSImportEqualsDeclaration/fixtures/_error_/entity-name-invalid/fixture 1`] = ` -TSError { - "column": 11, - "index": 11, - "lineNumber": 1, - "message": "Identifier expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSImportEqualsDeclaration/fixtures/_error_/external-module-ref-non-string/fixture 1`] = ` -TSError { - "column": 19, - "index": 19, - "lineNumber": 1, - "message": "String literal expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSImportEqualsDeclaration/fixtures/_error_/import-kind/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSImportEqualsDeclaration/fixtures/_error_/missing-id/fixture 1`] = ` -TSError { - "column": 0, - "index": 0, - "lineNumber": 1, - "message": "Declaration or statement expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSImportEqualsDeclaration/fixtures/_error_/missing-reference/fixture 1`] = ` -TSError { - "column": 8, - "index": 8, - "lineNumber": 1, - "message": "'=' expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSImportEqualsDeclaration/fixtures/entity-name-many/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSImportEqualsDeclaration/fixtures/entity-name-one/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSInterfaceDeclaration/fixtures/_error_/missing-body/fixture 1`] = ` -TSError { - "column": 11, - "index": 11, - "lineNumber": 1, - "message": "'{' expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSInterfaceDeclaration/fixtures/_error_/missing-extends/fixture 1`] = ` -TSError { - "column": 19, - "index": 19, - "lineNumber": 1, - "message": "'extends' list cannot be empty.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSInterfaceDeclaration/fixtures/_error_/missing-id/fixture 1`] = ` -TSError { - "column": 10, - "index": 10, - "lineNumber": 1, - "message": "Interface must be given a name.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSInterfaceDeclaration/fixtures/_error_/missing-type-param/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSInterfaceDeclaration/fixtures/_error_/non-identifier-extends/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSInterfaceDeclaration/fixtures/_error_/non-identifier-name/fixture 1`] = ` -TSError { - "column": 10, - "index": 10, - "lineNumber": 1, - "message": "Interface name cannot be '1'.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSInterfaceDeclaration/fixtures/_error_/non-identifier-type-param/fixture 1`] = ` -TSError { - "column": 12, - "index": 12, - "lineNumber": 1, - "message": "Type parameter declaration expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSInterfaceDeclaration/fixtures/declare/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSInterfaceDeclaration/fixtures/empty/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSInterfaceDeclaration/fixtures/extends-many/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSInterfaceDeclaration/fixtures/extends-one/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSInterfaceDeclaration/fixtures/type-param-many/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSInterfaceDeclaration/fixtures/type-param-one/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSInterfaceDeclaration/fixtures/with-member-one/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSModuleDeclaration/fixtures/_error_/module-invalid-id/fixture 1`] = ` -TSError { - "column": 7, - "index": 7, - "lineNumber": 1, - "message": "Namespace name cannot be '1'.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSModuleDeclaration/fixtures/_error_/module-missing-body/fixture 1`] = ` -TSError { - "column": 8, - "index": 8, - "lineNumber": 1, - "message": "'{' expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSModuleDeclaration/fixtures/_error_/namespace-declare-no-body/fixture 1`] = ` -TSError { - "column": 19, - "index": 19, - "lineNumber": 1, - "message": "'{' expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSModuleDeclaration/fixtures/_error_/namespace-id-literal/fixture 1`] = ` -TSError { - "column": 10, - "index": 10, - "lineNumber": 1, - "message": "Identifier expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSModuleDeclaration/fixtures/_error_/namespace-invalid-id/fixture 1`] = ` -TSError { - "column": 10, - "index": 10, - "lineNumber": 1, - "message": "Namespace name cannot be '1'.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSModuleDeclaration/fixtures/_error_/namespace-no-body/fixture 1`] = ` -TSError { - "column": 11, - "index": 11, - "lineNumber": 1, - "message": "'{' expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSModuleDeclaration/fixtures/global/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSModuleDeclaration/fixtures/module-declare/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSModuleDeclaration/fixtures/module-declare-no-body/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSModuleDeclaration/fixtures/module-id-identifier/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSModuleDeclaration/fixtures/module-id-literal/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSModuleDeclaration/fixtures/module-id-qualified-name/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSModuleDeclaration/fixtures/namespace-declare/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSModuleDeclaration/fixtures/namespace-id-identifier/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSModuleDeclaration/fixtures/namespace-id-qualified-name/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSNamespaceExportDeclaration/fixtures/_error_/missing-id/fixture 1`] = ` -TSError { - "column": 19, - "index": 19, - "lineNumber": 1, - "message": "Identifier expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSNamespaceExportDeclaration/fixtures/_error_/non-identifier-name/fixture 1`] = ` -TSError { - "column": 20, - "index": 20, - "lineNumber": 1, - "message": "Identifier expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSNamespaceExportDeclaration/fixtures/valid/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSTypeAliasDeclaration/fixtures/_error_/missing-type-parameter/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSTypeAliasDeclaration/fixtures/_error_/non-identifier-name/fixture 1`] = ` -TSError { - "column": 5, - "index": 5, - "lineNumber": 1, - "message": "Type alias name cannot be '1'.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSTypeAliasDeclaration/fixtures/_error_/non-identifier-type-parameter/fixture 1`] = ` -TSError { - "column": 7, - "index": 7, - "lineNumber": 1, - "message": "Type parameter declaration expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSTypeAliasDeclaration/fixtures/declare/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSTypeAliasDeclaration/fixtures/type-param-many/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/TSTypeAliasDeclaration/fixtures/valid/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/VariableDeclaration/fixtures/_error_/missing-id-with-value/fixture 1`] = ` -TSError { - "column": 6, - "index": 6, - "lineNumber": 1, - "message": "Variable declaration expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/VariableDeclaration/fixtures/_error_/missing-id-without-value/fixture 1`] = ` -TSError { - "column": 5, - "index": 5, - "lineNumber": 1, - "message": "Variable declaration list cannot be empty.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/VariableDeclaration/fixtures/const-with-value/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/VariableDeclaration/fixtures/const-without-value/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/VariableDeclaration/fixtures/declare/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/VariableDeclaration/fixtures/let-with-value/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/VariableDeclaration/fixtures/let-without-value/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/VariableDeclaration/fixtures/multiple-declarations/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/VariableDeclaration/fixtures/var-with-value/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/VariableDeclaration/fixtures/var-without-value/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/element/AccessorProperty/fixtures/_error_/modifier-override-with-no-extends/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/element/AccessorProperty/fixtures/key-computed-complex/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/element/AccessorProperty/fixtures/key-computed-number/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/element/AccessorProperty/fixtures/key-computed-string/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/element/AccessorProperty/fixtures/key-number/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/element/AccessorProperty/fixtures/key-private/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/element/AccessorProperty/fixtures/key-string/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/element/AccessorProperty/fixtures/modifier-abstract/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/element/AccessorProperty/fixtures/modifier-abstract-with-value/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/element/AccessorProperty/fixtures/modifier-declare/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/element/AccessorProperty/fixtures/modifier-override/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/element/AccessorProperty/fixtures/modifier-private/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/element/AccessorProperty/fixtures/modifier-protected/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/element/AccessorProperty/fixtures/modifier-public/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/element/AccessorProperty/fixtures/modifier-readonly/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/element/AccessorProperty/fixtures/modifier-static/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/element/AccessorProperty/fixtures/no-annotation-no-value/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/element/AccessorProperty/fixtures/no-annotation-with-value/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/element/AccessorProperty/fixtures/with-annotation-no-value/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/element/AccessorProperty/fixtures/with-annotation-with-value/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/expression/TSSatisfiesExpression/fixtures/array-array/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/expression/TSSatisfiesExpression/fixtures/arrow-func-no-parentheses/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/expression/TSSatisfiesExpression/fixtures/arrow-func-with-parentheses/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/expression/TSSatisfiesExpression/fixtures/chained-satisfies/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/expression/TSSatisfiesExpression/fixtures/conditional-no-parentheses/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/expression/TSSatisfiesExpression/fixtures/conditional-with-parentheses/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/expression/TSSatisfiesExpression/fixtures/identifier-keyword/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/expression/TSSatisfiesExpression/fixtures/identifier-object-type/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/expression/TSSatisfiesExpression/fixtures/identifier-tuple-type/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/expression/TSSatisfiesExpression/fixtures/logical-no-parentheses/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/expression/TSSatisfiesExpression/fixtures/logical-with-parentheses/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-factory-instance-member/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-factory-static-member/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-instance-member/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/accessor-decorators/fixtures/accessor-decorator-static-member/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/babylon-convergence/fixtures/type-parameter-whitespace-loc/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/babylon-convergence/fixtures/type-parameters/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/_error_/abstract-class-with-abstract-static-constructor/fixture 1`] = ` -TSError { - "column": 2, - "index": 114, - "lineNumber": 4, - "message": "'abstract' modifier can only appear on a class, method, or property declaration.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/_error_/abstract-class-with-override-property/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/_error_/abstract-interface/fixture 1`] = ` -TSError { - "column": 7, - "index": 80, - "lineNumber": 3, - "message": "'abstract' modifier can only appear on a class, method, or property declaration.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/_error_/await-without-async-function/fixture 1`] = ` -TSError { - "column": 14, - "index": 104, - "lineNumber": 4, - "message": "'await' expressions are only allowed within async functions and at the top levels of modules.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/_error_/class-private-identifier-field-with-accessibility-error/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/_error_/class-with-constructor-and-type-parameters/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/_error_/class-with-export-parameter-properties/fixture 1`] = ` -TSError { - "column": 16, - "index": 101, - "lineNumber": 4, - "message": "'export' modifier cannot appear on a parameter.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/_error_/class-with-implements-and-extends/fixture 1`] = ` -TSError { - "column": 57, - "index": 130, - "lineNumber": 3, - "message": "'extends' clause must precede 'implements' clause.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/_error_/class-with-static-parameter-properties/fixture 1`] = ` -TSError { - "column": 16, - "index": 101, - "lineNumber": 4, - "message": "'static' modifier cannot appear on a parameter.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/_error_/class-with-two-methods-computed-constructor/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/_error_/const-assertions/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/_error_/export-named-enum-computed-number/fixture 1`] = ` -TSError { - "column": 4, - "index": 95, - "lineNumber": 4, - "message": "An enum member cannot have a numeric name.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/_error_/export-named-enum-computed-string/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/_error_/export-named-enum-computed-var-ref/fixture 1`] = ` -TSError { - "column": 4, - "index": 95, - "lineNumber": 4, - "message": "Computed property names are not allowed in enums.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/_error_/export-type-star-from/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/_error_/export-with-import-assertions/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/_error_/import-type-error/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/_error_/interface-with-construct-signature-with-parameter-accessibility/fixture 1`] = ` -TSError { - "column": 9, - "index": 99, - "lineNumber": 4, - "message": "A parameter property is only allowed in a constructor implementation.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/_error_/new-target-in-arrow-function-body/fixture 1`] = ` -TSError { - "column": 16, - "index": 89, - "lineNumber": 3, - "message": "Meta-property 'new.target' is only allowed in the body of a function declaration, function expression, or constructor.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/_error_/var-with-definite-assignment/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-constructor/fixture 1`] = ` -TSError { - "column": 2, - "index": 114, - "lineNumber": 4, - "message": "'abstract' modifier can only appear on a class, method, or property declaration.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-method/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-properties/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/abstract-class-with-abstract-readonly-property/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/abstract-class-with-declare-properties/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/abstract-class-with-optional-method/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/abstract-class-with-override-method/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/angle-bracket-type-assertion/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/angle-bracket-type-assertion-arrow-function/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/arrow-function-with-optional-parameter/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/arrow-function-with-type-parameters/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/async-function-expression/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/async-function-with-var-declaration/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/call-signatures/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/call-signatures-with-generics/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/cast-as-expression/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/cast-as-multi/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/cast-as-multi-assign/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/cast-as-operator/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/cast-as-simple/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/catch-clause-with-annotation/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/catch-clause-with-invalid-annotation/fixture 1`] = ` -TSError { - "column": 12, - "index": 91, - "lineNumber": 4, - "message": "Catch clause variable type annotation must be 'any' or 'unknown' if specified.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-multi-line-keyword-abstract/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-multi-line-keyword-declare/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-private-identifier-field-with-annotation/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-private-identifier-readonly-field/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-static-blocks/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-with-accessibility-modifiers/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-with-constructor-and-modifier/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-with-constructor-and-parameter-property-with-modifiers/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-with-constructor-and-parameter-proptery-with-override-modifier/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-with-constructor-and-return-type/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-with-declare-properties/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-with-definite-assignment/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-with-extends-and-implements/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-with-extends-generic/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-with-extends-generic-multiple/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-with-generic-method/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-with-generic-method-default/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-with-implements/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-with-implements-generic/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-with-implements-generic-multiple/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-with-method/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-with-mixin/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-with-mixin-reference/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-with-optional-computed-method/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-with-optional-computed-property/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-with-optional-methods/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-with-optional-properties/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-with-optional-property-undefined/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-with-override-method/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-with-override-property/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-with-private-optional-property/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-with-private-parameter-properties/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-with-property-function/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-with-property-values/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-with-protected-parameter-properties/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-with-public-parameter-properties/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-with-readonly-parameter-properties/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-with-readonly-property/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-with-type-parameter/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-with-type-parameter-default/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/class-with-type-parameter-underscore/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/const-enum/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/declare-class-with-optional-method/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/declare-function/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/destructuring-assignment/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/destructuring-assignment-nested/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/destructuring-assignment-object/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/destructuring-assignment-property/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/directive-in-module/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/directive-in-namespace/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/dynamic-import-with-import-assertions/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/export-all-with-import-assertions/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/export-as-namespace/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/export-assignment/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/export-declare-const-named-enum/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/export-declare-named-enum/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/export-default-class-with-generic/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/export-default-class-with-multiple-generics/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/export-default-interface/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/export-named-class-with-generic/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/export-named-class-with-multiple-generics/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/export-named-enum/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/export-star-as-ns-from/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/export-type/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/export-type-as/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/export-type-from/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/export-type-from-as/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/function-anonymus-with-type-parameters/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/function-anynomus-with-return-type/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/function-overloads/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/function-with-await/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/function-with-object-type-with-optional-properties/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/function-with-object-type-without-annotation/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/function-with-type-parameters/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/function-with-type-parameters-that-have-comments/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/function-with-type-parameters-with-constraint/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/function-with-types/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/function-with-types-assignation/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/global-this/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/import-equal-declaration/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/import-equal-type-declaration/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/import-export-equal-declaration/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/import-export-equal-type-declaration/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/import-type-default/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/import-type-empty/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/import-type-named/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/import-type-named-as/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/import-type-star-as-ns/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/import-with-import-assertions/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/interface-extends/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/interface-extends-multiple/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/interface-type-parameters/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/interface-with-all-property-types/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/interface-with-extends-member-expression/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/interface-with-extends-type-parameters/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/interface-with-generic/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/interface-with-jsdoc/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/interface-with-method/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/interface-with-optional-properties/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/interface-without-type-annotation/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/intrinsic-keyword/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/keyof-operator/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/keyword-variables/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/nested-type-arguments/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/never-type-param/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/non-null-assertion-operator/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/null-and-undefined-type-annotations/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/nullish-coalescing/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/object-with-escaped-properties/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/object-with-typed-methods/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/optional-chain/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/optional-chain-call/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/optional-chain-call-with-non-null-assertion/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/optional-chain-call-with-parens/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/optional-chain-element-access/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/optional-chain-element-access-with-non-null-assertion/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/optional-chain-element-access-with-parens/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/optional-chain-with-non-null-assertion/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/optional-chain-with-parens/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/parenthesized-use-strict/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/private-fields-in-in/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/readonly-arrays/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/readonly-tuples/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/short-circuiting-assignment-and-and/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/short-circuiting-assignment-or-or/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/short-circuiting-assignment-question-question/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/symbol-type-param/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/type-alias-declaration/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/type-alias-declaration-export/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/type-alias-declaration-export-function-type/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/type-alias-declaration-export-object-type/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/type-alias-declaration-with-constrained-type-parameter/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/type-alias-object-without-annotation/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/type-assertion-in-arrow-function/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/type-assertion-in-function/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/type-assertion-in-interface/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/type-assertion-in-method/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-arrow-function/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-function/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-interface/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/type-assertion-with-guard-in-method/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/type-guard-in-arrow-function/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/type-guard-in-function/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/type-guard-in-interface/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/type-guard-in-method/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/type-import-type/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/type-import-type-with-type-parameters-in-type-reference/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/type-only-export-specifiers/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/type-only-import-specifiers/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/type-parameters-comments/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/type-parameters-comments-heritage/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/type-reference-comments/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/typed-keyword-bigint/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/typed-keyword-boolean/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/typed-keyword-false/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/typed-keyword-never/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/typed-keyword-null/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/typed-keyword-number/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/typed-keyword-object/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/typed-keyword-string/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/typed-keyword-symbol/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/typed-keyword-true/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/typed-keyword-undefined/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/typed-keyword-unknown/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/typed-keyword-void/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/typed-method-signature/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/typed-this/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/union-intersection/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/unique-symbol/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/unknown-type-annotation/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/var-with-dotted-type/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/var-with-type/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/variable-declaration-type-annotation-spacing/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/class-decorators/fixtures/class-decorator/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/class-decorators/fixtures/class-decorator-factory/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/class-decorators/fixtures/class-parameter-property/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/class-decorators/fixtures/export-default-class-decorator/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/class-decorators/fixtures/export-named-class-decorator/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/comments/fixtures/type-assertion-regression-test/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/declare/fixtures/abstract-class/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/declare/fixtures/class/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/declare/fixtures/enum/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/declare/fixtures/function/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/declare/fixtures/interface/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/declare/fixtures/module/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/declare/fixtures/namespace/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/declare/fixtures/type-alias/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/declare/fixtures/variable/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/class-empty-extends/fixture 1`] = ` -TSError { - "column": 17, - "index": 90, - "lineNumber": 3, - "message": "'extends' list cannot be empty.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/class-empty-extends-implements/fixture 1`] = ` -TSError { - "column": 17, - "index": 90, - "lineNumber": 3, - "message": "'extends' list cannot be empty.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/class-extends-empty-implements/fixture 1`] = ` -TSError { - "column": 32, - "index": 105, - "lineNumber": 3, - "message": "'implements' list cannot be empty.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/class-multiple-implements/fixture 1`] = ` -TSError { - "column": 21, - "index": 94, - "lineNumber": 3, - "message": "'implements' clause already seen.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/decorator-on-enum-declaration/fixture 1`] = ` -TSError { - "column": 0, - "index": 73, - "lineNumber": 3, - "message": "Decorators are not valid here.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/decorator-on-function/fixture 1`] = ` -TSError { - "column": 0, - "index": 73, - "lineNumber": 3, - "message": "Decorators are not valid here.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/decorator-on-interface-declaration/fixture 1`] = ` -TSError { - "column": 0, - "index": 73, - "lineNumber": 3, - "message": "Decorators are not valid here.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/decorator-on-variable/fixture 1`] = ` -TSError { - "column": 0, - "index": 73, - "lineNumber": 3, - "message": "Decorators are not valid here.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/empty-type-arguments/fixture 1`] = ` -TSError { - "column": 14, - "index": 87, - "lineNumber": 3, - "message": "Type argument list cannot be empty.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/empty-type-arguments-in-call-expression/fixture 1`] = ` -TSError { - "column": 3, - "index": 76, - "lineNumber": 3, - "message": "Type argument list cannot be empty.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/empty-type-arguments-in-new-expression/fixture 1`] = ` -TSError { - "column": 7, - "index": 80, - "lineNumber": 3, - "message": "Type argument list cannot be empty.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/empty-type-parameters/fixture 1`] = ` -TSError { - "column": 11, - "index": 84, - "lineNumber": 3, - "message": "Type parameter list cannot be empty.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/empty-type-parameters-in-arrow-function/fixture 1`] = ` -TSError { - "column": 11, - "index": 84, - "lineNumber": 3, - "message": "Type parameter list cannot be empty.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/empty-type-parameters-in-constructor/fixture 1`] = ` -TSError { - "column": 13, - "index": 98, - "lineNumber": 4, - "message": "Type parameter list cannot be empty.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/empty-type-parameters-in-function-expression/fixture 1`] = ` -TSError { - "column": 20, - "index": 93, - "lineNumber": 3, - "message": "Type parameter list cannot be empty.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/empty-type-parameters-in-method/fixture 1`] = ` -TSError { - "column": 6, - "index": 91, - "lineNumber": 4, - "message": "Type parameter list cannot be empty.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/empty-type-parameters-in-method-signature/fixture 1`] = ` -TSError { - "column": 6, - "index": 95, - "lineNumber": 4, - "message": "Type parameter list cannot be empty.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/enum-with-keywords/fixture 1`] = ` -TSError { - "column": 7, - "index": 80, - "lineNumber": 3, - "message": "'private' modifier cannot appear on a module or namespace element.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/index-signature-parameters/fixture 1`] = ` -TSError { - "column": 3, - "index": 89, - "lineNumber": 4, - "message": "An index signature must have exactly one parameter.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/interface-empty-extends/fixture 1`] = ` -TSError { - "column": 21, - "index": 94, - "lineNumber": 3, - "message": "'extends' list cannot be empty.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/interface-implements/fixture 1`] = ` -TSError { - "column": 12, - "index": 85, - "lineNumber": 3, - "message": "Interface declaration cannot have 'implements' clause.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/interface-index-signature-export/fixture 1`] = ` -TSError { - "column": 2, - "index": 91, - "lineNumber": 4, - "message": "'export' modifier cannot appear on an index signature.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/interface-index-signature-private/fixture 1`] = ` -TSError { - "column": 2, - "index": 91, - "lineNumber": 4, - "message": "'private' modifier cannot appear on an index signature.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/interface-index-signature-protected/fixture 1`] = ` -TSError { - "column": 2, - "index": 91, - "lineNumber": 4, - "message": "'protected' modifier cannot appear on an index signature.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/interface-index-signature-public/fixture 1`] = ` -TSError { - "column": 2, - "index": 91, - "lineNumber": 4, - "message": "'public' modifier cannot appear on an index signature.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/interface-index-signature-static/fixture 1`] = ` -TSError { - "column": 2, - "index": 91, - "lineNumber": 4, - "message": "'static' modifier cannot appear on an index signature.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/interface-method-export/fixture 1`] = ` -TSError { - "column": 4, - "index": 93, - "lineNumber": 4, - "message": "'export' modifier cannot appear on a type member.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/interface-method-private/fixture 1`] = ` -TSError { - "column": 4, - "index": 93, - "lineNumber": 4, - "message": "'private' modifier cannot appear on a type member.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/interface-method-protected/fixture 1`] = ` -TSError { - "column": 2, - "index": 91, - "lineNumber": 4, - "message": "'protected' modifier cannot appear on a type member.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/interface-method-public/fixture 1`] = ` -TSError { - "column": 4, - "index": 93, - "lineNumber": 4, - "message": "'public' modifier cannot appear on a type member.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/interface-method-readonly/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/interface-method-static/fixture 1`] = ` -TSError { - "column": 2, - "index": 91, - "lineNumber": 4, - "message": "'static' modifier cannot appear on a type member.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/interface-multiple-extends/fixture 1`] = ` -TSError { - "column": 26, - "index": 99, - "lineNumber": 3, - "message": "'extends' clause already seen.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/interface-property-export/fixture 1`] = ` -TSError { - "column": 2, - "index": 91, - "lineNumber": 4, - "message": "'export' modifier cannot appear on a type member.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/interface-property-private/fixture 1`] = ` -TSError { - "column": 2, - "index": 91, - "lineNumber": 4, - "message": "'private' modifier cannot appear on a type member.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/interface-property-protected/fixture 1`] = ` -TSError { - "column": 2, - "index": 91, - "lineNumber": 4, - "message": "'protected' modifier cannot appear on a type member.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/interface-property-public/fixture 1`] = ` -TSError { - "column": 4, - "index": 93, - "lineNumber": 4, - "message": "'public' modifier cannot appear on a type member.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/interface-property-static/fixture 1`] = ` -TSError { - "column": 2, - "index": 91, - "lineNumber": 4, - "message": "'static' modifier cannot appear on a type member.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/interface-property-with-default-value/fixture 1`] = ` -TSError { - "column": 16, - "index": 105, - "lineNumber": 4, - "message": "An interface property cannot have an initializer.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/interface-with-no-body/fixture 1`] = ` -TSError { - "column": 0, - "index": 87, - "lineNumber": 4, - "message": "'{' expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/interface-with-optional-index-signature/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/object-assertion-not-allowed/fixture 1`] = ` -TSError { - "column": 3, - "index": 76, - "lineNumber": 3, - "message": "A definite assignment assertion '!' is not permitted in this context.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/object-optional-not-allowed/fixture 1`] = ` -TSError { - "column": 3, - "index": 76, - "lineNumber": 3, - "message": "An object member cannot be declared optional.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/errorRecovery/fixtures/_error_/solo-const/fixture 1`] = ` -TSError { - "column": 5, - "index": 78, - "lineNumber": 3, - "message": "Variable declaration list cannot be empty.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/expressions/fixtures/_error_/instantiation-expression/fixture 1`] = ` -TSError { - "column": 7, - "index": 87, - "lineNumber": 5, - "message": "Expression expected.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/expressions/fixtures/call-expression-type-arguments/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/expressions/fixtures/new-expression-type-arguments/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/expressions/fixtures/optional-call-expression-type-arguments/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/expressions/fixtures/tagged-template-expression-type-arguments/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/method-decorators/fixtures/method-decorator-factory-instance-member/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/method-decorators/fixtures/method-decorator-factory-static-member/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/method-decorators/fixtures/method-decorator-instance-member/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/method-decorators/fixtures/method-decorator-static-member/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/namespaces-and-modules/fixtures/ambient-module-declaration-with-import/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/namespaces-and-modules/fixtures/declare-namespace-with-exported-function/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/namespaces-and-modules/fixtures/global-module-declaration/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/namespaces-and-modules/fixtures/module-with-default-exports/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/namespaces-and-modules/fixtures/nested-internal-module/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/namespaces-and-modules/fixtures/shorthand-ambient-module-declaration/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/parameter-decorators/fixtures/_error_/parameter-array-pattern-decorator/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/parameter-decorators/fixtures/_error_/parameter-rest-element-decorator/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-constructor/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-decorator-instance-member/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-decorator-static-member/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-instance-member/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-static-member/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/parameter-decorators/fixtures/parameter-object-pattern-decorator/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/property-decorators/fixtures/property-decorator-factory-instance-member/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/property-decorators/fixtures/property-decorator-factory-static-member/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/property-decorators/fixtures/property-decorator-instance-member/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/property-decorators/fixtures/property-decorator-static-member/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/array-type/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/conditional/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/conditional-infer/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/conditional-infer-nested/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/conditional-infer-simple/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/conditional-infer-with-constraint/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/conditional-with-null/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/constructor/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/constructor-abstract/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/constructor-empty/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/constructor-generic/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/constructor-in-generic/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/constructor-with-rest/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/function/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/function-generic/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/function-in-generic/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/function-with-array-destruction/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/function-with-object-destruction/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/function-with-rest/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/function-with-this/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/index-signature/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/index-signature-readonly/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/index-signature-without-type/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/indexed/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/interface-with-accessors/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/intersection-type/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/literal-number/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/literal-number-negative/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/literal-string/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/mapped/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/mapped-named-type/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/mapped-readonly/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/mapped-readonly-minus/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/mapped-readonly-plus/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/mapped-untypped/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/nested-types/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/object-literal-type-with-accessors/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/optional-variance-in/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/optional-variance-in-and-out/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/optional-variance-in-out/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/optional-variance-out/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/parenthesized-type/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/reference/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/reference-generic/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/reference-generic-nested/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/template-literal-type-1/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/template-literal-type-2/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/template-literal-type-3/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/template-literal-type-4/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/this-type/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/this-type-expanded/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/tuple/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/tuple-empty/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/tuple-named/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/tuple-named-optional/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/tuple-named-rest/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/tuple-named-type/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/tuple-optional/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/tuple-rest/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/tuple-type/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/type-literal/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/type-operator/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/typeof/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/typeof-this/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/typeof-with-type-parameters/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/union-intersection/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/types/fixtures/union-type/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; diff --git a/packages/typescript-estree/tests/lib/convert.test.ts b/packages/typescript-estree/tests/lib/convert.test.ts index fb3ac3f63139..7b5cf272252f 100644 --- a/packages/typescript-estree/tests/lib/convert.test.ts +++ b/packages/typescript-estree/tests/lib/convert.test.ts @@ -21,6 +21,7 @@ describe('convert', () => { function fakeUnknownKind(node: ts.Node): void { ts.forEachChild(node, fakeUnknownKind); // @ts-expect-error -- intentionally writing to a readonly field + // eslint-disable-next-line deprecation/deprecation node.kind = ts.SyntaxKind.UnparsedPrologue; } diff --git a/packages/typescript-estree/tests/lib/semantic-diagnostics-enabled.test.ts b/packages/typescript-estree/tests/lib/semantic-diagnostics-enabled.test.ts deleted file mode 100644 index b87abc896cbe..000000000000 --- a/packages/typescript-estree/tests/lib/semantic-diagnostics-enabled.test.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { readFileSync } from 'fs'; -import glob from 'glob'; -import path from 'path'; - -import * as parser from '../../src'; -import { formatSnapshotName, isJSXFileType } from '../../tools/test-utils'; -import { serializer } from '../../tools/tserror-serializer'; - -/** - * Process all fixtures, we will only snapshot the ones that have semantic errors - * which are ignored by default parsing logic. - */ -const FIXTURES_DIR = path.join(__dirname, '../../../ast-spec/src'); - -const testFiles = glob.sync('**/fixture.ts', { - cwd: FIXTURES_DIR, -}); - -expect.addSnapshotSerializer(serializer); - -describe('Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled', () => { - testFiles.forEach(filename => { - const code = readFileSync(path.join(FIXTURES_DIR, filename), 'utf8'); - const fileExtension = path.extname(filename); - const config: parser.TSESTreeOptions = { - loc: true, - range: true, - tokens: true, - errorOnUnknownASTType: true, - errorOnTypeScriptSyntacticAndSemanticIssues: true, - jsx: isJSXFileType(fileExtension), - }; - it(formatSnapshotName(filename, FIXTURES_DIR, fileExtension), () => { - expect.assertions(1); - try { - parser.parseAndGenerateServices(code, config); - expect( - 'TEST OUTPUT: No semantic or syntactic issues found', - ).toMatchSnapshot(); - } catch (err) { - expect(err).toMatchSnapshot(); - } - }); - }); -}); diff --git a/packages/typescript-estree/tools/test-utils.ts b/packages/typescript-estree/tools/test-utils.ts index aef5601ebe2f..c8ebbd9ceca1 100644 --- a/packages/typescript-estree/tools/test-utils.ts +++ b/packages/typescript-estree/tools/test-utils.ts @@ -132,7 +132,7 @@ export function omitDeep( for (const prop in node) { if (Object.prototype.hasOwnProperty.call(node, prop)) { - if (shouldOmit(prop, node[prop]) || typeof node[prop] === 'undefined') { + if (shouldOmit(prop, node[prop]) || node[prop] === undefined) { delete node[prop]; continue; } diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md index 106a387ad881..7d1144d2da5e 100644 --- a/packages/utils/CHANGELOG.md +++ b/packages/utils/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [5.55.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.54.1...v5.55.0) (2023-03-13) + + +### Features + +* use [@eslint-community](https://github.com/eslint-community) dependencies ([#6603](https://github.com/typescript-eslint/typescript-eslint/issues/6603)) ([5f6ed73](https://github.com/typescript-eslint/typescript-eslint/commit/5f6ed738a2b8c08878999e24477e3c206a0ade1b)) + + + + + ## [5.54.1](https://github.com/typescript-eslint/typescript-eslint/compare/v5.54.0...v5.54.1) (2023-03-06) **Note:** Version bump only for package @typescript-eslint/utils diff --git a/packages/utils/package.json b/packages/utils/package.json index 266f24b0c527..f2e88d771a88 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/utils", - "version": "5.54.1", + "version": "5.55.0", "description": "Utilities for working with TypeScript + ESLint together", "keywords": [ "eslint", @@ -39,20 +39,20 @@ "typecheck": "tsc -p tsconfig.json --noEmit" }, "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", "@types/json-schema": "^7.0.9", "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.54.1", - "@typescript-eslint/types": "5.54.1", - "@typescript-eslint/typescript-estree": "5.54.1", + "@typescript-eslint/scope-manager": "5.55.0", + "@typescript-eslint/types": "5.55.0", + "@typescript-eslint/typescript-estree": "5.55.0", "eslint-scope": "^5.1.1", - "eslint-utils": "^3.0.0", "semver": "^7.3.7" }, "peerDependencies": { "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" }, "devDependencies": { - "@typescript-eslint/parser": "5.54.1", + "@typescript-eslint/parser": "5.55.0", "typescript": "*" }, "funding": { diff --git a/packages/utils/src/ast-utils/eslint-utils/PatternMatcher.ts b/packages/utils/src/ast-utils/eslint-utils/PatternMatcher.ts index 3f45db7db467..0cf5708f82ed 100644 --- a/packages/utils/src/ast-utils/eslint-utils/PatternMatcher.ts +++ b/packages/utils/src/ast-utils/eslint-utils/PatternMatcher.ts @@ -1,24 +1,24 @@ -import * as eslintUtils from 'eslint-utils'; +import * as eslintUtils from '@eslint-community/eslint-utils'; interface PatternMatcher { /** * Iterate all matched parts in a given string. * - * @see {@link https://eslint-utils.mysticatea.dev/api/ast-utils.html#matcher-execall} + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#matcher-execall} */ execAll(str: string): IterableIterator; /** * Check whether this pattern matches a given string or not. * - * @see {@link https://eslint-utils.mysticatea.dev/api/ast-utils.html#matcher-test} + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#matcher-test} */ test(str: string): boolean; /** * Replace all matched parts by a given replacer. * - * @see {@link https://eslint-utils.mysticatea.dev/api/ast-utils.html#matcher-symbol-replace} + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#matcher-symbol-replace} * @example * const { PatternMatcher } = require("eslint-utils") * const matcher = new PatternMatcher(/\\p{Script=Greek}/g) @@ -47,7 +47,7 @@ interface PatternMatcher { * The class to find a pattern in strings as handling escape sequences. * It ignores the found pattern if it's escaped with `\`. * - * @see {@link https://eslint-utils.mysticatea.dev/api/ast-utils.html#patternmatcher-class} + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#patternmatcher-class} */ const PatternMatcher = eslintUtils.PatternMatcher as { new (pattern: RegExp, options?: { escaped?: boolean }): PatternMatcher; diff --git a/packages/utils/src/ast-utils/eslint-utils/ReferenceTracker.ts b/packages/utils/src/ast-utils/eslint-utils/ReferenceTracker.ts index 893c16ffc0ce..9e0841fb4de4 100644 --- a/packages/utils/src/ast-utils/eslint-utils/ReferenceTracker.ts +++ b/packages/utils/src/ast-utils/eslint-utils/ReferenceTracker.ts @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/no-namespace */ -import * as eslintUtils from 'eslint-utils'; +import * as eslintUtils from '@eslint-community/eslint-utils'; import type * as TSESLint from '../../ts-eslint'; import type { TSESTree } from '../../ts-estree'; @@ -15,7 +15,7 @@ interface ReferenceTracker { * Iterate the references that the given `traceMap` determined. * This method starts to search from global variables. * - * @see {@link https://eslint-utils.mysticatea.dev/api/scope-utils.html#tracker-iterateglobalreferences} + * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#tracker-iterateglobalreferences} */ iterateGlobalReferences( traceMap: ReferenceTracker.TraceMap, @@ -25,7 +25,7 @@ interface ReferenceTracker { * Iterate the references that the given `traceMap` determined. * This method starts to search from `require()` expression. * - * @see {@link https://eslint-utils.mysticatea.dev/api/scope-utils.html#tracker-iteratecjsreferences} + * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#tracker-iteratecjsreferences} */ iterateCjsReferences( traceMap: ReferenceTracker.TraceMap, @@ -35,7 +35,7 @@ interface ReferenceTracker { * Iterate the references that the given `traceMap` determined. * This method starts to search from `import`/`export` declarations. * - * @see {@link https://eslint-utils.mysticatea.dev/api/scope-utils.html#tracker-iterateesmreferences} + * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#tracker-iterateesmreferences} */ iterateEsmReferences( traceMap: ReferenceTracker.TraceMap, @@ -91,7 +91,7 @@ namespace ReferenceTracker { /** * The tracker for references. This provides reference tracking for global variables, CommonJS modules, and ES modules. * - * @see {@link https://eslint-utils.mysticatea.dev/api/scope-utils.html#referencetracker-class} + * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#referencetracker-class} */ const ReferenceTracker = eslintUtils.ReferenceTracker as ReferenceTrackerStatic; diff --git a/packages/utils/src/ast-utils/eslint-utils/astUtilities.ts b/packages/utils/src/ast-utils/eslint-utils/astUtilities.ts index 6410d0b49de0..e57046ca12d1 100644 --- a/packages/utils/src/ast-utils/eslint-utils/astUtilities.ts +++ b/packages/utils/src/ast-utils/eslint-utils/astUtilities.ts @@ -1,4 +1,4 @@ -import * as eslintUtils from 'eslint-utils'; +import * as eslintUtils from '@eslint-community/eslint-utils'; import type * as TSESLint from '../../ts-eslint'; import type { TSESTree } from '../../ts-estree'; @@ -6,7 +6,7 @@ import type { TSESTree } from '../../ts-estree'; /** * Get the proper location of a given function node to report. * - * @see {@link https://eslint-utils.mysticatea.dev/api/ast-utils.html#getfunctionheadlocation} + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getfunctionheadlocation} */ const getFunctionHeadLocation = eslintUtils.getFunctionHeadLocation as ( node: @@ -19,7 +19,7 @@ const getFunctionHeadLocation = eslintUtils.getFunctionHeadLocation as ( /** * Get the name and kind of a given function node. * - * @see {@link https://eslint-utils.mysticatea.dev/api/ast-utils.html#getfunctionnamewithkind} + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getfunctionnamewithkind} */ const getFunctionNameWithKind = eslintUtils.getFunctionNameWithKind as ( node: @@ -33,7 +33,7 @@ const getFunctionNameWithKind = eslintUtils.getFunctionNameWithKind as ( * Get the property name of a given property node. * If the node is a computed property, this tries to compute the property name by the getStringIfConstant function. * - * @see {@link https://eslint-utils.mysticatea.dev/api/ast-utils.html#getpropertyname} + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getpropertyname} * @returns The property name of the node. If the property name is not constant then it returns `null`. */ const getPropertyName = eslintUtils.getPropertyName as ( @@ -52,7 +52,7 @@ const getPropertyName = eslintUtils.getPropertyName as ( * not been modified. * For example, it considers `Symbol.iterator`, ` String.raw``hello`` `, and `Object.freeze({a: 1}).a` as static. * - * @see {@link https://eslint-utils.mysticatea.dev/api/ast-utils.html#getstaticvalue} + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstaticvalue} * @returns The `{ value: any }` shaped object. The `value` property is the static value. If it couldn't compute the * static value of the node, it returns `null`. */ @@ -65,7 +65,7 @@ const getStaticValue = eslintUtils.getStaticValue as ( * Get the string value of a given node. * This function is a tiny wrapper of the getStaticValue function. * - * @see {@link https://eslint-utils.mysticatea.dev/api/ast-utils.html#getstringifconstant} + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstringifconstant} */ const getStringIfConstant = eslintUtils.getStringIfConstant as ( node: TSESTree.Node, @@ -93,7 +93,7 @@ const getStringIfConstant = eslintUtils.getStringIfConstant as ( * - `Property([computed = true])` * - `UnaryExpression([operator = "-" | "+" | "!" | "~"])` * - * @see {@link https://eslint-utils.mysticatea.dev/api/ast-utils.html#hassideeffect} + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#hassideeffect} */ const hasSideEffect = eslintUtils.hasSideEffect as ( node: TSESTree.Node, @@ -109,7 +109,7 @@ const isParenthesized = eslintUtils.isParenthesized as { * Check whether a given node is parenthesized or not. * This function detects it correctly even if it's parenthesized by specific syntax. * - * @see {@link https://eslint-utils.mysticatea.dev/api/ast-utils.html#isparenthesized} + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#isparenthesized} * @returns `true` if the node is parenthesized. * If `times` was given, it returns `true` only if the node is parenthesized the `times` times. * For example, `isParenthesized(2, node, sourceCode)` returns true for `((foo))`, but not for `(foo)`. diff --git a/packages/utils/src/ast-utils/eslint-utils/predicates.ts b/packages/utils/src/ast-utils/eslint-utils/predicates.ts index 9d1534882d1c..2a3d6d678d43 100644 --- a/packages/utils/src/ast-utils/eslint-utils/predicates.ts +++ b/packages/utils/src/ast-utils/eslint-utils/predicates.ts @@ -1,4 +1,4 @@ -import * as eslintUtils from 'eslint-utils'; +import * as eslintUtils from '@eslint-community/eslint-utils'; import type { TSESTree } from '../../ts-estree'; diff --git a/packages/utils/src/ast-utils/eslint-utils/scopeAnalysis.ts b/packages/utils/src/ast-utils/eslint-utils/scopeAnalysis.ts index 61ab8e33a41c..563c51c7782b 100644 --- a/packages/utils/src/ast-utils/eslint-utils/scopeAnalysis.ts +++ b/packages/utils/src/ast-utils/eslint-utils/scopeAnalysis.ts @@ -1,4 +1,4 @@ -import * as eslintUtils from 'eslint-utils'; +import * as eslintUtils from '@eslint-community/eslint-utils'; import type * as TSESLint from '../../ts-eslint'; import type { TSESTree } from '../../ts-estree'; @@ -6,7 +6,7 @@ import type { TSESTree } from '../../ts-estree'; /** * Get the variable of a given name. * - * @see {@link https://eslint-utils.mysticatea.dev/api/scope-utils.html#findvariable} + * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#findvariable} */ const findVariable = eslintUtils.findVariable as ( initialScope: TSESLint.Scope.Scope, @@ -16,7 +16,7 @@ const findVariable = eslintUtils.findVariable as ( /** * Get the innermost scope which contains a given node. * - * @see {@link https://eslint-utils.mysticatea.dev/api/scope-utils.html#getinnermostscope} + * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#getinnermostscope} * @returns The innermost scope which contains the given node. * If such scope doesn't exist then it returns the 1st argument `initialScope`. */ diff --git a/packages/utils/src/eslint-utils/rule-tester/RuleTester.ts b/packages/utils/src/eslint-utils/rule-tester/RuleTester.ts index 7350de3a9758..623157ed8587 100644 --- a/packages/utils/src/eslint-utils/rule-tester/RuleTester.ts +++ b/packages/utils/src/eslint-utils/rule-tester/RuleTester.ts @@ -306,12 +306,8 @@ class RuleTester extends BaseRuleTester.RuleTester { * Simple no-op tag to mark code samples as "should not format with prettier" * for the internal/plugin-test-formatting lint rule */ -function noFormat(strings: TemplateStringsArray, ...keys: string[]): string { - const lastIndex = strings.length - 1; - return ( - strings.slice(0, lastIndex).reduce((p, s, i) => p + s + keys[i], '') + - strings[lastIndex] - ); +function noFormat(raw: TemplateStringsArray, ...keys: string[]): string { + return String.raw({ raw }, ...keys); } export { noFormat, RuleTester }; diff --git a/packages/utils/typings/eslint-utils.d.ts b/packages/utils/typings/eslint-community-eslint-utils.d.ts similarity index 96% rename from packages/utils/typings/eslint-utils.d.ts rename to packages/utils/typings/eslint-community-eslint-utils.d.ts index 5843e99466f8..7c5fea7d2562 100644 --- a/packages/utils/typings/eslint-utils.d.ts +++ b/packages/utils/typings/eslint-community-eslint-utils.d.ts @@ -1,4 +1,4 @@ -declare module 'eslint-utils' { +declare module '@eslint-community/eslint-utils' { export const findVariable: unknown; export const getFunctionHeadLocation: unknown; export const getFunctionNameWithKind: unknown; diff --git a/packages/visitor-keys/CHANGELOG.md b/packages/visitor-keys/CHANGELOG.md index 0b4588c92482..769c12987399 100644 --- a/packages/visitor-keys/CHANGELOG.md +++ b/packages/visitor-keys/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [5.55.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.54.1...v5.55.0) (2023-03-13) + +**Note:** Version bump only for package @typescript-eslint/visitor-keys + + + + + ## [5.54.1](https://github.com/typescript-eslint/typescript-eslint/compare/v5.54.0...v5.54.1) (2023-03-06) **Note:** Version bump only for package @typescript-eslint/visitor-keys diff --git a/packages/visitor-keys/package.json b/packages/visitor-keys/package.json index 20c6139e741c..e0118d2872c8 100644 --- a/packages/visitor-keys/package.json +++ b/packages/visitor-keys/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/visitor-keys", - "version": "5.54.1", + "version": "5.55.0", "description": "Visitor keys used to help traverse the TypeScript-ESTree AST", "keywords": [ "eslint", @@ -39,7 +39,7 @@ "typecheck": "tsc -p tsconfig.json --noEmit" }, "dependencies": { - "@typescript-eslint/types": "5.54.1", + "@typescript-eslint/types": "5.55.0", "eslint-visitor-keys": "^3.3.0" }, "devDependencies": { diff --git a/packages/website-eslint/CHANGELOG.md b/packages/website-eslint/CHANGELOG.md index c8ae691762e0..401f00bb1f6c 100644 --- a/packages/website-eslint/CHANGELOG.md +++ b/packages/website-eslint/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [5.55.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.54.1...v5.55.0) (2023-03-13) + +**Note:** Version bump only for package @typescript-eslint/website-eslint + + + + + ## [5.54.1](https://github.com/typescript-eslint/typescript-eslint/compare/v5.54.0...v5.54.1) (2023-03-06) **Note:** Version bump only for package @typescript-eslint/website-eslint diff --git a/packages/website-eslint/package.json b/packages/website-eslint/package.json index 4694787fd03d..e1ed473b5465 100644 --- a/packages/website-eslint/package.json +++ b/packages/website-eslint/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/website-eslint", - "version": "5.54.1", + "version": "5.55.0", "private": true, "description": "ESLint which works in browsers.", "engines": { @@ -16,22 +16,23 @@ "format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore" }, "dependencies": { - "@typescript-eslint/types": "5.54.1", - "@typescript-eslint/utils": "5.54.1" + "@typescript-eslint/types": "5.55.0", + "@typescript-eslint/utils": "5.55.0" }, "devDependencies": { "@rollup/plugin-commonjs": "^23.0.0", "@rollup/plugin-json": "^5.0.0", "@rollup/plugin-node-resolve": "^15.0.0", + "@rollup/plugin-terser": "^0.4.0", "@rollup/pluginutils": "^5.0.0", - "@typescript-eslint/eslint-plugin": "5.54.1", - "@typescript-eslint/parser": "5.54.1", - "@typescript-eslint/scope-manager": "5.54.1", - "@typescript-eslint/typescript-estree": "5.54.1", - "@typescript-eslint/visitor-keys": "5.54.1", + "@typescript-eslint/eslint-plugin": "5.55.0", + "@typescript-eslint/parser": "5.55.0", + "@typescript-eslint/scope-manager": "5.55.0", + "@typescript-eslint/typescript-estree": "5.55.0", + "@typescript-eslint/visitor-keys": "5.55.0", "eslint": "*", + "esquery": "*", "rollup": "^2.75.4", - "rollup-plugin-terser": "^7.0.2", "semver": "^7.3.7" } } diff --git a/packages/website-eslint/rollup.config.js b/packages/website-eslint/rollup.config.js index 5fde0fd05693..8f17c5efe2a4 100644 --- a/packages/website-eslint/rollup.config.js +++ b/packages/website-eslint/rollup.config.js @@ -1,7 +1,7 @@ import commonjs from '@rollup/plugin-commonjs'; import json from '@rollup/plugin-json'; import resolve from '@rollup/plugin-node-resolve'; -import { terser } from 'rollup-plugin-terser'; +import terser from '@rollup/plugin-terser'; const replace = require('./rollup-plugin/replace'); @@ -18,6 +18,14 @@ module.exports = { plugins: [ terser({ keep_classnames: true, + compress: { + global_defs: { + 'process.platform': '"browser"', + 'process.env.CI': 'undefined', + '@process.env.TSESTREE_SINGLE_RUN': 'undefined', + '@process.env.DEBUG': 'undefined', + }, + }, }), replace({ // verbose: true, @@ -108,6 +116,16 @@ module.exports = { test: /process\.env\.IGNORE_TEST_WIN32/u, replace: 'true', }, + { + // replace all process.cwd with "/" + test: /process\.cwd\(\)/u, + replace: '"/"', + }, + { + // replace all process.emitWarning with console.warn + test: /process.emitWarning/u, + replace: 'console.warn', + }, ], }), resolve({ diff --git a/packages/website-eslint/src/linter/linter.js b/packages/website-eslint/src/linter/linter.js index fede1540f98c..41454dd4e74e 100644 --- a/packages/website-eslint/src/linter/linter.js +++ b/packages/website-eslint/src/linter/linter.js @@ -1,6 +1,7 @@ import 'vs/language/typescript/tsWorker'; import { Linter } from 'eslint'; import rules from '@typescript-eslint/eslint-plugin/dist/rules'; +import esquery from 'esquery'; export function createLinter() { const linter = new Linter(); @@ -14,3 +15,5 @@ export { analyze } from '@typescript-eslint/scope-manager/dist/analyze'; export { visitorKeys } from '@typescript-eslint/visitor-keys/dist/visitor-keys'; export { astConverter } from '@typescript-eslint/typescript-estree/dist/ast-converter'; export { getScriptKind } from '@typescript-eslint/typescript-estree/dist/create-program/getScriptKind'; + +export { esquery }; diff --git a/packages/website-eslint/types/index.d.ts b/packages/website-eslint/types/index.d.ts index 7673f6d10a27..5793d9822c25 100644 --- a/packages/website-eslint/types/index.d.ts +++ b/packages/website-eslint/types/index.d.ts @@ -3,6 +3,7 @@ import type { TSESLint } from '@typescript-eslint/utils'; import { analyze } from '@typescript-eslint/scope-manager/dist/analyze'; import { astConverter } from '@typescript-eslint/typescript-estree/dist/ast-converter'; import { getScriptKind } from '@typescript-eslint/typescript-estree/dist/create-program/getScriptKind'; +import esquery from 'esquery'; export interface LintUtils { createLinter: () => TSESLint.Linter; @@ -10,4 +11,5 @@ export interface LintUtils { visitorKeys: TSESLint.SourceCode.VisitorKeys; astConverter: typeof astConverter; getScriptKind: typeof getScriptKind; + esquery: typeof esquery; } diff --git a/packages/website/CHANGELOG.md b/packages/website/CHANGELOG.md index 161814c0d548..9dfe758fff84 100644 --- a/packages/website/CHANGELOG.md +++ b/packages/website/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [5.55.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.54.1...v5.55.0) (2023-03-13) + + +### Features + +* update TypeScript to 5.0 RC ([#6570](https://github.com/typescript-eslint/typescript-eslint/issues/6570)) ([36ef0e1](https://github.com/typescript-eslint/typescript-eslint/commit/36ef0e16f31810c27dda299e739d1610b689d3ad)) + + + + + ## [5.54.1](https://github.com/typescript-eslint/typescript-eslint/compare/v5.54.0...v5.54.1) (2023-03-06) **Note:** Version bump only for package website diff --git a/packages/website/data/sponsors.json b/packages/website/data/sponsors.json index 14e57f8fec5d..cf5059d7ea3c 100644 --- a/packages/website/data/sponsors.json +++ b/packages/website/data/sponsors.json @@ -193,7 +193,7 @@ "image": "https://images.opencollective.com/gianpaj/5d62d25/avatar.png", "name": "Gianfranco Palumbo", "totalDonations": 10000, - "website": "http://gian.xyz" + "website": "https://gian.cool/" }, { "id": "The Guardian", diff --git a/packages/website/package.json b/packages/website/package.json index 03506b2f8640..326ef3a9f378 100644 --- a/packages/website/package.json +++ b/packages/website/package.json @@ -1,6 +1,6 @@ { "name": "website", - "version": "5.54.1", + "version": "5.55.0", "private": true, "scripts": { "build": "docusaurus build", @@ -21,8 +21,8 @@ "@docusaurus/remark-plugin-npm2yarn": "~2.2.0", "@docusaurus/theme-common": "~2.2.0", "@mdx-js/react": "1.6.22", - "@typescript-eslint/parser": "5.54.1", - "@typescript-eslint/website-eslint": "5.54.1", + "@typescript-eslint/parser": "5.55.0", + "@typescript-eslint/website-eslint": "5.55.0", "clsx": "^1.1.1", "eslint": "*", "json-schema": "^0.4.0", @@ -45,10 +45,11 @@ "@axe-core/playwright": "^4.4.5", "@docusaurus/module-type-aliases": "~2.2.0", "@playwright/test": "^1.27.1", + "@types/esquery": "^1.0.2", "@types/react": "^18.0.9", "@types/react-helmet": "^6.1.5", "@types/react-router-dom": "^5.3.3", - "@typescript-eslint/eslint-plugin": "5.54.1", + "@typescript-eslint/eslint-plugin": "5.55.0", "copy-webpack-plugin": "^11.0.0", "eslint-plugin-jsx-a11y": "^6.5.1", "eslint-plugin-react": "^7.29.4", diff --git a/packages/website/plugins/generated-rule-docs.ts b/packages/website/plugins/generated-rule-docs.ts index d29d240c91fc..2e5a32587003 100644 --- a/packages/website/plugins/generated-rule-docs.ts +++ b/packages/website/plugins/generated-rule-docs.ts @@ -46,14 +46,17 @@ export const generatedRuleDocs: Plugin = () => { return; } + // Workaround for root being un-narrowed inside closures + const children = root.children; + // 1. Remove the " 🛑 This file is source code, not the primary documentation location! 🛑" - root.children.splice( - root.children.findIndex(v => v.type === 'blockquote'), + children.splice( + children.findIndex(v => v.type === 'blockquote'), 1, ); // 2. Add a description of the rule at the top of the file - root.children.unshift( + children.unshift( { children: [ { @@ -86,87 +89,69 @@ export const generatedRuleDocs: Plugin = () => { `, type: 'jsx', }; - root.children.unshift(warningNode); + children.unshift(warningNode); } // 4. Make sure the appropriate headers exist to place content under - const [howToUseH2Index, optionsH2Index] = ((): [number, number] => { - let howToUseH2Index = root.children.findIndex( - createH2TextFilter('How to Use'), - ); - let optionsH2Index = root.children.findIndex( - createH2TextFilter('Options'), - ); - const relatedToH2Index = root.children.findIndex( - createH2TextFilter('Related To'), - ); - let whenNotToUseItH2Index = root.children.findIndex( - createH2TextFilter('When Not To Use It'), + // eslint-disable-next-line prefer-const + let [howToUseH2Index, optionsH2Index] = ((): [number, number] => { + // The first two may be autogenerated. Inserting one heading requires + // shifting all following ones + const headingNames = [ + 'How to Use', + 'Options', + 'When Not To Use It', + 'Related To', + ]; + const headingIndices = headingNames.map(text => + children.findIndex( + (node: unist.Node): node is mdast.Heading => + nodeIsHeading(node) && + node.depth === 2 && + node.children.length === 1 && + node.children[0].type === 'text' && + node.children[0].value === text, + ), ); - if (meta.docs.extendsBaseRule) { - if (howToUseH2Index === -1) { - if (optionsH2Index !== -1) { - howToUseH2Index = optionsH2Index; - optionsH2Index += 1; - - if (whenNotToUseItH2Index !== -1) { - whenNotToUseItH2Index += 1; - } - } else { - howToUseH2Index = - whenNotToUseItH2Index === -1 - ? root.children.length - : ++whenNotToUseItH2Index; - } - - root.children.splice(howToUseH2Index, 0, { + function insertIfMissing(name: string): void { + const num = headingNames.indexOf(name); + if (headingIndices[num] === -1) { + const insertIndex = + headingIndices.find(v => v !== -1) ?? children.length; + children.splice(insertIndex, 0, { children: [ { type: 'text', - value: 'How to Use', + value: name, }, ], depth: 2, type: 'heading', } as mdast.Heading); + headingIndices[num] = insertIndex; + for (let i = num + 1; i < headingIndices.length; i++) { + if (headingIndices[i] !== -1) { + headingIndices[i] += 1; + } + } } } - if (optionsH2Index === -1) { - optionsH2Index = - whenNotToUseItH2Index === -1 - ? relatedToH2Index === -1 - ? root.children.length - : relatedToH2Index - : whenNotToUseItH2Index; - root.children.splice(optionsH2Index, 0, { - children: [ - { - type: 'text', - value: 'Options', - }, - ], - depth: 2, - type: 'heading', - } as mdast.Heading); - - optionsH2Index += 1; + if (meta.docs.extendsBaseRule) { + insertIfMissing('How to Use'); } - - return [howToUseH2Index, optionsH2Index]; + insertIfMissing('Options'); + return [headingIndices[0], headingIndices[1]]; })(); - // 5. Add a description of how to use / options for the rule - const optionLevel = meta.docs.recommended === 'error' ? 'error' : 'warn'; - if (meta.docs.extendsBaseRule) { const extendsBaseRuleName = typeof meta.docs.extendsBaseRule === 'string' ? meta.docs.extendsBaseRule : file.stem; - root.children.splice(optionsH2Index + 1, 0, { + children.splice(optionsH2Index + 1, 0, { children: [ { value: 'See ', @@ -206,52 +191,60 @@ export const generatedRuleDocs: Plugin = () => { : '' } "${extendsBaseRuleName}": "off", - "@typescript-eslint/${file.stem}": "${optionLevel}" + "@typescript-eslint/${file.stem}": "error" } }`; }; - root.children.splice(howToUseH2Index + 1, 0, { - lang: 'js', - type: 'code', - meta: 'title=".eslintrc.cjs"', - value: `module.exports = ${getEslintrcString(true)};`, - } as mdast.Code); - - root.children.splice(howToUseH2Index + 2, 0, { - value: ``, - type: 'jsx', - } as unist.Node); + children.splice( + howToUseH2Index + 1, + 0, + { + lang: 'js', + type: 'code', + meta: 'title=".eslintrc.cjs"', + value: `module.exports = ${getEslintrcString(true)};`, + } as mdast.Code, + { + value: ``, + type: 'jsx', + } as unist.Node, + ); } else { // For non-extended rules, the code snippet is placed before the first h2 // (i.e. at the end of the initial explanation) - const firstH2Index = root.children.findIndex( + const firstH2Index = children.findIndex( child => nodeIsHeading(child) && child.depth === 2, ); const getEslintrcString = `{ "rules": { - "@typescript-eslint/${file.stem}": "${optionLevel}" + "@typescript-eslint/${file.stem}": "error" } }`; - root.children.splice(firstH2Index, 0, { - lang: 'js', - type: 'code', - meta: 'title=".eslintrc.cjs"', - value: `module.exports = ${getEslintrcString};`, - } as mdast.Code); + children.splice( + firstH2Index, + 0, + { + lang: 'js', + type: 'code', + meta: 'title=".eslintrc.cjs"', + value: `module.exports = ${getEslintrcString};`, + } as mdast.Code, + { + value: ``, + type: 'jsx', + } as unist.Node, + ); - root.children.splice(firstH2Index + 1, 0, { - value: ``, - type: 'jsx', - } as unist.Node); + optionsH2Index += 2; if (meta.schema.length === 0) { - root.children.splice(optionsH2Index + 1, 0, { + children.splice(optionsH2Index + 1, 0, { children: [ { type: 'text', @@ -276,8 +269,8 @@ export const generatedRuleDocs: Plugin = () => { } : meta.schema; - root.children.splice( - optionsH2Index + 2, + children.splice( + optionsH2Index + 1, 0, { children: [ @@ -326,8 +319,8 @@ export const generatedRuleDocs: Plugin = () => { } } - // 6. Add a link to view the rule's source and test code - root.children.push( + // 5. Add a link to view the rule's source and test code + children.push( { children: [ { @@ -385,9 +378,9 @@ export const generatedRuleDocs: Plugin = () => { } as mdast.List, ); - // 7. Also add a notice about coming from ESLint core for extension rules + // 6. Also add a notice about coming from ESLint core for extension rules if (meta.docs.extendsBaseRule) { - root.children.push({ + children.push({ children: [ { type: 'jsx', @@ -431,17 +424,6 @@ function nodeIsHeading(node: unist.Node): node is mdast.Heading { return node.type === 'heading'; } -function createH2TextFilter( - text: string, -): (node: unist.Node) => node is mdast.Heading { - return (node: unist.Node): node is mdast.Heading => - nodeIsHeading(node) && - node.depth === 2 && - node.children.length === 1 && - node.children[0].type === 'text' && - node.children[0].value === text; -} - function getUrlForRuleTest(ruleName: string): string { for (const localPath of [ `tests/rules/${ruleName}.test.ts`, diff --git a/packages/website/src/components/ASTViewerESTree.tsx b/packages/website/src/components/ASTViewerESTree.tsx index 29b5550cd140..4fcc82f278be 100644 --- a/packages/website/src/components/ASTViewerESTree.tsx +++ b/packages/website/src/components/ASTViewerESTree.tsx @@ -1,4 +1,5 @@ import type { TSESTree } from '@typescript-eslint/utils'; +import type * as ESQuery from 'esquery'; import React, { useMemo } from 'react'; import ASTViewer from './ast/ASTViewer'; @@ -8,17 +9,34 @@ import type { ASTViewerBaseProps } from './ast/types'; export interface ASTESTreeViewerProps extends ASTViewerBaseProps { readonly value: TSESTree.BaseNode; + readonly filter?: ESQuery.Selector; +} + +function tryToApplyFilter( + value: T, + filter?: ESQuery.Selector, +): T | T[] { + try { + if (window.esquery && filter) { + // @ts-expect-error - esquery requires js ast types + return window.esquery.match(value, filter); + } + } catch (e: unknown) { + // eslint-disable-next-line no-console + console.error(e); + } + return value; } export default function ASTViewerESTree({ value, position, onSelectNode, + filter, }: ASTESTreeViewerProps): JSX.Element { - const model = useMemo( - () => serialize(value, createESTreeSerializer()), - [value], - ); + const model = useMemo(() => { + return serialize(tryToApplyFilter(value, filter), createESTreeSerializer()); + }, [value, filter]); return ( diff --git a/packages/website/src/components/ESQueryFilter.module.css b/packages/website/src/components/ESQueryFilter.module.css new file mode 100644 index 000000000000..49dbce2ed6fe --- /dev/null +++ b/packages/website/src/components/ESQueryFilter.module.css @@ -0,0 +1,7 @@ +.searchContainer { + display: flex; + margin: 0 0 0.5rem 0; + position: sticky; + top: 0; + left: 0; +} diff --git a/packages/website/src/components/ESQueryFilter.tsx b/packages/website/src/components/ESQueryFilter.tsx new file mode 100644 index 000000000000..1e16de6205a3 --- /dev/null +++ b/packages/website/src/components/ESQueryFilter.tsx @@ -0,0 +1,39 @@ +import type { Selector } from 'esquery'; +import React, { useState } from 'react'; + +import styles from './ESQueryFilter.module.css'; +import Text from './inputs/Text'; + +export interface ESQueryFilterProps { + readonly onChange: (value: Selector) => void; + readonly onError: (value?: Error) => void; +} + +export function ESQueryFilter({ + onChange, + onError, +}: ESQueryFilterProps): JSX.Element { + const [value, setValue] = useState(''); + const changeEvent = (value: string): void => { + setValue(value); + try { + const queryParsed = window.esquery.parse(value); + onChange(queryParsed); + onError(undefined); + } catch (e: unknown) { + onError(e instanceof Error ? e : new Error(String(e))); + } + }; + + return ( +
+ +
+ ); +} diff --git a/packages/website/src/components/ErrorsViewer.module.css b/packages/website/src/components/ErrorsViewer.module.css index 415e12d55fc7..0c227bbb4c82 100644 --- a/packages/website/src/components/ErrorsViewer.module.css +++ b/packages/website/src/components/ErrorsViewer.module.css @@ -10,6 +10,7 @@ font-feature-settings: 'liga' 0, 'calt' 0; box-sizing: border-box; margin: 0; + white-space: break-spaces; } .fixerContainer { diff --git a/packages/website/src/components/ErrorsViewer.tsx b/packages/website/src/components/ErrorsViewer.tsx index 178d3fd6573a..b60d2dd97118 100644 --- a/packages/website/src/components/ErrorsViewer.tsx +++ b/packages/website/src/components/ErrorsViewer.tsx @@ -11,7 +11,19 @@ export interface ErrorsViewerProps { readonly value?: ErrorGroup[] | Error; } -export interface ErrorBlockProps { +export interface ErrorViewerProps { + readonly value: Error; + readonly title: string; + readonly type: AlertBlockProps['type']; +} + +interface AlertBlockProps { + readonly type: 'danger' | 'warning' | 'note' | 'info' | 'success'; + readonly children: React.ReactNode; + readonly fixer?: boolean; +} + +interface ErrorBlockProps { readonly item: ErrorItem; readonly setIsLocked: (value: boolean) => void; readonly isLocked: boolean; @@ -23,7 +35,9 @@ export interface FixButtonProps { readonly disabled: boolean; } -function severityClass(severity: Monaco.MarkerSeverity): string { +function severityClass( + severity: Monaco.MarkerSeverity, +): AlertBlockProps['type'] { switch (severity) { case 8: return 'danger'; @@ -50,63 +64,84 @@ function FixButton(props: FixButtonProps): JSX.Element { ); } +function AlertBlock(props: AlertBlockProps): JSX.Element { + return ( +
+
{props.children}
+
+ ); +} + function ErrorBlock({ item, setIsLocked, isLocked, }: ErrorBlockProps): JSX.Element { return ( -
-
-
-
- {item.message} {item.location} -
- {item.fixer && ( - - )} + +
+
+ {item.message} {item.location}
- {item.suggestions.length > 0 && ( -
- {item.suggestions.map((fixer, index) => ( -
- > {fixer.message} - -
- ))} -
+ {item.fixer && ( + )}
-
+ {item.suggestions.length > 0 && ( +
+ {item.suggestions.map((fixer, index) => ( +
+ > {fixer.message} + +
+ ))} +
+ )} + ); } function SuccessBlock(): JSX.Element { return ( -
-
-
-
All is ok!
-
+ +
+
All is ok!
-
+ ); } -export default function ErrorsViewer({ +export function ErrorViewer({ value, -}: ErrorsViewerProps): JSX.Element { + title, + type, +}: ErrorViewerProps): JSX.Element { + return ( +
+
+ +
+

{title}

+
+ {type === 'danger' ? value.stack : value.message} +
+
+
+ ); +} + +export function ErrorsViewer({ value }: ErrorsViewerProps): JSX.Element { const [isLocked, setIsLocked] = useState(false); useEffect(() => { @@ -114,14 +149,7 @@ export default function ErrorsViewer({ }, [value]); if (value && !Array.isArray(value)) { - return ( -
-
-

ESLint internal error

- {value?.stack} -
-
- ); + return ; } return ( diff --git a/packages/website/src/components/OptionsSelector.module.css b/packages/website/src/components/OptionsSelector.module.css index 4d915090e2db..a990748be47f 100644 --- a/packages/website/src/components/OptionsSelector.module.css +++ b/packages/website/src/components/OptionsSelector.module.css @@ -37,15 +37,17 @@ font-weight: 500; font-family: inherit; border-radius: 6px; - -webkit-appearance: none; + appearance: none; color: var(--ifm-font-color-secondary); border: 1px solid var(--ifm-color-emphasis-100); background: var(--ifm-color-emphasis-200); transition: border 0.3s ease; } + .optionInput::placeholder { color: var(--ifm-color-emphasis-700); } + .optionInput:focus { outline: none; border-color: var(--ifm-color-primary); diff --git a/packages/website/src/components/Playground.tsx b/packages/website/src/components/Playground.tsx index a972a32b31a1..6fe79df9f247 100644 --- a/packages/website/src/components/Playground.tsx +++ b/packages/website/src/components/Playground.tsx @@ -6,9 +6,11 @@ import { defaultTsConfig, } from '@site/src/components/config/utils'; import EditorTabs from '@site/src/components/EditorTabs'; -import ErrorsViewer from '@site/src/components/ErrorsViewer'; +import { ErrorsViewer, ErrorViewer } from '@site/src/components/ErrorsViewer'; +import { ESQueryFilter } from '@site/src/components/ESQueryFilter'; import type { TSESTree } from '@typescript-eslint/utils'; import clsx from 'clsx'; +import type * as ESQuery from 'esquery'; import type Monaco from 'monaco-editor'; import React, { useCallback, useReducer, useState } from 'react'; import type { SourceFile } from 'typescript'; @@ -69,6 +71,8 @@ function Playground(): JSX.Element { const [position, setPosition] = useState(null); const [activeTab, setTab] = useState('code'); const [showModal, setShowModal] = useState(false); + const [esQueryFilter, setEsQueryFilter] = useState(); + const [esQueryError, setEsQueryError] = useState(); const enableSplitPanes = useMediaQuery('(min-width: 996px)'); const updateModal = useCallback( @@ -161,6 +165,12 @@ function Playground(): JSX.Element { />
+ {state.showAST === 'es' && ( + + )} {(state.showAST === 'ts' && tsAst && ( )) || + (state.showAST === 'es' && esQueryError && ( + + )) || (state.showAST === 'es' && esAst && ( )) || } diff --git a/packages/website/src/components/config/ConfigEditor.module.css b/packages/website/src/components/config/ConfigEditor.module.css index b2f25dfcbe0f..93d34e5c3086 100644 --- a/packages/website/src/components/config/ConfigEditor.module.css +++ b/packages/website/src/components/config/ConfigEditor.module.css @@ -1,17 +1,4 @@ .search { - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; - background: var(--ifm-navbar-search-input-background-color) - var(--ifm-navbar-search-input-icon) no-repeat 0.75rem center / 1rem 1rem; - border: none; - color: var(--ifm-navbar-search-input-color); - cursor: text; - display: inline-block; - height: 2rem; - padding: 0 0.5rem 0 2.25rem; - font-size: 0.9rem; - flex: 1; border-radius: 0.2rem; } diff --git a/packages/website/src/components/config/ConfigEditor.tsx b/packages/website/src/components/config/ConfigEditor.tsx index 0d4915d281b6..361ac95b667a 100644 --- a/packages/website/src/components/config/ConfigEditor.tsx +++ b/packages/website/src/components/config/ConfigEditor.tsx @@ -92,7 +92,7 @@ function ConfigEditor(props: ConfigEditorProps): JSX.Element { const { onClose: onCloseProps, isOpen, values } = props; const [filter, setFilter] = useState(''); const [config, setConfig] = useReducer(reducerObject, {}); - const [filterInput, setFilterFocus] = useFocus(); + const [filterInput, setFilterFocus] = useFocus(); const onClose = useCallback(() => { onCloseProps(config); diff --git a/packages/website/src/components/editor/LoadedEditor.tsx b/packages/website/src/components/editor/LoadedEditor.tsx index 48ea1c591776..c8a734c78efc 100644 --- a/packages/website/src/components/editor/LoadedEditor.tsx +++ b/packages/website/src/components/editor/LoadedEditor.tsx @@ -113,6 +113,7 @@ export const LoadedEditor: React.FC = ({ jsx, parseTSConfig(tsconfig).compilerOptions, ); + // @ts-expect-error Monaco typescript.CompilerOptions is incompatible with typescript 5.0 types webLinter.updateCompilerOptions(config); sandboxInstance.setCompilerSettings(config); }, [jsx, sandboxInstance, tsconfig, webLinter]); diff --git a/packages/website/src/components/editor/config.ts b/packages/website/src/components/editor/config.ts index 2428a5502699..39cb1db3cd9b 100644 --- a/packages/website/src/components/editor/config.ts +++ b/packages/website/src/components/editor/config.ts @@ -28,6 +28,7 @@ export function createCompilerOptions( const options = config.options as Monaco.languages.typescript.CompilerOptions; if (!options.lib) { + // @ts-expect-error Monaco typescript.CompilerOptions is incompatible with typescript 5.0 types options.lib = [window.ts.getDefaultLibFileName(options)]; } diff --git a/packages/website/src/components/editor/loadSandbox.ts b/packages/website/src/components/editor/loadSandbox.ts index c92c806e4c13..1dac9d20f623 100644 --- a/packages/website/src/components/editor/loadSandbox.ts +++ b/packages/website/src/components/editor/loadSandbox.ts @@ -8,27 +8,6 @@ import type * as TsWorker from '../../vendor/tsWorker'; type Monaco = typeof MonacoType; type TS = typeof TSType; -declare global { - type WindowRequireCb = ( - main: Monaco, - tsWorker: typeof TsWorker, - sandboxFactory: typeof SandboxFactory, - lintUtils: LintUtils, - ) => void; - interface WindowRequire { - (files: string[], cb: WindowRequireCb): void; - config: (arg: { - paths?: Record; - ignoreDuplicateModules?: string[]; - }) => void; - } - - interface Window { - ts: TS; - require: WindowRequire; - } -} - export interface SandboxModel { main: Monaco; tsWorker: typeof TsWorker; diff --git a/packages/website/src/components/editor/useSandboxServices.ts b/packages/website/src/components/editor/useSandboxServices.ts index a6f4cbb7dfff..300519e69394 100644 --- a/packages/website/src/components/editor/useSandboxServices.ts +++ b/packages/website/src/components/editor/useSandboxServices.ts @@ -108,7 +108,9 @@ export const useSandboxServices = ( } const system = sandboxInstance.tsvfs.createSystem(libEntries); + window.esquery = lintUtils.esquery; + // @ts-expect-error Monaco typescript.CompilerOptions is incompatible with typescript 5.0 types const webLinter = new WebLinter(system, compilerOptions, lintUtils); onLoaded( diff --git a/packages/website/src/components/hooks/useFocus.ts b/packages/website/src/components/hooks/useFocus.ts index 5849b95f2db8..9c0cd6747da7 100644 --- a/packages/website/src/components/hooks/useFocus.ts +++ b/packages/website/src/components/hooks/useFocus.ts @@ -1,8 +1,11 @@ import type React from 'react'; import { useRef } from 'react'; -function useFocus(): [React.RefObject, () => void] { - const htmlElRef = useRef(null); +function useFocus(): [ + React.RefObject, + () => void, +] { + const htmlElRef = useRef(null); const setFocus = (): void => { htmlElRef.current?.focus(); }; diff --git a/packages/website/src/components/inputs/Text.module.css b/packages/website/src/components/inputs/Text.module.css new file mode 100644 index 000000000000..632fa6b42faa --- /dev/null +++ b/packages/website/src/components/inputs/Text.module.css @@ -0,0 +1,27 @@ +.textInput { + appearance: none; + background-color: var(--ifm-color-emphasis-200); + border: 1px solid var(--ifm-color-emphasis-100); + color: var(--ifm-font-color-secondary); + transition: border 0.3s ease; + cursor: text; + display: inline-block; + height: 2rem; + padding: 0 0.5rem 0 2.25rem; + font-size: 0.9rem; + flex: 1; +} + +.textInput[type='search'] { + background: var(--ifm-color-emphasis-200) var(--ifm-navbar-search-input-icon) + no-repeat 0.75rem center / 1rem 1rem; +} + +.textInput::placeholder { + color: var(--ifm-color-emphasis-700); +} + +.textInput:focus { + outline: none; + border-color: var(--ifm-color-primary); +} diff --git a/packages/website/src/components/inputs/Text.tsx b/packages/website/src/components/inputs/Text.tsx index f2b610efba16..c4bf57493981 100644 --- a/packages/website/src/components/inputs/Text.tsx +++ b/packages/website/src/components/inputs/Text.tsx @@ -1,26 +1,32 @@ +import clsx from 'clsx'; import React from 'react'; +import styles from './Text.module.css'; + export interface DropdownProps { readonly onChange: (value: string) => void; readonly value: string; readonly name: string; readonly className?: string; readonly type?: 'text' | 'search'; + readonly placeholder?: string; } // eslint-disable-next-line react/display-name -const Text = React.forwardRef((props: DropdownProps, ref): JSX.Element => { - return ( - props.onChange(e.target.value)} - name={props.name} - className={props.className} - type={props.type ?? 'text'} - // @ts-expect-error: not sure why react has an error here - ref={ref} - /> - ); -}); +const Text = React.forwardRef( + (props, ref): JSX.Element => { + return ( + props.onChange(e.target.value)} + name={props.name} + className={clsx(styles.textInput, props.className)} + type={props.type ?? 'text'} + placeholder={props.placeholder} + ref={ref} + /> + ); + }, +); export default Text; diff --git a/packages/website/src/css/custom.css b/packages/website/src/css/custom.css index e5ef6e126772..0397c3562087 100644 --- a/packages/website/src/css/custom.css +++ b/packages/website/src/css/custom.css @@ -32,7 +32,7 @@ html:root { html[data-theme='dark']:root { --ifm-color-feedback-background: #f0f8ff; - --ifm-color-primary: #3255bb; + --ifm-color-primary: #6582d9; --ifm-color-primary-dark: #1f459d; --ifm-color-primary-darker: #1f417f; --ifm-color-primary-darkest: #163162; diff --git a/packages/website/src/globals.d.ts b/packages/website/src/globals.d.ts new file mode 100644 index 000000000000..910571ed8e64 --- /dev/null +++ b/packages/website/src/globals.d.ts @@ -0,0 +1,28 @@ +import type * as SandboxFactory from '@site/src/vendor/sandbox'; +import type * as TsWorker from '@site/src/vendor/tsWorker'; +import type { LintUtils } from '@typescript-eslint/website-eslint'; +import type esquery from 'esquery'; +import type MonacoType from 'monaco-editor'; +import type * as TSType from 'typescript'; + +declare global { + type WindowRequireCb = ( + main: typeof MonacoType, + tsWorker: typeof TsWorker, + sandboxFactory: typeof SandboxFactory, + lintUtils: LintUtils, + ) => void; + interface WindowRequire { + (files: string[], cb: WindowRequireCb): void; + config: (arg: { + paths?: Record; + ignoreDuplicateModules?: string[]; + }) => void; + } + + interface Window { + ts: typeof TSType; + require: WindowRequire; + esquery: typeof esquery; + } +} diff --git a/patches/typescript+4.9.3.patch b/patches/typescript+5.0.1-rc.patch similarity index 72% rename from patches/typescript+4.9.3.patch rename to patches/typescript+5.0.1-rc.patch index 520a9fde9363..3630b2660994 100644 --- a/patches/typescript+4.9.3.patch +++ b/patches/typescript+5.0.1-rc.patch @@ -1,8 +1,8 @@ diff --git a/node_modules/typescript/lib/typescript.d.ts b/node_modules/typescript/lib/typescript.d.ts -index 54e4c65..aa00912 100644 +index 2201712..6e04c82 100644 --- a/node_modules/typescript/lib/typescript.d.ts +++ b/node_modules/typescript/lib/typescript.d.ts -@@ -428,8 +428,8 @@ declare namespace ts { +@@ -368,8 +368,8 @@ declare namespace ts { JSDocFunctionType = 320, JSDocVariadicType = 321, JSDocNamepathType = 322, @@ -12,23 +12,23 @@ index 54e4c65..aa00912 100644 JSDocComment = 323, JSDocText = 324, JSDocTypeLiteral = 325, -@@ -4395,7 +4395,13 @@ declare namespace ts { +@@ -4517,7 +4517,13 @@ declare namespace ts { function symbolName(symbol: Symbol): string; function getNameOfJSDocTypedef(declaration: JSDocTypedefTag): Identifier | PrivateIdentifier | undefined; function getNameOfDeclaration(declaration: Declaration | Expression | undefined): DeclarationName | undefined; + /** -+ * @deprecated don't use this directly as it does not exist pre-4.8; instead use getModifiers from `@typescript-eslint/type-utils`. ++ * @deprecated don't use this directly as it does not exist pre-4.8; instead use getDecorators from `@typescript-eslint/type-utils`. + */ function getDecorators(node: HasDecorators): readonly Decorator[] | undefined; + /** -+ * @deprecated don't use this directly as it does not exist pre-4.8; instead use getDecorators from `@typescript-eslint/type-utils`. ++ * @deprecated don't use this directly as it does not exist pre-4.8; instead use getModifiers from `@typescript-eslint/type-utils`. + */ function getModifiers(node: HasModifiers): readonly Modifier[] | undefined; /** * Gets the JSDoc parameter tags for the node if present. -@@ -4857,7 +4863,13 @@ declare namespace ts { - } - declare namespace ts { +@@ -5022,7 +5028,13 @@ declare namespace ts { + function isModuleName(node: Node): node is ModuleName; + function isBinaryOperatorToken(node: Node): node is BinaryOperatorToken; function setTextRange(range: T, location: TextRange | undefined): T; + /** + * @deprecated don't use this directly as it does not exist pre-4.8; instead use getModifiers from `@typescript-eslint/type-utils`. @@ -38,14 +38,5 @@ index 54e4c65..aa00912 100644 + * @deprecated don't use this directly as it does not exist pre-4.8; instead use getDecorators from `@typescript-eslint/type-utils`. + */ function canHaveDecorators(node: Node): node is HasDecorators; - } - declare namespace ts { -@@ -7958,7 +7970,7 @@ declare namespace ts { - * const decorators = ts.canHaveDecorators(node) ? ts.getDecorators(node) : undefined; - * ``` - */ -- readonly decorators?: undefined; -+ readonly decorators?: NodeArray | undefined; - /** - * @deprecated `modifiers` has been removed from `Node` and moved to the `Node` subtypes that support them. - * Use `ts.canHaveModifiers()` to test whether a `Node` can have modifiers. + /** + * Invokes a callback for each child of the given node. The 'cbNode' callback is invoked for all child nodes diff --git a/yarn.lock b/yarn.lock index 575b622913b7..b15056ebf9aa 100644 --- a/yarn.lock +++ b/yarn.lock @@ -441,10 +441,10 @@ chalk "^2.0.0" js-tokens "^4.0.0" -"@babel/parser@*", "@babel/parser@^7.1.0", "@babel/parser@^7.12.7", "@babel/parser@^7.14.7", "@babel/parser@^7.18.10", "@babel/parser@^7.18.8", "@babel/parser@^7.20.1", "@babel/parser@^7.20.2", "@babel/parser@^7.20.7": - version "7.20.7" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.20.7.tgz#66fe23b3c8569220817d5feb8b9dcdc95bb4f71b" - integrity sha512-T3Z9oHybU+0vZlY9CiDSJQTD5ZapcW18ZctFMi0MOAl/4BjFF4ul7NVSARLdbGO5vDqy9eQiGTV0LtKfvCYvcg== +"@babel/parser@*", "@babel/parser@^7.1.0", "@babel/parser@^7.12.7", "@babel/parser@^7.14.7", "@babel/parser@^7.18.10", "@babel/parser@^7.18.8", "@babel/parser@^7.20.1", "@babel/parser@^7.20.2", "@babel/parser@^7.21.2": + version "7.21.2" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.21.2.tgz#dacafadfc6d7654c3051a66d6fe55b6cb2f2a0b3" + integrity sha512-URpaIJQwEkEC2T9Kn+Ai6Xe/02iNaVCuT/PtoRz3GPVJVDpPd7mLo+VddTbhCRU9TXqW5mSrQfXZyi8kDKOVpQ== "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.18.6": version "7.18.6" @@ -2000,6 +2000,18 @@ resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.15.18.tgz#128b76ecb9be48b60cf5cfc1c63a4f00691a3239" integrity sha512-L4jVKS82XVhw2nvzLg/19ClLWg0y27ulRwuP7lcyL6AbUWB5aPglXY3M21mauDQMDfRLs8cQmeT03r/+X3cZYQ== +"@eslint-community/eslint-utils@^4.1.2", "@eslint-community/eslint-utils@^4.2.0": + version "4.2.0" + resolved "https://registry.yarnpkg.com/@eslint-community/eslint-utils/-/eslint-utils-4.2.0.tgz#a831e6e468b4b2b5ae42bf658bea015bf10bc518" + integrity sha512-gB8T4H4DEfX2IV9zGDJPOBgP1e/DbfCPDTtEqUMckpvzS1OYtva8JdFYBqMwYk7xAQ429WGF/UPqn8uQ//h2vQ== + dependencies: + eslint-visitor-keys "^3.3.0" + +"@eslint-community/regexpp@^4.4.0": + version "4.4.0" + resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.4.0.tgz#3e61c564fcd6b921cb789838631c5ee44df09403" + integrity sha512-A9983Q0LnDGdLPjxyXQ00sbV+K+O+ko2Dr+CZigbHWtX9pNfxlaBkMR8X1CztI73zuEyEBXTVjx7CE+/VSwDiQ== + "@eslint/eslintrc@^1.2.3": version "1.2.3" resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-1.2.3.tgz#fcaa2bcef39e13d6e9e7f6271f4cc7cae1174886" @@ -2385,29 +2397,29 @@ resolved "https://registry.yarnpkg.com/@mdx-js/util/-/util-1.6.22.tgz#219dfd89ae5b97a8801f015323ffa4b62f45718b" integrity sha512-H1rQc1ZOHANWBvPcW+JpGwr+juXSxM8Q8YCkm3GhZd8REu1fHR3z99CErO1p9pkcfcxZnMdIZdIsXkOHY0NilA== -"@microsoft/api-extractor-model@7.24.3": - version "7.24.3" - resolved "https://registry.yarnpkg.com/@microsoft/api-extractor-model/-/api-extractor-model-7.24.3.tgz#406b0447a47eb185e0da4df865bdb0b939d57325" - integrity sha512-JElpLULqYDXQb0YIKKQhOJaNWBXsYeYu5J51Z4O6RGbOq7Tby9ViVfpDuXVXa87AMOSR5WKuaxG/5SnQVVNxiw== +"@microsoft/api-extractor-model@7.26.4": + version "7.26.4" + resolved "https://registry.yarnpkg.com/@microsoft/api-extractor-model/-/api-extractor-model-7.26.4.tgz#77f2c17140249b846a61eea41e565289cc77181f" + integrity sha512-PDCgCzXDo+SLY5bsfl4bS7hxaeEtnXj7XtuzEE+BtALp7B5mK/NrS2kHWU69pohgsRmEALycQdaQPXoyT2i5MQ== dependencies: - "@microsoft/tsdoc" "0.14.1" + "@microsoft/tsdoc" "0.14.2" "@microsoft/tsdoc-config" "~0.16.1" - "@rushstack/node-core-library" "3.53.0" + "@rushstack/node-core-library" "3.55.2" -"@microsoft/api-extractor@^7.23.2": - version "7.32.0" - resolved "https://registry.yarnpkg.com/@microsoft/api-extractor/-/api-extractor-7.32.0.tgz#b3c82a20873aeab21be59ce7113ef377c78baab1" - integrity sha512-BfvPpeVzWLFTdairVItzWQGsZr82fR4RH+8Q4I7t0f9xq66v4Qz9K+u25jbL5R42X01b/vvJMuRhX5KhU8J1Ug== +"@microsoft/api-extractor@^7.34.4": + version "7.34.4" + resolved "https://registry.yarnpkg.com/@microsoft/api-extractor/-/api-extractor-7.34.4.tgz#80677b5059b437bc07e9e55832c0cbde671c16a1" + integrity sha512-HOdcci2nT40ejhwPC3Xja9G+WSJmWhCUKKryRfQYsmE9cD+pxmBaKBKCbuS9jUcl6bLLb4Gz+h7xEN5r0QiXnQ== dependencies: - "@microsoft/api-extractor-model" "7.24.3" - "@microsoft/tsdoc" "0.14.1" + "@microsoft/api-extractor-model" "7.26.4" + "@microsoft/tsdoc" "0.14.2" "@microsoft/tsdoc-config" "~0.16.1" - "@rushstack/node-core-library" "3.53.0" - "@rushstack/rig-package" "0.3.16" - "@rushstack/ts-command-line" "4.12.4" + "@rushstack/node-core-library" "3.55.2" + "@rushstack/rig-package" "0.3.18" + "@rushstack/ts-command-line" "4.13.2" colors "~1.2.1" lodash "~4.17.15" - resolve "~1.17.0" + resolve "~1.22.1" semver "~7.3.0" source-map "~0.6.1" typescript "~4.8.4" @@ -2427,6 +2439,11 @@ resolved "https://registry.yarnpkg.com/@microsoft/tsdoc/-/tsdoc-0.14.1.tgz#155ef21065427901994e765da8a0ba0eaae8b8bd" integrity sha512-6Wci+Tp3CgPt/B9B0a3J4s3yMgLNSku6w5TV6mN+61C71UqsRBv2FUibBf3tPGlNxebgPHMEUzKpb1ggE8KCKw== +"@microsoft/tsdoc@0.14.2": + version "0.14.2" + resolved "https://registry.yarnpkg.com/@microsoft/tsdoc/-/tsdoc-0.14.2.tgz#c3ec604a0b54b9a9b87e9735dfc59e1a5da6a5fb" + integrity sha512-9b8mPpKrfeGRuhFH5iO1iwCLeIIsV6+H1sRfxbkoGXIyQE2BTsPd9zqSqQJ+pv5sJ/hT5M1zvOFL02MnEezFug== + "@nicolo-ribaudo/eslint-scope-5-internals@5.1.1-v1": version "5.1.1-v1" resolved "https://registry.yarnpkg.com/@nicolo-ribaudo/eslint-scope-5-internals/-/eslint-scope-5-internals-5.1.1-v1.tgz#dbf733a965ca47b1973177dc0bb6c889edcfb129" @@ -3017,6 +3034,15 @@ "@rollup/pluginutils" "^3.1.0" magic-string "^0.25.7" +"@rollup/plugin-terser@^0.4.0": + version "0.4.0" + resolved "https://registry.yarnpkg.com/@rollup/plugin-terser/-/plugin-terser-0.4.0.tgz#4c76249ad337f3eb04ab409332f23717af2c1fbf" + integrity sha512-Ipcf3LPNerey1q9ZMjiaWHlNPEHNU/B5/uh9zXLltfEQ1lVSLLeZSgAtTPWGyw8Ip1guOeq+mDtdOlEj/wNxQw== + dependencies: + serialize-javascript "^6.0.0" + smob "^0.0.6" + terser "^5.15.1" + "@rollup/pluginutils@^3.1.0": version "3.1.0" resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-3.1.0.tgz#706b4524ee6dc8b103b3c995533e5ad680c02b9b" @@ -3043,32 +3069,31 @@ estree-walker "^2.0.2" picomatch "^2.3.1" -"@rushstack/node-core-library@3.53.0": - version "3.53.0" - resolved "https://registry.yarnpkg.com/@rushstack/node-core-library/-/node-core-library-3.53.0.tgz#b4b812bc2e207e4fd3939991f8675335dab50978" - integrity sha512-FXk3eDtTHKnaUq+fLyNY867ioRhMa6CJDJO5hZ3wuGlxm184nckAFiU+hx027AodjpnqjX6pYF0zZGq7k7P/vg== +"@rushstack/node-core-library@3.55.2": + version "3.55.2" + resolved "https://registry.yarnpkg.com/@rushstack/node-core-library/-/node-core-library-3.55.2.tgz#d951470bac98171de13a8a351d4537c63fbfd0b6" + integrity sha512-SaLe/x/Q/uBVdNFK5V1xXvsVps0y7h1sN7aSJllQyFbugyOaxhNRF25bwEDnicARNEjJw0pk0lYnJQ9Kr6ev0A== dependencies: - "@types/node" "12.20.24" colors "~1.2.1" fs-extra "~7.0.1" import-lazy "~4.0.0" jju "~1.4.0" - resolve "~1.17.0" + resolve "~1.22.1" semver "~7.3.0" z-schema "~5.0.2" -"@rushstack/rig-package@0.3.16": - version "0.3.16" - resolved "https://registry.yarnpkg.com/@rushstack/rig-package/-/rig-package-0.3.16.tgz#522279411059e05aeec0930d4ff86b707c720cfc" - integrity sha512-FoSQng2RtapEUe+CBPKxbpZUhUht5s2+mMiztRH95qqp81dsUpfEWojtV6XrUVyWIRk2/cY1CDZUKJWxMrT26Q== +"@rushstack/rig-package@0.3.18": + version "0.3.18" + resolved "https://registry.yarnpkg.com/@rushstack/rig-package/-/rig-package-0.3.18.tgz#2b59eb8ed482e8cd6ad8d396414bf3200efdd682" + integrity sha512-SGEwNTwNq9bI3pkdd01yCaH+gAsHqs0uxfGvtw9b0LJXH52qooWXnrFTRRLG1aL9pf+M2CARdrA9HLHJys3jiQ== dependencies: - resolve "~1.17.0" + resolve "~1.22.1" strip-json-comments "~3.1.1" -"@rushstack/ts-command-line@4.12.4": - version "4.12.4" - resolved "https://registry.yarnpkg.com/@rushstack/ts-command-line/-/ts-command-line-4.12.4.tgz#e4bedd4890bca415f90fec8f33c51404c4039410" - integrity sha512-ckZHEfPiJCmBdWd/syve5zu2TNsPIqbFie3jWzM/izZa6ZOkDwex/K1ww+kJ12hFBnN44lMD7voJvKXajUCEDA== +"@rushstack/ts-command-line@4.13.2": + version "4.13.2" + resolved "https://registry.yarnpkg.com/@rushstack/ts-command-line/-/ts-command-line-4.13.2.tgz#2dfdcf418d58256671433b1da4a3b67e1814cc7a" + integrity sha512-bCU8qoL9HyWiciltfzg7GqdfODUeda/JpI0602kbN5YH22rzTxyqYvv7aRLENCM7XCQ1VRs7nMkEqgJUOU8Sag== dependencies: "@types/argparse" "1.0.38" argparse "~1.0.9" @@ -3434,6 +3459,13 @@ "@types/estree" "*" "@types/json-schema" "*" +"@types/esquery@^1.0.2": + version "1.0.2" + resolved "https://registry.yarnpkg.com/@types/esquery/-/esquery-1.0.2.tgz#ccab4b6bd1aec356d5daa5b3abc55eac703c332d" + integrity sha512-qeAoHiWfqF4ST6An3DM2r1743bWL7B5hW4oNR9tWkdOjFUR1aK2j0jnYvW6h30VGDeXQ+1bWOYTej4JVo/5+PA== + dependencies: + "@types/estree" "*" + "@types/estree@*", "@types/estree@^1.0.0": version "1.0.0" resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.0.tgz#5fb2e536c1ae9bf35366eed879e827fa59ca41c2" @@ -3613,7 +3645,7 @@ dependencies: "@types/node" "*" -"@types/node@*", "@types/node@12.20.24", "@types/node@^17.0.5", "@types/node@^18.11.9": +"@types/node@*", "@types/node@^17.0.5", "@types/node@^18.11.9": version "18.11.9" resolved "https://registry.yarnpkg.com/@types/node/-/node-18.11.9.tgz#02d013de7058cea16d36168ef2fc653464cfbad4" integrity sha512-CRpX21/kGdzjOpFsZSkcrXMGIBWMGNIHXXBVFSH+ggkftxg+XYP20TESbh+zFvFj3EQOl5byk0HTRn1IL6hbqg== @@ -4916,10 +4948,10 @@ ci-info@^2.0.0: resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-2.0.0.tgz#67a9e964be31a51e15e5010d58e6f12834002f46" integrity sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ== -ci-info@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.2.0.tgz#2876cb948a498797b5236f0095bc057d0dca38b6" - integrity sha512-dVqRX7fLUm8J6FgHJ418XuIgDLZDkYcDFTeL6TA2gt5WlIZUQrrH6EZrNClwT/H0FateUsZkGIOPRrLbP+PR9A== +ci-info@^3.2.0, ci-info@^3.6.1: + version "3.8.0" + resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.8.0.tgz#81408265a5380c929f0bc665d62256628ce9ef91" + integrity sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw== cjs-module-lexer@^1.0.0: version "1.2.2" @@ -4933,6 +4965,13 @@ clean-css@^5.2.2, clean-css@^5.3.0: dependencies: source-map "~0.6.0" +clean-regexp@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/clean-regexp/-/clean-regexp-1.0.0.tgz#8df7c7aae51fd36874e8f8d05b9180bc11a3fed7" + integrity sha512-GfisEZEJvzKrmGWkvfhgzcz/BllN1USeqD2V6tg14OAOgaCD2Z/PUEuxnAZ/nPvmaHRG7a8y77p1T/IRQ4D1Hw== + dependencies: + escape-string-regexp "^1.0.5" + clean-stack@^2.0.0: version "2.2.0" resolved "https://registry.yarnpkg.com/clean-stack/-/clean-stack-2.2.0.tgz#ee8472dbb129e727b31e8a10a427dee9dfe4008b" @@ -6112,10 +6151,10 @@ dotenv@~10.0.0: resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-10.0.0.tgz#3d4227b8fb95f81096cdd2b66653fb2c7085ba81" integrity sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q== -downlevel-dts@>=0.10.0: - version "0.10.0" - resolved "https://registry.yarnpkg.com/downlevel-dts/-/downlevel-dts-0.10.0.tgz#d2be7b4408a1f9eb3a39e15a361f8ea4f175facc" - integrity sha512-AZ7tnUy4XJArsjv6Bcuivvxx+weMvOGHF6seu7e7PVOqMDHMSlfgMl1kt+F4Y2+5TmDwKWHOdimM1DZKihQs8Q== +downlevel-dts@>=0.11.0: + version "0.11.0" + resolved "https://registry.yarnpkg.com/downlevel-dts/-/downlevel-dts-0.11.0.tgz#514a2d723009c5845730c1db6c994484c596ed9c" + integrity sha512-vo835pntK7kzYStk7xUHDifiYJvXxVhUapt85uk2AI94gUUAQX9HNRtrcMHNSc3YHJUEHGbYIGsM99uIbgAtxw== dependencies: semver "^7.3.2" shelljs "^0.8.3" @@ -6614,6 +6653,28 @@ eslint-plugin-simple-import-sort@^10.0.0: resolved "https://registry.yarnpkg.com/eslint-plugin-simple-import-sort/-/eslint-plugin-simple-import-sort-10.0.0.tgz#cc4ceaa81ba73252427062705b64321946f61351" integrity sha512-AeTvO9UCMSNzIHRkg8S6c3RPy5YEwKWSQPx3DYghLedo2ZQxowPFLGDN1AZ2evfg6r6mjBSZSLxLFsWSu3acsw== +eslint-plugin-unicorn@^46.0.0: + version "46.0.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-unicorn/-/eslint-plugin-unicorn-46.0.0.tgz#b5cdcc9465fd6e46ab7968b87dd4a43adc8d6031" + integrity sha512-j07WkC+PFZwk8J33LYp6JMoHa1lXc1u6R45pbSAipjpfpb7KIGr17VE2D685zCxR5VL4cjrl65kTJflziQWMDA== + dependencies: + "@babel/helper-validator-identifier" "^7.19.1" + "@eslint-community/eslint-utils" "^4.1.2" + ci-info "^3.6.1" + clean-regexp "^1.0.0" + esquery "^1.4.0" + indent-string "^4.0.0" + is-builtin-module "^3.2.0" + jsesc "^3.0.2" + lodash "^4.17.21" + pluralize "^8.0.0" + read-pkg-up "^7.0.1" + regexp-tree "^0.1.24" + regjsparser "^0.9.1" + safe-regex "^2.1.1" + semver "^7.3.8" + strip-indent "^3.0.0" + eslint-scope@5.1.1, eslint-scope@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c" @@ -6702,10 +6763,10 @@ esprima@^4.0.0, esprima@^4.0.1: resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== -esquery@^1.0.1, esquery@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.4.0.tgz#2148ffc38b82e8c7057dfed48425b3e61f0f24a5" - integrity sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w== +esquery@*, esquery@^1.0.1, esquery@^1.4.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.5.0.tgz#6ce17738de8577694edd7361c57182ac8cb0db0b" + integrity sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg== dependencies: estraverse "^5.1.0" @@ -8897,10 +8958,10 @@ jest-snapshot@*, jest-snapshot@^29, jest-snapshot@^29.0.0, jest-snapshot@^29.0.3 pretty-format "^29.1.2" semver "^7.3.5" -jest-specific-snapshot@*, jest-specific-snapshot@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/jest-specific-snapshot/-/jest-specific-snapshot-7.0.0.tgz#c8851bc263b780c0fa750462f61bd98fe956fc64" - integrity sha512-Ut2YItOYFC88Pir/JPN8Cgjvf60N4ZPmIqGJ2iZI+c9SLR27hwJxaEngKpW4RurPb+p45BbSuZoKe9SlVIylQA== +jest-specific-snapshot@*, jest-specific-snapshot@^8.0.0: + version "8.0.0" + resolved "https://registry.yarnpkg.com/jest-specific-snapshot/-/jest-specific-snapshot-8.0.0.tgz#c80af21dcd95b6c46b73f71618f887ef3825a44c" + integrity sha512-PjK0cqPbN3ZGU1pdP78YBEFMsS1AsV28hIHg249E0v/bTtGAJqDm7lNDLj0Cs0O26P2sulbXbgEQU9xLm34WmA== dependencies: jest-snapshot "^29.0.0" @@ -9021,6 +9082,11 @@ jsesc@^2.5.1: resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA== +jsesc@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-3.0.2.tgz#bb8b09a6597ba426425f2e4a07245c3d00b9343e" + integrity sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g== + jsesc@~0.5.0: version "0.5.0" resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" @@ -10987,6 +11053,11 @@ playwright-core@1.27.1: resolved "https://registry.yarnpkg.com/playwright-core/-/playwright-core-1.27.1.tgz#840ef662e55a3ed759d8b5d3d00a5f885a7184f4" integrity sha512-9EmeXDncC2Pmp/z+teoVYlvmPWUC6ejSSYZUln7YaP89Z6lpAaiaAnqroUt/BoLo8tn7WYShcfaCh+xofZa44Q== +pluralize@^8.0.0: + version "8.0.0" + resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-8.0.0.tgz#1a6fa16a38d12a1901e0320fa017051c539ce3b1" + integrity sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA== + postcss-calc@^8.2.3: version "8.2.4" resolved "https://registry.yarnpkg.com/postcss-calc/-/postcss-calc-8.2.4.tgz#77b9c29bfcbe8a07ff6693dc87050828889739a5" @@ -11844,6 +11915,11 @@ regenerator-transform@^0.15.0: dependencies: "@babel/runtime" "^7.8.4" +regexp-tree@^0.1.24, regexp-tree@~0.1.1: + version "0.1.24" + resolved "https://registry.yarnpkg.com/regexp-tree/-/regexp-tree-0.1.24.tgz#3d6fa238450a4d66e5bc9c4c14bb720e2196829d" + integrity sha512-s2aEVuLhvnVJW6s/iPgEGK6R+/xngd2jNQ+xy4bXNDKxZKJH6jpPHY6kVeVv1IeLCHgswRj+Kl3ELaDjG6V1iw== + regexp.prototype.flags@^1.4.1, regexp.prototype.flags@^1.4.3: version "1.4.3" resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz#87cab30f80f66660181a3bb7bf5981a872b367ac" @@ -11896,6 +11972,13 @@ regjsparser@^0.8.2: dependencies: jsesc "~0.5.0" +regjsparser@^0.9.1: + version "0.9.1" + resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.9.1.tgz#272d05aa10c7c1f67095b1ff0addae8442fc5709" + integrity sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ== + dependencies: + jsesc "~0.5.0" + relateurl@^0.2.7: version "0.2.7" resolved "https://registry.yarnpkg.com/relateurl/-/relateurl-0.2.7.tgz#54dbf377e51440aca90a4cd274600d3ff2d888a9" @@ -12036,7 +12119,7 @@ resolve.exports@1.1.0, resolve.exports@^1.1.0: resolved "https://registry.yarnpkg.com/resolve.exports/-/resolve.exports-1.1.0.tgz#5ce842b94b05146c0e03076985d1d0e7e48c90c9" integrity sha512-J1l+Zxxp4XK3LUDZ9m60LRJF/mAe4z6a4xyabPHk7pvK5t35dACV32iIjJDFeWZFfZlO29w6SZ67knR0tHzJtQ== -resolve@^1.1.6, resolve@^1.10.0, resolve@^1.14.2, resolve@^1.19.0, resolve@^1.20.0, resolve@^1.22.0, resolve@^1.22.1, resolve@^1.3.2: +resolve@^1.1.6, resolve@^1.10.0, resolve@^1.14.2, resolve@^1.19.0, resolve@^1.20.0, resolve@^1.22.0, resolve@^1.22.1, resolve@^1.3.2, resolve@~1.22.1: version "1.22.1" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.1.tgz#27cb2ebb53f91abb49470a928bba7558066ac177" integrity sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw== @@ -12053,13 +12136,6 @@ resolve@^2.0.0-next.3: is-core-module "^2.2.0" path-parse "^1.0.6" -resolve@~1.17.0: - version "1.17.0" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.17.0.tgz#b25941b54968231cc2d1bb76a79cb7f2c0bf8444" - integrity sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w== - dependencies: - path-parse "^1.0.6" - resolve@~1.19.0: version "1.19.0" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.19.0.tgz#1af5bf630409734a067cae29318aac7fa29a267c" @@ -12122,7 +12198,7 @@ rimraf@^3.0.0, rimraf@^3.0.2: dependencies: glob "^7.1.3" -rollup-plugin-terser@^7.0.0, rollup-plugin-terser@^7.0.2: +rollup-plugin-terser@^7.0.0: version "7.0.2" resolved "https://registry.yarnpkg.com/rollup-plugin-terser/-/rollup-plugin-terser-7.0.2.tgz#e8fbba4869981b2dc35ae7e8a502d5c6c04d324d" integrity sha512-w3iIaU4OxcF52UUXiZNsNeuXIMDvFrr+ZXK6bFZ0Q60qyVfq4uLptoS4bbq3paG3x216eQllFZX7zt6TIImguQ== @@ -12200,6 +12276,13 @@ safe-buffer@5.2.1, safe-buffer@>=5.1.0, safe-buffer@^5.1.0, safe-buffer@~5.2.0: resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== +safe-regex@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-2.1.1.tgz#f7128f00d056e2fe5c11e81a1324dd974aadced2" + integrity sha512-rx+x8AMzKb5Q5lQ95Zoi6ZbJqwCLkqi3XuJXp5P3rT8OEc6sZCJG5AE5dU3lsgRr/F4Bs31jSlVN+j5KrsGu9A== + dependencies: + regexp-tree "~0.1.1" + "safer-buffer@>= 2.1.2 < 3", "safer-buffer@>= 2.1.2 < 3.0.0": version "2.1.2" resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" @@ -12298,10 +12381,10 @@ semver@^6.0.0, semver@^6.1.1, semver@^6.1.2, semver@^6.2.0, semver@^6.3.0: resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== -semver@^7.0.0, semver@^7.1.1, semver@^7.3.2, semver@^7.3.4, semver@^7.3.5, semver@^7.3.7, semver@~7.3.0: - version "7.3.7" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.7.tgz#12c5b649afdbf9049707796e22a4028814ce523f" - integrity sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g== +semver@^7.0.0, semver@^7.1.1, semver@^7.3.2, semver@^7.3.4, semver@^7.3.5, semver@^7.3.7, semver@^7.3.8, semver@~7.3.0: + version "7.3.8" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.8.tgz#07a78feafb3f7b32347d725e33de7e2a2df67798" + integrity sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A== dependencies: lru-cache "^6.0.0" @@ -12529,6 +12612,11 @@ smart-buffer@^4.2.0: resolved "https://registry.yarnpkg.com/smart-buffer/-/smart-buffer-4.2.0.tgz#6e1d71fa4f18c05f7d0ff216dd16a481d0e8d9ae" integrity sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg== +smob@^0.0.6: + version "0.0.6" + resolved "https://registry.yarnpkg.com/smob/-/smob-0.0.6.tgz#09b268fea916158a2781c152044c6155adbb8aa1" + integrity sha512-V21+XeNni+tTyiST1MHsa84AQhT1aFZipzPpOFAVB8DkHzwJyjjAmt9bgwnuZiZWnIbMo2duE29wybxv/7HWUw== + sockjs@^0.3.24: version "0.3.24" resolved "https://registry.yarnpkg.com/sockjs/-/sockjs-0.3.24.tgz#c9bc8995f33a111bea0395ec30aa3206bdb5ccce" @@ -13017,10 +13105,10 @@ terser-webpack-plugin@^5.1.3, terser-webpack-plugin@^5.3.3: serialize-javascript "^6.0.0" terser "^5.7.2" -terser@^5.0.0, terser@^5.10.0, terser@^5.7.2: - version "5.14.2" - resolved "https://registry.yarnpkg.com/terser/-/terser-5.14.2.tgz#9ac9f22b06994d736174f4091aa368db896f1c10" - integrity sha512-oL0rGeM/WFQCUd0y2QrWxYnq7tfSuKBiqTjRPWrRgB46WD/kiwHwF8T23z78H6Q6kGCuuHcPB+KULHRdxvVGQA== +terser@^5.0.0, terser@^5.10.0, terser@^5.15.1, terser@^5.7.2: + version "5.16.5" + resolved "https://registry.yarnpkg.com/terser/-/terser-5.16.5.tgz#1c285ca0655f467f92af1bbab46ab72d1cb08e5a" + integrity sha512-qcwfg4+RZa3YvlFh0qjifnzBHjKGNbtDo9yivMqMFDy9Q6FSaQWSB/j1xKhsoUFJIqDOM3TsN6D5xbrMrFcHbg== dependencies: "@jridgewell/source-map" "^0.3.2" acorn "^8.5.0" @@ -13372,10 +13460,10 @@ typedarray@^0.0.6: resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= -typescript@*, "typescript@>=3.3.1 <5.0.0", "typescript@^3 || ^4", typescript@next, typescript@~4.8.4, typescript@~4.9.3: - version "4.9.3" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.3.tgz#3aea307c1746b8c384435d8ac36b8a2e580d85db" - integrity sha512-CIfGzTelbKNEnLpLdGFgdyKhG23CKdKgQPOBc+OUNrkJ2vr+KSzsSV5kq5iWhEQbok+quxgGzrAtGWCyU7tHnA== +typescript@*, "typescript@>=3.3.1 <5.1.0 || 5.0.1-rc", "typescript@^3 || ^4", typescript@next, typescript@~4.8.4, typescript@~5.0.1-rc: + version "5.0.1-rc" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.0.1-rc.tgz#f2ccabbdb9646b43b5e006dc6f7b0eaf9a222c8b" + integrity sha512-zh75jY8gPo/y7fpmlTVN2bb2MigoLx4hGk+Cla9pY6lgSTvzJrmQQrRt5S80VTsEt6biWPZJgLK2nm6f0Ya+mA== ua-parser-js@^0.7.30: version "0.7.31"