From 80d311db8b48dece15eb0458fe748d1b676ace8d Mon Sep 17 00:00:00 2001 From: Brad Zacher Date: Mon, 13 Mar 2023 15:53:36 +1030 Subject: [PATCH 1/3] chore: bump allowed ersion ranges to include TS 5.0 --- docs/maintenance/Versioning.mdx | 2 +- package.json | 2 +- .../src/parseSettings/warnAboutTSVersion.ts | 2 +- yarn.lock | 10 +++++----- 4 files changed, 8 insertions(+), 8 deletions(-) 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/package.json b/package.json index 1bb2d07c3729..6df56abbf47b 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "ts-node": "10.7.0", "tslint": "^6.1.3", "tsx": "^3.12.1", - "typescript": ">=3.3.1 <4.9.5 || 5.0.1-rc" + "typescript": ">=3.3.1 <5.1.0 || 5.0.1-rc" }, "resolutions": { "typescript": "~5.0.1-rc", diff --git a/packages/typescript-estree/src/parseSettings/warnAboutTSVersion.ts b/packages/typescript-estree/src/parseSettings/warnAboutTSVersion.ts index 65ff64fd072d..5d0069ed1606 100644 --- a/packages/typescript-estree/src/parseSettings/warnAboutTSVersion.ts +++ b/packages/typescript-estree/src/parseSettings/warnAboutTSVersion.ts @@ -6,7 +6,7 @@ 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 diff --git a/yarn.lock b/yarn.lock index e8cc5850f0ad..b15056ebf9aa 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6763,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" @@ -13460,7 +13460,7 @@ typedarray@^0.0.6: resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= -typescript@*, "typescript@>=3.3.1 <4.9.5 || 5.0.1-rc", "typescript@^3 || ^4", typescript@next, typescript@~4.8.4, typescript@~5.0.1-rc: +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== From 9d53a0d770a6e5b0d8c3e134e360444960893d2d Mon Sep 17 00:00:00 2001 From: Brad Zacher Date: Mon, 13 Mar 2023 21:00:16 +1030 Subject: [PATCH 2/3] update snaps? --- .../abstract/snapshots/1-TSESTree-AST.shot | 4 +- .../abstract/snapshots/2-TSESTree-Tokens.shot | 2 +- .../abstract/snapshots/3-Babel-AST.shot | 4 +- .../abstract/snapshots/4-Babel-Tokens.shot | 2 +- .../declare/snapshots/1-TSESTree-AST.shot | 4 +- .../declare/snapshots/2-TSESTree-Tokens.shot | 2 +- .../declare/snapshots/3-Babel-AST.shot | 4 +- .../declare/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../decorator-many/snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../decorator-one/snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../empty/snapshots/1-TSESTree-AST.shot | 4 +- .../empty/snapshots/2-TSESTree-Tokens.shot | 2 +- .../fixtures/empty/snapshots/3-Babel-AST.shot | 4 +- .../empty/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../extends/snapshots/1-TSESTree-AST.shot | 4 +- .../extends/snapshots/2-TSESTree-Tokens.shot | 2 +- .../extends/snapshots/3-Babel-AST.shot | 4 +- .../extends/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../implements-one/snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../type-param/snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../type-param/snapshots/3-Babel-AST.shot | 6 +- .../type-param/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../assertion/snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../assertion/snapshots/3-Babel-AST.shot | 4 +- .../assertion/snapshots/4-Babel-Tokens.shot | 2 +- .../kind-type/snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../kind-type/snapshots/3-Babel-AST.shot | 4 +- .../kind-type/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 2 +- .../named/snapshots/1-TSESTree-AST.shot | 4 +- .../named/snapshots/2-TSESTree-Tokens.shot | 2 +- .../fixtures/named/snapshots/3-Babel-AST.shot | 4 +- .../named/snapshots/4-Babel-Tokens.shot | 2 +- .../type-kind/snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../type-kind/snapshots/3-Babel-AST.shot | 4 +- .../type-kind/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 2 +- .../unnamed/snapshots/1-TSESTree-AST.shot | 4 +- .../unnamed/snapshots/2-TSESTree-Tokens.shot | 2 +- .../unnamed/snapshots/3-Babel-AST.shot | 4 +- .../unnamed/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../class/snapshots/1-TSESTree-AST.shot | 4 +- .../class/snapshots/2-TSESTree-Tokens.shot | 2 +- .../fixtures/class/snapshots/3-Babel-AST.shot | 4 +- .../class/snapshots/4-Babel-Tokens.shot | 2 +- .../function/snapshots/1-TSESTree-AST.shot | 6 +- .../function/snapshots/2-TSESTree-Tokens.shot | 2 +- .../function/snapshots/3-Babel-AST.shot | 6 +- .../function/snapshots/4-Babel-Tokens.shot | 2 +- .../identifier/snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../identifier/snapshots/3-Babel-AST.shot | 2 +- .../identifier/snapshots/4-Babel-Tokens.shot | 2 +- .../interface/snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../interface/snapshots/3-Babel-AST.shot | 4 +- .../interface/snapshots/4-Babel-Tokens.shot | 2 +- .../literal/snapshots/1-TSESTree-AST.shot | 2 +- .../literal/snapshots/2-TSESTree-Tokens.shot | 2 +- .../literal/snapshots/3-Babel-AST.shot | 2 +- .../literal/snapshots/4-Babel-Tokens.shot | 2 +- .../aliased/snapshots/1-TSESTree-AST.shot | 6 +- .../aliased/snapshots/2-TSESTree-Tokens.shot | 2 +- .../aliased/snapshots/3-Babel-AST.shot | 6 +- .../aliased/snapshots/4-Babel-Tokens.shot | 2 +- .../class/snapshots/1-TSESTree-AST.shot | 8 +- .../class/snapshots/2-TSESTree-Tokens.shot | 2 +- .../fixtures/class/snapshots/3-Babel-AST.shot | 8 +- .../class/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../enum/snapshots/1-TSESTree-AST.shot | 8 +- .../enum/snapshots/2-TSESTree-Tokens.shot | 2 +- .../fixtures/enum/snapshots/3-Babel-AST.shot | 8 +- .../enum/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../interface/snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../interface/snapshots/3-Babel-AST.shot | 8 +- .../interface/snapshots/4-Babel-Tokens.shot | 2 +- .../namespace/snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../namespace/snapshots/3-Babel-AST.shot | 8 +- .../namespace/snapshots/4-Babel-Tokens.shot | 2 +- .../type-alias/snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../type-alias/snapshots/3-Babel-AST.shot | 6 +- .../type-alias/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../async/snapshots/1-TSESTree-AST.shot | 6 +- .../async/snapshots/2-TSESTree-Tokens.shot | 2 +- .../fixtures/async/snapshots/3-Babel-AST.shot | 6 +- .../async/snapshots/4-Babel-Tokens.shot | 2 +- .../empty/snapshots/1-TSESTree-AST.shot | 6 +- .../empty/snapshots/2-TSESTree-Tokens.shot | 2 +- .../fixtures/empty/snapshots/3-Babel-AST.shot | 6 +- .../empty/snapshots/4-Babel-Tokens.shot | 2 +- .../generator/snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../generator/snapshots/3-Babel-AST.shot | 6 +- .../generator/snapshots/4-Babel-Tokens.shot | 2 +- .../param-many/snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../param-many/snapshots/3-Babel-AST.shot | 6 +- .../param-many/snapshots/4-Babel-Tokens.shot | 2 +- .../param-one/snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../param-one/snapshots/3-Babel-AST.shot | 6 +- .../param-one/snapshots/4-Babel-Tokens.shot | 2 +- .../returnType/snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../returnType/snapshots/3-Babel-AST.shot | 6 +- .../returnType/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../type-param-one/snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../assertion/snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../assertion/snapshots/3-Babel-AST.shot | 6 +- .../assertion/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../default/snapshots/1-TSESTree-AST.shot | 6 +- .../default/snapshots/2-TSESTree-Tokens.shot | 2 +- .../default/snapshots/3-Babel-AST.shot | 6 +- .../default/snapshots/4-Babel-Tokens.shot | 2 +- .../named-many/snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../named-many/snapshots/3-Babel-AST.shot | 6 +- .../named-many/snapshots/4-Babel-Tokens.shot | 2 +- .../named-none/snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../named-none/snapshots/3-Babel-AST.shot | 6 +- .../named-none/snapshots/4-Babel-Tokens.shot | 2 +- .../named-one/snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../named-one/snapshots/3-Babel-AST.shot | 6 +- .../named-one/snapshots/4-Babel-Tokens.shot | 2 +- .../side-effect/snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../side-effect/snapshots/3-Babel-AST.shot | 6 +- .../side-effect/snapshots/4-Babel-Tokens.shot | 2 +- .../empty/snapshots/1-TSESTree-AST.shot | 4 +- .../empty/snapshots/2-TSESTree-Tokens.shot | 2 +- .../fixtures/empty/snapshots/3-Babel-AST.shot | 4 +- .../empty/snapshots/4-Babel-Tokens.shot | 2 +- .../generator/snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../generator/snapshots/3-Babel-AST.shot | 4 +- .../generator/snapshots/4-Babel-Tokens.shot | 2 +- .../param-many/snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../param-many/snapshots/3-Babel-AST.shot | 4 +- .../param-many/snapshots/4-Babel-Tokens.shot | 2 +- .../param-one/snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../param-one/snapshots/3-Babel-AST.shot | 4 +- .../param-one/snapshots/4-Babel-Tokens.shot | 2 +- .../returnType/snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../returnType/snapshots/3-Babel-AST.shot | 4 +- .../returnType/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../type-param-one/snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../const/snapshots/1-TSESTree-AST.shot | 4 +- .../const/snapshots/2-TSESTree-Tokens.shot | 2 +- .../fixtures/const/snapshots/3-Babel-AST.shot | 4 +- .../const/snapshots/4-Babel-Tokens.shot | 2 +- .../declare/snapshots/1-TSESTree-AST.shot | 4 +- .../declare/snapshots/2-TSESTree-Tokens.shot | 2 +- .../declare/snapshots/3-Babel-AST.shot | 4 +- .../declare/snapshots/4-Babel-Tokens.shot | 2 +- .../empty/snapshots/1-TSESTree-AST.shot | 4 +- .../empty/snapshots/2-TSESTree-Tokens.shot | 2 +- .../fixtures/empty/snapshots/3-Babel-AST.shot | 4 +- .../empty/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 2 +- .../declare/snapshots/1-TSESTree-AST.shot | 4 +- .../declare/snapshots/2-TSESTree-Tokens.shot | 2 +- .../declare/snapshots/3-Babel-AST.shot | 4 +- .../declare/snapshots/4-Babel-Tokens.shot | 2 +- .../empty/snapshots/1-TSESTree-AST.shot | 4 +- .../empty/snapshots/2-TSESTree-Tokens.shot | 2 +- .../fixtures/empty/snapshots/3-Babel-AST.shot | 4 +- .../empty/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../extends-many/snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../extends-one/snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../extends-one/snapshots/3-Babel-AST.shot | 6 +- .../extends-one/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../type-param-one/snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../global/snapshots/1-TSESTree-AST.shot | 4 +- .../global/snapshots/2-TSESTree-Tokens.shot | 2 +- .../global/snapshots/3-Babel-AST.shot | 4 +- .../global/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../module-declare/snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../valid/snapshots/1-TSESTree-AST.shot | 2 +- .../valid/snapshots/2-TSESTree-Tokens.shot | 2 +- .../fixtures/valid/snapshots/3-Babel-AST.shot | 2 +- .../valid/snapshots/4-Babel-Tokens.shot | 2 +- .../declare/snapshots/1-TSESTree-AST.shot | 2 +- .../declare/snapshots/2-TSESTree-Tokens.shot | 2 +- .../declare/snapshots/3-Babel-AST.shot | 2 +- .../declare/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../type-param-one/snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../valid/snapshots/1-TSESTree-AST.shot | 2 +- .../valid/snapshots/2-TSESTree-Tokens.shot | 2 +- .../fixtures/valid/snapshots/3-Babel-AST.shot | 2 +- .../valid/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../declare/snapshots/1-TSESTree-AST.shot | 4 +- .../declare/snapshots/2-TSESTree-Tokens.shot | 2 +- .../declare/snapshots/3-Babel-AST.shot | 4 +- .../declare/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../let-with-value/snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../var-with-value/snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 4 +- .../key-number/snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../key-number/snapshots/3-Babel-AST.shot | 2 +- .../key-number/snapshots/4-Babel-Tokens.shot | 2 +- .../key-private/snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../key-private/snapshots/3-Babel-AST.shot | 4 +- .../key-private/snapshots/4-Babel-Tokens.shot | 2 +- .../key-string/snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../key-string/snapshots/3-Babel-AST.shot | 4 +- .../key-string/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 4 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 2 +- .../array-array/snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../array-array/snapshots/3-Babel-AST.shot | 6 +- .../array-array/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 12 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 12 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 14 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 14 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 12 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 12 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 12 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 12 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 12 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 12 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/6-AST-Alignment-Tokens.shot | 6 +- .../snapshots/1-TSESTree-AST.shot | 12 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 12 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../cast-as-multi/snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../cast-as-simple/snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 12 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 12 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 12 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 12 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 2 +- .../snapshots/6-AST-Alignment-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 12 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 12 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 18 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 18 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 30 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 30 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 42 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 42 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 12 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 2 +- .../snapshots/6-AST-Alignment-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 8 +- .../snapshots/6-AST-Alignment-Tokens.shot | 8 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 4 +- .../snapshots/6-AST-Alignment-Tokens.shot | 4 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 16 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 16 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 2 +- .../snapshots/6-AST-Alignment-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../const-enum/snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../const-enum/snapshots/3-Babel-AST.shot | 4 +- .../const-enum/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 38 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 38 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 4 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 4 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../export-type-as/snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 2 +- .../export-type/snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../export-type/snapshots/3-Babel-AST.shot | 6 +- .../export-type/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 26 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 26 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../global-this/snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../global-this/snapshots/3-Babel-AST.shot | 6 +- .../global-this/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 22 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 22 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../keyof-operator/snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 94 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 94 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 2 +- .../snapshots/6-AST-Alignment-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/6-AST-Alignment-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 14 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 14 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 4 +- .../snapshots/6-AST-Alignment-Tokens.shot | 4 +- .../snapshots/1-TSESTree-AST.shot | 26 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 26 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 18 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 18 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 28 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 28 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 28 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 28 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../optional-chain/snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 20 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 20 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 12 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 12 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 12 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 12 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 12 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 12 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 4 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 6 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 30 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 30 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 18 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 18 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../typed-this/snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../typed-this/snapshots/3-Babel-AST.shot | 8 +- .../typed-this/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 26 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 26 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../unique-symbol/snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../var-with-type/snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../abstract-class/snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../class/snapshots/1-TSESTree-AST.shot | 4 +- .../class/snapshots/2-TSESTree-Tokens.shot | 2 +- .../fixtures/class/snapshots/3-Babel-AST.shot | 4 +- .../class/snapshots/4-Babel-Tokens.shot | 2 +- .../enum/snapshots/1-TSESTree-AST.shot | 4 +- .../enum/snapshots/2-TSESTree-Tokens.shot | 2 +- .../fixtures/enum/snapshots/3-Babel-AST.shot | 4 +- .../enum/snapshots/4-Babel-Tokens.shot | 2 +- .../function/snapshots/1-TSESTree-AST.shot | 4 +- .../function/snapshots/2-TSESTree-Tokens.shot | 2 +- .../function/snapshots/3-Babel-AST.shot | 4 +- .../function/snapshots/4-Babel-Tokens.shot | 2 +- .../interface/snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../interface/snapshots/3-Babel-AST.shot | 4 +- .../interface/snapshots/4-Babel-Tokens.shot | 2 +- .../module/snapshots/1-TSESTree-AST.shot | 4 +- .../module/snapshots/2-TSESTree-Tokens.shot | 2 +- .../module/snapshots/3-Babel-AST.shot | 4 +- .../module/snapshots/4-Babel-Tokens.shot | 2 +- .../namespace/snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../namespace/snapshots/3-Babel-AST.shot | 4 +- .../namespace/snapshots/4-Babel-Tokens.shot | 2 +- .../type-alias/snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../type-alias/snapshots/3-Babel-AST.shot | 2 +- .../type-alias/snapshots/4-Babel-Tokens.shot | 2 +- .../variable/snapshots/1-TSESTree-AST.shot | 4 +- .../variable/snapshots/2-TSESTree-Tokens.shot | 2 +- .../variable/snapshots/3-Babel-AST.shot | 4 +- .../variable/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 12 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 12 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 12 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 12 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 4 +- .../snapshots/1-TSESTree-AST.shot | 12 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 12 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 14 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 14 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 32 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 32 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 2 +- .../snapshots/6-AST-Alignment-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 2 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 12 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 12 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 12 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 12 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 12 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 12 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 4 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 4 +- .../snapshots/1-TSESTree-AST.shot | 14 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 14 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 14 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 14 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 12 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 12 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../array-type/snapshots/1-TSESTree-AST.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../array-type/snapshots/3-Babel-AST.shot | 2 +- .../array-type/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 30 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 30 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../conditional/snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../conditional/snapshots/3-Babel-AST.shot | 4 +- .../conditional/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../constructor/snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../constructor/snapshots/3-Babel-AST.shot | 6 +- .../constructor/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../function/snapshots/1-TSESTree-AST.shot | 6 +- .../function/snapshots/2-TSESTree-Tokens.shot | 2 +- .../function/snapshots/3-Babel-AST.shot | 6 +- .../function/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../indexed/snapshots/1-TSESTree-AST.shot | 4 +- .../indexed/snapshots/2-TSESTree-Tokens.shot | 2 +- .../indexed/snapshots/3-Babel-AST.shot | 4 +- .../indexed/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../literal-number/snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../literal-string/snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/6-AST-Alignment-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../mapped/snapshots/1-TSESTree-AST.shot | 4 +- .../mapped/snapshots/2-TSESTree-Tokens.shot | 2 +- .../mapped/snapshots/3-Babel-AST.shot | 4 +- .../mapped/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 20 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../nested-types/snapshots/3-Babel-AST.shot | 20 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../reference/snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../reference/snapshots/3-Babel-AST.shot | 4 +- .../reference/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 10 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 10 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 4 +- .../snapshots/1-TSESTree-AST.shot | 16 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 16 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 8 +- .../snapshots/1-TSESTree-AST.shot | 28 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 28 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/5-AST-Alignment-AST.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 40 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 40 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../this-type/snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../this-type/snapshots/3-Babel-AST.shot | 8 +- .../this-type/snapshots/4-Babel-Tokens.shot | 2 +- .../tuple-empty/snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../tuple-empty/snapshots/3-Babel-AST.shot | 6 +- .../tuple-empty/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 4 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../tuple-named/snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../tuple-named/snapshots/3-Babel-AST.shot | 6 +- .../tuple-named/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../tuple-optional/snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../tuple-rest/snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../tuple-rest/snapshots/3-Babel-AST.shot | 6 +- .../tuple-rest/snapshots/4-Babel-Tokens.shot | 2 +- .../tuple-type/snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../tuple-type/snapshots/3-Babel-AST.shot | 4 +- .../tuple-type/snapshots/4-Babel-Tokens.shot | 2 +- .../tuple/snapshots/1-TSESTree-AST.shot | 6 +- .../tuple/snapshots/2-TSESTree-Tokens.shot | 2 +- .../fixtures/tuple/snapshots/3-Babel-AST.shot | 6 +- .../tuple/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../type-literal/snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../type-operator/snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../typeof-this/snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../typeof-this/snapshots/3-Babel-AST.shot | 6 +- .../typeof-this/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../typeof/snapshots/1-TSESTree-AST.shot | 4 +- .../typeof/snapshots/2-TSESTree-Tokens.shot | 2 +- .../typeof/snapshots/3-Babel-AST.shot | 4 +- .../typeof/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 22 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 22 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../union-type/snapshots/1-TSESTree-AST.shot | 4 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../union-type/snapshots/3-Babel-AST.shot | 4 +- .../union-type/snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 8 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 8 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 6 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 6 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../snapshots/1-TSESTree-AST.shot | 22 +- .../snapshots/2-TSESTree-Tokens.shot | 2 +- .../snapshots/3-Babel-AST.shot | 22 +- .../snapshots/4-Babel-Tokens.shot | 2 +- .../fixtures-with-differences-errors.shot | 2 +- .../fixtures/block/inherited-scope.ts.shot | 16 +- .../tests/fixtures/block/scope.ts.shot | 20 +- .../call-expression/call-expression.ts.shot | 20 +- .../call-expression/type-parameters1.ts.shot | 12 +- .../call-expression/type-parameters2.ts.shot | 12 +- .../fixtures/catch/inherited-scope.ts.shot | 28 +- .../tests/fixtures/catch/scope.ts.shot | 36 +- .../abstract-accessor-property.ts.shot | 24 +- .../declaration/abstract-property.ts.shot | 24 +- .../class/declaration/abstract.ts.shot | 36 +- .../accessor-property-type-annotation.ts.shot | 24 +- .../declaration/accessor-property.ts.shot | 36 +- .../class/declaration/computed-member.ts.shot | 40 +- .../class/declaration/extends-generic.ts.shot | 40 +- .../class/declaration/extends.ts.shot | 32 +- .../declaration/generic-ref-extends.ts.shot | 24 +- .../generic-ref-implements.ts.shot | 24 +- .../class/declaration/generic.ts.shot | 28 +- .../declaration/implements-generic.ts.shot | 36 +- .../class/declaration/implements.ts.shot | 24 +- .../declaration/method-param-default.ts.shot | 44 +- .../fixtures/class/declaration/method.ts.shot | 60 +- .../fixtures/class/declaration/new.ts.shot | 20 +- .../declaration/parameter-properties.ts.shot | 64 +- .../declaration/private-identifier.ts.shot | 28 +- .../properties-type-annotation.ts.shot | 24 +- .../class/declaration/properties.ts.shot | 36 +- .../class/declaration/static-block.ts.shot | 24 +- .../declaration/static-external-ref.ts.shot | 36 +- .../static-with-constructor.ts.shot | 44 +- .../class/declaration/type-reference.ts.shot | 32 +- .../class/emit-metadata/accessor-deco.ts.shot | 124 +- .../class/emit-metadata/method-deco.ts.shot | 76 +- .../method-return-generic.ts.shot | 52 +- .../emit-metadata/nested-class-both.ts.shot | 84 +- .../emit-metadata/nested-class-inner.ts.shot | 84 +- .../emit-metadata/nested-class-outer.ts.shot | 84 +- .../emit-metadata/parameters-deco.ts.shot | 88 +- .../class/emit-metadata/property-deco.ts.shot | 56 +- .../class/expression/computed-member.ts.shot | 36 +- .../fixtures/class/expression/extends.ts.shot | 28 +- .../fixtures/class/expression/method.ts.shot | 56 +- .../fixtures/class/expression/new.ts.shot | 16 +- .../expression/parameter-properties.ts.shot | 60 +- .../expression/private-identifier.ts.shot | 24 +- .../class/expression/properties.ts.shot | 32 +- .../expression/self-reference-super.ts.shot | 20 +- .../fixtures/decorators/accessor.ts.shot | 48 +- .../class-deco-with-object-param.ts.shot | 44 +- .../decorators/class-property.ts.shot | 32 +- .../tests/fixtures/decorators/class.ts.shot | 32 +- .../tests/fixtures/decorators/method.ts.shot | 40 +- .../decorators/parameter-property.ts.shot | 48 +- .../fixtures/decorators/parameter.ts.shot | 48 +- .../fixtures/decorators/typeof-this.ts.shot | 44 +- .../destructuring/array-assignment.ts.shot | 20 +- .../fixtures/destructuring/array.ts.shot | 36 +- .../destructuring/object-assignment.ts.shot | 12 +- .../fixtures/destructuring/object.ts.shot | 36 +- .../tests/fixtures/export/all.ts.shot | 12 +- .../fixtures/export/default-type.ts.shot | 16 +- .../tests/fixtures/export/default1.ts.shot | 24 +- .../tests/fixtures/export/default2.ts.shot | 16 +- .../tests/fixtures/export/default3.ts.shot | 12 +- .../tests/fixtures/export/default4.ts.shot | 20 +- .../tests/fixtures/export/equals1.ts.shot | 16 +- .../tests/fixtures/export/equals2.ts.shot | 12 +- .../tests/fixtures/export/named-dual.ts.shot | 12 +- .../fixtures/export/named-source1.ts.shot | 12 +- .../fixtures/export/named-source2.ts.shot | 12 +- .../tests/fixtures/export/named-type1.ts.shot | 16 +- .../tests/fixtures/export/named1.ts.shot | 16 +- .../tests/fixtures/export/named2-type.ts.shot | 16 +- .../tests/fixtures/export/named2.ts.shot | 16 +- .../tests/fixtures/export/named3-type.ts.shot | 16 +- .../tests/fixtures/export/named3.ts.shot | 16 +- .../tests/fixtures/export/type-inline.ts.shot | 16 +- .../tests/fixtures/export/type.ts.shot | 16 +- .../readable-ref-body-shadow.ts.shot | 28 +- .../default-params/readable-ref-const.ts.shot | 24 +- .../default-params/readable-ref-let.ts.shot | 24 +- .../readable-ref-nested-body-shadow.ts.shot | 36 +- .../readable-ref-nested.ts.shot | 32 +- .../readable-ref-param-shadow.ts.shot | 28 +- .../readable-ref-partial.ts.shot | 24 +- .../arrow/default-params/writable-ref.ts.shot | 24 +- .../functions/arrow/inherited-scope.ts.shot | 16 +- .../fixtures/functions/arrow/no-body.ts.shot | 16 +- .../fixtures/functions/arrow/params.ts.shot | 48 +- .../fixtures/functions/arrow/scope.ts.shot | 28 +- .../type-parameters/body-reference.ts.shot | 24 +- .../type-parameters/param-reference.ts.shot | 24 +- .../return-value-reference.ts.shot | 20 +- .../type-param-reference.ts.shot | 24 +- .../type-parameter-declaration.ts.shot | 24 +- .../arrow/type-predicate-asserts1.ts.shot | 20 +- .../arrow/type-predicate-asserts2.ts.shot | 24 +- .../functions/arrow/type-predicate1.ts.shot | 20 +- .../functions/arrow/type-predicate2.ts.shot | 24 +- .../readable-ref-body-shadow.ts.shot | 32 +- .../default-params/readable-ref-const.ts.shot | 28 +- .../default-params/readable-ref-let.ts.shot | 28 +- .../readable-ref-nested-body-shadow.ts.shot | 40 +- .../readable-ref-nested.ts.shot | 36 +- .../readable-ref-param-shadow.ts.shot | 32 +- .../readable-ref-partial.ts.shot | 28 +- .../default-params/writable-ref.ts.shot | 28 +- .../inherited-scope.ts.shot | 24 +- .../name-shadowed-in-body.ts.shot | 28 +- .../function-declaration/overload.ts.shot | 44 +- .../function-declaration/params.ts.shot | 56 +- .../function-declaration/scope.ts.shot | 32 +- .../type-parameters/body-reference.ts.shot | 28 +- .../type-parameters/param-reference.ts.shot | 28 +- .../return-value-reference.ts.shot | 24 +- .../type-param-reference.ts.shot | 28 +- .../type-parameter-declaration.ts.shot | 28 +- .../type-predicate-asserts1.ts.shot | 24 +- .../type-predicate-asserts2.ts.shot | 28 +- .../type-predicate1.ts.shot | 24 +- .../type-predicate2.ts.shot | 28 +- .../function-expression/anonymous.ts.shot | 20 +- .../readable-ref-body-shadow.ts.shot | 32 +- .../default-params/readable-ref-const.ts.shot | 28 +- .../default-params/readable-ref-let.ts.shot | 28 +- .../readable-ref-nested-body-shadow.ts.shot | 40 +- .../readable-ref-nested.ts.shot | 36 +- .../readable-ref-param-shadow.ts.shot | 32 +- .../readable-ref-partial.ts.shot | 28 +- .../default-params/writable-ref.ts.shot | 28 +- .../inherited-scope.ts.shot | 24 +- .../function-expression/params.ts.shot | 56 +- .../function-expression/scope.ts.shot | 32 +- .../type-parameters/body-reference.ts.shot | 28 +- .../type-parameters/param-reference.ts.shot | 28 +- .../return-value-reference.ts.shot | 24 +- .../type-param-reference.ts.shot | 28 +- .../type-parameter-declaration.ts.shot | 28 +- .../type-predicate-asserts1.ts.shot | 24 +- .../type-predicate-asserts2.ts.shot | 28 +- .../type-predicate1.ts.shot | 24 +- .../type-predicate2.ts.shot | 28 +- .../global-resolution/module/class.ts.shot | 24 +- .../global-resolution/module/function.ts.shot | 24 +- .../module/variable-decl-const.ts.shot | 20 +- .../module/variable-decl-let.ts.shot | 20 +- .../module/variable-decl-var.ts.shot | 20 +- .../global-resolution/script/class.ts.shot | 20 +- .../global-resolution/script/function.ts.shot | 20 +- .../script/variable-decl-const.ts.shot | 16 +- .../script/variable-decl-let.ts.shot | 16 +- .../script/variable-decl-var.ts.shot | 16 +- .../tests/fixtures/implicit/implicit1.ts.shot | 12 +- .../tests/fixtures/import/default.ts.shot | 20 +- .../tests/fixtures/import/equals1.ts.shot | 16 +- .../tests/fixtures/import/equals2.ts.shot | 20 +- .../tests/fixtures/import/named-alias.ts.shot | 20 +- .../tests/fixtures/import/named.ts.shot | 20 +- .../tests/fixtures/import/namespace.ts.shot | 20 +- .../import/type-default-value.ts.shot | 20 +- .../fixtures/import/type-default.ts.shot | 24 +- .../fixtures/import/type-inline-value.ts.shot | 20 +- .../tests/fixtures/import/type-inline.ts.shot | 24 +- .../fixtures/import/type-named-value.ts.shot | 20 +- .../tests/fixtures/import/type-named.ts.shot | 24 +- .../type-arguments1.ts.shot | 44 +- .../type-arguments2.ts.shot | 44 +- .../fixtures/jsx/attribute-spread.tsx.shot | 12 +- .../tests/fixtures/jsx/attribute.tsx.shot | 16 +- .../tests/fixtures/jsx/children.tsx.shot | 12 +- .../jsx/component-intrinsic-name.tsx.shot | 20 +- .../jsx/component-namespaced1.tsx.shot | 24 +- .../jsx/component-namespaced2.tsx.shot | 24 +- .../tests/fixtures/jsx/component.tsx.shot | 20 +- .../factory/default-jsxFragmentName.tsx.shot | 20 +- .../default-jsxPragma-fragment.tsx.shot | 16 +- .../jsx/factory/default-jsxPragma.tsx.shot | 16 +- .../jsx/factory/jsxFragmentName.tsx.shot | 20 +- .../jsxPragma-jsxFragmentName.tsx.shot | 24 +- .../fixtures/jsx/factory/jsxPragma.tsx.shot | 20 +- .../fixtures/jsx/fragment-children.tsx.shot | 12 +- .../tests/fixtures/jsx/fragment.tsx.shot | 8 +- .../fixtures/jsx/generic-type-param.tsx.shot | 12 +- .../tests/fixtures/jsx/text.tsx.shot | 12 +- .../fixtures/jsx/this-jsxidentifier.tsx.shot | 40 +- .../member-expression.ts.shot | 12 +- .../new-expression/new-expression.ts.shot | 24 +- .../new-expression/type-parameters1.ts.shot | 12 +- .../new-expression/type-parameters2.ts.shot | 12 +- .../fixtures/ts-enum/external-ref.ts.shot | 24 +- .../ts-enum/literal-member-ref.ts.shot | 28 +- .../fixtures/ts-enum/literal-member.ts.shot | 24 +- .../tests/fixtures/ts-enum/member-ref.ts.shot | 28 +- .../tests/fixtures/ts-enum/scope.ts.shot | 28 +- .../tests/fixtures/ts-enum/self-ref.ts.shot | 28 +- .../class-namespace.ts.shot | 32 +- .../function-namespace.ts.shot | 32 +- .../namespace-variable.ts.shot | 20 +- .../fixtures/ts-module/external-ref.ts.shot | 20 +- .../ts-module/global-augmentation.ts.shot | 16 +- .../tests/fixtures/ts-module/import.ts.shot | 20 +- .../ts-module/name-shadowed-in-body.ts.shot | 24 +- .../fixtures/ts-module/namespace.ts.shot | 24 +- .../tests/fixtures/ts-module/scope.ts.shot | 24 +- .../tests/fixtures/ts-module/self-ref.ts.shot | 20 +- .../parameter-array-destructure.ts.shot | 28 +- .../type-annotation/parameter-default.ts.shot | 28 +- .../parameter-object-destructure.ts.shot | 28 +- .../type-annotation/parameter-rest.ts.shot | 28 +- .../type-annotation/parameter.ts.shot | 28 +- .../variable-array-destructure.ts.shot | 16 +- .../type-annotation/variable-const.ts.shot | 16 +- .../type-annotation/variable-let.ts.shot | 16 +- .../variable-object-destructure.ts.shot | 16 +- .../type-annotation/variable-var.ts.shot | 16 +- .../type-assertion/angle-bracket.ts.shot | 16 +- .../tests/fixtures/type-assertion/as.ts.shot | 16 +- .../angle-bracket-assignment.ts.shot | 12 +- .../assignment/as-assignment.ts.shot | 12 +- .../assignment/non-null-assignment.ts.shot | 12 +- .../fixtures/type-assertion/satisfies.ts.shot | 16 +- .../conditional-nested.ts.shot | 36 +- .../type-declaration/conditional1.ts.shot | 32 +- .../type-declaration/conditional2.ts.shot | 24 +- .../type-declaration/conditional3.ts.shot | 36 +- .../type-declaration/conditional4.ts.shot | 28 +- .../type-declaration/conditional5.ts.shot | 44 +- .../type-declaration/dual-type-value.ts.shot | 20 +- .../function/constructor-generics1.ts.shot | 32 +- .../function/constructor-generics2.ts.shot | 28 +- .../function/constructor.ts.shot | 24 +- .../function/function-generics1.ts.shot | 32 +- .../function/function-generics2.ts.shot | 28 +- .../function/function1.ts.shot | 24 +- .../function/function2.ts.shot | 24 +- .../function/params/array-pattern.ts.shot | 28 +- .../function/params/object-pattern.ts.shot | 28 +- .../function/params/rest-element.ts.shot | 28 +- .../import-type-with-qualifier.ts.shot | 12 +- .../import-type-with-type-params.ts.shot | 16 +- .../type-declaration/import-type.ts.shot | 12 +- .../type-declaration/index-access1.ts.shot | 16 +- .../type-declaration/index-access2.ts.shot | 20 +- .../type-declaration/index-access3.ts.shot | 20 +- .../infer-type-constraint.ts.shot | 32 +- .../interface-heritage1.ts.shot | 16 +- .../interface-heritage2.ts.shot | 28 +- .../type-declaration/interface1.ts.shot | 12 +- .../type-declaration/interface2.ts.shot | 16 +- .../type-declaration/literal-type1.ts.shot | 20 +- .../type-declaration/literal-type2.ts.shot | 24 +- .../type-declaration/literal-type3.ts.shot | 32 +- .../type-declaration/mapped-named.ts.shot | 24 +- .../fixtures/type-declaration/mapped.ts.shot | 24 +- .../type-declaration/qualified-name.ts.shot | 16 +- .../signatures/call-generics.ts.shot | 28 +- .../type-declaration/signatures/call.ts.shot | 24 +- .../signatures/construct-generics.ts.shot | 28 +- .../signatures/construct.ts.shot | 24 +- .../signatures/index-sig.ts.shot | 16 +- .../signatures/method-computed-name.ts.shot | 28 +- .../signatures/method-computed-name2.ts.shot | 32 +- .../signatures/method-generics.ts.shot | 28 +- .../signatures/method.ts.shot | 24 +- .../signatures/property-computed-name.ts.shot | 20 +- .../property-computed-name2.ts.shot | 28 +- .../signatures/property.ts.shot | 16 +- .../tuple-labelled-rest.ts.shot | 16 +- .../type-declaration/tuple-labelled.ts.shot | 20 +- .../type-declaration/tuple-rest.ts.shot | 16 +- .../fixtures/type-declaration/tuple.ts.shot | 16 +- .../interface/body-reference.ts.shot | 20 +- .../interface/extends-reference.ts.shot | 32 +- .../interface/type-param-reference.ts.shot | 24 +- ...type-parameter-declaration-extends.ts.shot | 24 +- .../type-parameter-declaration.ts.shot | 24 +- .../type-parameters/tagged-template.ts.shot | 36 +- .../type-decl/body-reference.ts.shot | 20 +- .../type-decl/type-param-reference.ts.shot | 24 +- ...type-parameter-declaration-extends.ts.shot | 24 +- .../type-parameter-declaration.ts.shot | 24 +- .../type-query-qualified.ts.shot | 20 +- .../type-query-with-parameters.ts.shot | 40 +- .../type-declaration/type-query.ts.shot | 20 +- .../fixtures/type-declaration/type1.ts.shot | 12 +- .../fixtures/type-declaration/type2.ts.shot | 16 +- .../fixtures/type-declaration/type3.ts.shot | 16 +- .../typeof-import-type-with-qualifier.ts.shot | 12 +- .../lib/__snapshots__/convert.test.ts.snap | 1 + .../semantic-diagnostics-enabled.test.ts.snap | 2019 ----------------- .../lib/semantic-diagnostics-enabled.test.ts | 45 - 2208 files changed, 8195 insertions(+), 10258 deletions(-) delete mode 100644 packages/typescript-estree/tests/lib/__snapshots__/semantic-diagnostics-enabled.test.ts.snap delete mode 100644 packages/typescript-estree/tests/lib/semantic-diagnostics-enabled.test.ts 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 782be4b44b2f..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,7 +29,7 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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-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 7e3c1cda98cf..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,7 +68,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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/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/kind-type/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/1-TSESTree-AST.shot index 4e1ab2405d45..46c322f26487 100644 --- 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 @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration ExportAllDeclaration kind-type TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportAllDeclaration { type: "ExportAllDeclaration", - assertions: Array [], + assertions: [], exported: Identifier { type: "Identifier", name: "x", 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 index f5bfa8f5615e..a2c51e97194d 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportAllDeclaration kind-type TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", 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 index db3c54aa4dba..bed9ece4db99 100644 --- 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 @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration ExportAllDeclaration kind-type Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportAllDeclaration { type: "ExportAllDeclaration", - assertions: Array [], + assertions: [], exported: Identifier { type: "Identifier", name: "x", 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 index d056329978cf..22f611fcc4ad 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportAllDeclaration kind-type Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", 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 index 238b22e8fba5..7d543dbf7590 100644 --- 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 @@ -24,7 +24,7 @@ exports[`AST Fixtures declaration ExportAllDeclaration kind-type AST Alignment - exportKind: 'type', source: Literal { type: 'Literal', - raw: '\\\\'a\\\\'', + raw: '\\'a\\'', value: 'a', range: [24, 27], 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/type-kind/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/1-TSESTree-AST.shot index e17c2f544c3e..f027390217e8 100644 --- 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 @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration ExportAllDeclaration type-kind TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportAllDeclaration { type: "ExportAllDeclaration", - assertions: Array [], + assertions: [], exported: null, exportKind: "type", source: Literal { 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 index 0b14e18af159..0fb690c907f9 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportAllDeclaration type-kind TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", 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 index ada2c2d39de7..f0fa5824b7b9 100644 --- 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 @@ -3,10 +3,10 @@ exports[`AST Fixtures declaration ExportAllDeclaration type-kind Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportAllDeclaration { type: "ExportAllDeclaration", - assertions: Array [], + assertions: [], exported: null, exportKind: "type", source: Literal { 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 index b222fc881322..9ee898d6e7c2 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures declaration ExportAllDeclaration type-kind Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", 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 index 038e5e4fa6f1..50686a548344 100644 --- 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 @@ -15,7 +15,7 @@ exports[`AST Fixtures declaration ExportAllDeclaration type-kind AST Alignment - exportKind: 'type', source: Literal { type: 'Literal', - raw: '\\\\'a\\\\'', + raw: '\\'a\\'', value: 'a', range: [19, 22], 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 bbdff121824a..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,10 +29,10 @@ Program { end: { column: 12, line: 1 }, }, }, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot index 7ed214a6dac8..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,10 +29,10 @@ Program { end: { column: 12, line: 1 }, }, }, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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/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 7ebe6a511c98..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,10 +20,10 @@ Program { end: { column: 20, line: 1 }, }, }, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot index f918dfb9f1ee..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,10 +20,10 @@ Program { end: { column: 20, line: 1 }, }, }, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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/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 0dfd9b0dbedc..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,7 +28,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot index 5a3ea46e5bb3..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,7 +28,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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/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 9e30e10752b9..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,7 +38,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot index 9bf1ca3a104c..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,7 +38,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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/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 6f555db8cd09..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,10 +29,10 @@ Program { end: { column: 10, line: 3 }, }, }, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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-parameters/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/babylon-convergence/fixtures/type-parameters/snapshots/1-TSESTree-AST.shot index fb934bcd345f..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,10 +29,10 @@ Program { end: { column: 10, line: 3 }, }, }, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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/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 64b437f49e8b..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,7 +112,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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/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 f9c5d072f707..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,7 +71,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, @@ -111,7 +111,7 @@ Program { }, TSConstructSignatureDeclaration { type: "TSConstructSignatureDeclaration", - params: Array [ + params: [ Identifier { type: "Identifier", name: "a", @@ -161,7 +161,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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/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 ae4834c3b192..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,7 +87,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-extends-generic/snapshots/1-TSESTree-AST.shot index e365a073333b..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,7 +68,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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-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 c358470ad229..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,10 +41,10 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-generic-method/snapshots/1-TSESTree-AST.shot index f6697f97e72f..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,10 +41,10 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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-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 8106d34ab7be..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,10 +106,10 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, @@ -175,7 +175,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [124, 126], loc: { @@ -186,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-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 35a8324a5c4a..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,7 +71,7 @@ Program { ], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, @@ -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/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/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-mixin/snapshots/1-TSESTree-AST.shot index 7571b2dce2ee..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,7 +111,7 @@ Program { ], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, @@ -129,10 +129,10 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeLiteral { type: "TSTypeLiteral", - members: Array [], + members: [], range: [106, 108], loc: { @@ -193,7 +193,7 @@ Program { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [196, 198], loc: { @@ -211,7 +211,7 @@ Program { end: { column: 7, line: 7 }, }, }, - implements: Array [ + implements: [ TSClassImplements { type: "TSClassImplements", expression: Identifier { @@ -234,7 +234,7 @@ Program { ], superClass: CallExpression { type: "CallExpression", - arguments: Array [ + arguments: [ Identifier { type: "Identifier", name: "C", @@ -259,7 +259,7 @@ Program { optional: false, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSAnyKeyword { type: "TSAnyKeyword", @@ -295,7 +295,7 @@ Program { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [208, 210], loc: { @@ -325,7 +325,7 @@ Program { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [223, 225], loc: { @@ -365,7 +365,7 @@ Program { typeAnnotation: TSConstructorType { type: "TSConstructorType", abstract: false, - params: Array [ + params: [ RestElement { type: "RestElement", argument: Identifier { @@ -450,7 +450,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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-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 edb09734f9b1..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,7 +29,7 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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-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 3ceea1ac9bbf..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,7 +29,7 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/class-with-type-parameter/snapshots/1-TSESTree-AST.shot index fe39caba13d7..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,7 +29,7 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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/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 6b86bc109cb6..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,7 +22,7 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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-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 f6f1e2e2b390..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,7 +22,7 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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-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 ab3fe7fc1cb6..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,7 +32,7 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, @@ -72,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-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 5bf16695b422..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,7 +32,7 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, @@ -94,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-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/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 index 85b4043a8506..62fbec4b35e7 100644 --- 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 @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics export-type-star-from TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportAllDeclaration { type: "ExportAllDeclaration", - assertions: Array [], + assertions: [], exported: null, exportKind: "type", source: Literal { 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 index ff19b28d1fa9..a16dc41968b7 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics export-type-star-from TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", 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 index a3a9467eb829..a079138bc91b 100644 --- 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 @@ -3,10 +3,10 @@ exports[`AST Fixtures legacy-fixtures basics export-type-star-from Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExportAllDeclaration { type: "ExportAllDeclaration", - assertions: Array [], + assertions: [], exported: null, exportKind: "type", source: Literal { 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 index fb91aebea7ae..f497cf8d319a 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures legacy-fixtures basics export-type-star-from Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "export", 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 index 292104842b03..b14dfbca2018 100644 --- 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 @@ -15,7 +15,7 @@ exports[`AST Fixtures legacy-fixtures basics export-type-star-from AST Alignment exportKind: 'type', source: Literal { type: 'Literal', - raw: '\\\\'bar\\\\'', + raw: '\\'bar\\'', value: 'bar', range: [92, 97], 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 41b3777d672d..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,7 +87,7 @@ Program { ], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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-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 aafa8b03f6dc..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,10 +29,10 @@ Program { end: { column: 16, line: 3 }, }, }, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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-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 a6e6a40408c2..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,13 +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/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/function-with-type-parameters/snapshots/1-TSESTree-AST.shot index deff03fd9562..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,7 +119,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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-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 2b15bd765986..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,7 +28,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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-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 c8453b6255c0..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,7 +470,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, @@ -510,7 +510,7 @@ Program { }, TSConstructSignatureDeclaration { type: "TSConstructSignatureDeclaration", - params: Array [ + params: [ Identifier { type: "Identifier", name: "a", @@ -560,7 +560,7 @@ Program { }, TSConstructSignatureDeclaration { type: "TSConstructSignatureDeclaration", - params: Array [ + params: [ Identifier { type: "Identifier", name: "a", @@ -603,7 +603,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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-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 c7d0b884a3b8..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,7 +79,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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-generic/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/interface-with-generic/snapshots/1-TSESTree-AST.shot index 3bd4cc3552fd..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,7 +28,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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-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 5e8f5a67cedf..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,7 +162,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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-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 c4f36c1cdaa0..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,7 +27,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, @@ -97,7 +97,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, @@ -167,7 +167,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, @@ -237,7 +237,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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/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 c18166ff6dc9..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,7 +96,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, @@ -162,7 +162,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: Literal { @@ -194,7 +194,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSNumberKeyword { @@ -215,7 +215,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, @@ -281,7 +281,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [ + body: [ ReturnStatement { type: "ReturnStatement", argument: Literal { @@ -313,7 +313,7 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], returnType: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSNumberKeyword { @@ -367,7 +367,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [241, 243], loc: { @@ -378,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/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 ce5a9d72e712..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,13 +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/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-alias-declaration/snapshots/1-TSESTree-AST.shot index 53b3c3a9fcdd..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,7 +97,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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-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 999d0c3a74de..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,7 +68,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, @@ -110,7 +110,7 @@ Program { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [232, 234], loc: { @@ -140,7 +140,7 @@ Program { }, superTypeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -170,7 +170,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, @@ -232,7 +232,7 @@ Program { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [308, 310], loc: { @@ -240,7 +240,7 @@ Program { end: { column: 75, line: 7 }, }, }, - extends: Array [ + extends: [ TSInterfaceHeritage { type: "TSInterfaceHeritage", expression: Identifier { @@ -255,7 +255,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -303,7 +303,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, @@ -345,7 +345,7 @@ Program { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [400, 402], loc: { @@ -353,7 +353,7 @@ Program { end: { column: 39, line: 9 }, }, }, - extends: Array [ + extends: [ TSInterfaceHeritage { type: "TSInterfaceHeritage", expression: Identifier { @@ -368,7 +368,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -416,7 +416,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-parameters-comments/snapshots/1-TSESTree-AST.shot index 39047e8fcef6..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,10 +89,10 @@ Program { end: { column: 12, line: 4 }, }, }, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, @@ -135,7 +135,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [200, 202], loc: { @@ -155,10 +155,10 @@ Program { end: { column: 12, line: 5 }, }, }, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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-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 c6167c1cfeb9..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,7 +172,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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-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 4275a3f7ebba..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 { @@ -164,7 +164,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSInferType { type: "TSInferType", typeParameter: TSTypeParameter { @@ -310,7 +310,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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-simple/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer-simple/snapshots/1-TSESTree-AST.shot index 71c4e1069ee5..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, @@ -205,7 +205,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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-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 ea44724e949d..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,7 +39,7 @@ Program { }, extendsType: TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSInferType { type: "TSInferType", typeParameter: TSTypeParameter { @@ -111,7 +111,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -155,7 +155,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, @@ -228,7 +228,7 @@ Program { }, extendsType: TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSInferType { type: "TSInferType", typeParameter: TSTypeParameter { @@ -340,7 +340,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -384,7 +384,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, @@ -457,7 +457,7 @@ Program { }, extendsType: TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSInferType { type: "TSInferType", typeParameter: TSTypeParameter { @@ -560,7 +560,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -604,7 +604,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, @@ -677,7 +677,7 @@ Program { }, extendsType: TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSInferType { type: "TSInferType", typeParameter: TSTypeParameter { @@ -780,7 +780,7 @@ Program { }, typeParameters: TSTypeParameterInstantiation { type: "TSTypeParameterInstantiation", - params: Array [ + params: [ TSTypeReference { type: "TSTypeReference", typeName: Identifier { @@ -824,7 +824,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, @@ -897,7 +897,7 @@ Program { }, extendsType: TSTupleType { type: "TSTupleType", - elementTypes: Array [ + elementTypes: [ TSInferType { type: "TSInferType", typeParameter: TSTypeParameter { @@ -1023,7 +1023,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/conditional-infer/snapshots/1-TSESTree-AST.shot index d37879b44ab6..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 { @@ -124,7 +124,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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-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 025c5b453290..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,7 +87,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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-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 58a3cfb41839..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,7 +86,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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-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 52a61f42484a..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,7 +137,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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/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 d0a14fbce55b..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 { @@ -145,7 +145,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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 fb4d069532a1..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], 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 26157d798fe0..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 { 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-plus/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly-plus/snapshots/1-TSESTree-AST.shot index 5ceb049ff33c..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 { 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/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-readonly/snapshots/1-TSESTree-AST.shot index 13dbfd5fd9d1..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 { 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-untypped/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped-untypped/snapshots/1-TSESTree-AST.shot index 9e69aba7257c..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 { 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/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/mapped/snapshots/1-TSESTree-AST.shot index 98713d77e9b5..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 { 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/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 81d37b235ba4..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,7 +95,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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-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 070d7a33c7b3..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,7 +95,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-in/snapshots/1-TSESTree-AST.shot index 3842372420df..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,7 +85,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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-out/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/types/fixtures/optional-variance-out/snapshots/1-TSESTree-AST.shot index a196f567eb84..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,7 +56,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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/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 f299934132b4..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,7 +297,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, @@ -370,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 06e7cb02c0e6..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 @@ -594,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/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/arrow-const-modifier-extends/snapshots/1-TSESTree-AST.shot index 4196b1ffe0e6..a6d847de1c2d 100644 --- 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 @@ -3,7 +3,7 @@ exports[`AST Fixtures special TSTypeParameter arrow-const-modifier-extends 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: [], range: [25, 27], loc: { @@ -22,10 +22,10 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, 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 index 1121e5b9ac34..8d06df9d215b 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter arrow-const-modifier-extends TSESTree - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "<", 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 index 47e9fb0466a2..6d6084a0dab5 100644 --- 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 @@ -3,7 +3,7 @@ exports[`AST Fixtures special TSTypeParameter arrow-const-modifier-extends 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: [], range: [25, 27], loc: { @@ -22,10 +22,10 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, 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 index e353eb64634c..0c5a13d7cb43 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter arrow-const-modifier-extends Babel - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "<", 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 index 766e190e49f5..beab46e12b9e 100644 --- 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 @@ -3,7 +3,7 @@ exports[`AST Fixtures special TSTypeParameter arrow-const-modifier 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: [], range: [15, 17], loc: { @@ -22,10 +22,10 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, 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 index 6fd763d2a2da..c30a4cca61f6 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter arrow-const-modifier TSESTree - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "<", 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 index e5ea70f6a9e2..8fe677771132 100644 --- 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 @@ -3,7 +3,7 @@ exports[`AST Fixtures special TSTypeParameter arrow-const-modifier 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: [], range: [15, 17], loc: { @@ -22,10 +22,10 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, 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 index 91a25dd7138a..e14fc6ad72dc 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter arrow-const-modifier Babel - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "<", 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 index 24e7c42ba0fb..4c7658d5f79b 100644 --- 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 @@ -3,12 +3,12 @@ exports[`AST Fixtures special TSTypeParameter class-decl-const-in-modifier TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [20, 22], loc: { @@ -29,7 +29,7 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, 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 index f2e380c19dd7..1b61e7caf2cd 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter class-decl-const-in-modifier TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", 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 index 422530d039c5..cf8bdeebdc93 100644 --- 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 @@ -3,12 +3,12 @@ exports[`AST Fixtures special TSTypeParameter class-decl-const-in-modifier Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [20, 22], loc: { @@ -29,7 +29,7 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, 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 index 6abbc6c549ed..fea85c0ee9b9 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter class-decl-const-in-modifier Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", 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 index a31ab33ed3ab..99c1b4bfa76d 100644 --- 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 @@ -3,12 +3,12 @@ exports[`AST Fixtures special TSTypeParameter class-decl-const-modifier-extends TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [27, 29], loc: { @@ -29,7 +29,7 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, 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 index cdea319464d4..3d05f97a2ef4 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter class-decl-const-modifier-extends TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", 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 index f1530945fe05..3503630e2e7d 100644 --- 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 @@ -3,12 +3,12 @@ exports[`AST Fixtures special TSTypeParameter class-decl-const-modifier-extends Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [27, 29], loc: { @@ -29,7 +29,7 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, 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 index 3fd9f064797d..d18447a029d4 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter class-decl-const-modifier-extends Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", 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 index 690ad079a693..e4ea2237032a 100644 --- 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 @@ -3,12 +3,12 @@ exports[`AST Fixtures special TSTypeParameter class-decl-const-modifier-multiple TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [20, 22], loc: { @@ -29,7 +29,7 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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 index b54ca39a613f..ca84d4b91f55 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter class-decl-const-modifier-multiple TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", 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 index f2a92ee1a317..609bb853b3f8 100644 --- 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 @@ -3,12 +3,12 @@ exports[`AST Fixtures special TSTypeParameter class-decl-const-modifier-multiple Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [20, 22], 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/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 index 2245d514cb77..feb108072a1c 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter class-decl-const-modifier-multiple Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", 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 index 52825106e0da..6a0bab05f37f 100644 --- 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 @@ -3,12 +3,12 @@ exports[`AST Fixtures special TSTypeParameter class-decl-const-modifier TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [17, 19], loc: { @@ -29,7 +29,7 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, 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 index ee3a6611f449..6cf2d50be8c4 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter class-decl-const-modifier TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", 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 index 5220f23ce44d..62e2ab204551 100644 --- 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 @@ -3,12 +3,12 @@ exports[`AST Fixtures special TSTypeParameter class-decl-const-modifier Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [17, 19], loc: { @@ -29,7 +29,7 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, 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 index 83faac7304ed..93f61362d8f6 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter class-decl-const-modifier Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", 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 index 3cf992b08577..132ed8b6e376 100644 --- 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 @@ -3,12 +3,12 @@ exports[`AST Fixtures special TSTypeParameter class-decl-in-const-modifier TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [20, 22], loc: { @@ -29,7 +29,7 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, 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 index cc9e9adc2320..c7afa0857168 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter class-decl-in-const-modifier TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", 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 index a1f230b755dc..7a025f422201 100644 --- 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 @@ -3,12 +3,12 @@ exports[`AST Fixtures special TSTypeParameter class-decl-in-const-modifier Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ClassDeclaration { type: "ClassDeclaration", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [20, 22], loc: { @@ -29,7 +29,7 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, 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 index 8c2ed4d12b76..93b1ee573afd 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter class-decl-in-const-modifier Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "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 index 8d185f20e56e..2ae40e1f3f44 100644 --- 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 @@ -3,14 +3,14 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-in-modifier TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ClassExpression { type: "ClassExpression", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [20, 22], loc: { @@ -22,7 +22,7 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, 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 index 72be2d9bf955..b72435e44963 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter class-expr-const-in-modifier TSESTree - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", 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 index 8c6a13cf3853..b91328e335ff 100644 --- 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 @@ -3,14 +3,14 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-in-modifier Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ClassExpression { type: "ClassExpression", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [20, 22], loc: { @@ -22,7 +22,7 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, 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 index e4633d22a4f2..2bb229553460 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter class-expr-const-in-modifier Babel - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", 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 index 6b0bdc7a2bfa..9c4dee68d2bc 100644 --- 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 @@ -3,14 +3,14 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-extends TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ClassExpression { type: "ClassExpression", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [27, 29], loc: { @@ -22,7 +22,7 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, 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 index 6cc630de9e09..9cd407c13d33 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-extends TSESTree - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", 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 index 5fe5b59605ee..6f6690c12313 100644 --- 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 @@ -3,14 +3,14 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-extends Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ClassExpression { type: "ClassExpression", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [27, 29], loc: { @@ -22,7 +22,7 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, 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 index 6ac0b40cf560..8878acf69126 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-extends Babel - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", 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 index eea3aa66bb97..183080d0ea2a 100644 --- 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 @@ -3,14 +3,14 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-multiple TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ClassExpression { type: "ClassExpression", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [20, 22], loc: { @@ -22,7 +22,7 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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 index e01a5b533d12..825375374759 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-multiple TSESTree - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", 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 index 7c778a6bcfc8..70dec76e302f 100644 --- 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 @@ -3,14 +3,14 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-multiple Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ClassExpression { type: "ClassExpression", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [20, 22], 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/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 index c14e30728092..dd07dc882c06 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-multiple Babel - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", 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 index 33256b778c3a..97670b76950a 100644 --- 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 @@ -3,14 +3,14 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ClassExpression { type: "ClassExpression", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [17, 19], loc: { @@ -22,7 +22,7 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, 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 index 3811f6f336dd..a599070370a6 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier TSESTree - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", 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 index dd822ac4a939..592ea11dcc9a 100644 --- 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 @@ -3,14 +3,14 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ClassExpression { type: "ClassExpression", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [17, 19], loc: { @@ -22,7 +22,7 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, 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 index 63d8766b2e13..0e54bfc1447d 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier Babel - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", 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 index fcffd0b8c92f..fa67e5d5be07 100644 --- 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 @@ -3,14 +3,14 @@ exports[`AST Fixtures special TSTypeParameter class-expr-in-const-modifier TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ClassExpression { type: "ClassExpression", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [20, 22], loc: { @@ -22,7 +22,7 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, 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 index 10da065d45e6..1046c2c28015 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter class-expr-in-const-modifier TSESTree - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", 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 index be63bfbe539f..3229c6fab61b 100644 --- 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 @@ -3,14 +3,14 @@ exports[`AST Fixtures special TSTypeParameter class-expr-in-const-modifier Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: ClassExpression { type: "ClassExpression", body: ClassBody { type: "ClassBody", - body: Array [], + body: [], range: [20, 22], loc: { @@ -22,7 +22,7 @@ Program { superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, 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 index a9c914863e5d..3cdb8cd44bc7 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter class-expr-in-const-modifier Babel - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", 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 index 08cb4c0d8ce2..11f14029939d 100644 --- 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 @@ -3,7 +3,7 @@ exports[`AST Fixtures special TSTypeParameter declare-func-const-modifier TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSDeclareFunction { type: "TSDeclareFunction", async: false, @@ -20,10 +20,10 @@ Program { end: { column: 18, line: 1 }, }, }, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, 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 index fca049179424..668c91cd46ac 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter declare-func-const-modifier TSESTree - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", 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 index 56ce8e8fbb7b..c32422990f46 100644 --- 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 @@ -3,7 +3,7 @@ exports[`AST Fixtures special TSTypeParameter declare-func-const-modifier Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSDeclareFunction { type: "TSDeclareFunction", async: false, @@ -20,10 +20,10 @@ Program { end: { column: 18, line: 1 }, }, }, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, 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 index 4e67a63ce2ea..a0bbcc39b1c0 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter declare-func-const-modifier Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "declare", 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 index 12df729c7215..5572b5335c89 100644 --- 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 @@ -3,13 +3,13 @@ exports[`AST Fixtures special TSTypeParameter func-decl-const-modifier-extends TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [32, 34], loc: { @@ -29,10 +29,10 @@ Program { end: { column: 10, line: 1 }, }, }, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, 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 index 1b7875fbe5f8..cb52a63e8936 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter func-decl-const-modifier-extends TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", 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 index 12e8654b2dff..9e78b8b5283b 100644 --- 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 @@ -3,13 +3,13 @@ exports[`AST Fixtures special TSTypeParameter func-decl-const-modifier-extends Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [32, 34], loc: { @@ -29,10 +29,10 @@ Program { end: { column: 10, line: 1 }, }, }, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, 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 index 0ebba700612d..51e81f4f277a 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter func-decl-const-modifier-extends Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", 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 index 6068e9975005..71d3cd47f020 100644 --- 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 @@ -3,13 +3,13 @@ exports[`AST Fixtures special TSTypeParameter func-decl-const-modifier-multiple TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [25, 27], loc: { @@ -29,10 +29,10 @@ Program { end: { column: 10, line: 1 }, }, }, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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 index c86b697b908a..acc82f658662 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter func-decl-const-modifier-multiple TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", 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 index f6da4949e068..ec86c4a37258 100644 --- 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 @@ -3,13 +3,13 @@ exports[`AST Fixtures special TSTypeParameter func-decl-const-modifier-multiple Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ FunctionDeclaration { type: "FunctionDeclaration", async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [25, 27], loc: { @@ -29,10 +29,10 @@ Program { end: { column: 10, line: 1 }, }, }, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", name: "T", 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 index 9771e4d1bed7..d82c818d79d7 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter func-decl-const-modifier-multiple Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", 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 index 933e7b9dc03d..439f20b8d924 100644 --- 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 @@ -3,13 +3,13 @@ exports[`AST Fixtures special TSTypeParameter func-decl-const-modifier 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,10 +29,10 @@ Program { end: { column: 10, line: 1 }, }, }, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, 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 index da988d004a40..747515023c47 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter func-decl-const-modifier TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "function", 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 index 882e37dbb44a..225a278876a7 100644 --- 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 @@ -3,13 +3,13 @@ exports[`AST Fixtures special TSTypeParameter func-decl-const-modifier 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,10 +29,10 @@ Program { end: { column: 10, line: 1 }, }, }, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, 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 index 7fb17b6a7092..adcc59676f88 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter func-decl-const-modifier Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "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 index 6c8b5394aa19..4687caca30c2 100644 --- 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 @@ -3,7 +3,7 @@ exports[`AST Fixtures special TSTypeParameter func-expr-const-modifier-extends TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: FunctionExpression { @@ -11,7 +11,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [32, 34], loc: { @@ -22,10 +22,10 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, 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 index 681e30413be9..6a7532c61885 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter func-expr-const-modifier-extends TSESTree - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", 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 index 7c6f2a7b1b6f..2ca0b768f209 100644 --- 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 @@ -3,7 +3,7 @@ exports[`AST Fixtures special TSTypeParameter func-expr-const-modifier-extends Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: FunctionExpression { @@ -11,7 +11,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [32, 34], loc: { @@ -22,10 +22,10 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, 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 index 98e9fe2a75d2..d374debdd199 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter func-expr-const-modifier-extends Babel - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", 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 index a6bf6f0d28d9..981d3e4bfbc5 100644 --- 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 @@ -3,7 +3,7 @@ exports[`AST Fixtures special TSTypeParameter func-expr-const-modifier-multiple TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: FunctionExpression { @@ -11,7 +11,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [25, 27], loc: { @@ -22,10 +22,10 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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 index 3bd2ede90547..f88da14670a8 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter func-expr-const-modifier-multiple TSESTree - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", 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 index 99989558e4e3..006a480bb382 100644 --- 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 @@ -3,7 +3,7 @@ exports[`AST Fixtures special TSTypeParameter func-expr-const-modifier-multiple Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: FunctionExpression { @@ -11,7 +11,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [25, 27], loc: { @@ -22,10 +22,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/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 index 17ba38de7131..d09fb6259bc0 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter func-expr-const-modifier-multiple Babel - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", 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 index 877b212c5742..249dc8e42534 100644 --- 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 @@ -3,7 +3,7 @@ exports[`AST Fixtures special TSTypeParameter func-expr-const-modifier TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: FunctionExpression { @@ -11,7 +11,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [22, 24], loc: { @@ -22,10 +22,10 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, 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 index e27c4c4e7217..e40fbaca9a0e 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter func-expr-const-modifier TSESTree - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", 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 index 41db13981ed1..3b10ac45310d 100644 --- 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 @@ -3,7 +3,7 @@ exports[`AST Fixtures special TSTypeParameter func-expr-const-modifier Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ ExpressionStatement { type: "ExpressionStatement", expression: FunctionExpression { @@ -11,7 +11,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [22, 24], loc: { @@ -22,10 +22,10 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, 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 index d5170f6f5c35..438eb0185dff 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter func-expr-const-modifier Babel - Tokens 1`] = ` -Array [ +[ Punctuator { type: "Punctuator", value: "(", 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 index 08244df83433..21c5d81390de 100644 --- 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 @@ -3,12 +3,12 @@ exports[`AST Fixtures special TSTypeParameter interface-const-in-modifier-multiple TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [24, 26], loc: { @@ -28,7 +28,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, 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 index ec23b39aefb8..7c0b068becc5 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter interface-const-in-modifier-multiple TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "interface", 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 index 3ba533c5899d..9b22b7523cbc 100644 --- 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 @@ -3,12 +3,12 @@ exports[`AST Fixtures special TSTypeParameter interface-const-in-modifier-multiple Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [24, 26], loc: { @@ -28,7 +28,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, 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 index dd79b1ba3cdd..65f255cefeb6 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter interface-const-in-modifier-multiple Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "interface", 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 index 25ee38077346..eb7f3b8a5886 100644 --- 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 @@ -3,12 +3,12 @@ exports[`AST Fixtures special TSTypeParameter interface-const-modifier-extends TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [31, 33], loc: { @@ -28,7 +28,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, 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 index e484e1a896e3..d02485dd18fc 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter interface-const-modifier-extends TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "interface", 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 index e07e4c12960f..d3a89f49e44b 100644 --- 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 @@ -3,12 +3,12 @@ exports[`AST Fixtures special TSTypeParameter interface-const-modifier-extends Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [31, 33], loc: { @@ -28,7 +28,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, 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 index 83a3d9ecbc6d..856e0fa81ce5 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter interface-const-modifier-extends Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "interface", 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 index 99e68cb460e5..341ae78b2525 100644 --- 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 @@ -3,12 +3,12 @@ exports[`AST Fixtures special TSTypeParameter interface-const-modifier-multiple TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [24, 26], loc: { @@ -28,7 +28,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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 index ba0f13bfa7a0..b2d9c40576f7 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter interface-const-modifier-multiple TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "interface", 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 index 4074fcf6f516..52e6fda9e2cf 100644 --- 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 @@ -3,12 +3,12 @@ exports[`AST Fixtures special TSTypeParameter interface-const-modifier-multiple Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [24, 26], 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/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 index 484ffd2241fe..dba8ba69ea0b 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter interface-const-modifier-multiple Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "interface", 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 index c05151d32379..65601c74de47 100644 --- 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 @@ -3,12 +3,12 @@ exports[`AST Fixtures special TSTypeParameter interface-const-modifier TSESTree - 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", const: true, 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 index 43d078d4e556..b29c746f2bff 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter interface-const-modifier TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "interface", 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 index 349b9c261c59..3de821316a50 100644 --- 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 @@ -3,12 +3,12 @@ exports[`AST Fixtures special TSTypeParameter interface-const-modifier 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", const: true, 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 index 468d542ddc64..73947b5bb340 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter interface-const-modifier Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "interface", 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 index 67eee83add54..2971baddac51 100644 --- 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 @@ -3,12 +3,12 @@ exports[`AST Fixtures special TSTypeParameter interface-in-const-modifier-multiple TSESTree - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [24, 26], loc: { @@ -28,7 +28,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, 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 index 315b7d125879..abc1c07187ed 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter interface-in-const-modifier-multiple TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "interface", 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 index 8927bc9e6555..52ab3f627a92 100644 --- 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 @@ -3,12 +3,12 @@ exports[`AST Fixtures special TSTypeParameter interface-in-const-modifier-multiple Babel - AST 1`] = ` Program { type: "Program", - body: Array [ + body: [ TSInterfaceDeclaration { type: "TSInterfaceDeclaration", body: TSInterfaceBody { type: "TSInterfaceBody", - body: Array [], + body: [], range: [24, 26], loc: { @@ -28,7 +28,7 @@ Program { }, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, 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 index d44d5cef7622..b2701779685b 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter interface-in-const-modifier-multiple Babel - Tokens 1`] = ` -Array [ +[ Identifier { type: "Identifier", value: "interface", 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 index 3649928b2a0c..6b8bb7862af7 100644 --- 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 @@ -3,12 +3,12 @@ exports[`AST Fixtures special TSTypeParameter method-const-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: [30, 32], loc: { @@ -41,10 +41,10 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, @@ -110,7 +110,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [63, 65], loc: { @@ -121,10 +121,10 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, @@ -209,7 +209,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [89, 91], loc: { @@ -220,10 +220,10 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: false, 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 index 28ac5324b17a..40f4f507c3f7 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter method-const-modifiers TSESTree - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", 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 index 33245a31fda7..c1527f785958 100644 --- 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 @@ -3,12 +3,12 @@ exports[`AST Fixtures special TSTypeParameter method-const-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: [30, 32], 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", const: true, @@ -97,7 +97,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [63, 65], loc: { @@ -108,10 +108,10 @@ Program { expression: false, generator: false, id: null, - params: Array [], + params: [], typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", - params: Array [ + params: [ TSTypeParameter { type: "TSTypeParameter", const: true, @@ -184,7 +184,7 @@ Program { async: false, body: BlockStatement { type: "BlockStatement", - body: Array [], + body: [], range: [89, 91], loc: { @@ -195,10 +195,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/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 index f7df5dc117d0..878dac619e26 100644 --- 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AST Fixtures special TSTypeParameter method-const-modifiers Babel - Tokens 1`] = ` -Array [ +[ Keyword { type: "Keyword", value: "class", diff --git a/packages/ast-spec/tests/fixtures-with-differences-errors.shot b/packages/ast-spec/tests/fixtures-with-differences-errors.shot index 5cc90983a298..bdb34fe6b4b3 100644 --- a/packages/ast-spec/tests/fixtures-with-differences-errors.shot +++ b/packages/ast-spec/tests/fixtures-with-differences-errors.shot @@ -1,7 +1,7 @@ // 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", 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/typescript-estree/tests/lib/__snapshots__/convert.test.ts.snap b/packages/typescript-estree/tests/lib/__snapshots__/convert.test.ts.snap index 16ece4e44606..866e23ab1ce8 100644 --- a/packages/typescript-estree/tests/lib/__snapshots__/convert.test.ts.snap +++ b/packages/typescript-estree/tests/lib/__snapshots__/convert.test.ts.snap @@ -469,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 bb7cc284704c..000000000000 --- a/packages/typescript-estree/tests/lib/__snapshots__/semantic-diagnostics-enabled.test.ts.snap +++ /dev/null @@ -1,2019 +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_/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/assertion/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportAllDeclaration/fixtures/kind-type/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/type-kind/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-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/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/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`] = ` -TSError { - "column": 14, - "index": 97, - "lineNumber": 4, - "message": "Decorators are not valid here.", -} -`; - -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`] = ` -TSError { - "column": 6, - "index": 91, - "lineNumber": 4, - "message": "Decorators are not valid here.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/parameter-decorators/fixtures/_error_/parameter-rest-element-decorator/fixture 1`] = ` -TSError { - "column": 6, - "index": 91, - "lineNumber": 4, - "message": "Decorators are not valid here.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-constructor/fixture 1`] = ` -TSError { - "column": 14, - "index": 103, - "lineNumber": 4, - "message": "Decorators are not valid here.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-decorator-instance-member/fixture 1`] = ` -TSError { - "column": 6, - "index": 91, - "lineNumber": 4, - "message": "Decorators are not valid here.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-decorator-static-member/fixture 1`] = ` -TSError { - "column": 13, - "index": 104, - "lineNumber": 4, - "message": "Decorators are not valid here.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-instance-member/fixture 1`] = ` -TSError { - "column": 8, - "index": 97, - "lineNumber": 4, - "message": "Decorators are not valid here.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/parameter-decorators/fixtures/parameter-decorator-static-member/fixture 1`] = ` -TSError { - "column": 15, - "index": 110, - "lineNumber": 4, - "message": "Decorators are not valid here.", -} -`; - -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/parameter-decorators/fixtures/parameter-object-pattern-decorator/fixture 1`] = ` -TSError { - "column": 6, - "index": 91, - "lineNumber": 4, - "message": "Decorators are not valid here.", -} -`; - -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/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(); - } - }); - }); -}); From f42264d9005ec34b314642aca93b269c1803b97e Mon Sep 17 00:00:00 2001 From: Brad Zacher Date: Mon, 13 Mar 2023 21:19:48 +1030 Subject: [PATCH 3/3] disable website tests --- .github/workflows/ci.yml | 90 ++++++++++++++++++++-------------------- 1 file changed, 46 insertions(+), 44 deletions(-) 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