From 5dbaf2eb5c4418bf405fd5d39a7217ede2558e7e Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Wed, 11 Sep 2024 20:43:41 -0400 Subject: [PATCH 01/14] feat: support TypeScript 5.6 --- ...-api-extractor-npm-7.38.0-955f1e0725.patch | 46 ---------- .../Dependency_Version_Upgrades.mdx | 2 - package.json | 5 +- packages/ast-spec/package.json | 2 +- .../src/special/ExportSpecifier/spec.ts | 3 +- .../src/special/ImportSpecifier/spec.ts | 3 +- packages/parser/src/parser.ts | 2 + .../src/lib/dom.asynciterable.ts | 2 + .../scope-manager/src/lib/dom.iterable.ts | 5 ++ packages/scope-manager/src/lib/dom.ts | 13 ++- .../scope-manager/src/lib/es2015.iterable.ts | 6 ++ .../src/lib/es2018.asynciterable.ts | 1 + .../scope-manager/src/lib/es2020.string.ts | 4 +- .../src/lib/es2020.symbol.wellknown.ts | 1 + .../src/lib/esnext.asynciterable.ts | 1 + .../src/lib/esnext.disposable.ts | 6 ++ .../scope-manager/src/lib/esnext.iterator.ts | 14 ++++ packages/scope-manager/src/lib/esnext.ts | 2 + packages/scope-manager/src/lib/index.ts | 2 + .../src/lib/webworker.asynciterable.ts | 2 + .../src/lib/webworker.iterable.ts | 4 + packages/scope-manager/src/lib/webworker.ts | 5 +- packages/types/src/lib.ts | 1 + .../src/parseSettings/warnAboutTSVersion.ts | 2 +- yarn.lock | 84 +++++++++---------- 25 files changed, 114 insertions(+), 104 deletions(-) delete mode 100644 .yarn/patches/@microsoft-api-extractor-npm-7.38.0-955f1e0725.patch create mode 100644 packages/scope-manager/src/lib/esnext.iterator.ts diff --git a/.yarn/patches/@microsoft-api-extractor-npm-7.38.0-955f1e0725.patch b/.yarn/patches/@microsoft-api-extractor-npm-7.38.0-955f1e0725.patch deleted file mode 100644 index 4a88d8663c34..000000000000 --- a/.yarn/patches/@microsoft-api-extractor-npm-7.38.0-955f1e0725.patch +++ /dev/null @@ -1,46 +0,0 @@ -diff --git a/lib/analyzer/ExportAnalyzer.js b/lib/analyzer/ExportAnalyzer.js -index 51f31b4f2f253d82adc9594faa58d8dc031957e0..1fddac54b08665f5a5a717fef740613ae921cb7a 100644 ---- a/lib/analyzer/ExportAnalyzer.js -+++ b/lib/analyzer/ExportAnalyzer.js -@@ -193,7 +193,7 @@ class ExportAnalyzer { - const mode = specifier && ts.isStringLiteralLike(specifier) - ? TypeScriptInternals_1.TypeScriptInternals.getModeForUsageLocation(importOrExportDeclaration.getSourceFile(), specifier) - : undefined; -- const resolvedModule = TypeScriptInternals_1.TypeScriptInternals.getResolvedModule(importOrExportDeclaration.getSourceFile(), moduleSpecifier, mode); -+ const resolvedModule = TypeScriptInternals_1.TypeScriptInternals.getResolvedModule(this._program, importOrExportDeclaration.getSourceFile(), moduleSpecifier, mode); - if (resolvedModule === undefined) { - // The TS compiler API `getResolvedModule` cannot resolve ambient modules. Thus, to match API Extractor's - // previous behavior, simply treat all ambient modules as external. This bug is tracked by -@@ -666,7 +666,7 @@ class ExportAnalyzer { - ts.isStringLiteralLike(importOrExportDeclaration.moduleSpecifier) - ? TypeScriptInternals_1.TypeScriptInternals.getModeForUsageLocation(importOrExportDeclaration.getSourceFile(), importOrExportDeclaration.moduleSpecifier) - : undefined; -- const resolvedModule = TypeScriptInternals_1.TypeScriptInternals.getResolvedModule(importOrExportDeclaration.getSourceFile(), moduleSpecifier, mode); -+ const resolvedModule = TypeScriptInternals_1.TypeScriptInternals.getResolvedModule(this._program, importOrExportDeclaration.getSourceFile(), moduleSpecifier, mode); - if (resolvedModule === undefined) { - // Encountered in https://github.com/microsoft/rushstack/issues/1914. - // -diff --git a/lib/analyzer/TypeScriptInternals.js b/lib/analyzer/TypeScriptInternals.js -index ff13db7709ccf502fe202337869d4024431636c9..217c36b0303c3bf9871edabcd48fbf6e09f18561 100644 ---- a/lib/analyzer/TypeScriptInternals.js -+++ b/lib/analyzer/TypeScriptInternals.js -@@ -84,10 +84,16 @@ class TypeScriptInternals { - * Retrieves the (cached) module resolution information for a module name that was exported from a SourceFile. - * The compiler populates this cache as part of analyzing the source file. - */ -- static getResolvedModule(sourceFile, moduleNameText, mode) { -+ static getResolvedModule(program, sourceFile, moduleNameText, mode) { - // Compiler internal: -- // https://github.com/microsoft/TypeScript/blob/v4.7.2/src/compiler/utilities.ts#L161 -- return ts.getResolvedModule(sourceFile, moduleNameText, mode); -+ // https://github.com/microsoft/TypeScript/blob/v5.3-beta/src/compiler/types.ts#L4678 -+ const result = program.getResolvedModule( -+ sourceFile, -+ moduleNameText, -+ mode -+ ); -+ return result?.resolvedModule; -+ - } - /** - * Gets the mode required for module resolution required with the addition of Node16/nodenext diff --git a/docs/maintenance/pull-requests/Dependency_Version_Upgrades.mdx b/docs/maintenance/pull-requests/Dependency_Version_Upgrades.mdx index 15ae0340c358..596c7ea0611e 100644 --- a/docs/maintenance/pull-requests/Dependency_Version_Upgrades.mdx +++ b/docs/maintenance/pull-requests/Dependency_Version_Upgrades.mdx @@ -137,13 +137,11 @@ We generally start the process of supporting a new TypeScript version just after - In the parser's `getLib`, update the `switch (target)` and its preceding comment as needed (see [#6782](https://github.com/typescript-eslint/typescript-eslint/pull/6782)) - Change the `SUPPORTED_TYPESCRIPT_VERSIONS` constant's `<` version to the next version of TypeScript - Change the `SUPPORTED_PRERELEASE_RANGES` constant to equal `['X.Y.1-rc']` - - Rename and update `patches/typescript*` to the new TypeScript version - Run `yarn generate-lib` to update `scope-manager` 1. Once all PRs needed for the RC update PR are merged, merge the RC update PR 1. Once TypeScript releases the stable X.Y version, create and merge a PR with a title like `chore: bump TypeScript from X.YRC to X.Y` and the following changes: - In the root `package.json`, remove `|| X.Y.1-rc2` from the `dependency` on `typescript`, and bump its `<` version to the next version of TypeScript - In the root `package.json`, change the `resolutions` on `typescript` to `X.Y.3` - - Rename and update `patches/typescript*` to the new TypeScript version - Any other changes made necessary due to changes in TypeScript between the RC version and stable version 1. Send a PR that updates this documentation page to point to your newer issues and PRs - Also update any of these steps if you go with a different process diff --git a/package.json b/package.json index 3d158d001cea..0bf2e119d8e8 100644 --- a/package.json +++ b/package.json @@ -124,7 +124,7 @@ "semver": "7.6.2", "tmp": "^0.2.1", "tsx": "*", - "typescript": ">=4.8.4 <5.6.0", + "typescript": ">=4.8.4 <5.7.0", "typescript-eslint": "workspace:^", "yargs": "17.7.2" }, @@ -132,7 +132,6 @@ "@jest/create-cache-key-function": "^29", "@jest/reporters": "^29", "@jest/test-result": "^29", - "@microsoft/api-extractor@^7.38.0": "patch:@microsoft/api-extractor@npm%3A7.38.0#./.yarn/patches/@microsoft-api-extractor-npm-7.38.0-955f1e0725.patch", "@types/eslint-scope": "link:./tools/dummypkg", "@types/eslint": "link:./tools/dummypkg", "@types/estree": "link:./tools/dummypkg", @@ -147,7 +146,7 @@ "react-split-pane@^0.1.92": "patch:react-split-pane@npm%3A0.1.92#./.yarn/patches/react-split-pane-npm-0.1.92-93dbf51dff.patch", "tmp": "0.2.1", "tsx": "^4.7.2", - "typescript": "5.5.2", + "typescript": "5.6.2", "eslint-plugin-eslint-plugin@^5.5.0": "patch:eslint-plugin-eslint-plugin@npm%3A5.5.1#./.yarn/patches/eslint-plugin-eslint-plugin-npm-5.5.1-4206c2506d.patch" }, "packageManager": "yarn@3.8.2", diff --git a/packages/ast-spec/package.json b/packages/ast-spec/package.json index 441379ec07cd..65f62c461f5f 100644 --- a/packages/ast-spec/package.json +++ b/packages/ast-spec/package.json @@ -48,7 +48,7 @@ "@babel/core": "*", "@babel/eslint-parser": "*", "@jest/types": "29.6.3", - "@microsoft/api-extractor": "^7.43.0", + "@microsoft/api-extractor": "^7.47.8", "glob": "*", "jest": "29.7.0", "jest-diff": "^29.7.0", diff --git a/packages/ast-spec/src/special/ExportSpecifier/spec.ts b/packages/ast-spec/src/special/ExportSpecifier/spec.ts index 0e2f93eb1f3c..dcaa8ca04197 100644 --- a/packages/ast-spec/src/special/ExportSpecifier/spec.ts +++ b/packages/ast-spec/src/special/ExportSpecifier/spec.ts @@ -2,9 +2,10 @@ import type { AST_NODE_TYPES } from '../../ast-node-types'; import type { BaseNode } from '../../base/BaseNode'; import type { ExportKind } from '../../declaration/ExportAndImportKind'; import type { Identifier } from '../../expression/Identifier/spec'; +import type { StringLiteral } from '../../expression/literal/StringLiteral/spec'; export interface ExportSpecifier extends BaseNode { - exported: Identifier; + exported: Identifier | StringLiteral; exportKind: ExportKind; local: Identifier; type: AST_NODE_TYPES.ExportSpecifier; diff --git a/packages/ast-spec/src/special/ImportSpecifier/spec.ts b/packages/ast-spec/src/special/ImportSpecifier/spec.ts index 3589c88da438..4594c1262cbc 100644 --- a/packages/ast-spec/src/special/ImportSpecifier/spec.ts +++ b/packages/ast-spec/src/special/ImportSpecifier/spec.ts @@ -2,9 +2,10 @@ import type { AST_NODE_TYPES } from '../../ast-node-types'; import type { BaseNode } from '../../base/BaseNode'; import type { ImportKind } from '../../declaration/ExportAndImportKind'; import type { Identifier } from '../../expression/Identifier/spec'; +import type { StringLiteral } from '../../expression/literal/StringLiteral/spec'; export interface ImportSpecifier extends BaseNode { - imported: Identifier; + imported: Identifier | StringLiteral; importKind: ImportKind; local: Identifier; type: AST_NODE_TYPES.ImportSpecifier; diff --git a/packages/parser/src/parser.ts b/packages/parser/src/parser.ts index 6651a09183ae..42f938e980a2 100644 --- a/packages/parser/src/parser.ts +++ b/packages/parser/src/parser.ts @@ -69,6 +69,8 @@ function getLib(compilerOptions: ts.CompilerOptions): Lib[] { return ['es2021.full']; case ScriptTarget.ES2022: return ['es2022.full']; + case ScriptTarget.ES2023: + return ['es2023.full']; case ScriptTarget.ESNext: return ['esnext.full']; default: diff --git a/packages/scope-manager/src/lib/dom.asynciterable.ts b/packages/scope-manager/src/lib/dom.asynciterable.ts index f0081d84f47e..a094f6ff0b26 100644 --- a/packages/scope-manager/src/lib/dom.asynciterable.ts +++ b/packages/scope-manager/src/lib/dom.asynciterable.ts @@ -7,6 +7,8 @@ import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const dom_asynciterable = { + FileSystemDirectoryHandleAsyncIterator: TYPE, FileSystemDirectoryHandle: TYPE, + ReadableStreamAsyncIterator: TYPE, ReadableStream: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/dom.iterable.ts b/packages/scope-manager/src/lib/dom.iterable.ts index d9eef56fcbd4..aa220b550fae 100644 --- a/packages/scope-manager/src/lib/dom.iterable.ts +++ b/packages/scope-manager/src/lib/dom.iterable.ts @@ -28,12 +28,14 @@ export const dom_iterable = { EventCounts: TYPE, FileList: TYPE, FontFaceSet: TYPE, + FormDataIterator: TYPE, FormData: TYPE, HTMLAllCollection: TYPE, HTMLCollectionBase: TYPE, HTMLCollectionOf: TYPE, HTMLFormElement: TYPE, HTMLSelectElement: TYPE, + HeadersIterator: TYPE, Headers: TYPE, Highlight: TYPE, HighlightRegistry: TYPE, @@ -42,6 +44,7 @@ export const dom_iterable = { MIDIInputMap: TYPE, MIDIOutput: TYPE, MIDIOutputMap: TYPE, + MediaKeyStatusMapIterator: TYPE, MediaKeyStatusMap: TYPE, MediaList: TYPE, MessageEvent: TYPE, @@ -62,12 +65,14 @@ export const dom_iterable = { SourceBufferList: TYPE, SpeechRecognitionResult: TYPE, SpeechRecognitionResultList: TYPE, + StylePropertyMapReadOnlyIterator: TYPE, StylePropertyMapReadOnly: TYPE, StyleSheetList: TYPE, SubtleCrypto: TYPE, TextTrackCueList: TYPE, TextTrackList: TYPE, TouchList: TYPE, + URLSearchParamsIterator: TYPE, URLSearchParams: TYPE, WEBGL_draw_buffers: TYPE, WEBGL_multi_draw: TYPE, diff --git a/packages/scope-manager/src/lib/dom.ts b/packages/scope-manager/src/lib/dom.ts index 6ddf43581347..fd8c41f4dee2 100644 --- a/packages/scope-manager/src/lib/dom.ts +++ b/packages/scope-manager/src/lib/dom.ts @@ -107,6 +107,7 @@ export const dom = { GamepadEffectParameters: TYPE, GamepadEventInit: TYPE, GetAnimationsOptions: TYPE, + GetHTMLOptions: TYPE, GetNotificationOptions: TYPE, GetRootNodeOptions: TYPE, HashChangeEventInit: TYPE, @@ -125,7 +126,6 @@ export const dom = { ImageBitmapRenderingContextSettings: TYPE, ImageDataSettings: TYPE, ImageEncodeOptions: TYPE, - ImportMeta: TYPE, InputEventInit: TYPE, IntersectionObserverEntryInit: TYPE, IntersectionObserverInit: TYPE, @@ -153,6 +153,7 @@ export const dom = { MediaKeyMessageEventInit: TYPE, MediaKeySystemConfiguration: TYPE, MediaKeySystemMediaCapability: TYPE, + MediaKeysPolicy: TYPE, MediaMetadataInit: TYPE, MediaPositionState: TYPE, MediaQueryListEventInit: TYPE, @@ -198,6 +199,7 @@ export const dom = { PictureInPictureEventInit: TYPE, PlaneLayout: TYPE, PointerEventInit: TYPE, + PointerLockOptions: TYPE, PopStateEventInit: TYPE, PositionOptions: TYPE, ProgressEventInit: TYPE, @@ -227,7 +229,6 @@ export const dom = { RTCErrorEventInit: TYPE, RTCErrorInit: TYPE, RTCIceCandidateInit: TYPE, - RTCIceCandidatePair: TYPE, RTCIceCandidatePairStats: TYPE, RTCIceServer: TYPE, RTCInboundRtpStreamStats: TYPE, @@ -241,7 +242,6 @@ export const dom = { RTCRtcpParameters: TYPE, RTCRtpCapabilities: TYPE, RTCRtpCodec: TYPE, - RTCRtpCodecCapability: TYPE, RTCRtpCodecParameters: TYPE, RTCRtpCodingParameters: TYPE, RTCRtpContributingSource: TYPE, @@ -688,7 +688,7 @@ export const dom = { ImageBitmap: TYPE_VALUE, ImageBitmapRenderingContext: TYPE_VALUE, ImageData: TYPE_VALUE, - InnerHTML: TYPE, + ImportMeta: TYPE, InputDeviceInfo: TYPE_VALUE, InputEvent: TYPE_VALUE, IntersectionObserver: TYPE_VALUE, @@ -737,6 +737,7 @@ export const dom = { MediaSession: TYPE_VALUE, MediaSourceEventMap: TYPE, MediaSource: TYPE_VALUE, + MediaSourceHandle: TYPE_VALUE, MediaStreamEventMap: TYPE, MediaStream: TYPE_VALUE, MediaStreamAudioDestinationNode: TYPE_VALUE, @@ -850,6 +851,7 @@ export const dom = { RTCError: TYPE_VALUE, RTCErrorEvent: TYPE_VALUE, RTCIceCandidate: TYPE_VALUE, + RTCIceCandidatePair: TYPE, RTCIceTransportEventMap: TYPE, RTCIceTransport: TYPE_VALUE, RTCPeerConnectionEventMap: TYPE, @@ -1035,6 +1037,7 @@ export const dom = { TextEncoder: TYPE_VALUE, TextEncoderCommon: TYPE, TextEncoderStream: TYPE_VALUE, + TextEvent: TYPE_VALUE, TextMetrics: TYPE_VALUE, TextTrackEventMap: TYPE, TextTrack: TYPE_VALUE, @@ -1068,6 +1071,7 @@ export const dom = { VideoEncoder: TYPE_VALUE, VideoFrame: TYPE_VALUE, VideoPlaybackQuality: TYPE_VALUE, + ViewTransition: TYPE_VALUE, VisualViewportEventMap: TYPE, VisualViewport: TYPE_VALUE, WEBGL_color_buffer_float: TYPE, @@ -1182,6 +1186,7 @@ export const dom = { UnderlyingSourceCancelCallback: TYPE, UnderlyingSourcePullCallback: TYPE, UnderlyingSourceStartCallback: TYPE, + UpdateCallback: TYPE, VideoFrameOutputCallback: TYPE, VideoFrameRequestCallback: TYPE, VoidFunction: TYPE, diff --git a/packages/scope-manager/src/lib/es2015.iterable.ts b/packages/scope-manager/src/lib/es2015.iterable.ts index 066846eeb24f..8f657e891a92 100644 --- a/packages/scope-manager/src/lib/es2015.iterable.ts +++ b/packages/scope-manager/src/lib/es2015.iterable.ts @@ -16,15 +16,20 @@ export const es2015_iterable = { Iterator: TYPE, Iterable: TYPE, IterableIterator: TYPE, + IteratorObject: TYPE, + BuiltinIteratorReturn: TYPE, + ArrayIterator: TYPE, Array: TYPE, ArrayConstructor: TYPE, ReadonlyArray: TYPE, IArguments: TYPE, + MapIterator: TYPE, Map: TYPE, ReadonlyMap: TYPE, MapConstructor: TYPE, WeakMap: TYPE, WeakMapConstructor: TYPE, + SetIterator: TYPE, Set: TYPE, ReadonlySet: TYPE, SetConstructor: TYPE, @@ -32,6 +37,7 @@ export const es2015_iterable = { WeakSetConstructor: TYPE, Promise: TYPE, PromiseConstructor: TYPE, + StringIterator: TYPE, String: TYPE, Int8Array: TYPE, Int8ArrayConstructor: TYPE, diff --git a/packages/scope-manager/src/lib/es2018.asynciterable.ts b/packages/scope-manager/src/lib/es2018.asynciterable.ts index ec0cbc14b96b..d921042febf7 100644 --- a/packages/scope-manager/src/lib/es2018.asynciterable.ts +++ b/packages/scope-manager/src/lib/es2018.asynciterable.ts @@ -15,4 +15,5 @@ export const es2018_asynciterable = { AsyncIterator: TYPE, AsyncIterable: TYPE, AsyncIterableIterator: TYPE, + AsyncIteratorObject: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2020.string.ts b/packages/scope-manager/src/lib/es2020.string.ts index 159f927db04a..1f5787af28db 100644 --- a/packages/scope-manager/src/lib/es2020.string.ts +++ b/packages/scope-manager/src/lib/es2020.string.ts @@ -5,9 +5,9 @@ import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; -import { es2015_iterable } from './es2015.iterable'; +import { es2020_symbol_wellknown } from './es2020.symbol.wellknown'; export const es2020_string = { - ...es2015_iterable, + ...es2020_symbol_wellknown, String: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2020.symbol.wellknown.ts b/packages/scope-manager/src/lib/es2020.symbol.wellknown.ts index 9aac27e69191..e3f8cbc9da7c 100644 --- a/packages/scope-manager/src/lib/es2020.symbol.wellknown.ts +++ b/packages/scope-manager/src/lib/es2020.symbol.wellknown.ts @@ -12,5 +12,6 @@ export const es2020_symbol_wellknown = { ...es2015_iterable, ...es2015_symbol, SymbolConstructor: TYPE, + RegExpStringIterator: TYPE, RegExp: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/esnext.asynciterable.ts b/packages/scope-manager/src/lib/esnext.asynciterable.ts index 6a98720eaa7f..f169a7f7269a 100644 --- a/packages/scope-manager/src/lib/esnext.asynciterable.ts +++ b/packages/scope-manager/src/lib/esnext.asynciterable.ts @@ -15,4 +15,5 @@ export const esnext_asynciterable = { AsyncIterator: TYPE, AsyncIterable: TYPE, AsyncIterableIterator: TYPE, + AsyncIteratorObject: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/esnext.disposable.ts b/packages/scope-manager/src/lib/esnext.disposable.ts index 366d63e9ece2..4dc7e5321cdb 100644 --- a/packages/scope-manager/src/lib/esnext.disposable.ts +++ b/packages/scope-manager/src/lib/esnext.disposable.ts @@ -5,10 +5,14 @@ import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE, TYPE_VALUE } from './base-config'; +import { es2015_iterable } from './es2015.iterable'; import { es2015_symbol } from './es2015.symbol'; +import { es2018_asynciterable } from './es2018.asynciterable'; export const esnext_disposable = { ...es2015_symbol, + ...es2015_iterable, + ...es2018_asynciterable, SymbolConstructor: TYPE, Disposable: TYPE, AsyncDisposable: TYPE, @@ -18,4 +22,6 @@ export const esnext_disposable = { DisposableStackConstructor: TYPE, AsyncDisposableStack: TYPE_VALUE, AsyncDisposableStackConstructor: TYPE, + IteratorObject: TYPE, + AsyncIteratorObject: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/esnext.iterator.ts b/packages/scope-manager/src/lib/esnext.iterator.ts new file mode 100644 index 000000000000..91d38e8dfa93 --- /dev/null +++ b/packages/scope-manager/src/lib/esnext.iterator.ts @@ -0,0 +1,14 @@ +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo + +import type { ImplicitLibVariableOptions } from '../variable'; +import { TYPE, TYPE_VALUE } from './base-config'; +import { es2015_iterable } from './es2015.iterable'; + +export const esnext_iterator = { + ...es2015_iterable, + Iterator: TYPE_VALUE, + IteratorObjectConstructor: TYPE, +} as Record; diff --git a/packages/scope-manager/src/lib/esnext.ts b/packages/scope-manager/src/lib/esnext.ts index db8ec6230631..86845dee2156 100644 --- a/packages/scope-manager/src/lib/esnext.ts +++ b/packages/scope-manager/src/lib/esnext.ts @@ -10,6 +10,7 @@ import { esnext_collection } from './esnext.collection'; import { esnext_decorators } from './esnext.decorators'; import { esnext_disposable } from './esnext.disposable'; import { esnext_intl } from './esnext.intl'; +import { esnext_iterator } from './esnext.iterator'; import { esnext_object } from './esnext.object'; import { esnext_promise } from './esnext.promise'; import { esnext_regexp } from './esnext.regexp'; @@ -26,4 +27,5 @@ export const esnext = { ...esnext_array, ...esnext_regexp, ...esnext_string, + ...esnext_iterator, } as Record; diff --git a/packages/scope-manager/src/lib/index.ts b/packages/scope-manager/src/lib/index.ts index 25b13191cb48..c30366b2f542 100644 --- a/packages/scope-manager/src/lib/index.ts +++ b/packages/scope-manager/src/lib/index.ts @@ -86,6 +86,7 @@ import { esnext_decorators } from './esnext.decorators'; import { esnext_disposable } from './esnext.disposable'; import { esnext_full } from './esnext.full'; import { esnext_intl } from './esnext.intl'; +import { esnext_iterator } from './esnext.iterator'; import { esnext_object } from './esnext.object'; import { esnext_promise } from './esnext.promise'; import { esnext_regexp } from './esnext.regexp'; @@ -183,6 +184,7 @@ const lib = { 'esnext.decorators': esnext_decorators, 'esnext.object': esnext_object, 'esnext.regexp': esnext_regexp, + 'esnext.iterator': esnext_iterator, decorators, 'decorators.legacy': decorators_legacy, 'es2016.full': es2016_full, diff --git a/packages/scope-manager/src/lib/webworker.asynciterable.ts b/packages/scope-manager/src/lib/webworker.asynciterable.ts index 1d8b033f66a8..17706b55bf77 100644 --- a/packages/scope-manager/src/lib/webworker.asynciterable.ts +++ b/packages/scope-manager/src/lib/webworker.asynciterable.ts @@ -7,6 +7,8 @@ import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const webworker_asynciterable = { + FileSystemDirectoryHandleAsyncIterator: TYPE, FileSystemDirectoryHandle: TYPE, + ReadableStreamAsyncIterator: TYPE, ReadableStream: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/webworker.iterable.ts b/packages/scope-manager/src/lib/webworker.iterable.ts index 57af0e200123..8c14d3058a7a 100644 --- a/packages/scope-manager/src/lib/webworker.iterable.ts +++ b/packages/scope-manager/src/lib/webworker.iterable.ts @@ -17,13 +17,17 @@ export const webworker_iterable = { DOMStringList: TYPE, FileList: TYPE, FontFaceSet: TYPE, + FormDataIterator: TYPE, FormData: TYPE, + HeadersIterator: TYPE, Headers: TYPE, IDBDatabase: TYPE, IDBObjectStore: TYPE, MessageEvent: TYPE, + StylePropertyMapReadOnlyIterator: TYPE, StylePropertyMapReadOnly: TYPE, SubtleCrypto: TYPE, + URLSearchParamsIterator: TYPE, URLSearchParams: TYPE, WEBGL_draw_buffers: TYPE, WEBGL_multi_draw: TYPE, diff --git a/packages/scope-manager/src/lib/webworker.ts b/packages/scope-manager/src/lib/webworker.ts index f743113bbd13..4f1596a8a4a4 100644 --- a/packages/scope-manager/src/lib/webworker.ts +++ b/packages/scope-manager/src/lib/webworker.ts @@ -64,7 +64,6 @@ export const webworker = { ImageBitmapRenderingContextSettings: TYPE, ImageDataSettings: TYPE, ImageEncodeOptions: TYPE, - ImportMeta: TYPE, JsonWebKey: TYPE, KeyAlgorithm: TYPE, LockInfo: TYPE, @@ -76,6 +75,7 @@ export const webworker = { MediaConfiguration: TYPE, MediaDecodingConfiguration: TYPE, MediaEncodingConfiguration: TYPE, + MediaStreamTrackProcessorInit: TYPE, MessageEventInit: TYPE, MultiCacheQueryOptions: TYPE, NavigationPreloadState: TYPE, @@ -279,10 +279,13 @@ export const webworker = { ImageBitmap: TYPE_VALUE, ImageBitmapRenderingContext: TYPE_VALUE, ImageData: TYPE_VALUE, + ImportMeta: TYPE, KHR_parallel_shader_compile: TYPE, Lock: TYPE_VALUE, LockManager: TYPE_VALUE, MediaCapabilities: TYPE_VALUE, + MediaSourceHandle: TYPE_VALUE, + MediaStreamTrackProcessor: TYPE_VALUE, MessageChannel: TYPE_VALUE, MessageEvent: TYPE_VALUE, MessagePortEventMap: TYPE, diff --git a/packages/types/src/lib.ts b/packages/types/src/lib.ts index 3548a0db0809..88524dc5acdc 100644 --- a/packages/types/src/lib.ts +++ b/packages/types/src/lib.ts @@ -87,6 +87,7 @@ type Lib = | 'esnext.disposable' | 'esnext.full' | 'esnext.intl' + | 'esnext.iterator' | 'esnext.object' | 'esnext.promise' | 'esnext.regexp' diff --git a/packages/typescript-estree/src/parseSettings/warnAboutTSVersion.ts b/packages/typescript-estree/src/parseSettings/warnAboutTSVersion.ts index c338c538bfec..3370da55be1b 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 package.json in the typescript-eslint monorepo */ -const SUPPORTED_TYPESCRIPT_VERSIONS = '>=4.7.4 <5.6.0'; +const SUPPORTED_TYPESCRIPT_VERSIONS = '>=4.7.4 <5.7.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 fcd8066d3f5f..3db6aa56b7b5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3868,28 +3868,28 @@ __metadata: languageName: node linkType: hard -"@microsoft/api-extractor-model@npm:7.29.2": - version: 7.29.2 - resolution: "@microsoft/api-extractor-model@npm:7.29.2" +"@microsoft/api-extractor-model@npm:7.29.7": + version: 7.29.7 + resolution: "@microsoft/api-extractor-model@npm:7.29.7" dependencies: "@microsoft/tsdoc": ~0.15.0 "@microsoft/tsdoc-config": ~0.17.0 - "@rushstack/node-core-library": 5.4.1 - checksum: 71809004996b532f02f57b3d1191adeb08fa961d1f916ebbdc6eca2c29756278b2d08c40904d8e8e700af91699b36a062fba082ee61c72209c9a6e9b4aa3c9e9 + "@rushstack/node-core-library": 5.8.0 + checksum: c584c01a2a29d01e5be5eb898724aec52ad2d611478e187db830f59b70733b221755e0b882cab045293fd3f6bcbd32fd9748c9faf1c33a134af27b05fb169772 languageName: node linkType: hard -"@microsoft/api-extractor@npm:^7.43.0": - version: 7.47.0 - resolution: "@microsoft/api-extractor@npm:7.47.0" +"@microsoft/api-extractor@npm:^7.47.8": + version: 7.47.8 + resolution: "@microsoft/api-extractor@npm:7.47.8" dependencies: - "@microsoft/api-extractor-model": 7.29.2 + "@microsoft/api-extractor-model": 7.29.7 "@microsoft/tsdoc": ~0.15.0 "@microsoft/tsdoc-config": ~0.17.0 - "@rushstack/node-core-library": 5.4.1 - "@rushstack/rig-package": 0.5.2 - "@rushstack/terminal": 0.13.0 - "@rushstack/ts-command-line": 4.22.0 + "@rushstack/node-core-library": 5.8.0 + "@rushstack/rig-package": 0.5.3 + "@rushstack/terminal": 0.14.1 + "@rushstack/ts-command-line": 4.22.7 lodash: ~4.17.15 minimatch: ~3.0.3 resolve: ~1.22.1 @@ -3898,7 +3898,7 @@ __metadata: typescript: 5.4.2 bin: api-extractor: bin/api-extractor - checksum: 7db5ad493ce6ee4739a1d9ed36a503aaf6355e062a01eaaa7151073a3967b6e807a19b0279553d492956be68af35b0a7b76b9179d2dd25f43df3bea982ce30be + checksum: f53f4c32bfe876f789facf119415d63a1a76dabce365d860ba98849a0035a06b95890cb760f710a4a32283176a904d04f3f9dee93d7d264d5fd9fc3af07f206c languageName: node linkType: hard @@ -4450,9 +4450,9 @@ __metadata: languageName: node linkType: hard -"@rushstack/node-core-library@npm:5.4.1": - version: 5.4.1 - resolution: "@rushstack/node-core-library@npm:5.4.1" +"@rushstack/node-core-library@npm:5.8.0": + version: 5.8.0 + resolution: "@rushstack/node-core-library@npm:5.8.0" dependencies: ajv: ~8.13.0 ajv-draft-04: ~1.0.0 @@ -4467,44 +4467,44 @@ __metadata: peerDependenciesMeta: "@types/node": optional: true - checksum: 1316dcec7056a8c16a967284c82f09f6e55bd77c8944a5c10576d2c8e41708f6b43194d853a2f84a769d843acd84346b616e792a1c9bc2cad59c608f1601335e + checksum: f5e2100666f433b7ad13439aa722a29c61a3af8834f2727c8e9f1053337ea32debfadff36e7019f21b336d90b053737a245e01a5753ec809f1cc5f7281d33c28 languageName: node linkType: hard -"@rushstack/rig-package@npm:0.5.2": - version: 0.5.2 - resolution: "@rushstack/rig-package@npm:0.5.2" +"@rushstack/rig-package@npm:0.5.3": + version: 0.5.3 + resolution: "@rushstack/rig-package@npm:0.5.3" dependencies: resolve: ~1.22.1 strip-json-comments: ~3.1.1 - checksum: cdfbca218d85f0daf865b308a8f1ad572835e465b64a2efa74e8ee0025d31bb7da8d77a5f2c34af7fd8993eb0e317ea14cce14557dcbe0fe3041020d4141704b + checksum: bf3eadfc434bff273893efd22b319fe159d0e3b95729cb32ce3ad9f4ab4b6fabe3c4dd7f03ee0ddc7b480f0d989e908349eae6d6dce3500f896728a085af7aab languageName: node linkType: hard -"@rushstack/terminal@npm:0.13.0": - version: 0.13.0 - resolution: "@rushstack/terminal@npm:0.13.0" +"@rushstack/terminal@npm:0.14.1": + version: 0.14.1 + resolution: "@rushstack/terminal@npm:0.14.1" dependencies: - "@rushstack/node-core-library": 5.4.1 + "@rushstack/node-core-library": 5.8.0 supports-color: ~8.1.1 peerDependencies: "@types/node": "*" peerDependenciesMeta: "@types/node": optional: true - checksum: d2a90806e2f72ff8bf1522d8ab54b39ab8829f00b2b7f2e3edda4828dc70003ccd8cbda3dc25ad9275c8173286e61ccf46be0a8e9e56a7ee1f0557f6ef8eeefc + checksum: a6d6f1b8642dc8808a07155d6f4912bd0ca9579a3441660728928f1d7ef15170e8c2c3ea0c3a75c53060e52463df466c1b4f0413e5b800e74096bde255d4a311 languageName: node linkType: hard -"@rushstack/ts-command-line@npm:4.22.0": - version: 4.22.0 - resolution: "@rushstack/ts-command-line@npm:4.22.0" +"@rushstack/ts-command-line@npm:4.22.7": + version: 4.22.7 + resolution: "@rushstack/ts-command-line@npm:4.22.7" dependencies: - "@rushstack/terminal": 0.13.0 + "@rushstack/terminal": 0.14.1 "@types/argparse": 1.0.38 argparse: ~1.0.9 string-argv: ~0.3.1 - checksum: fd51fe8ac7f2e8066b5cd7071f4031e79dc59074ec4a0354ebc248f4b5c9c5e42ad5b39d929c8cddb2fe5e27948ca50ae982e046c62729f642049ce2e2333594 + checksum: e0bf45e5ead6844d6165e250bc8d289790edf53efffb467b31c65415ca7d01c489cb57827232a78f4c864b84897a40ca8ce7ad798f6d1666aa936f2d7fb279f2 languageName: node linkType: hard @@ -5602,7 +5602,7 @@ __metadata: "@babel/core": "*" "@babel/eslint-parser": "*" "@jest/types": 29.6.3 - "@microsoft/api-extractor": ^7.43.0 + "@microsoft/api-extractor": ^7.47.8 glob: "*" jest: 29.7.0 jest-diff: ^29.7.0 @@ -5897,7 +5897,7 @@ __metadata: semver: 7.6.2 tmp: ^0.2.1 tsx: "*" - typescript: ">=4.8.4 <5.6.0" + typescript: ">=4.8.4 <5.7.0" typescript-eslint: "workspace:^" yargs: 17.7.2 languageName: unknown @@ -19551,23 +19551,23 @@ __metadata: languageName: unknown linkType: soft -"typescript@npm:5.5.2": - version: 5.5.2 - resolution: "typescript@npm:5.5.2" +"typescript@npm:5.6.2": + version: 5.6.2 + resolution: "typescript@npm:5.6.2" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 9c5a7982dadcb2d38d129c575dd38645ae11588ae0d4a12852fb04482bbc5a1660b2371e48fd5b33b6b605cc57cefe777670054546856945a05e77bd22c8c2cd + checksum: 48777e1dabd9044519f56cd012b0296e3b72bafe12b7e8e34222751d45c67e0eba5387ecdaa6c14a53871a29361127798df6dc8d1d35643a0a47cb0b1c65a33a languageName: node linkType: hard -"typescript@patch:typescript@npm%3A5.5.2#~builtin": - version: 5.5.2 - resolution: "typescript@patch:typescript@npm%3A5.5.2#~builtin::version=5.5.2&hash=b45daf" +"typescript@patch:typescript@npm%3A5.6.2#~builtin": + version: 5.6.2 + resolution: "typescript@patch:typescript@npm%3A5.6.2#~builtin::version=5.6.2&hash=b45daf" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 9d89bac0de650e15d6846485f238d1e65f1013f2c260d9e53e86a1da6ecf8109d9fad9402575c5c36a6592dc5d4370db090e12971c8630ae84453654baabb6b4 + checksum: c084ee1ab865f108c787e6233a5f63c126c482c0c8e87ec998ac5288a2ad54b603e1ea8b8b272355823b833eb31b9fabb99e8c6152283e1cb47e3a76bd6faf6c languageName: node linkType: hard From ced3289ca1c6cfbe046c308f89ddfe3502413a6e Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Thu, 12 Sep 2024 08:11:55 -0400 Subject: [PATCH 02/14] Start on tests --- .../_error_/named-non-identifier/fixture.ts | 1 - .../snapshots/1-Babel-Error.shot | 3 - .../snapshots/1-TSESTree-Error.shot | 8 -- .../snapshots/2-Alignment-Error.shot | 3 - .../snapshots/2-Babel-Error.shot | 3 - .../snapshots/3-Alignment-Error.shot | 3 - .../_error_/aliased-literal/fixture.ts | 1 - .../snapshots/1-Babel-Error.shot | 3 - .../snapshots/1-TSESTree-Error.shot | 8 -- .../snapshots/2-Alignment-Error.shot | 3 - .../export-as-string-literal/fixture.ts | 1 + .../snapshots/1-TSESTree-AST.shot | 0 .../snapshots/1-TSESTree-Error.shot} | 2 +- .../snapshots/2-Babel-Error.shot | 6 + .../snapshots/2-TSESTree-Tokens.shot | 0 .../snapshots/3-Alignment-Error.shot | 2 +- .../snapshots/3-Babel-AST.shot | 0 .../snapshots/4-Babel-Tokens.shot | 0 .../snapshots/5-AST-Alignment-AST.shot | 0 .../snapshots/6-AST-Alignment-Tokens.shot | 0 .../snapshots/1-TSESTree-Error.shot | 7 +- .../snapshots/3-Alignment-Error.shot | 2 +- .../{named-non-identifier => name}/fixture.ts | 0 .../snapshots/1-Babel-Error.shot | 0 .../snapshots/1-TSESTree-Error.shot | 2 +- .../snapshots/2-Alignment-Error.shot | 0 .../_error_/name/snapshots/2-Babel-Error.shot | 3 + .../name/snapshots/3-Alignment-Error.shot | 3 + .../_error_/named-number-literal/fixture.ts | 1 + .../snapshots/1-Babel-Error.shot} | 0 .../snapshots/1-TSESTree-Error.shot | 8 ++ .../snapshots/2-Alignment-Error.shot} | 0 .../snapshots/2-Babel-Error.shot | 3 + .../snapshots/3-Alignment-Error.shot | 3 + .../_error_/named-string-literal/fixture.ts | 1 + .../snapshots/1-Babel-Error.shot | 3 + .../snapshots/1-TSESTree-Error.shot | 8 ++ .../snapshots/2-Alignment-Error.shot | 3 + .../snapshots/2-Babel-Error.shot | 6 + .../snapshots/3-Alignment-Error.shot | 3 + .../type-only-export-specifiers/fixture.ts | 3 - .../type-only-import-specifiers/fixture.ts | 3 - .../snapshots/2-TSESTree-Tokens.shot | 116 ------------------ .../snapshots/4-Babel-Tokens.shot | 116 ------------------ .../export-as-string-literal-from/fixture.ts | 1 + .../snapshots/1-TSESTree-AST.shot | 75 +++++++++++ .../snapshots/2-TSESTree-Tokens.shot | 86 +++++++++++++ .../snapshots/3-Babel-AST.shot | 71 +++++++++++ .../snapshots/4-Babel-Tokens.shot | 86 +++++++++++++ .../snapshots/5-AST-Alignment-AST.shot | 80 ++++++++++++ .../snapshots/6-AST-Alignment-Tokens.shot | 6 + .../type-only-export-specifiers/fixture.ts | 1 + .../snapshots/1-TSESTree-AST.shot | 109 ++++++++++++++++ .../snapshots/2-TSESTree-Tokens.shot | 116 ++++++++++++++++++ .../snapshots/3-Babel-AST.shot | 101 +++++++++++++++ .../snapshots/4-Babel-Tokens.shot | 116 ++++++++++++++++++ .../snapshots/5-AST-Alignment-AST.shot | 114 +++++++++++++++++ .../snapshots/6-AST-Alignment-Tokens.shot | 6 + .../src/special/ExportSpecifier/spec.ts | 18 ++- .../type-only-import-specifier/fixture.ts | 1 + .../snapshots/1-TSESTree-AST.shot | 74 +++++++++++ .../snapshots/2-TSESTree-Tokens.shot | 86 +++++++++++++ .../snapshots/3-Babel-AST.shot | 70 +++++++++++ .../snapshots/4-Babel-Tokens.shot | 86 +++++++++++++ .../snapshots/5-AST-Alignment-AST.shot | 79 ++++++++++++ .../snapshots/6-AST-Alignment-Tokens.shot | 2 +- .../type-only-import-specifiers/fixture.ts | 1 + .../snapshots/1-TSESTree-AST.shot | 56 ++++----- .../snapshots/2-TSESTree-Tokens.shot | 116 ++++++++++++++++++ .../snapshots/3-Babel-AST.shot | 56 ++++----- .../snapshots/4-Babel-Tokens.shot | 116 ++++++++++++++++++ .../snapshots/5-AST-Alignment-AST.shot | 56 ++++----- .../snapshots/6-AST-Alignment-Tokens.shot | 6 + .../tests/fixtures-with-differences-ast.shot | 6 +- .../fixtures-with-differences-errors.shot | 4 +- 75 files changed, 1766 insertions(+), 376 deletions(-) delete mode 100644 packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/named-non-identifier/fixture.ts delete mode 100644 packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/named-non-identifier/snapshots/1-Babel-Error.shot delete mode 100644 packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/named-non-identifier/snapshots/1-TSESTree-Error.shot delete mode 100644 packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/named-non-identifier/snapshots/2-Alignment-Error.shot delete mode 100644 packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/named-non-identifier/snapshots/2-Babel-Error.shot delete mode 100644 packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/named-non-identifier/snapshots/3-Alignment-Error.shot delete mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/aliased-literal/fixture.ts delete mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/aliased-literal/snapshots/1-Babel-Error.shot delete mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/aliased-literal/snapshots/1-TSESTree-Error.shot delete mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/aliased-literal/snapshots/2-Alignment-Error.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/fixture.ts rename packages/ast-spec/src/{legacy-fixtures/basics/fixtures/type-only-export-specifiers => declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal}/snapshots/1-TSESTree-AST.shot (100%) rename packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/{aliased-literal/snapshots/2-Babel-Error.shot => export-as-string-literal/snapshots/1-TSESTree-Error.shot} (63%) create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/2-Babel-Error.shot rename packages/ast-spec/src/{legacy-fixtures/basics/fixtures/type-only-export-specifiers => declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal}/snapshots/2-TSESTree-Tokens.shot (100%) rename packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/{aliased-literal => export-as-string-literal}/snapshots/3-Alignment-Error.shot (55%) rename packages/ast-spec/src/{legacy-fixtures/basics/fixtures/type-only-export-specifiers => declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal}/snapshots/3-Babel-AST.shot (100%) rename packages/ast-spec/src/{legacy-fixtures/basics/fixtures/type-only-export-specifiers => declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal}/snapshots/4-Babel-Tokens.shot (100%) rename packages/ast-spec/src/{legacy-fixtures/basics/fixtures/type-only-export-specifiers => declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal}/snapshots/5-AST-Alignment-AST.shot (100%) rename packages/ast-spec/src/{legacy-fixtures/basics/fixtures/type-only-export-specifiers => declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal}/snapshots/6-AST-Alignment-Tokens.shot (100%) rename packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/{named-non-identifier => name}/fixture.ts (100%) rename packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/{named-non-identifier => name}/snapshots/1-Babel-Error.shot (100%) rename packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/{named-non-identifier => name}/snapshots/1-TSESTree-Error.shot (82%) rename packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/{named-non-identifier => name}/snapshots/2-Alignment-Error.shot (100%) create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/name/snapshots/2-Babel-Error.shot create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/name/snapshots/3-Alignment-Error.shot create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal/fixture.ts rename packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/{named-non-identifier/snapshots/2-Babel-Error.shot => named-number-literal/snapshots/1-Babel-Error.shot} (100%) create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal/snapshots/1-TSESTree-Error.shot rename packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/{named-non-identifier/snapshots/3-Alignment-Error.shot => named-number-literal/snapshots/2-Alignment-Error.shot} (100%) create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal/snapshots/2-Babel-Error.shot create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal/snapshots/3-Alignment-Error.shot create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal/fixture.ts create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal/snapshots/1-Babel-Error.shot create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal/snapshots/1-TSESTree-Error.shot create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal/snapshots/2-Alignment-Error.shot create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal/snapshots/2-Babel-Error.shot create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal/snapshots/3-Alignment-Error.shot delete mode 100644 packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-export-specifiers/fixture.ts delete mode 100644 packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-import-specifiers/fixture.ts delete mode 100644 packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-import-specifiers/snapshots/2-TSESTree-Tokens.shot delete mode 100644 packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-import-specifiers/snapshots/4-Babel-Tokens.shot create mode 100644 packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/fixture.ts create mode 100644 packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/1-TSESTree-AST.shot create mode 100644 packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/2-TSESTree-Tokens.shot create mode 100644 packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/3-Babel-AST.shot create mode 100644 packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/4-Babel-Tokens.shot create mode 100644 packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/5-AST-Alignment-AST.shot create mode 100644 packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/6-AST-Alignment-Tokens.shot create mode 100644 packages/ast-spec/src/special/ExportSpecifier/fixtures/type-only-export-specifiers/fixture.ts create mode 100644 packages/ast-spec/src/special/ExportSpecifier/fixtures/type-only-export-specifiers/snapshots/1-TSESTree-AST.shot create mode 100644 packages/ast-spec/src/special/ExportSpecifier/fixtures/type-only-export-specifiers/snapshots/2-TSESTree-Tokens.shot create mode 100644 packages/ast-spec/src/special/ExportSpecifier/fixtures/type-only-export-specifiers/snapshots/3-Babel-AST.shot create mode 100644 packages/ast-spec/src/special/ExportSpecifier/fixtures/type-only-export-specifiers/snapshots/4-Babel-Tokens.shot create mode 100644 packages/ast-spec/src/special/ExportSpecifier/fixtures/type-only-export-specifiers/snapshots/5-AST-Alignment-AST.shot create mode 100644 packages/ast-spec/src/special/ExportSpecifier/fixtures/type-only-export-specifiers/snapshots/6-AST-Alignment-Tokens.shot create mode 100644 packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifier/fixture.ts create mode 100644 packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifier/snapshots/1-TSESTree-AST.shot create mode 100644 packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifier/snapshots/2-TSESTree-Tokens.shot create mode 100644 packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifier/snapshots/3-Babel-AST.shot create mode 100644 packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifier/snapshots/4-Babel-Tokens.shot create mode 100644 packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifier/snapshots/5-AST-Alignment-AST.shot rename packages/ast-spec/src/{legacy-fixtures/basics/fixtures/type-only-import-specifiers => special/ImportSpecifier/fixtures/type-only-import-specifier}/snapshots/6-AST-Alignment-Tokens.shot (50%) create mode 100644 packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifiers/fixture.ts rename packages/ast-spec/src/{legacy-fixtures/basics => special/ImportSpecifier}/fixtures/type-only-import-specifiers/snapshots/1-TSESTree-AST.shot (57%) create mode 100644 packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifiers/snapshots/2-TSESTree-Tokens.shot rename packages/ast-spec/src/{legacy-fixtures/basics => special/ImportSpecifier}/fixtures/type-only-import-specifiers/snapshots/3-Babel-AST.shot (52%) create mode 100644 packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifiers/snapshots/4-Babel-Tokens.shot rename packages/ast-spec/src/{legacy-fixtures/basics => special/ImportSpecifier}/fixtures/type-only-import-specifiers/snapshots/5-AST-Alignment-AST.shot (59%) create mode 100644 packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifiers/snapshots/6-AST-Alignment-Tokens.shot diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/named-non-identifier/fixture.ts b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/named-non-identifier/fixture.ts deleted file mode 100644 index 8bab23b35992..000000000000 --- a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/named-non-identifier/fixture.ts +++ /dev/null @@ -1 +0,0 @@ -export * as 'foo' from 'module'; diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/named-non-identifier/snapshots/1-Babel-Error.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/named-non-identifier/snapshots/1-Babel-Error.shot deleted file mode 100644 index 04ccfb73d5bb..000000000000 --- a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/named-non-identifier/snapshots/1-Babel-Error.shot +++ /dev/null @@ -1,3 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AST Fixtures declaration ExportAllDeclaration _error_ named-non-identifier Babel - Error 1`] = `"NO ERROR"`; diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/named-non-identifier/snapshots/1-TSESTree-Error.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/named-non-identifier/snapshots/1-TSESTree-Error.shot deleted file mode 100644 index cea1b9f24689..000000000000 --- a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/named-non-identifier/snapshots/1-TSESTree-Error.shot +++ /dev/null @@ -1,8 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AST Fixtures declaration ExportAllDeclaration _error_ named-non-identifier TSESTree - Error 1`] = ` -"TSError -> 1 | export * as 'foo' from 'module'; - | ^ Identifier expected. - 2 |" -`; diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/named-non-identifier/snapshots/2-Alignment-Error.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/named-non-identifier/snapshots/2-Alignment-Error.shot deleted file mode 100644 index 3e05e98bfafd..000000000000 --- a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/named-non-identifier/snapshots/2-Alignment-Error.shot +++ /dev/null @@ -1,3 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AST Fixtures declaration ExportAllDeclaration _error_ named-non-identifier Error Alignment 1`] = `"TSESTree errored but Babel didn't"`; diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/named-non-identifier/snapshots/2-Babel-Error.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/named-non-identifier/snapshots/2-Babel-Error.shot deleted file mode 100644 index 04ccfb73d5bb..000000000000 --- a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/named-non-identifier/snapshots/2-Babel-Error.shot +++ /dev/null @@ -1,3 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AST Fixtures declaration ExportAllDeclaration _error_ named-non-identifier Babel - Error 1`] = `"NO ERROR"`; diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/named-non-identifier/snapshots/3-Alignment-Error.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/named-non-identifier/snapshots/3-Alignment-Error.shot deleted file mode 100644 index 3e05e98bfafd..000000000000 --- a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/named-non-identifier/snapshots/3-Alignment-Error.shot +++ /dev/null @@ -1,3 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AST Fixtures declaration ExportAllDeclaration _error_ named-non-identifier Error Alignment 1`] = `"TSESTree errored but Babel didn't"`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/aliased-literal/fixture.ts b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/aliased-literal/fixture.ts deleted file mode 100644 index 5faf31b8867a..000000000000 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/aliased-literal/fixture.ts +++ /dev/null @@ -1 +0,0 @@ -export { a as 'a' }; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/aliased-literal/snapshots/1-Babel-Error.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/aliased-literal/snapshots/1-Babel-Error.shot deleted file mode 100644 index dabc7d927d5d..000000000000 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/aliased-literal/snapshots/1-Babel-Error.shot +++ /dev/null @@ -1,3 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AST Fixtures declaration ExportNamedDeclaration _error_ aliased-literal Babel - Error 1`] = `"NO ERROR"`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/aliased-literal/snapshots/1-TSESTree-Error.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/aliased-literal/snapshots/1-TSESTree-Error.shot deleted file mode 100644 index 015ff072aa2f..000000000000 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/aliased-literal/snapshots/1-TSESTree-Error.shot +++ /dev/null @@ -1,8 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AST Fixtures declaration ExportNamedDeclaration _error_ aliased-literal TSESTree - Error 1`] = ` -"TSError -> 1 | export { a as 'a' }; - | ^ Identifier expected. - 2 |" -`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/aliased-literal/snapshots/2-Alignment-Error.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/aliased-literal/snapshots/2-Alignment-Error.shot deleted file mode 100644 index efb973998424..000000000000 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/aliased-literal/snapshots/2-Alignment-Error.shot +++ /dev/null @@ -1,3 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AST Fixtures declaration ExportNamedDeclaration _error_ aliased-literal Error Alignment 1`] = `"TSESTree errored but Babel didn't"`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/fixture.ts b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/fixture.ts new file mode 100644 index 000000000000..dc02ca6140d8 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/fixture.ts @@ -0,0 +1 @@ +export { "foo" as "foo" }; 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/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/1-TSESTree-AST.shot similarity index 100% rename from packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-export-specifiers/snapshots/1-TSESTree-AST.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/1-TSESTree-AST.shot diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/aliased-literal/snapshots/2-Babel-Error.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/1-TSESTree-Error.shot similarity index 63% rename from packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/aliased-literal/snapshots/2-Babel-Error.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/1-TSESTree-Error.shot index dabc7d927d5d..8de4e002ecfe 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/aliased-literal/snapshots/2-Babel-Error.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/1-TSESTree-Error.shot @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ExportNamedDeclaration _error_ aliased-literal Babel - Error 1`] = `"NO ERROR"`; +exports[`AST Fixtures declaration ExportNamedDeclaration _error_ export-as-string-literal TSESTree - Error 1`] = `"NO ERROR"`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/2-Babel-Error.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/2-Babel-Error.shot new file mode 100644 index 000000000000..51f23e20c6a1 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/2-Babel-Error.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration _error_ export-as-string-literal Babel - Error 1`] = ` +[SyntaxError: A string literal cannot be used as an exported binding without \`from\`. +- Did you mean \`export { 'foo' as 'foo' } from 'some-module'\`? (1:9)] +`; 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/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/2-TSESTree-Tokens.shot similarity index 100% rename from packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-export-specifiers/snapshots/2-TSESTree-Tokens.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/2-TSESTree-Tokens.shot diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/aliased-literal/snapshots/3-Alignment-Error.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/3-Alignment-Error.shot similarity index 55% rename from packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/aliased-literal/snapshots/3-Alignment-Error.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/3-Alignment-Error.shot index efb973998424..a4715c995bbf 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/aliased-literal/snapshots/3-Alignment-Error.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/3-Alignment-Error.shot @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ExportNamedDeclaration _error_ aliased-literal Error Alignment 1`] = `"TSESTree errored but Babel didn't"`; +exports[`AST Fixtures declaration ExportNamedDeclaration _error_ export-as-string-literal Error Alignment 1`] = `"Babel errored but TSESTree didn't"`; 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/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/3-Babel-AST.shot similarity index 100% rename from packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-export-specifiers/snapshots/3-Babel-AST.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/3-Babel-AST.shot 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/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/4-Babel-Tokens.shot similarity index 100% rename from packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-export-specifiers/snapshots/4-Babel-Tokens.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/4-Babel-Tokens.shot diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-export-specifiers/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/5-AST-Alignment-AST.shot similarity index 100% rename from packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-export-specifiers/snapshots/5-AST-Alignment-AST.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/5-AST-Alignment-AST.shot diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-export-specifiers/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/6-AST-Alignment-Tokens.shot similarity index 100% rename from packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-export-specifiers/snapshots/6-AST-Alignment-Tokens.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/6-AST-Alignment-Tokens.shot diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/literal-braced/snapshots/1-TSESTree-Error.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/literal-braced/snapshots/1-TSESTree-Error.shot index 55c09361565e..fcd45d738a22 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/literal-braced/snapshots/1-TSESTree-Error.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/literal-braced/snapshots/1-TSESTree-Error.shot @@ -1,8 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ExportNamedDeclaration _error_ literal-braced TSESTree - Error 1`] = ` -"TSError -> 1 | export { 'a' }; - | ^ Identifier expected. - 2 |" -`; +exports[`AST Fixtures declaration ExportNamedDeclaration _error_ literal-braced TSESTree - Error 1`] = `"NO ERROR"`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/literal-braced/snapshots/3-Alignment-Error.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/literal-braced/snapshots/3-Alignment-Error.shot index f2d4bb40cc50..5c4d97e25614 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/literal-braced/snapshots/3-Alignment-Error.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/literal-braced/snapshots/3-Alignment-Error.shot @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ExportNamedDeclaration _error_ literal-braced Error Alignment 1`] = `"Both errored"`; +exports[`AST Fixtures declaration ExportNamedDeclaration _error_ literal-braced Error Alignment 1`] = `"Babel errored but TSESTree didn't"`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-non-identifier/fixture.ts b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/name/fixture.ts similarity index 100% rename from packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-non-identifier/fixture.ts rename to packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/name/fixture.ts diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-non-identifier/snapshots/1-Babel-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/name/snapshots/1-Babel-Error.shot similarity index 100% rename from packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-non-identifier/snapshots/1-Babel-Error.shot rename to packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/name/snapshots/1-Babel-Error.shot diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-non-identifier/snapshots/1-TSESTree-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/name/snapshots/1-TSESTree-Error.shot similarity index 82% rename from packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-non-identifier/snapshots/1-TSESTree-Error.shot rename to packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/name/snapshots/1-TSESTree-Error.shot index a4b94678f3e0..7423421a9e86 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-non-identifier/snapshots/1-TSESTree-Error.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/name/snapshots/1-TSESTree-Error.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ImportDeclaration _error_ named-non-identifier TSESTree - Error 1`] = ` +exports[`AST Fixtures declaration ImportDeclaration _error_ name TSESTree - Error 1`] = ` "TSError > 1 | import { 1 } from 'mod'; | ^ Identifier expected. diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-non-identifier/snapshots/2-Alignment-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/name/snapshots/2-Alignment-Error.shot similarity index 100% rename from packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-non-identifier/snapshots/2-Alignment-Error.shot rename to packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/name/snapshots/2-Alignment-Error.shot diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/name/snapshots/2-Babel-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/name/snapshots/2-Babel-Error.shot new file mode 100644 index 000000000000..e162fb8fbb09 --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/name/snapshots/2-Babel-Error.shot @@ -0,0 +1,3 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration _error_ name Babel - Error 1`] = `[SyntaxError: Unexpected token (1:9)]`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/name/snapshots/3-Alignment-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/name/snapshots/3-Alignment-Error.shot new file mode 100644 index 000000000000..8706c3d608a2 --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/name/snapshots/3-Alignment-Error.shot @@ -0,0 +1,3 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration _error_ name Error Alignment 1`] = `"Both errored"`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal/fixture.ts b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal/fixture.ts new file mode 100644 index 000000000000..6a7fb92600de --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal/fixture.ts @@ -0,0 +1 @@ +import { 1 } from 'mod'; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-non-identifier/snapshots/2-Babel-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal/snapshots/1-Babel-Error.shot similarity index 100% rename from packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-non-identifier/snapshots/2-Babel-Error.shot rename to packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal/snapshots/1-Babel-Error.shot diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal/snapshots/1-TSESTree-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal/snapshots/1-TSESTree-Error.shot new file mode 100644 index 000000000000..08a52f136259 --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal/snapshots/1-TSESTree-Error.shot @@ -0,0 +1,8 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration _error_ named-number-literal TSESTree - Error 1`] = ` +"TSError +> 1 | import { 1 } from 'mod'; + | ^ Identifier expected. + 2 |" +`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-non-identifier/snapshots/3-Alignment-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal/snapshots/2-Alignment-Error.shot similarity index 100% rename from packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-non-identifier/snapshots/3-Alignment-Error.shot rename to packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal/snapshots/2-Alignment-Error.shot diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal/snapshots/2-Babel-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal/snapshots/2-Babel-Error.shot new file mode 100644 index 000000000000..e28da23b2a8f --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal/snapshots/2-Babel-Error.shot @@ -0,0 +1,3 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration _error_ named-number-literal Babel - Error 1`] = `[SyntaxError: Unexpected token (1:9)]`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal/snapshots/3-Alignment-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal/snapshots/3-Alignment-Error.shot new file mode 100644 index 000000000000..d79fe92b612a --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal/snapshots/3-Alignment-Error.shot @@ -0,0 +1,3 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration _error_ named-number-literal Error Alignment 1`] = `"Both errored"`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal/fixture.ts b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal/fixture.ts new file mode 100644 index 000000000000..db0db5b50afe --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal/fixture.ts @@ -0,0 +1 @@ +import { "😭" } from 'mod'; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal/snapshots/1-Babel-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal/snapshots/1-Babel-Error.shot new file mode 100644 index 000000000000..970528e3253d --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal/snapshots/1-Babel-Error.shot @@ -0,0 +1,3 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration _error_ named-non-identifier Babel - Error 1`] = `[SyntaxError: Unexpected token (1:9)]`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal/snapshots/1-TSESTree-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal/snapshots/1-TSESTree-Error.shot new file mode 100644 index 000000000000..cb41ba55e998 --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal/snapshots/1-TSESTree-Error.shot @@ -0,0 +1,8 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration _error_ named-string-literal TSESTree - Error 1`] = ` +"TSError +> 1 | import { "😭" } from 'mod'; + | ^ Identifier expected. + 2 |" +`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal/snapshots/2-Alignment-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal/snapshots/2-Alignment-Error.shot new file mode 100644 index 000000000000..fefbeef9c524 --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal/snapshots/2-Alignment-Error.shot @@ -0,0 +1,3 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration _error_ named-non-identifier Error Alignment 1`] = `"Both errored"`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal/snapshots/2-Babel-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal/snapshots/2-Babel-Error.shot new file mode 100644 index 000000000000..d3b922788498 --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal/snapshots/2-Babel-Error.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration _error_ named-string-literal Babel - Error 1`] = ` +[SyntaxError: A string literal cannot be used as an imported binding. +- Did you mean \`import { "😭" as foo }\`? (1:9)] +`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal/snapshots/3-Alignment-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal/snapshots/3-Alignment-Error.shot new file mode 100644 index 000000000000..6980fcce0d80 --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal/snapshots/3-Alignment-Error.shot @@ -0,0 +1,3 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration _error_ named-string-literal Error Alignment 1`] = `"Both errored"`; diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-export-specifiers/fixture.ts b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-export-specifiers/fixture.ts deleted file mode 100644 index 5e97bf7c7bb7..000000000000 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-export-specifiers/fixture.ts +++ /dev/null @@ -1,3 +0,0 @@ -// TODO: This fixture might be too large, and if so should be split up. - -export { type A, type B } from 'mod'; diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-import-specifiers/fixture.ts b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-import-specifiers/fixture.ts deleted file mode 100644 index d069f3df8745..000000000000 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-import-specifiers/fixture.ts +++ /dev/null @@ -1,3 +0,0 @@ -// TODO: This fixture might be too large, and if so should be split up. - -import { type A, type B } from 'mod'; 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 deleted file mode 100644 index 8b95ed9fa420..000000000000 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-import-specifiers/snapshots/2-TSESTree-Tokens.shot +++ /dev/null @@ -1,116 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AST Fixtures legacy-fixtures basics type-only-import-specifiers TSESTree - Tokens 1`] = ` -[ - Keyword { - type: "Keyword", - value: "import", - - range: [73, 79], - loc: { - start: { column: 0, line: 3 }, - end: { column: 6, line: 3 }, - }, - }, - Punctuator { - type: "Punctuator", - value: "{", - - range: [80, 81], - loc: { - start: { column: 7, line: 3 }, - end: { column: 8, line: 3 }, - }, - }, - Identifier { - type: "Identifier", - value: "type", - - range: [82, 86], - loc: { - start: { column: 9, line: 3 }, - end: { column: 13, line: 3 }, - }, - }, - Identifier { - type: "Identifier", - value: "A", - - range: [87, 88], - loc: { - start: { column: 14, line: 3 }, - end: { column: 15, line: 3 }, - }, - }, - Punctuator { - type: "Punctuator", - value: ",", - - range: [88, 89], - loc: { - start: { column: 15, line: 3 }, - end: { column: 16, line: 3 }, - }, - }, - Identifier { - type: "Identifier", - value: "type", - - range: [90, 94], - loc: { - start: { column: 17, line: 3 }, - end: { column: 21, line: 3 }, - }, - }, - Identifier { - type: "Identifier", - value: "B", - - range: [95, 96], - loc: { - start: { column: 22, line: 3 }, - end: { column: 23, line: 3 }, - }, - }, - Punctuator { - type: "Punctuator", - value: "}", - - range: [97, 98], - loc: { - start: { column: 24, line: 3 }, - end: { column: 25, line: 3 }, - }, - }, - Identifier { - type: "Identifier", - value: "from", - - range: [99, 103], - loc: { - start: { column: 26, line: 3 }, - end: { column: 30, line: 3 }, - }, - }, - String { - type: "String", - value: "'mod'", - - range: [104, 109], - loc: { - start: { column: 31, line: 3 }, - end: { column: 36, line: 3 }, - }, - }, - Punctuator { - type: "Punctuator", - value: ";", - - range: [109, 110], - loc: { - start: { column: 36, line: 3 }, - end: { column: 37, line: 3 }, - }, - }, -] -`; 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 deleted file mode 100644 index a461fc4b32a4..000000000000 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-import-specifiers/snapshots/4-Babel-Tokens.shot +++ /dev/null @@ -1,116 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AST Fixtures legacy-fixtures basics type-only-import-specifiers Babel - Tokens 1`] = ` -[ - Keyword { - type: "Keyword", - value: "import", - - range: [73, 79], - loc: { - start: { column: 0, line: 3 }, - end: { column: 6, line: 3 }, - }, - }, - Punctuator { - type: "Punctuator", - value: "{", - - range: [80, 81], - loc: { - start: { column: 7, line: 3 }, - end: { column: 8, line: 3 }, - }, - }, - Identifier { - type: "Identifier", - value: "type", - - range: [82, 86], - loc: { - start: { column: 9, line: 3 }, - end: { column: 13, line: 3 }, - }, - }, - Identifier { - type: "Identifier", - value: "A", - - range: [87, 88], - loc: { - start: { column: 14, line: 3 }, - end: { column: 15, line: 3 }, - }, - }, - Punctuator { - type: "Punctuator", - value: ",", - - range: [88, 89], - loc: { - start: { column: 15, line: 3 }, - end: { column: 16, line: 3 }, - }, - }, - Identifier { - type: "Identifier", - value: "type", - - range: [90, 94], - loc: { - start: { column: 17, line: 3 }, - end: { column: 21, line: 3 }, - }, - }, - Identifier { - type: "Identifier", - value: "B", - - range: [95, 96], - loc: { - start: { column: 22, line: 3 }, - end: { column: 23, line: 3 }, - }, - }, - Punctuator { - type: "Punctuator", - value: "}", - - range: [97, 98], - loc: { - start: { column: 24, line: 3 }, - end: { column: 25, line: 3 }, - }, - }, - Identifier { - type: "Identifier", - value: "from", - - range: [99, 103], - loc: { - start: { column: 26, line: 3 }, - end: { column: 30, line: 3 }, - }, - }, - String { - type: "String", - value: "'mod'", - - range: [104, 109], - loc: { - start: { column: 31, line: 3 }, - end: { column: 36, line: 3 }, - }, - }, - Punctuator { - type: "Punctuator", - value: ";", - - range: [109, 110], - loc: { - start: { column: 36, line: 3 }, - end: { column: 37, line: 3 }, - }, - }, -] -`; diff --git a/packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/fixture.ts b/packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/fixture.ts new file mode 100644 index 000000000000..96627be28005 --- /dev/null +++ b/packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/fixture.ts @@ -0,0 +1 @@ +export { type A } from 'mod'; diff --git a/packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..c09cb455fd79 --- /dev/null +++ b/packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,75 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special ExportSpecifier export-as-string-literal-from TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + ExportNamedDeclaration { + type: "ExportNamedDeclaration", + attributes: [], + declaration: null, + exportKind: "value", + source: Literal { + type: "Literal", + raw: "'mod'", + value: "mod", + + range: [23, 28], + loc: { + start: { column: 23, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + specifiers: [ + ExportSpecifier { + type: "ExportSpecifier", + exported: Identifier { + type: "Identifier", + decorators: [], + name: "A", + optional: false, + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + exportKind: "type", + local: Identifier { + type: "Identifier", + decorators: [], + name: "A", + optional: false, + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + + range: [9, 15], + loc: { + start: { column: 9, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + ], + + range: [0, 29], + loc: { + start: { column: 0, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + ], + sourceType: "module", + + range: [0, 30], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..a7e60ed65c33 --- /dev/null +++ b/packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,86 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special ExportSpecifier export-as-string-literal-from TSESTree - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "export", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "type", + + range: [9, 13], + loc: { + start: { column: 9, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "A", + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [16, 17], + loc: { + start: { column: 16, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "from", + + range: [18, 22], + loc: { + start: { column: 18, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + String { + type: "String", + value: "'mod'", + + range: [23, 28], + loc: { + start: { column: 23, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [28, 29], + loc: { + start: { column: 28, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..ea18d898e7d1 --- /dev/null +++ b/packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/3-Babel-AST.shot @@ -0,0 +1,71 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special ExportSpecifier export-as-string-literal-from Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + ExportNamedDeclaration { + type: "ExportNamedDeclaration", + assertions: [], + declaration: null, + exportKind: "value", + source: Literal { + type: "Literal", + raw: "'mod'", + value: "mod", + + range: [23, 28], + loc: { + start: { column: 23, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + specifiers: [ + ExportSpecifier { + type: "ExportSpecifier", + exported: Identifier { + type: "Identifier", + name: "A", + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + exportKind: "type", + local: Identifier { + type: "Identifier", + name: "A", + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + + range: [9, 15], + loc: { + start: { column: 9, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + ], + + range: [0, 29], + loc: { + start: { column: 0, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + ], + sourceType: "module", + + range: [0, 30], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..55498b62630c --- /dev/null +++ b/packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,86 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special ExportSpecifier export-as-string-literal-from Babel - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "export", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "type", + + range: [9, 13], + loc: { + start: { column: 9, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "A", + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [16, 17], + loc: { + start: { column: 16, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "from", + + range: [18, 22], + loc: { + start: { column: 18, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + String { + type: "String", + value: "'mod'", + + range: [23, 28], + loc: { + start: { column: 23, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [28, 29], + loc: { + start: { column: 28, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..43e409781129 --- /dev/null +++ b/packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,80 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special ExportSpecifier export-as-string-literal-from AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExportNamedDeclaration { + type: 'ExportNamedDeclaration', +- attributes: Array [], ++ assertions: Array [], + declaration: null, + exportKind: 'value', + source: Literal { + type: 'Literal', + raw: '\\'mod\\'', + value: 'mod', + + range: [23, 28], + loc: { + start: { column: 23, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + specifiers: Array [ + ExportSpecifier { + type: 'ExportSpecifier', + exported: Identifier { + type: 'Identifier', +- decorators: Array [], + name: 'A', +- optional: false, + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + exportKind: 'type', + local: Identifier { + type: 'Identifier', +- decorators: Array [], + name: 'A', +- optional: false, + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + + range: [9, 15], + loc: { + start: { column: 9, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + ], + + range: [0, 29], + loc: { + start: { column: 0, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + ], + sourceType: 'module', + + range: [0, 30], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..14162922e456 --- /dev/null +++ b/packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special ExportSpecifier export-as-string-literal-from AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/special/ExportSpecifier/fixtures/type-only-export-specifiers/fixture.ts b/packages/ast-spec/src/special/ExportSpecifier/fixtures/type-only-export-specifiers/fixture.ts new file mode 100644 index 000000000000..38ebd81da095 --- /dev/null +++ b/packages/ast-spec/src/special/ExportSpecifier/fixtures/type-only-export-specifiers/fixture.ts @@ -0,0 +1 @@ +export { type A, type B } from 'mod'; diff --git a/packages/ast-spec/src/special/ExportSpecifier/fixtures/type-only-export-specifiers/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/special/ExportSpecifier/fixtures/type-only-export-specifiers/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..4c6072d77e0d --- /dev/null +++ b/packages/ast-spec/src/special/ExportSpecifier/fixtures/type-only-export-specifiers/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,109 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special ExportSpecifier type-only-export-specifiers TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + ExportNamedDeclaration { + type: "ExportNamedDeclaration", + attributes: [], + declaration: null, + exportKind: "value", + source: Literal { + type: "Literal", + raw: "'mod'", + value: "mod", + + range: [31, 36], + loc: { + start: { column: 31, line: 1 }, + end: { column: 36, line: 1 }, + }, + }, + specifiers: [ + ExportSpecifier { + type: "ExportSpecifier", + exported: Identifier { + type: "Identifier", + decorators: [], + name: "A", + optional: false, + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + exportKind: "type", + local: Identifier { + type: "Identifier", + decorators: [], + name: "A", + optional: false, + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + + range: [9, 15], + loc: { + start: { column: 9, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + ExportSpecifier { + type: "ExportSpecifier", + exported: Identifier { + type: "Identifier", + decorators: [], + name: "B", + optional: false, + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + exportKind: "type", + local: Identifier { + type: "Identifier", + decorators: [], + name: "B", + optional: false, + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + + range: [17, 23], + loc: { + start: { column: 17, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + ], + + range: [0, 37], + loc: { + start: { column: 0, line: 1 }, + end: { column: 37, line: 1 }, + }, + }, + ], + sourceType: "module", + + range: [0, 38], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/ExportSpecifier/fixtures/type-only-export-specifiers/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/special/ExportSpecifier/fixtures/type-only-export-specifiers/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..95164c4fdb1e --- /dev/null +++ b/packages/ast-spec/src/special/ExportSpecifier/fixtures/type-only-export-specifiers/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,116 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special ExportSpecifier type-only-export-specifiers TSESTree - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "export", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "type", + + range: [9, 13], + loc: { + start: { column: 9, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "A", + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ",", + + range: [15, 16], + loc: { + start: { column: 15, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "type", + + range: [17, 21], + loc: { + start: { column: 17, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "B", + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [24, 25], + loc: { + start: { column: 24, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "from", + + range: [26, 30], + loc: { + start: { column: 26, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + String { + type: "String", + value: "'mod'", + + range: [31, 36], + loc: { + start: { column: 31, line: 1 }, + end: { column: 36, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [36, 37], + loc: { + start: { column: 36, line: 1 }, + end: { column: 37, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/ExportSpecifier/fixtures/type-only-export-specifiers/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/special/ExportSpecifier/fixtures/type-only-export-specifiers/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..0fbd9915e81a --- /dev/null +++ b/packages/ast-spec/src/special/ExportSpecifier/fixtures/type-only-export-specifiers/snapshots/3-Babel-AST.shot @@ -0,0 +1,101 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special ExportSpecifier type-only-export-specifiers Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + ExportNamedDeclaration { + type: "ExportNamedDeclaration", + assertions: [], + declaration: null, + exportKind: "value", + source: Literal { + type: "Literal", + raw: "'mod'", + value: "mod", + + range: [31, 36], + loc: { + start: { column: 31, line: 1 }, + end: { column: 36, line: 1 }, + }, + }, + specifiers: [ + ExportSpecifier { + type: "ExportSpecifier", + exported: Identifier { + type: "Identifier", + name: "A", + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + exportKind: "type", + local: Identifier { + type: "Identifier", + name: "A", + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + + range: [9, 15], + loc: { + start: { column: 9, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + ExportSpecifier { + type: "ExportSpecifier", + exported: Identifier { + type: "Identifier", + name: "B", + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + exportKind: "type", + local: Identifier { + type: "Identifier", + name: "B", + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + + range: [17, 23], + loc: { + start: { column: 17, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + ], + + range: [0, 37], + loc: { + start: { column: 0, line: 1 }, + end: { column: 37, line: 1 }, + }, + }, + ], + sourceType: "module", + + range: [0, 38], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/ExportSpecifier/fixtures/type-only-export-specifiers/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/special/ExportSpecifier/fixtures/type-only-export-specifiers/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..753a74b9f5d1 --- /dev/null +++ b/packages/ast-spec/src/special/ExportSpecifier/fixtures/type-only-export-specifiers/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,116 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special ExportSpecifier type-only-export-specifiers Babel - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "export", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "type", + + range: [9, 13], + loc: { + start: { column: 9, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "A", + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ",", + + range: [15, 16], + loc: { + start: { column: 15, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "type", + + range: [17, 21], + loc: { + start: { column: 17, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "B", + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [24, 25], + loc: { + start: { column: 24, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "from", + + range: [26, 30], + loc: { + start: { column: 26, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + String { + type: "String", + value: "'mod'", + + range: [31, 36], + loc: { + start: { column: 31, line: 1 }, + end: { column: 36, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [36, 37], + loc: { + start: { column: 36, line: 1 }, + end: { column: 37, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/ExportSpecifier/fixtures/type-only-export-specifiers/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/special/ExportSpecifier/fixtures/type-only-export-specifiers/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..0f14a2e61779 --- /dev/null +++ b/packages/ast-spec/src/special/ExportSpecifier/fixtures/type-only-export-specifiers/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,114 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special ExportSpecifier type-only-export-specifiers AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExportNamedDeclaration { + type: 'ExportNamedDeclaration', +- attributes: Array [], ++ assertions: Array [], + declaration: null, + exportKind: 'value', + source: Literal { + type: 'Literal', + raw: '\\'mod\\'', + value: 'mod', + + range: [31, 36], + loc: { + start: { column: 31, line: 1 }, + end: { column: 36, line: 1 }, + }, + }, + specifiers: Array [ + ExportSpecifier { + type: 'ExportSpecifier', + exported: Identifier { + type: 'Identifier', +- decorators: Array [], + name: 'A', +- optional: false, + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + exportKind: 'type', + local: Identifier { + type: 'Identifier', +- decorators: Array [], + name: 'A', +- optional: false, + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + + range: [9, 15], + loc: { + start: { column: 9, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + ExportSpecifier { + type: 'ExportSpecifier', + exported: Identifier { + type: 'Identifier', +- decorators: Array [], + name: 'B', +- optional: false, + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + exportKind: 'type', + local: Identifier { + type: 'Identifier', +- decorators: Array [], + name: 'B', +- optional: false, + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + + range: [17, 23], + loc: { + start: { column: 17, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + ], + + range: [0, 37], + loc: { + start: { column: 0, line: 1 }, + end: { column: 37, line: 1 }, + }, + }, + ], + sourceType: 'module', + + range: [0, 38], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/special/ExportSpecifier/fixtures/type-only-export-specifiers/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/special/ExportSpecifier/fixtures/type-only-export-specifiers/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..fd90fbaead1c --- /dev/null +++ b/packages/ast-spec/src/special/ExportSpecifier/fixtures/type-only-export-specifiers/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special ExportSpecifier type-only-export-specifiers AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/special/ExportSpecifier/spec.ts b/packages/ast-spec/src/special/ExportSpecifier/spec.ts index dcaa8ca04197..d5f801d82006 100644 --- a/packages/ast-spec/src/special/ExportSpecifier/spec.ts +++ b/packages/ast-spec/src/special/ExportSpecifier/spec.ts @@ -4,9 +4,21 @@ import type { ExportKind } from '../../declaration/ExportAndImportKind'; import type { Identifier } from '../../expression/Identifier/spec'; import type { StringLiteral } from '../../expression/literal/StringLiteral/spec'; -export interface ExportSpecifier extends BaseNode { - exported: Identifier | StringLiteral; +export interface ExportSpecifierBase extends BaseNode { exportKind: ExportKind; - local: Identifier; type: AST_NODE_TYPES.ExportSpecifier; } + +export interface ExportIdentifierSpecifier extends ExportSpecifierBase { + exported: Identifier; + local: Identifier; +} + +export interface ExportStringLiteralSpecifier extends ExportSpecifierBase { + exported: StringLiteral; + local: StringLiteral; +} + +export type ExportSpecifier = + | ExportIdentifierSpecifier + | ExportStringLiteralSpecifier; diff --git a/packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifier/fixture.ts b/packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifier/fixture.ts new file mode 100644 index 000000000000..3c8d04710e4f --- /dev/null +++ b/packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifier/fixture.ts @@ -0,0 +1 @@ +import { type A } from 'mod'; diff --git a/packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifier/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifier/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..abee47b05717 --- /dev/null +++ b/packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifier/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,74 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special ImportSpecifier type-only-import-specifier TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + ImportDeclaration { + type: "ImportDeclaration", + attributes: [], + importKind: "value", + source: Literal { + type: "Literal", + raw: "'mod'", + value: "mod", + + range: [23, 28], + loc: { + start: { column: 23, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + specifiers: [ + ImportSpecifier { + type: "ImportSpecifier", + imported: Identifier { + type: "Identifier", + decorators: [], + name: "A", + optional: false, + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + importKind: "type", + local: Identifier { + type: "Identifier", + decorators: [], + name: "A", + optional: false, + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + + range: [9, 15], + loc: { + start: { column: 9, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + ], + + range: [0, 29], + loc: { + start: { column: 0, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + ], + sourceType: "module", + + range: [0, 30], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifier/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifier/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..dff80ff21838 --- /dev/null +++ b/packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifier/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,86 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special ImportSpecifier type-only-import-specifier TSESTree - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "import", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "type", + + range: [9, 13], + loc: { + start: { column: 9, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "A", + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [16, 17], + loc: { + start: { column: 16, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "from", + + range: [18, 22], + loc: { + start: { column: 18, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + String { + type: "String", + value: "'mod'", + + range: [23, 28], + loc: { + start: { column: 23, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [28, 29], + loc: { + start: { column: 28, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifier/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifier/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..643571d60716 --- /dev/null +++ b/packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifier/snapshots/3-Babel-AST.shot @@ -0,0 +1,70 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special ImportSpecifier type-only-import-specifier Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + ImportDeclaration { + type: "ImportDeclaration", + assertions: [], + importKind: "value", + source: Literal { + type: "Literal", + raw: "'mod'", + value: "mod", + + range: [23, 28], + loc: { + start: { column: 23, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + specifiers: [ + ImportSpecifier { + type: "ImportSpecifier", + imported: Identifier { + type: "Identifier", + name: "A", + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + importKind: "type", + local: Identifier { + type: "Identifier", + name: "A", + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + + range: [9, 15], + loc: { + start: { column: 9, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + ], + + range: [0, 29], + loc: { + start: { column: 0, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + ], + sourceType: "module", + + range: [0, 30], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifier/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifier/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..e265e9d9061b --- /dev/null +++ b/packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifier/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,86 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special ImportSpecifier type-only-import-specifier Babel - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "import", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "type", + + range: [9, 13], + loc: { + start: { column: 9, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "A", + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [16, 17], + loc: { + start: { column: 16, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "from", + + range: [18, 22], + loc: { + start: { column: 18, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + String { + type: "String", + value: "'mod'", + + range: [23, 28], + loc: { + start: { column: 23, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [28, 29], + loc: { + start: { column: 28, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifier/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifier/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..6fab4ad34bca --- /dev/null +++ b/packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifier/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,79 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special ImportSpecifier type-only-import-specifier AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ImportDeclaration { + type: 'ImportDeclaration', +- attributes: Array [], ++ assertions: Array [], + importKind: 'value', + source: Literal { + type: 'Literal', + raw: '\\'mod\\'', + value: 'mod', + + range: [23, 28], + loc: { + start: { column: 23, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + specifiers: Array [ + ImportSpecifier { + type: 'ImportSpecifier', + imported: Identifier { + type: 'Identifier', +- decorators: Array [], + name: 'A', +- optional: false, + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + importKind: 'type', + local: Identifier { + type: 'Identifier', +- decorators: Array [], + name: 'A', +- optional: false, + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + + range: [9, 15], + loc: { + start: { column: 9, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + ], + + range: [0, 29], + loc: { + start: { column: 0, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + ], + sourceType: 'module', + + range: [0, 30], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-import-specifiers/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifier/snapshots/6-AST-Alignment-Tokens.shot similarity index 50% rename from packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-import-specifiers/snapshots/6-AST-Alignment-Tokens.shot rename to packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifier/snapshots/6-AST-Alignment-Tokens.shot index f5edce33d5b5..d24c34c94c95 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-import-specifiers/snapshots/6-AST-Alignment-Tokens.shot +++ b/packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifier/snapshots/6-AST-Alignment-Tokens.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures legacy-fixtures basics type-only-import-specifiers AST Alignment - Token 1`] = ` +exports[`AST Fixtures special ImportSpecifier type-only-import-specifier AST Alignment - Token 1`] = ` "Snapshot Diff: Compared values have no visual difference." `; diff --git a/packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifiers/fixture.ts b/packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifiers/fixture.ts new file mode 100644 index 000000000000..26dcb4c1dc16 --- /dev/null +++ b/packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifiers/fixture.ts @@ -0,0 +1 @@ +import { type A, type B } from 'mod'; 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/special/ImportSpecifier/fixtures/type-only-import-specifiers/snapshots/1-TSESTree-AST.shot similarity index 57% rename from packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-import-specifiers/snapshots/1-TSESTree-AST.shot rename to packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifiers/snapshots/1-TSESTree-AST.shot index 82aea11224da..ee1f5a5aacad 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-import-specifiers/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifiers/snapshots/1-TSESTree-AST.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures legacy-fixtures basics type-only-import-specifiers TSESTree - AST 1`] = ` +exports[`AST Fixtures special ImportSpecifier type-only-import-specifiers TSESTree - AST 1`] = ` Program { type: "Program", body: [ @@ -13,10 +13,10 @@ Program { raw: "'mod'", value: "mod", - range: [104, 109], + range: [31, 36], loc: { - start: { column: 31, line: 3 }, - end: { column: 36, line: 3 }, + start: { column: 31, line: 1 }, + end: { column: 36, line: 1 }, }, }, specifiers: [ @@ -28,10 +28,10 @@ Program { name: "A", optional: false, - range: [87, 88], + range: [14, 15], loc: { - start: { column: 14, line: 3 }, - end: { column: 15, line: 3 }, + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, }, }, importKind: "type", @@ -41,17 +41,17 @@ Program { name: "A", optional: false, - range: [87, 88], + range: [14, 15], loc: { - start: { column: 14, line: 3 }, - end: { column: 15, line: 3 }, + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, }, }, - range: [82, 88], + range: [9, 15], loc: { - start: { column: 9, line: 3 }, - end: { column: 15, line: 3 }, + start: { column: 9, line: 1 }, + end: { column: 15, line: 1 }, }, }, ImportSpecifier { @@ -62,10 +62,10 @@ Program { name: "B", optional: false, - range: [95, 96], + range: [22, 23], loc: { - start: { column: 22, line: 3 }, - end: { column: 23, line: 3 }, + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, }, }, importKind: "type", @@ -75,34 +75,34 @@ Program { name: "B", optional: false, - range: [95, 96], + range: [22, 23], loc: { - start: { column: 22, line: 3 }, - end: { column: 23, line: 3 }, + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, }, }, - range: [90, 96], + range: [17, 23], loc: { - start: { column: 17, line: 3 }, - end: { column: 23, line: 3 }, + start: { column: 17, line: 1 }, + end: { column: 23, line: 1 }, }, }, ], - range: [73, 110], + range: [0, 37], loc: { - start: { column: 0, line: 3 }, - end: { column: 37, line: 3 }, + start: { column: 0, line: 1 }, + end: { column: 37, line: 1 }, }, }, ], sourceType: "module", - range: [73, 111], + range: [0, 38], loc: { - start: { column: 0, line: 3 }, - end: { column: 0, line: 4 }, + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, }, } `; diff --git a/packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifiers/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifiers/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..75ea97061ea2 --- /dev/null +++ b/packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifiers/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,116 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special ImportSpecifier type-only-import-specifiers TSESTree - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "import", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "type", + + range: [9, 13], + loc: { + start: { column: 9, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "A", + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ",", + + range: [15, 16], + loc: { + start: { column: 15, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "type", + + range: [17, 21], + loc: { + start: { column: 17, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "B", + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [24, 25], + loc: { + start: { column: 24, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "from", + + range: [26, 30], + loc: { + start: { column: 26, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + String { + type: "String", + value: "'mod'", + + range: [31, 36], + loc: { + start: { column: 31, line: 1 }, + end: { column: 36, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [36, 37], + loc: { + start: { column: 36, line: 1 }, + end: { column: 37, line: 1 }, + }, + }, +] +`; 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/special/ImportSpecifier/fixtures/type-only-import-specifiers/snapshots/3-Babel-AST.shot similarity index 52% rename from packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-import-specifiers/snapshots/3-Babel-AST.shot rename to packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifiers/snapshots/3-Babel-AST.shot index 4cd73830077e..9d2ded63258e 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-import-specifiers/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifiers/snapshots/3-Babel-AST.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures legacy-fixtures basics type-only-import-specifiers Babel - AST 1`] = ` +exports[`AST Fixtures special ImportSpecifier type-only-import-specifiers Babel - AST 1`] = ` Program { type: "Program", body: [ @@ -13,10 +13,10 @@ Program { raw: "'mod'", value: "mod", - range: [104, 109], + range: [31, 36], loc: { - start: { column: 31, line: 3 }, - end: { column: 36, line: 3 }, + start: { column: 31, line: 1 }, + end: { column: 36, line: 1 }, }, }, specifiers: [ @@ -26,10 +26,10 @@ Program { type: "Identifier", name: "A", - range: [87, 88], + range: [14, 15], loc: { - start: { column: 14, line: 3 }, - end: { column: 15, line: 3 }, + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, }, }, importKind: "type", @@ -37,17 +37,17 @@ Program { type: "Identifier", name: "A", - range: [87, 88], + range: [14, 15], loc: { - start: { column: 14, line: 3 }, - end: { column: 15, line: 3 }, + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, }, }, - range: [82, 88], + range: [9, 15], loc: { - start: { column: 9, line: 3 }, - end: { column: 15, line: 3 }, + start: { column: 9, line: 1 }, + end: { column: 15, line: 1 }, }, }, ImportSpecifier { @@ -56,10 +56,10 @@ Program { type: "Identifier", name: "B", - range: [95, 96], + range: [22, 23], loc: { - start: { column: 22, line: 3 }, - end: { column: 23, line: 3 }, + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, }, }, importKind: "type", @@ -67,34 +67,34 @@ Program { type: "Identifier", name: "B", - range: [95, 96], + range: [22, 23], loc: { - start: { column: 22, line: 3 }, - end: { column: 23, line: 3 }, + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, }, }, - range: [90, 96], + range: [17, 23], loc: { - start: { column: 17, line: 3 }, - end: { column: 23, line: 3 }, + start: { column: 17, line: 1 }, + end: { column: 23, line: 1 }, }, }, ], - range: [73, 110], + range: [0, 37], loc: { - start: { column: 0, line: 3 }, - end: { column: 37, line: 3 }, + start: { column: 0, line: 1 }, + end: { column: 37, line: 1 }, }, }, ], sourceType: "module", - range: [73, 111], + range: [0, 38], loc: { - start: { column: 0, line: 3 }, - end: { column: 0, line: 4 }, + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, }, } `; diff --git a/packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifiers/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifiers/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..0e26034ffd30 --- /dev/null +++ b/packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifiers/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,116 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special ImportSpecifier type-only-import-specifiers Babel - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "import", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "type", + + range: [9, 13], + loc: { + start: { column: 9, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "A", + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ",", + + range: [15, 16], + loc: { + start: { column: 15, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "type", + + range: [17, 21], + loc: { + start: { column: 17, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "B", + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [24, 25], + loc: { + start: { column: 24, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "from", + + range: [26, 30], + loc: { + start: { column: 26, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + String { + type: "String", + value: "'mod'", + + range: [31, 36], + loc: { + start: { column: 31, line: 1 }, + end: { column: 36, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [36, 37], + loc: { + start: { column: 36, line: 1 }, + end: { column: 37, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-import-specifiers/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifiers/snapshots/5-AST-Alignment-AST.shot similarity index 59% rename from packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-import-specifiers/snapshots/5-AST-Alignment-AST.shot rename to packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifiers/snapshots/5-AST-Alignment-AST.shot index 48020406f92a..e2b01ef26491 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/type-only-import-specifiers/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifiers/snapshots/5-AST-Alignment-AST.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures legacy-fixtures basics type-only-import-specifiers AST Alignment - AST 1`] = ` +exports[`AST Fixtures special ImportSpecifier type-only-import-specifiers AST Alignment - AST 1`] = ` "Snapshot Diff: - TSESTree + Babel @@ -18,10 +18,10 @@ exports[`AST Fixtures legacy-fixtures basics type-only-import-specifiers AST Ali raw: '\\'mod\\'', value: 'mod', - range: [104, 109], + range: [31, 36], loc: { - start: { column: 31, line: 3 }, - end: { column: 36, line: 3 }, + start: { column: 31, line: 1 }, + end: { column: 36, line: 1 }, }, }, specifiers: Array [ @@ -33,10 +33,10 @@ exports[`AST Fixtures legacy-fixtures basics type-only-import-specifiers AST Ali name: 'A', - optional: false, - range: [87, 88], + range: [14, 15], loc: { - start: { column: 14, line: 3 }, - end: { column: 15, line: 3 }, + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, }, }, importKind: 'type', @@ -46,17 +46,17 @@ exports[`AST Fixtures legacy-fixtures basics type-only-import-specifiers AST Ali name: 'A', - optional: false, - range: [87, 88], + range: [14, 15], loc: { - start: { column: 14, line: 3 }, - end: { column: 15, line: 3 }, + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, }, }, - range: [82, 88], + range: [9, 15], loc: { - start: { column: 9, line: 3 }, - end: { column: 15, line: 3 }, + start: { column: 9, line: 1 }, + end: { column: 15, line: 1 }, }, }, ImportSpecifier { @@ -67,10 +67,10 @@ exports[`AST Fixtures legacy-fixtures basics type-only-import-specifiers AST Ali name: 'B', - optional: false, - range: [95, 96], + range: [22, 23], loc: { - start: { column: 22, line: 3 }, - end: { column: 23, line: 3 }, + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, }, }, importKind: 'type', @@ -80,34 +80,34 @@ exports[`AST Fixtures legacy-fixtures basics type-only-import-specifiers AST Ali name: 'B', - optional: false, - range: [95, 96], + range: [22, 23], loc: { - start: { column: 22, line: 3 }, - end: { column: 23, line: 3 }, + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, }, }, - range: [90, 96], + range: [17, 23], loc: { - start: { column: 17, line: 3 }, - end: { column: 23, line: 3 }, + start: { column: 17, line: 1 }, + end: { column: 23, line: 1 }, }, }, ], - range: [73, 110], + range: [0, 37], loc: { - start: { column: 0, line: 3 }, - end: { column: 37, line: 3 }, + start: { column: 0, line: 1 }, + end: { column: 37, line: 1 }, }, }, ], sourceType: 'module', - range: [73, 111], + range: [0, 38], loc: { - start: { column: 0, line: 3 }, - end: { column: 0, line: 4 }, + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, }, }" `; diff --git a/packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifiers/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifiers/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..bb6cbaf0b7ad --- /dev/null +++ b/packages/ast-spec/src/special/ImportSpecifier/fixtures/type-only-import-specifiers/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special ImportSpecifier type-only-import-specifiers AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/tests/fixtures-with-differences-ast.shot b/packages/ast-spec/tests/fixtures-with-differences-ast.shot index 25c67426f23f..b44a79dd02a6 100644 --- a/packages/ast-spec/tests/fixtures-with-differences-ast.shot +++ b/packages/ast-spec/tests/fixtures-with-differences-ast.shot @@ -347,8 +347,6 @@ exports[`AST Fixtures List fixtures with AST differences 1`] = ` "legacy-fixtures/basics/fixtures/type-guard-in-method/fixture.ts", "legacy-fixtures/basics/fixtures/type-import-type-with-type-parameters-in-type-reference/fixture.ts", "legacy-fixtures/basics/fixtures/type-import-type/fixture.ts", - "legacy-fixtures/basics/fixtures/type-only-export-specifiers/fixture.ts", - "legacy-fixtures/basics/fixtures/type-only-import-specifiers/fixture.ts", "legacy-fixtures/basics/fixtures/type-parameters-comments-heritage/fixture.ts", "legacy-fixtures/basics/fixtures/type-parameters-comments/fixture.ts", "legacy-fixtures/basics/fixtures/type-reference-comments/fixture.ts", @@ -481,6 +479,10 @@ exports[`AST Fixtures List fixtures with AST differences 1`] = ` "legacy-fixtures/types/fixtures/union-type/fixture.ts", "special/Decorator/fixtures/decorator-class-member-super-with-parens/fixture.ts", "special/Decorator/fixtures/decorator-class-member-super-without-parens/fixture.ts", + "special/ExportSpecifier/fixtures/export-as-string-literal-from/fixture.ts", + "special/ExportSpecifier/fixtures/type-only-export-specifiers/fixture.ts", + "special/ImportSpecifier/fixtures/type-only-import-specifier/fixture.ts", + "special/ImportSpecifier/fixtures/type-only-import-specifiers/fixture.ts", "special/TSTypeParameter/fixtures/arrow-const-modifier-extends/fixture.ts", "special/TSTypeParameter/fixtures/arrow-const-modifier/fixture.ts", "special/TSTypeParameter/fixtures/class-decl-const-in-modifier/fixture.ts", diff --git a/packages/ast-spec/tests/fixtures-with-differences-errors.shot b/packages/ast-spec/tests/fixtures-with-differences-errors.shot index a641afd174c2..f0ac17eb4d25 100644 --- a/packages/ast-spec/tests/fixtures-with-differences-errors.shot +++ b/packages/ast-spec/tests/fixtures-with-differences-errors.shot @@ -7,6 +7,8 @@ exports[`AST Fixtures List fixtures with Error differences 1`] = ` "declaration/ClassDeclaration/fixtures/_error_/missing-extends-type-param/fixture.ts", "declaration/ClassDeclaration/fixtures/_error_/missing-type-param/fixture.ts", "declaration/ExportNamedDeclaration/fixtures/_error_/assertion/fixture.ts", + "declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/fixture.ts", + "declaration/ExportNamedDeclaration/fixtures/_error_/literal-braced/fixture.ts", "declaration/FunctionDeclaration/fixtures/_error_/missing-type-param/fixture.ts", "declaration/TSDeclareFunction/fixtures/_error_/missing-type-param/fixture.ts", "declaration/TSImportEqualsDeclaration/fixtures/_error_/import-kind/fixture.ts", @@ -51,8 +53,6 @@ exports[`AST Fixtures List fixtures with Error differences 1`] = ` "legacy-fixtures/parameter-decorators/fixtures/_error_/parameter-rest-element-decorator/fixture.ts", ], "TSESTree errored but Babel didn't": [ - "declaration/ExportAllDeclaration/fixtures/_error_/named-non-identifier/fixture.ts", - "declaration/ExportNamedDeclaration/fixtures/_error_/aliased-literal/fixture.ts", "declaration/TSDeclareFunction/fixtures/_error_/generator-ambient/fixture.ts", "declaration/TSDeclareFunction/fixtures/_error_/generator-overload/fixture.ts", "declaration/TSDeclareFunction/fixtures/_error_/generator/fixture.ts", From c655937ec9a56da467beb626e93b8e77783617b0 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Mon, 14 Oct 2024 16:31:47 -0400 Subject: [PATCH 03/14] Added api-extractor patch, you are the best Jake --- ...-api-extractor-npm-7.47.9-d69a694fc6.patch | 44 +++++++++++++++++++ package.json | 3 +- yarn.lock | 25 ++++++++++- 3 files changed, 70 insertions(+), 2 deletions(-) create mode 100644 .yarn/patches/@microsoft-api-extractor-npm-7.47.9-d69a694fc6.patch diff --git a/.yarn/patches/@microsoft-api-extractor-npm-7.47.9-d69a694fc6.patch b/.yarn/patches/@microsoft-api-extractor-npm-7.47.9-d69a694fc6.patch new file mode 100644 index 000000000000..e883bb4b1a99 --- /dev/null +++ b/.yarn/patches/@microsoft-api-extractor-npm-7.47.9-d69a694fc6.patch @@ -0,0 +1,44 @@ +diff --git a/lib/analyzer/ExportAnalyzer.js b/lib/analyzer/ExportAnalyzer.js +index 43b4bb171db8f2e51b6a2eaa0cc669f67ec820e8..b60e84802ad4a73d1910266b80c627fd05ae7c27 100644 +--- a/lib/analyzer/ExportAnalyzer.js ++++ b/lib/analyzer/ExportAnalyzer.js +@@ -192,7 +192,11 @@ class ExportAnalyzer { + ? importOrExportDeclaration.argument + : importOrExportDeclaration.moduleSpecifier; + const mode = specifier && ts.isStringLiteralLike(specifier) +- ? TypeScriptInternals_1.TypeScriptInternals.getModeForUsageLocation(importOrExportDeclaration.getSourceFile(), specifier) ++ ? TypeScriptInternals_1.TypeScriptInternals.getModeForUsageLocation( ++ importOrExportDeclaration.getSourceFile(), ++ specifier, ++ this._program.getCompilerOptions() ++ ) + : undefined; + const resolvedModule = TypeScriptInternals_1.TypeScriptInternals.getResolvedModule(this._program, importOrExportDeclaration.getSourceFile(), moduleSpecifier, mode); + if (resolvedModule === undefined) { +@@ -676,7 +680,7 @@ class ExportAnalyzer { + const moduleSpecifier = this._getModuleSpecifier(importOrExportDeclaration); + const mode = importOrExportDeclaration.moduleSpecifier && + ts.isStringLiteralLike(importOrExportDeclaration.moduleSpecifier) +- ? TypeScriptInternals_1.TypeScriptInternals.getModeForUsageLocation(importOrExportDeclaration.getSourceFile(), importOrExportDeclaration.moduleSpecifier) ++ ? TypeScriptInternals_1.TypeScriptInternals.getModeForUsageLocation(importOrExportDeclaration.getSourceFile(), importOrExportDeclaration.moduleSpecifier, this._program.getCompilerOptions()) + : undefined; + const resolvedModule = TypeScriptInternals_1.TypeScriptInternals.getResolvedModule(this._program, importOrExportDeclaration.getSourceFile(), moduleSpecifier, mode); + if (resolvedModule === undefined) { +diff --git a/lib/analyzer/TypeScriptInternals.js b/lib/analyzer/TypeScriptInternals.js +index c72cafa63c0c6669b8389fbed17ecb49179773c3..22775d6d7cfd7bde796d7b44c51f07c7be774c6e 100644 +--- a/lib/analyzer/TypeScriptInternals.js ++++ b/lib/analyzer/TypeScriptInternals.js +@@ -93,11 +93,11 @@ class TypeScriptInternals { + /** + * Gets the mode required for module resolution required with the addition of Node16/nodenext + */ +- static getModeForUsageLocation(file, usage) { ++ static getModeForUsageLocation(file, usage, compilerOptions) { + // Compiler internal: + // https://github.com/microsoft/TypeScript/blob/v4.7.2/src/compiler/program.ts#L568 + var _a, _b; +- return (_b = (_a = ts).getModeForUsageLocation) === null || _b === void 0 ? void 0 : _b.call(_a, file, usage); ++ return (_b = (_a = ts).getModeForUsageLocation) === null || _b === void 0 ? void 0 : _b.call(_a, file, usage, compilerOptions); + } + /** + * Returns ts.Symbol.parent if it exists. diff --git a/package.json b/package.json index 1d3c7c391ced..39c76ea8639d 100644 --- a/package.json +++ b/package.json @@ -147,7 +147,8 @@ "tmp": "0.2.1", "tsx": "^4.7.2", "typescript": "5.6.2", - "eslint-plugin-eslint-plugin@^5.5.0": "patch:eslint-plugin-eslint-plugin@npm%3A5.5.1#./.yarn/patches/eslint-plugin-eslint-plugin-npm-5.5.1-4206c2506d.patch" + "eslint-plugin-eslint-plugin@^5.5.0": "patch:eslint-plugin-eslint-plugin@npm%3A5.5.1#./.yarn/patches/eslint-plugin-eslint-plugin-npm-5.5.1-4206c2506d.patch", + "@microsoft/api-extractor@^7.47.8": "patch:@microsoft/api-extractor@npm%3A7.47.9#./.yarn/patches/@microsoft-api-extractor-npm-7.47.9-d69a694fc6.patch" }, "packageManager": "yarn@3.8.2", "nx": { diff --git a/yarn.lock b/yarn.lock index a34e953695e3..f66ca12e7e25 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3895,7 +3895,7 @@ __metadata: languageName: node linkType: hard -"@microsoft/api-extractor@npm:^7.47.8": +"@microsoft/api-extractor@npm:7.47.9": version: 7.47.9 resolution: "@microsoft/api-extractor@npm:7.47.9" dependencies: @@ -3918,6 +3918,29 @@ __metadata: languageName: node linkType: hard +"@microsoft/api-extractor@patch:@microsoft/api-extractor@npm%3A7.47.9#./.yarn/patches/@microsoft-api-extractor-npm-7.47.9-d69a694fc6.patch::locator=%40typescript-eslint%2Ftypescript-eslint%40workspace%3A.": + version: 7.47.9 + resolution: "@microsoft/api-extractor@patch:@microsoft/api-extractor@npm%3A7.47.9#./.yarn/patches/@microsoft-api-extractor-npm-7.47.9-d69a694fc6.patch::version=7.47.9&hash=abab87&locator=%40typescript-eslint%2Ftypescript-eslint%40workspace%3A." + dependencies: + "@microsoft/api-extractor-model": 7.29.8 + "@microsoft/tsdoc": ~0.15.0 + "@microsoft/tsdoc-config": ~0.17.0 + "@rushstack/node-core-library": 5.9.0 + "@rushstack/rig-package": 0.5.3 + "@rushstack/terminal": 0.14.2 + "@rushstack/ts-command-line": 4.22.8 + lodash: ~4.17.15 + minimatch: ~3.0.3 + resolve: ~1.22.1 + semver: ~7.5.4 + source-map: ~0.6.1 + typescript: 5.4.2 + bin: + api-extractor: bin/api-extractor + checksum: 591e477993159a3b619c9167f4a30a641cdae07ff4b04034a746072e0b0ba9257683d8888a32e31162c3b9c2dceb7598625bb3a872a2a006c91e6ced5c816c0e + languageName: node + linkType: hard + "@microsoft/tsdoc-config@npm:~0.17.0": version: 0.17.0 resolution: "@microsoft/tsdoc-config@npm:0.17.0" From f7b8a03e927fce1436daf773d2a18bb3eabaecc2 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Mon, 14 Oct 2024 16:47:53 -0400 Subject: [PATCH 04/14] Fix up ExportSpecifier/spec --- .../src/special/ExportSpecifier/spec.ts | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/packages/ast-spec/src/special/ExportSpecifier/spec.ts b/packages/ast-spec/src/special/ExportSpecifier/spec.ts index d5f801d82006..bf5ab73d82d3 100644 --- a/packages/ast-spec/src/special/ExportSpecifier/spec.ts +++ b/packages/ast-spec/src/special/ExportSpecifier/spec.ts @@ -4,21 +4,9 @@ import type { ExportKind } from '../../declaration/ExportAndImportKind'; import type { Identifier } from '../../expression/Identifier/spec'; import type { StringLiteral } from '../../expression/literal/StringLiteral/spec'; -export interface ExportSpecifierBase extends BaseNode { - exportKind: ExportKind; +export interface ExportSpecifier extends BaseNode { type: AST_NODE_TYPES.ExportSpecifier; -} - -export interface ExportIdentifierSpecifier extends ExportSpecifierBase { - exported: Identifier; + exported: StringLiteral | Identifier; + exportKind: ExportKind; local: Identifier; } - -export interface ExportStringLiteralSpecifier extends ExportSpecifierBase { - exported: StringLiteral; - local: StringLiteral; -} - -export type ExportSpecifier = - | ExportIdentifierSpecifier - | ExportStringLiteralSpecifier; From 325b22530a32381e6ed44ae79e6ac3c21c3d4e59 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Mon, 14 Oct 2024 16:49:43 -0400 Subject: [PATCH 05/14] No, Reference cannot have identifier as StringLiteral --- packages/ast-spec/src/special/ImportSpecifier/spec.ts | 2 +- packages/scope-manager/src/referencer/Reference.ts | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/packages/ast-spec/src/special/ImportSpecifier/spec.ts b/packages/ast-spec/src/special/ImportSpecifier/spec.ts index 4594c1262cbc..9e3606cac2fb 100644 --- a/packages/ast-spec/src/special/ImportSpecifier/spec.ts +++ b/packages/ast-spec/src/special/ImportSpecifier/spec.ts @@ -5,8 +5,8 @@ import type { Identifier } from '../../expression/Identifier/spec'; import type { StringLiteral } from '../../expression/literal/StringLiteral/spec'; export interface ImportSpecifier extends BaseNode { + type: AST_NODE_TYPES.ImportSpecifier; imported: Identifier | StringLiteral; importKind: ImportKind; local: Identifier; - type: AST_NODE_TYPES.ImportSpecifier; } diff --git a/packages/scope-manager/src/referencer/Reference.ts b/packages/scope-manager/src/referencer/Reference.ts index 416caa952ebe..af1570414e13 100644 --- a/packages/scope-manager/src/referencer/Reference.ts +++ b/packages/scope-manager/src/referencer/Reference.ts @@ -48,10 +48,7 @@ class Reference { * Identifier syntax node. * @public */ - public readonly identifier: - | TSESTree.Identifier - | TSESTree.JSXIdentifier - | TSESTree.StringLiteral; + public readonly identifier: TSESTree.Identifier | TSESTree.JSXIdentifier; /** * `true` if this writing reference is a variable initializer or a default value. @@ -79,10 +76,7 @@ class Reference { readonly #referenceType: ReferenceTypeFlag; constructor( - identifier: - | TSESTree.Identifier - | TSESTree.JSXIdentifier - | TSESTree.StringLiteral, + identifier: TSESTree.Identifier | TSESTree.JSXIdentifier, scope: Scope, flag: ReferenceFlag, writeExpr?: TSESTree.Node | null, From c511bf24ef7cef91681af98896bdb1a58d9595ff Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Mon, 14 Oct 2024 16:52:38 -0400 Subject: [PATCH 06/14] rebuild lib --- .../src/lib/decorators.legacy.ts | 3 +- packages/scope-manager/src/lib/decorators.ts | 19 +- .../src/lib/dom.asynciterable.ts | 1 - .../scope-manager/src/lib/dom.iterable.ts | 36 +- packages/scope-manager/src/lib/dom.ts | 2296 +++++++++-------- .../src/lib/es2015.collection.ts | 7 +- packages/scope-manager/src/lib/es2015.core.ts | 15 +- .../scope-manager/src/lib/es2015.generator.ts | 3 +- .../scope-manager/src/lib/es2015.iterable.ts | 69 +- .../scope-manager/src/lib/es2015.promise.ts | 1 - .../scope-manager/src/lib/es2015.proxy.ts | 3 +- .../scope-manager/src/lib/es2015.reflect.ts | 1 - .../scope-manager/src/lib/es2015.symbol.ts | 1 - .../src/lib/es2015.symbol.wellknown.ts | 45 +- packages/scope-manager/src/lib/es2015.ts | 7 +- .../src/lib/es2016.array.include.ts | 15 +- packages/scope-manager/src/lib/es2016.full.ts | 7 +- packages/scope-manager/src/lib/es2016.intl.ts | 1 - packages/scope-manager/src/lib/es2016.ts | 1 - packages/scope-manager/src/lib/es2017.date.ts | 1 - packages/scope-manager/src/lib/es2017.full.ts | 7 +- packages/scope-manager/src/lib/es2017.intl.ts | 1 - .../scope-manager/src/lib/es2017.object.ts | 1 - .../src/lib/es2017.sharedmemory.ts | 7 +- .../scope-manager/src/lib/es2017.string.ts | 1 - packages/scope-manager/src/lib/es2017.ts | 5 +- .../src/lib/es2017.typedarrays.ts | 13 +- .../src/lib/es2018.asyncgenerator.ts | 3 +- .../src/lib/es2018.asynciterable.ts | 10 +- packages/scope-manager/src/lib/es2018.full.ts | 9 +- packages/scope-manager/src/lib/es2018.intl.ts | 1 - .../scope-manager/src/lib/es2018.promise.ts | 1 - .../scope-manager/src/lib/es2018.regexp.ts | 5 +- packages/scope-manager/src/lib/es2018.ts | 5 +- .../scope-manager/src/lib/es2019.array.ts | 3 +- packages/scope-manager/src/lib/es2019.full.ts | 9 +- packages/scope-manager/src/lib/es2019.intl.ts | 1 - .../scope-manager/src/lib/es2019.object.ts | 3 +- .../scope-manager/src/lib/es2019.string.ts | 1 - .../scope-manager/src/lib/es2019.symbol.ts | 1 - packages/scope-manager/src/lib/es2019.ts | 3 +- .../scope-manager/src/lib/es2020.bigint.ts | 7 +- packages/scope-manager/src/lib/es2020.date.ts | 3 +- packages/scope-manager/src/lib/es2020.full.ts | 9 +- packages/scope-manager/src/lib/es2020.intl.ts | 3 +- .../scope-manager/src/lib/es2020.number.ts | 3 +- .../scope-manager/src/lib/es2020.promise.ts | 3 +- .../src/lib/es2020.sharedmemory.ts | 1 - .../scope-manager/src/lib/es2020.string.ts | 3 +- .../src/lib/es2020.symbol.wellknown.ts | 6 +- packages/scope-manager/src/lib/es2020.ts | 3 +- packages/scope-manager/src/lib/es2021.full.ts | 9 +- packages/scope-manager/src/lib/es2021.intl.ts | 1 - .../scope-manager/src/lib/es2021.promise.ts | 1 - .../scope-manager/src/lib/es2021.string.ts | 1 - packages/scope-manager/src/lib/es2021.ts | 3 +- .../scope-manager/src/lib/es2021.weakref.ts | 5 +- .../scope-manager/src/lib/es2022.array.ts | 19 +- .../scope-manager/src/lib/es2022.error.ts | 5 +- packages/scope-manager/src/lib/es2022.full.ts | 9 +- packages/scope-manager/src/lib/es2022.intl.ts | 1 - .../scope-manager/src/lib/es2022.object.ts | 1 - .../scope-manager/src/lib/es2022.regexp.ts | 5 +- .../src/lib/es2022.sharedmemory.ts | 1 - .../scope-manager/src/lib/es2022.string.ts | 1 - packages/scope-manager/src/lib/es2022.ts | 3 +- .../scope-manager/src/lib/es2023.array.ts | 19 +- .../src/lib/es2023.collection.ts | 1 - packages/scope-manager/src/lib/es2023.full.ts | 9 +- packages/scope-manager/src/lib/es2023.intl.ts | 1 - packages/scope-manager/src/lib/es2023.ts | 1 - packages/scope-manager/src/lib/es5.ts | 169 +- packages/scope-manager/src/lib/es6.ts | 7 +- packages/scope-manager/src/lib/es7.ts | 1 - .../scope-manager/src/lib/esnext.array.ts | 1 - .../src/lib/esnext.asynciterable.ts | 10 +- .../scope-manager/src/lib/esnext.bigint.ts | 7 +- .../src/lib/esnext.collection.ts | 3 +- .../src/lib/esnext.decorators.ts | 7 +- .../src/lib/esnext.disposable.ts | 21 +- packages/scope-manager/src/lib/esnext.full.ts | 9 +- packages/scope-manager/src/lib/esnext.intl.ts | 1 - .../scope-manager/src/lib/esnext.iterator.ts | 2 +- .../scope-manager/src/lib/esnext.object.ts | 1 - .../scope-manager/src/lib/esnext.promise.ts | 3 +- .../scope-manager/src/lib/esnext.regexp.ts | 1 - .../scope-manager/src/lib/esnext.string.ts | 1 - .../scope-manager/src/lib/esnext.symbol.ts | 1 - packages/scope-manager/src/lib/esnext.ts | 11 +- .../scope-manager/src/lib/esnext.weakref.ts | 5 +- packages/scope-manager/src/lib/index.ts | 178 +- packages/scope-manager/src/lib/lib.ts | 5 +- packages/scope-manager/src/lib/scripthost.ts | 15 +- .../src/lib/webworker.asynciterable.ts | 1 - .../src/lib/webworker.iterable.ts | 7 +- packages/scope-manager/src/lib/webworker.ts | 726 +++--- packages/types/src/lib.ts | 90 +- 97 files changed, 1989 insertions(+), 2053 deletions(-) diff --git a/packages/scope-manager/src/lib/decorators.legacy.ts b/packages/scope-manager/src/lib/decorators.legacy.ts index fee87258fae0..ee080ff2af79 100644 --- a/packages/scope-manager/src/lib/decorators.legacy.ts +++ b/packages/scope-manager/src/lib/decorators.legacy.ts @@ -4,12 +4,11 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const decorators_legacy = { ClassDecorator: TYPE, + PropertyDecorator: TYPE, MethodDecorator: TYPE, ParameterDecorator: TYPE, - PropertyDecorator: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/decorators.ts b/packages/scope-manager/src/lib/decorators.ts index 242f47160d3d..406ca4f65f6c 100644 --- a/packages/scope-manager/src/lib/decorators.ts +++ b/packages/scope-manager/src/lib/decorators.ts @@ -4,20 +4,19 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const decorators = { - ClassAccessorDecoratorContext: TYPE, - ClassAccessorDecoratorResult: TYPE, - ClassAccessorDecoratorTarget: TYPE, - ClassDecoratorContext: TYPE, - ClassFieldDecoratorContext: TYPE, - ClassGetterDecoratorContext: TYPE, ClassMemberDecoratorContext: TYPE, - ClassMethodDecoratorContext: TYPE, - ClassSetterDecoratorContext: TYPE, DecoratorContext: TYPE, - DecoratorMetadata: TYPE, DecoratorMetadataObject: TYPE, + DecoratorMetadata: TYPE, + ClassDecoratorContext: TYPE, + ClassMethodDecoratorContext: TYPE, + ClassGetterDecoratorContext: TYPE, + ClassSetterDecoratorContext: TYPE, + ClassAccessorDecoratorContext: TYPE, + ClassAccessorDecoratorTarget: TYPE, + ClassAccessorDecoratorResult: TYPE, + ClassFieldDecoratorContext: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/dom.asynciterable.ts b/packages/scope-manager/src/lib/dom.asynciterable.ts index 77e2ae9c326f..a094f6ff0b26 100644 --- a/packages/scope-manager/src/lib/dom.asynciterable.ts +++ b/packages/scope-manager/src/lib/dom.asynciterable.ts @@ -4,7 +4,6 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const dom_asynciterable = { diff --git a/packages/scope-manager/src/lib/dom.iterable.ts b/packages/scope-manager/src/lib/dom.iterable.ts index c8c7d40d7b71..aa220b550fae 100644 --- a/packages/scope-manager/src/lib/dom.iterable.ts +++ b/packages/scope-manager/src/lib/dom.iterable.ts @@ -4,7 +4,6 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const dom_iterable = { @@ -12,40 +11,43 @@ export const dom_iterable = { AudioParam: TYPE, AudioParamMap: TYPE, BaseAudioContext: TYPE, - Cache: TYPE, - CanvasPath: TYPE, - CanvasPathDrawingStyles: TYPE, CSSKeyframesRule: TYPE, CSSNumericArray: TYPE, CSSRuleList: TYPE, CSSStyleDeclaration: TYPE, CSSTransformValue: TYPE, CSSUnparsedValue: TYPE, + Cache: TYPE, + CanvasPath: TYPE, + CanvasPathDrawingStyles: TYPE, CustomStateSet: TYPE, - DataTransferItemList: TYPE, DOMRectList: TYPE, DOMStringList: TYPE, DOMTokenList: TYPE, + DataTransferItemList: TYPE, EventCounts: TYPE, FileList: TYPE, FontFaceSet: TYPE, + FormDataIterator: TYPE, FormData: TYPE, - Headers: TYPE, - Highlight: TYPE, - HighlightRegistry: TYPE, HTMLAllCollection: TYPE, HTMLCollectionBase: TYPE, HTMLCollectionOf: TYPE, HTMLFormElement: TYPE, HTMLSelectElement: TYPE, + HeadersIterator: TYPE, + Headers: TYPE, + Highlight: TYPE, + HighlightRegistry: TYPE, IDBDatabase: TYPE, IDBObjectStore: TYPE, - MediaKeyStatusMap: TYPE, - MediaList: TYPE, - MessageEvent: TYPE, MIDIInputMap: TYPE, MIDIOutput: TYPE, MIDIOutputMap: TYPE, + MediaKeyStatusMapIterator: TYPE, + MediaKeyStatusMap: TYPE, + MediaList: TYPE, + MessageEvent: TYPE, MimeTypeArray: TYPE, NamedNodeMap: TYPE, Navigator: TYPE, @@ -55,20 +57,22 @@ export const dom_iterable = { PluginArray: TYPE, RTCRtpTransceiver: TYPE, RTCStatsReport: TYPE, + SVGLengthList: TYPE, + SVGNumberList: TYPE, + SVGPointList: TYPE, + SVGStringList: TYPE, + SVGTransformList: TYPE, SourceBufferList: TYPE, SpeechRecognitionResult: TYPE, SpeechRecognitionResultList: TYPE, + StylePropertyMapReadOnlyIterator: TYPE, StylePropertyMapReadOnly: TYPE, StyleSheetList: TYPE, SubtleCrypto: TYPE, - SVGLengthList: TYPE, - SVGNumberList: TYPE, - SVGPointList: TYPE, - SVGStringList: TYPE, - SVGTransformList: TYPE, TextTrackCueList: TYPE, TextTrackList: TYPE, TouchList: TYPE, + URLSearchParamsIterator: TYPE, URLSearchParams: TYPE, WEBGL_draw_buffers: TYPE, WEBGL_multi_draw: TYPE, diff --git a/packages/scope-manager/src/lib/dom.ts b/packages/scope-manager/src/lib/dom.ts index d74830343eaf..fd8c41f4dee2 100644 --- a/packages/scope-manager/src/lib/dom.ts +++ b/packages/scope-manager/src/lib/dom.ts @@ -4,16 +4,9 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE, TYPE_VALUE } from './base-config'; export const dom = { - AbortController: TYPE_VALUE, - AbortSignal: TYPE_VALUE, - AbortSignalEventMap: TYPE, - AbstractRange: TYPE_VALUE, - AbstractWorker: TYPE, - AbstractWorkerEventMap: TYPE, AddEventListenerOptions: TYPE, AesCbcParams: TYPE, AesCtrParams: TYPE, @@ -22,1022 +15,233 @@ export const dom = { AesKeyAlgorithm: TYPE, AesKeyGenParams: TYPE, Algorithm: TYPE, - AlgorithmIdentifier: TYPE, - AlignSetting: TYPE, - AllowSharedBufferSource: TYPE, - AlphaOption: TYPE, - AnalyserNode: TYPE_VALUE, AnalyserOptions: TYPE, - ANGLE_instanced_arrays: TYPE, - Animatable: TYPE, - Animation: TYPE_VALUE, - AnimationEffect: TYPE_VALUE, - AnimationEvent: TYPE_VALUE, AnimationEventInit: TYPE, - AnimationEventMap: TYPE, - AnimationFrameProvider: TYPE, - AnimationPlaybackEvent: TYPE_VALUE, AnimationPlaybackEventInit: TYPE, - AnimationPlayState: TYPE, - AnimationReplaceState: TYPE, - AnimationTimeline: TYPE_VALUE, - AppendMode: TYPE, - ARIAMixin: TYPE, AssignedNodesOptions: TYPE, - AttestationConveyancePreference: TYPE, - Attr: TYPE_VALUE, - AudioBuffer: TYPE_VALUE, AudioBufferOptions: TYPE, - AudioBufferSourceNode: TYPE_VALUE, AudioBufferSourceOptions: TYPE, AudioConfiguration: TYPE, - AudioContext: TYPE_VALUE, - AudioContextLatencyCategory: TYPE, AudioContextOptions: TYPE, - AudioContextState: TYPE, - AudioDestinationNode: TYPE_VALUE, - AudioListener: TYPE_VALUE, - AudioNode: TYPE_VALUE, AudioNodeOptions: TYPE, - AudioParam: TYPE_VALUE, - AudioParamMap: TYPE_VALUE, - AudioProcessingEvent: TYPE_VALUE, AudioProcessingEventInit: TYPE, - AudioScheduledSourceNode: TYPE_VALUE, - AudioScheduledSourceNodeEventMap: TYPE, AudioTimestamp: TYPE, - AudioWorklet: TYPE_VALUE, - AudioWorkletNode: TYPE_VALUE, - AudioWorkletNodeEventMap: TYPE, AudioWorkletNodeOptions: TYPE, AuthenticationExtensionsClientInputs: TYPE, AuthenticationExtensionsClientOutputs: TYPE, - AuthenticatorAssertionResponse: TYPE_VALUE, - AuthenticatorAttachment: TYPE, - AuthenticatorAttestationResponse: TYPE_VALUE, - AuthenticatorResponse: TYPE_VALUE, AuthenticatorSelectionCriteria: TYPE, - AuthenticatorTransport: TYPE, - AutoFill: TYPE, - AutoFillAddressKind: TYPE, - AutoFillBase: TYPE, - AutoFillContactField: TYPE, - AutoFillContactKind: TYPE, - AutoFillCredentialField: TYPE, - AutoFillField: TYPE, - AutoFillNormalField: TYPE, - AutoFillSection: TYPE, - AutoKeyword: TYPE, - AutomationRate: TYPE, - AvcBitstreamFormat: TYPE, AvcEncoderConfig: TYPE, - BarProp: TYPE_VALUE, - BaseAudioContext: TYPE_VALUE, - BaseAudioContextEventMap: TYPE, - BeforeUnloadEvent: TYPE_VALUE, - BigInteger: TYPE, - BinaryData: TYPE, - BinaryType: TYPE, - BiquadFilterNode: TYPE_VALUE, BiquadFilterOptions: TYPE, - BiquadFilterType: TYPE, - Blob: TYPE_VALUE, - BlobCallback: TYPE, - BlobEvent: TYPE_VALUE, BlobEventInit: TYPE, - BlobPart: TYPE, BlobPropertyBag: TYPE, - Body: TYPE, - BodyInit: TYPE, - BroadcastChannel: TYPE_VALUE, - BroadcastChannelEventMap: TYPE, - BufferSource: TYPE, - ByteLengthQueuingStrategy: TYPE_VALUE, - Cache: TYPE_VALUE, + CSSMatrixComponentOptions: TYPE, + CSSNumericType: TYPE, + CSSStyleSheetInit: TYPE, CacheQueryOptions: TYPE, - CacheStorage: TYPE_VALUE, - CanPlayTypeResult: TYPE, - CanvasCaptureMediaStreamTrack: TYPE_VALUE, - CanvasCompositing: TYPE, - CanvasDirection: TYPE, - CanvasDrawImage: TYPE, - CanvasDrawPath: TYPE, - CanvasFillRule: TYPE, - CanvasFillStrokeStyles: TYPE, - CanvasFilters: TYPE, - CanvasFontKerning: TYPE, - CanvasFontStretch: TYPE, - CanvasFontVariantCaps: TYPE, - CanvasGradient: TYPE_VALUE, - CanvasImageData: TYPE, - CanvasImageSmoothing: TYPE, - CanvasImageSource: TYPE, - CanvasLineCap: TYPE, - CanvasLineJoin: TYPE, - CanvasPath: TYPE, - CanvasPathDrawingStyles: TYPE, - CanvasPattern: TYPE_VALUE, - CanvasRect: TYPE, - CanvasRenderingContext2D: TYPE_VALUE, CanvasRenderingContext2DSettings: TYPE, - CanvasShadowStyles: TYPE, - CanvasState: TYPE, - CanvasText: TYPE, - CanvasTextAlign: TYPE, - CanvasTextBaseline: TYPE, - CanvasTextDrawingStyles: TYPE, - CanvasTextRendering: TYPE, - CanvasTransform: TYPE, - CanvasUserInterface: TYPE, - CDATASection: TYPE_VALUE, - ChannelCountMode: TYPE, - ChannelInterpretation: TYPE, - ChannelMergerNode: TYPE_VALUE, ChannelMergerOptions: TYPE, - ChannelSplitterNode: TYPE_VALUE, ChannelSplitterOptions: TYPE, - CharacterData: TYPE_VALUE, CheckVisibilityOptions: TYPE, - ChildNode: TYPE, ClientQueryOptions: TYPE, - ClientRect: TYPE, - ClientTypes: TYPE, - Clipboard: TYPE_VALUE, - ClipboardEvent: TYPE_VALUE, ClipboardEventInit: TYPE, - ClipboardItem: TYPE_VALUE, - ClipboardItemData: TYPE, ClipboardItemOptions: TYPE, - ClipboardItems: TYPE, - CloseEvent: TYPE_VALUE, CloseEventInit: TYPE, - CodecState: TYPE, - ColorGamut: TYPE, - ColorSpaceConversion: TYPE, - Comment: TYPE_VALUE, - CompositeOperation: TYPE, - CompositeOperationOrAuto: TYPE, - CompositionEvent: TYPE_VALUE, CompositionEventInit: TYPE, - CompressionFormat: TYPE, - CompressionStream: TYPE_VALUE, ComputedEffectTiming: TYPE, ComputedKeyframe: TYPE, - Console: TYPE, - ConstantSourceNode: TYPE_VALUE, ConstantSourceOptions: TYPE, - ConstrainBoolean: TYPE, ConstrainBooleanParameters: TYPE, - ConstrainDOMString: TYPE, ConstrainDOMStringParameters: TYPE, - ConstrainDouble: TYPE, ConstrainDoubleRange: TYPE, - ConstrainULong: TYPE, ConstrainULongRange: TYPE, - ContentVisibilityAutoStateChangeEvent: TYPE_VALUE, ContentVisibilityAutoStateChangeEventInit: TYPE, - ConvolverNode: TYPE_VALUE, ConvolverOptions: TYPE, - COSEAlgorithmIdentifier: TYPE, - CountQueuingStrategy: TYPE_VALUE, - Credential: TYPE_VALUE, CredentialCreationOptions: TYPE, - CredentialMediationRequirement: TYPE, CredentialPropertiesOutput: TYPE, CredentialRequestOptions: TYPE, - CredentialsContainer: TYPE_VALUE, - Crypto: TYPE_VALUE, - CryptoKey: TYPE_VALUE, CryptoKeyPair: TYPE, - CSS: TYPE_VALUE, - CSSAnimation: TYPE_VALUE, - CSSConditionRule: TYPE_VALUE, - CSSContainerRule: TYPE_VALUE, - CSSCounterStyleRule: TYPE_VALUE, - CSSFontFaceRule: TYPE_VALUE, - CSSFontFeatureValuesRule: TYPE_VALUE, - CSSFontPaletteValuesRule: TYPE_VALUE, - CSSGroupingRule: TYPE_VALUE, - CSSImageValue: TYPE_VALUE, - CSSImportRule: TYPE_VALUE, - CSSKeyframeRule: TYPE_VALUE, - CSSKeyframesRule: TYPE_VALUE, - CSSKeywordish: TYPE, - CSSKeywordValue: TYPE_VALUE, - CSSLayerBlockRule: TYPE_VALUE, - CSSLayerStatementRule: TYPE_VALUE, - CSSMathClamp: TYPE_VALUE, - CSSMathInvert: TYPE_VALUE, - CSSMathMax: TYPE_VALUE, - CSSMathMin: TYPE_VALUE, - CSSMathNegate: TYPE_VALUE, - CSSMathOperator: TYPE, - CSSMathProduct: TYPE_VALUE, - CSSMathSum: TYPE_VALUE, - CSSMathValue: TYPE_VALUE, - CSSMatrixComponent: TYPE_VALUE, - CSSMatrixComponentOptions: TYPE, - CSSMediaRule: TYPE_VALUE, - CSSNamespaceRule: TYPE_VALUE, - CSSNumberish: TYPE, - CSSNumericArray: TYPE_VALUE, - CSSNumericBaseType: TYPE, - CSSNumericType: TYPE, - CSSNumericValue: TYPE_VALUE, - CSSPageRule: TYPE_VALUE, - CSSPerspective: TYPE_VALUE, - CSSPerspectiveValue: TYPE, - CSSPropertyRule: TYPE_VALUE, - CSSRotate: TYPE_VALUE, - CSSRule: TYPE_VALUE, - CSSRuleList: TYPE_VALUE, - CSSScale: TYPE_VALUE, - CSSScopeRule: TYPE_VALUE, - CSSSkew: TYPE_VALUE, - CSSSkewX: TYPE_VALUE, - CSSSkewY: TYPE_VALUE, - CSSStartingStyleRule: TYPE_VALUE, - CSSStyleDeclaration: TYPE_VALUE, - CSSStyleRule: TYPE_VALUE, - CSSStyleSheet: TYPE_VALUE, - CSSStyleSheetInit: TYPE, - CSSStyleValue: TYPE_VALUE, - CSSSupportsRule: TYPE_VALUE, - CSSTransformComponent: TYPE_VALUE, - CSSTransformValue: TYPE_VALUE, - CSSTransition: TYPE_VALUE, - CSSTranslate: TYPE_VALUE, - CSSUnitValue: TYPE_VALUE, - CSSUnparsedSegment: TYPE, - CSSUnparsedValue: TYPE_VALUE, - CSSVariableReferenceValue: TYPE_VALUE, - CustomElementConstructor: TYPE, - CustomElementRegistry: TYPE_VALUE, - CustomEvent: TYPE_VALUE, CustomEventInit: TYPE, - CustomStateSet: TYPE_VALUE, - DataTransfer: TYPE_VALUE, - DataTransferItem: TYPE_VALUE, - DataTransferItemList: TYPE_VALUE, - DecodeErrorCallback: TYPE, - DecodeSuccessCallback: TYPE, - DecompressionStream: TYPE_VALUE, - DelayNode: TYPE_VALUE, + DOMMatrix2DInit: TYPE, + DOMMatrixInit: TYPE, + DOMPointInit: TYPE, + DOMQuadInit: TYPE, + DOMRectInit: TYPE, DelayOptions: TYPE, - DeviceMotionEvent: TYPE_VALUE, - DeviceMotionEventAcceleration: TYPE, DeviceMotionEventAccelerationInit: TYPE, DeviceMotionEventInit: TYPE, - DeviceMotionEventRotationRate: TYPE, DeviceMotionEventRotationRateInit: TYPE, - DeviceOrientationEvent: TYPE_VALUE, DeviceOrientationEventInit: TYPE, - DirectionSetting: TYPE, - DisplayCaptureSurfaceType: TYPE, DisplayMediaStreamOptions: TYPE, - DistanceModelType: TYPE, - Document: TYPE_VALUE, - DocumentEventMap: TYPE, - DocumentFragment: TYPE_VALUE, - DocumentOrShadowRoot: TYPE, - DocumentReadyState: TYPE, - DocumentTimeline: TYPE_VALUE, DocumentTimelineOptions: TYPE, - DocumentType: TYPE_VALUE, - DocumentVisibilityState: TYPE, - DOMException: TYPE_VALUE, - DOMHighResTimeStamp: TYPE, - DOMImplementation: TYPE_VALUE, - DOMMatrix: TYPE_VALUE, - DOMMatrix2DInit: TYPE, - DOMMatrixInit: TYPE, - DOMMatrixReadOnly: TYPE_VALUE, - DOMParser: TYPE_VALUE, - DOMParserSupportedType: TYPE, - DOMPoint: TYPE_VALUE, - DOMPointInit: TYPE, - DOMPointReadOnly: TYPE_VALUE, - DOMQuad: TYPE_VALUE, - DOMQuadInit: TYPE, - DOMRect: TYPE_VALUE, - DOMRectInit: TYPE, - DOMRectList: TYPE_VALUE, - DOMRectReadOnly: TYPE_VALUE, - DOMStringList: TYPE_VALUE, - DOMStringMap: TYPE_VALUE, - DOMTokenList: TYPE_VALUE, DoubleRange: TYPE, - DragEvent: TYPE_VALUE, DragEventInit: TYPE, - DynamicsCompressorNode: TYPE_VALUE, DynamicsCompressorOptions: TYPE, - EcdhKeyDeriveParams: TYPE, - EcdsaParams: TYPE, EcKeyAlgorithm: TYPE, EcKeyGenParams: TYPE, EcKeyImportParams: TYPE, + EcdhKeyDeriveParams: TYPE, + EcdsaParams: TYPE, EffectTiming: TYPE, - Element: TYPE_VALUE, - ElementContentEditable: TYPE, ElementCreationOptions: TYPE, - ElementCSSInlineStyle: TYPE, ElementDefinitionOptions: TYPE, - ElementEventMap: TYPE, - ElementInternals: TYPE_VALUE, - ElementTagNameMap: TYPE, - EncodedVideoChunk: TYPE_VALUE, EncodedVideoChunkInit: TYPE, EncodedVideoChunkMetadata: TYPE, - EncodedVideoChunkOutputCallback: TYPE, - EncodedVideoChunkType: TYPE, - EndingType: TYPE, - EndOfStreamError: TYPE, - EpochTimeStamp: TYPE, - ErrorCallback: TYPE, - ErrorEvent: TYPE_VALUE, ErrorEventInit: TYPE, - Event: TYPE_VALUE, - EventCounts: TYPE_VALUE, EventInit: TYPE, - EventListener: TYPE, - EventListenerObject: TYPE, EventListenerOptions: TYPE, - EventListenerOrEventListenerObject: TYPE, EventModifierInit: TYPE, - EventSource: TYPE_VALUE, - EventSourceEventMap: TYPE, EventSourceInit: TYPE, - EventTarget: TYPE_VALUE, - EXT_blend_minmax: TYPE, - EXT_color_buffer_float: TYPE, - EXT_color_buffer_half_float: TYPE, - EXT_float_blend: TYPE, - EXT_frag_depth: TYPE, - EXT_shader_texture_lod: TYPE, - EXT_sRGB: TYPE, - EXT_texture_compression_bptc: TYPE, - EXT_texture_compression_rgtc: TYPE, - EXT_texture_filter_anisotropic: TYPE, - EXT_texture_norm16: TYPE, - External: TYPE_VALUE, - File: TYPE_VALUE, - FileCallback: TYPE, - FileList: TYPE_VALUE, FilePropertyBag: TYPE, - FileReader: TYPE_VALUE, - FileReaderEventMap: TYPE, - FileSystem: TYPE_VALUE, FileSystemCreateWritableOptions: TYPE, - FileSystemDirectoryEntry: TYPE_VALUE, - FileSystemDirectoryHandle: TYPE_VALUE, - FileSystemDirectoryReader: TYPE_VALUE, - FileSystemEntriesCallback: TYPE, - FileSystemEntry: TYPE_VALUE, - FileSystemEntryCallback: TYPE, - FileSystemFileEntry: TYPE_VALUE, - FileSystemFileHandle: TYPE_VALUE, FileSystemFlags: TYPE, FileSystemGetDirectoryOptions: TYPE, FileSystemGetFileOptions: TYPE, - FileSystemHandle: TYPE_VALUE, - FileSystemHandleKind: TYPE, FileSystemRemoveOptions: TYPE, - FileSystemWritableFileStream: TYPE_VALUE, - FileSystemWriteChunkType: TYPE, - FillMode: TYPE, - Float32List: TYPE, - FocusEvent: TYPE_VALUE, FocusEventInit: TYPE, FocusOptions: TYPE, - FontDisplay: TYPE, - FontFace: TYPE_VALUE, FontFaceDescriptors: TYPE, - FontFaceLoadStatus: TYPE, - FontFaceSet: TYPE_VALUE, - FontFaceSetEventMap: TYPE, - FontFaceSetLoadEvent: TYPE_VALUE, FontFaceSetLoadEventInit: TYPE, - FontFaceSetLoadStatus: TYPE, - FontFaceSource: TYPE, - FormData: TYPE_VALUE, - FormDataEntryValue: TYPE, - FormDataEvent: TYPE_VALUE, FormDataEventInit: TYPE, - FrameRequestCallback: TYPE, - FullscreenNavigationUI: TYPE, FullscreenOptions: TYPE, - FunctionStringCallback: TYPE, - GainNode: TYPE_VALUE, GainOptions: TYPE, - Gamepad: TYPE_VALUE, - GamepadButton: TYPE_VALUE, GamepadEffectParameters: TYPE, - GamepadEvent: TYPE_VALUE, GamepadEventInit: TYPE, - GamepadHapticActuator: TYPE_VALUE, - GamepadHapticEffectType: TYPE, - GamepadHapticsResult: TYPE, - GamepadMappingType: TYPE, - GenericTransformStream: TYPE, - Geolocation: TYPE_VALUE, - GeolocationCoordinates: TYPE_VALUE, - GeolocationPosition: TYPE_VALUE, - GeolocationPositionError: TYPE_VALUE, GetAnimationsOptions: TYPE, + GetHTMLOptions: TYPE, GetNotificationOptions: TYPE, GetRootNodeOptions: TYPE, - GLbitfield: TYPE, - GLboolean: TYPE, - GLclampf: TYPE, - GLenum: TYPE, - GLfloat: TYPE, - GLint: TYPE, - GLint64: TYPE, - GLintptr: TYPE, - GlobalCompositeOperation: TYPE, - GlobalEventHandlers: TYPE, - GlobalEventHandlersEventMap: TYPE, - GLsizei: TYPE, - GLsizeiptr: TYPE, - GLuint: TYPE, - GLuint64: TYPE, - HardwareAcceleration: TYPE, - HashAlgorithmIdentifier: TYPE, - HashChangeEvent: TYPE_VALUE, HashChangeEventInit: TYPE, - HdrMetadataType: TYPE, - Headers: TYPE_VALUE, - HeadersInit: TYPE, - Highlight: TYPE_VALUE, - HighlightRegistry: TYPE_VALUE, - HighlightType: TYPE, - History: TYPE_VALUE, HkdfParams: TYPE, HmacImportParams: TYPE, HmacKeyAlgorithm: TYPE, HmacKeyGenParams: TYPE, - HTMLAllCollection: TYPE_VALUE, - HTMLAnchorElement: TYPE_VALUE, - HTMLAreaElement: TYPE_VALUE, - HTMLAudioElement: TYPE_VALUE, - HTMLBaseElement: TYPE_VALUE, - HTMLBodyElement: TYPE_VALUE, - HTMLBodyElementEventMap: TYPE, - HTMLBRElement: TYPE_VALUE, - HTMLButtonElement: TYPE_VALUE, - HTMLCanvasElement: TYPE_VALUE, - HTMLCollection: TYPE_VALUE, - HTMLCollectionBase: TYPE, - HTMLCollectionOf: TYPE, - HTMLDataElement: TYPE_VALUE, - HTMLDataListElement: TYPE_VALUE, - HTMLDetailsElement: TYPE_VALUE, - HTMLDialogElement: TYPE_VALUE, - HTMLDirectoryElement: TYPE_VALUE, - HTMLDivElement: TYPE_VALUE, - HTMLDListElement: TYPE_VALUE, - HTMLDocument: TYPE_VALUE, - HTMLElement: TYPE_VALUE, - HTMLElementDeprecatedTagNameMap: TYPE, - HTMLElementEventMap: TYPE, - HTMLElementTagNameMap: TYPE, - HTMLEmbedElement: TYPE_VALUE, - HTMLFieldSetElement: TYPE_VALUE, - HTMLFontElement: TYPE_VALUE, - HTMLFormControlsCollection: TYPE_VALUE, - HTMLFormElement: TYPE_VALUE, - HTMLFrameElement: TYPE_VALUE, - HTMLFrameSetElement: TYPE_VALUE, - HTMLFrameSetElementEventMap: TYPE, - HTMLHeadElement: TYPE_VALUE, - HTMLHeadingElement: TYPE_VALUE, - HTMLHRElement: TYPE_VALUE, - HTMLHtmlElement: TYPE_VALUE, - HTMLHyperlinkElementUtils: TYPE, - HTMLIFrameElement: TYPE_VALUE, - HTMLImageElement: TYPE_VALUE, - HTMLInputElement: TYPE_VALUE, - HTMLLabelElement: TYPE_VALUE, - HTMLLegendElement: TYPE_VALUE, - HTMLLIElement: TYPE_VALUE, - HTMLLinkElement: TYPE_VALUE, - HTMLMapElement: TYPE_VALUE, - HTMLMarqueeElement: TYPE_VALUE, - HTMLMediaElement: TYPE_VALUE, - HTMLMediaElementEventMap: TYPE, - HTMLMenuElement: TYPE_VALUE, - HTMLMetaElement: TYPE_VALUE, - HTMLMeterElement: TYPE_VALUE, - HTMLModElement: TYPE_VALUE, - HTMLObjectElement: TYPE_VALUE, - HTMLOListElement: TYPE_VALUE, - HTMLOptGroupElement: TYPE_VALUE, - HTMLOptionElement: TYPE_VALUE, - HTMLOptionsCollection: TYPE_VALUE, - HTMLOrSVGElement: TYPE, - HTMLOrSVGImageElement: TYPE, - HTMLOrSVGScriptElement: TYPE, - HTMLOutputElement: TYPE_VALUE, - HTMLParagraphElement: TYPE_VALUE, - HTMLParamElement: TYPE_VALUE, - HTMLPictureElement: TYPE_VALUE, - HTMLPreElement: TYPE_VALUE, - HTMLProgressElement: TYPE_VALUE, - HTMLQuoteElement: TYPE_VALUE, - HTMLScriptElement: TYPE_VALUE, - HTMLSelectElement: TYPE_VALUE, - HTMLSlotElement: TYPE_VALUE, - HTMLSourceElement: TYPE_VALUE, - HTMLSpanElement: TYPE_VALUE, - HTMLStyleElement: TYPE_VALUE, - HTMLTableCaptionElement: TYPE_VALUE, - HTMLTableCellElement: TYPE_VALUE, - HTMLTableColElement: TYPE_VALUE, - HTMLTableDataCellElement: TYPE, - HTMLTableElement: TYPE_VALUE, - HTMLTableHeaderCellElement: TYPE, - HTMLTableRowElement: TYPE_VALUE, - HTMLTableSectionElement: TYPE_VALUE, - HTMLTemplateElement: TYPE_VALUE, - HTMLTextAreaElement: TYPE_VALUE, - HTMLTimeElement: TYPE_VALUE, - HTMLTitleElement: TYPE_VALUE, - HTMLTrackElement: TYPE_VALUE, - HTMLUListElement: TYPE_VALUE, - HTMLUnknownElement: TYPE_VALUE, - HTMLVideoElement: TYPE_VALUE, - HTMLVideoElementEventMap: TYPE, - IDBCursor: TYPE_VALUE, - IDBCursorDirection: TYPE, - IDBCursorWithValue: TYPE_VALUE, - IDBDatabase: TYPE_VALUE, - IDBDatabaseEventMap: TYPE, IDBDatabaseInfo: TYPE, - IDBFactory: TYPE_VALUE, - IDBIndex: TYPE_VALUE, IDBIndexParameters: TYPE, - IDBKeyRange: TYPE_VALUE, - IDBObjectStore: TYPE_VALUE, IDBObjectStoreParameters: TYPE, - IDBOpenDBRequest: TYPE_VALUE, - IDBOpenDBRequestEventMap: TYPE, - IDBRequest: TYPE_VALUE, - IDBRequestEventMap: TYPE, - IDBRequestReadyState: TYPE, - IDBTransaction: TYPE_VALUE, - IDBTransactionDurability: TYPE, - IDBTransactionEventMap: TYPE, - IDBTransactionMode: TYPE, IDBTransactionOptions: TYPE, - IDBValidKey: TYPE, - IDBVersionChangeEvent: TYPE_VALUE, IDBVersionChangeEventInit: TYPE, - IdleDeadline: TYPE_VALUE, - IdleRequestCallback: TYPE, - IdleRequestOptions: TYPE, - IIRFilterNode: TYPE_VALUE, IIRFilterOptions: TYPE, - ImageBitmap: TYPE_VALUE, + IdleRequestOptions: TYPE, ImageBitmapOptions: TYPE, - ImageBitmapRenderingContext: TYPE_VALUE, ImageBitmapRenderingContextSettings: TYPE, - ImageBitmapSource: TYPE, - ImageData: TYPE_VALUE, ImageDataSettings: TYPE, ImageEncodeOptions: TYPE, - ImageOrientation: TYPE, - ImageSmoothingQuality: TYPE, - ImportMeta: TYPE, - InnerHTML: TYPE, - InputDeviceInfo: TYPE_VALUE, - InputEvent: TYPE_VALUE, InputEventInit: TYPE, - InsertPosition: TYPE, - Int32List: TYPE, - IntersectionObserver: TYPE_VALUE, - IntersectionObserverCallback: TYPE, - IntersectionObserverEntry: TYPE_VALUE, IntersectionObserverEntryInit: TYPE, IntersectionObserverInit: TYPE, - IterationCompositeOperation: TYPE, JsonWebKey: TYPE, KeyAlgorithm: TYPE, - KeyboardEvent: TYPE_VALUE, KeyboardEventInit: TYPE, - KeyFormat: TYPE, Keyframe: TYPE, KeyframeAnimationOptions: TYPE, - KeyframeEffect: TYPE_VALUE, KeyframeEffectOptions: TYPE, - KeyType: TYPE, - KeyUsage: TYPE, - KHR_parallel_shader_compile: TYPE, - LargestContentfulPaint: TYPE_VALUE, - LatencyMode: TYPE, - LineAlignSetting: TYPE, - LineAndPositionSetting: TYPE, - LinkStyle: TYPE, - Location: TYPE_VALUE, - Lock: TYPE_VALUE, - LockGrantedCallback: TYPE, LockInfo: TYPE, - LockManager: TYPE_VALUE, LockManagerSnapshot: TYPE, - LockMode: TYPE, LockOptions: TYPE, - MathMLElement: TYPE_VALUE, - MathMLElementEventMap: TYPE, - MathMLElementTagNameMap: TYPE, - MediaCapabilities: TYPE_VALUE, + MIDIConnectionEventInit: TYPE, + MIDIMessageEventInit: TYPE, + MIDIOptions: TYPE, MediaCapabilitiesDecodingInfo: TYPE, MediaCapabilitiesEncodingInfo: TYPE, MediaCapabilitiesInfo: TYPE, MediaConfiguration: TYPE, MediaDecodingConfiguration: TYPE, - MediaDecodingType: TYPE, - MediaDeviceInfo: TYPE_VALUE, - MediaDeviceKind: TYPE, - MediaDevices: TYPE_VALUE, - MediaDevicesEventMap: TYPE, - MediaElementAudioSourceNode: TYPE_VALUE, MediaElementAudioSourceOptions: TYPE, MediaEncodingConfiguration: TYPE, - MediaEncodingType: TYPE, - MediaEncryptedEvent: TYPE_VALUE, MediaEncryptedEventInit: TYPE, - MediaError: TYPE_VALUE, MediaImage: TYPE, - MediaKeyMessageEvent: TYPE_VALUE, MediaKeyMessageEventInit: TYPE, - MediaKeyMessageType: TYPE, - MediaKeys: TYPE_VALUE, - MediaKeySession: TYPE_VALUE, - MediaKeySessionClosedReason: TYPE, - MediaKeySessionEventMap: TYPE, - MediaKeySessionType: TYPE, - MediaKeysRequirement: TYPE, - MediaKeyStatus: TYPE, - MediaKeyStatusMap: TYPE_VALUE, - MediaKeySystemAccess: TYPE_VALUE, MediaKeySystemConfiguration: TYPE, MediaKeySystemMediaCapability: TYPE, - MediaList: TYPE_VALUE, - MediaMetadata: TYPE_VALUE, + MediaKeysPolicy: TYPE, MediaMetadataInit: TYPE, MediaPositionState: TYPE, - MediaProvider: TYPE, - MediaQueryList: TYPE_VALUE, - MediaQueryListEvent: TYPE_VALUE, MediaQueryListEventInit: TYPE, - MediaQueryListEventMap: TYPE, - MediaRecorder: TYPE_VALUE, - MediaRecorderEventMap: TYPE, MediaRecorderOptions: TYPE, - MediaSession: TYPE_VALUE, - MediaSessionAction: TYPE, MediaSessionActionDetails: TYPE, - MediaSessionActionHandler: TYPE, - MediaSessionPlaybackState: TYPE, - MediaSource: TYPE_VALUE, - MediaSourceEventMap: TYPE, - MediaStream: TYPE_VALUE, - MediaStreamAudioDestinationNode: TYPE_VALUE, - MediaStreamAudioSourceNode: TYPE_VALUE, MediaStreamAudioSourceOptions: TYPE, MediaStreamConstraints: TYPE, - MediaStreamEventMap: TYPE, - MediaStreamTrack: TYPE_VALUE, - MediaStreamTrackEvent: TYPE_VALUE, MediaStreamTrackEventInit: TYPE, - MediaStreamTrackEventMap: TYPE, - MediaStreamTrackState: TYPE, MediaTrackCapabilities: TYPE, - MediaTrackConstraints: TYPE, MediaTrackConstraintSet: TYPE, + MediaTrackConstraints: TYPE, MediaTrackSettings: TYPE, MediaTrackSupportedConstraints: TYPE, - MessageChannel: TYPE_VALUE, - MessageEvent: TYPE_VALUE, MessageEventInit: TYPE, - MessageEventSource: TYPE, - MessagePort: TYPE_VALUE, - MessagePortEventMap: TYPE, - MIDIAccess: TYPE_VALUE, - MIDIAccessEventMap: TYPE, - MIDIConnectionEvent: TYPE_VALUE, - MIDIConnectionEventInit: TYPE, - MIDIInput: TYPE_VALUE, - MIDIInputEventMap: TYPE, - MIDIInputMap: TYPE_VALUE, - MIDIMessageEvent: TYPE_VALUE, - MIDIMessageEventInit: TYPE, - MIDIOptions: TYPE, - MIDIOutput: TYPE_VALUE, - MIDIOutputMap: TYPE_VALUE, - MIDIPort: TYPE_VALUE, - MIDIPortConnectionState: TYPE, - MIDIPortDeviceState: TYPE, - MIDIPortEventMap: TYPE, - MIDIPortType: TYPE, - MimeType: TYPE_VALUE, - MimeTypeArray: TYPE_VALUE, - MouseEvent: TYPE_VALUE, MouseEventInit: TYPE, MultiCacheQueryOptions: TYPE, - MutationCallback: TYPE, - MutationEvent: TYPE_VALUE, - MutationObserver: TYPE_VALUE, MutationObserverInit: TYPE, - MutationRecord: TYPE_VALUE, - MutationRecordType: TYPE, - NamedCurve: TYPE, - NamedNodeMap: TYPE_VALUE, - NavigationPreloadManager: TYPE_VALUE, NavigationPreloadState: TYPE, - NavigationTimingType: TYPE, - Navigator: TYPE_VALUE, - NavigatorAutomationInformation: TYPE, - NavigatorBadge: TYPE, - NavigatorConcurrentHardware: TYPE, - NavigatorContentUtils: TYPE, - NavigatorCookies: TYPE, - NavigatorID: TYPE, - NavigatorLanguage: TYPE, - NavigatorLocks: TYPE, - NavigatorOnLine: TYPE, - NavigatorPlugins: TYPE, - NavigatorStorage: TYPE, - Node: TYPE_VALUE, - NodeFilter: TYPE_VALUE, - NodeIterator: TYPE_VALUE, - NodeList: TYPE_VALUE, - NodeListOf: TYPE, - NonDocumentTypeChildNode: TYPE, - NonElementParentNode: TYPE, - Notification: TYPE_VALUE, - NotificationDirection: TYPE, - NotificationEventMap: TYPE, NotificationOptions: TYPE, - NotificationPermission: TYPE, - NotificationPermissionCallback: TYPE, - OES_draw_buffers_indexed: TYPE, - OES_element_index_uint: TYPE, - OES_fbo_render_mipmap: TYPE, - OES_standard_derivatives: TYPE, - OES_texture_float: TYPE, - OES_texture_float_linear: TYPE, - OES_texture_half_float: TYPE, - OES_texture_half_float_linear: TYPE, - OES_vertex_array_object: TYPE, - OfflineAudioCompletionEvent: TYPE_VALUE, OfflineAudioCompletionEventInit: TYPE, - OfflineAudioContext: TYPE_VALUE, - OfflineAudioContextEventMap: TYPE, OfflineAudioContextOptions: TYPE, - OffscreenCanvas: TYPE_VALUE, - OffscreenCanvasEventMap: TYPE, - OffscreenCanvasRenderingContext2D: TYPE_VALUE, - OffscreenRenderingContext: TYPE, - OffscreenRenderingContextId: TYPE, - OnBeforeUnloadEventHandler: TYPE, - OnBeforeUnloadEventHandlerNonNull: TYPE, - OnErrorEventHandler: TYPE, - OnErrorEventHandlerNonNull: TYPE, OptionalEffectTiming: TYPE, - OptionalPostfixToken: TYPE, - OptionalPrefixToken: TYPE, - OrientationType: TYPE, - OscillatorNode: TYPE_VALUE, OscillatorOptions: TYPE, - OscillatorType: TYPE, - OverconstrainedError: TYPE_VALUE, - OverSampleType: TYPE, - OVR_multiview2: TYPE, - PageTransitionEvent: TYPE_VALUE, PageTransitionEventInit: TYPE, - PannerNode: TYPE_VALUE, PannerOptions: TYPE, - PanningModelType: TYPE, - ParentNode: TYPE, - Path2D: TYPE_VALUE, - PaymentComplete: TYPE, PaymentCurrencyAmount: TYPE, PaymentDetailsBase: TYPE, PaymentDetailsInit: TYPE, PaymentDetailsModifier: TYPE, PaymentDetailsUpdate: TYPE, PaymentItem: TYPE, - PaymentMethodChangeEvent: TYPE_VALUE, PaymentMethodChangeEventInit: TYPE, PaymentMethodData: TYPE, - PaymentRequest: TYPE_VALUE, - PaymentRequestEventMap: TYPE, - PaymentRequestUpdateEvent: TYPE_VALUE, PaymentRequestUpdateEventInit: TYPE, - PaymentResponse: TYPE_VALUE, PaymentValidationErrors: TYPE, Pbkdf2Params: TYPE, - Performance: TYPE_VALUE, - PerformanceEntry: TYPE_VALUE, - PerformanceEntryList: TYPE, - PerformanceEventMap: TYPE, - PerformanceEventTiming: TYPE_VALUE, - PerformanceMark: TYPE_VALUE, PerformanceMarkOptions: TYPE, - PerformanceMeasure: TYPE_VALUE, PerformanceMeasureOptions: TYPE, - PerformanceNavigation: TYPE_VALUE, - PerformanceNavigationTiming: TYPE_VALUE, - PerformanceObserver: TYPE_VALUE, - PerformanceObserverCallback: TYPE, - PerformanceObserverEntryList: TYPE_VALUE, PerformanceObserverInit: TYPE, - PerformancePaintTiming: TYPE_VALUE, - PerformanceResourceTiming: TYPE_VALUE, - PerformanceServerTiming: TYPE_VALUE, - PerformanceTiming: TYPE_VALUE, - PeriodicWave: TYPE_VALUE, PeriodicWaveConstraints: TYPE, PeriodicWaveOptions: TYPE, PermissionDescriptor: TYPE, - PermissionName: TYPE, - Permissions: TYPE_VALUE, - PermissionState: TYPE, - PermissionStatus: TYPE_VALUE, - PermissionStatusEventMap: TYPE, - PictureInPictureEvent: TYPE_VALUE, PictureInPictureEventInit: TYPE, - PictureInPictureWindow: TYPE_VALUE, - PictureInPictureWindowEventMap: TYPE, PlaneLayout: TYPE, - PlaybackDirection: TYPE, - Plugin: TYPE_VALUE, - PluginArray: TYPE_VALUE, - PointerEvent: TYPE_VALUE, PointerEventInit: TYPE, - PopoverInvokerElement: TYPE, - PopStateEvent: TYPE_VALUE, + PointerLockOptions: TYPE, PopStateEventInit: TYPE, - PositionAlignSetting: TYPE, - PositionCallback: TYPE, - PositionErrorCallback: TYPE, PositionOptions: TYPE, - PredefinedColorSpace: TYPE, - PremultiplyAlpha: TYPE, - PresentationStyle: TYPE, - ProcessingInstruction: TYPE_VALUE, - ProgressEvent: TYPE_VALUE, ProgressEventInit: TYPE, - PromiseRejectionEvent: TYPE_VALUE, PromiseRejectionEventInit: TYPE, PropertyDefinition: TYPE, PropertyIndexedKeyframes: TYPE, - PublicKeyCredential: TYPE_VALUE, PublicKeyCredentialCreationOptions: TYPE, PublicKeyCredentialDescriptor: TYPE, PublicKeyCredentialEntity: TYPE, PublicKeyCredentialParameters: TYPE, PublicKeyCredentialRequestOptions: TYPE, PublicKeyCredentialRpEntity: TYPE, - PublicKeyCredentialType: TYPE, PublicKeyCredentialUserEntity: TYPE, - PushEncryptionKeyName: TYPE, - PushManager: TYPE_VALUE, - PushSubscription: TYPE_VALUE, PushSubscriptionJSON: TYPE, - PushSubscriptionOptions: TYPE_VALUE, PushSubscriptionOptionsInit: TYPE, QueuingStrategy: TYPE, QueuingStrategyInit: TYPE, - QueuingStrategySize: TYPE, - RadioNodeList: TYPE_VALUE, - Range: TYPE_VALUE, - ReadableByteStreamController: TYPE_VALUE, - ReadableStream: TYPE_VALUE, - ReadableStreamBYOBReader: TYPE_VALUE, - ReadableStreamBYOBRequest: TYPE_VALUE, - ReadableStreamController: TYPE, - ReadableStreamDefaultController: TYPE_VALUE, - ReadableStreamDefaultReader: TYPE_VALUE, - ReadableStreamGenericReader: TYPE, - ReadableStreamGetReaderOptions: TYPE, - ReadableStreamIteratorOptions: TYPE, - ReadableStreamReadDoneResult: TYPE, - ReadableStreamReader: TYPE, - ReadableStreamReaderMode: TYPE, - ReadableStreamReadResult: TYPE, - ReadableStreamReadValueResult: TYPE, - ReadableStreamType: TYPE, - ReadableWritablePair: TYPE, - ReadyState: TYPE, - RecordingState: TYPE, - ReferrerPolicy: TYPE, - RegistrationOptions: TYPE, - RemotePlayback: TYPE_VALUE, - RemotePlaybackAvailabilityCallback: TYPE, - RemotePlaybackEventMap: TYPE, - RemotePlaybackState: TYPE, - RenderingContext: TYPE, - Report: TYPE_VALUE, - ReportBody: TYPE_VALUE, - ReportingObserver: TYPE_VALUE, - ReportingObserverCallback: TYPE, - ReportingObserverOptions: TYPE, - ReportList: TYPE, - Request: TYPE_VALUE, - RequestCache: TYPE, - RequestCredentials: TYPE, - RequestDestination: TYPE, - RequestInfo: TYPE, - RequestInit: TYPE, - RequestMode: TYPE, - RequestPriority: TYPE, - RequestRedirect: TYPE, - ResidentKeyRequirement: TYPE, - ResizeObserver: TYPE_VALUE, - ResizeObserverBoxOptions: TYPE, - ResizeObserverCallback: TYPE, - ResizeObserverEntry: TYPE_VALUE, - ResizeObserverOptions: TYPE, - ResizeObserverSize: TYPE_VALUE, - ResizeQuality: TYPE, - Response: TYPE_VALUE, - ResponseInit: TYPE, - ResponseType: TYPE, - RsaHashedImportParams: TYPE, - RsaHashedKeyAlgorithm: TYPE, - RsaHashedKeyGenParams: TYPE, - RsaKeyAlgorithm: TYPE, - RsaKeyGenParams: TYPE, - RsaOaepParams: TYPE, - RsaOtherPrimesInfo: TYPE, - RsaPssParams: TYPE, RTCAnswerOptions: TYPE, - RTCBundlePolicy: TYPE, - RTCCertificate: TYPE_VALUE, RTCCertificateExpiration: TYPE, RTCConfiguration: TYPE, - RTCDataChannel: TYPE_VALUE, - RTCDataChannelEvent: TYPE_VALUE, + RTCDTMFToneChangeEventInit: TYPE, RTCDataChannelEventInit: TYPE, - RTCDataChannelEventMap: TYPE, RTCDataChannelInit: TYPE, - RTCDataChannelState: TYPE, - RTCDegradationPreference: TYPE, RTCDtlsFingerprint: TYPE, - RTCDtlsTransport: TYPE_VALUE, - RTCDtlsTransportEventMap: TYPE, - RTCDtlsTransportState: TYPE, - RTCDTMFSender: TYPE_VALUE, - RTCDTMFSenderEventMap: TYPE, - RTCDTMFToneChangeEvent: TYPE_VALUE, - RTCDTMFToneChangeEventInit: TYPE, - RTCEncodedAudioFrame: TYPE_VALUE, RTCEncodedAudioFrameMetadata: TYPE, - RTCEncodedVideoFrame: TYPE_VALUE, RTCEncodedVideoFrameMetadata: TYPE, - RTCEncodedVideoFrameType: TYPE, - RTCError: TYPE_VALUE, - RTCErrorDetailType: TYPE, - RTCErrorEvent: TYPE_VALUE, RTCErrorEventInit: TYPE, RTCErrorInit: TYPE, - RTCIceCandidate: TYPE_VALUE, RTCIceCandidateInit: TYPE, - RTCIceCandidatePair: TYPE, RTCIceCandidatePairStats: TYPE, - RTCIceCandidateType: TYPE, - RTCIceComponent: TYPE, - RTCIceConnectionState: TYPE, - RTCIceGathererState: TYPE, - RTCIceGatheringState: TYPE, - RTCIceProtocol: TYPE, RTCIceServer: TYPE, - RTCIceTcpCandidateType: TYPE, - RTCIceTransport: TYPE_VALUE, - RTCIceTransportEventMap: TYPE, - RTCIceTransportPolicy: TYPE, - RTCIceTransportState: TYPE, RTCInboundRtpStreamStats: TYPE, RTCLocalSessionDescriptionInit: TYPE, RTCOfferAnswerOptions: TYPE, RTCOfferOptions: TYPE, RTCOutboundRtpStreamStats: TYPE, - RTCPeerConnection: TYPE_VALUE, - RTCPeerConnectionErrorCallback: TYPE, - RTCPeerConnectionEventMap: TYPE, - RTCPeerConnectionIceErrorEvent: TYPE_VALUE, RTCPeerConnectionIceErrorEventInit: TYPE, - RTCPeerConnectionIceEvent: TYPE_VALUE, RTCPeerConnectionIceEventInit: TYPE, - RTCPeerConnectionState: TYPE, - RTCPriorityType: TYPE, RTCReceivedRtpStreamStats: TYPE, - RTCRtcpMuxPolicy: TYPE, RTCRtcpParameters: TYPE, RTCRtpCapabilities: TYPE, RTCRtpCodec: TYPE, - RTCRtpCodecCapability: TYPE, RTCRtpCodecParameters: TYPE, RTCRtpCodingParameters: TYPE, RTCRtpContributingSource: TYPE, @@ -1046,403 +250,1203 @@ export const dom = { RTCRtpHeaderExtensionParameters: TYPE, RTCRtpParameters: TYPE, RTCRtpReceiveParameters: TYPE, - RTCRtpReceiver: TYPE_VALUE, - RTCRtpScriptTransform: TYPE_VALUE, - RTCRtpSender: TYPE_VALUE, RTCRtpSendParameters: TYPE, RTCRtpStreamStats: TYPE, RTCRtpSynchronizationSource: TYPE, - RTCRtpTransceiver: TYPE_VALUE, - RTCRtpTransceiverDirection: TYPE, RTCRtpTransceiverInit: TYPE, - RTCRtpTransform: TYPE, - RTCSctpTransport: TYPE_VALUE, - RTCSctpTransportEventMap: TYPE, - RTCSctpTransportState: TYPE, - RTCSdpType: TYPE, RTCSentRtpStreamStats: TYPE, - RTCSessionDescription: TYPE_VALUE, - RTCSessionDescriptionCallback: TYPE, RTCSessionDescriptionInit: TYPE, RTCSetParameterOptions: TYPE, - RTCSignalingState: TYPE, RTCStats: TYPE, - RTCStatsIceCandidatePairState: TYPE, - RTCStatsReport: TYPE_VALUE, - RTCStatsType: TYPE, - RTCTrackEvent: TYPE_VALUE, RTCTrackEventInit: TYPE, RTCTransportStats: TYPE, - Screen: TYPE_VALUE, - ScreenOrientation: TYPE_VALUE, - ScreenOrientationEventMap: TYPE, - ScriptProcessorNode: TYPE_VALUE, - ScriptProcessorNodeEventMap: TYPE, - ScrollBehavior: TYPE, + ReadableStreamGetReaderOptions: TYPE, + ReadableStreamIteratorOptions: TYPE, + ReadableStreamReadDoneResult: TYPE, + ReadableStreamReadValueResult: TYPE, + ReadableWritablePair: TYPE, + RegistrationOptions: TYPE, + ReportingObserverOptions: TYPE, + RequestInit: TYPE, + ResizeObserverOptions: TYPE, + ResponseInit: TYPE, + RsaHashedImportParams: TYPE, + RsaHashedKeyAlgorithm: TYPE, + RsaHashedKeyGenParams: TYPE, + RsaKeyAlgorithm: TYPE, + RsaKeyGenParams: TYPE, + RsaOaepParams: TYPE, + RsaOtherPrimesInfo: TYPE, + RsaPssParams: TYPE, + SVGBoundingBoxOptions: TYPE, ScrollIntoViewOptions: TYPE, - ScrollLogicalPosition: TYPE, ScrollOptions: TYPE, - ScrollRestoration: TYPE, - ScrollSetting: TYPE, ScrollToOptions: TYPE, - SecurityPolicyViolationEvent: TYPE_VALUE, - SecurityPolicyViolationEventDisposition: TYPE, SecurityPolicyViolationEventInit: TYPE, - Selection: TYPE_VALUE, - SelectionMode: TYPE, - ServiceWorker: TYPE_VALUE, - ServiceWorkerContainer: TYPE_VALUE, - ServiceWorkerContainerEventMap: TYPE, - ServiceWorkerEventMap: TYPE, - ServiceWorkerRegistration: TYPE_VALUE, - ServiceWorkerRegistrationEventMap: TYPE, - ServiceWorkerState: TYPE, - ServiceWorkerUpdateViaCache: TYPE, - ShadowRoot: TYPE_VALUE, - ShadowRootEventMap: TYPE, ShadowRootInit: TYPE, - ShadowRootMode: TYPE, ShareData: TYPE, - SharedWorker: TYPE_VALUE, - SlotAssignmentMode: TYPE, - Slottable: TYPE, - SourceBuffer: TYPE_VALUE, - SourceBufferEventMap: TYPE, - SourceBufferList: TYPE_VALUE, - SourceBufferListEventMap: TYPE, - SpeechRecognitionAlternative: TYPE_VALUE, - SpeechRecognitionResult: TYPE_VALUE, - SpeechRecognitionResultList: TYPE_VALUE, - SpeechSynthesis: TYPE_VALUE, - SpeechSynthesisErrorCode: TYPE, - SpeechSynthesisErrorEvent: TYPE_VALUE, SpeechSynthesisErrorEventInit: TYPE, - SpeechSynthesisEvent: TYPE_VALUE, SpeechSynthesisEventInit: TYPE, - SpeechSynthesisEventMap: TYPE, - SpeechSynthesisUtterance: TYPE_VALUE, - SpeechSynthesisUtteranceEventMap: TYPE, - SpeechSynthesisVoice: TYPE_VALUE, - StaticRange: TYPE_VALUE, StaticRangeInit: TYPE, - StereoPannerNode: TYPE_VALUE, StereoPannerOptions: TYPE, - Storage: TYPE_VALUE, StorageEstimate: TYPE, - StorageEvent: TYPE_VALUE, StorageEventInit: TYPE, - StorageManager: TYPE_VALUE, StreamPipeOptions: TYPE, StructuredSerializeOptions: TYPE, - StyleMedia: TYPE, - StylePropertyMap: TYPE_VALUE, - StylePropertyMapReadOnly: TYPE_VALUE, - StyleSheet: TYPE_VALUE, - StyleSheetList: TYPE_VALUE, - SubmitEvent: TYPE_VALUE, SubmitEventInit: TYPE, - SubtleCrypto: TYPE_VALUE, - SVGAElement: TYPE_VALUE, - SVGAngle: TYPE_VALUE, - SVGAnimatedAngle: TYPE_VALUE, - SVGAnimatedBoolean: TYPE_VALUE, - SVGAnimatedEnumeration: TYPE_VALUE, - SVGAnimatedInteger: TYPE_VALUE, - SVGAnimatedLength: TYPE_VALUE, - SVGAnimatedLengthList: TYPE_VALUE, - SVGAnimatedNumber: TYPE_VALUE, - SVGAnimatedNumberList: TYPE_VALUE, - SVGAnimatedPoints: TYPE, - SVGAnimatedPreserveAspectRatio: TYPE_VALUE, - SVGAnimatedRect: TYPE_VALUE, - SVGAnimatedString: TYPE_VALUE, - SVGAnimatedTransformList: TYPE_VALUE, - SVGAnimateElement: TYPE_VALUE, - SVGAnimateMotionElement: TYPE_VALUE, - SVGAnimateTransformElement: TYPE_VALUE, - SVGAnimationElement: TYPE_VALUE, - SVGBoundingBoxOptions: TYPE, - SVGCircleElement: TYPE_VALUE, - SVGClipPathElement: TYPE_VALUE, - SVGComponentTransferFunctionElement: TYPE_VALUE, - SVGDefsElement: TYPE_VALUE, - SVGDescElement: TYPE_VALUE, - SVGElement: TYPE_VALUE, - SVGElementEventMap: TYPE, - SVGElementTagNameMap: TYPE, - SVGEllipseElement: TYPE_VALUE, - SVGFEBlendElement: TYPE_VALUE, - SVGFEColorMatrixElement: TYPE_VALUE, - SVGFEComponentTransferElement: TYPE_VALUE, - SVGFECompositeElement: TYPE_VALUE, - SVGFEConvolveMatrixElement: TYPE_VALUE, - SVGFEDiffuseLightingElement: TYPE_VALUE, - SVGFEDisplacementMapElement: TYPE_VALUE, - SVGFEDistantLightElement: TYPE_VALUE, - SVGFEDropShadowElement: TYPE_VALUE, - SVGFEFloodElement: TYPE_VALUE, - SVGFEFuncAElement: TYPE_VALUE, - SVGFEFuncBElement: TYPE_VALUE, - SVGFEFuncGElement: TYPE_VALUE, - SVGFEFuncRElement: TYPE_VALUE, - SVGFEGaussianBlurElement: TYPE_VALUE, - SVGFEImageElement: TYPE_VALUE, - SVGFEMergeElement: TYPE_VALUE, - SVGFEMergeNodeElement: TYPE_VALUE, - SVGFEMorphologyElement: TYPE_VALUE, - SVGFEOffsetElement: TYPE_VALUE, - SVGFEPointLightElement: TYPE_VALUE, - SVGFESpecularLightingElement: TYPE_VALUE, - SVGFESpotLightElement: TYPE_VALUE, - SVGFETileElement: TYPE_VALUE, - SVGFETurbulenceElement: TYPE_VALUE, - SVGFilterElement: TYPE_VALUE, - SVGFilterPrimitiveStandardAttributes: TYPE, - SVGFitToViewBox: TYPE, - SVGForeignObjectElement: TYPE_VALUE, - SVGGElement: TYPE_VALUE, - SVGGeometryElement: TYPE_VALUE, - SVGGradientElement: TYPE_VALUE, - SVGGraphicsElement: TYPE_VALUE, - SVGImageElement: TYPE_VALUE, - SVGLength: TYPE_VALUE, - SVGLengthList: TYPE_VALUE, - SVGLinearGradientElement: TYPE_VALUE, - SVGLineElement: TYPE_VALUE, - SVGMarkerElement: TYPE_VALUE, - SVGMaskElement: TYPE_VALUE, - SVGMatrix: TYPE_VALUE, - SVGMetadataElement: TYPE_VALUE, - SVGMPathElement: TYPE_VALUE, - SVGNumber: TYPE_VALUE, - SVGNumberList: TYPE_VALUE, - SVGPathElement: TYPE_VALUE, - SVGPatternElement: TYPE_VALUE, - SVGPoint: TYPE_VALUE, - SVGPointList: TYPE_VALUE, - SVGPolygonElement: TYPE_VALUE, - SVGPolylineElement: TYPE_VALUE, - SVGPreserveAspectRatio: TYPE_VALUE, - SVGRadialGradientElement: TYPE_VALUE, - SVGRect: TYPE_VALUE, - SVGRectElement: TYPE_VALUE, - SVGScriptElement: TYPE_VALUE, - SVGSetElement: TYPE_VALUE, - SVGStopElement: TYPE_VALUE, - SVGStringList: TYPE_VALUE, - SVGStyleElement: TYPE_VALUE, - SVGSVGElement: TYPE_VALUE, - SVGSVGElementEventMap: TYPE, - SVGSwitchElement: TYPE_VALUE, - SVGSymbolElement: TYPE_VALUE, - SVGTests: TYPE, - SVGTextContentElement: TYPE_VALUE, - SVGTextElement: TYPE_VALUE, - SVGTextPathElement: TYPE_VALUE, - SVGTextPositioningElement: TYPE_VALUE, - SVGTitleElement: TYPE_VALUE, - SVGTransform: TYPE_VALUE, - SVGTransformList: TYPE_VALUE, - SVGTSpanElement: TYPE_VALUE, - SVGUnitTypes: TYPE_VALUE, - SVGURIReference: TYPE, - SVGUseElement: TYPE_VALUE, - SVGViewElement: TYPE_VALUE, - TexImageSource: TYPE, - Text: TYPE_VALUE, TextDecodeOptions: TYPE, - TextDecoder: TYPE_VALUE, - TextDecoderCommon: TYPE, TextDecoderOptions: TYPE, - TextDecoderStream: TYPE_VALUE, - TextEncoder: TYPE_VALUE, - TextEncoderCommon: TYPE, TextEncoderEncodeIntoResult: TYPE, - TextEncoderStream: TYPE_VALUE, - TextMetrics: TYPE_VALUE, - TextTrack: TYPE_VALUE, - TextTrackCue: TYPE_VALUE, - TextTrackCueEventMap: TYPE, - TextTrackCueList: TYPE_VALUE, - TextTrackEventMap: TYPE, - TextTrackKind: TYPE, - TextTrackList: TYPE_VALUE, - TextTrackListEventMap: TYPE, - TextTrackMode: TYPE, - TimeRanges: TYPE_VALUE, - TimerHandler: TYPE, - ToggleEvent: TYPE_VALUE, ToggleEventInit: TYPE, - Touch: TYPE_VALUE, - TouchEvent: TYPE_VALUE, TouchEventInit: TYPE, TouchInit: TYPE, - TouchList: TYPE_VALUE, - TouchType: TYPE, - TrackEvent: TYPE_VALUE, TrackEventInit: TYPE, - Transferable: TYPE, - TransferFunction: TYPE, Transformer: TYPE, - TransformerFlushCallback: TYPE, - TransformerStartCallback: TYPE, - TransformerTransformCallback: TYPE, - TransformStream: TYPE_VALUE, - TransformStreamDefaultController: TYPE_VALUE, - TransitionEvent: TYPE_VALUE, TransitionEventInit: TYPE, - TreeWalker: TYPE_VALUE, - UIEvent: TYPE_VALUE, UIEventInit: TYPE, - Uint32List: TYPE, ULongRange: TYPE, UnderlyingByteSource: TYPE, UnderlyingDefaultSource: TYPE, UnderlyingSink: TYPE, - UnderlyingSinkAbortCallback: TYPE, - UnderlyingSinkCloseCallback: TYPE, - UnderlyingSinkStartCallback: TYPE, - UnderlyingSinkWriteCallback: TYPE, UnderlyingSource: TYPE, - UnderlyingSourceCancelCallback: TYPE, - UnderlyingSourcePullCallback: TYPE, - UnderlyingSourceStartCallback: TYPE, - URL: TYPE_VALUE, - URLSearchParams: TYPE_VALUE, - UserActivation: TYPE_VALUE, - UserVerificationRequirement: TYPE, - ValidityState: TYPE_VALUE, ValidityStateFlags: TYPE, - VibratePattern: TYPE, - VideoColorPrimaries: TYPE, - VideoColorSpace: TYPE_VALUE, VideoColorSpaceInit: TYPE, VideoConfiguration: TYPE, - VideoDecoder: TYPE_VALUE, VideoDecoderConfig: TYPE, - VideoDecoderEventMap: TYPE, VideoDecoderInit: TYPE, VideoDecoderSupport: TYPE, - VideoEncoder: TYPE_VALUE, - VideoEncoderBitrateMode: TYPE, VideoEncoderConfig: TYPE, VideoEncoderEncodeOptions: TYPE, - VideoEncoderEventMap: TYPE, VideoEncoderInit: TYPE, VideoEncoderSupport: TYPE, - VideoFacingModeEnum: TYPE, - VideoFrame: TYPE_VALUE, VideoFrameBufferInit: TYPE, VideoFrameCallbackMetadata: TYPE, VideoFrameCopyToOptions: TYPE, VideoFrameInit: TYPE, - VideoFrameOutputCallback: TYPE, - VideoFrameRequestCallback: TYPE, - VideoMatrixCoefficients: TYPE, - VideoPixelFormat: TYPE, - VideoPlaybackQuality: TYPE_VALUE, - VideoTransferCharacteristics: TYPE, - VisualViewport: TYPE_VALUE, - VisualViewportEventMap: TYPE, - VoidFunction: TYPE, - VTTCue: TYPE_VALUE, - VTTRegion: TYPE_VALUE, - WakeLock: TYPE_VALUE, - WakeLockSentinel: TYPE_VALUE, - WakeLockSentinelEventMap: TYPE, - WakeLockType: TYPE, - WaveShaperNode: TYPE_VALUE, WaveShaperOptions: TYPE, - WebAssembly: TYPE_VALUE, - WebCodecsErrorCallback: TYPE, - WEBGL_color_buffer_float: TYPE, - WEBGL_compressed_texture_astc: TYPE, - WEBGL_compressed_texture_etc: TYPE, - WEBGL_compressed_texture_etc1: TYPE, - WEBGL_compressed_texture_pvrtc: TYPE, - WEBGL_compressed_texture_s3tc: TYPE, - WEBGL_compressed_texture_s3tc_srgb: TYPE, - WEBGL_debug_renderer_info: TYPE, - WEBGL_debug_shaders: TYPE, - WEBGL_depth_texture: TYPE, - WEBGL_draw_buffers: TYPE, - WEBGL_lose_context: TYPE, - WEBGL_multi_draw: TYPE, - WebGL2RenderingContext: TYPE_VALUE, - WebGL2RenderingContextBase: TYPE, - WebGL2RenderingContextOverloads: TYPE, - WebGLActiveInfo: TYPE_VALUE, - WebGLBuffer: TYPE_VALUE, WebGLContextAttributes: TYPE, - WebGLContextEvent: TYPE_VALUE, WebGLContextEventInit: TYPE, - WebGLFramebuffer: TYPE_VALUE, - WebGLPowerPreference: TYPE, - WebGLProgram: TYPE_VALUE, - WebGLQuery: TYPE_VALUE, - WebGLRenderbuffer: TYPE_VALUE, - WebGLRenderingContext: TYPE_VALUE, - WebGLRenderingContextBase: TYPE, - WebGLRenderingContextOverloads: TYPE, - WebGLSampler: TYPE_VALUE, - WebGLShader: TYPE_VALUE, - WebGLShaderPrecisionFormat: TYPE_VALUE, - WebGLSync: TYPE_VALUE, - WebGLTexture: TYPE_VALUE, - WebGLTransformFeedback: TYPE_VALUE, - WebGLUniformLocation: TYPE_VALUE, - WebGLVertexArrayObject: TYPE_VALUE, - WebGLVertexArrayObjectOES: TYPE, - WebKitCSSMatrix: TYPE_VALUE, - webkitURL: TYPE_VALUE, - WebSocket: TYPE_VALUE, - WebSocketEventMap: TYPE, - WebTransport: TYPE_VALUE, - WebTransportBidirectionalStream: TYPE_VALUE, WebTransportCloseInfo: TYPE, - WebTransportCongestionControl: TYPE, - WebTransportDatagramDuplexStream: TYPE_VALUE, - WebTransportError: TYPE_VALUE, WebTransportErrorOptions: TYPE, - WebTransportErrorSource: TYPE, WebTransportHash: TYPE, WebTransportOptions: TYPE, WebTransportSendStreamOptions: TYPE, - WheelEvent: TYPE_VALUE, WheelEventInit: TYPE, - Window: TYPE_VALUE, - WindowEventHandlers: TYPE, - WindowEventHandlersEventMap: TYPE, - WindowEventMap: TYPE, - WindowLocalStorage: TYPE, - WindowOrWorkerGlobalScope: TYPE, WindowPostMessageOptions: TYPE, - WindowProxy: TYPE, - WindowSessionStorage: TYPE, - Worker: TYPE_VALUE, - WorkerEventMap: TYPE, WorkerOptions: TYPE, - WorkerType: TYPE, - Worklet: TYPE_VALUE, WorkletOptions: TYPE, - WritableStream: TYPE_VALUE, - WritableStreamDefaultController: TYPE_VALUE, - WritableStreamDefaultWriter: TYPE_VALUE, - WriteCommandType: TYPE, WriteParams: TYPE, - XMLDocument: TYPE_VALUE, - XMLHttpRequest: TYPE_VALUE, - XMLHttpRequestBodyInit: TYPE, - XMLHttpRequestEventMap: TYPE, - XMLHttpRequestEventTarget: TYPE_VALUE, - XMLHttpRequestEventTargetEventMap: TYPE, - XMLHttpRequestResponseType: TYPE, - XMLHttpRequestUpload: TYPE_VALUE, - XMLSerializer: TYPE_VALUE, - XPathEvaluator: TYPE_VALUE, - XPathEvaluatorBase: TYPE, - XPathExpression: TYPE_VALUE, + NodeFilter: TYPE_VALUE, XPathNSResolver: TYPE, - XPathResult: TYPE_VALUE, - XSLTProcessor: TYPE_VALUE, + ANGLE_instanced_arrays: TYPE, + ARIAMixin: TYPE, + AbortController: TYPE_VALUE, + AbortSignalEventMap: TYPE, + AbortSignal: TYPE_VALUE, + AbstractRange: TYPE_VALUE, + AbstractWorkerEventMap: TYPE, + AbstractWorker: TYPE, + AnalyserNode: TYPE_VALUE, + Animatable: TYPE, + AnimationEventMap: TYPE, + Animation: TYPE_VALUE, + AnimationEffect: TYPE_VALUE, + AnimationEvent: TYPE_VALUE, + AnimationFrameProvider: TYPE, + AnimationPlaybackEvent: TYPE_VALUE, + AnimationTimeline: TYPE_VALUE, + Attr: TYPE_VALUE, + AudioBuffer: TYPE_VALUE, + AudioBufferSourceNode: TYPE_VALUE, + AudioContext: TYPE_VALUE, + AudioDestinationNode: TYPE_VALUE, + AudioListener: TYPE_VALUE, + AudioNode: TYPE_VALUE, + AudioParam: TYPE_VALUE, + AudioParamMap: TYPE_VALUE, + AudioProcessingEvent: TYPE_VALUE, + AudioScheduledSourceNodeEventMap: TYPE, + AudioScheduledSourceNode: TYPE_VALUE, + AudioWorklet: TYPE_VALUE, + AudioWorkletNodeEventMap: TYPE, + AudioWorkletNode: TYPE_VALUE, + AuthenticatorAssertionResponse: TYPE_VALUE, + AuthenticatorAttestationResponse: TYPE_VALUE, + AuthenticatorResponse: TYPE_VALUE, + BarProp: TYPE_VALUE, + BaseAudioContextEventMap: TYPE, + BaseAudioContext: TYPE_VALUE, + BeforeUnloadEvent: TYPE_VALUE, + BiquadFilterNode: TYPE_VALUE, + Blob: TYPE_VALUE, + BlobEvent: TYPE_VALUE, + Body: TYPE, + BroadcastChannelEventMap: TYPE, + BroadcastChannel: TYPE_VALUE, + ByteLengthQueuingStrategy: TYPE_VALUE, + CDATASection: TYPE_VALUE, + CSSAnimation: TYPE_VALUE, + CSSConditionRule: TYPE_VALUE, + CSSContainerRule: TYPE_VALUE, + CSSCounterStyleRule: TYPE_VALUE, + CSSFontFaceRule: TYPE_VALUE, + CSSFontFeatureValuesRule: TYPE_VALUE, + CSSFontPaletteValuesRule: TYPE_VALUE, + CSSGroupingRule: TYPE_VALUE, + CSSImageValue: TYPE_VALUE, + CSSImportRule: TYPE_VALUE, + CSSKeyframeRule: TYPE_VALUE, + CSSKeyframesRule: TYPE_VALUE, + CSSKeywordValue: TYPE_VALUE, + CSSLayerBlockRule: TYPE_VALUE, + CSSLayerStatementRule: TYPE_VALUE, + CSSMathClamp: TYPE_VALUE, + CSSMathInvert: TYPE_VALUE, + CSSMathMax: TYPE_VALUE, + CSSMathMin: TYPE_VALUE, + CSSMathNegate: TYPE_VALUE, + CSSMathProduct: TYPE_VALUE, + CSSMathSum: TYPE_VALUE, + CSSMathValue: TYPE_VALUE, + CSSMatrixComponent: TYPE_VALUE, + CSSMediaRule: TYPE_VALUE, + CSSNamespaceRule: TYPE_VALUE, + CSSNumericArray: TYPE_VALUE, + CSSNumericValue: TYPE_VALUE, + CSSPageRule: TYPE_VALUE, + CSSPerspective: TYPE_VALUE, + CSSPropertyRule: TYPE_VALUE, + CSSRotate: TYPE_VALUE, + CSSRule: TYPE_VALUE, + CSSRuleList: TYPE_VALUE, + CSSScale: TYPE_VALUE, + CSSScopeRule: TYPE_VALUE, + CSSSkew: TYPE_VALUE, + CSSSkewX: TYPE_VALUE, + CSSSkewY: TYPE_VALUE, + CSSStartingStyleRule: TYPE_VALUE, + CSSStyleDeclaration: TYPE_VALUE, + CSSStyleRule: TYPE_VALUE, + CSSStyleSheet: TYPE_VALUE, + CSSStyleValue: TYPE_VALUE, + CSSSupportsRule: TYPE_VALUE, + CSSTransformComponent: TYPE_VALUE, + CSSTransformValue: TYPE_VALUE, + CSSTransition: TYPE_VALUE, + CSSTranslate: TYPE_VALUE, + CSSUnitValue: TYPE_VALUE, + CSSUnparsedValue: TYPE_VALUE, + CSSVariableReferenceValue: TYPE_VALUE, + Cache: TYPE_VALUE, + CacheStorage: TYPE_VALUE, + CanvasCaptureMediaStreamTrack: TYPE_VALUE, + CanvasCompositing: TYPE, + CanvasDrawImage: TYPE, + CanvasDrawPath: TYPE, + CanvasFillStrokeStyles: TYPE, + CanvasFilters: TYPE, + CanvasGradient: TYPE_VALUE, + CanvasImageData: TYPE, + CanvasImageSmoothing: TYPE, + CanvasPath: TYPE, + CanvasPathDrawingStyles: TYPE, + CanvasPattern: TYPE_VALUE, + CanvasRect: TYPE, + CanvasRenderingContext2D: TYPE_VALUE, + CanvasShadowStyles: TYPE, + CanvasState: TYPE, + CanvasText: TYPE, + CanvasTextDrawingStyles: TYPE, + CanvasTransform: TYPE, + CanvasUserInterface: TYPE, + ChannelMergerNode: TYPE_VALUE, + ChannelSplitterNode: TYPE_VALUE, + CharacterData: TYPE_VALUE, + ChildNode: TYPE, + ClientRect: TYPE, + Clipboard: TYPE_VALUE, + ClipboardEvent: TYPE_VALUE, + ClipboardItem: TYPE_VALUE, + CloseEvent: TYPE_VALUE, + Comment: TYPE_VALUE, + CompositionEvent: TYPE_VALUE, + CompressionStream: TYPE_VALUE, + ConstantSourceNode: TYPE_VALUE, + ContentVisibilityAutoStateChangeEvent: TYPE_VALUE, + ConvolverNode: TYPE_VALUE, + CountQueuingStrategy: TYPE_VALUE, + Credential: TYPE_VALUE, + CredentialsContainer: TYPE_VALUE, + Crypto: TYPE_VALUE, + CryptoKey: TYPE_VALUE, + CustomElementRegistry: TYPE_VALUE, + CustomEvent: TYPE_VALUE, + CustomStateSet: TYPE_VALUE, + DOMException: TYPE_VALUE, + DOMImplementation: TYPE_VALUE, + DOMMatrix: TYPE_VALUE, + SVGMatrix: TYPE_VALUE, + WebKitCSSMatrix: TYPE_VALUE, + DOMMatrixReadOnly: TYPE_VALUE, + DOMParser: TYPE_VALUE, + DOMPoint: TYPE_VALUE, + SVGPoint: TYPE_VALUE, + DOMPointReadOnly: TYPE_VALUE, + DOMQuad: TYPE_VALUE, + DOMRect: TYPE_VALUE, + SVGRect: TYPE_VALUE, + DOMRectList: TYPE_VALUE, + DOMRectReadOnly: TYPE_VALUE, + DOMStringList: TYPE_VALUE, + DOMStringMap: TYPE_VALUE, + DOMTokenList: TYPE_VALUE, + DataTransfer: TYPE_VALUE, + DataTransferItem: TYPE_VALUE, + DataTransferItemList: TYPE_VALUE, + DecompressionStream: TYPE_VALUE, + DelayNode: TYPE_VALUE, + DeviceMotionEvent: TYPE_VALUE, + DeviceMotionEventAcceleration: TYPE, + DeviceMotionEventRotationRate: TYPE, + DeviceOrientationEvent: TYPE_VALUE, + DocumentEventMap: TYPE, + Document: TYPE_VALUE, + DocumentFragment: TYPE_VALUE, + DocumentOrShadowRoot: TYPE, + DocumentTimeline: TYPE_VALUE, + DocumentType: TYPE_VALUE, + DragEvent: TYPE_VALUE, + DynamicsCompressorNode: TYPE_VALUE, + EXT_blend_minmax: TYPE, + EXT_color_buffer_float: TYPE, + EXT_color_buffer_half_float: TYPE, + EXT_float_blend: TYPE, + EXT_frag_depth: TYPE, + EXT_sRGB: TYPE, + EXT_shader_texture_lod: TYPE, + EXT_texture_compression_bptc: TYPE, + EXT_texture_compression_rgtc: TYPE, + EXT_texture_filter_anisotropic: TYPE, + EXT_texture_norm16: TYPE, + ElementEventMap: TYPE, + Element: TYPE_VALUE, + ElementCSSInlineStyle: TYPE, + ElementContentEditable: TYPE, + ElementInternals: TYPE_VALUE, + EncodedVideoChunk: TYPE_VALUE, + ErrorEvent: TYPE_VALUE, + Event: TYPE_VALUE, + EventCounts: TYPE_VALUE, + EventListener: TYPE, + EventListenerObject: TYPE, + EventSourceEventMap: TYPE, + EventSource: TYPE_VALUE, + EventTarget: TYPE_VALUE, + External: TYPE_VALUE, + File: TYPE_VALUE, + FileList: TYPE_VALUE, + FileReaderEventMap: TYPE, + FileReader: TYPE_VALUE, + FileSystem: TYPE_VALUE, + FileSystemDirectoryEntry: TYPE_VALUE, + FileSystemDirectoryHandle: TYPE_VALUE, + FileSystemDirectoryReader: TYPE_VALUE, + FileSystemEntry: TYPE_VALUE, + FileSystemFileEntry: TYPE_VALUE, + FileSystemFileHandle: TYPE_VALUE, + FileSystemHandle: TYPE_VALUE, + FileSystemWritableFileStream: TYPE_VALUE, + FocusEvent: TYPE_VALUE, + FontFace: TYPE_VALUE, + FontFaceSetEventMap: TYPE, + FontFaceSet: TYPE_VALUE, + FontFaceSetLoadEvent: TYPE_VALUE, + FontFaceSource: TYPE, + FormData: TYPE_VALUE, + FormDataEvent: TYPE_VALUE, + GainNode: TYPE_VALUE, + Gamepad: TYPE_VALUE, + GamepadButton: TYPE_VALUE, + GamepadEvent: TYPE_VALUE, + GamepadHapticActuator: TYPE_VALUE, + GenericTransformStream: TYPE, + Geolocation: TYPE_VALUE, + GeolocationCoordinates: TYPE_VALUE, + GeolocationPosition: TYPE_VALUE, + GeolocationPositionError: TYPE_VALUE, + GlobalEventHandlersEventMap: TYPE, + GlobalEventHandlers: TYPE, + HTMLAllCollection: TYPE_VALUE, + HTMLAnchorElement: TYPE_VALUE, + HTMLAreaElement: TYPE_VALUE, + HTMLAudioElement: TYPE_VALUE, + HTMLBRElement: TYPE_VALUE, + HTMLBaseElement: TYPE_VALUE, + HTMLBodyElementEventMap: TYPE, + HTMLBodyElement: TYPE_VALUE, + HTMLButtonElement: TYPE_VALUE, + HTMLCanvasElement: TYPE_VALUE, + HTMLCollectionBase: TYPE, + HTMLCollection: TYPE_VALUE, + HTMLCollectionOf: TYPE, + HTMLDListElement: TYPE_VALUE, + HTMLDataElement: TYPE_VALUE, + HTMLDataListElement: TYPE_VALUE, + HTMLDetailsElement: TYPE_VALUE, + HTMLDialogElement: TYPE_VALUE, + HTMLDirectoryElement: TYPE_VALUE, + HTMLDivElement: TYPE_VALUE, + HTMLDocument: TYPE_VALUE, + HTMLElementEventMap: TYPE, + HTMLElement: TYPE_VALUE, + HTMLEmbedElement: TYPE_VALUE, + HTMLFieldSetElement: TYPE_VALUE, + HTMLFontElement: TYPE_VALUE, + HTMLFormControlsCollection: TYPE_VALUE, + HTMLFormElement: TYPE_VALUE, + HTMLFrameElement: TYPE_VALUE, + HTMLFrameSetElementEventMap: TYPE, + HTMLFrameSetElement: TYPE_VALUE, + HTMLHRElement: TYPE_VALUE, + HTMLHeadElement: TYPE_VALUE, + HTMLHeadingElement: TYPE_VALUE, + HTMLHtmlElement: TYPE_VALUE, + HTMLHyperlinkElementUtils: TYPE, + HTMLIFrameElement: TYPE_VALUE, + HTMLImageElement: TYPE_VALUE, + HTMLInputElement: TYPE_VALUE, + HTMLLIElement: TYPE_VALUE, + HTMLLabelElement: TYPE_VALUE, + HTMLLegendElement: TYPE_VALUE, + HTMLLinkElement: TYPE_VALUE, + HTMLMapElement: TYPE_VALUE, + HTMLMarqueeElement: TYPE_VALUE, + HTMLMediaElementEventMap: TYPE, + HTMLMediaElement: TYPE_VALUE, + HTMLMenuElement: TYPE_VALUE, + HTMLMetaElement: TYPE_VALUE, + HTMLMeterElement: TYPE_VALUE, + HTMLModElement: TYPE_VALUE, + HTMLOListElement: TYPE_VALUE, + HTMLObjectElement: TYPE_VALUE, + HTMLOptGroupElement: TYPE_VALUE, + HTMLOptionElement: TYPE_VALUE, + HTMLOptionsCollection: TYPE_VALUE, + HTMLOrSVGElement: TYPE, + HTMLOutputElement: TYPE_VALUE, + HTMLParagraphElement: TYPE_VALUE, + HTMLParamElement: TYPE_VALUE, + HTMLPictureElement: TYPE_VALUE, + HTMLPreElement: TYPE_VALUE, + HTMLProgressElement: TYPE_VALUE, + HTMLQuoteElement: TYPE_VALUE, + HTMLScriptElement: TYPE_VALUE, + HTMLSelectElement: TYPE_VALUE, + HTMLSlotElement: TYPE_VALUE, + HTMLSourceElement: TYPE_VALUE, + HTMLSpanElement: TYPE_VALUE, + HTMLStyleElement: TYPE_VALUE, + HTMLTableCaptionElement: TYPE_VALUE, + HTMLTableCellElement: TYPE_VALUE, + HTMLTableColElement: TYPE_VALUE, + HTMLTableDataCellElement: TYPE, + HTMLTableElement: TYPE_VALUE, + HTMLTableHeaderCellElement: TYPE, + HTMLTableRowElement: TYPE_VALUE, + HTMLTableSectionElement: TYPE_VALUE, + HTMLTemplateElement: TYPE_VALUE, + HTMLTextAreaElement: TYPE_VALUE, + HTMLTimeElement: TYPE_VALUE, + HTMLTitleElement: TYPE_VALUE, + HTMLTrackElement: TYPE_VALUE, + HTMLUListElement: TYPE_VALUE, + HTMLUnknownElement: TYPE_VALUE, + HTMLVideoElementEventMap: TYPE, + HTMLVideoElement: TYPE_VALUE, + HashChangeEvent: TYPE_VALUE, + Headers: TYPE_VALUE, + Highlight: TYPE_VALUE, + HighlightRegistry: TYPE_VALUE, + History: TYPE_VALUE, + IDBCursor: TYPE_VALUE, + IDBCursorWithValue: TYPE_VALUE, + IDBDatabaseEventMap: TYPE, + IDBDatabase: TYPE_VALUE, + IDBFactory: TYPE_VALUE, + IDBIndex: TYPE_VALUE, + IDBKeyRange: TYPE_VALUE, + IDBObjectStore: TYPE_VALUE, + IDBOpenDBRequestEventMap: TYPE, + IDBOpenDBRequest: TYPE_VALUE, + IDBRequestEventMap: TYPE, + IDBRequest: TYPE_VALUE, + IDBTransactionEventMap: TYPE, + IDBTransaction: TYPE_VALUE, + IDBVersionChangeEvent: TYPE_VALUE, + IIRFilterNode: TYPE_VALUE, + IdleDeadline: TYPE_VALUE, + ImageBitmap: TYPE_VALUE, + ImageBitmapRenderingContext: TYPE_VALUE, + ImageData: TYPE_VALUE, + ImportMeta: TYPE, + InputDeviceInfo: TYPE_VALUE, + InputEvent: TYPE_VALUE, + IntersectionObserver: TYPE_VALUE, + IntersectionObserverEntry: TYPE_VALUE, + KHR_parallel_shader_compile: TYPE, + KeyboardEvent: TYPE_VALUE, + KeyframeEffect: TYPE_VALUE, + LargestContentfulPaint: TYPE_VALUE, + LinkStyle: TYPE, + Location: TYPE_VALUE, + Lock: TYPE_VALUE, + LockManager: TYPE_VALUE, + MIDIAccessEventMap: TYPE, + MIDIAccess: TYPE_VALUE, + MIDIConnectionEvent: TYPE_VALUE, + MIDIInputEventMap: TYPE, + MIDIInput: TYPE_VALUE, + MIDIInputMap: TYPE_VALUE, + MIDIMessageEvent: TYPE_VALUE, + MIDIOutput: TYPE_VALUE, + MIDIOutputMap: TYPE_VALUE, + MIDIPortEventMap: TYPE, + MIDIPort: TYPE_VALUE, + MathMLElementEventMap: TYPE, + MathMLElement: TYPE_VALUE, + MediaCapabilities: TYPE_VALUE, + MediaDeviceInfo: TYPE_VALUE, + MediaDevicesEventMap: TYPE, + MediaDevices: TYPE_VALUE, + MediaElementAudioSourceNode: TYPE_VALUE, + MediaEncryptedEvent: TYPE_VALUE, + MediaError: TYPE_VALUE, + MediaKeyMessageEvent: TYPE_VALUE, + MediaKeySessionEventMap: TYPE, + MediaKeySession: TYPE_VALUE, + MediaKeyStatusMap: TYPE_VALUE, + MediaKeySystemAccess: TYPE_VALUE, + MediaKeys: TYPE_VALUE, + MediaList: TYPE_VALUE, + MediaMetadata: TYPE_VALUE, + MediaQueryListEventMap: TYPE, + MediaQueryList: TYPE_VALUE, + MediaQueryListEvent: TYPE_VALUE, + MediaRecorderEventMap: TYPE, + MediaRecorder: TYPE_VALUE, + MediaSession: TYPE_VALUE, + MediaSourceEventMap: TYPE, + MediaSource: TYPE_VALUE, + MediaSourceHandle: TYPE_VALUE, + MediaStreamEventMap: TYPE, + MediaStream: TYPE_VALUE, + MediaStreamAudioDestinationNode: TYPE_VALUE, + MediaStreamAudioSourceNode: TYPE_VALUE, + MediaStreamTrackEventMap: TYPE, + MediaStreamTrack: TYPE_VALUE, + MediaStreamTrackEvent: TYPE_VALUE, + MessageChannel: TYPE_VALUE, + MessageEvent: TYPE_VALUE, + MessagePortEventMap: TYPE, + MessagePort: TYPE_VALUE, + MimeType: TYPE_VALUE, + MimeTypeArray: TYPE_VALUE, + MouseEvent: TYPE_VALUE, + MutationEvent: TYPE_VALUE, + MutationObserver: TYPE_VALUE, + MutationRecord: TYPE_VALUE, + NamedNodeMap: TYPE_VALUE, + NavigationPreloadManager: TYPE_VALUE, + Navigator: TYPE_VALUE, + NavigatorAutomationInformation: TYPE, + NavigatorBadge: TYPE, + NavigatorConcurrentHardware: TYPE, + NavigatorContentUtils: TYPE, + NavigatorCookies: TYPE, + NavigatorID: TYPE, + NavigatorLanguage: TYPE, + NavigatorLocks: TYPE, + NavigatorOnLine: TYPE, + NavigatorPlugins: TYPE, + NavigatorStorage: TYPE, + Node: TYPE_VALUE, + NodeIterator: TYPE_VALUE, + NodeList: TYPE_VALUE, + NodeListOf: TYPE, + NonDocumentTypeChildNode: TYPE, + NonElementParentNode: TYPE, + NotificationEventMap: TYPE, + Notification: TYPE_VALUE, + OES_draw_buffers_indexed: TYPE, + OES_element_index_uint: TYPE, + OES_fbo_render_mipmap: TYPE, + OES_standard_derivatives: TYPE, + OES_texture_float: TYPE, + OES_texture_float_linear: TYPE, + OES_texture_half_float: TYPE, + OES_texture_half_float_linear: TYPE, + OES_vertex_array_object: TYPE, + OVR_multiview2: TYPE, + OfflineAudioCompletionEvent: TYPE_VALUE, + OfflineAudioContextEventMap: TYPE, + OfflineAudioContext: TYPE_VALUE, + OffscreenCanvasEventMap: TYPE, + OffscreenCanvas: TYPE_VALUE, + OffscreenCanvasRenderingContext2D: TYPE_VALUE, + OscillatorNode: TYPE_VALUE, + OverconstrainedError: TYPE_VALUE, + PageTransitionEvent: TYPE_VALUE, + PannerNode: TYPE_VALUE, + ParentNode: TYPE, + Path2D: TYPE_VALUE, + PaymentMethodChangeEvent: TYPE_VALUE, + PaymentRequestEventMap: TYPE, + PaymentRequest: TYPE_VALUE, + PaymentRequestUpdateEvent: TYPE_VALUE, + PaymentResponse: TYPE_VALUE, + PerformanceEventMap: TYPE, + Performance: TYPE_VALUE, + PerformanceEntry: TYPE_VALUE, + PerformanceEventTiming: TYPE_VALUE, + PerformanceMark: TYPE_VALUE, + PerformanceMeasure: TYPE_VALUE, + PerformanceNavigation: TYPE_VALUE, + PerformanceNavigationTiming: TYPE_VALUE, + PerformanceObserver: TYPE_VALUE, + PerformanceObserverEntryList: TYPE_VALUE, + PerformancePaintTiming: TYPE_VALUE, + PerformanceResourceTiming: TYPE_VALUE, + PerformanceServerTiming: TYPE_VALUE, + PerformanceTiming: TYPE_VALUE, + PeriodicWave: TYPE_VALUE, + PermissionStatusEventMap: TYPE, + PermissionStatus: TYPE_VALUE, + Permissions: TYPE_VALUE, + PictureInPictureEvent: TYPE_VALUE, + PictureInPictureWindowEventMap: TYPE, + PictureInPictureWindow: TYPE_VALUE, + Plugin: TYPE_VALUE, + PluginArray: TYPE_VALUE, + PointerEvent: TYPE_VALUE, + PopStateEvent: TYPE_VALUE, + PopoverInvokerElement: TYPE, + ProcessingInstruction: TYPE_VALUE, + ProgressEvent: TYPE_VALUE, + PromiseRejectionEvent: TYPE_VALUE, + PublicKeyCredential: TYPE_VALUE, + PushManager: TYPE_VALUE, + PushSubscription: TYPE_VALUE, + PushSubscriptionOptions: TYPE_VALUE, + RTCCertificate: TYPE_VALUE, + RTCDTMFSenderEventMap: TYPE, + RTCDTMFSender: TYPE_VALUE, + RTCDTMFToneChangeEvent: TYPE_VALUE, + RTCDataChannelEventMap: TYPE, + RTCDataChannel: TYPE_VALUE, + RTCDataChannelEvent: TYPE_VALUE, + RTCDtlsTransportEventMap: TYPE, + RTCDtlsTransport: TYPE_VALUE, + RTCEncodedAudioFrame: TYPE_VALUE, + RTCEncodedVideoFrame: TYPE_VALUE, + RTCError: TYPE_VALUE, + RTCErrorEvent: TYPE_VALUE, + RTCIceCandidate: TYPE_VALUE, + RTCIceCandidatePair: TYPE, + RTCIceTransportEventMap: TYPE, + RTCIceTransport: TYPE_VALUE, + RTCPeerConnectionEventMap: TYPE, + RTCPeerConnection: TYPE_VALUE, + RTCPeerConnectionIceErrorEvent: TYPE_VALUE, + RTCPeerConnectionIceEvent: TYPE_VALUE, + RTCRtpReceiver: TYPE_VALUE, + RTCRtpScriptTransform: TYPE_VALUE, + RTCRtpSender: TYPE_VALUE, + RTCRtpTransceiver: TYPE_VALUE, + RTCSctpTransportEventMap: TYPE, + RTCSctpTransport: TYPE_VALUE, + RTCSessionDescription: TYPE_VALUE, + RTCStatsReport: TYPE_VALUE, + RTCTrackEvent: TYPE_VALUE, + RadioNodeList: TYPE_VALUE, + Range: TYPE_VALUE, + ReadableByteStreamController: TYPE_VALUE, + ReadableStream: TYPE_VALUE, + ReadableStreamBYOBReader: TYPE_VALUE, + ReadableStreamBYOBRequest: TYPE_VALUE, + ReadableStreamDefaultController: TYPE_VALUE, + ReadableStreamDefaultReader: TYPE_VALUE, + ReadableStreamGenericReader: TYPE, + RemotePlaybackEventMap: TYPE, + RemotePlayback: TYPE_VALUE, + Report: TYPE_VALUE, + ReportBody: TYPE_VALUE, + ReportingObserver: TYPE_VALUE, + Request: TYPE_VALUE, + ResizeObserver: TYPE_VALUE, + ResizeObserverEntry: TYPE_VALUE, + ResizeObserverSize: TYPE_VALUE, + Response: TYPE_VALUE, + SVGAElement: TYPE_VALUE, + SVGAngle: TYPE_VALUE, + SVGAnimateElement: TYPE_VALUE, + SVGAnimateMotionElement: TYPE_VALUE, + SVGAnimateTransformElement: TYPE_VALUE, + SVGAnimatedAngle: TYPE_VALUE, + SVGAnimatedBoolean: TYPE_VALUE, + SVGAnimatedEnumeration: TYPE_VALUE, + SVGAnimatedInteger: TYPE_VALUE, + SVGAnimatedLength: TYPE_VALUE, + SVGAnimatedLengthList: TYPE_VALUE, + SVGAnimatedNumber: TYPE_VALUE, + SVGAnimatedNumberList: TYPE_VALUE, + SVGAnimatedPoints: TYPE, + SVGAnimatedPreserveAspectRatio: TYPE_VALUE, + SVGAnimatedRect: TYPE_VALUE, + SVGAnimatedString: TYPE_VALUE, + SVGAnimatedTransformList: TYPE_VALUE, + SVGAnimationElement: TYPE_VALUE, + SVGCircleElement: TYPE_VALUE, + SVGClipPathElement: TYPE_VALUE, + SVGComponentTransferFunctionElement: TYPE_VALUE, + SVGDefsElement: TYPE_VALUE, + SVGDescElement: TYPE_VALUE, + SVGElementEventMap: TYPE, + SVGElement: TYPE_VALUE, + SVGEllipseElement: TYPE_VALUE, + SVGFEBlendElement: TYPE_VALUE, + SVGFEColorMatrixElement: TYPE_VALUE, + SVGFEComponentTransferElement: TYPE_VALUE, + SVGFECompositeElement: TYPE_VALUE, + SVGFEConvolveMatrixElement: TYPE_VALUE, + SVGFEDiffuseLightingElement: TYPE_VALUE, + SVGFEDisplacementMapElement: TYPE_VALUE, + SVGFEDistantLightElement: TYPE_VALUE, + SVGFEDropShadowElement: TYPE_VALUE, + SVGFEFloodElement: TYPE_VALUE, + SVGFEFuncAElement: TYPE_VALUE, + SVGFEFuncBElement: TYPE_VALUE, + SVGFEFuncGElement: TYPE_VALUE, + SVGFEFuncRElement: TYPE_VALUE, + SVGFEGaussianBlurElement: TYPE_VALUE, + SVGFEImageElement: TYPE_VALUE, + SVGFEMergeElement: TYPE_VALUE, + SVGFEMergeNodeElement: TYPE_VALUE, + SVGFEMorphologyElement: TYPE_VALUE, + SVGFEOffsetElement: TYPE_VALUE, + SVGFEPointLightElement: TYPE_VALUE, + SVGFESpecularLightingElement: TYPE_VALUE, + SVGFESpotLightElement: TYPE_VALUE, + SVGFETileElement: TYPE_VALUE, + SVGFETurbulenceElement: TYPE_VALUE, + SVGFilterElement: TYPE_VALUE, + SVGFilterPrimitiveStandardAttributes: TYPE, + SVGFitToViewBox: TYPE, + SVGForeignObjectElement: TYPE_VALUE, + SVGGElement: TYPE_VALUE, + SVGGeometryElement: TYPE_VALUE, + SVGGradientElement: TYPE_VALUE, + SVGGraphicsElement: TYPE_VALUE, + SVGImageElement: TYPE_VALUE, + SVGLength: TYPE_VALUE, + SVGLengthList: TYPE_VALUE, + SVGLineElement: TYPE_VALUE, + SVGLinearGradientElement: TYPE_VALUE, + SVGMPathElement: TYPE_VALUE, + SVGMarkerElement: TYPE_VALUE, + SVGMaskElement: TYPE_VALUE, + SVGMetadataElement: TYPE_VALUE, + SVGNumber: TYPE_VALUE, + SVGNumberList: TYPE_VALUE, + SVGPathElement: TYPE_VALUE, + SVGPatternElement: TYPE_VALUE, + SVGPointList: TYPE_VALUE, + SVGPolygonElement: TYPE_VALUE, + SVGPolylineElement: TYPE_VALUE, + SVGPreserveAspectRatio: TYPE_VALUE, + SVGRadialGradientElement: TYPE_VALUE, + SVGRectElement: TYPE_VALUE, + SVGSVGElementEventMap: TYPE, + SVGSVGElement: TYPE_VALUE, + SVGScriptElement: TYPE_VALUE, + SVGSetElement: TYPE_VALUE, + SVGStopElement: TYPE_VALUE, + SVGStringList: TYPE_VALUE, + SVGStyleElement: TYPE_VALUE, + SVGSwitchElement: TYPE_VALUE, + SVGSymbolElement: TYPE_VALUE, + SVGTSpanElement: TYPE_VALUE, + SVGTests: TYPE, + SVGTextContentElement: TYPE_VALUE, + SVGTextElement: TYPE_VALUE, + SVGTextPathElement: TYPE_VALUE, + SVGTextPositioningElement: TYPE_VALUE, + SVGTitleElement: TYPE_VALUE, + SVGTransform: TYPE_VALUE, + SVGTransformList: TYPE_VALUE, + SVGURIReference: TYPE, + SVGUnitTypes: TYPE_VALUE, + SVGUseElement: TYPE_VALUE, + SVGViewElement: TYPE_VALUE, + Screen: TYPE_VALUE, + ScreenOrientationEventMap: TYPE, + ScreenOrientation: TYPE_VALUE, + ScriptProcessorNodeEventMap: TYPE, + ScriptProcessorNode: TYPE_VALUE, + SecurityPolicyViolationEvent: TYPE_VALUE, + Selection: TYPE_VALUE, + ServiceWorkerEventMap: TYPE, + ServiceWorker: TYPE_VALUE, + ServiceWorkerContainerEventMap: TYPE, + ServiceWorkerContainer: TYPE_VALUE, + ServiceWorkerRegistrationEventMap: TYPE, + ServiceWorkerRegistration: TYPE_VALUE, + ShadowRootEventMap: TYPE, + ShadowRoot: TYPE_VALUE, + SharedWorker: TYPE_VALUE, + Slottable: TYPE, + SourceBufferEventMap: TYPE, + SourceBuffer: TYPE_VALUE, + SourceBufferListEventMap: TYPE, + SourceBufferList: TYPE_VALUE, + SpeechRecognitionAlternative: TYPE_VALUE, + SpeechRecognitionResult: TYPE_VALUE, + SpeechRecognitionResultList: TYPE_VALUE, + SpeechSynthesisEventMap: TYPE, + SpeechSynthesis: TYPE_VALUE, + SpeechSynthesisErrorEvent: TYPE_VALUE, + SpeechSynthesisEvent: TYPE_VALUE, + SpeechSynthesisUtteranceEventMap: TYPE, + SpeechSynthesisUtterance: TYPE_VALUE, + SpeechSynthesisVoice: TYPE_VALUE, + StaticRange: TYPE_VALUE, + StereoPannerNode: TYPE_VALUE, + Storage: TYPE_VALUE, + StorageEvent: TYPE_VALUE, + StorageManager: TYPE_VALUE, + StyleMedia: TYPE, + StylePropertyMap: TYPE_VALUE, + StylePropertyMapReadOnly: TYPE_VALUE, + StyleSheet: TYPE_VALUE, + StyleSheetList: TYPE_VALUE, + SubmitEvent: TYPE_VALUE, + SubtleCrypto: TYPE_VALUE, + Text: TYPE_VALUE, + TextDecoder: TYPE_VALUE, + TextDecoderCommon: TYPE, + TextDecoderStream: TYPE_VALUE, + TextEncoder: TYPE_VALUE, + TextEncoderCommon: TYPE, + TextEncoderStream: TYPE_VALUE, + TextEvent: TYPE_VALUE, + TextMetrics: TYPE_VALUE, + TextTrackEventMap: TYPE, + TextTrack: TYPE_VALUE, + TextTrackCueEventMap: TYPE, + TextTrackCue: TYPE_VALUE, + TextTrackCueList: TYPE_VALUE, + TextTrackListEventMap: TYPE, + TextTrackList: TYPE_VALUE, + TimeRanges: TYPE_VALUE, + ToggleEvent: TYPE_VALUE, + Touch: TYPE_VALUE, + TouchEvent: TYPE_VALUE, + TouchList: TYPE_VALUE, + TrackEvent: TYPE_VALUE, + TransformStream: TYPE_VALUE, + TransformStreamDefaultController: TYPE_VALUE, + TransitionEvent: TYPE_VALUE, + TreeWalker: TYPE_VALUE, + UIEvent: TYPE_VALUE, + URL: TYPE_VALUE, + webkitURL: TYPE_VALUE, + URLSearchParams: TYPE_VALUE, + UserActivation: TYPE_VALUE, + VTTCue: TYPE_VALUE, + VTTRegion: TYPE_VALUE, + ValidityState: TYPE_VALUE, + VideoColorSpace: TYPE_VALUE, + VideoDecoderEventMap: TYPE, + VideoDecoder: TYPE_VALUE, + VideoEncoderEventMap: TYPE, + VideoEncoder: TYPE_VALUE, + VideoFrame: TYPE_VALUE, + VideoPlaybackQuality: TYPE_VALUE, + ViewTransition: TYPE_VALUE, + VisualViewportEventMap: TYPE, + VisualViewport: TYPE_VALUE, + WEBGL_color_buffer_float: TYPE, + WEBGL_compressed_texture_astc: TYPE, + WEBGL_compressed_texture_etc: TYPE, + WEBGL_compressed_texture_etc1: TYPE, + WEBGL_compressed_texture_pvrtc: TYPE, + WEBGL_compressed_texture_s3tc: TYPE, + WEBGL_compressed_texture_s3tc_srgb: TYPE, + WEBGL_debug_renderer_info: TYPE, + WEBGL_debug_shaders: TYPE, + WEBGL_depth_texture: TYPE, + WEBGL_draw_buffers: TYPE, + WEBGL_lose_context: TYPE, + WEBGL_multi_draw: TYPE, + WakeLock: TYPE_VALUE, + WakeLockSentinelEventMap: TYPE, + WakeLockSentinel: TYPE_VALUE, + WaveShaperNode: TYPE_VALUE, + WebGL2RenderingContext: TYPE_VALUE, + WebGL2RenderingContextBase: TYPE, + WebGL2RenderingContextOverloads: TYPE, + WebGLActiveInfo: TYPE_VALUE, + WebGLBuffer: TYPE_VALUE, + WebGLContextEvent: TYPE_VALUE, + WebGLFramebuffer: TYPE_VALUE, + WebGLProgram: TYPE_VALUE, + WebGLQuery: TYPE_VALUE, + WebGLRenderbuffer: TYPE_VALUE, + WebGLRenderingContext: TYPE_VALUE, + WebGLRenderingContextBase: TYPE, + WebGLRenderingContextOverloads: TYPE, + WebGLSampler: TYPE_VALUE, + WebGLShader: TYPE_VALUE, + WebGLShaderPrecisionFormat: TYPE_VALUE, + WebGLSync: TYPE_VALUE, + WebGLTexture: TYPE_VALUE, + WebGLTransformFeedback: TYPE_VALUE, + WebGLUniformLocation: TYPE_VALUE, + WebGLVertexArrayObject: TYPE_VALUE, + WebGLVertexArrayObjectOES: TYPE, + WebSocketEventMap: TYPE, + WebSocket: TYPE_VALUE, + WebTransport: TYPE_VALUE, + WebTransportBidirectionalStream: TYPE_VALUE, + WebTransportDatagramDuplexStream: TYPE_VALUE, + WebTransportError: TYPE_VALUE, + WheelEvent: TYPE_VALUE, + WindowEventMap: TYPE, + Window: TYPE_VALUE, + WindowEventHandlersEventMap: TYPE, + WindowEventHandlers: TYPE, + WindowLocalStorage: TYPE, + WindowOrWorkerGlobalScope: TYPE, + WindowSessionStorage: TYPE, + WorkerEventMap: TYPE, + Worker: TYPE_VALUE, + Worklet: TYPE_VALUE, + WritableStream: TYPE_VALUE, + WritableStreamDefaultController: TYPE_VALUE, + WritableStreamDefaultWriter: TYPE_VALUE, + XMLDocument: TYPE_VALUE, + XMLHttpRequestEventMap: TYPE, + XMLHttpRequest: TYPE_VALUE, + XMLHttpRequestEventTargetEventMap: TYPE, + XMLHttpRequestEventTarget: TYPE_VALUE, + XMLHttpRequestUpload: TYPE_VALUE, + XMLSerializer: TYPE_VALUE, + XPathEvaluator: TYPE_VALUE, + XPathEvaluatorBase: TYPE, + XPathExpression: TYPE_VALUE, + XPathResult: TYPE_VALUE, + XSLTProcessor: TYPE_VALUE, + Console: TYPE, + CSS: TYPE_VALUE, + WebAssembly: TYPE_VALUE, + BlobCallback: TYPE, + CustomElementConstructor: TYPE, + DecodeErrorCallback: TYPE, + DecodeSuccessCallback: TYPE, + EncodedVideoChunkOutputCallback: TYPE, + ErrorCallback: TYPE, + FileCallback: TYPE, + FileSystemEntriesCallback: TYPE, + FileSystemEntryCallback: TYPE, + FrameRequestCallback: TYPE, + FunctionStringCallback: TYPE, + IdleRequestCallback: TYPE, + IntersectionObserverCallback: TYPE, + LockGrantedCallback: TYPE, + MediaSessionActionHandler: TYPE, + MutationCallback: TYPE, + NotificationPermissionCallback: TYPE, + OnBeforeUnloadEventHandlerNonNull: TYPE, + OnErrorEventHandlerNonNull: TYPE, + PerformanceObserverCallback: TYPE, + PositionCallback: TYPE, + PositionErrorCallback: TYPE, + QueuingStrategySize: TYPE, + RTCPeerConnectionErrorCallback: TYPE, + RTCSessionDescriptionCallback: TYPE, + RemotePlaybackAvailabilityCallback: TYPE, + ReportingObserverCallback: TYPE, + ResizeObserverCallback: TYPE, + TransformerFlushCallback: TYPE, + TransformerStartCallback: TYPE, + TransformerTransformCallback: TYPE, + UnderlyingSinkAbortCallback: TYPE, + UnderlyingSinkCloseCallback: TYPE, + UnderlyingSinkStartCallback: TYPE, + UnderlyingSinkWriteCallback: TYPE, + UnderlyingSourceCancelCallback: TYPE, + UnderlyingSourcePullCallback: TYPE, + UnderlyingSourceStartCallback: TYPE, + UpdateCallback: TYPE, + VideoFrameOutputCallback: TYPE, + VideoFrameRequestCallback: TYPE, + VoidFunction: TYPE, + WebCodecsErrorCallback: TYPE, + HTMLElementTagNameMap: TYPE, + HTMLElementDeprecatedTagNameMap: TYPE, + SVGElementTagNameMap: TYPE, + MathMLElementTagNameMap: TYPE, + ElementTagNameMap: TYPE, + AlgorithmIdentifier: TYPE, + AllowSharedBufferSource: TYPE, + AutoFill: TYPE, + AutoFillField: TYPE, + AutoFillSection: TYPE, + BigInteger: TYPE, + BinaryData: TYPE, + BlobPart: TYPE, + BodyInit: TYPE, + BufferSource: TYPE, + COSEAlgorithmIdentifier: TYPE, + CSSKeywordish: TYPE, + CSSNumberish: TYPE, + CSSPerspectiveValue: TYPE, + CSSUnparsedSegment: TYPE, + CanvasImageSource: TYPE, + ClipboardItemData: TYPE, + ClipboardItems: TYPE, + ConstrainBoolean: TYPE, + ConstrainDOMString: TYPE, + ConstrainDouble: TYPE, + ConstrainULong: TYPE, + DOMHighResTimeStamp: TYPE, + EpochTimeStamp: TYPE, + EventListenerOrEventListenerObject: TYPE, + FileSystemWriteChunkType: TYPE, + Float32List: TYPE, + FormDataEntryValue: TYPE, + GLbitfield: TYPE, + GLboolean: TYPE, + GLclampf: TYPE, + GLenum: TYPE, + GLfloat: TYPE, + GLint: TYPE, + GLint64: TYPE, + GLintptr: TYPE, + GLsizei: TYPE, + GLsizeiptr: TYPE, + GLuint: TYPE, + GLuint64: TYPE, + HTMLOrSVGImageElement: TYPE, + HTMLOrSVGScriptElement: TYPE, + HashAlgorithmIdentifier: TYPE, + HeadersInit: TYPE, + IDBValidKey: TYPE, + ImageBitmapSource: TYPE, + Int32List: TYPE, + LineAndPositionSetting: TYPE, + MediaProvider: TYPE, + MessageEventSource: TYPE, + MutationRecordType: TYPE, + NamedCurve: TYPE, + OffscreenRenderingContext: TYPE, + OnBeforeUnloadEventHandler: TYPE, + OnErrorEventHandler: TYPE, + OptionalPostfixToken: TYPE, + OptionalPrefixToken: TYPE, + PerformanceEntryList: TYPE, + RTCRtpTransform: TYPE, + ReadableStreamController: TYPE, + ReadableStreamReadResult: TYPE, + ReadableStreamReader: TYPE, + RenderingContext: TYPE, + ReportList: TYPE, + RequestInfo: TYPE, + TexImageSource: TYPE, + TimerHandler: TYPE, + Transferable: TYPE, + Uint32List: TYPE, + VibratePattern: TYPE, + WindowProxy: TYPE, + XMLHttpRequestBodyInit: TYPE, + AlignSetting: TYPE, + AlphaOption: TYPE, + AnimationPlayState: TYPE, + AnimationReplaceState: TYPE, + AppendMode: TYPE, + AttestationConveyancePreference: TYPE, + AudioContextLatencyCategory: TYPE, + AudioContextState: TYPE, + AuthenticatorAttachment: TYPE, + AuthenticatorTransport: TYPE, + AutoFillAddressKind: TYPE, + AutoFillBase: TYPE, + AutoFillContactField: TYPE, + AutoFillContactKind: TYPE, + AutoFillCredentialField: TYPE, + AutoFillNormalField: TYPE, + AutoKeyword: TYPE, + AutomationRate: TYPE, + AvcBitstreamFormat: TYPE, + BinaryType: TYPE, + BiquadFilterType: TYPE, + CSSMathOperator: TYPE, + CSSNumericBaseType: TYPE, + CanPlayTypeResult: TYPE, + CanvasDirection: TYPE, + CanvasFillRule: TYPE, + CanvasFontKerning: TYPE, + CanvasFontStretch: TYPE, + CanvasFontVariantCaps: TYPE, + CanvasLineCap: TYPE, + CanvasLineJoin: TYPE, + CanvasTextAlign: TYPE, + CanvasTextBaseline: TYPE, + CanvasTextRendering: TYPE, + ChannelCountMode: TYPE, + ChannelInterpretation: TYPE, + ClientTypes: TYPE, + CodecState: TYPE, + ColorGamut: TYPE, + ColorSpaceConversion: TYPE, + CompositeOperation: TYPE, + CompositeOperationOrAuto: TYPE, + CompressionFormat: TYPE, + CredentialMediationRequirement: TYPE, + DOMParserSupportedType: TYPE, + DirectionSetting: TYPE, + DisplayCaptureSurfaceType: TYPE, + DistanceModelType: TYPE, + DocumentReadyState: TYPE, + DocumentVisibilityState: TYPE, + EncodedVideoChunkType: TYPE, + EndOfStreamError: TYPE, + EndingType: TYPE, + FileSystemHandleKind: TYPE, + FillMode: TYPE, + FontDisplay: TYPE, + FontFaceLoadStatus: TYPE, + FontFaceSetLoadStatus: TYPE, + FullscreenNavigationUI: TYPE, + GamepadHapticEffectType: TYPE, + GamepadHapticsResult: TYPE, + GamepadMappingType: TYPE, + GlobalCompositeOperation: TYPE, + HardwareAcceleration: TYPE, + HdrMetadataType: TYPE, + HighlightType: TYPE, + IDBCursorDirection: TYPE, + IDBRequestReadyState: TYPE, + IDBTransactionDurability: TYPE, + IDBTransactionMode: TYPE, + ImageOrientation: TYPE, + ImageSmoothingQuality: TYPE, + InsertPosition: TYPE, + IterationCompositeOperation: TYPE, + KeyFormat: TYPE, + KeyType: TYPE, + KeyUsage: TYPE, + LatencyMode: TYPE, + LineAlignSetting: TYPE, + LockMode: TYPE, + MIDIPortConnectionState: TYPE, + MIDIPortDeviceState: TYPE, + MIDIPortType: TYPE, + MediaDecodingType: TYPE, + MediaDeviceKind: TYPE, + MediaEncodingType: TYPE, + MediaKeyMessageType: TYPE, + MediaKeySessionClosedReason: TYPE, + MediaKeySessionType: TYPE, + MediaKeyStatus: TYPE, + MediaKeysRequirement: TYPE, + MediaSessionAction: TYPE, + MediaSessionPlaybackState: TYPE, + MediaStreamTrackState: TYPE, + NavigationTimingType: TYPE, + NotificationDirection: TYPE, + NotificationPermission: TYPE, + OffscreenRenderingContextId: TYPE, + OrientationType: TYPE, + OscillatorType: TYPE, + OverSampleType: TYPE, + PanningModelType: TYPE, + PaymentComplete: TYPE, + PermissionName: TYPE, + PermissionState: TYPE, + PlaybackDirection: TYPE, + PositionAlignSetting: TYPE, + PredefinedColorSpace: TYPE, + PremultiplyAlpha: TYPE, + PresentationStyle: TYPE, + PublicKeyCredentialType: TYPE, + PushEncryptionKeyName: TYPE, + RTCBundlePolicy: TYPE, + RTCDataChannelState: TYPE, + RTCDegradationPreference: TYPE, + RTCDtlsTransportState: TYPE, + RTCEncodedVideoFrameType: TYPE, + RTCErrorDetailType: TYPE, + RTCIceCandidateType: TYPE, + RTCIceComponent: TYPE, + RTCIceConnectionState: TYPE, + RTCIceGathererState: TYPE, + RTCIceGatheringState: TYPE, + RTCIceProtocol: TYPE, + RTCIceTcpCandidateType: TYPE, + RTCIceTransportPolicy: TYPE, + RTCIceTransportState: TYPE, + RTCPeerConnectionState: TYPE, + RTCPriorityType: TYPE, + RTCRtcpMuxPolicy: TYPE, + RTCRtpTransceiverDirection: TYPE, + RTCSctpTransportState: TYPE, + RTCSdpType: TYPE, + RTCSignalingState: TYPE, + RTCStatsIceCandidatePairState: TYPE, + RTCStatsType: TYPE, + ReadableStreamReaderMode: TYPE, + ReadableStreamType: TYPE, + ReadyState: TYPE, + RecordingState: TYPE, + ReferrerPolicy: TYPE, + RemotePlaybackState: TYPE, + RequestCache: TYPE, + RequestCredentials: TYPE, + RequestDestination: TYPE, + RequestMode: TYPE, + RequestPriority: TYPE, + RequestRedirect: TYPE, + ResidentKeyRequirement: TYPE, + ResizeObserverBoxOptions: TYPE, + ResizeQuality: TYPE, + ResponseType: TYPE, + ScrollBehavior: TYPE, + ScrollLogicalPosition: TYPE, + ScrollRestoration: TYPE, + ScrollSetting: TYPE, + SecurityPolicyViolationEventDisposition: TYPE, + SelectionMode: TYPE, + ServiceWorkerState: TYPE, + ServiceWorkerUpdateViaCache: TYPE, + ShadowRootMode: TYPE, + SlotAssignmentMode: TYPE, + SpeechSynthesisErrorCode: TYPE, + TextTrackKind: TYPE, + TextTrackMode: TYPE, + TouchType: TYPE, + TransferFunction: TYPE, + UserVerificationRequirement: TYPE, + VideoColorPrimaries: TYPE, + VideoEncoderBitrateMode: TYPE, + VideoFacingModeEnum: TYPE, + VideoMatrixCoefficients: TYPE, + VideoPixelFormat: TYPE, + VideoTransferCharacteristics: TYPE, + WakeLockType: TYPE, + WebGLPowerPreference: TYPE, + WebTransportCongestionControl: TYPE, + WebTransportErrorSource: TYPE, + WorkerType: TYPE, + WriteCommandType: TYPE, + XMLHttpRequestResponseType: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2015.collection.ts b/packages/scope-manager/src/lib/es2015.collection.ts index 00350e768925..e99444821732 100644 --- a/packages/scope-manager/src/lib/es2015.collection.ts +++ b/packages/scope-manager/src/lib/es2015.collection.ts @@ -4,18 +4,17 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE, TYPE_VALUE } from './base-config'; export const es2015_collection = { Map: TYPE_VALUE, MapConstructor: TYPE, ReadonlyMap: TYPE, - ReadonlySet: TYPE, - Set: TYPE_VALUE, - SetConstructor: TYPE, WeakMap: TYPE_VALUE, WeakMapConstructor: TYPE, + Set: TYPE_VALUE, + SetConstructor: TYPE, + ReadonlySet: TYPE, WeakSet: TYPE_VALUE, WeakSetConstructor: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2015.core.ts b/packages/scope-manager/src/lib/es2015.core.ts index 343ffe10783d..e47af3361e9c 100644 --- a/packages/scope-manager/src/lib/es2015.core.ts +++ b/packages/scope-manager/src/lib/es2015.core.ts @@ -4,19 +4,13 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const es2015_core = { Array: TYPE, ArrayConstructor: TYPE, DateConstructor: TYPE, - Float32Array: TYPE, - Float64Array: TYPE, Function: TYPE, - Int16Array: TYPE, - Int32Array: TYPE, - Int8Array: TYPE, Math: TYPE, NumberConstructor: TYPE, ObjectConstructor: TYPE, @@ -25,8 +19,13 @@ export const es2015_core = { RegExpConstructor: TYPE, String: TYPE, StringConstructor: TYPE, - Uint16Array: TYPE, - Uint32Array: TYPE, + Int8Array: TYPE, Uint8Array: TYPE, Uint8ClampedArray: TYPE, + Int16Array: TYPE, + Uint16Array: TYPE, + Int32Array: TYPE, + Uint32Array: TYPE, + Float32Array: TYPE, + Float64Array: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2015.generator.ts b/packages/scope-manager/src/lib/es2015.generator.ts index 567461d3d157..0b3338d567c4 100644 --- a/packages/scope-manager/src/lib/es2015.generator.ts +++ b/packages/scope-manager/src/lib/es2015.generator.ts @@ -4,9 +4,8 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - -import { TYPE } from './base-config'; import { es2015_iterable } from './es2015.iterable'; +import { TYPE } from './base-config'; export const es2015_generator = { ...es2015_iterable, diff --git a/packages/scope-manager/src/lib/es2015.iterable.ts b/packages/scope-manager/src/lib/es2015.iterable.ts index 0e16e6de70ee..7fa7850217bc 100644 --- a/packages/scope-manager/src/lib/es2015.iterable.ts +++ b/packages/scope-manager/src/lib/es2015.iterable.ts @@ -4,52 +4,57 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - -import { TYPE } from './base-config'; import { es2015_symbol } from './es2015.symbol'; +import { TYPE } from './base-config'; export const es2015_iterable = { ...es2015_symbol, + SymbolConstructor: TYPE, + IteratorYieldResult: TYPE, + IteratorReturnResult: TYPE, + IteratorResult: TYPE, + Iterator: TYPE, + Iterable: TYPE, + IterableIterator: TYPE, + IteratorObject: TYPE, + BuiltinIteratorReturn: TYPE, + ArrayIterator: TYPE, Array: TYPE, ArrayConstructor: TYPE, - Float32Array: TYPE, - Float32ArrayConstructor: TYPE, - Float64Array: TYPE, - Float64ArrayConstructor: TYPE, + ReadonlyArray: TYPE, IArguments: TYPE, - Int16Array: TYPE, - Int16ArrayConstructor: TYPE, - Int32Array: TYPE, - Int32ArrayConstructor: TYPE, - Int8Array: TYPE, - Int8ArrayConstructor: TYPE, - Iterable: TYPE, - IterableIterator: TYPE, - Iterator: TYPE, - IteratorResult: TYPE, - IteratorReturnResult: TYPE, - IteratorYieldResult: TYPE, + MapIterator: TYPE, Map: TYPE, - MapConstructor: TYPE, - Promise: TYPE, - PromiseConstructor: TYPE, - ReadonlyArray: TYPE, ReadonlyMap: TYPE, - ReadonlySet: TYPE, + MapConstructor: TYPE, + WeakMap: TYPE, + WeakMapConstructor: TYPE, + SetIterator: TYPE, Set: TYPE, + ReadonlySet: TYPE, SetConstructor: TYPE, + WeakSet: TYPE, + WeakSetConstructor: TYPE, + Promise: TYPE, + PromiseConstructor: TYPE, + StringIterator: TYPE, String: TYPE, - SymbolConstructor: TYPE, - Uint16Array: TYPE, - Uint16ArrayConstructor: TYPE, - Uint32Array: TYPE, - Uint32ArrayConstructor: TYPE, + Int8Array: TYPE, + Int8ArrayConstructor: TYPE, Uint8Array: TYPE, Uint8ArrayConstructor: TYPE, Uint8ClampedArray: TYPE, Uint8ClampedArrayConstructor: TYPE, - WeakMap: TYPE, - WeakMapConstructor: TYPE, - WeakSet: TYPE, - WeakSetConstructor: TYPE, + Int16Array: TYPE, + Int16ArrayConstructor: TYPE, + Uint16Array: TYPE, + Uint16ArrayConstructor: TYPE, + Int32Array: TYPE, + Int32ArrayConstructor: TYPE, + Uint32Array: TYPE, + Uint32ArrayConstructor: TYPE, + Float32Array: TYPE, + Float32ArrayConstructor: TYPE, + Float64Array: TYPE, + Float64ArrayConstructor: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2015.promise.ts b/packages/scope-manager/src/lib/es2015.promise.ts index cb9505d524a6..81c84c8a2588 100644 --- a/packages/scope-manager/src/lib/es2015.promise.ts +++ b/packages/scope-manager/src/lib/es2015.promise.ts @@ -4,7 +4,6 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const es2015_promise = { diff --git a/packages/scope-manager/src/lib/es2015.proxy.ts b/packages/scope-manager/src/lib/es2015.proxy.ts index 3ff781767710..520f8ee1d738 100644 --- a/packages/scope-manager/src/lib/es2015.proxy.ts +++ b/packages/scope-manager/src/lib/es2015.proxy.ts @@ -4,10 +4,9 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const es2015_proxy = { - ProxyConstructor: TYPE, ProxyHandler: TYPE, + ProxyConstructor: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2015.reflect.ts b/packages/scope-manager/src/lib/es2015.reflect.ts index 1b050f533fac..2de64a3172ef 100644 --- a/packages/scope-manager/src/lib/es2015.reflect.ts +++ b/packages/scope-manager/src/lib/es2015.reflect.ts @@ -4,7 +4,6 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE_VALUE } from './base-config'; export const es2015_reflect = { diff --git a/packages/scope-manager/src/lib/es2015.symbol.ts b/packages/scope-manager/src/lib/es2015.symbol.ts index 2fad4cbff8a8..e61aee0475f7 100644 --- a/packages/scope-manager/src/lib/es2015.symbol.ts +++ b/packages/scope-manager/src/lib/es2015.symbol.ts @@ -4,7 +4,6 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const es2015_symbol = { diff --git a/packages/scope-manager/src/lib/es2015.symbol.wellknown.ts b/packages/scope-manager/src/lib/es2015.symbol.wellknown.ts index 5e7aec935e13..67b3866e1a12 100644 --- a/packages/scope-manager/src/lib/es2015.symbol.wellknown.ts +++ b/packages/scope-manager/src/lib/es2015.symbol.wellknown.ts @@ -4,43 +4,42 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - -import { TYPE } from './base-config'; import { es2015_symbol } from './es2015.symbol'; +import { TYPE } from './base-config'; export const es2015_symbol_wellknown = { ...es2015_symbol, + SymbolConstructor: TYPE, + Symbol: TYPE, Array: TYPE, - ArrayBuffer: TYPE, - ArrayBufferConstructor: TYPE, - ArrayConstructor: TYPE, - DataView: TYPE, + ReadonlyArray: TYPE, Date: TYPE, - Float32Array: TYPE, - Float64Array: TYPE, + Map: TYPE, + WeakMap: TYPE, + Set: TYPE, + WeakSet: TYPE, + JSON: TYPE, Function: TYPE, GeneratorFunction: TYPE, - Int16Array: TYPE, - Int32Array: TYPE, - Int8Array: TYPE, - JSON: TYPE, - Map: TYPE, - MapConstructor: TYPE, Math: TYPE, Promise: TYPE, PromiseConstructor: TYPE, - ReadonlyArray: TYPE, RegExp: TYPE, RegExpConstructor: TYPE, - Set: TYPE, - SetConstructor: TYPE, String: TYPE, - Symbol: TYPE, - SymbolConstructor: TYPE, - Uint16Array: TYPE, - Uint32Array: TYPE, + ArrayBuffer: TYPE, + DataView: TYPE, + Int8Array: TYPE, Uint8Array: TYPE, Uint8ClampedArray: TYPE, - WeakMap: TYPE, - WeakSet: TYPE, + Int16Array: TYPE, + Uint16Array: TYPE, + Int32Array: TYPE, + Uint32Array: TYPE, + Float32Array: TYPE, + Float64Array: TYPE, + ArrayConstructor: TYPE, + MapConstructor: TYPE, + SetConstructor: TYPE, + ArrayBufferConstructor: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2015.ts b/packages/scope-manager/src/lib/es2015.ts index c044e6470cdf..f9dd95c00871 100644 --- a/packages/scope-manager/src/lib/es2015.ts +++ b/packages/scope-manager/src/lib/es2015.ts @@ -4,17 +4,16 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - -import { es2015_collection } from './es2015.collection'; +import { es5 } from './es5'; import { es2015_core } from './es2015.core'; -import { es2015_generator } from './es2015.generator'; +import { es2015_collection } from './es2015.collection'; import { es2015_iterable } from './es2015.iterable'; +import { es2015_generator } from './es2015.generator'; import { es2015_promise } from './es2015.promise'; import { es2015_proxy } from './es2015.proxy'; import { es2015_reflect } from './es2015.reflect'; import { es2015_symbol } from './es2015.symbol'; import { es2015_symbol_wellknown } from './es2015.symbol.wellknown'; -import { es5 } from './es5'; export const es2015 = { ...es5, diff --git a/packages/scope-manager/src/lib/es2016.array.include.ts b/packages/scope-manager/src/lib/es2016.array.include.ts index afb8d1ac6cdf..d16f4cd54c2b 100644 --- a/packages/scope-manager/src/lib/es2016.array.include.ts +++ b/packages/scope-manager/src/lib/es2016.array.include.ts @@ -4,19 +4,18 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const es2016_array_include = { Array: TYPE, - Float32Array: TYPE, - Float64Array: TYPE, - Int16Array: TYPE, - Int32Array: TYPE, - Int8Array: TYPE, ReadonlyArray: TYPE, - Uint16Array: TYPE, - Uint32Array: TYPE, + Int8Array: TYPE, Uint8Array: TYPE, Uint8ClampedArray: TYPE, + Int16Array: TYPE, + Uint16Array: TYPE, + Int32Array: TYPE, + Uint32Array: TYPE, + Float32Array: TYPE, + Float64Array: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2016.full.ts b/packages/scope-manager/src/lib/es2016.full.ts index f552ff7c85c0..d5fcae377c81 100644 --- a/packages/scope-manager/src/lib/es2016.full.ts +++ b/packages/scope-manager/src/lib/es2016.full.ts @@ -4,12 +4,11 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - -import { dom } from './dom'; -import { dom_iterable } from './dom.iterable'; import { es2016 } from './es2016'; -import { scripthost } from './scripthost'; +import { dom } from './dom'; import { webworker_importscripts } from './webworker.importscripts'; +import { scripthost } from './scripthost'; +import { dom_iterable } from './dom.iterable'; export const es2016_full = { ...es2016, diff --git a/packages/scope-manager/src/lib/es2016.intl.ts b/packages/scope-manager/src/lib/es2016.intl.ts index a4a0282d79e3..41ebb5cc0e7a 100644 --- a/packages/scope-manager/src/lib/es2016.intl.ts +++ b/packages/scope-manager/src/lib/es2016.intl.ts @@ -4,7 +4,6 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE_VALUE } from './base-config'; export const es2016_intl = { diff --git a/packages/scope-manager/src/lib/es2016.ts b/packages/scope-manager/src/lib/es2016.ts index 012ed4300f5d..ca9d3e0649a2 100644 --- a/packages/scope-manager/src/lib/es2016.ts +++ b/packages/scope-manager/src/lib/es2016.ts @@ -4,7 +4,6 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { es2015 } from './es2015'; import { es2016_array_include } from './es2016.array.include'; import { es2016_intl } from './es2016.intl'; diff --git a/packages/scope-manager/src/lib/es2017.date.ts b/packages/scope-manager/src/lib/es2017.date.ts index 7e6ddb0bf4ff..681abffab85e 100644 --- a/packages/scope-manager/src/lib/es2017.date.ts +++ b/packages/scope-manager/src/lib/es2017.date.ts @@ -4,7 +4,6 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const es2017_date = { diff --git a/packages/scope-manager/src/lib/es2017.full.ts b/packages/scope-manager/src/lib/es2017.full.ts index 1c2253575b8a..b3cc9ff80b37 100644 --- a/packages/scope-manager/src/lib/es2017.full.ts +++ b/packages/scope-manager/src/lib/es2017.full.ts @@ -4,12 +4,11 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - -import { dom } from './dom'; -import { dom_iterable } from './dom.iterable'; import { es2017 } from './es2017'; -import { scripthost } from './scripthost'; +import { dom } from './dom'; import { webworker_importscripts } from './webworker.importscripts'; +import { scripthost } from './scripthost'; +import { dom_iterable } from './dom.iterable'; export const es2017_full = { ...es2017, diff --git a/packages/scope-manager/src/lib/es2017.intl.ts b/packages/scope-manager/src/lib/es2017.intl.ts index 2c367997a0e3..614743b2cf80 100644 --- a/packages/scope-manager/src/lib/es2017.intl.ts +++ b/packages/scope-manager/src/lib/es2017.intl.ts @@ -4,7 +4,6 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE_VALUE } from './base-config'; export const es2017_intl = { diff --git a/packages/scope-manager/src/lib/es2017.object.ts b/packages/scope-manager/src/lib/es2017.object.ts index 59e67bedde15..a729bcbc5d62 100644 --- a/packages/scope-manager/src/lib/es2017.object.ts +++ b/packages/scope-manager/src/lib/es2017.object.ts @@ -4,7 +4,6 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const es2017_object = { diff --git a/packages/scope-manager/src/lib/es2017.sharedmemory.ts b/packages/scope-manager/src/lib/es2017.sharedmemory.ts index 3fb6683246c6..7dec221993b9 100644 --- a/packages/scope-manager/src/lib/es2017.sharedmemory.ts +++ b/packages/scope-manager/src/lib/es2017.sharedmemory.ts @@ -4,16 +4,15 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - -import { TYPE, TYPE_VALUE } from './base-config'; import { es2015_symbol } from './es2015.symbol'; import { es2015_symbol_wellknown } from './es2015.symbol.wellknown'; +import { TYPE, TYPE_VALUE } from './base-config'; export const es2017_sharedmemory = { ...es2015_symbol, ...es2015_symbol_wellknown, - ArrayBufferTypes: TYPE, - Atomics: TYPE_VALUE, SharedArrayBuffer: TYPE_VALUE, SharedArrayBufferConstructor: TYPE, + ArrayBufferTypes: TYPE, + Atomics: TYPE_VALUE, } as Record; diff --git a/packages/scope-manager/src/lib/es2017.string.ts b/packages/scope-manager/src/lib/es2017.string.ts index 12c9489e0e89..5ed4ee633cea 100644 --- a/packages/scope-manager/src/lib/es2017.string.ts +++ b/packages/scope-manager/src/lib/es2017.string.ts @@ -4,7 +4,6 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const es2017_string = { diff --git a/packages/scope-manager/src/lib/es2017.ts b/packages/scope-manager/src/lib/es2017.ts index 7545cfe88905..1aff08897316 100644 --- a/packages/scope-manager/src/lib/es2017.ts +++ b/packages/scope-manager/src/lib/es2017.ts @@ -4,14 +4,13 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { es2016 } from './es2016'; -import { es2017_date } from './es2017.date'; -import { es2017_intl } from './es2017.intl'; import { es2017_object } from './es2017.object'; import { es2017_sharedmemory } from './es2017.sharedmemory'; import { es2017_string } from './es2017.string'; +import { es2017_intl } from './es2017.intl'; import { es2017_typedarrays } from './es2017.typedarrays'; +import { es2017_date } from './es2017.date'; export const es2017 = { ...es2016, diff --git a/packages/scope-manager/src/lib/es2017.typedarrays.ts b/packages/scope-manager/src/lib/es2017.typedarrays.ts index 3ba7c6d3488c..9c4791da7a6d 100644 --- a/packages/scope-manager/src/lib/es2017.typedarrays.ts +++ b/packages/scope-manager/src/lib/es2017.typedarrays.ts @@ -4,17 +4,16 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const es2017_typedarrays = { - Float32ArrayConstructor: TYPE, - Float64ArrayConstructor: TYPE, - Int16ArrayConstructor: TYPE, - Int32ArrayConstructor: TYPE, Int8ArrayConstructor: TYPE, - Uint16ArrayConstructor: TYPE, - Uint32ArrayConstructor: TYPE, Uint8ArrayConstructor: TYPE, Uint8ClampedArrayConstructor: TYPE, + Int16ArrayConstructor: TYPE, + Uint16ArrayConstructor: TYPE, + Int32ArrayConstructor: TYPE, + Uint32ArrayConstructor: TYPE, + Float32ArrayConstructor: TYPE, + Float64ArrayConstructor: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2018.asyncgenerator.ts b/packages/scope-manager/src/lib/es2018.asyncgenerator.ts index 3f5b34fac26f..7e5c0cd70555 100644 --- a/packages/scope-manager/src/lib/es2018.asyncgenerator.ts +++ b/packages/scope-manager/src/lib/es2018.asyncgenerator.ts @@ -4,9 +4,8 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - -import { TYPE } from './base-config'; import { es2018_asynciterable } from './es2018.asynciterable'; +import { TYPE } from './base-config'; export const es2018_asyncgenerator = { ...es2018_asynciterable, diff --git a/packages/scope-manager/src/lib/es2018.asynciterable.ts b/packages/scope-manager/src/lib/es2018.asynciterable.ts index be699549e4be..c210a1ba9c88 100644 --- a/packages/scope-manager/src/lib/es2018.asynciterable.ts +++ b/packages/scope-manager/src/lib/es2018.asynciterable.ts @@ -4,16 +4,16 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - -import { TYPE } from './base-config'; -import { es2015_iterable } from './es2015.iterable'; import { es2015_symbol } from './es2015.symbol'; +import { es2015_iterable } from './es2015.iterable'; +import { TYPE } from './base-config'; export const es2018_asynciterable = { ...es2015_symbol, ...es2015_iterable, + SymbolConstructor: TYPE, + AsyncIterator: TYPE, AsyncIterable: TYPE, AsyncIterableIterator: TYPE, - AsyncIterator: TYPE, - SymbolConstructor: TYPE, + AsyncIteratorObject: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2018.full.ts b/packages/scope-manager/src/lib/es2018.full.ts index 6e50bbfcc3ed..addd8128cd14 100644 --- a/packages/scope-manager/src/lib/es2018.full.ts +++ b/packages/scope-manager/src/lib/es2018.full.ts @@ -4,13 +4,12 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - -import { dom } from './dom'; -import { dom_asynciterable } from './dom.asynciterable'; -import { dom_iterable } from './dom.iterable'; import { es2018 } from './es2018'; -import { scripthost } from './scripthost'; +import { dom } from './dom'; import { webworker_importscripts } from './webworker.importscripts'; +import { scripthost } from './scripthost'; +import { dom_iterable } from './dom.iterable'; +import { dom_asynciterable } from './dom.asynciterable'; export const es2018_full = { ...es2018, diff --git a/packages/scope-manager/src/lib/es2018.intl.ts b/packages/scope-manager/src/lib/es2018.intl.ts index 8528ded2e560..0ffb4f5d4c7d 100644 --- a/packages/scope-manager/src/lib/es2018.intl.ts +++ b/packages/scope-manager/src/lib/es2018.intl.ts @@ -4,7 +4,6 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE_VALUE } from './base-config'; export const es2018_intl = { diff --git a/packages/scope-manager/src/lib/es2018.promise.ts b/packages/scope-manager/src/lib/es2018.promise.ts index 8fb2afac890f..115ae6e5dc2b 100644 --- a/packages/scope-manager/src/lib/es2018.promise.ts +++ b/packages/scope-manager/src/lib/es2018.promise.ts @@ -4,7 +4,6 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const es2018_promise = { diff --git a/packages/scope-manager/src/lib/es2018.regexp.ts b/packages/scope-manager/src/lib/es2018.regexp.ts index ed0e5582ed09..052c1a3c7fb0 100644 --- a/packages/scope-manager/src/lib/es2018.regexp.ts +++ b/packages/scope-manager/src/lib/es2018.regexp.ts @@ -4,11 +4,10 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const es2018_regexp = { - RegExp: TYPE, - RegExpExecArray: TYPE, RegExpMatchArray: TYPE, + RegExpExecArray: TYPE, + RegExp: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2018.ts b/packages/scope-manager/src/lib/es2018.ts index 8834e8356566..bea7009c5e2e 100644 --- a/packages/scope-manager/src/lib/es2018.ts +++ b/packages/scope-manager/src/lib/es2018.ts @@ -4,13 +4,12 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { es2017 } from './es2017'; -import { es2018_asyncgenerator } from './es2018.asyncgenerator'; import { es2018_asynciterable } from './es2018.asynciterable'; -import { es2018_intl } from './es2018.intl'; +import { es2018_asyncgenerator } from './es2018.asyncgenerator'; import { es2018_promise } from './es2018.promise'; import { es2018_regexp } from './es2018.regexp'; +import { es2018_intl } from './es2018.intl'; export const es2018 = { ...es2017, diff --git a/packages/scope-manager/src/lib/es2019.array.ts b/packages/scope-manager/src/lib/es2019.array.ts index 2f6eb79cec78..3c6c20884899 100644 --- a/packages/scope-manager/src/lib/es2019.array.ts +++ b/packages/scope-manager/src/lib/es2019.array.ts @@ -4,11 +4,10 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const es2019_array = { - Array: TYPE, FlatArray: TYPE, ReadonlyArray: TYPE, + Array: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2019.full.ts b/packages/scope-manager/src/lib/es2019.full.ts index 1534395dfbdb..3a224ec65a73 100644 --- a/packages/scope-manager/src/lib/es2019.full.ts +++ b/packages/scope-manager/src/lib/es2019.full.ts @@ -4,13 +4,12 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - -import { dom } from './dom'; -import { dom_asynciterable } from './dom.asynciterable'; -import { dom_iterable } from './dom.iterable'; import { es2019 } from './es2019'; -import { scripthost } from './scripthost'; +import { dom } from './dom'; import { webworker_importscripts } from './webworker.importscripts'; +import { scripthost } from './scripthost'; +import { dom_iterable } from './dom.iterable'; +import { dom_asynciterable } from './dom.asynciterable'; export const es2019_full = { ...es2019, diff --git a/packages/scope-manager/src/lib/es2019.intl.ts b/packages/scope-manager/src/lib/es2019.intl.ts index 993a7041a086..796d95270b47 100644 --- a/packages/scope-manager/src/lib/es2019.intl.ts +++ b/packages/scope-manager/src/lib/es2019.intl.ts @@ -4,7 +4,6 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE_VALUE } from './base-config'; export const es2019_intl = { diff --git a/packages/scope-manager/src/lib/es2019.object.ts b/packages/scope-manager/src/lib/es2019.object.ts index 28dd803e0bd1..028fc504195f 100644 --- a/packages/scope-manager/src/lib/es2019.object.ts +++ b/packages/scope-manager/src/lib/es2019.object.ts @@ -4,9 +4,8 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - -import { TYPE } from './base-config'; import { es2015_iterable } from './es2015.iterable'; +import { TYPE } from './base-config'; export const es2019_object = { ...es2015_iterable, diff --git a/packages/scope-manager/src/lib/es2019.string.ts b/packages/scope-manager/src/lib/es2019.string.ts index cd34b8717bca..ba73161203cd 100644 --- a/packages/scope-manager/src/lib/es2019.string.ts +++ b/packages/scope-manager/src/lib/es2019.string.ts @@ -4,7 +4,6 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const es2019_string = { diff --git a/packages/scope-manager/src/lib/es2019.symbol.ts b/packages/scope-manager/src/lib/es2019.symbol.ts index 0b06cead4528..13e2081bb561 100644 --- a/packages/scope-manager/src/lib/es2019.symbol.ts +++ b/packages/scope-manager/src/lib/es2019.symbol.ts @@ -4,7 +4,6 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const es2019_symbol = { diff --git a/packages/scope-manager/src/lib/es2019.ts b/packages/scope-manager/src/lib/es2019.ts index 3149f1a5dec2..6162c20cabd8 100644 --- a/packages/scope-manager/src/lib/es2019.ts +++ b/packages/scope-manager/src/lib/es2019.ts @@ -4,13 +4,12 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { es2018 } from './es2018'; import { es2019_array } from './es2019.array'; -import { es2019_intl } from './es2019.intl'; import { es2019_object } from './es2019.object'; import { es2019_string } from './es2019.string'; import { es2019_symbol } from './es2019.symbol'; +import { es2019_intl } from './es2019.intl'; export const es2019 = { ...es2018, diff --git a/packages/scope-manager/src/lib/es2020.bigint.ts b/packages/scope-manager/src/lib/es2020.bigint.ts index 032c687a0fea..bd937a277afb 100644 --- a/packages/scope-manager/src/lib/es2020.bigint.ts +++ b/packages/scope-manager/src/lib/es2020.bigint.ts @@ -4,17 +4,16 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - -import { TYPE, TYPE_VALUE } from './base-config'; import { es2020_intl } from './es2020.intl'; +import { TYPE, TYPE_VALUE } from './base-config'; export const es2020_bigint = { ...es2020_intl, + BigIntToLocaleStringOptions: TYPE, BigInt: TYPE_VALUE, + BigIntConstructor: TYPE, BigInt64Array: TYPE_VALUE, BigInt64ArrayConstructor: TYPE, - BigIntConstructor: TYPE, - BigIntToLocaleStringOptions: TYPE, BigUint64Array: TYPE_VALUE, BigUint64ArrayConstructor: TYPE, DataView: TYPE, diff --git a/packages/scope-manager/src/lib/es2020.date.ts b/packages/scope-manager/src/lib/es2020.date.ts index ebbfd3ba1c7e..869805054f7e 100644 --- a/packages/scope-manager/src/lib/es2020.date.ts +++ b/packages/scope-manager/src/lib/es2020.date.ts @@ -4,9 +4,8 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - -import { TYPE } from './base-config'; import { es2020_intl } from './es2020.intl'; +import { TYPE } from './base-config'; export const es2020_date = { ...es2020_intl, diff --git a/packages/scope-manager/src/lib/es2020.full.ts b/packages/scope-manager/src/lib/es2020.full.ts index cedfb0cff609..f2581e5e3cad 100644 --- a/packages/scope-manager/src/lib/es2020.full.ts +++ b/packages/scope-manager/src/lib/es2020.full.ts @@ -4,13 +4,12 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - -import { dom } from './dom'; -import { dom_asynciterable } from './dom.asynciterable'; -import { dom_iterable } from './dom.iterable'; import { es2020 } from './es2020'; -import { scripthost } from './scripthost'; +import { dom } from './dom'; import { webworker_importscripts } from './webworker.importscripts'; +import { scripthost } from './scripthost'; +import { dom_iterable } from './dom.iterable'; +import { dom_asynciterable } from './dom.asynciterable'; export const es2020_full = { ...es2020, diff --git a/packages/scope-manager/src/lib/es2020.intl.ts b/packages/scope-manager/src/lib/es2020.intl.ts index 840d934c082d..bcba2512291b 100644 --- a/packages/scope-manager/src/lib/es2020.intl.ts +++ b/packages/scope-manager/src/lib/es2020.intl.ts @@ -4,9 +4,8 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - -import { TYPE_VALUE } from './base-config'; import { es2018_intl } from './es2018.intl'; +import { TYPE_VALUE } from './base-config'; export const es2020_intl = { ...es2018_intl, diff --git a/packages/scope-manager/src/lib/es2020.number.ts b/packages/scope-manager/src/lib/es2020.number.ts index 7a3b2d5f9ca7..d79d3acdadf1 100644 --- a/packages/scope-manager/src/lib/es2020.number.ts +++ b/packages/scope-manager/src/lib/es2020.number.ts @@ -4,9 +4,8 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - -import { TYPE } from './base-config'; import { es2020_intl } from './es2020.intl'; +import { TYPE } from './base-config'; export const es2020_number = { ...es2020_intl, diff --git a/packages/scope-manager/src/lib/es2020.promise.ts b/packages/scope-manager/src/lib/es2020.promise.ts index 723106a28d53..64ffc79e4767 100644 --- a/packages/scope-manager/src/lib/es2020.promise.ts +++ b/packages/scope-manager/src/lib/es2020.promise.ts @@ -4,12 +4,11 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const es2020_promise = { - PromiseConstructor: TYPE, PromiseFulfilledResult: TYPE, PromiseRejectedResult: TYPE, PromiseSettledResult: TYPE, + PromiseConstructor: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2020.sharedmemory.ts b/packages/scope-manager/src/lib/es2020.sharedmemory.ts index 64d35af18c70..4965bc462f30 100644 --- a/packages/scope-manager/src/lib/es2020.sharedmemory.ts +++ b/packages/scope-manager/src/lib/es2020.sharedmemory.ts @@ -4,7 +4,6 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const es2020_sharedmemory = { diff --git a/packages/scope-manager/src/lib/es2020.string.ts b/packages/scope-manager/src/lib/es2020.string.ts index 5fac2e71e077..8ae20e92fba4 100644 --- a/packages/scope-manager/src/lib/es2020.string.ts +++ b/packages/scope-manager/src/lib/es2020.string.ts @@ -4,9 +4,8 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - -import { TYPE } from './base-config'; import { es2020_symbol_wellknown } from './es2020.symbol.wellknown'; +import { TYPE } from './base-config'; export const es2020_string = { ...es2020_symbol_wellknown, diff --git a/packages/scope-manager/src/lib/es2020.symbol.wellknown.ts b/packages/scope-manager/src/lib/es2020.symbol.wellknown.ts index 733a9bb91f77..893f3d2c6602 100644 --- a/packages/scope-manager/src/lib/es2020.symbol.wellknown.ts +++ b/packages/scope-manager/src/lib/es2020.symbol.wellknown.ts @@ -4,14 +4,14 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - -import { TYPE } from './base-config'; import { es2015_iterable } from './es2015.iterable'; import { es2015_symbol } from './es2015.symbol'; +import { TYPE } from './base-config'; export const es2020_symbol_wellknown = { ...es2015_iterable, ...es2015_symbol, - RegExp: TYPE, SymbolConstructor: TYPE, + RegExpStringIterator: TYPE, + RegExp: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2020.ts b/packages/scope-manager/src/lib/es2020.ts index eb0b136fe2f2..30ae92763a4a 100644 --- a/packages/scope-manager/src/lib/es2020.ts +++ b/packages/scope-manager/src/lib/es2020.ts @@ -4,16 +4,15 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { es2019 } from './es2019'; import { es2020_bigint } from './es2020.bigint'; import { es2020_date } from './es2020.date'; -import { es2020_intl } from './es2020.intl'; import { es2020_number } from './es2020.number'; import { es2020_promise } from './es2020.promise'; import { es2020_sharedmemory } from './es2020.sharedmemory'; import { es2020_string } from './es2020.string'; import { es2020_symbol_wellknown } from './es2020.symbol.wellknown'; +import { es2020_intl } from './es2020.intl'; export const es2020 = { ...es2019, diff --git a/packages/scope-manager/src/lib/es2021.full.ts b/packages/scope-manager/src/lib/es2021.full.ts index 514af328e37c..b9047a323634 100644 --- a/packages/scope-manager/src/lib/es2021.full.ts +++ b/packages/scope-manager/src/lib/es2021.full.ts @@ -4,13 +4,12 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - -import { dom } from './dom'; -import { dom_asynciterable } from './dom.asynciterable'; -import { dom_iterable } from './dom.iterable'; import { es2021 } from './es2021'; -import { scripthost } from './scripthost'; +import { dom } from './dom'; import { webworker_importscripts } from './webworker.importscripts'; +import { scripthost } from './scripthost'; +import { dom_iterable } from './dom.iterable'; +import { dom_asynciterable } from './dom.asynciterable'; export const es2021_full = { ...es2021, diff --git a/packages/scope-manager/src/lib/es2021.intl.ts b/packages/scope-manager/src/lib/es2021.intl.ts index b93a4c6108a7..c44967c56993 100644 --- a/packages/scope-manager/src/lib/es2021.intl.ts +++ b/packages/scope-manager/src/lib/es2021.intl.ts @@ -4,7 +4,6 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE_VALUE } from './base-config'; export const es2021_intl = { diff --git a/packages/scope-manager/src/lib/es2021.promise.ts b/packages/scope-manager/src/lib/es2021.promise.ts index e14ed9218633..ce63bedb4f88 100644 --- a/packages/scope-manager/src/lib/es2021.promise.ts +++ b/packages/scope-manager/src/lib/es2021.promise.ts @@ -4,7 +4,6 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE, TYPE_VALUE } from './base-config'; export const es2021_promise = { diff --git a/packages/scope-manager/src/lib/es2021.string.ts b/packages/scope-manager/src/lib/es2021.string.ts index d5f73f5c6b2b..b02bcd1eaee6 100644 --- a/packages/scope-manager/src/lib/es2021.string.ts +++ b/packages/scope-manager/src/lib/es2021.string.ts @@ -4,7 +4,6 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const es2021_string = { diff --git a/packages/scope-manager/src/lib/es2021.ts b/packages/scope-manager/src/lib/es2021.ts index 4339d22bf547..c9a70c02f405 100644 --- a/packages/scope-manager/src/lib/es2021.ts +++ b/packages/scope-manager/src/lib/es2021.ts @@ -4,12 +4,11 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { es2020 } from './es2020'; -import { es2021_intl } from './es2021.intl'; import { es2021_promise } from './es2021.promise'; import { es2021_string } from './es2021.string'; import { es2021_weakref } from './es2021.weakref'; +import { es2021_intl } from './es2021.intl'; export const es2021 = { ...es2020, diff --git a/packages/scope-manager/src/lib/es2021.weakref.ts b/packages/scope-manager/src/lib/es2021.weakref.ts index 93aa18db7a90..742d76df1c15 100644 --- a/packages/scope-manager/src/lib/es2021.weakref.ts +++ b/packages/scope-manager/src/lib/es2021.weakref.ts @@ -4,12 +4,11 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE, TYPE_VALUE } from './base-config'; export const es2021_weakref = { - FinalizationRegistry: TYPE_VALUE, - FinalizationRegistryConstructor: TYPE, WeakRef: TYPE_VALUE, WeakRefConstructor: TYPE, + FinalizationRegistry: TYPE_VALUE, + FinalizationRegistryConstructor: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2022.array.ts b/packages/scope-manager/src/lib/es2022.array.ts index ed14bc4430aa..a533753be207 100644 --- a/packages/scope-manager/src/lib/es2022.array.ts +++ b/packages/scope-manager/src/lib/es2022.array.ts @@ -4,21 +4,20 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const es2022_array = { Array: TYPE, - BigInt64Array: TYPE, - BigUint64Array: TYPE, - Float32Array: TYPE, - Float64Array: TYPE, - Int16Array: TYPE, - Int32Array: TYPE, - Int8Array: TYPE, ReadonlyArray: TYPE, - Uint16Array: TYPE, - Uint32Array: TYPE, + Int8Array: TYPE, Uint8Array: TYPE, Uint8ClampedArray: TYPE, + Int16Array: TYPE, + Uint16Array: TYPE, + Int32Array: TYPE, + Uint32Array: TYPE, + Float32Array: TYPE, + Float64Array: TYPE, + BigInt64Array: TYPE, + BigUint64Array: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2022.error.ts b/packages/scope-manager/src/lib/es2022.error.ts index 8f7225ac1b3a..e23bc8a779aa 100644 --- a/packages/scope-manager/src/lib/es2022.error.ts +++ b/packages/scope-manager/src/lib/es2022.error.ts @@ -4,18 +4,17 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const es2022_error = { - AggregateErrorConstructor: TYPE, + ErrorOptions: TYPE, Error: TYPE, ErrorConstructor: TYPE, - ErrorOptions: TYPE, EvalErrorConstructor: TYPE, RangeErrorConstructor: TYPE, ReferenceErrorConstructor: TYPE, SyntaxErrorConstructor: TYPE, TypeErrorConstructor: TYPE, URIErrorConstructor: TYPE, + AggregateErrorConstructor: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2022.full.ts b/packages/scope-manager/src/lib/es2022.full.ts index f6b83e9f5a6b..8ee6fe7ec7b0 100644 --- a/packages/scope-manager/src/lib/es2022.full.ts +++ b/packages/scope-manager/src/lib/es2022.full.ts @@ -4,13 +4,12 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - -import { dom } from './dom'; -import { dom_asynciterable } from './dom.asynciterable'; -import { dom_iterable } from './dom.iterable'; import { es2022 } from './es2022'; -import { scripthost } from './scripthost'; +import { dom } from './dom'; import { webworker_importscripts } from './webworker.importscripts'; +import { scripthost } from './scripthost'; +import { dom_iterable } from './dom.iterable'; +import { dom_asynciterable } from './dom.asynciterable'; export const es2022_full = { ...es2022, diff --git a/packages/scope-manager/src/lib/es2022.intl.ts b/packages/scope-manager/src/lib/es2022.intl.ts index 4300f78f1a5e..0bacc1cd58d4 100644 --- a/packages/scope-manager/src/lib/es2022.intl.ts +++ b/packages/scope-manager/src/lib/es2022.intl.ts @@ -4,7 +4,6 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE_VALUE } from './base-config'; export const es2022_intl = { diff --git a/packages/scope-manager/src/lib/es2022.object.ts b/packages/scope-manager/src/lib/es2022.object.ts index 7d84d496f3f0..37cb6296ac81 100644 --- a/packages/scope-manager/src/lib/es2022.object.ts +++ b/packages/scope-manager/src/lib/es2022.object.ts @@ -4,7 +4,6 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const es2022_object = { diff --git a/packages/scope-manager/src/lib/es2022.regexp.ts b/packages/scope-manager/src/lib/es2022.regexp.ts index e8f4c983b399..d184e219e9b5 100644 --- a/packages/scope-manager/src/lib/es2022.regexp.ts +++ b/packages/scope-manager/src/lib/es2022.regexp.ts @@ -4,12 +4,11 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const es2022_regexp = { - RegExp: TYPE, + RegExpMatchArray: TYPE, RegExpExecArray: TYPE, RegExpIndicesArray: TYPE, - RegExpMatchArray: TYPE, + RegExp: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2022.sharedmemory.ts b/packages/scope-manager/src/lib/es2022.sharedmemory.ts index 70fdc6bcdf4a..41696abdc52c 100644 --- a/packages/scope-manager/src/lib/es2022.sharedmemory.ts +++ b/packages/scope-manager/src/lib/es2022.sharedmemory.ts @@ -4,7 +4,6 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const es2022_sharedmemory = { diff --git a/packages/scope-manager/src/lib/es2022.string.ts b/packages/scope-manager/src/lib/es2022.string.ts index c7e523d495b1..80aa6e9a8a0e 100644 --- a/packages/scope-manager/src/lib/es2022.string.ts +++ b/packages/scope-manager/src/lib/es2022.string.ts @@ -4,7 +4,6 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const es2022_string = { diff --git a/packages/scope-manager/src/lib/es2022.ts b/packages/scope-manager/src/lib/es2022.ts index aa55b2f1b432..c109282b6897 100644 --- a/packages/scope-manager/src/lib/es2022.ts +++ b/packages/scope-manager/src/lib/es2022.ts @@ -4,15 +4,14 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { es2021 } from './es2021'; import { es2022_array } from './es2022.array'; import { es2022_error } from './es2022.error'; import { es2022_intl } from './es2022.intl'; import { es2022_object } from './es2022.object'; -import { es2022_regexp } from './es2022.regexp'; import { es2022_sharedmemory } from './es2022.sharedmemory'; import { es2022_string } from './es2022.string'; +import { es2022_regexp } from './es2022.regexp'; export const es2022 = { ...es2021, diff --git a/packages/scope-manager/src/lib/es2023.array.ts b/packages/scope-manager/src/lib/es2023.array.ts index 02a5f2ef521c..493c23238414 100644 --- a/packages/scope-manager/src/lib/es2023.array.ts +++ b/packages/scope-manager/src/lib/es2023.array.ts @@ -4,21 +4,20 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const es2023_array = { Array: TYPE, - BigInt64Array: TYPE, - BigUint64Array: TYPE, - Float32Array: TYPE, - Float64Array: TYPE, - Int16Array: TYPE, - Int32Array: TYPE, - Int8Array: TYPE, ReadonlyArray: TYPE, - Uint16Array: TYPE, - Uint32Array: TYPE, + Int8Array: TYPE, Uint8Array: TYPE, Uint8ClampedArray: TYPE, + Int16Array: TYPE, + Uint16Array: TYPE, + Int32Array: TYPE, + Uint32Array: TYPE, + Float32Array: TYPE, + Float64Array: TYPE, + BigInt64Array: TYPE, + BigUint64Array: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2023.collection.ts b/packages/scope-manager/src/lib/es2023.collection.ts index c555fc4553c2..b5ea8e71c9b2 100644 --- a/packages/scope-manager/src/lib/es2023.collection.ts +++ b/packages/scope-manager/src/lib/es2023.collection.ts @@ -4,7 +4,6 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const es2023_collection = { diff --git a/packages/scope-manager/src/lib/es2023.full.ts b/packages/scope-manager/src/lib/es2023.full.ts index 851eaa7f801d..f8713f0f4092 100644 --- a/packages/scope-manager/src/lib/es2023.full.ts +++ b/packages/scope-manager/src/lib/es2023.full.ts @@ -4,13 +4,12 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - -import { dom } from './dom'; -import { dom_asynciterable } from './dom.asynciterable'; -import { dom_iterable } from './dom.iterable'; import { es2023 } from './es2023'; -import { scripthost } from './scripthost'; +import { dom } from './dom'; import { webworker_importscripts } from './webworker.importscripts'; +import { scripthost } from './scripthost'; +import { dom_iterable } from './dom.iterable'; +import { dom_asynciterable } from './dom.asynciterable'; export const es2023_full = { ...es2023, diff --git a/packages/scope-manager/src/lib/es2023.intl.ts b/packages/scope-manager/src/lib/es2023.intl.ts index 0a39cbacd8e5..33f94aa18f02 100644 --- a/packages/scope-manager/src/lib/es2023.intl.ts +++ b/packages/scope-manager/src/lib/es2023.intl.ts @@ -4,7 +4,6 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE_VALUE } from './base-config'; export const es2023_intl = { diff --git a/packages/scope-manager/src/lib/es2023.ts b/packages/scope-manager/src/lib/es2023.ts index 9d8ef483d95c..098ab48dbb11 100644 --- a/packages/scope-manager/src/lib/es2023.ts +++ b/packages/scope-manager/src/lib/es2023.ts @@ -4,7 +4,6 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { es2022 } from './es2022'; import { es2023_array } from './es2023.array'; import { es2023_collection } from './es2023.collection'; diff --git a/packages/scope-manager/src/lib/es5.ts b/packages/scope-manager/src/lib/es5.ts index 47cd0f0e9861..9cc47710e60d 100644 --- a/packages/scope-manager/src/lib/es5.ts +++ b/packages/scope-manager/src/lib/es5.ts @@ -4,115 +4,114 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - -import { TYPE, TYPE_VALUE } from './base-config'; import { decorators } from './decorators'; import { decorators_legacy } from './decorators.legacy'; +import { TYPE, TYPE_VALUE } from './base-config'; export const es5 = { ...decorators, ...decorators_legacy, - Array: TYPE_VALUE, - ArrayBuffer: TYPE_VALUE, - ArrayBufferConstructor: TYPE, - ArrayBufferLike: TYPE, - ArrayBufferTypes: TYPE, - ArrayBufferView: TYPE, - ArrayConstructor: TYPE, - ArrayLike: TYPE, - Awaited: TYPE, + Symbol: TYPE, + PropertyKey: TYPE, + PropertyDescriptor: TYPE, + PropertyDescriptorMap: TYPE, + Object: TYPE_VALUE, + ObjectConstructor: TYPE, + Function: TYPE_VALUE, + FunctionConstructor: TYPE, + ThisParameterType: TYPE, + OmitThisParameter: TYPE, + CallableFunction: TYPE, + NewableFunction: TYPE, + IArguments: TYPE, + String: TYPE_VALUE, + StringConstructor: TYPE, Boolean: TYPE_VALUE, BooleanConstructor: TYPE, - CallableFunction: TYPE, - Capitalize: TYPE, - ConcatArray: TYPE, - ConstructorParameters: TYPE, - DataView: TYPE_VALUE, - DataViewConstructor: TYPE, + Number: TYPE_VALUE, + NumberConstructor: TYPE, + TemplateStringsArray: TYPE, + ImportMeta: TYPE, + ImportCallOptions: TYPE, + ImportAssertions: TYPE, + ImportAttributes: TYPE, + Math: TYPE_VALUE, Date: TYPE_VALUE, DateConstructor: TYPE, + RegExpMatchArray: TYPE, + RegExpExecArray: TYPE, + RegExp: TYPE_VALUE, + RegExpConstructor: TYPE, Error: TYPE_VALUE, ErrorConstructor: TYPE, EvalError: TYPE_VALUE, EvalErrorConstructor: TYPE, - Exclude: TYPE, - Extract: TYPE, - Float32Array: TYPE_VALUE, - Float32ArrayConstructor: TYPE, - Float64Array: TYPE_VALUE, - Float64ArrayConstructor: TYPE, - Function: TYPE_VALUE, - FunctionConstructor: TYPE, - IArguments: TYPE, - ImportAssertions: TYPE, - ImportAttributes: TYPE, - ImportCallOptions: TYPE, - ImportMeta: TYPE, - InstanceType: TYPE, - Int16Array: TYPE_VALUE, - Int16ArrayConstructor: TYPE, - Int32Array: TYPE_VALUE, - Int32ArrayConstructor: TYPE, - Int8Array: TYPE_VALUE, - Int8ArrayConstructor: TYPE, - Intl: TYPE_VALUE, - JSON: TYPE_VALUE, - Lowercase: TYPE, - Math: TYPE_VALUE, - NewableFunction: TYPE, - NoInfer: TYPE, - NonNullable: TYPE, - Number: TYPE_VALUE, - NumberConstructor: TYPE, - Object: TYPE_VALUE, - ObjectConstructor: TYPE, - Omit: TYPE, - OmitThisParameter: TYPE, - Parameters: TYPE, - Partial: TYPE, - Pick: TYPE, - Promise: TYPE, - PromiseConstructorLike: TYPE, - PromiseLike: TYPE, - PropertyDescriptor: TYPE, - PropertyDescriptorMap: TYPE, - PropertyKey: TYPE, RangeError: TYPE_VALUE, RangeErrorConstructor: TYPE, - Readonly: TYPE, - ReadonlyArray: TYPE, - Record: TYPE, ReferenceError: TYPE_VALUE, ReferenceErrorConstructor: TYPE, - RegExp: TYPE_VALUE, - RegExpConstructor: TYPE, - RegExpExecArray: TYPE, - RegExpMatchArray: TYPE, - Required: TYPE, - ReturnType: TYPE, - String: TYPE_VALUE, - StringConstructor: TYPE, - Symbol: TYPE, SyntaxError: TYPE_VALUE, SyntaxErrorConstructor: TYPE, - TemplateStringsArray: TYPE, - ThisParameterType: TYPE, - ThisType: TYPE, - TypedPropertyDescriptor: TYPE, TypeError: TYPE_VALUE, TypeErrorConstructor: TYPE, - Uint16Array: TYPE_VALUE, - Uint16ArrayConstructor: TYPE, - Uint32Array: TYPE_VALUE, - Uint32ArrayConstructor: TYPE, + URIError: TYPE_VALUE, + URIErrorConstructor: TYPE, + JSON: TYPE_VALUE, + ReadonlyArray: TYPE, + ConcatArray: TYPE, + Array: TYPE_VALUE, + ArrayConstructor: TYPE, + TypedPropertyDescriptor: TYPE, + PromiseConstructorLike: TYPE, + PromiseLike: TYPE, + Promise: TYPE, + Awaited: TYPE, + ArrayLike: TYPE, + Partial: TYPE, + Required: TYPE, + Readonly: TYPE, + Pick: TYPE, + Record: TYPE, + Exclude: TYPE, + Extract: TYPE, + Omit: TYPE, + NonNullable: TYPE, + Parameters: TYPE, + ConstructorParameters: TYPE, + ReturnType: TYPE, + InstanceType: TYPE, + Uppercase: TYPE, + Lowercase: TYPE, + Capitalize: TYPE, + Uncapitalize: TYPE, + NoInfer: TYPE, + ThisType: TYPE, + WeakKeyTypes: TYPE, + WeakKey: TYPE, + ArrayBuffer: TYPE_VALUE, + ArrayBufferTypes: TYPE, + ArrayBufferLike: TYPE, + ArrayBufferConstructor: TYPE, + ArrayBufferView: TYPE, + DataView: TYPE_VALUE, + DataViewConstructor: TYPE, + Int8Array: TYPE_VALUE, + Int8ArrayConstructor: TYPE, Uint8Array: TYPE_VALUE, Uint8ArrayConstructor: TYPE, Uint8ClampedArray: TYPE_VALUE, Uint8ClampedArrayConstructor: TYPE, - Uncapitalize: TYPE, - Uppercase: TYPE, - URIError: TYPE_VALUE, - URIErrorConstructor: TYPE, - WeakKey: TYPE, - WeakKeyTypes: TYPE, + Int16Array: TYPE_VALUE, + Int16ArrayConstructor: TYPE, + Uint16Array: TYPE_VALUE, + Uint16ArrayConstructor: TYPE, + Int32Array: TYPE_VALUE, + Int32ArrayConstructor: TYPE, + Uint32Array: TYPE_VALUE, + Uint32ArrayConstructor: TYPE, + Float32Array: TYPE_VALUE, + Float32ArrayConstructor: TYPE, + Float64Array: TYPE_VALUE, + Float64ArrayConstructor: TYPE, + Intl: TYPE_VALUE, } as Record; diff --git a/packages/scope-manager/src/lib/es6.ts b/packages/scope-manager/src/lib/es6.ts index 816b1c684448..d6c07a04f424 100644 --- a/packages/scope-manager/src/lib/es6.ts +++ b/packages/scope-manager/src/lib/es6.ts @@ -4,17 +4,16 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - -import { es2015_collection } from './es2015.collection'; +import { es5 } from './es5'; import { es2015_core } from './es2015.core'; -import { es2015_generator } from './es2015.generator'; +import { es2015_collection } from './es2015.collection'; import { es2015_iterable } from './es2015.iterable'; +import { es2015_generator } from './es2015.generator'; import { es2015_promise } from './es2015.promise'; import { es2015_proxy } from './es2015.proxy'; import { es2015_reflect } from './es2015.reflect'; import { es2015_symbol } from './es2015.symbol'; import { es2015_symbol_wellknown } from './es2015.symbol.wellknown'; -import { es5 } from './es5'; export const es6 = { ...es5, diff --git a/packages/scope-manager/src/lib/es7.ts b/packages/scope-manager/src/lib/es7.ts index ed952867b22d..a80e3b82d468 100644 --- a/packages/scope-manager/src/lib/es7.ts +++ b/packages/scope-manager/src/lib/es7.ts @@ -4,7 +4,6 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { es2015 } from './es2015'; import { es2016_array_include } from './es2016.array.include'; import { es2016_intl } from './es2016.intl'; diff --git a/packages/scope-manager/src/lib/esnext.array.ts b/packages/scope-manager/src/lib/esnext.array.ts index 063063640a3d..2187ffa9d4b8 100644 --- a/packages/scope-manager/src/lib/esnext.array.ts +++ b/packages/scope-manager/src/lib/esnext.array.ts @@ -4,7 +4,6 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const esnext_array = { diff --git a/packages/scope-manager/src/lib/esnext.asynciterable.ts b/packages/scope-manager/src/lib/esnext.asynciterable.ts index 27eff6b90faa..dc8e1d405f9f 100644 --- a/packages/scope-manager/src/lib/esnext.asynciterable.ts +++ b/packages/scope-manager/src/lib/esnext.asynciterable.ts @@ -4,16 +4,16 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - -import { TYPE } from './base-config'; -import { es2015_iterable } from './es2015.iterable'; import { es2015_symbol } from './es2015.symbol'; +import { es2015_iterable } from './es2015.iterable'; +import { TYPE } from './base-config'; export const esnext_asynciterable = { ...es2015_symbol, ...es2015_iterable, + SymbolConstructor: TYPE, + AsyncIterator: TYPE, AsyncIterable: TYPE, AsyncIterableIterator: TYPE, - AsyncIterator: TYPE, - SymbolConstructor: TYPE, + AsyncIteratorObject: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/esnext.bigint.ts b/packages/scope-manager/src/lib/esnext.bigint.ts index f74b181ee487..cb61daacd9a0 100644 --- a/packages/scope-manager/src/lib/esnext.bigint.ts +++ b/packages/scope-manager/src/lib/esnext.bigint.ts @@ -4,17 +4,16 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - -import { TYPE, TYPE_VALUE } from './base-config'; import { es2020_intl } from './es2020.intl'; +import { TYPE, TYPE_VALUE } from './base-config'; export const esnext_bigint = { ...es2020_intl, + BigIntToLocaleStringOptions: TYPE, BigInt: TYPE_VALUE, + BigIntConstructor: TYPE, BigInt64Array: TYPE_VALUE, BigInt64ArrayConstructor: TYPE, - BigIntConstructor: TYPE, - BigIntToLocaleStringOptions: TYPE, BigUint64Array: TYPE_VALUE, BigUint64ArrayConstructor: TYPE, DataView: TYPE, diff --git a/packages/scope-manager/src/lib/esnext.collection.ts b/packages/scope-manager/src/lib/esnext.collection.ts index a4ac9daa3c81..95ca17039a0f 100644 --- a/packages/scope-manager/src/lib/esnext.collection.ts +++ b/packages/scope-manager/src/lib/esnext.collection.ts @@ -4,12 +4,11 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const esnext_collection = { MapConstructor: TYPE, - ReadonlySet: TYPE, ReadonlySetLike: TYPE, Set: TYPE, + ReadonlySet: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/esnext.decorators.ts b/packages/scope-manager/src/lib/esnext.decorators.ts index a56218bbcac7..8ee06a124fad 100644 --- a/packages/scope-manager/src/lib/esnext.decorators.ts +++ b/packages/scope-manager/src/lib/esnext.decorators.ts @@ -4,14 +4,13 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - -import { TYPE } from './base-config'; -import { decorators } from './decorators'; import { es2015_symbol } from './es2015.symbol'; +import { decorators } from './decorators'; +import { TYPE } from './base-config'; export const esnext_decorators = { ...es2015_symbol, ...decorators, - Function: TYPE, SymbolConstructor: TYPE, + Function: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/esnext.disposable.ts b/packages/scope-manager/src/lib/esnext.disposable.ts index 35dbb3d6a4a4..0c3950af2e86 100644 --- a/packages/scope-manager/src/lib/esnext.disposable.ts +++ b/packages/scope-manager/src/lib/esnext.disposable.ts @@ -4,19 +4,24 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - -import { TYPE, TYPE_VALUE } from './base-config'; import { es2015_symbol } from './es2015.symbol'; +import { es2015_iterable } from './es2015.iterable'; +import { es2018_asynciterable } from './es2018.asynciterable'; +import { TYPE, TYPE_VALUE } from './base-config'; export const esnext_disposable = { ...es2015_symbol, - AsyncDisposable: TYPE, - AsyncDisposableStack: TYPE_VALUE, - AsyncDisposableStackConstructor: TYPE, + ...es2015_iterable, + ...es2018_asynciterable, + SymbolConstructor: TYPE, Disposable: TYPE, - DisposableStack: TYPE_VALUE, - DisposableStackConstructor: TYPE, + AsyncDisposable: TYPE, SuppressedError: TYPE_VALUE, SuppressedErrorConstructor: TYPE, - SymbolConstructor: TYPE, + DisposableStack: TYPE_VALUE, + DisposableStackConstructor: TYPE, + AsyncDisposableStack: TYPE_VALUE, + AsyncDisposableStackConstructor: TYPE, + IteratorObject: TYPE, + AsyncIteratorObject: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/esnext.full.ts b/packages/scope-manager/src/lib/esnext.full.ts index 82f1f430cd41..56f94ae67fff 100644 --- a/packages/scope-manager/src/lib/esnext.full.ts +++ b/packages/scope-manager/src/lib/esnext.full.ts @@ -4,13 +4,12 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - -import { dom } from './dom'; -import { dom_asynciterable } from './dom.asynciterable'; -import { dom_iterable } from './dom.iterable'; import { esnext } from './esnext'; -import { scripthost } from './scripthost'; +import { dom } from './dom'; import { webworker_importscripts } from './webworker.importscripts'; +import { scripthost } from './scripthost'; +import { dom_iterable } from './dom.iterable'; +import { dom_asynciterable } from './dom.asynciterable'; export const esnext_full = { ...esnext, diff --git a/packages/scope-manager/src/lib/esnext.intl.ts b/packages/scope-manager/src/lib/esnext.intl.ts index 5a0de1891a15..876bbb1d47c1 100644 --- a/packages/scope-manager/src/lib/esnext.intl.ts +++ b/packages/scope-manager/src/lib/esnext.intl.ts @@ -4,7 +4,6 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE_VALUE } from './base-config'; export const esnext_intl = { diff --git a/packages/scope-manager/src/lib/esnext.iterator.ts b/packages/scope-manager/src/lib/esnext.iterator.ts index 91d38e8dfa93..48219fb55616 100644 --- a/packages/scope-manager/src/lib/esnext.iterator.ts +++ b/packages/scope-manager/src/lib/esnext.iterator.ts @@ -4,8 +4,8 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; -import { TYPE, TYPE_VALUE } from './base-config'; import { es2015_iterable } from './es2015.iterable'; +import { TYPE, TYPE_VALUE } from './base-config'; export const esnext_iterator = { ...es2015_iterable, diff --git a/packages/scope-manager/src/lib/esnext.object.ts b/packages/scope-manager/src/lib/esnext.object.ts index 7364d730c353..8cfe09a5b062 100644 --- a/packages/scope-manager/src/lib/esnext.object.ts +++ b/packages/scope-manager/src/lib/esnext.object.ts @@ -4,7 +4,6 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const esnext_object = { diff --git a/packages/scope-manager/src/lib/esnext.promise.ts b/packages/scope-manager/src/lib/esnext.promise.ts index ee4be767a01d..d53e53fb2adf 100644 --- a/packages/scope-manager/src/lib/esnext.promise.ts +++ b/packages/scope-manager/src/lib/esnext.promise.ts @@ -4,10 +4,9 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const esnext_promise = { - PromiseConstructor: TYPE, PromiseWithResolvers: TYPE, + PromiseConstructor: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/esnext.regexp.ts b/packages/scope-manager/src/lib/esnext.regexp.ts index cefee0172d38..48a11cf58225 100644 --- a/packages/scope-manager/src/lib/esnext.regexp.ts +++ b/packages/scope-manager/src/lib/esnext.regexp.ts @@ -4,7 +4,6 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const esnext_regexp = { diff --git a/packages/scope-manager/src/lib/esnext.string.ts b/packages/scope-manager/src/lib/esnext.string.ts index 613a57c915aa..c72afe37395a 100644 --- a/packages/scope-manager/src/lib/esnext.string.ts +++ b/packages/scope-manager/src/lib/esnext.string.ts @@ -4,7 +4,6 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const esnext_string = { diff --git a/packages/scope-manager/src/lib/esnext.symbol.ts b/packages/scope-manager/src/lib/esnext.symbol.ts index a51f83ff23c4..1a9f956c8a43 100644 --- a/packages/scope-manager/src/lib/esnext.symbol.ts +++ b/packages/scope-manager/src/lib/esnext.symbol.ts @@ -4,7 +4,6 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const esnext_symbol = { diff --git a/packages/scope-manager/src/lib/esnext.ts b/packages/scope-manager/src/lib/esnext.ts index c3e76d8bd05d..8edde8270d3f 100644 --- a/packages/scope-manager/src/lib/esnext.ts +++ b/packages/scope-manager/src/lib/esnext.ts @@ -4,18 +4,17 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { es2023 } from './es2023'; -import { esnext_array } from './esnext.array'; -import { esnext_collection } from './esnext.collection'; +import { esnext_intl } from './esnext.intl'; import { esnext_decorators } from './esnext.decorators'; import { esnext_disposable } from './esnext.disposable'; -import { esnext_intl } from './esnext.intl'; -import { esnext_iterator } from './esnext.iterator'; -import { esnext_object } from './esnext.object'; import { esnext_promise } from './esnext.promise'; +import { esnext_object } from './esnext.object'; +import { esnext_collection } from './esnext.collection'; +import { esnext_array } from './esnext.array'; import { esnext_regexp } from './esnext.regexp'; import { esnext_string } from './esnext.string'; +import { esnext_iterator } from './esnext.iterator'; export const esnext = { ...es2023, diff --git a/packages/scope-manager/src/lib/esnext.weakref.ts b/packages/scope-manager/src/lib/esnext.weakref.ts index 85447e3a02c6..1827ccce8deb 100644 --- a/packages/scope-manager/src/lib/esnext.weakref.ts +++ b/packages/scope-manager/src/lib/esnext.weakref.ts @@ -4,12 +4,11 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE, TYPE_VALUE } from './base-config'; export const esnext_weakref = { - FinalizationRegistry: TYPE_VALUE, - FinalizationRegistryConstructor: TYPE, WeakRef: TYPE_VALUE, WeakRefConstructor: TYPE, + FinalizationRegistry: TYPE_VALUE, + FinalizationRegistryConstructor: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/index.ts b/packages/scope-manager/src/lib/index.ts index 8ab8957b136f..a18367397259 100644 --- a/packages/scope-manager/src/lib/index.ts +++ b/packages/scope-manager/src/lib/index.ts @@ -3,14 +3,29 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib repo -import { decorators } from './decorators'; -import { decorators_legacy } from './decorators.legacy'; +import { es5 } from './es5'; +import { es6 } from './es6'; +import { es2015 } from './es2015'; +import { es7 } from './es7'; +import { es2016 } from './es2016'; +import { es2017 } from './es2017'; +import { es2018 } from './es2018'; +import { es2019 } from './es2019'; +import { es2020 } from './es2020'; +import { es2021 } from './es2021'; +import { es2022 } from './es2022'; +import { es2023 } from './es2023'; +import { esnext } from './esnext'; import { dom } from './dom'; -import { dom_asynciterable } from './dom.asynciterable'; import { dom_iterable } from './dom.iterable'; -import { es2015 } from './es2015'; -import { es2015_collection } from './es2015.collection'; +import { dom_asynciterable } from './dom.asynciterable'; +import { webworker } from './webworker'; +import { webworker_importscripts } from './webworker.importscripts'; +import { webworker_iterable } from './webworker.iterable'; +import { webworker_asynciterable } from './webworker.asynciterable'; +import { scripthost } from './scripthost'; import { es2015_core } from './es2015.core'; +import { es2015_collection } from './es2015.collection'; import { es2015_generator } from './es2015.generator'; import { es2015_iterable } from './es2015.iterable'; import { es2015_promise } from './es2015.promise'; @@ -18,96 +33,97 @@ import { es2015_proxy } from './es2015.proxy'; import { es2015_reflect } from './es2015.reflect'; import { es2015_symbol } from './es2015.symbol'; import { es2015_symbol_wellknown } from './es2015.symbol.wellknown'; -import { es2016 } from './es2016'; import { es2016_array_include } from './es2016.array.include'; -import { es2016_full } from './es2016.full'; import { es2016_intl } from './es2016.intl'; -import { es2017 } from './es2017'; import { es2017_date } from './es2017.date'; -import { es2017_full } from './es2017.full'; -import { es2017_intl } from './es2017.intl'; import { es2017_object } from './es2017.object'; import { es2017_sharedmemory } from './es2017.sharedmemory'; import { es2017_string } from './es2017.string'; +import { es2017_intl } from './es2017.intl'; import { es2017_typedarrays } from './es2017.typedarrays'; -import { es2018 } from './es2018'; import { es2018_asyncgenerator } from './es2018.asyncgenerator'; import { es2018_asynciterable } from './es2018.asynciterable'; -import { es2018_full } from './es2018.full'; import { es2018_intl } from './es2018.intl'; import { es2018_promise } from './es2018.promise'; import { es2018_regexp } from './es2018.regexp'; -import { es2019 } from './es2019'; import { es2019_array } from './es2019.array'; -import { es2019_full } from './es2019.full'; -import { es2019_intl } from './es2019.intl'; import { es2019_object } from './es2019.object'; import { es2019_string } from './es2019.string'; import { es2019_symbol } from './es2019.symbol'; -import { es2020 } from './es2020'; +import { es2019_intl } from './es2019.intl'; import { es2020_bigint } from './es2020.bigint'; import { es2020_date } from './es2020.date'; -import { es2020_full } from './es2020.full'; -import { es2020_intl } from './es2020.intl'; -import { es2020_number } from './es2020.number'; import { es2020_promise } from './es2020.promise'; import { es2020_sharedmemory } from './es2020.sharedmemory'; import { es2020_string } from './es2020.string'; import { es2020_symbol_wellknown } from './es2020.symbol.wellknown'; -import { es2021 } from './es2021'; -import { es2021_full } from './es2021.full'; -import { es2021_intl } from './es2021.intl'; +import { es2020_intl } from './es2020.intl'; +import { es2020_number } from './es2020.number'; import { es2021_promise } from './es2021.promise'; import { es2021_string } from './es2021.string'; import { es2021_weakref } from './es2021.weakref'; -import { es2022 } from './es2022'; +import { es2021_intl } from './es2021.intl'; import { es2022_array } from './es2022.array'; import { es2022_error } from './es2022.error'; -import { es2022_full } from './es2022.full'; import { es2022_intl } from './es2022.intl'; import { es2022_object } from './es2022.object'; -import { es2022_regexp } from './es2022.regexp'; import { es2022_sharedmemory } from './es2022.sharedmemory'; import { es2022_string } from './es2022.string'; -import { es2023 } from './es2023'; +import { es2022_regexp } from './es2022.regexp'; import { es2023_array } from './es2023.array'; import { es2023_collection } from './es2023.collection'; -import { es2023_full } from './es2023.full'; import { es2023_intl } from './es2023.intl'; -import { es5 } from './es5'; -import { es6 } from './es6'; -import { es7 } from './es7'; -import { esnext } from './esnext'; import { esnext_array } from './esnext.array'; +import { esnext_collection } from './esnext.collection'; +import { esnext_symbol } from './esnext.symbol'; import { esnext_asynciterable } from './esnext.asynciterable'; +import { esnext_intl } from './esnext.intl'; +import { esnext_disposable } from './esnext.disposable'; import { esnext_bigint } from './esnext.bigint'; -import { esnext_collection } from './esnext.collection'; +import { esnext_string } from './esnext.string'; +import { esnext_promise } from './esnext.promise'; +import { esnext_weakref } from './esnext.weakref'; import { esnext_decorators } from './esnext.decorators'; -import { esnext_disposable } from './esnext.disposable'; -import { esnext_full } from './esnext.full'; -import { esnext_intl } from './esnext.intl'; import { esnext_object } from './esnext.object'; -import { esnext_promise } from './esnext.promise'; import { esnext_regexp } from './esnext.regexp'; -import { esnext_string } from './esnext.string'; -import { esnext_symbol } from './esnext.symbol'; -import { esnext_weakref } from './esnext.weakref'; +import { esnext_iterator } from './esnext.iterator'; +import { decorators } from './decorators'; +import { decorators_legacy } from './decorators.legacy'; +import { es2016_full } from './es2016.full'; +import { es2017_full } from './es2017.full'; +import { es2018_full } from './es2018.full'; +import { es2019_full } from './es2019.full'; +import { es2020_full } from './es2020.full'; +import { es2021_full } from './es2021.full'; +import { es2022_full } from './es2022.full'; +import { es2023_full } from './es2023.full'; +import { esnext_full } from './esnext.full'; import { lib as libBase } from './lib'; -import { scripthost } from './scripthost'; -import { webworker } from './webworker'; -import { webworker_asynciterable } from './webworker.asynciterable'; -import { webworker_importscripts } from './webworker.importscripts'; -import { webworker_iterable } from './webworker.iterable'; const lib = { - decorators, - 'decorators.legacy': decorators_legacy, + es5, + es6, + es2015, + es7, + es2016, + es2017, + es2018, + es2019, + es2020, + es2021, + es2022, + es2023, + esnext, dom, - 'dom.asynciterable': dom_asynciterable, 'dom.iterable': dom_iterable, - es2015, - 'es2015.collection': es2015_collection, + 'dom.asynciterable': dom_asynciterable, + webworker, + 'webworker.importscripts': webworker_importscripts, + 'webworker.iterable': webworker_iterable, + 'webworker.asynciterable': webworker_asynciterable, + scripthost, 'es2015.core': es2015_core, + 'es2015.collection': es2015_collection, 'es2015.generator': es2015_generator, 'es2015.iterable': es2015_iterable, 'es2015.promise': es2015_promise, @@ -115,86 +131,72 @@ const lib = { 'es2015.reflect': es2015_reflect, 'es2015.symbol': es2015_symbol, 'es2015.symbol.wellknown': es2015_symbol_wellknown, - es2016, 'es2016.array.include': es2016_array_include, - 'es2016.full': es2016_full, 'es2016.intl': es2016_intl, - es2017, 'es2017.date': es2017_date, - 'es2017.full': es2017_full, - 'es2017.intl': es2017_intl, 'es2017.object': es2017_object, 'es2017.sharedmemory': es2017_sharedmemory, 'es2017.string': es2017_string, + 'es2017.intl': es2017_intl, 'es2017.typedarrays': es2017_typedarrays, - es2018, 'es2018.asyncgenerator': es2018_asyncgenerator, 'es2018.asynciterable': es2018_asynciterable, - 'es2018.full': es2018_full, 'es2018.intl': es2018_intl, 'es2018.promise': es2018_promise, 'es2018.regexp': es2018_regexp, - es2019, 'es2019.array': es2019_array, - 'es2019.full': es2019_full, - 'es2019.intl': es2019_intl, 'es2019.object': es2019_object, 'es2019.string': es2019_string, 'es2019.symbol': es2019_symbol, - es2020, + 'es2019.intl': es2019_intl, 'es2020.bigint': es2020_bigint, 'es2020.date': es2020_date, - 'es2020.full': es2020_full, - 'es2020.intl': es2020_intl, - 'es2020.number': es2020_number, 'es2020.promise': es2020_promise, 'es2020.sharedmemory': es2020_sharedmemory, 'es2020.string': es2020_string, 'es2020.symbol.wellknown': es2020_symbol_wellknown, - es2021, - 'es2021.full': es2021_full, - 'es2021.intl': es2021_intl, + 'es2020.intl': es2020_intl, + 'es2020.number': es2020_number, 'es2021.promise': es2021_promise, 'es2021.string': es2021_string, 'es2021.weakref': es2021_weakref, - es2022, + 'es2021.intl': es2021_intl, 'es2022.array': es2022_array, 'es2022.error': es2022_error, - 'es2022.full': es2022_full, 'es2022.intl': es2022_intl, 'es2022.object': es2022_object, - 'es2022.regexp': es2022_regexp, 'es2022.sharedmemory': es2022_sharedmemory, 'es2022.string': es2022_string, - es2023, + 'es2022.regexp': es2022_regexp, 'es2023.array': es2023_array, 'es2023.collection': es2023_collection, - 'es2023.full': es2023_full, 'es2023.intl': es2023_intl, - es5, - es6, - es7, - esnext, 'esnext.array': esnext_array, + 'esnext.collection': esnext_collection, + 'esnext.symbol': esnext_symbol, 'esnext.asynciterable': esnext_asynciterable, + 'esnext.intl': esnext_intl, + 'esnext.disposable': esnext_disposable, 'esnext.bigint': esnext_bigint, - 'esnext.collection': esnext_collection, + 'esnext.string': esnext_string, + 'esnext.promise': esnext_promise, + 'esnext.weakref': esnext_weakref, 'esnext.decorators': esnext_decorators, - 'esnext.disposable': esnext_disposable, - 'esnext.full': esnext_full, - 'esnext.intl': esnext_intl, 'esnext.object': esnext_object, - 'esnext.promise': esnext_promise, 'esnext.regexp': esnext_regexp, - 'esnext.string': esnext_string, - 'esnext.symbol': esnext_symbol, - 'esnext.weakref': esnext_weakref, + 'esnext.iterator': esnext_iterator, + decorators, + 'decorators.legacy': decorators_legacy, + 'es2016.full': es2016_full, + 'es2017.full': es2017_full, + 'es2018.full': es2018_full, + 'es2019.full': es2019_full, + 'es2020.full': es2020_full, + 'es2021.full': es2021_full, + 'es2022.full': es2022_full, + 'es2023.full': es2023_full, + 'esnext.full': esnext_full, lib: libBase, - scripthost, - webworker, - 'webworker.asynciterable': webworker_asynciterable, - 'webworker.importscripts': webworker_importscripts, - 'webworker.iterable': webworker_iterable, } as const; export { lib }; diff --git a/packages/scope-manager/src/lib/lib.ts b/packages/scope-manager/src/lib/lib.ts index 1256669a81fa..2b0aec247cb4 100644 --- a/packages/scope-manager/src/lib/lib.ts +++ b/packages/scope-manager/src/lib/lib.ts @@ -4,11 +4,10 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - -import { dom } from './dom'; import { es5 } from './es5'; -import { scripthost } from './scripthost'; +import { dom } from './dom'; import { webworker_importscripts } from './webworker.importscripts'; +import { scripthost } from './scripthost'; export const lib = { ...es5, diff --git a/packages/scope-manager/src/lib/scripthost.ts b/packages/scope-manager/src/lib/scripthost.ts index 21e00f61a550..dde023531039 100644 --- a/packages/scope-manager/src/lib/scripthost.ts +++ b/packages/scope-manager/src/lib/scripthost.ts @@ -4,21 +4,20 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE, TYPE_VALUE } from './base-config'; export const scripthost = { ActiveXObject: TYPE_VALUE, - Date: TYPE, - DateConstructor: TYPE, - Enumerator: TYPE_VALUE, - EnumeratorConstructor: TYPE, ITextWriter: TYPE, - SafeArray: TYPE_VALUE, TextStreamBase: TYPE, - TextStreamReader: TYPE, TextStreamWriter: TYPE, - VarDate: TYPE_VALUE, + TextStreamReader: TYPE, + SafeArray: TYPE_VALUE, + Enumerator: TYPE_VALUE, + EnumeratorConstructor: TYPE, VBArray: TYPE_VALUE, VBArrayConstructor: TYPE, + VarDate: TYPE_VALUE, + DateConstructor: TYPE, + Date: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/webworker.asynciterable.ts b/packages/scope-manager/src/lib/webworker.asynciterable.ts index 5a363859ddc4..17706b55bf77 100644 --- a/packages/scope-manager/src/lib/webworker.asynciterable.ts +++ b/packages/scope-manager/src/lib/webworker.asynciterable.ts @@ -4,7 +4,6 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const webworker_asynciterable = { diff --git a/packages/scope-manager/src/lib/webworker.iterable.ts b/packages/scope-manager/src/lib/webworker.iterable.ts index 29c4e8482b6a..8c14d3058a7a 100644 --- a/packages/scope-manager/src/lib/webworker.iterable.ts +++ b/packages/scope-manager/src/lib/webworker.iterable.ts @@ -4,17 +4,16 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE } from './base-config'; export const webworker_iterable = { AbortSignal: TYPE, - Cache: TYPE, - CanvasPath: TYPE, - CanvasPathDrawingStyles: TYPE, CSSNumericArray: TYPE, CSSTransformValue: TYPE, CSSUnparsedValue: TYPE, + Cache: TYPE, + CanvasPath: TYPE, + CanvasPathDrawingStyles: TYPE, DOMStringList: TYPE, FileList: TYPE, FontFaceSet: TYPE, diff --git a/packages/scope-manager/src/lib/webworker.ts b/packages/scope-manager/src/lib/webworker.ts index fb546c3004b9..4f1596a8a4a4 100644 --- a/packages/scope-manager/src/lib/webworker.ts +++ b/packages/scope-manager/src/lib/webworker.ts @@ -4,15 +4,9 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; - import { TYPE, TYPE_VALUE } from './base-config'; export const webworker = { - AbortController: TYPE_VALUE, - AbortSignal: TYPE_VALUE, - AbortSignalEventMap: TYPE, - AbstractWorker: TYPE, - AbstractWorkerEventMap: TYPE, AddEventListenerOptions: TYPE, AesCbcParams: TYPE, AesCtrParams: TYPE, @@ -21,94 +15,161 @@ export const webworker = { AesKeyAlgorithm: TYPE, AesKeyGenParams: TYPE, Algorithm: TYPE, - AlgorithmIdentifier: TYPE, - AllowSharedBufferSource: TYPE, - AlphaOption: TYPE, - ANGLE_instanced_arrays: TYPE, - AnimationFrameProvider: TYPE, AudioConfiguration: TYPE, - AvcBitstreamFormat: TYPE, AvcEncoderConfig: TYPE, - BigInteger: TYPE, - BinaryData: TYPE, - BinaryType: TYPE, - Blob: TYPE_VALUE, - BlobPart: TYPE, BlobPropertyBag: TYPE, - Body: TYPE, - BodyInit: TYPE, - BroadcastChannel: TYPE_VALUE, - BroadcastChannelEventMap: TYPE, - BufferSource: TYPE, - ByteLengthQueuingStrategy: TYPE_VALUE, - Cache: TYPE_VALUE, + CSSMatrixComponentOptions: TYPE, + CSSNumericType: TYPE, CacheQueryOptions: TYPE, - CacheStorage: TYPE_VALUE, - CanvasCompositing: TYPE, - CanvasDirection: TYPE, - CanvasDrawImage: TYPE, - CanvasDrawPath: TYPE, - CanvasFillRule: TYPE, - CanvasFillStrokeStyles: TYPE, - CanvasFilters: TYPE, - CanvasFontKerning: TYPE, - CanvasFontStretch: TYPE, - CanvasFontVariantCaps: TYPE, - CanvasGradient: TYPE_VALUE, - CanvasImageData: TYPE, - CanvasImageSmoothing: TYPE, - CanvasImageSource: TYPE, - CanvasLineCap: TYPE, - CanvasLineJoin: TYPE, - CanvasPath: TYPE, - CanvasPathDrawingStyles: TYPE, - CanvasPattern: TYPE_VALUE, - CanvasRect: TYPE, - CanvasShadowStyles: TYPE, - CanvasState: TYPE, - CanvasText: TYPE, - CanvasTextAlign: TYPE, - CanvasTextBaseline: TYPE, - CanvasTextDrawingStyles: TYPE, - CanvasTextRendering: TYPE, - CanvasTransform: TYPE, - Client: TYPE_VALUE, ClientQueryOptions: TYPE, - Clients: TYPE_VALUE, - ClientTypes: TYPE, - CloseEvent: TYPE_VALUE, CloseEventInit: TYPE, - CodecState: TYPE, - ColorGamut: TYPE, - ColorSpaceConversion: TYPE, - CompressionFormat: TYPE, - CompressionStream: TYPE_VALUE, - Console: TYPE, - CountQueuingStrategy: TYPE_VALUE, - Crypto: TYPE_VALUE, - CryptoKey: TYPE_VALUE, CryptoKeyPair: TYPE, + CustomEventInit: TYPE, + DOMMatrix2DInit: TYPE, + DOMMatrixInit: TYPE, + DOMPointInit: TYPE, + DOMQuadInit: TYPE, + DOMRectInit: TYPE, + EcKeyGenParams: TYPE, + EcKeyImportParams: TYPE, + EcdhKeyDeriveParams: TYPE, + EcdsaParams: TYPE, + EncodedVideoChunkInit: TYPE, + EncodedVideoChunkMetadata: TYPE, + ErrorEventInit: TYPE, + EventInit: TYPE, + EventListenerOptions: TYPE, + EventSourceInit: TYPE, + ExtendableEventInit: TYPE, + ExtendableMessageEventInit: TYPE, + FetchEventInit: TYPE, + FilePropertyBag: TYPE, + FileSystemCreateWritableOptions: TYPE, + FileSystemGetDirectoryOptions: TYPE, + FileSystemGetFileOptions: TYPE, + FileSystemReadWriteOptions: TYPE, + FileSystemRemoveOptions: TYPE, + FontFaceDescriptors: TYPE, + FontFaceSetLoadEventInit: TYPE, + GetNotificationOptions: TYPE, + HkdfParams: TYPE, + HmacImportParams: TYPE, + HmacKeyGenParams: TYPE, + IDBDatabaseInfo: TYPE, + IDBIndexParameters: TYPE, + IDBObjectStoreParameters: TYPE, + IDBTransactionOptions: TYPE, + IDBVersionChangeEventInit: TYPE, + ImageBitmapOptions: TYPE, + ImageBitmapRenderingContextSettings: TYPE, + ImageDataSettings: TYPE, + ImageEncodeOptions: TYPE, + JsonWebKey: TYPE, + KeyAlgorithm: TYPE, + LockInfo: TYPE, + LockManagerSnapshot: TYPE, + LockOptions: TYPE, + MediaCapabilitiesDecodingInfo: TYPE, + MediaCapabilitiesEncodingInfo: TYPE, + MediaCapabilitiesInfo: TYPE, + MediaConfiguration: TYPE, + MediaDecodingConfiguration: TYPE, + MediaEncodingConfiguration: TYPE, + MediaStreamTrackProcessorInit: TYPE, + MessageEventInit: TYPE, + MultiCacheQueryOptions: TYPE, + NavigationPreloadState: TYPE, + NotificationEventInit: TYPE, + NotificationOptions: TYPE, + Pbkdf2Params: TYPE, + PerformanceMarkOptions: TYPE, + PerformanceMeasureOptions: TYPE, + PerformanceObserverInit: TYPE, + PermissionDescriptor: TYPE, + PlaneLayout: TYPE, + ProgressEventInit: TYPE, + PromiseRejectionEventInit: TYPE, + PushEventInit: TYPE, + PushSubscriptionJSON: TYPE, + PushSubscriptionOptionsInit: TYPE, + QueuingStrategy: TYPE, + QueuingStrategyInit: TYPE, + RTCEncodedAudioFrameMetadata: TYPE, + RTCEncodedVideoFrameMetadata: TYPE, + ReadableStreamGetReaderOptions: TYPE, + ReadableStreamIteratorOptions: TYPE, + ReadableStreamReadDoneResult: TYPE, + ReadableStreamReadValueResult: TYPE, + ReadableWritablePair: TYPE, + RegistrationOptions: TYPE, + ReportingObserverOptions: TYPE, + RequestInit: TYPE, + ResponseInit: TYPE, + RsaHashedImportParams: TYPE, + RsaHashedKeyGenParams: TYPE, + RsaKeyGenParams: TYPE, + RsaOaepParams: TYPE, + RsaOtherPrimesInfo: TYPE, + RsaPssParams: TYPE, + SecurityPolicyViolationEventInit: TYPE, + StorageEstimate: TYPE, + StreamPipeOptions: TYPE, + StructuredSerializeOptions: TYPE, + TextDecodeOptions: TYPE, + TextDecoderOptions: TYPE, + TextEncoderEncodeIntoResult: TYPE, + Transformer: TYPE, + UnderlyingByteSource: TYPE, + UnderlyingDefaultSource: TYPE, + UnderlyingSink: TYPE, + UnderlyingSource: TYPE, + VideoColorSpaceInit: TYPE, + VideoConfiguration: TYPE, + VideoDecoderConfig: TYPE, + VideoDecoderInit: TYPE, + VideoDecoderSupport: TYPE, + VideoEncoderConfig: TYPE, + VideoEncoderEncodeOptions: TYPE, + VideoEncoderInit: TYPE, + VideoEncoderSupport: TYPE, + VideoFrameBufferInit: TYPE, + VideoFrameCopyToOptions: TYPE, + VideoFrameInit: TYPE, + WebGLContextAttributes: TYPE, + WebGLContextEventInit: TYPE, + WebTransportCloseInfo: TYPE, + WebTransportErrorOptions: TYPE, + WebTransportHash: TYPE, + WebTransportOptions: TYPE, + WebTransportSendStreamOptions: TYPE, + WorkerOptions: TYPE, + WriteParams: TYPE, + ANGLE_instanced_arrays: TYPE, + AbortController: TYPE_VALUE, + AbortSignalEventMap: TYPE, + AbortSignal: TYPE_VALUE, + AbstractWorkerEventMap: TYPE, + AbstractWorker: TYPE, + AnimationFrameProvider: TYPE, + Blob: TYPE_VALUE, + Body: TYPE, + BroadcastChannelEventMap: TYPE, + BroadcastChannel: TYPE_VALUE, + ByteLengthQueuingStrategy: TYPE_VALUE, CSSImageValue: TYPE_VALUE, - CSSKeywordish: TYPE, CSSKeywordValue: TYPE_VALUE, CSSMathClamp: TYPE_VALUE, CSSMathInvert: TYPE_VALUE, CSSMathMax: TYPE_VALUE, CSSMathMin: TYPE_VALUE, CSSMathNegate: TYPE_VALUE, - CSSMathOperator: TYPE, CSSMathProduct: TYPE_VALUE, CSSMathSum: TYPE_VALUE, CSSMathValue: TYPE_VALUE, CSSMatrixComponent: TYPE_VALUE, - CSSMatrixComponentOptions: TYPE, - CSSNumberish: TYPE, CSSNumericArray: TYPE_VALUE, - CSSNumericBaseType: TYPE, - CSSNumericType: TYPE, CSSNumericValue: TYPE_VALUE, CSSPerspective: TYPE_VALUE, - CSSPerspectiveValue: TYPE, CSSRotate: TYPE_VALUE, CSSScale: TYPE_VALUE, CSSSkew: TYPE_VALUE, @@ -119,196 +180,117 @@ export const webworker = { CSSTransformValue: TYPE_VALUE, CSSTranslate: TYPE_VALUE, CSSUnitValue: TYPE_VALUE, - CSSUnparsedSegment: TYPE, CSSUnparsedValue: TYPE_VALUE, CSSVariableReferenceValue: TYPE_VALUE, + Cache: TYPE_VALUE, + CacheStorage: TYPE_VALUE, + CanvasCompositing: TYPE, + CanvasDrawImage: TYPE, + CanvasDrawPath: TYPE, + CanvasFillStrokeStyles: TYPE, + CanvasFilters: TYPE, + CanvasGradient: TYPE_VALUE, + CanvasImageData: TYPE, + CanvasImageSmoothing: TYPE, + CanvasPath: TYPE, + CanvasPathDrawingStyles: TYPE, + CanvasPattern: TYPE_VALUE, + CanvasRect: TYPE, + CanvasShadowStyles: TYPE, + CanvasState: TYPE, + CanvasText: TYPE, + CanvasTextDrawingStyles: TYPE, + CanvasTransform: TYPE, + Client: TYPE_VALUE, + Clients: TYPE_VALUE, + CloseEvent: TYPE_VALUE, + CompressionStream: TYPE_VALUE, + CountQueuingStrategy: TYPE_VALUE, + Crypto: TYPE_VALUE, + CryptoKey: TYPE_VALUE, CustomEvent: TYPE_VALUE, - CustomEventInit: TYPE, - DecompressionStream: TYPE_VALUE, - DedicatedWorkerGlobalScope: TYPE_VALUE, - DedicatedWorkerGlobalScopeEventMap: TYPE, - DocumentVisibilityState: TYPE, DOMException: TYPE_VALUE, - DOMHighResTimeStamp: TYPE, DOMMatrix: TYPE_VALUE, - DOMMatrix2DInit: TYPE, - DOMMatrixInit: TYPE, DOMMatrixReadOnly: TYPE_VALUE, DOMPoint: TYPE_VALUE, - DOMPointInit: TYPE, DOMPointReadOnly: TYPE_VALUE, DOMQuad: TYPE_VALUE, - DOMQuadInit: TYPE, DOMRect: TYPE_VALUE, - DOMRectInit: TYPE, DOMRectReadOnly: TYPE_VALUE, DOMStringList: TYPE_VALUE, - EcdhKeyDeriveParams: TYPE, - EcdsaParams: TYPE, - EcKeyGenParams: TYPE, - EcKeyImportParams: TYPE, - EncodedVideoChunk: TYPE_VALUE, - EncodedVideoChunkInit: TYPE, - EncodedVideoChunkMetadata: TYPE, - EncodedVideoChunkOutputCallback: TYPE, - EncodedVideoChunkType: TYPE, - EndingType: TYPE, - EpochTimeStamp: TYPE, - ErrorEvent: TYPE_VALUE, - ErrorEventInit: TYPE, - Event: TYPE_VALUE, - EventInit: TYPE, - EventListener: TYPE, - EventListenerObject: TYPE, - EventListenerOptions: TYPE, - EventListenerOrEventListenerObject: TYPE, - EventSource: TYPE_VALUE, - EventSourceEventMap: TYPE, - EventSourceInit: TYPE, - EventTarget: TYPE_VALUE, + DecompressionStream: TYPE_VALUE, + DedicatedWorkerGlobalScopeEventMap: TYPE, + DedicatedWorkerGlobalScope: TYPE_VALUE, EXT_blend_minmax: TYPE, EXT_color_buffer_float: TYPE, EXT_color_buffer_half_float: TYPE, EXT_float_blend: TYPE, EXT_frag_depth: TYPE, - EXT_shader_texture_lod: TYPE, EXT_sRGB: TYPE, + EXT_shader_texture_lod: TYPE, EXT_texture_compression_bptc: TYPE, EXT_texture_compression_rgtc: TYPE, EXT_texture_filter_anisotropic: TYPE, EXT_texture_norm16: TYPE, + EncodedVideoChunk: TYPE_VALUE, + ErrorEvent: TYPE_VALUE, + Event: TYPE_VALUE, + EventListener: TYPE, + EventListenerObject: TYPE, + EventSourceEventMap: TYPE, + EventSource: TYPE_VALUE, + EventTarget: TYPE_VALUE, ExtendableEvent: TYPE_VALUE, - ExtendableEventInit: TYPE, ExtendableMessageEvent: TYPE_VALUE, - ExtendableMessageEventInit: TYPE, FetchEvent: TYPE_VALUE, - FetchEventInit: TYPE, File: TYPE_VALUE, FileList: TYPE_VALUE, - FilePropertyBag: TYPE, - FileReader: TYPE_VALUE, FileReaderEventMap: TYPE, + FileReader: TYPE_VALUE, FileReaderSync: TYPE_VALUE, - FileSystemCreateWritableOptions: TYPE, FileSystemDirectoryHandle: TYPE_VALUE, FileSystemFileHandle: TYPE_VALUE, - FileSystemGetDirectoryOptions: TYPE, - FileSystemGetFileOptions: TYPE, FileSystemHandle: TYPE_VALUE, - FileSystemHandleKind: TYPE, - FileSystemReadWriteOptions: TYPE, - FileSystemRemoveOptions: TYPE, FileSystemSyncAccessHandle: TYPE_VALUE, FileSystemWritableFileStream: TYPE_VALUE, - FileSystemWriteChunkType: TYPE, - Float32List: TYPE, - FontDisplay: TYPE, FontFace: TYPE_VALUE, - FontFaceDescriptors: TYPE, - FontFaceLoadStatus: TYPE, - FontFaceSet: TYPE_VALUE, FontFaceSetEventMap: TYPE, + FontFaceSet: TYPE_VALUE, FontFaceSetLoadEvent: TYPE_VALUE, - FontFaceSetLoadEventInit: TYPE, - FontFaceSetLoadStatus: TYPE, FontFaceSource: TYPE, FormData: TYPE_VALUE, - FormDataEntryValue: TYPE, - FrameRequestCallback: TYPE, - FrameType: TYPE, GenericTransformStream: TYPE, - GetNotificationOptions: TYPE, - GLbitfield: TYPE, - GLboolean: TYPE, - GLclampf: TYPE, - GLenum: TYPE, - GLfloat: TYPE, - GLint: TYPE, - GLint64: TYPE, - GLintptr: TYPE, - GlobalCompositeOperation: TYPE, - GLsizei: TYPE, - GLsizeiptr: TYPE, - GLuint: TYPE, - GLuint64: TYPE, - HardwareAcceleration: TYPE, - HashAlgorithmIdentifier: TYPE, - HdrMetadataType: TYPE, Headers: TYPE_VALUE, - HeadersInit: TYPE, - HkdfParams: TYPE, - HmacImportParams: TYPE, - HmacKeyGenParams: TYPE, IDBCursor: TYPE_VALUE, - IDBCursorDirection: TYPE, IDBCursorWithValue: TYPE_VALUE, - IDBDatabase: TYPE_VALUE, IDBDatabaseEventMap: TYPE, - IDBDatabaseInfo: TYPE, + IDBDatabase: TYPE_VALUE, IDBFactory: TYPE_VALUE, IDBIndex: TYPE_VALUE, - IDBIndexParameters: TYPE, IDBKeyRange: TYPE_VALUE, IDBObjectStore: TYPE_VALUE, - IDBObjectStoreParameters: TYPE, - IDBOpenDBRequest: TYPE_VALUE, IDBOpenDBRequestEventMap: TYPE, - IDBRequest: TYPE_VALUE, + IDBOpenDBRequest: TYPE_VALUE, IDBRequestEventMap: TYPE, - IDBRequestReadyState: TYPE, - IDBTransaction: TYPE_VALUE, - IDBTransactionDurability: TYPE, + IDBRequest: TYPE_VALUE, IDBTransactionEventMap: TYPE, - IDBTransactionMode: TYPE, - IDBTransactionOptions: TYPE, - IDBValidKey: TYPE, + IDBTransaction: TYPE_VALUE, IDBVersionChangeEvent: TYPE_VALUE, - IDBVersionChangeEventInit: TYPE, ImageBitmap: TYPE_VALUE, - ImageBitmapOptions: TYPE, ImageBitmapRenderingContext: TYPE_VALUE, - ImageBitmapRenderingContextSettings: TYPE, - ImageBitmapSource: TYPE, ImageData: TYPE_VALUE, - ImageDataSettings: TYPE, - ImageEncodeOptions: TYPE, - ImageOrientation: TYPE, - ImageSmoothingQuality: TYPE, ImportMeta: TYPE, - Int32List: TYPE, - JsonWebKey: TYPE, - KeyAlgorithm: TYPE, - KeyFormat: TYPE, - KeyType: TYPE, - KeyUsage: TYPE, KHR_parallel_shader_compile: TYPE, - LatencyMode: TYPE, Lock: TYPE_VALUE, - LockGrantedCallback: TYPE, - LockInfo: TYPE, LockManager: TYPE_VALUE, - LockManagerSnapshot: TYPE, - LockMode: TYPE, - LockOptions: TYPE, MediaCapabilities: TYPE_VALUE, - MediaCapabilitiesDecodingInfo: TYPE, - MediaCapabilitiesEncodingInfo: TYPE, - MediaCapabilitiesInfo: TYPE, - MediaConfiguration: TYPE, - MediaDecodingConfiguration: TYPE, - MediaDecodingType: TYPE, - MediaEncodingConfiguration: TYPE, - MediaEncodingType: TYPE, + MediaSourceHandle: TYPE_VALUE, + MediaStreamTrackProcessor: TYPE_VALUE, MessageChannel: TYPE_VALUE, MessageEvent: TYPE_VALUE, - MessageEventInit: TYPE, - MessageEventSource: TYPE, - MessagePort: TYPE_VALUE, MessagePortEventMap: TYPE, - MultiCacheQueryOptions: TYPE, - NamedCurve: TYPE, + MessagePort: TYPE_VALUE, NavigationPreloadManager: TYPE_VALUE, - NavigationPreloadState: TYPE, NavigatorBadge: TYPE, NavigatorConcurrentHardware: TYPE, NavigatorID: TYPE, @@ -316,13 +298,9 @@ export const webworker = { NavigatorLocks: TYPE, NavigatorOnLine: TYPE, NavigatorStorage: TYPE, + NotificationEventMap: TYPE, Notification: TYPE_VALUE, - NotificationDirection: TYPE, NotificationEvent: TYPE_VALUE, - NotificationEventInit: TYPE, - NotificationEventMap: TYPE, - NotificationOptions: TYPE, - NotificationPermission: TYPE, OES_draw_buffers_indexed: TYPE, OES_element_index_uint: TYPE, OES_fbo_render_mipmap: TYPE, @@ -332,189 +310,77 @@ export const webworker = { OES_texture_half_float: TYPE, OES_texture_half_float_linear: TYPE, OES_vertex_array_object: TYPE, - OffscreenCanvas: TYPE_VALUE, + OVR_multiview2: TYPE, OffscreenCanvasEventMap: TYPE, + OffscreenCanvas: TYPE_VALUE, OffscreenCanvasRenderingContext2D: TYPE_VALUE, - OffscreenRenderingContext: TYPE, - OffscreenRenderingContextId: TYPE, - OnErrorEventHandler: TYPE, - OnErrorEventHandlerNonNull: TYPE, - OVR_multiview2: TYPE, Path2D: TYPE_VALUE, - Pbkdf2Params: TYPE, + PerformanceEventMap: TYPE, Performance: TYPE_VALUE, PerformanceEntry: TYPE_VALUE, - PerformanceEntryList: TYPE, - PerformanceEventMap: TYPE, PerformanceMark: TYPE_VALUE, - PerformanceMarkOptions: TYPE, PerformanceMeasure: TYPE_VALUE, - PerformanceMeasureOptions: TYPE, PerformanceObserver: TYPE_VALUE, - PerformanceObserverCallback: TYPE, PerformanceObserverEntryList: TYPE_VALUE, - PerformanceObserverInit: TYPE, PerformanceResourceTiming: TYPE_VALUE, PerformanceServerTiming: TYPE_VALUE, - PermissionDescriptor: TYPE, - PermissionName: TYPE, - Permissions: TYPE_VALUE, - PermissionState: TYPE, - PermissionStatus: TYPE_VALUE, PermissionStatusEventMap: TYPE, - PlaneLayout: TYPE, - PredefinedColorSpace: TYPE, - PremultiplyAlpha: TYPE, + PermissionStatus: TYPE_VALUE, + Permissions: TYPE_VALUE, ProgressEvent: TYPE_VALUE, - ProgressEventInit: TYPE, PromiseRejectionEvent: TYPE_VALUE, - PromiseRejectionEventInit: TYPE, - PushEncryptionKeyName: TYPE, PushEvent: TYPE_VALUE, - PushEventInit: TYPE, PushManager: TYPE_VALUE, PushMessageData: TYPE_VALUE, - PushMessageDataInit: TYPE, PushSubscription: TYPE_VALUE, - PushSubscriptionJSON: TYPE, PushSubscriptionOptions: TYPE_VALUE, - PushSubscriptionOptionsInit: TYPE, - QueuingStrategy: TYPE, - QueuingStrategyInit: TYPE, - QueuingStrategySize: TYPE, - ReadableByteStreamController: TYPE_VALUE, - ReadableStream: TYPE_VALUE, - ReadableStreamBYOBReader: TYPE_VALUE, - ReadableStreamBYOBRequest: TYPE_VALUE, - ReadableStreamController: TYPE, - ReadableStreamDefaultController: TYPE_VALUE, - ReadableStreamDefaultReader: TYPE_VALUE, - ReadableStreamGenericReader: TYPE, - ReadableStreamGetReaderOptions: TYPE, - ReadableStreamIteratorOptions: TYPE, - ReadableStreamReadDoneResult: TYPE, - ReadableStreamReader: TYPE, - ReadableStreamReaderMode: TYPE, - ReadableStreamReadResult: TYPE, - ReadableStreamReadValueResult: TYPE, - ReadableStreamType: TYPE, - ReadableWritablePair: TYPE, - ReferrerPolicy: TYPE, - RegistrationOptions: TYPE, - Report: TYPE_VALUE, - ReportBody: TYPE_VALUE, - ReportingObserver: TYPE_VALUE, - ReportingObserverCallback: TYPE, - ReportingObserverOptions: TYPE, - ReportList: TYPE, - Request: TYPE_VALUE, - RequestCache: TYPE, - RequestCredentials: TYPE, - RequestDestination: TYPE, - RequestInfo: TYPE, - RequestInit: TYPE, - RequestMode: TYPE, - RequestPriority: TYPE, - RequestRedirect: TYPE, - ResizeQuality: TYPE, - Response: TYPE_VALUE, - ResponseInit: TYPE, - ResponseType: TYPE, - RsaHashedImportParams: TYPE, - RsaHashedKeyGenParams: TYPE, - RsaKeyGenParams: TYPE, - RsaOaepParams: TYPE, - RsaOtherPrimesInfo: TYPE, - RsaPssParams: TYPE, RTCEncodedAudioFrame: TYPE_VALUE, - RTCEncodedAudioFrameMetadata: TYPE, - RTCEncodedVideoFrame: TYPE_VALUE, - RTCEncodedVideoFrameMetadata: TYPE, - RTCEncodedVideoFrameType: TYPE, + RTCEncodedVideoFrame: TYPE_VALUE, RTCRtpScriptTransformer: TYPE_VALUE, RTCTransformEvent: TYPE_VALUE, + ReadableByteStreamController: TYPE_VALUE, + ReadableStream: TYPE_VALUE, + ReadableStreamBYOBReader: TYPE_VALUE, + ReadableStreamBYOBRequest: TYPE_VALUE, + ReadableStreamDefaultController: TYPE_VALUE, + ReadableStreamDefaultReader: TYPE_VALUE, + ReadableStreamGenericReader: TYPE, + Report: TYPE_VALUE, + ReportBody: TYPE_VALUE, + ReportingObserver: TYPE_VALUE, + Request: TYPE_VALUE, + Response: TYPE_VALUE, SecurityPolicyViolationEvent: TYPE_VALUE, - SecurityPolicyViolationEventDisposition: TYPE, - SecurityPolicyViolationEventInit: TYPE, + ServiceWorkerEventMap: TYPE, ServiceWorker: TYPE_VALUE, - ServiceWorkerContainer: TYPE_VALUE, ServiceWorkerContainerEventMap: TYPE, - ServiceWorkerEventMap: TYPE, - ServiceWorkerGlobalScope: TYPE_VALUE, + ServiceWorkerContainer: TYPE_VALUE, ServiceWorkerGlobalScopeEventMap: TYPE, - ServiceWorkerRegistration: TYPE_VALUE, + ServiceWorkerGlobalScope: TYPE_VALUE, ServiceWorkerRegistrationEventMap: TYPE, - ServiceWorkerState: TYPE, - ServiceWorkerUpdateViaCache: TYPE, - SharedWorkerGlobalScope: TYPE_VALUE, + ServiceWorkerRegistration: TYPE_VALUE, SharedWorkerGlobalScopeEventMap: TYPE, - StorageEstimate: TYPE, + SharedWorkerGlobalScope: TYPE_VALUE, StorageManager: TYPE_VALUE, - StreamPipeOptions: TYPE, - StructuredSerializeOptions: TYPE, StylePropertyMapReadOnly: TYPE_VALUE, SubtleCrypto: TYPE_VALUE, - TexImageSource: TYPE, - TextDecodeOptions: TYPE, TextDecoder: TYPE_VALUE, TextDecoderCommon: TYPE, - TextDecoderOptions: TYPE, TextDecoderStream: TYPE_VALUE, TextEncoder: TYPE_VALUE, TextEncoderCommon: TYPE, - TextEncoderEncodeIntoResult: TYPE, TextEncoderStream: TYPE_VALUE, TextMetrics: TYPE_VALUE, - TimerHandler: TYPE, - Transferable: TYPE, - TransferFunction: TYPE, - Transformer: TYPE, - TransformerFlushCallback: TYPE, - TransformerStartCallback: TYPE, - TransformerTransformCallback: TYPE, TransformStream: TYPE_VALUE, TransformStreamDefaultController: TYPE_VALUE, - Uint32List: TYPE, - UnderlyingByteSource: TYPE, - UnderlyingDefaultSource: TYPE, - UnderlyingSink: TYPE, - UnderlyingSinkAbortCallback: TYPE, - UnderlyingSinkCloseCallback: TYPE, - UnderlyingSinkStartCallback: TYPE, - UnderlyingSinkWriteCallback: TYPE, - UnderlyingSource: TYPE, - UnderlyingSourceCancelCallback: TYPE, - UnderlyingSourcePullCallback: TYPE, - UnderlyingSourceStartCallback: TYPE, URL: TYPE_VALUE, URLSearchParams: TYPE_VALUE, - VideoColorPrimaries: TYPE, VideoColorSpace: TYPE_VALUE, - VideoColorSpaceInit: TYPE, - VideoConfiguration: TYPE, - VideoDecoder: TYPE_VALUE, - VideoDecoderConfig: TYPE, VideoDecoderEventMap: TYPE, - VideoDecoderInit: TYPE, - VideoDecoderSupport: TYPE, - VideoEncoder: TYPE_VALUE, - VideoEncoderBitrateMode: TYPE, - VideoEncoderConfig: TYPE, - VideoEncoderEncodeOptions: TYPE, + VideoDecoder: TYPE_VALUE, VideoEncoderEventMap: TYPE, - VideoEncoderInit: TYPE, - VideoEncoderSupport: TYPE, + VideoEncoder: TYPE_VALUE, VideoFrame: TYPE_VALUE, - VideoFrameBufferInit: TYPE, - VideoFrameCopyToOptions: TYPE, - VideoFrameInit: TYPE, - VideoFrameOutputCallback: TYPE, - VideoMatrixCoefficients: TYPE, - VideoPixelFormat: TYPE, - VideoTransferCharacteristics: TYPE, - VoidFunction: TYPE, - WebAssembly: TYPE_VALUE, - WebCodecsErrorCallback: TYPE, WEBGL_color_buffer_float: TYPE, WEBGL_compressed_texture_astc: TYPE, WEBGL_compressed_texture_etc: TYPE, @@ -533,11 +399,8 @@ export const webworker = { WebGL2RenderingContextOverloads: TYPE, WebGLActiveInfo: TYPE_VALUE, WebGLBuffer: TYPE_VALUE, - WebGLContextAttributes: TYPE, WebGLContextEvent: TYPE_VALUE, - WebGLContextEventInit: TYPE, WebGLFramebuffer: TYPE_VALUE, - WebGLPowerPreference: TYPE, WebGLProgram: TYPE_VALUE, WebGLQuery: TYPE_VALUE, WebGLRenderbuffer: TYPE_VALUE, @@ -553,39 +416,178 @@ export const webworker = { WebGLUniformLocation: TYPE_VALUE, WebGLVertexArrayObject: TYPE_VALUE, WebGLVertexArrayObjectOES: TYPE, - WebSocket: TYPE_VALUE, WebSocketEventMap: TYPE, + WebSocket: TYPE_VALUE, WebTransport: TYPE_VALUE, WebTransportBidirectionalStream: TYPE_VALUE, - WebTransportCloseInfo: TYPE, - WebTransportCongestionControl: TYPE, WebTransportDatagramDuplexStream: TYPE_VALUE, WebTransportError: TYPE_VALUE, - WebTransportErrorOptions: TYPE, - WebTransportErrorSource: TYPE, - WebTransportHash: TYPE, - WebTransportOptions: TYPE, - WebTransportSendStreamOptions: TYPE, WindowClient: TYPE_VALUE, WindowOrWorkerGlobalScope: TYPE, - Worker: TYPE_VALUE, WorkerEventMap: TYPE, - WorkerGlobalScope: TYPE_VALUE, + Worker: TYPE_VALUE, WorkerGlobalScopeEventMap: TYPE, + WorkerGlobalScope: TYPE_VALUE, WorkerLocation: TYPE_VALUE, WorkerNavigator: TYPE_VALUE, - WorkerOptions: TYPE, - WorkerType: TYPE, WritableStream: TYPE_VALUE, WritableStreamDefaultController: TYPE_VALUE, WritableStreamDefaultWriter: TYPE_VALUE, - WriteCommandType: TYPE, - WriteParams: TYPE, - XMLHttpRequest: TYPE_VALUE, - XMLHttpRequestBodyInit: TYPE, XMLHttpRequestEventMap: TYPE, - XMLHttpRequestEventTarget: TYPE_VALUE, + XMLHttpRequest: TYPE_VALUE, XMLHttpRequestEventTargetEventMap: TYPE, - XMLHttpRequestResponseType: TYPE, + XMLHttpRequestEventTarget: TYPE_VALUE, XMLHttpRequestUpload: TYPE_VALUE, + Console: TYPE, + WebAssembly: TYPE_VALUE, + EncodedVideoChunkOutputCallback: TYPE, + FrameRequestCallback: TYPE, + LockGrantedCallback: TYPE, + OnErrorEventHandlerNonNull: TYPE, + PerformanceObserverCallback: TYPE, + QueuingStrategySize: TYPE, + ReportingObserverCallback: TYPE, + TransformerFlushCallback: TYPE, + TransformerStartCallback: TYPE, + TransformerTransformCallback: TYPE, + UnderlyingSinkAbortCallback: TYPE, + UnderlyingSinkCloseCallback: TYPE, + UnderlyingSinkStartCallback: TYPE, + UnderlyingSinkWriteCallback: TYPE, + UnderlyingSourceCancelCallback: TYPE, + UnderlyingSourcePullCallback: TYPE, + UnderlyingSourceStartCallback: TYPE, + VideoFrameOutputCallback: TYPE, + VoidFunction: TYPE, + WebCodecsErrorCallback: TYPE, + AlgorithmIdentifier: TYPE, + AllowSharedBufferSource: TYPE, + BigInteger: TYPE, + BinaryData: TYPE, + BlobPart: TYPE, + BodyInit: TYPE, + BufferSource: TYPE, + CSSKeywordish: TYPE, + CSSNumberish: TYPE, + CSSPerspectiveValue: TYPE, + CSSUnparsedSegment: TYPE, + CanvasImageSource: TYPE, + DOMHighResTimeStamp: TYPE, + EpochTimeStamp: TYPE, + EventListenerOrEventListenerObject: TYPE, + FileSystemWriteChunkType: TYPE, + Float32List: TYPE, + FormDataEntryValue: TYPE, + GLbitfield: TYPE, + GLboolean: TYPE, + GLclampf: TYPE, + GLenum: TYPE, + GLfloat: TYPE, + GLint: TYPE, + GLint64: TYPE, + GLintptr: TYPE, + GLsizei: TYPE, + GLsizeiptr: TYPE, + GLuint: TYPE, + GLuint64: TYPE, + HashAlgorithmIdentifier: TYPE, + HeadersInit: TYPE, + IDBValidKey: TYPE, + ImageBitmapSource: TYPE, + Int32List: TYPE, + MessageEventSource: TYPE, + NamedCurve: TYPE, + OffscreenRenderingContext: TYPE, + OnErrorEventHandler: TYPE, + PerformanceEntryList: TYPE, + PushMessageDataInit: TYPE, + ReadableStreamController: TYPE, + ReadableStreamReadResult: TYPE, + ReadableStreamReader: TYPE, + ReportList: TYPE, + RequestInfo: TYPE, + TexImageSource: TYPE, + TimerHandler: TYPE, + Transferable: TYPE, + Uint32List: TYPE, + XMLHttpRequestBodyInit: TYPE, + AlphaOption: TYPE, + AvcBitstreamFormat: TYPE, + BinaryType: TYPE, + CSSMathOperator: TYPE, + CSSNumericBaseType: TYPE, + CanvasDirection: TYPE, + CanvasFillRule: TYPE, + CanvasFontKerning: TYPE, + CanvasFontStretch: TYPE, + CanvasFontVariantCaps: TYPE, + CanvasLineCap: TYPE, + CanvasLineJoin: TYPE, + CanvasTextAlign: TYPE, + CanvasTextBaseline: TYPE, + CanvasTextRendering: TYPE, + ClientTypes: TYPE, + CodecState: TYPE, + ColorGamut: TYPE, + ColorSpaceConversion: TYPE, + CompressionFormat: TYPE, + DocumentVisibilityState: TYPE, + EncodedVideoChunkType: TYPE, + EndingType: TYPE, + FileSystemHandleKind: TYPE, + FontDisplay: TYPE, + FontFaceLoadStatus: TYPE, + FontFaceSetLoadStatus: TYPE, + FrameType: TYPE, + GlobalCompositeOperation: TYPE, + HardwareAcceleration: TYPE, + HdrMetadataType: TYPE, + IDBCursorDirection: TYPE, + IDBRequestReadyState: TYPE, + IDBTransactionDurability: TYPE, + IDBTransactionMode: TYPE, + ImageOrientation: TYPE, + ImageSmoothingQuality: TYPE, + KeyFormat: TYPE, + KeyType: TYPE, + KeyUsage: TYPE, + LatencyMode: TYPE, + LockMode: TYPE, + MediaDecodingType: TYPE, + MediaEncodingType: TYPE, + NotificationDirection: TYPE, + NotificationPermission: TYPE, + OffscreenRenderingContextId: TYPE, + PermissionName: TYPE, + PermissionState: TYPE, + PredefinedColorSpace: TYPE, + PremultiplyAlpha: TYPE, + PushEncryptionKeyName: TYPE, + RTCEncodedVideoFrameType: TYPE, + ReadableStreamReaderMode: TYPE, + ReadableStreamType: TYPE, + ReferrerPolicy: TYPE, + RequestCache: TYPE, + RequestCredentials: TYPE, + RequestDestination: TYPE, + RequestMode: TYPE, + RequestPriority: TYPE, + RequestRedirect: TYPE, + ResizeQuality: TYPE, + ResponseType: TYPE, + SecurityPolicyViolationEventDisposition: TYPE, + ServiceWorkerState: TYPE, + ServiceWorkerUpdateViaCache: TYPE, + TransferFunction: TYPE, + VideoColorPrimaries: TYPE, + VideoEncoderBitrateMode: TYPE, + VideoMatrixCoefficients: TYPE, + VideoPixelFormat: TYPE, + VideoTransferCharacteristics: TYPE, + WebGLPowerPreference: TYPE, + WebTransportCongestionControl: TYPE, + WebTransportErrorSource: TYPE, + WorkerType: TYPE, + WriteCommandType: TYPE, + XMLHttpRequestResponseType: TYPE, } as Record; diff --git a/packages/types/src/lib.ts b/packages/types/src/lib.ts index 70690101ed96..8426161dcd09 100644 --- a/packages/types/src/lib.ts +++ b/packages/types/src/lib.ts @@ -4,17 +4,29 @@ // npx nx generate-lib repo type Lib = - | 'decorators' - | 'decorators.legacy' - | 'dom' - | 'dom.asynciterable' - | 'dom.iterable' | 'es5' | 'es6' - | 'es7' | 'es2015' - | 'es2015.collection' + | 'es7' + | 'es2016' + | 'es2017' + | 'es2018' + | 'es2019' + | 'es2020' + | 'es2021' + | 'es2022' + | 'es2023' + | 'esnext' + | 'dom' + | 'dom.iterable' + | 'dom.asynciterable' + | 'webworker' + | 'webworker.importscripts' + | 'webworker.iterable' + | 'webworker.asynciterable' + | 'scripthost' | 'es2015.core' + | 'es2015.collection' | 'es2015.generator' | 'es2015.iterable' | 'es2015.promise' @@ -22,83 +34,71 @@ type Lib = | 'es2015.reflect' | 'es2015.symbol' | 'es2015.symbol.wellknown' - | 'es2016' | 'es2016.array.include' - | 'es2016.full' | 'es2016.intl' - | 'es2017' | 'es2017.date' - | 'es2017.full' - | 'es2017.intl' | 'es2017.object' | 'es2017.sharedmemory' | 'es2017.string' + | 'es2017.intl' | 'es2017.typedarrays' - | 'es2018' | 'es2018.asyncgenerator' | 'es2018.asynciterable' - | 'es2018.full' | 'es2018.intl' | 'es2018.promise' | 'es2018.regexp' - | 'es2019' | 'es2019.array' - | 'es2019.full' - | 'es2019.intl' | 'es2019.object' | 'es2019.string' | 'es2019.symbol' - | 'es2020' + | 'es2019.intl' | 'es2020.bigint' | 'es2020.date' - | 'es2020.full' - | 'es2020.intl' - | 'es2020.number' | 'es2020.promise' | 'es2020.sharedmemory' | 'es2020.string' | 'es2020.symbol.wellknown' - | 'es2021' - | 'es2021.full' - | 'es2021.intl' + | 'es2020.intl' + | 'es2020.number' | 'es2021.promise' | 'es2021.string' | 'es2021.weakref' - | 'es2022' + | 'es2021.intl' | 'es2022.array' | 'es2022.error' - | 'es2022.full' | 'es2022.intl' | 'es2022.object' - | 'es2022.regexp' | 'es2022.sharedmemory' | 'es2022.string' - | 'es2023' + | 'es2022.regexp' | 'es2023.array' | 'es2023.collection' - | 'es2023.full' | 'es2023.intl' - | 'esnext' | 'esnext.array' + | 'esnext.collection' + | 'esnext.symbol' | 'esnext.asynciterable' + | 'esnext.intl' + | 'esnext.disposable' | 'esnext.bigint' - | 'esnext.collection' + | 'esnext.string' + | 'esnext.promise' + | 'esnext.weakref' | 'esnext.decorators' - | 'esnext.disposable' - | 'esnext.full' - | 'esnext.intl' - | 'esnext.iterator' | 'esnext.object' - | 'esnext.promise' | 'esnext.regexp' - | 'esnext.string' - | 'esnext.symbol' - | 'esnext.weakref' - | 'lib' - | 'scripthost' - | 'webworker' - | 'webworker.asynciterable' - | 'webworker.importscripts' - | 'webworker.iterable'; + | 'esnext.iterator' + | 'decorators' + | 'decorators.legacy' + | 'es2016.full' + | 'es2017.full' + | 'es2018.full' + | 'es2019.full' + | 'es2020.full' + | 'es2021.full' + | 'es2022.full' + | 'es2023.full' + | 'esnext.full' + | 'lib'; export { Lib }; From ae952ad5b7937750bddf8c2ff66fd4f9c3936a2a Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Mon, 14 Oct 2024 17:53:09 -0400 Subject: [PATCH 07/14] Fix a couple of rules --- .../src/rules/consistent-type-exports.ts | 9 ++++-- .../src/rules/naming-convention.ts | 5 +++- .../rules/consistent-type-exports.test.ts | 13 ++++++++ .../naming-convention.test.ts | 30 +++++++++++++++++++ 4 files changed, 53 insertions(+), 4 deletions(-) diff --git a/packages/eslint-plugin/src/rules/consistent-type-exports.ts b/packages/eslint-plugin/src/rules/consistent-type-exports.ts index 4acd22ecf746..b99cc37c7e82 100644 --- a/packages/eslint-plugin/src/rules/consistent-type-exports.ts +++ b/packages/eslint-plugin/src/rules/consistent-type-exports.ts @@ -446,9 +446,12 @@ function getSourceFromExport( * the proper formatting. */ function getSpecifierText(specifier: TSESTree.ExportSpecifier): string { + const exportedName = + specifier.exported.type === AST_NODE_TYPES.Literal + ? specifier.exported.raw + : specifier.exported.name; + return `${specifier.local.name}${ - specifier.exported.name !== specifier.local.name - ? ` as ${specifier.exported.name}` - : '' + exportedName !== specifier.local.name ? ` as ${exportedName}` : '' }`; } diff --git a/packages/eslint-plugin/src/rules/naming-convention.ts b/packages/eslint-plugin/src/rules/naming-convention.ts index 6363210b12e5..736bfdadc407 100644 --- a/packages/eslint-plugin/src/rules/naming-convention.ts +++ b/packages/eslint-plugin/src/rules/naming-convention.ts @@ -296,7 +296,10 @@ export default createRule({ break; case AST_NODE_TYPES.ImportSpecifier: // Handle `import { default as Foo }` - if (node.imported.name !== 'default') { + if ( + node.imported.type === AST_NODE_TYPES.Identifier && + node.imported.name !== 'default' + ) { return; } modifiers.add(Modifiers.default); diff --git a/packages/eslint-plugin/tests/rules/consistent-type-exports.test.ts b/packages/eslint-plugin/tests/rules/consistent-type-exports.test.ts index 880f4441047a..244577ef4577 100644 --- a/packages/eslint-plugin/tests/rules/consistent-type-exports.test.ts +++ b/packages/eslint-plugin/tests/rules/consistent-type-exports.test.ts @@ -21,6 +21,7 @@ ruleTester.run('consistent-type-exports', rule, { "export type { Type1 } from './consistent-type-exports';", "export { value1 } from './consistent-type-exports';", + 'export { value1 as "🍎" } from \'./consistent-type-exports\';', "export type { value1 } from './consistent-type-exports';", ` const variable = 1; @@ -75,6 +76,18 @@ export { NonTypeNS }; ], output: "export type { Type1 } from './consistent-type-exports';", }, + { + code: 'export { Type1 as "🍎" } from \'./consistent-type-exports\';', + errors: [ + { + column: 1, + line: 1, + messageId: 'typeOverValue', + }, + ], + output: + 'export type { Type1 as "🍎" } from \'./consistent-type-exports\';', + }, { code: "export { Type1, value1 } from './consistent-type-exports';", errors: [ diff --git a/packages/eslint-plugin/tests/rules/naming-convention/naming-convention.test.ts b/packages/eslint-plugin/tests/rules/naming-convention/naming-convention.test.ts index 520e186a97c6..7ddc7dc93ec0 100644 --- a/packages/eslint-plugin/tests/rules/naming-convention/naming-convention.test.ts +++ b/packages/eslint-plugin/tests/rules/naming-convention/naming-convention.test.ts @@ -1280,6 +1280,26 @@ ruleTester.run('naming-convention', rule, { }, ], }, + { + code: 'import { "🍎" as foo } from \'foo_bar\';', + errors: [ + { + data: { + formats: 'PascalCase', + name: 'foo', + type: 'Import', + }, + messageId: 'doesNotMatchFormat', + }, + ], + languageOptions: { parserOptions }, + options: [ + { + format: ['PascalCase'], + selector: ['import'], + }, + ], + }, ], valid: [ { @@ -2260,5 +2280,15 @@ ruleTester.run('naming-convention', rule, { }, ], }, + { + code: 'import { "🍎" as Foo } from \'foo_bar\';', + languageOptions: { parserOptions }, + options: [ + { + format: ['PascalCase'], + selector: ['import'], + }, + ], + }, ], }); From 5c87171d9c49c36d19bd5a75f0a679e62db389c3 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Mon, 14 Oct 2024 18:13:59 -0400 Subject: [PATCH 08/14] Split ExportSpecifier back out --- .../ast-spec/src/special/ExportSpecifier/spec.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/packages/ast-spec/src/special/ExportSpecifier/spec.ts b/packages/ast-spec/src/special/ExportSpecifier/spec.ts index bf5ab73d82d3..668e9c92c6c9 100644 --- a/packages/ast-spec/src/special/ExportSpecifier/spec.ts +++ b/packages/ast-spec/src/special/ExportSpecifier/spec.ts @@ -4,9 +4,18 @@ import type { ExportKind } from '../../declaration/ExportAndImportKind'; import type { Identifier } from '../../expression/Identifier/spec'; import type { StringLiteral } from '../../expression/literal/StringLiteral/spec'; -export interface ExportSpecifier extends BaseNode { +export interface ExportSpecifierBase extends BaseNode { type: AST_NODE_TYPES.ExportSpecifier; - exported: StringLiteral | Identifier; exportKind: ExportKind; local: Identifier; } + +export interface ExportIdentifierSpecifier extends ExportSpecifierBase { + exported: Identifier; +} + +export interface ExportSourceSpecifier extends ExportSpecifierBase { + exported: Identifier | StringLiteral; +} + +export type ExportSpecifier = ExportIdentifierSpecifier | ExportSourceSpecifier; From d1eef8e8cfe33102547db3659565ab53b184915a Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Mon, 14 Oct 2024 20:26:48 -0400 Subject: [PATCH 09/14] fixed linting --- .../src/rules/no-unsafe-argument.ts | 6 +- .../rules/consistent-type-exports.test.ts | 1 + .../naming-convention.test.ts | 1 + .../src/lib/decorators.legacy.ts | 3 +- packages/scope-manager/src/lib/decorators.ts | 19 +- .../src/lib/dom.asynciterable.ts | 5 +- .../scope-manager/src/lib/dom.iterable.ts | 41 +- packages/scope-manager/src/lib/dom.ts | 2407 +++++++++-------- .../src/lib/es2015.collection.ts | 7 +- packages/scope-manager/src/lib/es2015.core.ts | 15 +- .../scope-manager/src/lib/es2015.generator.ts | 3 +- .../scope-manager/src/lib/es2015.iterable.ts | 75 +- .../scope-manager/src/lib/es2015.promise.ts | 1 + .../scope-manager/src/lib/es2015.proxy.ts | 3 +- .../scope-manager/src/lib/es2015.reflect.ts | 1 + .../scope-manager/src/lib/es2015.symbol.ts | 1 + .../src/lib/es2015.symbol.wellknown.ts | 45 +- packages/scope-manager/src/lib/es2015.ts | 7 +- .../src/lib/es2016.array.include.ts | 15 +- packages/scope-manager/src/lib/es2016.full.ts | 7 +- packages/scope-manager/src/lib/es2016.intl.ts | 1 + packages/scope-manager/src/lib/es2016.ts | 1 + packages/scope-manager/src/lib/es2017.date.ts | 1 + packages/scope-manager/src/lib/es2017.full.ts | 7 +- packages/scope-manager/src/lib/es2017.intl.ts | 1 + .../scope-manager/src/lib/es2017.object.ts | 1 + .../src/lib/es2017.sharedmemory.ts | 7 +- .../scope-manager/src/lib/es2017.string.ts | 1 + packages/scope-manager/src/lib/es2017.ts | 5 +- .../src/lib/es2017.typedarrays.ts | 13 +- .../src/lib/es2018.asyncgenerator.ts | 3 +- .../src/lib/es2018.asynciterable.ts | 9 +- packages/scope-manager/src/lib/es2018.full.ts | 9 +- packages/scope-manager/src/lib/es2018.intl.ts | 1 + .../scope-manager/src/lib/es2018.promise.ts | 1 + .../scope-manager/src/lib/es2018.regexp.ts | 5 +- packages/scope-manager/src/lib/es2018.ts | 5 +- .../scope-manager/src/lib/es2019.array.ts | 3 +- packages/scope-manager/src/lib/es2019.full.ts | 9 +- packages/scope-manager/src/lib/es2019.intl.ts | 1 + .../scope-manager/src/lib/es2019.object.ts | 3 +- .../scope-manager/src/lib/es2019.string.ts | 1 + .../scope-manager/src/lib/es2019.symbol.ts | 1 + packages/scope-manager/src/lib/es2019.ts | 3 +- .../scope-manager/src/lib/es2020.bigint.ts | 7 +- packages/scope-manager/src/lib/es2020.date.ts | 3 +- packages/scope-manager/src/lib/es2020.full.ts | 9 +- packages/scope-manager/src/lib/es2020.intl.ts | 3 +- .../scope-manager/src/lib/es2020.number.ts | 3 +- .../scope-manager/src/lib/es2020.promise.ts | 3 +- .../src/lib/es2020.sharedmemory.ts | 1 + .../scope-manager/src/lib/es2020.string.ts | 3 +- .../src/lib/es2020.symbol.wellknown.ts | 7 +- packages/scope-manager/src/lib/es2020.ts | 3 +- packages/scope-manager/src/lib/es2021.full.ts | 9 +- packages/scope-manager/src/lib/es2021.intl.ts | 1 + .../scope-manager/src/lib/es2021.promise.ts | 1 + .../scope-manager/src/lib/es2021.string.ts | 1 + packages/scope-manager/src/lib/es2021.ts | 3 +- .../scope-manager/src/lib/es2021.weakref.ts | 5 +- .../scope-manager/src/lib/es2022.array.ts | 19 +- .../scope-manager/src/lib/es2022.error.ts | 5 +- packages/scope-manager/src/lib/es2022.full.ts | 9 +- packages/scope-manager/src/lib/es2022.intl.ts | 1 + .../scope-manager/src/lib/es2022.object.ts | 1 + .../scope-manager/src/lib/es2022.regexp.ts | 5 +- .../src/lib/es2022.sharedmemory.ts | 1 + .../scope-manager/src/lib/es2022.string.ts | 1 + packages/scope-manager/src/lib/es2022.ts | 3 +- .../scope-manager/src/lib/es2023.array.ts | 19 +- .../src/lib/es2023.collection.ts | 1 + packages/scope-manager/src/lib/es2023.full.ts | 9 +- packages/scope-manager/src/lib/es2023.intl.ts | 1 + packages/scope-manager/src/lib/es2023.ts | 1 + packages/scope-manager/src/lib/es5.ts | 169 +- packages/scope-manager/src/lib/es6.ts | 7 +- packages/scope-manager/src/lib/es7.ts | 1 + .../scope-manager/src/lib/esnext.array.ts | 1 + .../src/lib/esnext.asynciterable.ts | 9 +- .../scope-manager/src/lib/esnext.bigint.ts | 7 +- .../src/lib/esnext.collection.ts | 3 +- .../src/lib/esnext.decorators.ts | 7 +- .../src/lib/esnext.disposable.ts | 19 +- packages/scope-manager/src/lib/esnext.full.ts | 9 +- packages/scope-manager/src/lib/esnext.intl.ts | 1 + .../scope-manager/src/lib/esnext.iterator.ts | 3 +- .../scope-manager/src/lib/esnext.object.ts | 1 + .../scope-manager/src/lib/esnext.promise.ts | 3 +- .../scope-manager/src/lib/esnext.regexp.ts | 1 + .../scope-manager/src/lib/esnext.string.ts | 1 + .../scope-manager/src/lib/esnext.symbol.ts | 1 + packages/scope-manager/src/lib/esnext.ts | 11 +- .../scope-manager/src/lib/esnext.weakref.ts | 5 +- packages/scope-manager/src/lib/index.ts | 180 +- packages/scope-manager/src/lib/lib.ts | 5 +- packages/scope-manager/src/lib/scripthost.ts | 15 +- .../src/lib/webworker.asynciterable.ts | 5 +- .../src/lib/webworker.iterable.ts | 15 +- packages/scope-manager/src/lib/webworker.ts | 723 ++--- packages/types/src/lib.ts | 90 +- 100 files changed, 2142 insertions(+), 2043 deletions(-) diff --git a/packages/eslint-plugin/src/rules/no-unsafe-argument.ts b/packages/eslint-plugin/src/rules/no-unsafe-argument.ts index f89a7ddcec88..60a3e01a9d51 100644 --- a/packages/eslint-plugin/src/rules/no-unsafe-argument.ts +++ b/packages/eslint-plugin/src/rules/no-unsafe-argument.ts @@ -1,8 +1,8 @@ import type { TSESTree } from '@typescript-eslint/utils'; -import type * as ts from 'typescript'; import { AST_NODE_TYPES } from '@typescript-eslint/utils'; import * as tsutils from 'ts-api-utils'; +import * as ts from 'typescript'; import { createRule, @@ -270,7 +270,9 @@ export default createRule<[], MessageIds>({ }); } } - if (spreadArgType.target.hasRestElement) { + if ( + spreadArgType.target.combinedFlags & ts.ElementFlags.Variable + ) { // the last element was a rest - so all remaining defined arguments can be considered "consumed" // all remaining arguments should be compared against the rest type (if one exists) signature.consumeRemainingArguments(); diff --git a/packages/eslint-plugin/tests/rules/consistent-type-exports.test.ts b/packages/eslint-plugin/tests/rules/consistent-type-exports.test.ts index 244577ef4577..8508cd75ae77 100644 --- a/packages/eslint-plugin/tests/rules/consistent-type-exports.test.ts +++ b/packages/eslint-plugin/tests/rules/consistent-type-exports.test.ts @@ -1,3 +1,4 @@ +/* eslint-disable @typescript-eslint/internal/plugin-test-formatting -- Prettier doesn't yet support TS 5.6 string literal module identifiers */ import { noFormat, RuleTester } from '@typescript-eslint/rule-tester'; import rule from '../../src/rules/consistent-type-exports'; diff --git a/packages/eslint-plugin/tests/rules/naming-convention/naming-convention.test.ts b/packages/eslint-plugin/tests/rules/naming-convention/naming-convention.test.ts index 7ddc7dc93ec0..c43b293c686e 100644 --- a/packages/eslint-plugin/tests/rules/naming-convention/naming-convention.test.ts +++ b/packages/eslint-plugin/tests/rules/naming-convention/naming-convention.test.ts @@ -1,3 +1,4 @@ +/* eslint-disable @typescript-eslint/internal/plugin-test-formatting -- Prettier doesn't yet support TS 5.6 string literal module identifiers */ /* eslint-disable @typescript-eslint/internal/prefer-ast-types-enum */ import { noFormat, RuleTester } from '@typescript-eslint/rule-tester'; diff --git a/packages/scope-manager/src/lib/decorators.legacy.ts b/packages/scope-manager/src/lib/decorators.legacy.ts index ee080ff2af79..fee87258fae0 100644 --- a/packages/scope-manager/src/lib/decorators.legacy.ts +++ b/packages/scope-manager/src/lib/decorators.legacy.ts @@ -4,11 +4,12 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const decorators_legacy = { ClassDecorator: TYPE, - PropertyDecorator: TYPE, MethodDecorator: TYPE, ParameterDecorator: TYPE, + PropertyDecorator: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/decorators.ts b/packages/scope-manager/src/lib/decorators.ts index 406ca4f65f6c..242f47160d3d 100644 --- a/packages/scope-manager/src/lib/decorators.ts +++ b/packages/scope-manager/src/lib/decorators.ts @@ -4,19 +4,20 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const decorators = { - ClassMemberDecoratorContext: TYPE, - DecoratorContext: TYPE, - DecoratorMetadataObject: TYPE, - DecoratorMetadata: TYPE, - ClassDecoratorContext: TYPE, - ClassMethodDecoratorContext: TYPE, - ClassGetterDecoratorContext: TYPE, - ClassSetterDecoratorContext: TYPE, ClassAccessorDecoratorContext: TYPE, - ClassAccessorDecoratorTarget: TYPE, ClassAccessorDecoratorResult: TYPE, + ClassAccessorDecoratorTarget: TYPE, + ClassDecoratorContext: TYPE, ClassFieldDecoratorContext: TYPE, + ClassGetterDecoratorContext: TYPE, + ClassMemberDecoratorContext: TYPE, + ClassMethodDecoratorContext: TYPE, + ClassSetterDecoratorContext: TYPE, + DecoratorContext: TYPE, + DecoratorMetadata: TYPE, + DecoratorMetadataObject: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/dom.asynciterable.ts b/packages/scope-manager/src/lib/dom.asynciterable.ts index a094f6ff0b26..761d03534d1f 100644 --- a/packages/scope-manager/src/lib/dom.asynciterable.ts +++ b/packages/scope-manager/src/lib/dom.asynciterable.ts @@ -4,11 +4,12 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const dom_asynciterable = { - FileSystemDirectoryHandleAsyncIterator: TYPE, FileSystemDirectoryHandle: TYPE, - ReadableStreamAsyncIterator: TYPE, + FileSystemDirectoryHandleAsyncIterator: TYPE, ReadableStream: TYPE, + ReadableStreamAsyncIterator: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/dom.iterable.ts b/packages/scope-manager/src/lib/dom.iterable.ts index aa220b550fae..74b45f7e08c8 100644 --- a/packages/scope-manager/src/lib/dom.iterable.ts +++ b/packages/scope-manager/src/lib/dom.iterable.ts @@ -4,6 +4,7 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const dom_iterable = { @@ -11,43 +12,43 @@ export const dom_iterable = { AudioParam: TYPE, AudioParamMap: TYPE, BaseAudioContext: TYPE, + Cache: TYPE, + CanvasPath: TYPE, + CanvasPathDrawingStyles: TYPE, CSSKeyframesRule: TYPE, CSSNumericArray: TYPE, CSSRuleList: TYPE, CSSStyleDeclaration: TYPE, CSSTransformValue: TYPE, CSSUnparsedValue: TYPE, - Cache: TYPE, - CanvasPath: TYPE, - CanvasPathDrawingStyles: TYPE, CustomStateSet: TYPE, + DataTransferItemList: TYPE, DOMRectList: TYPE, DOMStringList: TYPE, DOMTokenList: TYPE, - DataTransferItemList: TYPE, EventCounts: TYPE, FileList: TYPE, FontFaceSet: TYPE, - FormDataIterator: TYPE, FormData: TYPE, + FormDataIterator: TYPE, + Headers: TYPE, + HeadersIterator: TYPE, + Highlight: TYPE, + HighlightRegistry: TYPE, HTMLAllCollection: TYPE, HTMLCollectionBase: TYPE, HTMLCollectionOf: TYPE, HTMLFormElement: TYPE, HTMLSelectElement: TYPE, - HeadersIterator: TYPE, - Headers: TYPE, - Highlight: TYPE, - HighlightRegistry: TYPE, IDBDatabase: TYPE, IDBObjectStore: TYPE, - MIDIInputMap: TYPE, - MIDIOutput: TYPE, - MIDIOutputMap: TYPE, - MediaKeyStatusMapIterator: TYPE, MediaKeyStatusMap: TYPE, + MediaKeyStatusMapIterator: TYPE, MediaList: TYPE, MessageEvent: TYPE, + MIDIInputMap: TYPE, + MIDIOutput: TYPE, + MIDIOutputMap: TYPE, MimeTypeArray: TYPE, NamedNodeMap: TYPE, Navigator: TYPE, @@ -57,23 +58,23 @@ export const dom_iterable = { PluginArray: TYPE, RTCRtpTransceiver: TYPE, RTCStatsReport: TYPE, - SVGLengthList: TYPE, - SVGNumberList: TYPE, - SVGPointList: TYPE, - SVGStringList: TYPE, - SVGTransformList: TYPE, SourceBufferList: TYPE, SpeechRecognitionResult: TYPE, SpeechRecognitionResultList: TYPE, - StylePropertyMapReadOnlyIterator: TYPE, StylePropertyMapReadOnly: TYPE, + StylePropertyMapReadOnlyIterator: TYPE, StyleSheetList: TYPE, SubtleCrypto: TYPE, + SVGLengthList: TYPE, + SVGNumberList: TYPE, + SVGPointList: TYPE, + SVGStringList: TYPE, + SVGTransformList: TYPE, TextTrackCueList: TYPE, TextTrackList: TYPE, TouchList: TYPE, - URLSearchParamsIterator: TYPE, URLSearchParams: TYPE, + URLSearchParamsIterator: TYPE, WEBGL_draw_buffers: TYPE, WEBGL_multi_draw: TYPE, WebGL2RenderingContextBase: TYPE, diff --git a/packages/scope-manager/src/lib/dom.ts b/packages/scope-manager/src/lib/dom.ts index fd8c41f4dee2..c4bad4cc89aa 100644 --- a/packages/scope-manager/src/lib/dom.ts +++ b/packages/scope-manager/src/lib/dom.ts @@ -4,9 +4,16 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE, TYPE_VALUE } from './base-config'; export const dom = { + AbortController: TYPE_VALUE, + AbortSignal: TYPE_VALUE, + AbortSignalEventMap: TYPE, + AbstractRange: TYPE_VALUE, + AbstractWorker: TYPE, + AbstractWorkerEventMap: TYPE, AddEventListenerOptions: TYPE, AesCbcParams: TYPE, AesCtrParams: TYPE, @@ -15,261 +22,951 @@ export const dom = { AesKeyAlgorithm: TYPE, AesKeyGenParams: TYPE, Algorithm: TYPE, + AlgorithmIdentifier: TYPE, + AlignSetting: TYPE, + AllowSharedBufferSource: TYPE, + AlphaOption: TYPE, + AnalyserNode: TYPE_VALUE, AnalyserOptions: TYPE, + ANGLE_instanced_arrays: TYPE, + Animatable: TYPE, + Animation: TYPE_VALUE, + AnimationEffect: TYPE_VALUE, + AnimationEvent: TYPE_VALUE, AnimationEventInit: TYPE, + AnimationEventMap: TYPE, + AnimationFrameProvider: TYPE, + AnimationPlaybackEvent: TYPE_VALUE, AnimationPlaybackEventInit: TYPE, + AnimationPlayState: TYPE, + AnimationReplaceState: TYPE, + AnimationTimeline: TYPE_VALUE, + AppendMode: TYPE, + ARIAMixin: TYPE, AssignedNodesOptions: TYPE, + AttestationConveyancePreference: TYPE, + Attr: TYPE_VALUE, + AudioBuffer: TYPE_VALUE, AudioBufferOptions: TYPE, + AudioBufferSourceNode: TYPE_VALUE, AudioBufferSourceOptions: TYPE, AudioConfiguration: TYPE, + AudioContext: TYPE_VALUE, + AudioContextLatencyCategory: TYPE, AudioContextOptions: TYPE, + AudioContextState: TYPE, + AudioDestinationNode: TYPE_VALUE, + AudioListener: TYPE_VALUE, + AudioNode: TYPE_VALUE, AudioNodeOptions: TYPE, + AudioParam: TYPE_VALUE, + AudioParamMap: TYPE_VALUE, + AudioProcessingEvent: TYPE_VALUE, AudioProcessingEventInit: TYPE, + AudioScheduledSourceNode: TYPE_VALUE, + AudioScheduledSourceNodeEventMap: TYPE, AudioTimestamp: TYPE, + AudioWorklet: TYPE_VALUE, + AudioWorkletNode: TYPE_VALUE, + AudioWorkletNodeEventMap: TYPE, AudioWorkletNodeOptions: TYPE, AuthenticationExtensionsClientInputs: TYPE, AuthenticationExtensionsClientOutputs: TYPE, + AuthenticatorAssertionResponse: TYPE_VALUE, + AuthenticatorAttachment: TYPE, + AuthenticatorAttestationResponse: TYPE_VALUE, + AuthenticatorResponse: TYPE_VALUE, AuthenticatorSelectionCriteria: TYPE, + AuthenticatorTransport: TYPE, + AutoFill: TYPE, + AutoFillAddressKind: TYPE, + AutoFillBase: TYPE, + AutoFillContactField: TYPE, + AutoFillContactKind: TYPE, + AutoFillCredentialField: TYPE, + AutoFillField: TYPE, + AutoFillNormalField: TYPE, + AutoFillSection: TYPE, + AutoKeyword: TYPE, + AutomationRate: TYPE, + AvcBitstreamFormat: TYPE, AvcEncoderConfig: TYPE, + BarProp: TYPE_VALUE, + BaseAudioContext: TYPE_VALUE, + BaseAudioContextEventMap: TYPE, + BeforeUnloadEvent: TYPE_VALUE, + BigInteger: TYPE, + BinaryData: TYPE, + BinaryType: TYPE, + BiquadFilterNode: TYPE_VALUE, BiquadFilterOptions: TYPE, + BiquadFilterType: TYPE, + Blob: TYPE_VALUE, + BlobCallback: TYPE, + BlobEvent: TYPE_VALUE, BlobEventInit: TYPE, + BlobPart: TYPE, BlobPropertyBag: TYPE, - CSSMatrixComponentOptions: TYPE, - CSSNumericType: TYPE, - CSSStyleSheetInit: TYPE, + Body: TYPE, + BodyInit: TYPE, + BroadcastChannel: TYPE_VALUE, + BroadcastChannelEventMap: TYPE, + BufferSource: TYPE, + ByteLengthQueuingStrategy: TYPE_VALUE, + Cache: TYPE_VALUE, CacheQueryOptions: TYPE, + CacheStorage: TYPE_VALUE, + CanPlayTypeResult: TYPE, + CanvasCaptureMediaStreamTrack: TYPE_VALUE, + CanvasCompositing: TYPE, + CanvasDirection: TYPE, + CanvasDrawImage: TYPE, + CanvasDrawPath: TYPE, + CanvasFillRule: TYPE, + CanvasFillStrokeStyles: TYPE, + CanvasFilters: TYPE, + CanvasFontKerning: TYPE, + CanvasFontStretch: TYPE, + CanvasFontVariantCaps: TYPE, + CanvasGradient: TYPE_VALUE, + CanvasImageData: TYPE, + CanvasImageSmoothing: TYPE, + CanvasImageSource: TYPE, + CanvasLineCap: TYPE, + CanvasLineJoin: TYPE, + CanvasPath: TYPE, + CanvasPathDrawingStyles: TYPE, + CanvasPattern: TYPE_VALUE, + CanvasRect: TYPE, + CanvasRenderingContext2D: TYPE_VALUE, CanvasRenderingContext2DSettings: TYPE, + CanvasShadowStyles: TYPE, + CanvasState: TYPE, + CanvasText: TYPE, + CanvasTextAlign: TYPE, + CanvasTextBaseline: TYPE, + CanvasTextDrawingStyles: TYPE, + CanvasTextRendering: TYPE, + CanvasTransform: TYPE, + CanvasUserInterface: TYPE, + CDATASection: TYPE_VALUE, + ChannelCountMode: TYPE, + ChannelInterpretation: TYPE, + ChannelMergerNode: TYPE_VALUE, ChannelMergerOptions: TYPE, + ChannelSplitterNode: TYPE_VALUE, ChannelSplitterOptions: TYPE, + CharacterData: TYPE_VALUE, CheckVisibilityOptions: TYPE, + ChildNode: TYPE, ClientQueryOptions: TYPE, + ClientRect: TYPE, + ClientTypes: TYPE, + Clipboard: TYPE_VALUE, + ClipboardEvent: TYPE_VALUE, ClipboardEventInit: TYPE, + ClipboardItem: TYPE_VALUE, + ClipboardItemData: TYPE, ClipboardItemOptions: TYPE, + ClipboardItems: TYPE, + CloseEvent: TYPE_VALUE, CloseEventInit: TYPE, + CodecState: TYPE, + ColorGamut: TYPE, + ColorSpaceConversion: TYPE, + Comment: TYPE_VALUE, + CompositeOperation: TYPE, + CompositeOperationOrAuto: TYPE, + CompositionEvent: TYPE_VALUE, CompositionEventInit: TYPE, + CompressionFormat: TYPE, + CompressionStream: TYPE_VALUE, ComputedEffectTiming: TYPE, ComputedKeyframe: TYPE, + Console: TYPE, + ConstantSourceNode: TYPE_VALUE, ConstantSourceOptions: TYPE, + ConstrainBoolean: TYPE, ConstrainBooleanParameters: TYPE, + ConstrainDOMString: TYPE, ConstrainDOMStringParameters: TYPE, + ConstrainDouble: TYPE, ConstrainDoubleRange: TYPE, + ConstrainULong: TYPE, ConstrainULongRange: TYPE, + ContentVisibilityAutoStateChangeEvent: TYPE_VALUE, ContentVisibilityAutoStateChangeEventInit: TYPE, + ConvolverNode: TYPE_VALUE, ConvolverOptions: TYPE, + COSEAlgorithmIdentifier: TYPE, + CountQueuingStrategy: TYPE_VALUE, + Credential: TYPE_VALUE, CredentialCreationOptions: TYPE, + CredentialMediationRequirement: TYPE, CredentialPropertiesOutput: TYPE, CredentialRequestOptions: TYPE, + CredentialsContainer: TYPE_VALUE, + Crypto: TYPE_VALUE, + CryptoKey: TYPE_VALUE, CryptoKeyPair: TYPE, + CSS: TYPE_VALUE, + CSSAnimation: TYPE_VALUE, + CSSConditionRule: TYPE_VALUE, + CSSContainerRule: TYPE_VALUE, + CSSCounterStyleRule: TYPE_VALUE, + CSSFontFaceRule: TYPE_VALUE, + CSSFontFeatureValuesRule: TYPE_VALUE, + CSSFontPaletteValuesRule: TYPE_VALUE, + CSSGroupingRule: TYPE_VALUE, + CSSImageValue: TYPE_VALUE, + CSSImportRule: TYPE_VALUE, + CSSKeyframeRule: TYPE_VALUE, + CSSKeyframesRule: TYPE_VALUE, + CSSKeywordish: TYPE, + CSSKeywordValue: TYPE_VALUE, + CSSLayerBlockRule: TYPE_VALUE, + CSSLayerStatementRule: TYPE_VALUE, + CSSMathClamp: TYPE_VALUE, + CSSMathInvert: TYPE_VALUE, + CSSMathMax: TYPE_VALUE, + CSSMathMin: TYPE_VALUE, + CSSMathNegate: TYPE_VALUE, + CSSMathOperator: TYPE, + CSSMathProduct: TYPE_VALUE, + CSSMathSum: TYPE_VALUE, + CSSMathValue: TYPE_VALUE, + CSSMatrixComponent: TYPE_VALUE, + CSSMatrixComponentOptions: TYPE, + CSSMediaRule: TYPE_VALUE, + CSSNamespaceRule: TYPE_VALUE, + CSSNumberish: TYPE, + CSSNumericArray: TYPE_VALUE, + CSSNumericBaseType: TYPE, + CSSNumericType: TYPE, + CSSNumericValue: TYPE_VALUE, + CSSPageRule: TYPE_VALUE, + CSSPerspective: TYPE_VALUE, + CSSPerspectiveValue: TYPE, + CSSPropertyRule: TYPE_VALUE, + CSSRotate: TYPE_VALUE, + CSSRule: TYPE_VALUE, + CSSRuleList: TYPE_VALUE, + CSSScale: TYPE_VALUE, + CSSScopeRule: TYPE_VALUE, + CSSSkew: TYPE_VALUE, + CSSSkewX: TYPE_VALUE, + CSSSkewY: TYPE_VALUE, + CSSStartingStyleRule: TYPE_VALUE, + CSSStyleDeclaration: TYPE_VALUE, + CSSStyleRule: TYPE_VALUE, + CSSStyleSheet: TYPE_VALUE, + CSSStyleSheetInit: TYPE, + CSSStyleValue: TYPE_VALUE, + CSSSupportsRule: TYPE_VALUE, + CSSTransformComponent: TYPE_VALUE, + CSSTransformValue: TYPE_VALUE, + CSSTransition: TYPE_VALUE, + CSSTranslate: TYPE_VALUE, + CSSUnitValue: TYPE_VALUE, + CSSUnparsedSegment: TYPE, + CSSUnparsedValue: TYPE_VALUE, + CSSVariableReferenceValue: TYPE_VALUE, + CustomElementConstructor: TYPE, + CustomElementRegistry: TYPE_VALUE, + CustomEvent: TYPE_VALUE, CustomEventInit: TYPE, - DOMMatrix2DInit: TYPE, - DOMMatrixInit: TYPE, - DOMPointInit: TYPE, - DOMQuadInit: TYPE, - DOMRectInit: TYPE, + CustomStateSet: TYPE_VALUE, + DataTransfer: TYPE_VALUE, + DataTransferItem: TYPE_VALUE, + DataTransferItemList: TYPE_VALUE, + DecodeErrorCallback: TYPE, + DecodeSuccessCallback: TYPE, + DecompressionStream: TYPE_VALUE, + DelayNode: TYPE_VALUE, DelayOptions: TYPE, + DeviceMotionEvent: TYPE_VALUE, + DeviceMotionEventAcceleration: TYPE, DeviceMotionEventAccelerationInit: TYPE, DeviceMotionEventInit: TYPE, + DeviceMotionEventRotationRate: TYPE, DeviceMotionEventRotationRateInit: TYPE, + DeviceOrientationEvent: TYPE_VALUE, DeviceOrientationEventInit: TYPE, + DirectionSetting: TYPE, + DisplayCaptureSurfaceType: TYPE, DisplayMediaStreamOptions: TYPE, + DistanceModelType: TYPE, + Document: TYPE_VALUE, + DocumentEventMap: TYPE, + DocumentFragment: TYPE_VALUE, + DocumentOrShadowRoot: TYPE, + DocumentReadyState: TYPE, + DocumentTimeline: TYPE_VALUE, DocumentTimelineOptions: TYPE, - DoubleRange: TYPE, - DragEventInit: TYPE, - DynamicsCompressorOptions: TYPE, - EcKeyAlgorithm: TYPE, - EcKeyGenParams: TYPE, - EcKeyImportParams: TYPE, - EcdhKeyDeriveParams: TYPE, - EcdsaParams: TYPE, - EffectTiming: TYPE, - ElementCreationOptions: TYPE, + DocumentType: TYPE_VALUE, + DocumentVisibilityState: TYPE, + DOMException: TYPE_VALUE, + DOMHighResTimeStamp: TYPE, + DOMImplementation: TYPE_VALUE, + DOMMatrix: TYPE_VALUE, + DOMMatrix2DInit: TYPE, + DOMMatrixInit: TYPE, + DOMMatrixReadOnly: TYPE_VALUE, + DOMParser: TYPE_VALUE, + DOMParserSupportedType: TYPE, + DOMPoint: TYPE_VALUE, + DOMPointInit: TYPE, + DOMPointReadOnly: TYPE_VALUE, + DOMQuad: TYPE_VALUE, + DOMQuadInit: TYPE, + DOMRect: TYPE_VALUE, + DOMRectInit: TYPE, + DOMRectList: TYPE_VALUE, + DOMRectReadOnly: TYPE_VALUE, + DOMStringList: TYPE_VALUE, + DOMStringMap: TYPE_VALUE, + DOMTokenList: TYPE_VALUE, + DoubleRange: TYPE, + DragEvent: TYPE_VALUE, + DragEventInit: TYPE, + DynamicsCompressorNode: TYPE_VALUE, + DynamicsCompressorOptions: TYPE, + EcdhKeyDeriveParams: TYPE, + EcdsaParams: TYPE, + EcKeyAlgorithm: TYPE, + EcKeyGenParams: TYPE, + EcKeyImportParams: TYPE, + EffectTiming: TYPE, + Element: TYPE_VALUE, + ElementContentEditable: TYPE, + ElementCreationOptions: TYPE, + ElementCSSInlineStyle: TYPE, ElementDefinitionOptions: TYPE, + ElementEventMap: TYPE, + ElementInternals: TYPE_VALUE, + ElementTagNameMap: TYPE, + EncodedVideoChunk: TYPE_VALUE, EncodedVideoChunkInit: TYPE, EncodedVideoChunkMetadata: TYPE, + EncodedVideoChunkOutputCallback: TYPE, + EncodedVideoChunkType: TYPE, + EndingType: TYPE, + EndOfStreamError: TYPE, + EpochTimeStamp: TYPE, + ErrorCallback: TYPE, + ErrorEvent: TYPE_VALUE, ErrorEventInit: TYPE, + Event: TYPE_VALUE, + EventCounts: TYPE_VALUE, EventInit: TYPE, + EventListener: TYPE, + EventListenerObject: TYPE, EventListenerOptions: TYPE, + EventListenerOrEventListenerObject: TYPE, EventModifierInit: TYPE, + EventSource: TYPE_VALUE, + EventSourceEventMap: TYPE, EventSourceInit: TYPE, + EventTarget: TYPE_VALUE, + EXT_blend_minmax: TYPE, + EXT_color_buffer_float: TYPE, + EXT_color_buffer_half_float: TYPE, + EXT_float_blend: TYPE, + EXT_frag_depth: TYPE, + EXT_shader_texture_lod: TYPE, + EXT_sRGB: TYPE, + EXT_texture_compression_bptc: TYPE, + EXT_texture_compression_rgtc: TYPE, + EXT_texture_filter_anisotropic: TYPE, + EXT_texture_norm16: TYPE, + External: TYPE_VALUE, + File: TYPE_VALUE, + FileCallback: TYPE, + FileList: TYPE_VALUE, FilePropertyBag: TYPE, + FileReader: TYPE_VALUE, + FileReaderEventMap: TYPE, + FileSystem: TYPE_VALUE, FileSystemCreateWritableOptions: TYPE, + FileSystemDirectoryEntry: TYPE_VALUE, + FileSystemDirectoryHandle: TYPE_VALUE, + FileSystemDirectoryReader: TYPE_VALUE, + FileSystemEntriesCallback: TYPE, + FileSystemEntry: TYPE_VALUE, + FileSystemEntryCallback: TYPE, + FileSystemFileEntry: TYPE_VALUE, + FileSystemFileHandle: TYPE_VALUE, FileSystemFlags: TYPE, FileSystemGetDirectoryOptions: TYPE, FileSystemGetFileOptions: TYPE, + FileSystemHandle: TYPE_VALUE, + FileSystemHandleKind: TYPE, FileSystemRemoveOptions: TYPE, + FileSystemWritableFileStream: TYPE_VALUE, + FileSystemWriteChunkType: TYPE, + FillMode: TYPE, + Float32List: TYPE, + FocusEvent: TYPE_VALUE, FocusEventInit: TYPE, FocusOptions: TYPE, + FontDisplay: TYPE, + FontFace: TYPE_VALUE, FontFaceDescriptors: TYPE, + FontFaceLoadStatus: TYPE, + FontFaceSet: TYPE_VALUE, + FontFaceSetEventMap: TYPE, + FontFaceSetLoadEvent: TYPE_VALUE, FontFaceSetLoadEventInit: TYPE, + FontFaceSetLoadStatus: TYPE, + FontFaceSource: TYPE, + FormData: TYPE_VALUE, + FormDataEntryValue: TYPE, + FormDataEvent: TYPE_VALUE, FormDataEventInit: TYPE, + FrameRequestCallback: TYPE, + FullscreenNavigationUI: TYPE, FullscreenOptions: TYPE, + FunctionStringCallback: TYPE, + GainNode: TYPE_VALUE, GainOptions: TYPE, + Gamepad: TYPE_VALUE, + GamepadButton: TYPE_VALUE, GamepadEffectParameters: TYPE, + GamepadEvent: TYPE_VALUE, GamepadEventInit: TYPE, + GamepadHapticActuator: TYPE_VALUE, + GamepadHapticEffectType: TYPE, + GamepadHapticsResult: TYPE, + GamepadMappingType: TYPE, + GenericTransformStream: TYPE, + Geolocation: TYPE_VALUE, + GeolocationCoordinates: TYPE_VALUE, + GeolocationPosition: TYPE_VALUE, + GeolocationPositionError: TYPE_VALUE, GetAnimationsOptions: TYPE, GetHTMLOptions: TYPE, GetNotificationOptions: TYPE, GetRootNodeOptions: TYPE, + GLbitfield: TYPE, + GLboolean: TYPE, + GLclampf: TYPE, + GLenum: TYPE, + GLfloat: TYPE, + GLint: TYPE, + GLint64: TYPE, + GLintptr: TYPE, + GlobalCompositeOperation: TYPE, + GlobalEventHandlers: TYPE, + GlobalEventHandlersEventMap: TYPE, + GLsizei: TYPE, + GLsizeiptr: TYPE, + GLuint: TYPE, + GLuint64: TYPE, + HardwareAcceleration: TYPE, + HashAlgorithmIdentifier: TYPE, + HashChangeEvent: TYPE_VALUE, HashChangeEventInit: TYPE, + HdrMetadataType: TYPE, + Headers: TYPE_VALUE, + HeadersInit: TYPE, + Highlight: TYPE_VALUE, + HighlightRegistry: TYPE_VALUE, + HighlightType: TYPE, + History: TYPE_VALUE, HkdfParams: TYPE, HmacImportParams: TYPE, HmacKeyAlgorithm: TYPE, HmacKeyGenParams: TYPE, + HTMLAllCollection: TYPE_VALUE, + HTMLAnchorElement: TYPE_VALUE, + HTMLAreaElement: TYPE_VALUE, + HTMLAudioElement: TYPE_VALUE, + HTMLBaseElement: TYPE_VALUE, + HTMLBodyElement: TYPE_VALUE, + HTMLBodyElementEventMap: TYPE, + HTMLBRElement: TYPE_VALUE, + HTMLButtonElement: TYPE_VALUE, + HTMLCanvasElement: TYPE_VALUE, + HTMLCollection: TYPE_VALUE, + HTMLCollectionBase: TYPE, + HTMLCollectionOf: TYPE, + HTMLDataElement: TYPE_VALUE, + HTMLDataListElement: TYPE_VALUE, + HTMLDetailsElement: TYPE_VALUE, + HTMLDialogElement: TYPE_VALUE, + HTMLDirectoryElement: TYPE_VALUE, + HTMLDivElement: TYPE_VALUE, + HTMLDListElement: TYPE_VALUE, + HTMLDocument: TYPE_VALUE, + HTMLElement: TYPE_VALUE, + HTMLElementDeprecatedTagNameMap: TYPE, + HTMLElementEventMap: TYPE, + HTMLElementTagNameMap: TYPE, + HTMLEmbedElement: TYPE_VALUE, + HTMLFieldSetElement: TYPE_VALUE, + HTMLFontElement: TYPE_VALUE, + HTMLFormControlsCollection: TYPE_VALUE, + HTMLFormElement: TYPE_VALUE, + HTMLFrameElement: TYPE_VALUE, + HTMLFrameSetElement: TYPE_VALUE, + HTMLFrameSetElementEventMap: TYPE, + HTMLHeadElement: TYPE_VALUE, + HTMLHeadingElement: TYPE_VALUE, + HTMLHRElement: TYPE_VALUE, + HTMLHtmlElement: TYPE_VALUE, + HTMLHyperlinkElementUtils: TYPE, + HTMLIFrameElement: TYPE_VALUE, + HTMLImageElement: TYPE_VALUE, + HTMLInputElement: TYPE_VALUE, + HTMLLabelElement: TYPE_VALUE, + HTMLLegendElement: TYPE_VALUE, + HTMLLIElement: TYPE_VALUE, + HTMLLinkElement: TYPE_VALUE, + HTMLMapElement: TYPE_VALUE, + HTMLMarqueeElement: TYPE_VALUE, + HTMLMediaElement: TYPE_VALUE, + HTMLMediaElementEventMap: TYPE, + HTMLMenuElement: TYPE_VALUE, + HTMLMetaElement: TYPE_VALUE, + HTMLMeterElement: TYPE_VALUE, + HTMLModElement: TYPE_VALUE, + HTMLObjectElement: TYPE_VALUE, + HTMLOListElement: TYPE_VALUE, + HTMLOptGroupElement: TYPE_VALUE, + HTMLOptionElement: TYPE_VALUE, + HTMLOptionsCollection: TYPE_VALUE, + HTMLOrSVGElement: TYPE, + HTMLOrSVGImageElement: TYPE, + HTMLOrSVGScriptElement: TYPE, + HTMLOutputElement: TYPE_VALUE, + HTMLParagraphElement: TYPE_VALUE, + HTMLParamElement: TYPE_VALUE, + HTMLPictureElement: TYPE_VALUE, + HTMLPreElement: TYPE_VALUE, + HTMLProgressElement: TYPE_VALUE, + HTMLQuoteElement: TYPE_VALUE, + HTMLScriptElement: TYPE_VALUE, + HTMLSelectElement: TYPE_VALUE, + HTMLSlotElement: TYPE_VALUE, + HTMLSourceElement: TYPE_VALUE, + HTMLSpanElement: TYPE_VALUE, + HTMLStyleElement: TYPE_VALUE, + HTMLTableCaptionElement: TYPE_VALUE, + HTMLTableCellElement: TYPE_VALUE, + HTMLTableColElement: TYPE_VALUE, + HTMLTableDataCellElement: TYPE, + HTMLTableElement: TYPE_VALUE, + HTMLTableHeaderCellElement: TYPE, + HTMLTableRowElement: TYPE_VALUE, + HTMLTableSectionElement: TYPE_VALUE, + HTMLTemplateElement: TYPE_VALUE, + HTMLTextAreaElement: TYPE_VALUE, + HTMLTimeElement: TYPE_VALUE, + HTMLTitleElement: TYPE_VALUE, + HTMLTrackElement: TYPE_VALUE, + HTMLUListElement: TYPE_VALUE, + HTMLUnknownElement: TYPE_VALUE, + HTMLVideoElement: TYPE_VALUE, + HTMLVideoElementEventMap: TYPE, + IDBCursor: TYPE_VALUE, + IDBCursorDirection: TYPE, + IDBCursorWithValue: TYPE_VALUE, + IDBDatabase: TYPE_VALUE, + IDBDatabaseEventMap: TYPE, IDBDatabaseInfo: TYPE, + IDBFactory: TYPE_VALUE, + IDBIndex: TYPE_VALUE, IDBIndexParameters: TYPE, + IDBKeyRange: TYPE_VALUE, + IDBObjectStore: TYPE_VALUE, IDBObjectStoreParameters: TYPE, + IDBOpenDBRequest: TYPE_VALUE, + IDBOpenDBRequestEventMap: TYPE, + IDBRequest: TYPE_VALUE, + IDBRequestEventMap: TYPE, + IDBRequestReadyState: TYPE, + IDBTransaction: TYPE_VALUE, + IDBTransactionDurability: TYPE, + IDBTransactionEventMap: TYPE, + IDBTransactionMode: TYPE, IDBTransactionOptions: TYPE, + IDBValidKey: TYPE, + IDBVersionChangeEvent: TYPE_VALUE, IDBVersionChangeEventInit: TYPE, - IIRFilterOptions: TYPE, + IdleDeadline: TYPE_VALUE, + IdleRequestCallback: TYPE, IdleRequestOptions: TYPE, + IIRFilterNode: TYPE_VALUE, + IIRFilterOptions: TYPE, + ImageBitmap: TYPE_VALUE, ImageBitmapOptions: TYPE, + ImageBitmapRenderingContext: TYPE_VALUE, ImageBitmapRenderingContextSettings: TYPE, + ImageBitmapSource: TYPE, + ImageData: TYPE_VALUE, ImageDataSettings: TYPE, ImageEncodeOptions: TYPE, + ImageOrientation: TYPE, + ImageSmoothingQuality: TYPE, + ImportMeta: TYPE, + InputDeviceInfo: TYPE_VALUE, + InputEvent: TYPE_VALUE, InputEventInit: TYPE, + InsertPosition: TYPE, + Int32List: TYPE, + IntersectionObserver: TYPE_VALUE, + IntersectionObserverCallback: TYPE, + IntersectionObserverEntry: TYPE_VALUE, IntersectionObserverEntryInit: TYPE, IntersectionObserverInit: TYPE, + IterationCompositeOperation: TYPE, JsonWebKey: TYPE, KeyAlgorithm: TYPE, + KeyboardEvent: TYPE_VALUE, KeyboardEventInit: TYPE, + KeyFormat: TYPE, Keyframe: TYPE, KeyframeAnimationOptions: TYPE, + KeyframeEffect: TYPE_VALUE, KeyframeEffectOptions: TYPE, + KeyType: TYPE, + KeyUsage: TYPE, + KHR_parallel_shader_compile: TYPE, + LargestContentfulPaint: TYPE_VALUE, + LatencyMode: TYPE, + LineAlignSetting: TYPE, + LineAndPositionSetting: TYPE, + LinkStyle: TYPE, + Location: TYPE_VALUE, + Lock: TYPE_VALUE, + LockGrantedCallback: TYPE, LockInfo: TYPE, + LockManager: TYPE_VALUE, LockManagerSnapshot: TYPE, + LockMode: TYPE, LockOptions: TYPE, - MIDIConnectionEventInit: TYPE, - MIDIMessageEventInit: TYPE, - MIDIOptions: TYPE, + MathMLElement: TYPE_VALUE, + MathMLElementEventMap: TYPE, + MathMLElementTagNameMap: TYPE, + MediaCapabilities: TYPE_VALUE, MediaCapabilitiesDecodingInfo: TYPE, MediaCapabilitiesEncodingInfo: TYPE, MediaCapabilitiesInfo: TYPE, MediaConfiguration: TYPE, MediaDecodingConfiguration: TYPE, + MediaDecodingType: TYPE, + MediaDeviceInfo: TYPE_VALUE, + MediaDeviceKind: TYPE, + MediaDevices: TYPE_VALUE, + MediaDevicesEventMap: TYPE, + MediaElementAudioSourceNode: TYPE_VALUE, MediaElementAudioSourceOptions: TYPE, MediaEncodingConfiguration: TYPE, + MediaEncodingType: TYPE, + MediaEncryptedEvent: TYPE_VALUE, MediaEncryptedEventInit: TYPE, + MediaError: TYPE_VALUE, MediaImage: TYPE, + MediaKeyMessageEvent: TYPE_VALUE, MediaKeyMessageEventInit: TYPE, + MediaKeyMessageType: TYPE, + MediaKeys: TYPE_VALUE, + MediaKeySession: TYPE_VALUE, + MediaKeySessionClosedReason: TYPE, + MediaKeySessionEventMap: TYPE, + MediaKeySessionType: TYPE, + MediaKeysPolicy: TYPE, + MediaKeysRequirement: TYPE, + MediaKeyStatus: TYPE, + MediaKeyStatusMap: TYPE_VALUE, + MediaKeySystemAccess: TYPE_VALUE, MediaKeySystemConfiguration: TYPE, MediaKeySystemMediaCapability: TYPE, - MediaKeysPolicy: TYPE, + MediaList: TYPE_VALUE, + MediaMetadata: TYPE_VALUE, MediaMetadataInit: TYPE, MediaPositionState: TYPE, + MediaProvider: TYPE, + MediaQueryList: TYPE_VALUE, + MediaQueryListEvent: TYPE_VALUE, MediaQueryListEventInit: TYPE, + MediaQueryListEventMap: TYPE, + MediaRecorder: TYPE_VALUE, + MediaRecorderEventMap: TYPE, MediaRecorderOptions: TYPE, + MediaSession: TYPE_VALUE, + MediaSessionAction: TYPE, MediaSessionActionDetails: TYPE, + MediaSessionActionHandler: TYPE, + MediaSessionPlaybackState: TYPE, + MediaSource: TYPE_VALUE, + MediaSourceEventMap: TYPE, + MediaSourceHandle: TYPE_VALUE, + MediaStream: TYPE_VALUE, + MediaStreamAudioDestinationNode: TYPE_VALUE, + MediaStreamAudioSourceNode: TYPE_VALUE, MediaStreamAudioSourceOptions: TYPE, MediaStreamConstraints: TYPE, + MediaStreamEventMap: TYPE, + MediaStreamTrack: TYPE_VALUE, + MediaStreamTrackEvent: TYPE_VALUE, MediaStreamTrackEventInit: TYPE, + MediaStreamTrackEventMap: TYPE, + MediaStreamTrackState: TYPE, MediaTrackCapabilities: TYPE, - MediaTrackConstraintSet: TYPE, MediaTrackConstraints: TYPE, + MediaTrackConstraintSet: TYPE, MediaTrackSettings: TYPE, MediaTrackSupportedConstraints: TYPE, + MessageChannel: TYPE_VALUE, + MessageEvent: TYPE_VALUE, MessageEventInit: TYPE, + MessageEventSource: TYPE, + MessagePort: TYPE_VALUE, + MessagePortEventMap: TYPE, + MIDIAccess: TYPE_VALUE, + MIDIAccessEventMap: TYPE, + MIDIConnectionEvent: TYPE_VALUE, + MIDIConnectionEventInit: TYPE, + MIDIInput: TYPE_VALUE, + MIDIInputEventMap: TYPE, + MIDIInputMap: TYPE_VALUE, + MIDIMessageEvent: TYPE_VALUE, + MIDIMessageEventInit: TYPE, + MIDIOptions: TYPE, + MIDIOutput: TYPE_VALUE, + MIDIOutputMap: TYPE_VALUE, + MIDIPort: TYPE_VALUE, + MIDIPortConnectionState: TYPE, + MIDIPortDeviceState: TYPE, + MIDIPortEventMap: TYPE, + MIDIPortType: TYPE, + MimeType: TYPE_VALUE, + MimeTypeArray: TYPE_VALUE, + MouseEvent: TYPE_VALUE, MouseEventInit: TYPE, MultiCacheQueryOptions: TYPE, + MutationCallback: TYPE, + MutationEvent: TYPE_VALUE, + MutationObserver: TYPE_VALUE, MutationObserverInit: TYPE, + MutationRecord: TYPE_VALUE, + MutationRecordType: TYPE, + NamedCurve: TYPE, + NamedNodeMap: TYPE_VALUE, + NavigationPreloadManager: TYPE_VALUE, NavigationPreloadState: TYPE, + NavigationTimingType: TYPE, + Navigator: TYPE_VALUE, + NavigatorAutomationInformation: TYPE, + NavigatorBadge: TYPE, + NavigatorConcurrentHardware: TYPE, + NavigatorContentUtils: TYPE, + NavigatorCookies: TYPE, + NavigatorID: TYPE, + NavigatorLanguage: TYPE, + NavigatorLocks: TYPE, + NavigatorOnLine: TYPE, + NavigatorPlugins: TYPE, + NavigatorStorage: TYPE, + Node: TYPE_VALUE, + NodeFilter: TYPE_VALUE, + NodeIterator: TYPE_VALUE, + NodeList: TYPE_VALUE, + NodeListOf: TYPE, + NonDocumentTypeChildNode: TYPE, + NonElementParentNode: TYPE, + Notification: TYPE_VALUE, + NotificationDirection: TYPE, + NotificationEventMap: TYPE, NotificationOptions: TYPE, + NotificationPermission: TYPE, + NotificationPermissionCallback: TYPE, + OES_draw_buffers_indexed: TYPE, + OES_element_index_uint: TYPE, + OES_fbo_render_mipmap: TYPE, + OES_standard_derivatives: TYPE, + OES_texture_float: TYPE, + OES_texture_float_linear: TYPE, + OES_texture_half_float: TYPE, + OES_texture_half_float_linear: TYPE, + OES_vertex_array_object: TYPE, + OfflineAudioCompletionEvent: TYPE_VALUE, OfflineAudioCompletionEventInit: TYPE, + OfflineAudioContext: TYPE_VALUE, + OfflineAudioContextEventMap: TYPE, OfflineAudioContextOptions: TYPE, + OffscreenCanvas: TYPE_VALUE, + OffscreenCanvasEventMap: TYPE, + OffscreenCanvasRenderingContext2D: TYPE_VALUE, + OffscreenRenderingContext: TYPE, + OffscreenRenderingContextId: TYPE, + OnBeforeUnloadEventHandler: TYPE, + OnBeforeUnloadEventHandlerNonNull: TYPE, + OnErrorEventHandler: TYPE, + OnErrorEventHandlerNonNull: TYPE, OptionalEffectTiming: TYPE, + OptionalPostfixToken: TYPE, + OptionalPrefixToken: TYPE, + OrientationType: TYPE, + OscillatorNode: TYPE_VALUE, OscillatorOptions: TYPE, + OscillatorType: TYPE, + OverconstrainedError: TYPE_VALUE, + OverSampleType: TYPE, + OVR_multiview2: TYPE, + PageTransitionEvent: TYPE_VALUE, PageTransitionEventInit: TYPE, + PannerNode: TYPE_VALUE, PannerOptions: TYPE, + PanningModelType: TYPE, + ParentNode: TYPE, + Path2D: TYPE_VALUE, + PaymentComplete: TYPE, PaymentCurrencyAmount: TYPE, PaymentDetailsBase: TYPE, PaymentDetailsInit: TYPE, PaymentDetailsModifier: TYPE, PaymentDetailsUpdate: TYPE, PaymentItem: TYPE, + PaymentMethodChangeEvent: TYPE_VALUE, PaymentMethodChangeEventInit: TYPE, PaymentMethodData: TYPE, + PaymentRequest: TYPE_VALUE, + PaymentRequestEventMap: TYPE, + PaymentRequestUpdateEvent: TYPE_VALUE, PaymentRequestUpdateEventInit: TYPE, + PaymentResponse: TYPE_VALUE, PaymentValidationErrors: TYPE, Pbkdf2Params: TYPE, + Performance: TYPE_VALUE, + PerformanceEntry: TYPE_VALUE, + PerformanceEntryList: TYPE, + PerformanceEventMap: TYPE, + PerformanceEventTiming: TYPE_VALUE, + PerformanceMark: TYPE_VALUE, PerformanceMarkOptions: TYPE, + PerformanceMeasure: TYPE_VALUE, PerformanceMeasureOptions: TYPE, + PerformanceNavigation: TYPE_VALUE, + PerformanceNavigationTiming: TYPE_VALUE, + PerformanceObserver: TYPE_VALUE, + PerformanceObserverCallback: TYPE, + PerformanceObserverEntryList: TYPE_VALUE, PerformanceObserverInit: TYPE, + PerformancePaintTiming: TYPE_VALUE, + PerformanceResourceTiming: TYPE_VALUE, + PerformanceServerTiming: TYPE_VALUE, + PerformanceTiming: TYPE_VALUE, + PeriodicWave: TYPE_VALUE, PeriodicWaveConstraints: TYPE, PeriodicWaveOptions: TYPE, PermissionDescriptor: TYPE, + PermissionName: TYPE, + Permissions: TYPE_VALUE, + PermissionState: TYPE, + PermissionStatus: TYPE_VALUE, + PermissionStatusEventMap: TYPE, + PictureInPictureEvent: TYPE_VALUE, PictureInPictureEventInit: TYPE, + PictureInPictureWindow: TYPE_VALUE, + PictureInPictureWindowEventMap: TYPE, PlaneLayout: TYPE, + PlaybackDirection: TYPE, + Plugin: TYPE_VALUE, + PluginArray: TYPE_VALUE, + PointerEvent: TYPE_VALUE, PointerEventInit: TYPE, PointerLockOptions: TYPE, + PopoverInvokerElement: TYPE, + PopStateEvent: TYPE_VALUE, PopStateEventInit: TYPE, + PositionAlignSetting: TYPE, + PositionCallback: TYPE, + PositionErrorCallback: TYPE, PositionOptions: TYPE, + PredefinedColorSpace: TYPE, + PremultiplyAlpha: TYPE, + PresentationStyle: TYPE, + ProcessingInstruction: TYPE_VALUE, + ProgressEvent: TYPE_VALUE, ProgressEventInit: TYPE, + PromiseRejectionEvent: TYPE_VALUE, PromiseRejectionEventInit: TYPE, PropertyDefinition: TYPE, PropertyIndexedKeyframes: TYPE, + PublicKeyCredential: TYPE_VALUE, PublicKeyCredentialCreationOptions: TYPE, PublicKeyCredentialDescriptor: TYPE, PublicKeyCredentialEntity: TYPE, PublicKeyCredentialParameters: TYPE, PublicKeyCredentialRequestOptions: TYPE, PublicKeyCredentialRpEntity: TYPE, + PublicKeyCredentialType: TYPE, PublicKeyCredentialUserEntity: TYPE, + PushEncryptionKeyName: TYPE, + PushManager: TYPE_VALUE, + PushSubscription: TYPE_VALUE, PushSubscriptionJSON: TYPE, + PushSubscriptionOptions: TYPE_VALUE, PushSubscriptionOptionsInit: TYPE, QueuingStrategy: TYPE, QueuingStrategyInit: TYPE, - RTCAnswerOptions: TYPE, - RTCCertificateExpiration: TYPE, - RTCConfiguration: TYPE, - RTCDTMFToneChangeEventInit: TYPE, - RTCDataChannelEventInit: TYPE, - RTCDataChannelInit: TYPE, - RTCDtlsFingerprint: TYPE, - RTCEncodedAudioFrameMetadata: TYPE, - RTCEncodedVideoFrameMetadata: TYPE, - RTCErrorEventInit: TYPE, - RTCErrorInit: TYPE, - RTCIceCandidateInit: TYPE, - RTCIceCandidatePairStats: TYPE, - RTCIceServer: TYPE, - RTCInboundRtpStreamStats: TYPE, - RTCLocalSessionDescriptionInit: TYPE, - RTCOfferAnswerOptions: TYPE, - RTCOfferOptions: TYPE, - RTCOutboundRtpStreamStats: TYPE, - RTCPeerConnectionIceErrorEventInit: TYPE, - RTCPeerConnectionIceEventInit: TYPE, - RTCReceivedRtpStreamStats: TYPE, - RTCRtcpParameters: TYPE, - RTCRtpCapabilities: TYPE, - RTCRtpCodec: TYPE, - RTCRtpCodecParameters: TYPE, - RTCRtpCodingParameters: TYPE, - RTCRtpContributingSource: TYPE, - RTCRtpEncodingParameters: TYPE, - RTCRtpHeaderExtensionCapability: TYPE, - RTCRtpHeaderExtensionParameters: TYPE, - RTCRtpParameters: TYPE, - RTCRtpReceiveParameters: TYPE, - RTCRtpSendParameters: TYPE, - RTCRtpStreamStats: TYPE, - RTCRtpSynchronizationSource: TYPE, - RTCRtpTransceiverInit: TYPE, - RTCSentRtpStreamStats: TYPE, - RTCSessionDescriptionInit: TYPE, - RTCSetParameterOptions: TYPE, - RTCStats: TYPE, - RTCTrackEventInit: TYPE, - RTCTransportStats: TYPE, + QueuingStrategySize: TYPE, + RadioNodeList: TYPE_VALUE, + Range: TYPE_VALUE, + ReadableByteStreamController: TYPE_VALUE, + ReadableStream: TYPE_VALUE, + ReadableStreamBYOBReader: TYPE_VALUE, + ReadableStreamBYOBRequest: TYPE_VALUE, + ReadableStreamController: TYPE, + ReadableStreamDefaultController: TYPE_VALUE, + ReadableStreamDefaultReader: TYPE_VALUE, + ReadableStreamGenericReader: TYPE, ReadableStreamGetReaderOptions: TYPE, ReadableStreamIteratorOptions: TYPE, ReadableStreamReadDoneResult: TYPE, + ReadableStreamReader: TYPE, + ReadableStreamReaderMode: TYPE, + ReadableStreamReadResult: TYPE, ReadableStreamReadValueResult: TYPE, + ReadableStreamType: TYPE, ReadableWritablePair: TYPE, + ReadyState: TYPE, + RecordingState: TYPE, + ReferrerPolicy: TYPE, RegistrationOptions: TYPE, + RemotePlayback: TYPE_VALUE, + RemotePlaybackAvailabilityCallback: TYPE, + RemotePlaybackEventMap: TYPE, + RemotePlaybackState: TYPE, + RenderingContext: TYPE, + Report: TYPE_VALUE, + ReportBody: TYPE_VALUE, + ReportingObserver: TYPE_VALUE, + ReportingObserverCallback: TYPE, ReportingObserverOptions: TYPE, + ReportList: TYPE, + Request: TYPE_VALUE, + RequestCache: TYPE, + RequestCredentials: TYPE, + RequestDestination: TYPE, + RequestInfo: TYPE, RequestInit: TYPE, + RequestMode: TYPE, + RequestPriority: TYPE, + RequestRedirect: TYPE, + ResidentKeyRequirement: TYPE, + ResizeObserver: TYPE_VALUE, + ResizeObserverBoxOptions: TYPE, + ResizeObserverCallback: TYPE, + ResizeObserverEntry: TYPE_VALUE, ResizeObserverOptions: TYPE, + ResizeObserverSize: TYPE_VALUE, + ResizeQuality: TYPE, + Response: TYPE_VALUE, ResponseInit: TYPE, + ResponseType: TYPE, RsaHashedImportParams: TYPE, RsaHashedKeyAlgorithm: TYPE, RsaHashedKeyGenParams: TYPE, @@ -278,1175 +975,479 @@ export const dom = { RsaOaepParams: TYPE, RsaOtherPrimesInfo: TYPE, RsaPssParams: TYPE, - SVGBoundingBoxOptions: TYPE, + RTCAnswerOptions: TYPE, + RTCBundlePolicy: TYPE, + RTCCertificate: TYPE_VALUE, + RTCCertificateExpiration: TYPE, + RTCConfiguration: TYPE, + RTCDataChannel: TYPE_VALUE, + RTCDataChannelEvent: TYPE_VALUE, + RTCDataChannelEventInit: TYPE, + RTCDataChannelEventMap: TYPE, + RTCDataChannelInit: TYPE, + RTCDataChannelState: TYPE, + RTCDegradationPreference: TYPE, + RTCDtlsFingerprint: TYPE, + RTCDtlsTransport: TYPE_VALUE, + RTCDtlsTransportEventMap: TYPE, + RTCDtlsTransportState: TYPE, + RTCDTMFSender: TYPE_VALUE, + RTCDTMFSenderEventMap: TYPE, + RTCDTMFToneChangeEvent: TYPE_VALUE, + RTCDTMFToneChangeEventInit: TYPE, + RTCEncodedAudioFrame: TYPE_VALUE, + RTCEncodedAudioFrameMetadata: TYPE, + RTCEncodedVideoFrame: TYPE_VALUE, + RTCEncodedVideoFrameMetadata: TYPE, + RTCEncodedVideoFrameType: TYPE, + RTCError: TYPE_VALUE, + RTCErrorDetailType: TYPE, + RTCErrorEvent: TYPE_VALUE, + RTCErrorEventInit: TYPE, + RTCErrorInit: TYPE, + RTCIceCandidate: TYPE_VALUE, + RTCIceCandidateInit: TYPE, + RTCIceCandidatePair: TYPE, + RTCIceCandidatePairStats: TYPE, + RTCIceCandidateType: TYPE, + RTCIceComponent: TYPE, + RTCIceConnectionState: TYPE, + RTCIceGathererState: TYPE, + RTCIceGatheringState: TYPE, + RTCIceProtocol: TYPE, + RTCIceServer: TYPE, + RTCIceTcpCandidateType: TYPE, + RTCIceTransport: TYPE_VALUE, + RTCIceTransportEventMap: TYPE, + RTCIceTransportPolicy: TYPE, + RTCIceTransportState: TYPE, + RTCInboundRtpStreamStats: TYPE, + RTCLocalSessionDescriptionInit: TYPE, + RTCOfferAnswerOptions: TYPE, + RTCOfferOptions: TYPE, + RTCOutboundRtpStreamStats: TYPE, + RTCPeerConnection: TYPE_VALUE, + RTCPeerConnectionErrorCallback: TYPE, + RTCPeerConnectionEventMap: TYPE, + RTCPeerConnectionIceErrorEvent: TYPE_VALUE, + RTCPeerConnectionIceErrorEventInit: TYPE, + RTCPeerConnectionIceEvent: TYPE_VALUE, + RTCPeerConnectionIceEventInit: TYPE, + RTCPeerConnectionState: TYPE, + RTCPriorityType: TYPE, + RTCReceivedRtpStreamStats: TYPE, + RTCRtcpMuxPolicy: TYPE, + RTCRtcpParameters: TYPE, + RTCRtpCapabilities: TYPE, + RTCRtpCodec: TYPE, + RTCRtpCodecParameters: TYPE, + RTCRtpCodingParameters: TYPE, + RTCRtpContributingSource: TYPE, + RTCRtpEncodingParameters: TYPE, + RTCRtpHeaderExtensionCapability: TYPE, + RTCRtpHeaderExtensionParameters: TYPE, + RTCRtpParameters: TYPE, + RTCRtpReceiveParameters: TYPE, + RTCRtpReceiver: TYPE_VALUE, + RTCRtpScriptTransform: TYPE_VALUE, + RTCRtpSender: TYPE_VALUE, + RTCRtpSendParameters: TYPE, + RTCRtpStreamStats: TYPE, + RTCRtpSynchronizationSource: TYPE, + RTCRtpTransceiver: TYPE_VALUE, + RTCRtpTransceiverDirection: TYPE, + RTCRtpTransceiverInit: TYPE, + RTCRtpTransform: TYPE, + RTCSctpTransport: TYPE_VALUE, + RTCSctpTransportEventMap: TYPE, + RTCSctpTransportState: TYPE, + RTCSdpType: TYPE, + RTCSentRtpStreamStats: TYPE, + RTCSessionDescription: TYPE_VALUE, + RTCSessionDescriptionCallback: TYPE, + RTCSessionDescriptionInit: TYPE, + RTCSetParameterOptions: TYPE, + RTCSignalingState: TYPE, + RTCStats: TYPE, + RTCStatsIceCandidatePairState: TYPE, + RTCStatsReport: TYPE_VALUE, + RTCStatsType: TYPE, + RTCTrackEvent: TYPE_VALUE, + RTCTrackEventInit: TYPE, + RTCTransportStats: TYPE, + Screen: TYPE_VALUE, + ScreenOrientation: TYPE_VALUE, + ScreenOrientationEventMap: TYPE, + ScriptProcessorNode: TYPE_VALUE, + ScriptProcessorNodeEventMap: TYPE, + ScrollBehavior: TYPE, ScrollIntoViewOptions: TYPE, + ScrollLogicalPosition: TYPE, ScrollOptions: TYPE, + ScrollRestoration: TYPE, + ScrollSetting: TYPE, ScrollToOptions: TYPE, + SecurityPolicyViolationEvent: TYPE_VALUE, + SecurityPolicyViolationEventDisposition: TYPE, SecurityPolicyViolationEventInit: TYPE, + Selection: TYPE_VALUE, + SelectionMode: TYPE, + ServiceWorker: TYPE_VALUE, + ServiceWorkerContainer: TYPE_VALUE, + ServiceWorkerContainerEventMap: TYPE, + ServiceWorkerEventMap: TYPE, + ServiceWorkerRegistration: TYPE_VALUE, + ServiceWorkerRegistrationEventMap: TYPE, + ServiceWorkerState: TYPE, + ServiceWorkerUpdateViaCache: TYPE, + ShadowRoot: TYPE_VALUE, + ShadowRootEventMap: TYPE, ShadowRootInit: TYPE, + ShadowRootMode: TYPE, ShareData: TYPE, + SharedWorker: TYPE_VALUE, + SlotAssignmentMode: TYPE, + Slottable: TYPE, + SourceBuffer: TYPE_VALUE, + SourceBufferEventMap: TYPE, + SourceBufferList: TYPE_VALUE, + SourceBufferListEventMap: TYPE, + SpeechRecognitionAlternative: TYPE_VALUE, + SpeechRecognitionResult: TYPE_VALUE, + SpeechRecognitionResultList: TYPE_VALUE, + SpeechSynthesis: TYPE_VALUE, + SpeechSynthesisErrorCode: TYPE, + SpeechSynthesisErrorEvent: TYPE_VALUE, SpeechSynthesisErrorEventInit: TYPE, + SpeechSynthesisEvent: TYPE_VALUE, SpeechSynthesisEventInit: TYPE, + SpeechSynthesisEventMap: TYPE, + SpeechSynthesisUtterance: TYPE_VALUE, + SpeechSynthesisUtteranceEventMap: TYPE, + SpeechSynthesisVoice: TYPE_VALUE, + StaticRange: TYPE_VALUE, StaticRangeInit: TYPE, + StereoPannerNode: TYPE_VALUE, StereoPannerOptions: TYPE, + Storage: TYPE_VALUE, StorageEstimate: TYPE, + StorageEvent: TYPE_VALUE, StorageEventInit: TYPE, + StorageManager: TYPE_VALUE, StreamPipeOptions: TYPE, StructuredSerializeOptions: TYPE, + StyleMedia: TYPE, + StylePropertyMap: TYPE_VALUE, + StylePropertyMapReadOnly: TYPE_VALUE, + StyleSheet: TYPE_VALUE, + StyleSheetList: TYPE_VALUE, + SubmitEvent: TYPE_VALUE, SubmitEventInit: TYPE, - TextDecodeOptions: TYPE, - TextDecoderOptions: TYPE, - TextEncoderEncodeIntoResult: TYPE, - ToggleEventInit: TYPE, - TouchEventInit: TYPE, - TouchInit: TYPE, - TrackEventInit: TYPE, - Transformer: TYPE, - TransitionEventInit: TYPE, - UIEventInit: TYPE, - ULongRange: TYPE, - UnderlyingByteSource: TYPE, - UnderlyingDefaultSource: TYPE, - UnderlyingSink: TYPE, - UnderlyingSource: TYPE, - ValidityStateFlags: TYPE, - VideoColorSpaceInit: TYPE, - VideoConfiguration: TYPE, - VideoDecoderConfig: TYPE, - VideoDecoderInit: TYPE, - VideoDecoderSupport: TYPE, - VideoEncoderConfig: TYPE, - VideoEncoderEncodeOptions: TYPE, - VideoEncoderInit: TYPE, - VideoEncoderSupport: TYPE, - VideoFrameBufferInit: TYPE, - VideoFrameCallbackMetadata: TYPE, - VideoFrameCopyToOptions: TYPE, - VideoFrameInit: TYPE, - WaveShaperOptions: TYPE, - WebGLContextAttributes: TYPE, - WebGLContextEventInit: TYPE, - WebTransportCloseInfo: TYPE, - WebTransportErrorOptions: TYPE, - WebTransportHash: TYPE, - WebTransportOptions: TYPE, - WebTransportSendStreamOptions: TYPE, - WheelEventInit: TYPE, - WindowPostMessageOptions: TYPE, - WorkerOptions: TYPE, - WorkletOptions: TYPE, - WriteParams: TYPE, - NodeFilter: TYPE_VALUE, - XPathNSResolver: TYPE, - ANGLE_instanced_arrays: TYPE, - ARIAMixin: TYPE, - AbortController: TYPE_VALUE, - AbortSignalEventMap: TYPE, - AbortSignal: TYPE_VALUE, - AbstractRange: TYPE_VALUE, - AbstractWorkerEventMap: TYPE, - AbstractWorker: TYPE, - AnalyserNode: TYPE_VALUE, - Animatable: TYPE, - AnimationEventMap: TYPE, - Animation: TYPE_VALUE, - AnimationEffect: TYPE_VALUE, - AnimationEvent: TYPE_VALUE, - AnimationFrameProvider: TYPE, - AnimationPlaybackEvent: TYPE_VALUE, - AnimationTimeline: TYPE_VALUE, - Attr: TYPE_VALUE, - AudioBuffer: TYPE_VALUE, - AudioBufferSourceNode: TYPE_VALUE, - AudioContext: TYPE_VALUE, - AudioDestinationNode: TYPE_VALUE, - AudioListener: TYPE_VALUE, - AudioNode: TYPE_VALUE, - AudioParam: TYPE_VALUE, - AudioParamMap: TYPE_VALUE, - AudioProcessingEvent: TYPE_VALUE, - AudioScheduledSourceNodeEventMap: TYPE, - AudioScheduledSourceNode: TYPE_VALUE, - AudioWorklet: TYPE_VALUE, - AudioWorkletNodeEventMap: TYPE, - AudioWorkletNode: TYPE_VALUE, - AuthenticatorAssertionResponse: TYPE_VALUE, - AuthenticatorAttestationResponse: TYPE_VALUE, - AuthenticatorResponse: TYPE_VALUE, - BarProp: TYPE_VALUE, - BaseAudioContextEventMap: TYPE, - BaseAudioContext: TYPE_VALUE, - BeforeUnloadEvent: TYPE_VALUE, - BiquadFilterNode: TYPE_VALUE, - Blob: TYPE_VALUE, - BlobEvent: TYPE_VALUE, - Body: TYPE, - BroadcastChannelEventMap: TYPE, - BroadcastChannel: TYPE_VALUE, - ByteLengthQueuingStrategy: TYPE_VALUE, - CDATASection: TYPE_VALUE, - CSSAnimation: TYPE_VALUE, - CSSConditionRule: TYPE_VALUE, - CSSContainerRule: TYPE_VALUE, - CSSCounterStyleRule: TYPE_VALUE, - CSSFontFaceRule: TYPE_VALUE, - CSSFontFeatureValuesRule: TYPE_VALUE, - CSSFontPaletteValuesRule: TYPE_VALUE, - CSSGroupingRule: TYPE_VALUE, - CSSImageValue: TYPE_VALUE, - CSSImportRule: TYPE_VALUE, - CSSKeyframeRule: TYPE_VALUE, - CSSKeyframesRule: TYPE_VALUE, - CSSKeywordValue: TYPE_VALUE, - CSSLayerBlockRule: TYPE_VALUE, - CSSLayerStatementRule: TYPE_VALUE, - CSSMathClamp: TYPE_VALUE, - CSSMathInvert: TYPE_VALUE, - CSSMathMax: TYPE_VALUE, - CSSMathMin: TYPE_VALUE, - CSSMathNegate: TYPE_VALUE, - CSSMathProduct: TYPE_VALUE, - CSSMathSum: TYPE_VALUE, - CSSMathValue: TYPE_VALUE, - CSSMatrixComponent: TYPE_VALUE, - CSSMediaRule: TYPE_VALUE, - CSSNamespaceRule: TYPE_VALUE, - CSSNumericArray: TYPE_VALUE, - CSSNumericValue: TYPE_VALUE, - CSSPageRule: TYPE_VALUE, - CSSPerspective: TYPE_VALUE, - CSSPropertyRule: TYPE_VALUE, - CSSRotate: TYPE_VALUE, - CSSRule: TYPE_VALUE, - CSSRuleList: TYPE_VALUE, - CSSScale: TYPE_VALUE, - CSSScopeRule: TYPE_VALUE, - CSSSkew: TYPE_VALUE, - CSSSkewX: TYPE_VALUE, - CSSSkewY: TYPE_VALUE, - CSSStartingStyleRule: TYPE_VALUE, - CSSStyleDeclaration: TYPE_VALUE, - CSSStyleRule: TYPE_VALUE, - CSSStyleSheet: TYPE_VALUE, - CSSStyleValue: TYPE_VALUE, - CSSSupportsRule: TYPE_VALUE, - CSSTransformComponent: TYPE_VALUE, - CSSTransformValue: TYPE_VALUE, - CSSTransition: TYPE_VALUE, - CSSTranslate: TYPE_VALUE, - CSSUnitValue: TYPE_VALUE, - CSSUnparsedValue: TYPE_VALUE, - CSSVariableReferenceValue: TYPE_VALUE, - Cache: TYPE_VALUE, - CacheStorage: TYPE_VALUE, - CanvasCaptureMediaStreamTrack: TYPE_VALUE, - CanvasCompositing: TYPE, - CanvasDrawImage: TYPE, - CanvasDrawPath: TYPE, - CanvasFillStrokeStyles: TYPE, - CanvasFilters: TYPE, - CanvasGradient: TYPE_VALUE, - CanvasImageData: TYPE, - CanvasImageSmoothing: TYPE, - CanvasPath: TYPE, - CanvasPathDrawingStyles: TYPE, - CanvasPattern: TYPE_VALUE, - CanvasRect: TYPE, - CanvasRenderingContext2D: TYPE_VALUE, - CanvasShadowStyles: TYPE, - CanvasState: TYPE, - CanvasText: TYPE, - CanvasTextDrawingStyles: TYPE, - CanvasTransform: TYPE, - CanvasUserInterface: TYPE, - ChannelMergerNode: TYPE_VALUE, - ChannelSplitterNode: TYPE_VALUE, - CharacterData: TYPE_VALUE, - ChildNode: TYPE, - ClientRect: TYPE, - Clipboard: TYPE_VALUE, - ClipboardEvent: TYPE_VALUE, - ClipboardItem: TYPE_VALUE, - CloseEvent: TYPE_VALUE, - Comment: TYPE_VALUE, - CompositionEvent: TYPE_VALUE, - CompressionStream: TYPE_VALUE, - ConstantSourceNode: TYPE_VALUE, - ContentVisibilityAutoStateChangeEvent: TYPE_VALUE, - ConvolverNode: TYPE_VALUE, - CountQueuingStrategy: TYPE_VALUE, - Credential: TYPE_VALUE, - CredentialsContainer: TYPE_VALUE, - Crypto: TYPE_VALUE, - CryptoKey: TYPE_VALUE, - CustomElementRegistry: TYPE_VALUE, - CustomEvent: TYPE_VALUE, - CustomStateSet: TYPE_VALUE, - DOMException: TYPE_VALUE, - DOMImplementation: TYPE_VALUE, - DOMMatrix: TYPE_VALUE, - SVGMatrix: TYPE_VALUE, - WebKitCSSMatrix: TYPE_VALUE, - DOMMatrixReadOnly: TYPE_VALUE, - DOMParser: TYPE_VALUE, - DOMPoint: TYPE_VALUE, - SVGPoint: TYPE_VALUE, - DOMPointReadOnly: TYPE_VALUE, - DOMQuad: TYPE_VALUE, - DOMRect: TYPE_VALUE, - SVGRect: TYPE_VALUE, - DOMRectList: TYPE_VALUE, - DOMRectReadOnly: TYPE_VALUE, - DOMStringList: TYPE_VALUE, - DOMStringMap: TYPE_VALUE, - DOMTokenList: TYPE_VALUE, - DataTransfer: TYPE_VALUE, - DataTransferItem: TYPE_VALUE, - DataTransferItemList: TYPE_VALUE, - DecompressionStream: TYPE_VALUE, - DelayNode: TYPE_VALUE, - DeviceMotionEvent: TYPE_VALUE, - DeviceMotionEventAcceleration: TYPE, - DeviceMotionEventRotationRate: TYPE, - DeviceOrientationEvent: TYPE_VALUE, - DocumentEventMap: TYPE, - Document: TYPE_VALUE, - DocumentFragment: TYPE_VALUE, - DocumentOrShadowRoot: TYPE, - DocumentTimeline: TYPE_VALUE, - DocumentType: TYPE_VALUE, - DragEvent: TYPE_VALUE, - DynamicsCompressorNode: TYPE_VALUE, - EXT_blend_minmax: TYPE, - EXT_color_buffer_float: TYPE, - EXT_color_buffer_half_float: TYPE, - EXT_float_blend: TYPE, - EXT_frag_depth: TYPE, - EXT_sRGB: TYPE, - EXT_shader_texture_lod: TYPE, - EXT_texture_compression_bptc: TYPE, - EXT_texture_compression_rgtc: TYPE, - EXT_texture_filter_anisotropic: TYPE, - EXT_texture_norm16: TYPE, - ElementEventMap: TYPE, - Element: TYPE_VALUE, - ElementCSSInlineStyle: TYPE, - ElementContentEditable: TYPE, - ElementInternals: TYPE_VALUE, - EncodedVideoChunk: TYPE_VALUE, - ErrorEvent: TYPE_VALUE, - Event: TYPE_VALUE, - EventCounts: TYPE_VALUE, - EventListener: TYPE, - EventListenerObject: TYPE, - EventSourceEventMap: TYPE, - EventSource: TYPE_VALUE, - EventTarget: TYPE_VALUE, - External: TYPE_VALUE, - File: TYPE_VALUE, - FileList: TYPE_VALUE, - FileReaderEventMap: TYPE, - FileReader: TYPE_VALUE, - FileSystem: TYPE_VALUE, - FileSystemDirectoryEntry: TYPE_VALUE, - FileSystemDirectoryHandle: TYPE_VALUE, - FileSystemDirectoryReader: TYPE_VALUE, - FileSystemEntry: TYPE_VALUE, - FileSystemFileEntry: TYPE_VALUE, - FileSystemFileHandle: TYPE_VALUE, - FileSystemHandle: TYPE_VALUE, - FileSystemWritableFileStream: TYPE_VALUE, - FocusEvent: TYPE_VALUE, - FontFace: TYPE_VALUE, - FontFaceSetEventMap: TYPE, - FontFaceSet: TYPE_VALUE, - FontFaceSetLoadEvent: TYPE_VALUE, - FontFaceSource: TYPE, - FormData: TYPE_VALUE, - FormDataEvent: TYPE_VALUE, - GainNode: TYPE_VALUE, - Gamepad: TYPE_VALUE, - GamepadButton: TYPE_VALUE, - GamepadEvent: TYPE_VALUE, - GamepadHapticActuator: TYPE_VALUE, - GenericTransformStream: TYPE, - Geolocation: TYPE_VALUE, - GeolocationCoordinates: TYPE_VALUE, - GeolocationPosition: TYPE_VALUE, - GeolocationPositionError: TYPE_VALUE, - GlobalEventHandlersEventMap: TYPE, - GlobalEventHandlers: TYPE, - HTMLAllCollection: TYPE_VALUE, - HTMLAnchorElement: TYPE_VALUE, - HTMLAreaElement: TYPE_VALUE, - HTMLAudioElement: TYPE_VALUE, - HTMLBRElement: TYPE_VALUE, - HTMLBaseElement: TYPE_VALUE, - HTMLBodyElementEventMap: TYPE, - HTMLBodyElement: TYPE_VALUE, - HTMLButtonElement: TYPE_VALUE, - HTMLCanvasElement: TYPE_VALUE, - HTMLCollectionBase: TYPE, - HTMLCollection: TYPE_VALUE, - HTMLCollectionOf: TYPE, - HTMLDListElement: TYPE_VALUE, - HTMLDataElement: TYPE_VALUE, - HTMLDataListElement: TYPE_VALUE, - HTMLDetailsElement: TYPE_VALUE, - HTMLDialogElement: TYPE_VALUE, - HTMLDirectoryElement: TYPE_VALUE, - HTMLDivElement: TYPE_VALUE, - HTMLDocument: TYPE_VALUE, - HTMLElementEventMap: TYPE, - HTMLElement: TYPE_VALUE, - HTMLEmbedElement: TYPE_VALUE, - HTMLFieldSetElement: TYPE_VALUE, - HTMLFontElement: TYPE_VALUE, - HTMLFormControlsCollection: TYPE_VALUE, - HTMLFormElement: TYPE_VALUE, - HTMLFrameElement: TYPE_VALUE, - HTMLFrameSetElementEventMap: TYPE, - HTMLFrameSetElement: TYPE_VALUE, - HTMLHRElement: TYPE_VALUE, - HTMLHeadElement: TYPE_VALUE, - HTMLHeadingElement: TYPE_VALUE, - HTMLHtmlElement: TYPE_VALUE, - HTMLHyperlinkElementUtils: TYPE, - HTMLIFrameElement: TYPE_VALUE, - HTMLImageElement: TYPE_VALUE, - HTMLInputElement: TYPE_VALUE, - HTMLLIElement: TYPE_VALUE, - HTMLLabelElement: TYPE_VALUE, - HTMLLegendElement: TYPE_VALUE, - HTMLLinkElement: TYPE_VALUE, - HTMLMapElement: TYPE_VALUE, - HTMLMarqueeElement: TYPE_VALUE, - HTMLMediaElementEventMap: TYPE, - HTMLMediaElement: TYPE_VALUE, - HTMLMenuElement: TYPE_VALUE, - HTMLMetaElement: TYPE_VALUE, - HTMLMeterElement: TYPE_VALUE, - HTMLModElement: TYPE_VALUE, - HTMLOListElement: TYPE_VALUE, - HTMLObjectElement: TYPE_VALUE, - HTMLOptGroupElement: TYPE_VALUE, - HTMLOptionElement: TYPE_VALUE, - HTMLOptionsCollection: TYPE_VALUE, - HTMLOrSVGElement: TYPE, - HTMLOutputElement: TYPE_VALUE, - HTMLParagraphElement: TYPE_VALUE, - HTMLParamElement: TYPE_VALUE, - HTMLPictureElement: TYPE_VALUE, - HTMLPreElement: TYPE_VALUE, - HTMLProgressElement: TYPE_VALUE, - HTMLQuoteElement: TYPE_VALUE, - HTMLScriptElement: TYPE_VALUE, - HTMLSelectElement: TYPE_VALUE, - HTMLSlotElement: TYPE_VALUE, - HTMLSourceElement: TYPE_VALUE, - HTMLSpanElement: TYPE_VALUE, - HTMLStyleElement: TYPE_VALUE, - HTMLTableCaptionElement: TYPE_VALUE, - HTMLTableCellElement: TYPE_VALUE, - HTMLTableColElement: TYPE_VALUE, - HTMLTableDataCellElement: TYPE, - HTMLTableElement: TYPE_VALUE, - HTMLTableHeaderCellElement: TYPE, - HTMLTableRowElement: TYPE_VALUE, - HTMLTableSectionElement: TYPE_VALUE, - HTMLTemplateElement: TYPE_VALUE, - HTMLTextAreaElement: TYPE_VALUE, - HTMLTimeElement: TYPE_VALUE, - HTMLTitleElement: TYPE_VALUE, - HTMLTrackElement: TYPE_VALUE, - HTMLUListElement: TYPE_VALUE, - HTMLUnknownElement: TYPE_VALUE, - HTMLVideoElementEventMap: TYPE, - HTMLVideoElement: TYPE_VALUE, - HashChangeEvent: TYPE_VALUE, - Headers: TYPE_VALUE, - Highlight: TYPE_VALUE, - HighlightRegistry: TYPE_VALUE, - History: TYPE_VALUE, - IDBCursor: TYPE_VALUE, - IDBCursorWithValue: TYPE_VALUE, - IDBDatabaseEventMap: TYPE, - IDBDatabase: TYPE_VALUE, - IDBFactory: TYPE_VALUE, - IDBIndex: TYPE_VALUE, - IDBKeyRange: TYPE_VALUE, - IDBObjectStore: TYPE_VALUE, - IDBOpenDBRequestEventMap: TYPE, - IDBOpenDBRequest: TYPE_VALUE, - IDBRequestEventMap: TYPE, - IDBRequest: TYPE_VALUE, - IDBTransactionEventMap: TYPE, - IDBTransaction: TYPE_VALUE, - IDBVersionChangeEvent: TYPE_VALUE, - IIRFilterNode: TYPE_VALUE, - IdleDeadline: TYPE_VALUE, - ImageBitmap: TYPE_VALUE, - ImageBitmapRenderingContext: TYPE_VALUE, - ImageData: TYPE_VALUE, - ImportMeta: TYPE, - InputDeviceInfo: TYPE_VALUE, - InputEvent: TYPE_VALUE, - IntersectionObserver: TYPE_VALUE, - IntersectionObserverEntry: TYPE_VALUE, - KHR_parallel_shader_compile: TYPE, - KeyboardEvent: TYPE_VALUE, - KeyframeEffect: TYPE_VALUE, - LargestContentfulPaint: TYPE_VALUE, - LinkStyle: TYPE, - Location: TYPE_VALUE, - Lock: TYPE_VALUE, - LockManager: TYPE_VALUE, - MIDIAccessEventMap: TYPE, - MIDIAccess: TYPE_VALUE, - MIDIConnectionEvent: TYPE_VALUE, - MIDIInputEventMap: TYPE, - MIDIInput: TYPE_VALUE, - MIDIInputMap: TYPE_VALUE, - MIDIMessageEvent: TYPE_VALUE, - MIDIOutput: TYPE_VALUE, - MIDIOutputMap: TYPE_VALUE, - MIDIPortEventMap: TYPE, - MIDIPort: TYPE_VALUE, - MathMLElementEventMap: TYPE, - MathMLElement: TYPE_VALUE, - MediaCapabilities: TYPE_VALUE, - MediaDeviceInfo: TYPE_VALUE, - MediaDevicesEventMap: TYPE, - MediaDevices: TYPE_VALUE, - MediaElementAudioSourceNode: TYPE_VALUE, - MediaEncryptedEvent: TYPE_VALUE, - MediaError: TYPE_VALUE, - MediaKeyMessageEvent: TYPE_VALUE, - MediaKeySessionEventMap: TYPE, - MediaKeySession: TYPE_VALUE, - MediaKeyStatusMap: TYPE_VALUE, - MediaKeySystemAccess: TYPE_VALUE, - MediaKeys: TYPE_VALUE, - MediaList: TYPE_VALUE, - MediaMetadata: TYPE_VALUE, - MediaQueryListEventMap: TYPE, - MediaQueryList: TYPE_VALUE, - MediaQueryListEvent: TYPE_VALUE, - MediaRecorderEventMap: TYPE, - MediaRecorder: TYPE_VALUE, - MediaSession: TYPE_VALUE, - MediaSourceEventMap: TYPE, - MediaSource: TYPE_VALUE, - MediaSourceHandle: TYPE_VALUE, - MediaStreamEventMap: TYPE, - MediaStream: TYPE_VALUE, - MediaStreamAudioDestinationNode: TYPE_VALUE, - MediaStreamAudioSourceNode: TYPE_VALUE, - MediaStreamTrackEventMap: TYPE, - MediaStreamTrack: TYPE_VALUE, - MediaStreamTrackEvent: TYPE_VALUE, - MessageChannel: TYPE_VALUE, - MessageEvent: TYPE_VALUE, - MessagePortEventMap: TYPE, - MessagePort: TYPE_VALUE, - MimeType: TYPE_VALUE, - MimeTypeArray: TYPE_VALUE, - MouseEvent: TYPE_VALUE, - MutationEvent: TYPE_VALUE, - MutationObserver: TYPE_VALUE, - MutationRecord: TYPE_VALUE, - NamedNodeMap: TYPE_VALUE, - NavigationPreloadManager: TYPE_VALUE, - Navigator: TYPE_VALUE, - NavigatorAutomationInformation: TYPE, - NavigatorBadge: TYPE, - NavigatorConcurrentHardware: TYPE, - NavigatorContentUtils: TYPE, - NavigatorCookies: TYPE, - NavigatorID: TYPE, - NavigatorLanguage: TYPE, - NavigatorLocks: TYPE, - NavigatorOnLine: TYPE, - NavigatorPlugins: TYPE, - NavigatorStorage: TYPE, - Node: TYPE_VALUE, - NodeIterator: TYPE_VALUE, - NodeList: TYPE_VALUE, - NodeListOf: TYPE, - NonDocumentTypeChildNode: TYPE, - NonElementParentNode: TYPE, - NotificationEventMap: TYPE, - Notification: TYPE_VALUE, - OES_draw_buffers_indexed: TYPE, - OES_element_index_uint: TYPE, - OES_fbo_render_mipmap: TYPE, - OES_standard_derivatives: TYPE, - OES_texture_float: TYPE, - OES_texture_float_linear: TYPE, - OES_texture_half_float: TYPE, - OES_texture_half_float_linear: TYPE, - OES_vertex_array_object: TYPE, - OVR_multiview2: TYPE, - OfflineAudioCompletionEvent: TYPE_VALUE, - OfflineAudioContextEventMap: TYPE, - OfflineAudioContext: TYPE_VALUE, - OffscreenCanvasEventMap: TYPE, - OffscreenCanvas: TYPE_VALUE, - OffscreenCanvasRenderingContext2D: TYPE_VALUE, - OscillatorNode: TYPE_VALUE, - OverconstrainedError: TYPE_VALUE, - PageTransitionEvent: TYPE_VALUE, - PannerNode: TYPE_VALUE, - ParentNode: TYPE, - Path2D: TYPE_VALUE, - PaymentMethodChangeEvent: TYPE_VALUE, - PaymentRequestEventMap: TYPE, - PaymentRequest: TYPE_VALUE, - PaymentRequestUpdateEvent: TYPE_VALUE, - PaymentResponse: TYPE_VALUE, - PerformanceEventMap: TYPE, - Performance: TYPE_VALUE, - PerformanceEntry: TYPE_VALUE, - PerformanceEventTiming: TYPE_VALUE, - PerformanceMark: TYPE_VALUE, - PerformanceMeasure: TYPE_VALUE, - PerformanceNavigation: TYPE_VALUE, - PerformanceNavigationTiming: TYPE_VALUE, - PerformanceObserver: TYPE_VALUE, - PerformanceObserverEntryList: TYPE_VALUE, - PerformancePaintTiming: TYPE_VALUE, - PerformanceResourceTiming: TYPE_VALUE, - PerformanceServerTiming: TYPE_VALUE, - PerformanceTiming: TYPE_VALUE, - PeriodicWave: TYPE_VALUE, - PermissionStatusEventMap: TYPE, - PermissionStatus: TYPE_VALUE, - Permissions: TYPE_VALUE, - PictureInPictureEvent: TYPE_VALUE, - PictureInPictureWindowEventMap: TYPE, - PictureInPictureWindow: TYPE_VALUE, - Plugin: TYPE_VALUE, - PluginArray: TYPE_VALUE, - PointerEvent: TYPE_VALUE, - PopStateEvent: TYPE_VALUE, - PopoverInvokerElement: TYPE, - ProcessingInstruction: TYPE_VALUE, - ProgressEvent: TYPE_VALUE, - PromiseRejectionEvent: TYPE_VALUE, - PublicKeyCredential: TYPE_VALUE, - PushManager: TYPE_VALUE, - PushSubscription: TYPE_VALUE, - PushSubscriptionOptions: TYPE_VALUE, - RTCCertificate: TYPE_VALUE, - RTCDTMFSenderEventMap: TYPE, - RTCDTMFSender: TYPE_VALUE, - RTCDTMFToneChangeEvent: TYPE_VALUE, - RTCDataChannelEventMap: TYPE, - RTCDataChannel: TYPE_VALUE, - RTCDataChannelEvent: TYPE_VALUE, - RTCDtlsTransportEventMap: TYPE, - RTCDtlsTransport: TYPE_VALUE, - RTCEncodedAudioFrame: TYPE_VALUE, - RTCEncodedVideoFrame: TYPE_VALUE, - RTCError: TYPE_VALUE, - RTCErrorEvent: TYPE_VALUE, - RTCIceCandidate: TYPE_VALUE, - RTCIceCandidatePair: TYPE, - RTCIceTransportEventMap: TYPE, - RTCIceTransport: TYPE_VALUE, - RTCPeerConnectionEventMap: TYPE, - RTCPeerConnection: TYPE_VALUE, - RTCPeerConnectionIceErrorEvent: TYPE_VALUE, - RTCPeerConnectionIceEvent: TYPE_VALUE, - RTCRtpReceiver: TYPE_VALUE, - RTCRtpScriptTransform: TYPE_VALUE, - RTCRtpSender: TYPE_VALUE, - RTCRtpTransceiver: TYPE_VALUE, - RTCSctpTransportEventMap: TYPE, - RTCSctpTransport: TYPE_VALUE, - RTCSessionDescription: TYPE_VALUE, - RTCStatsReport: TYPE_VALUE, - RTCTrackEvent: TYPE_VALUE, - RadioNodeList: TYPE_VALUE, - Range: TYPE_VALUE, - ReadableByteStreamController: TYPE_VALUE, - ReadableStream: TYPE_VALUE, - ReadableStreamBYOBReader: TYPE_VALUE, - ReadableStreamBYOBRequest: TYPE_VALUE, - ReadableStreamDefaultController: TYPE_VALUE, - ReadableStreamDefaultReader: TYPE_VALUE, - ReadableStreamGenericReader: TYPE, - RemotePlaybackEventMap: TYPE, - RemotePlayback: TYPE_VALUE, - Report: TYPE_VALUE, - ReportBody: TYPE_VALUE, - ReportingObserver: TYPE_VALUE, - Request: TYPE_VALUE, - ResizeObserver: TYPE_VALUE, - ResizeObserverEntry: TYPE_VALUE, - ResizeObserverSize: TYPE_VALUE, - Response: TYPE_VALUE, - SVGAElement: TYPE_VALUE, - SVGAngle: TYPE_VALUE, - SVGAnimateElement: TYPE_VALUE, - SVGAnimateMotionElement: TYPE_VALUE, - SVGAnimateTransformElement: TYPE_VALUE, - SVGAnimatedAngle: TYPE_VALUE, - SVGAnimatedBoolean: TYPE_VALUE, - SVGAnimatedEnumeration: TYPE_VALUE, - SVGAnimatedInteger: TYPE_VALUE, - SVGAnimatedLength: TYPE_VALUE, - SVGAnimatedLengthList: TYPE_VALUE, - SVGAnimatedNumber: TYPE_VALUE, - SVGAnimatedNumberList: TYPE_VALUE, - SVGAnimatedPoints: TYPE, - SVGAnimatedPreserveAspectRatio: TYPE_VALUE, - SVGAnimatedRect: TYPE_VALUE, - SVGAnimatedString: TYPE_VALUE, - SVGAnimatedTransformList: TYPE_VALUE, - SVGAnimationElement: TYPE_VALUE, - SVGCircleElement: TYPE_VALUE, - SVGClipPathElement: TYPE_VALUE, - SVGComponentTransferFunctionElement: TYPE_VALUE, - SVGDefsElement: TYPE_VALUE, - SVGDescElement: TYPE_VALUE, - SVGElementEventMap: TYPE, - SVGElement: TYPE_VALUE, - SVGEllipseElement: TYPE_VALUE, - SVGFEBlendElement: TYPE_VALUE, - SVGFEColorMatrixElement: TYPE_VALUE, - SVGFEComponentTransferElement: TYPE_VALUE, - SVGFECompositeElement: TYPE_VALUE, - SVGFEConvolveMatrixElement: TYPE_VALUE, - SVGFEDiffuseLightingElement: TYPE_VALUE, - SVGFEDisplacementMapElement: TYPE_VALUE, - SVGFEDistantLightElement: TYPE_VALUE, - SVGFEDropShadowElement: TYPE_VALUE, - SVGFEFloodElement: TYPE_VALUE, - SVGFEFuncAElement: TYPE_VALUE, - SVGFEFuncBElement: TYPE_VALUE, - SVGFEFuncGElement: TYPE_VALUE, - SVGFEFuncRElement: TYPE_VALUE, - SVGFEGaussianBlurElement: TYPE_VALUE, - SVGFEImageElement: TYPE_VALUE, - SVGFEMergeElement: TYPE_VALUE, - SVGFEMergeNodeElement: TYPE_VALUE, - SVGFEMorphologyElement: TYPE_VALUE, - SVGFEOffsetElement: TYPE_VALUE, - SVGFEPointLightElement: TYPE_VALUE, - SVGFESpecularLightingElement: TYPE_VALUE, - SVGFESpotLightElement: TYPE_VALUE, - SVGFETileElement: TYPE_VALUE, - SVGFETurbulenceElement: TYPE_VALUE, - SVGFilterElement: TYPE_VALUE, - SVGFilterPrimitiveStandardAttributes: TYPE, - SVGFitToViewBox: TYPE, - SVGForeignObjectElement: TYPE_VALUE, - SVGGElement: TYPE_VALUE, - SVGGeometryElement: TYPE_VALUE, - SVGGradientElement: TYPE_VALUE, - SVGGraphicsElement: TYPE_VALUE, - SVGImageElement: TYPE_VALUE, - SVGLength: TYPE_VALUE, - SVGLengthList: TYPE_VALUE, - SVGLineElement: TYPE_VALUE, - SVGLinearGradientElement: TYPE_VALUE, - SVGMPathElement: TYPE_VALUE, - SVGMarkerElement: TYPE_VALUE, - SVGMaskElement: TYPE_VALUE, - SVGMetadataElement: TYPE_VALUE, - SVGNumber: TYPE_VALUE, - SVGNumberList: TYPE_VALUE, - SVGPathElement: TYPE_VALUE, - SVGPatternElement: TYPE_VALUE, - SVGPointList: TYPE_VALUE, - SVGPolygonElement: TYPE_VALUE, - SVGPolylineElement: TYPE_VALUE, - SVGPreserveAspectRatio: TYPE_VALUE, - SVGRadialGradientElement: TYPE_VALUE, - SVGRectElement: TYPE_VALUE, - SVGSVGElementEventMap: TYPE, - SVGSVGElement: TYPE_VALUE, - SVGScriptElement: TYPE_VALUE, - SVGSetElement: TYPE_VALUE, - SVGStopElement: TYPE_VALUE, - SVGStringList: TYPE_VALUE, - SVGStyleElement: TYPE_VALUE, - SVGSwitchElement: TYPE_VALUE, - SVGSymbolElement: TYPE_VALUE, - SVGTSpanElement: TYPE_VALUE, - SVGTests: TYPE, - SVGTextContentElement: TYPE_VALUE, - SVGTextElement: TYPE_VALUE, - SVGTextPathElement: TYPE_VALUE, - SVGTextPositioningElement: TYPE_VALUE, - SVGTitleElement: TYPE_VALUE, - SVGTransform: TYPE_VALUE, - SVGTransformList: TYPE_VALUE, - SVGURIReference: TYPE, - SVGUnitTypes: TYPE_VALUE, - SVGUseElement: TYPE_VALUE, - SVGViewElement: TYPE_VALUE, - Screen: TYPE_VALUE, - ScreenOrientationEventMap: TYPE, - ScreenOrientation: TYPE_VALUE, - ScriptProcessorNodeEventMap: TYPE, - ScriptProcessorNode: TYPE_VALUE, - SecurityPolicyViolationEvent: TYPE_VALUE, - Selection: TYPE_VALUE, - ServiceWorkerEventMap: TYPE, - ServiceWorker: TYPE_VALUE, - ServiceWorkerContainerEventMap: TYPE, - ServiceWorkerContainer: TYPE_VALUE, - ServiceWorkerRegistrationEventMap: TYPE, - ServiceWorkerRegistration: TYPE_VALUE, - ShadowRootEventMap: TYPE, - ShadowRoot: TYPE_VALUE, - SharedWorker: TYPE_VALUE, - Slottable: TYPE, - SourceBufferEventMap: TYPE, - SourceBuffer: TYPE_VALUE, - SourceBufferListEventMap: TYPE, - SourceBufferList: TYPE_VALUE, - SpeechRecognitionAlternative: TYPE_VALUE, - SpeechRecognitionResult: TYPE_VALUE, - SpeechRecognitionResultList: TYPE_VALUE, - SpeechSynthesisEventMap: TYPE, - SpeechSynthesis: TYPE_VALUE, - SpeechSynthesisErrorEvent: TYPE_VALUE, - SpeechSynthesisEvent: TYPE_VALUE, - SpeechSynthesisUtteranceEventMap: TYPE, - SpeechSynthesisUtterance: TYPE_VALUE, - SpeechSynthesisVoice: TYPE_VALUE, - StaticRange: TYPE_VALUE, - StereoPannerNode: TYPE_VALUE, - Storage: TYPE_VALUE, - StorageEvent: TYPE_VALUE, - StorageManager: TYPE_VALUE, - StyleMedia: TYPE, - StylePropertyMap: TYPE_VALUE, - StylePropertyMapReadOnly: TYPE_VALUE, - StyleSheet: TYPE_VALUE, - StyleSheetList: TYPE_VALUE, - SubmitEvent: TYPE_VALUE, SubtleCrypto: TYPE_VALUE, - Text: TYPE_VALUE, - TextDecoder: TYPE_VALUE, - TextDecoderCommon: TYPE, - TextDecoderStream: TYPE_VALUE, - TextEncoder: TYPE_VALUE, - TextEncoderCommon: TYPE, - TextEncoderStream: TYPE_VALUE, - TextEvent: TYPE_VALUE, - TextMetrics: TYPE_VALUE, - TextTrackEventMap: TYPE, - TextTrack: TYPE_VALUE, - TextTrackCueEventMap: TYPE, - TextTrackCue: TYPE_VALUE, - TextTrackCueList: TYPE_VALUE, - TextTrackListEventMap: TYPE, - TextTrackList: TYPE_VALUE, - TimeRanges: TYPE_VALUE, - ToggleEvent: TYPE_VALUE, - Touch: TYPE_VALUE, - TouchEvent: TYPE_VALUE, - TouchList: TYPE_VALUE, - TrackEvent: TYPE_VALUE, - TransformStream: TYPE_VALUE, - TransformStreamDefaultController: TYPE_VALUE, - TransitionEvent: TYPE_VALUE, - TreeWalker: TYPE_VALUE, - UIEvent: TYPE_VALUE, - URL: TYPE_VALUE, - webkitURL: TYPE_VALUE, - URLSearchParams: TYPE_VALUE, - UserActivation: TYPE_VALUE, - VTTCue: TYPE_VALUE, - VTTRegion: TYPE_VALUE, - ValidityState: TYPE_VALUE, - VideoColorSpace: TYPE_VALUE, - VideoDecoderEventMap: TYPE, - VideoDecoder: TYPE_VALUE, - VideoEncoderEventMap: TYPE, - VideoEncoder: TYPE_VALUE, - VideoFrame: TYPE_VALUE, - VideoPlaybackQuality: TYPE_VALUE, - ViewTransition: TYPE_VALUE, - VisualViewportEventMap: TYPE, - VisualViewport: TYPE_VALUE, - WEBGL_color_buffer_float: TYPE, - WEBGL_compressed_texture_astc: TYPE, - WEBGL_compressed_texture_etc: TYPE, - WEBGL_compressed_texture_etc1: TYPE, - WEBGL_compressed_texture_pvrtc: TYPE, - WEBGL_compressed_texture_s3tc: TYPE, - WEBGL_compressed_texture_s3tc_srgb: TYPE, - WEBGL_debug_renderer_info: TYPE, - WEBGL_debug_shaders: TYPE, - WEBGL_depth_texture: TYPE, - WEBGL_draw_buffers: TYPE, - WEBGL_lose_context: TYPE, - WEBGL_multi_draw: TYPE, - WakeLock: TYPE_VALUE, - WakeLockSentinelEventMap: TYPE, - WakeLockSentinel: TYPE_VALUE, - WaveShaperNode: TYPE_VALUE, - WebGL2RenderingContext: TYPE_VALUE, - WebGL2RenderingContextBase: TYPE, - WebGL2RenderingContextOverloads: TYPE, - WebGLActiveInfo: TYPE_VALUE, - WebGLBuffer: TYPE_VALUE, - WebGLContextEvent: TYPE_VALUE, - WebGLFramebuffer: TYPE_VALUE, - WebGLProgram: TYPE_VALUE, - WebGLQuery: TYPE_VALUE, - WebGLRenderbuffer: TYPE_VALUE, - WebGLRenderingContext: TYPE_VALUE, - WebGLRenderingContextBase: TYPE, - WebGLRenderingContextOverloads: TYPE, - WebGLSampler: TYPE_VALUE, - WebGLShader: TYPE_VALUE, - WebGLShaderPrecisionFormat: TYPE_VALUE, - WebGLSync: TYPE_VALUE, - WebGLTexture: TYPE_VALUE, - WebGLTransformFeedback: TYPE_VALUE, - WebGLUniformLocation: TYPE_VALUE, - WebGLVertexArrayObject: TYPE_VALUE, - WebGLVertexArrayObjectOES: TYPE, - WebSocketEventMap: TYPE, - WebSocket: TYPE_VALUE, - WebTransport: TYPE_VALUE, - WebTransportBidirectionalStream: TYPE_VALUE, - WebTransportDatagramDuplexStream: TYPE_VALUE, - WebTransportError: TYPE_VALUE, - WheelEvent: TYPE_VALUE, - WindowEventMap: TYPE, - Window: TYPE_VALUE, - WindowEventHandlersEventMap: TYPE, - WindowEventHandlers: TYPE, - WindowLocalStorage: TYPE, - WindowOrWorkerGlobalScope: TYPE, - WindowSessionStorage: TYPE, - WorkerEventMap: TYPE, - Worker: TYPE_VALUE, - Worklet: TYPE_VALUE, - WritableStream: TYPE_VALUE, - WritableStreamDefaultController: TYPE_VALUE, - WritableStreamDefaultWriter: TYPE_VALUE, - XMLDocument: TYPE_VALUE, - XMLHttpRequestEventMap: TYPE, - XMLHttpRequest: TYPE_VALUE, - XMLHttpRequestEventTargetEventMap: TYPE, - XMLHttpRequestEventTarget: TYPE_VALUE, - XMLHttpRequestUpload: TYPE_VALUE, - XMLSerializer: TYPE_VALUE, - XPathEvaluator: TYPE_VALUE, - XPathEvaluatorBase: TYPE, - XPathExpression: TYPE_VALUE, - XPathResult: TYPE_VALUE, - XSLTProcessor: TYPE_VALUE, - Console: TYPE, - CSS: TYPE_VALUE, - WebAssembly: TYPE_VALUE, - BlobCallback: TYPE, - CustomElementConstructor: TYPE, - DecodeErrorCallback: TYPE, - DecodeSuccessCallback: TYPE, - EncodedVideoChunkOutputCallback: TYPE, - ErrorCallback: TYPE, - FileCallback: TYPE, - FileSystemEntriesCallback: TYPE, - FileSystemEntryCallback: TYPE, - FrameRequestCallback: TYPE, - FunctionStringCallback: TYPE, - IdleRequestCallback: TYPE, - IntersectionObserverCallback: TYPE, - LockGrantedCallback: TYPE, - MediaSessionActionHandler: TYPE, - MutationCallback: TYPE, - NotificationPermissionCallback: TYPE, - OnBeforeUnloadEventHandlerNonNull: TYPE, - OnErrorEventHandlerNonNull: TYPE, - PerformanceObserverCallback: TYPE, - PositionCallback: TYPE, - PositionErrorCallback: TYPE, - QueuingStrategySize: TYPE, - RTCPeerConnectionErrorCallback: TYPE, - RTCSessionDescriptionCallback: TYPE, - RemotePlaybackAvailabilityCallback: TYPE, - ReportingObserverCallback: TYPE, - ResizeObserverCallback: TYPE, - TransformerFlushCallback: TYPE, - TransformerStartCallback: TYPE, - TransformerTransformCallback: TYPE, - UnderlyingSinkAbortCallback: TYPE, - UnderlyingSinkCloseCallback: TYPE, - UnderlyingSinkStartCallback: TYPE, - UnderlyingSinkWriteCallback: TYPE, - UnderlyingSourceCancelCallback: TYPE, - UnderlyingSourcePullCallback: TYPE, - UnderlyingSourceStartCallback: TYPE, - UpdateCallback: TYPE, - VideoFrameOutputCallback: TYPE, - VideoFrameRequestCallback: TYPE, - VoidFunction: TYPE, - WebCodecsErrorCallback: TYPE, - HTMLElementTagNameMap: TYPE, - HTMLElementDeprecatedTagNameMap: TYPE, + SVGAElement: TYPE_VALUE, + SVGAngle: TYPE_VALUE, + SVGAnimatedAngle: TYPE_VALUE, + SVGAnimatedBoolean: TYPE_VALUE, + SVGAnimatedEnumeration: TYPE_VALUE, + SVGAnimatedInteger: TYPE_VALUE, + SVGAnimatedLength: TYPE_VALUE, + SVGAnimatedLengthList: TYPE_VALUE, + SVGAnimatedNumber: TYPE_VALUE, + SVGAnimatedNumberList: TYPE_VALUE, + SVGAnimatedPoints: TYPE, + SVGAnimatedPreserveAspectRatio: TYPE_VALUE, + SVGAnimatedRect: TYPE_VALUE, + SVGAnimatedString: TYPE_VALUE, + SVGAnimatedTransformList: TYPE_VALUE, + SVGAnimateElement: TYPE_VALUE, + SVGAnimateMotionElement: TYPE_VALUE, + SVGAnimateTransformElement: TYPE_VALUE, + SVGAnimationElement: TYPE_VALUE, + SVGBoundingBoxOptions: TYPE, + SVGCircleElement: TYPE_VALUE, + SVGClipPathElement: TYPE_VALUE, + SVGComponentTransferFunctionElement: TYPE_VALUE, + SVGDefsElement: TYPE_VALUE, + SVGDescElement: TYPE_VALUE, + SVGElement: TYPE_VALUE, + SVGElementEventMap: TYPE, SVGElementTagNameMap: TYPE, - MathMLElementTagNameMap: TYPE, - ElementTagNameMap: TYPE, - AlgorithmIdentifier: TYPE, - AllowSharedBufferSource: TYPE, - AutoFill: TYPE, - AutoFillField: TYPE, - AutoFillSection: TYPE, - BigInteger: TYPE, - BinaryData: TYPE, - BlobPart: TYPE, - BodyInit: TYPE, - BufferSource: TYPE, - COSEAlgorithmIdentifier: TYPE, - CSSKeywordish: TYPE, - CSSNumberish: TYPE, - CSSPerspectiveValue: TYPE, - CSSUnparsedSegment: TYPE, - CanvasImageSource: TYPE, - ClipboardItemData: TYPE, - ClipboardItems: TYPE, - ConstrainBoolean: TYPE, - ConstrainDOMString: TYPE, - ConstrainDouble: TYPE, - ConstrainULong: TYPE, - DOMHighResTimeStamp: TYPE, - EpochTimeStamp: TYPE, - EventListenerOrEventListenerObject: TYPE, - FileSystemWriteChunkType: TYPE, - Float32List: TYPE, - FormDataEntryValue: TYPE, - GLbitfield: TYPE, - GLboolean: TYPE, - GLclampf: TYPE, - GLenum: TYPE, - GLfloat: TYPE, - GLint: TYPE, - GLint64: TYPE, - GLintptr: TYPE, - GLsizei: TYPE, - GLsizeiptr: TYPE, - GLuint: TYPE, - GLuint64: TYPE, - HTMLOrSVGImageElement: TYPE, - HTMLOrSVGScriptElement: TYPE, - HashAlgorithmIdentifier: TYPE, - HeadersInit: TYPE, - IDBValidKey: TYPE, - ImageBitmapSource: TYPE, - Int32List: TYPE, - LineAndPositionSetting: TYPE, - MediaProvider: TYPE, - MessageEventSource: TYPE, - MutationRecordType: TYPE, - NamedCurve: TYPE, - OffscreenRenderingContext: TYPE, - OnBeforeUnloadEventHandler: TYPE, - OnErrorEventHandler: TYPE, - OptionalPostfixToken: TYPE, - OptionalPrefixToken: TYPE, - PerformanceEntryList: TYPE, - RTCRtpTransform: TYPE, - ReadableStreamController: TYPE, - ReadableStreamReadResult: TYPE, - ReadableStreamReader: TYPE, - RenderingContext: TYPE, - ReportList: TYPE, - RequestInfo: TYPE, - TexImageSource: TYPE, - TimerHandler: TYPE, - Transferable: TYPE, - Uint32List: TYPE, - VibratePattern: TYPE, - WindowProxy: TYPE, - XMLHttpRequestBodyInit: TYPE, - AlignSetting: TYPE, - AlphaOption: TYPE, - AnimationPlayState: TYPE, - AnimationReplaceState: TYPE, - AppendMode: TYPE, - AttestationConveyancePreference: TYPE, - AudioContextLatencyCategory: TYPE, - AudioContextState: TYPE, - AuthenticatorAttachment: TYPE, - AuthenticatorTransport: TYPE, - AutoFillAddressKind: TYPE, - AutoFillBase: TYPE, - AutoFillContactField: TYPE, - AutoFillContactKind: TYPE, - AutoFillCredentialField: TYPE, - AutoFillNormalField: TYPE, - AutoKeyword: TYPE, - AutomationRate: TYPE, - AvcBitstreamFormat: TYPE, - BinaryType: TYPE, - BiquadFilterType: TYPE, - CSSMathOperator: TYPE, - CSSNumericBaseType: TYPE, - CanPlayTypeResult: TYPE, - CanvasDirection: TYPE, - CanvasFillRule: TYPE, - CanvasFontKerning: TYPE, - CanvasFontStretch: TYPE, - CanvasFontVariantCaps: TYPE, - CanvasLineCap: TYPE, - CanvasLineJoin: TYPE, - CanvasTextAlign: TYPE, - CanvasTextBaseline: TYPE, - CanvasTextRendering: TYPE, - ChannelCountMode: TYPE, - ChannelInterpretation: TYPE, - ClientTypes: TYPE, - CodecState: TYPE, - ColorGamut: TYPE, - ColorSpaceConversion: TYPE, - CompositeOperation: TYPE, - CompositeOperationOrAuto: TYPE, - CompressionFormat: TYPE, - CredentialMediationRequirement: TYPE, - DOMParserSupportedType: TYPE, - DirectionSetting: TYPE, - DisplayCaptureSurfaceType: TYPE, - DistanceModelType: TYPE, - DocumentReadyState: TYPE, - DocumentVisibilityState: TYPE, - EncodedVideoChunkType: TYPE, - EndOfStreamError: TYPE, - EndingType: TYPE, - FileSystemHandleKind: TYPE, - FillMode: TYPE, - FontDisplay: TYPE, - FontFaceLoadStatus: TYPE, - FontFaceSetLoadStatus: TYPE, - FullscreenNavigationUI: TYPE, - GamepadHapticEffectType: TYPE, - GamepadHapticsResult: TYPE, - GamepadMappingType: TYPE, - GlobalCompositeOperation: TYPE, - HardwareAcceleration: TYPE, - HdrMetadataType: TYPE, - HighlightType: TYPE, - IDBCursorDirection: TYPE, - IDBRequestReadyState: TYPE, - IDBTransactionDurability: TYPE, - IDBTransactionMode: TYPE, - ImageOrientation: TYPE, - ImageSmoothingQuality: TYPE, - InsertPosition: TYPE, - IterationCompositeOperation: TYPE, - KeyFormat: TYPE, - KeyType: TYPE, - KeyUsage: TYPE, - LatencyMode: TYPE, - LineAlignSetting: TYPE, - LockMode: TYPE, - MIDIPortConnectionState: TYPE, - MIDIPortDeviceState: TYPE, - MIDIPortType: TYPE, - MediaDecodingType: TYPE, - MediaDeviceKind: TYPE, - MediaEncodingType: TYPE, - MediaKeyMessageType: TYPE, - MediaKeySessionClosedReason: TYPE, - MediaKeySessionType: TYPE, - MediaKeyStatus: TYPE, - MediaKeysRequirement: TYPE, - MediaSessionAction: TYPE, - MediaSessionPlaybackState: TYPE, - MediaStreamTrackState: TYPE, - NavigationTimingType: TYPE, - NotificationDirection: TYPE, - NotificationPermission: TYPE, - OffscreenRenderingContextId: TYPE, - OrientationType: TYPE, - OscillatorType: TYPE, - OverSampleType: TYPE, - PanningModelType: TYPE, - PaymentComplete: TYPE, - PermissionName: TYPE, - PermissionState: TYPE, - PlaybackDirection: TYPE, - PositionAlignSetting: TYPE, - PredefinedColorSpace: TYPE, - PremultiplyAlpha: TYPE, - PresentationStyle: TYPE, - PublicKeyCredentialType: TYPE, - PushEncryptionKeyName: TYPE, - RTCBundlePolicy: TYPE, - RTCDataChannelState: TYPE, - RTCDegradationPreference: TYPE, - RTCDtlsTransportState: TYPE, - RTCEncodedVideoFrameType: TYPE, - RTCErrorDetailType: TYPE, - RTCIceCandidateType: TYPE, - RTCIceComponent: TYPE, - RTCIceConnectionState: TYPE, - RTCIceGathererState: TYPE, - RTCIceGatheringState: TYPE, - RTCIceProtocol: TYPE, - RTCIceTcpCandidateType: TYPE, - RTCIceTransportPolicy: TYPE, - RTCIceTransportState: TYPE, - RTCPeerConnectionState: TYPE, - RTCPriorityType: TYPE, - RTCRtcpMuxPolicy: TYPE, - RTCRtpTransceiverDirection: TYPE, - RTCSctpTransportState: TYPE, - RTCSdpType: TYPE, - RTCSignalingState: TYPE, - RTCStatsIceCandidatePairState: TYPE, - RTCStatsType: TYPE, - ReadableStreamReaderMode: TYPE, - ReadableStreamType: TYPE, - ReadyState: TYPE, - RecordingState: TYPE, - ReferrerPolicy: TYPE, - RemotePlaybackState: TYPE, - RequestCache: TYPE, - RequestCredentials: TYPE, - RequestDestination: TYPE, - RequestMode: TYPE, - RequestPriority: TYPE, - RequestRedirect: TYPE, - ResidentKeyRequirement: TYPE, - ResizeObserverBoxOptions: TYPE, - ResizeQuality: TYPE, - ResponseType: TYPE, - ScrollBehavior: TYPE, - ScrollLogicalPosition: TYPE, - ScrollRestoration: TYPE, - ScrollSetting: TYPE, - SecurityPolicyViolationEventDisposition: TYPE, - SelectionMode: TYPE, - ServiceWorkerState: TYPE, - ServiceWorkerUpdateViaCache: TYPE, - ShadowRootMode: TYPE, - SlotAssignmentMode: TYPE, - SpeechSynthesisErrorCode: TYPE, + SVGEllipseElement: TYPE_VALUE, + SVGFEBlendElement: TYPE_VALUE, + SVGFEColorMatrixElement: TYPE_VALUE, + SVGFEComponentTransferElement: TYPE_VALUE, + SVGFECompositeElement: TYPE_VALUE, + SVGFEConvolveMatrixElement: TYPE_VALUE, + SVGFEDiffuseLightingElement: TYPE_VALUE, + SVGFEDisplacementMapElement: TYPE_VALUE, + SVGFEDistantLightElement: TYPE_VALUE, + SVGFEDropShadowElement: TYPE_VALUE, + SVGFEFloodElement: TYPE_VALUE, + SVGFEFuncAElement: TYPE_VALUE, + SVGFEFuncBElement: TYPE_VALUE, + SVGFEFuncGElement: TYPE_VALUE, + SVGFEFuncRElement: TYPE_VALUE, + SVGFEGaussianBlurElement: TYPE_VALUE, + SVGFEImageElement: TYPE_VALUE, + SVGFEMergeElement: TYPE_VALUE, + SVGFEMergeNodeElement: TYPE_VALUE, + SVGFEMorphologyElement: TYPE_VALUE, + SVGFEOffsetElement: TYPE_VALUE, + SVGFEPointLightElement: TYPE_VALUE, + SVGFESpecularLightingElement: TYPE_VALUE, + SVGFESpotLightElement: TYPE_VALUE, + SVGFETileElement: TYPE_VALUE, + SVGFETurbulenceElement: TYPE_VALUE, + SVGFilterElement: TYPE_VALUE, + SVGFilterPrimitiveStandardAttributes: TYPE, + SVGFitToViewBox: TYPE, + SVGForeignObjectElement: TYPE_VALUE, + SVGGElement: TYPE_VALUE, + SVGGeometryElement: TYPE_VALUE, + SVGGradientElement: TYPE_VALUE, + SVGGraphicsElement: TYPE_VALUE, + SVGImageElement: TYPE_VALUE, + SVGLength: TYPE_VALUE, + SVGLengthList: TYPE_VALUE, + SVGLinearGradientElement: TYPE_VALUE, + SVGLineElement: TYPE_VALUE, + SVGMarkerElement: TYPE_VALUE, + SVGMaskElement: TYPE_VALUE, + SVGMatrix: TYPE_VALUE, + SVGMetadataElement: TYPE_VALUE, + SVGMPathElement: TYPE_VALUE, + SVGNumber: TYPE_VALUE, + SVGNumberList: TYPE_VALUE, + SVGPathElement: TYPE_VALUE, + SVGPatternElement: TYPE_VALUE, + SVGPoint: TYPE_VALUE, + SVGPointList: TYPE_VALUE, + SVGPolygonElement: TYPE_VALUE, + SVGPolylineElement: TYPE_VALUE, + SVGPreserveAspectRatio: TYPE_VALUE, + SVGRadialGradientElement: TYPE_VALUE, + SVGRect: TYPE_VALUE, + SVGRectElement: TYPE_VALUE, + SVGScriptElement: TYPE_VALUE, + SVGSetElement: TYPE_VALUE, + SVGStopElement: TYPE_VALUE, + SVGStringList: TYPE_VALUE, + SVGStyleElement: TYPE_VALUE, + SVGSVGElement: TYPE_VALUE, + SVGSVGElementEventMap: TYPE, + SVGSwitchElement: TYPE_VALUE, + SVGSymbolElement: TYPE_VALUE, + SVGTests: TYPE, + SVGTextContentElement: TYPE_VALUE, + SVGTextElement: TYPE_VALUE, + SVGTextPathElement: TYPE_VALUE, + SVGTextPositioningElement: TYPE_VALUE, + SVGTitleElement: TYPE_VALUE, + SVGTransform: TYPE_VALUE, + SVGTransformList: TYPE_VALUE, + SVGTSpanElement: TYPE_VALUE, + SVGUnitTypes: TYPE_VALUE, + SVGURIReference: TYPE, + SVGUseElement: TYPE_VALUE, + SVGViewElement: TYPE_VALUE, + TexImageSource: TYPE, + Text: TYPE_VALUE, + TextDecodeOptions: TYPE, + TextDecoder: TYPE_VALUE, + TextDecoderCommon: TYPE, + TextDecoderOptions: TYPE, + TextDecoderStream: TYPE_VALUE, + TextEncoder: TYPE_VALUE, + TextEncoderCommon: TYPE, + TextEncoderEncodeIntoResult: TYPE, + TextEncoderStream: TYPE_VALUE, + TextEvent: TYPE_VALUE, + TextMetrics: TYPE_VALUE, + TextTrack: TYPE_VALUE, + TextTrackCue: TYPE_VALUE, + TextTrackCueEventMap: TYPE, + TextTrackCueList: TYPE_VALUE, + TextTrackEventMap: TYPE, TextTrackKind: TYPE, + TextTrackList: TYPE_VALUE, + TextTrackListEventMap: TYPE, TextTrackMode: TYPE, + TimeRanges: TYPE_VALUE, + TimerHandler: TYPE, + ToggleEvent: TYPE_VALUE, + ToggleEventInit: TYPE, + Touch: TYPE_VALUE, + TouchEvent: TYPE_VALUE, + TouchEventInit: TYPE, + TouchInit: TYPE, + TouchList: TYPE_VALUE, TouchType: TYPE, + TrackEvent: TYPE_VALUE, + TrackEventInit: TYPE, + Transferable: TYPE, TransferFunction: TYPE, + Transformer: TYPE, + TransformerFlushCallback: TYPE, + TransformerStartCallback: TYPE, + TransformerTransformCallback: TYPE, + TransformStream: TYPE_VALUE, + TransformStreamDefaultController: TYPE_VALUE, + TransitionEvent: TYPE_VALUE, + TransitionEventInit: TYPE, + TreeWalker: TYPE_VALUE, + UIEvent: TYPE_VALUE, + UIEventInit: TYPE, + Uint32List: TYPE, + ULongRange: TYPE, + UnderlyingByteSource: TYPE, + UnderlyingDefaultSource: TYPE, + UnderlyingSink: TYPE, + UnderlyingSinkAbortCallback: TYPE, + UnderlyingSinkCloseCallback: TYPE, + UnderlyingSinkStartCallback: TYPE, + UnderlyingSinkWriteCallback: TYPE, + UnderlyingSource: TYPE, + UnderlyingSourceCancelCallback: TYPE, + UnderlyingSourcePullCallback: TYPE, + UnderlyingSourceStartCallback: TYPE, + UpdateCallback: TYPE, + URL: TYPE_VALUE, + URLSearchParams: TYPE_VALUE, + UserActivation: TYPE_VALUE, UserVerificationRequirement: TYPE, + ValidityState: TYPE_VALUE, + ValidityStateFlags: TYPE, + VibratePattern: TYPE, VideoColorPrimaries: TYPE, + VideoColorSpace: TYPE_VALUE, + VideoColorSpaceInit: TYPE, + VideoConfiguration: TYPE, + VideoDecoder: TYPE_VALUE, + VideoDecoderConfig: TYPE, + VideoDecoderEventMap: TYPE, + VideoDecoderInit: TYPE, + VideoDecoderSupport: TYPE, + VideoEncoder: TYPE_VALUE, VideoEncoderBitrateMode: TYPE, + VideoEncoderConfig: TYPE, + VideoEncoderEncodeOptions: TYPE, + VideoEncoderEventMap: TYPE, + VideoEncoderInit: TYPE, + VideoEncoderSupport: TYPE, VideoFacingModeEnum: TYPE, + VideoFrame: TYPE_VALUE, + VideoFrameBufferInit: TYPE, + VideoFrameCallbackMetadata: TYPE, + VideoFrameCopyToOptions: TYPE, + VideoFrameInit: TYPE, + VideoFrameOutputCallback: TYPE, + VideoFrameRequestCallback: TYPE, VideoMatrixCoefficients: TYPE, VideoPixelFormat: TYPE, + VideoPlaybackQuality: TYPE_VALUE, VideoTransferCharacteristics: TYPE, + ViewTransition: TYPE_VALUE, + VisualViewport: TYPE_VALUE, + VisualViewportEventMap: TYPE, + VoidFunction: TYPE, + VTTCue: TYPE_VALUE, + VTTRegion: TYPE_VALUE, + WakeLock: TYPE_VALUE, + WakeLockSentinel: TYPE_VALUE, + WakeLockSentinelEventMap: TYPE, WakeLockType: TYPE, + WaveShaperNode: TYPE_VALUE, + WaveShaperOptions: TYPE, + WebAssembly: TYPE_VALUE, + WebCodecsErrorCallback: TYPE, + WEBGL_color_buffer_float: TYPE, + WEBGL_compressed_texture_astc: TYPE, + WEBGL_compressed_texture_etc: TYPE, + WEBGL_compressed_texture_etc1: TYPE, + WEBGL_compressed_texture_pvrtc: TYPE, + WEBGL_compressed_texture_s3tc: TYPE, + WEBGL_compressed_texture_s3tc_srgb: TYPE, + WEBGL_debug_renderer_info: TYPE, + WEBGL_debug_shaders: TYPE, + WEBGL_depth_texture: TYPE, + WEBGL_draw_buffers: TYPE, + WEBGL_lose_context: TYPE, + WEBGL_multi_draw: TYPE, + WebGL2RenderingContext: TYPE_VALUE, + WebGL2RenderingContextBase: TYPE, + WebGL2RenderingContextOverloads: TYPE, + WebGLActiveInfo: TYPE_VALUE, + WebGLBuffer: TYPE_VALUE, + WebGLContextAttributes: TYPE, + WebGLContextEvent: TYPE_VALUE, + WebGLContextEventInit: TYPE, + WebGLFramebuffer: TYPE_VALUE, WebGLPowerPreference: TYPE, + WebGLProgram: TYPE_VALUE, + WebGLQuery: TYPE_VALUE, + WebGLRenderbuffer: TYPE_VALUE, + WebGLRenderingContext: TYPE_VALUE, + WebGLRenderingContextBase: TYPE, + WebGLRenderingContextOverloads: TYPE, + WebGLSampler: TYPE_VALUE, + WebGLShader: TYPE_VALUE, + WebGLShaderPrecisionFormat: TYPE_VALUE, + WebGLSync: TYPE_VALUE, + WebGLTexture: TYPE_VALUE, + WebGLTransformFeedback: TYPE_VALUE, + WebGLUniformLocation: TYPE_VALUE, + WebGLVertexArrayObject: TYPE_VALUE, + WebGLVertexArrayObjectOES: TYPE, + WebKitCSSMatrix: TYPE_VALUE, + webkitURL: TYPE_VALUE, + WebSocket: TYPE_VALUE, + WebSocketEventMap: TYPE, + WebTransport: TYPE_VALUE, + WebTransportBidirectionalStream: TYPE_VALUE, + WebTransportCloseInfo: TYPE, WebTransportCongestionControl: TYPE, + WebTransportDatagramDuplexStream: TYPE_VALUE, + WebTransportError: TYPE_VALUE, + WebTransportErrorOptions: TYPE, WebTransportErrorSource: TYPE, + WebTransportHash: TYPE, + WebTransportOptions: TYPE, + WebTransportSendStreamOptions: TYPE, + WheelEvent: TYPE_VALUE, + WheelEventInit: TYPE, + Window: TYPE_VALUE, + WindowEventHandlers: TYPE, + WindowEventHandlersEventMap: TYPE, + WindowEventMap: TYPE, + WindowLocalStorage: TYPE, + WindowOrWorkerGlobalScope: TYPE, + WindowPostMessageOptions: TYPE, + WindowProxy: TYPE, + WindowSessionStorage: TYPE, + Worker: TYPE_VALUE, + WorkerEventMap: TYPE, + WorkerOptions: TYPE, WorkerType: TYPE, + Worklet: TYPE_VALUE, + WorkletOptions: TYPE, + WritableStream: TYPE_VALUE, + WritableStreamDefaultController: TYPE_VALUE, + WritableStreamDefaultWriter: TYPE_VALUE, WriteCommandType: TYPE, + WriteParams: TYPE, + XMLDocument: TYPE_VALUE, + XMLHttpRequest: TYPE_VALUE, + XMLHttpRequestBodyInit: TYPE, + XMLHttpRequestEventMap: TYPE, + XMLHttpRequestEventTarget: TYPE_VALUE, + XMLHttpRequestEventTargetEventMap: TYPE, XMLHttpRequestResponseType: TYPE, + XMLHttpRequestUpload: TYPE_VALUE, + XMLSerializer: TYPE_VALUE, + XPathEvaluator: TYPE_VALUE, + XPathEvaluatorBase: TYPE, + XPathExpression: TYPE_VALUE, + XPathNSResolver: TYPE, + XPathResult: TYPE_VALUE, + XSLTProcessor: TYPE_VALUE, } as Record; diff --git a/packages/scope-manager/src/lib/es2015.collection.ts b/packages/scope-manager/src/lib/es2015.collection.ts index e99444821732..00350e768925 100644 --- a/packages/scope-manager/src/lib/es2015.collection.ts +++ b/packages/scope-manager/src/lib/es2015.collection.ts @@ -4,17 +4,18 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE, TYPE_VALUE } from './base-config'; export const es2015_collection = { Map: TYPE_VALUE, MapConstructor: TYPE, ReadonlyMap: TYPE, - WeakMap: TYPE_VALUE, - WeakMapConstructor: TYPE, + ReadonlySet: TYPE, Set: TYPE_VALUE, SetConstructor: TYPE, - ReadonlySet: TYPE, + WeakMap: TYPE_VALUE, + WeakMapConstructor: TYPE, WeakSet: TYPE_VALUE, WeakSetConstructor: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2015.core.ts b/packages/scope-manager/src/lib/es2015.core.ts index e47af3361e9c..343ffe10783d 100644 --- a/packages/scope-manager/src/lib/es2015.core.ts +++ b/packages/scope-manager/src/lib/es2015.core.ts @@ -4,13 +4,19 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const es2015_core = { Array: TYPE, ArrayConstructor: TYPE, DateConstructor: TYPE, + Float32Array: TYPE, + Float64Array: TYPE, Function: TYPE, + Int16Array: TYPE, + Int32Array: TYPE, + Int8Array: TYPE, Math: TYPE, NumberConstructor: TYPE, ObjectConstructor: TYPE, @@ -19,13 +25,8 @@ export const es2015_core = { RegExpConstructor: TYPE, String: TYPE, StringConstructor: TYPE, - Int8Array: TYPE, - Uint8Array: TYPE, - Uint8ClampedArray: TYPE, - Int16Array: TYPE, Uint16Array: TYPE, - Int32Array: TYPE, Uint32Array: TYPE, - Float32Array: TYPE, - Float64Array: TYPE, + Uint8Array: TYPE, + Uint8ClampedArray: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2015.generator.ts b/packages/scope-manager/src/lib/es2015.generator.ts index 0b3338d567c4..567461d3d157 100644 --- a/packages/scope-manager/src/lib/es2015.generator.ts +++ b/packages/scope-manager/src/lib/es2015.generator.ts @@ -4,8 +4,9 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; -import { es2015_iterable } from './es2015.iterable'; + import { TYPE } from './base-config'; +import { es2015_iterable } from './es2015.iterable'; export const es2015_generator = { ...es2015_iterable, diff --git a/packages/scope-manager/src/lib/es2015.iterable.ts b/packages/scope-manager/src/lib/es2015.iterable.ts index 7fa7850217bc..9d90baccf6b0 100644 --- a/packages/scope-manager/src/lib/es2015.iterable.ts +++ b/packages/scope-manager/src/lib/es2015.iterable.ts @@ -4,57 +4,58 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; -import { es2015_symbol } from './es2015.symbol'; + import { TYPE } from './base-config'; +import { es2015_symbol } from './es2015.symbol'; export const es2015_iterable = { ...es2015_symbol, - SymbolConstructor: TYPE, - IteratorYieldResult: TYPE, - IteratorReturnResult: TYPE, - IteratorResult: TYPE, - Iterator: TYPE, - Iterable: TYPE, - IterableIterator: TYPE, - IteratorObject: TYPE, - BuiltinIteratorReturn: TYPE, - ArrayIterator: TYPE, Array: TYPE, ArrayConstructor: TYPE, - ReadonlyArray: TYPE, + ArrayIterator: TYPE, + BuiltinIteratorReturn: TYPE, + Float32Array: TYPE, + Float32ArrayConstructor: TYPE, + Float64Array: TYPE, + Float64ArrayConstructor: TYPE, IArguments: TYPE, - MapIterator: TYPE, + Int16Array: TYPE, + Int16ArrayConstructor: TYPE, + Int32Array: TYPE, + Int32ArrayConstructor: TYPE, + Int8Array: TYPE, + Int8ArrayConstructor: TYPE, + Iterable: TYPE, + IterableIterator: TYPE, + Iterator: TYPE, + IteratorObject: TYPE, + IteratorResult: TYPE, + IteratorReturnResult: TYPE, + IteratorYieldResult: TYPE, Map: TYPE, - ReadonlyMap: TYPE, MapConstructor: TYPE, - WeakMap: TYPE, - WeakMapConstructor: TYPE, - SetIterator: TYPE, - Set: TYPE, - ReadonlySet: TYPE, - SetConstructor: TYPE, - WeakSet: TYPE, - WeakSetConstructor: TYPE, + MapIterator: TYPE, Promise: TYPE, PromiseConstructor: TYPE, - StringIterator: TYPE, + ReadonlyArray: TYPE, + ReadonlyMap: TYPE, + ReadonlySet: TYPE, + Set: TYPE, + SetConstructor: TYPE, + SetIterator: TYPE, String: TYPE, - Int8Array: TYPE, - Int8ArrayConstructor: TYPE, - Uint8Array: TYPE, - Uint8ArrayConstructor: TYPE, - Uint8ClampedArray: TYPE, - Uint8ClampedArrayConstructor: TYPE, - Int16Array: TYPE, - Int16ArrayConstructor: TYPE, + StringIterator: TYPE, + SymbolConstructor: TYPE, Uint16Array: TYPE, Uint16ArrayConstructor: TYPE, - Int32Array: TYPE, - Int32ArrayConstructor: TYPE, Uint32Array: TYPE, Uint32ArrayConstructor: TYPE, - Float32Array: TYPE, - Float32ArrayConstructor: TYPE, - Float64Array: TYPE, - Float64ArrayConstructor: TYPE, + Uint8Array: TYPE, + Uint8ArrayConstructor: TYPE, + Uint8ClampedArray: TYPE, + Uint8ClampedArrayConstructor: TYPE, + WeakMap: TYPE, + WeakMapConstructor: TYPE, + WeakSet: TYPE, + WeakSetConstructor: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2015.promise.ts b/packages/scope-manager/src/lib/es2015.promise.ts index 81c84c8a2588..cb9505d524a6 100644 --- a/packages/scope-manager/src/lib/es2015.promise.ts +++ b/packages/scope-manager/src/lib/es2015.promise.ts @@ -4,6 +4,7 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const es2015_promise = { diff --git a/packages/scope-manager/src/lib/es2015.proxy.ts b/packages/scope-manager/src/lib/es2015.proxy.ts index 520f8ee1d738..3ff781767710 100644 --- a/packages/scope-manager/src/lib/es2015.proxy.ts +++ b/packages/scope-manager/src/lib/es2015.proxy.ts @@ -4,9 +4,10 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const es2015_proxy = { - ProxyHandler: TYPE, ProxyConstructor: TYPE, + ProxyHandler: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2015.reflect.ts b/packages/scope-manager/src/lib/es2015.reflect.ts index 2de64a3172ef..1b050f533fac 100644 --- a/packages/scope-manager/src/lib/es2015.reflect.ts +++ b/packages/scope-manager/src/lib/es2015.reflect.ts @@ -4,6 +4,7 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE_VALUE } from './base-config'; export const es2015_reflect = { diff --git a/packages/scope-manager/src/lib/es2015.symbol.ts b/packages/scope-manager/src/lib/es2015.symbol.ts index e61aee0475f7..2fad4cbff8a8 100644 --- a/packages/scope-manager/src/lib/es2015.symbol.ts +++ b/packages/scope-manager/src/lib/es2015.symbol.ts @@ -4,6 +4,7 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const es2015_symbol = { diff --git a/packages/scope-manager/src/lib/es2015.symbol.wellknown.ts b/packages/scope-manager/src/lib/es2015.symbol.wellknown.ts index 67b3866e1a12..5e7aec935e13 100644 --- a/packages/scope-manager/src/lib/es2015.symbol.wellknown.ts +++ b/packages/scope-manager/src/lib/es2015.symbol.wellknown.ts @@ -4,42 +4,43 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; -import { es2015_symbol } from './es2015.symbol'; + import { TYPE } from './base-config'; +import { es2015_symbol } from './es2015.symbol'; export const es2015_symbol_wellknown = { ...es2015_symbol, - SymbolConstructor: TYPE, - Symbol: TYPE, Array: TYPE, - ReadonlyArray: TYPE, + ArrayBuffer: TYPE, + ArrayBufferConstructor: TYPE, + ArrayConstructor: TYPE, + DataView: TYPE, Date: TYPE, - Map: TYPE, - WeakMap: TYPE, - Set: TYPE, - WeakSet: TYPE, - JSON: TYPE, + Float32Array: TYPE, + Float64Array: TYPE, Function: TYPE, GeneratorFunction: TYPE, + Int16Array: TYPE, + Int32Array: TYPE, + Int8Array: TYPE, + JSON: TYPE, + Map: TYPE, + MapConstructor: TYPE, Math: TYPE, Promise: TYPE, PromiseConstructor: TYPE, + ReadonlyArray: TYPE, RegExp: TYPE, RegExpConstructor: TYPE, + Set: TYPE, + SetConstructor: TYPE, String: TYPE, - ArrayBuffer: TYPE, - DataView: TYPE, - Int8Array: TYPE, - Uint8Array: TYPE, - Uint8ClampedArray: TYPE, - Int16Array: TYPE, + Symbol: TYPE, + SymbolConstructor: TYPE, Uint16Array: TYPE, - Int32Array: TYPE, Uint32Array: TYPE, - Float32Array: TYPE, - Float64Array: TYPE, - ArrayConstructor: TYPE, - MapConstructor: TYPE, - SetConstructor: TYPE, - ArrayBufferConstructor: TYPE, + Uint8Array: TYPE, + Uint8ClampedArray: TYPE, + WeakMap: TYPE, + WeakSet: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2015.ts b/packages/scope-manager/src/lib/es2015.ts index f9dd95c00871..c044e6470cdf 100644 --- a/packages/scope-manager/src/lib/es2015.ts +++ b/packages/scope-manager/src/lib/es2015.ts @@ -4,16 +4,17 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; -import { es5 } from './es5'; -import { es2015_core } from './es2015.core'; + import { es2015_collection } from './es2015.collection'; -import { es2015_iterable } from './es2015.iterable'; +import { es2015_core } from './es2015.core'; import { es2015_generator } from './es2015.generator'; +import { es2015_iterable } from './es2015.iterable'; import { es2015_promise } from './es2015.promise'; import { es2015_proxy } from './es2015.proxy'; import { es2015_reflect } from './es2015.reflect'; import { es2015_symbol } from './es2015.symbol'; import { es2015_symbol_wellknown } from './es2015.symbol.wellknown'; +import { es5 } from './es5'; export const es2015 = { ...es5, diff --git a/packages/scope-manager/src/lib/es2016.array.include.ts b/packages/scope-manager/src/lib/es2016.array.include.ts index d16f4cd54c2b..afb8d1ac6cdf 100644 --- a/packages/scope-manager/src/lib/es2016.array.include.ts +++ b/packages/scope-manager/src/lib/es2016.array.include.ts @@ -4,18 +4,19 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const es2016_array_include = { Array: TYPE, - ReadonlyArray: TYPE, - Int8Array: TYPE, - Uint8Array: TYPE, - Uint8ClampedArray: TYPE, + Float32Array: TYPE, + Float64Array: TYPE, Int16Array: TYPE, - Uint16Array: TYPE, Int32Array: TYPE, + Int8Array: TYPE, + ReadonlyArray: TYPE, + Uint16Array: TYPE, Uint32Array: TYPE, - Float32Array: TYPE, - Float64Array: TYPE, + Uint8Array: TYPE, + Uint8ClampedArray: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2016.full.ts b/packages/scope-manager/src/lib/es2016.full.ts index d5fcae377c81..f552ff7c85c0 100644 --- a/packages/scope-manager/src/lib/es2016.full.ts +++ b/packages/scope-manager/src/lib/es2016.full.ts @@ -4,11 +4,12 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; -import { es2016 } from './es2016'; + import { dom } from './dom'; -import { webworker_importscripts } from './webworker.importscripts'; -import { scripthost } from './scripthost'; import { dom_iterable } from './dom.iterable'; +import { es2016 } from './es2016'; +import { scripthost } from './scripthost'; +import { webworker_importscripts } from './webworker.importscripts'; export const es2016_full = { ...es2016, diff --git a/packages/scope-manager/src/lib/es2016.intl.ts b/packages/scope-manager/src/lib/es2016.intl.ts index 41ebb5cc0e7a..a4a0282d79e3 100644 --- a/packages/scope-manager/src/lib/es2016.intl.ts +++ b/packages/scope-manager/src/lib/es2016.intl.ts @@ -4,6 +4,7 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE_VALUE } from './base-config'; export const es2016_intl = { diff --git a/packages/scope-manager/src/lib/es2016.ts b/packages/scope-manager/src/lib/es2016.ts index ca9d3e0649a2..012ed4300f5d 100644 --- a/packages/scope-manager/src/lib/es2016.ts +++ b/packages/scope-manager/src/lib/es2016.ts @@ -4,6 +4,7 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { es2015 } from './es2015'; import { es2016_array_include } from './es2016.array.include'; import { es2016_intl } from './es2016.intl'; diff --git a/packages/scope-manager/src/lib/es2017.date.ts b/packages/scope-manager/src/lib/es2017.date.ts index 681abffab85e..7e6ddb0bf4ff 100644 --- a/packages/scope-manager/src/lib/es2017.date.ts +++ b/packages/scope-manager/src/lib/es2017.date.ts @@ -4,6 +4,7 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const es2017_date = { diff --git a/packages/scope-manager/src/lib/es2017.full.ts b/packages/scope-manager/src/lib/es2017.full.ts index b3cc9ff80b37..1c2253575b8a 100644 --- a/packages/scope-manager/src/lib/es2017.full.ts +++ b/packages/scope-manager/src/lib/es2017.full.ts @@ -4,11 +4,12 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; -import { es2017 } from './es2017'; + import { dom } from './dom'; -import { webworker_importscripts } from './webworker.importscripts'; -import { scripthost } from './scripthost'; import { dom_iterable } from './dom.iterable'; +import { es2017 } from './es2017'; +import { scripthost } from './scripthost'; +import { webworker_importscripts } from './webworker.importscripts'; export const es2017_full = { ...es2017, diff --git a/packages/scope-manager/src/lib/es2017.intl.ts b/packages/scope-manager/src/lib/es2017.intl.ts index 614743b2cf80..2c367997a0e3 100644 --- a/packages/scope-manager/src/lib/es2017.intl.ts +++ b/packages/scope-manager/src/lib/es2017.intl.ts @@ -4,6 +4,7 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE_VALUE } from './base-config'; export const es2017_intl = { diff --git a/packages/scope-manager/src/lib/es2017.object.ts b/packages/scope-manager/src/lib/es2017.object.ts index a729bcbc5d62..59e67bedde15 100644 --- a/packages/scope-manager/src/lib/es2017.object.ts +++ b/packages/scope-manager/src/lib/es2017.object.ts @@ -4,6 +4,7 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const es2017_object = { diff --git a/packages/scope-manager/src/lib/es2017.sharedmemory.ts b/packages/scope-manager/src/lib/es2017.sharedmemory.ts index 7dec221993b9..3fb6683246c6 100644 --- a/packages/scope-manager/src/lib/es2017.sharedmemory.ts +++ b/packages/scope-manager/src/lib/es2017.sharedmemory.ts @@ -4,15 +4,16 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + +import { TYPE, TYPE_VALUE } from './base-config'; import { es2015_symbol } from './es2015.symbol'; import { es2015_symbol_wellknown } from './es2015.symbol.wellknown'; -import { TYPE, TYPE_VALUE } from './base-config'; export const es2017_sharedmemory = { ...es2015_symbol, ...es2015_symbol_wellknown, - SharedArrayBuffer: TYPE_VALUE, - SharedArrayBufferConstructor: TYPE, ArrayBufferTypes: TYPE, Atomics: TYPE_VALUE, + SharedArrayBuffer: TYPE_VALUE, + SharedArrayBufferConstructor: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2017.string.ts b/packages/scope-manager/src/lib/es2017.string.ts index 5ed4ee633cea..12c9489e0e89 100644 --- a/packages/scope-manager/src/lib/es2017.string.ts +++ b/packages/scope-manager/src/lib/es2017.string.ts @@ -4,6 +4,7 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const es2017_string = { diff --git a/packages/scope-manager/src/lib/es2017.ts b/packages/scope-manager/src/lib/es2017.ts index 1aff08897316..7545cfe88905 100644 --- a/packages/scope-manager/src/lib/es2017.ts +++ b/packages/scope-manager/src/lib/es2017.ts @@ -4,13 +4,14 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { es2016 } from './es2016'; +import { es2017_date } from './es2017.date'; +import { es2017_intl } from './es2017.intl'; import { es2017_object } from './es2017.object'; import { es2017_sharedmemory } from './es2017.sharedmemory'; import { es2017_string } from './es2017.string'; -import { es2017_intl } from './es2017.intl'; import { es2017_typedarrays } from './es2017.typedarrays'; -import { es2017_date } from './es2017.date'; export const es2017 = { ...es2016, diff --git a/packages/scope-manager/src/lib/es2017.typedarrays.ts b/packages/scope-manager/src/lib/es2017.typedarrays.ts index 9c4791da7a6d..3ba7c6d3488c 100644 --- a/packages/scope-manager/src/lib/es2017.typedarrays.ts +++ b/packages/scope-manager/src/lib/es2017.typedarrays.ts @@ -4,16 +4,17 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const es2017_typedarrays = { - Int8ArrayConstructor: TYPE, - Uint8ArrayConstructor: TYPE, - Uint8ClampedArrayConstructor: TYPE, + Float32ArrayConstructor: TYPE, + Float64ArrayConstructor: TYPE, Int16ArrayConstructor: TYPE, - Uint16ArrayConstructor: TYPE, Int32ArrayConstructor: TYPE, + Int8ArrayConstructor: TYPE, + Uint16ArrayConstructor: TYPE, Uint32ArrayConstructor: TYPE, - Float32ArrayConstructor: TYPE, - Float64ArrayConstructor: TYPE, + Uint8ArrayConstructor: TYPE, + Uint8ClampedArrayConstructor: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2018.asyncgenerator.ts b/packages/scope-manager/src/lib/es2018.asyncgenerator.ts index 7e5c0cd70555..3f5b34fac26f 100644 --- a/packages/scope-manager/src/lib/es2018.asyncgenerator.ts +++ b/packages/scope-manager/src/lib/es2018.asyncgenerator.ts @@ -4,8 +4,9 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; -import { es2018_asynciterable } from './es2018.asynciterable'; + import { TYPE } from './base-config'; +import { es2018_asynciterable } from './es2018.asynciterable'; export const es2018_asyncgenerator = { ...es2018_asynciterable, diff --git a/packages/scope-manager/src/lib/es2018.asynciterable.ts b/packages/scope-manager/src/lib/es2018.asynciterable.ts index c210a1ba9c88..fc4be3a897fe 100644 --- a/packages/scope-manager/src/lib/es2018.asynciterable.ts +++ b/packages/scope-manager/src/lib/es2018.asynciterable.ts @@ -4,16 +4,17 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; -import { es2015_symbol } from './es2015.symbol'; -import { es2015_iterable } from './es2015.iterable'; + import { TYPE } from './base-config'; +import { es2015_iterable } from './es2015.iterable'; +import { es2015_symbol } from './es2015.symbol'; export const es2018_asynciterable = { ...es2015_symbol, ...es2015_iterable, - SymbolConstructor: TYPE, - AsyncIterator: TYPE, AsyncIterable: TYPE, AsyncIterableIterator: TYPE, + AsyncIterator: TYPE, AsyncIteratorObject: TYPE, + SymbolConstructor: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2018.full.ts b/packages/scope-manager/src/lib/es2018.full.ts index addd8128cd14..6e50bbfcc3ed 100644 --- a/packages/scope-manager/src/lib/es2018.full.ts +++ b/packages/scope-manager/src/lib/es2018.full.ts @@ -4,12 +4,13 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; -import { es2018 } from './es2018'; + import { dom } from './dom'; -import { webworker_importscripts } from './webworker.importscripts'; -import { scripthost } from './scripthost'; -import { dom_iterable } from './dom.iterable'; import { dom_asynciterable } from './dom.asynciterable'; +import { dom_iterable } from './dom.iterable'; +import { es2018 } from './es2018'; +import { scripthost } from './scripthost'; +import { webworker_importscripts } from './webworker.importscripts'; export const es2018_full = { ...es2018, diff --git a/packages/scope-manager/src/lib/es2018.intl.ts b/packages/scope-manager/src/lib/es2018.intl.ts index 0ffb4f5d4c7d..8528ded2e560 100644 --- a/packages/scope-manager/src/lib/es2018.intl.ts +++ b/packages/scope-manager/src/lib/es2018.intl.ts @@ -4,6 +4,7 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE_VALUE } from './base-config'; export const es2018_intl = { diff --git a/packages/scope-manager/src/lib/es2018.promise.ts b/packages/scope-manager/src/lib/es2018.promise.ts index 115ae6e5dc2b..8fb2afac890f 100644 --- a/packages/scope-manager/src/lib/es2018.promise.ts +++ b/packages/scope-manager/src/lib/es2018.promise.ts @@ -4,6 +4,7 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const es2018_promise = { diff --git a/packages/scope-manager/src/lib/es2018.regexp.ts b/packages/scope-manager/src/lib/es2018.regexp.ts index 052c1a3c7fb0..ed0e5582ed09 100644 --- a/packages/scope-manager/src/lib/es2018.regexp.ts +++ b/packages/scope-manager/src/lib/es2018.regexp.ts @@ -4,10 +4,11 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const es2018_regexp = { - RegExpMatchArray: TYPE, - RegExpExecArray: TYPE, RegExp: TYPE, + RegExpExecArray: TYPE, + RegExpMatchArray: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2018.ts b/packages/scope-manager/src/lib/es2018.ts index bea7009c5e2e..8834e8356566 100644 --- a/packages/scope-manager/src/lib/es2018.ts +++ b/packages/scope-manager/src/lib/es2018.ts @@ -4,12 +4,13 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { es2017 } from './es2017'; -import { es2018_asynciterable } from './es2018.asynciterable'; import { es2018_asyncgenerator } from './es2018.asyncgenerator'; +import { es2018_asynciterable } from './es2018.asynciterable'; +import { es2018_intl } from './es2018.intl'; import { es2018_promise } from './es2018.promise'; import { es2018_regexp } from './es2018.regexp'; -import { es2018_intl } from './es2018.intl'; export const es2018 = { ...es2017, diff --git a/packages/scope-manager/src/lib/es2019.array.ts b/packages/scope-manager/src/lib/es2019.array.ts index 3c6c20884899..2f6eb79cec78 100644 --- a/packages/scope-manager/src/lib/es2019.array.ts +++ b/packages/scope-manager/src/lib/es2019.array.ts @@ -4,10 +4,11 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const es2019_array = { + Array: TYPE, FlatArray: TYPE, ReadonlyArray: TYPE, - Array: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2019.full.ts b/packages/scope-manager/src/lib/es2019.full.ts index 3a224ec65a73..1534395dfbdb 100644 --- a/packages/scope-manager/src/lib/es2019.full.ts +++ b/packages/scope-manager/src/lib/es2019.full.ts @@ -4,12 +4,13 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; -import { es2019 } from './es2019'; + import { dom } from './dom'; -import { webworker_importscripts } from './webworker.importscripts'; -import { scripthost } from './scripthost'; -import { dom_iterable } from './dom.iterable'; import { dom_asynciterable } from './dom.asynciterable'; +import { dom_iterable } from './dom.iterable'; +import { es2019 } from './es2019'; +import { scripthost } from './scripthost'; +import { webworker_importscripts } from './webworker.importscripts'; export const es2019_full = { ...es2019, diff --git a/packages/scope-manager/src/lib/es2019.intl.ts b/packages/scope-manager/src/lib/es2019.intl.ts index 796d95270b47..993a7041a086 100644 --- a/packages/scope-manager/src/lib/es2019.intl.ts +++ b/packages/scope-manager/src/lib/es2019.intl.ts @@ -4,6 +4,7 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE_VALUE } from './base-config'; export const es2019_intl = { diff --git a/packages/scope-manager/src/lib/es2019.object.ts b/packages/scope-manager/src/lib/es2019.object.ts index 028fc504195f..28dd803e0bd1 100644 --- a/packages/scope-manager/src/lib/es2019.object.ts +++ b/packages/scope-manager/src/lib/es2019.object.ts @@ -4,8 +4,9 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; -import { es2015_iterable } from './es2015.iterable'; + import { TYPE } from './base-config'; +import { es2015_iterable } from './es2015.iterable'; export const es2019_object = { ...es2015_iterable, diff --git a/packages/scope-manager/src/lib/es2019.string.ts b/packages/scope-manager/src/lib/es2019.string.ts index ba73161203cd..cd34b8717bca 100644 --- a/packages/scope-manager/src/lib/es2019.string.ts +++ b/packages/scope-manager/src/lib/es2019.string.ts @@ -4,6 +4,7 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const es2019_string = { diff --git a/packages/scope-manager/src/lib/es2019.symbol.ts b/packages/scope-manager/src/lib/es2019.symbol.ts index 13e2081bb561..0b06cead4528 100644 --- a/packages/scope-manager/src/lib/es2019.symbol.ts +++ b/packages/scope-manager/src/lib/es2019.symbol.ts @@ -4,6 +4,7 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const es2019_symbol = { diff --git a/packages/scope-manager/src/lib/es2019.ts b/packages/scope-manager/src/lib/es2019.ts index 6162c20cabd8..3149f1a5dec2 100644 --- a/packages/scope-manager/src/lib/es2019.ts +++ b/packages/scope-manager/src/lib/es2019.ts @@ -4,12 +4,13 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { es2018 } from './es2018'; import { es2019_array } from './es2019.array'; +import { es2019_intl } from './es2019.intl'; import { es2019_object } from './es2019.object'; import { es2019_string } from './es2019.string'; import { es2019_symbol } from './es2019.symbol'; -import { es2019_intl } from './es2019.intl'; export const es2019 = { ...es2018, diff --git a/packages/scope-manager/src/lib/es2020.bigint.ts b/packages/scope-manager/src/lib/es2020.bigint.ts index bd937a277afb..032c687a0fea 100644 --- a/packages/scope-manager/src/lib/es2020.bigint.ts +++ b/packages/scope-manager/src/lib/es2020.bigint.ts @@ -4,16 +4,17 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; -import { es2020_intl } from './es2020.intl'; + import { TYPE, TYPE_VALUE } from './base-config'; +import { es2020_intl } from './es2020.intl'; export const es2020_bigint = { ...es2020_intl, - BigIntToLocaleStringOptions: TYPE, BigInt: TYPE_VALUE, - BigIntConstructor: TYPE, BigInt64Array: TYPE_VALUE, BigInt64ArrayConstructor: TYPE, + BigIntConstructor: TYPE, + BigIntToLocaleStringOptions: TYPE, BigUint64Array: TYPE_VALUE, BigUint64ArrayConstructor: TYPE, DataView: TYPE, diff --git a/packages/scope-manager/src/lib/es2020.date.ts b/packages/scope-manager/src/lib/es2020.date.ts index 869805054f7e..ebbfd3ba1c7e 100644 --- a/packages/scope-manager/src/lib/es2020.date.ts +++ b/packages/scope-manager/src/lib/es2020.date.ts @@ -4,8 +4,9 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; -import { es2020_intl } from './es2020.intl'; + import { TYPE } from './base-config'; +import { es2020_intl } from './es2020.intl'; export const es2020_date = { ...es2020_intl, diff --git a/packages/scope-manager/src/lib/es2020.full.ts b/packages/scope-manager/src/lib/es2020.full.ts index f2581e5e3cad..cedfb0cff609 100644 --- a/packages/scope-manager/src/lib/es2020.full.ts +++ b/packages/scope-manager/src/lib/es2020.full.ts @@ -4,12 +4,13 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; -import { es2020 } from './es2020'; + import { dom } from './dom'; -import { webworker_importscripts } from './webworker.importscripts'; -import { scripthost } from './scripthost'; -import { dom_iterable } from './dom.iterable'; import { dom_asynciterable } from './dom.asynciterable'; +import { dom_iterable } from './dom.iterable'; +import { es2020 } from './es2020'; +import { scripthost } from './scripthost'; +import { webworker_importscripts } from './webworker.importscripts'; export const es2020_full = { ...es2020, diff --git a/packages/scope-manager/src/lib/es2020.intl.ts b/packages/scope-manager/src/lib/es2020.intl.ts index bcba2512291b..840d934c082d 100644 --- a/packages/scope-manager/src/lib/es2020.intl.ts +++ b/packages/scope-manager/src/lib/es2020.intl.ts @@ -4,8 +4,9 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; -import { es2018_intl } from './es2018.intl'; + import { TYPE_VALUE } from './base-config'; +import { es2018_intl } from './es2018.intl'; export const es2020_intl = { ...es2018_intl, diff --git a/packages/scope-manager/src/lib/es2020.number.ts b/packages/scope-manager/src/lib/es2020.number.ts index d79d3acdadf1..7a3b2d5f9ca7 100644 --- a/packages/scope-manager/src/lib/es2020.number.ts +++ b/packages/scope-manager/src/lib/es2020.number.ts @@ -4,8 +4,9 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; -import { es2020_intl } from './es2020.intl'; + import { TYPE } from './base-config'; +import { es2020_intl } from './es2020.intl'; export const es2020_number = { ...es2020_intl, diff --git a/packages/scope-manager/src/lib/es2020.promise.ts b/packages/scope-manager/src/lib/es2020.promise.ts index 64ffc79e4767..723106a28d53 100644 --- a/packages/scope-manager/src/lib/es2020.promise.ts +++ b/packages/scope-manager/src/lib/es2020.promise.ts @@ -4,11 +4,12 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const es2020_promise = { + PromiseConstructor: TYPE, PromiseFulfilledResult: TYPE, PromiseRejectedResult: TYPE, PromiseSettledResult: TYPE, - PromiseConstructor: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2020.sharedmemory.ts b/packages/scope-manager/src/lib/es2020.sharedmemory.ts index 4965bc462f30..64d35af18c70 100644 --- a/packages/scope-manager/src/lib/es2020.sharedmemory.ts +++ b/packages/scope-manager/src/lib/es2020.sharedmemory.ts @@ -4,6 +4,7 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const es2020_sharedmemory = { diff --git a/packages/scope-manager/src/lib/es2020.string.ts b/packages/scope-manager/src/lib/es2020.string.ts index 8ae20e92fba4..5fac2e71e077 100644 --- a/packages/scope-manager/src/lib/es2020.string.ts +++ b/packages/scope-manager/src/lib/es2020.string.ts @@ -4,8 +4,9 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; -import { es2020_symbol_wellknown } from './es2020.symbol.wellknown'; + import { TYPE } from './base-config'; +import { es2020_symbol_wellknown } from './es2020.symbol.wellknown'; export const es2020_string = { ...es2020_symbol_wellknown, diff --git a/packages/scope-manager/src/lib/es2020.symbol.wellknown.ts b/packages/scope-manager/src/lib/es2020.symbol.wellknown.ts index 893f3d2c6602..15fc777dcbb9 100644 --- a/packages/scope-manager/src/lib/es2020.symbol.wellknown.ts +++ b/packages/scope-manager/src/lib/es2020.symbol.wellknown.ts @@ -4,14 +4,15 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + +import { TYPE } from './base-config'; import { es2015_iterable } from './es2015.iterable'; import { es2015_symbol } from './es2015.symbol'; -import { TYPE } from './base-config'; export const es2020_symbol_wellknown = { ...es2015_iterable, ...es2015_symbol, - SymbolConstructor: TYPE, - RegExpStringIterator: TYPE, RegExp: TYPE, + RegExpStringIterator: TYPE, + SymbolConstructor: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2020.ts b/packages/scope-manager/src/lib/es2020.ts index 30ae92763a4a..eb0b136fe2f2 100644 --- a/packages/scope-manager/src/lib/es2020.ts +++ b/packages/scope-manager/src/lib/es2020.ts @@ -4,15 +4,16 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { es2019 } from './es2019'; import { es2020_bigint } from './es2020.bigint'; import { es2020_date } from './es2020.date'; +import { es2020_intl } from './es2020.intl'; import { es2020_number } from './es2020.number'; import { es2020_promise } from './es2020.promise'; import { es2020_sharedmemory } from './es2020.sharedmemory'; import { es2020_string } from './es2020.string'; import { es2020_symbol_wellknown } from './es2020.symbol.wellknown'; -import { es2020_intl } from './es2020.intl'; export const es2020 = { ...es2019, diff --git a/packages/scope-manager/src/lib/es2021.full.ts b/packages/scope-manager/src/lib/es2021.full.ts index b9047a323634..514af328e37c 100644 --- a/packages/scope-manager/src/lib/es2021.full.ts +++ b/packages/scope-manager/src/lib/es2021.full.ts @@ -4,12 +4,13 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; -import { es2021 } from './es2021'; + import { dom } from './dom'; -import { webworker_importscripts } from './webworker.importscripts'; -import { scripthost } from './scripthost'; -import { dom_iterable } from './dom.iterable'; import { dom_asynciterable } from './dom.asynciterable'; +import { dom_iterable } from './dom.iterable'; +import { es2021 } from './es2021'; +import { scripthost } from './scripthost'; +import { webworker_importscripts } from './webworker.importscripts'; export const es2021_full = { ...es2021, diff --git a/packages/scope-manager/src/lib/es2021.intl.ts b/packages/scope-manager/src/lib/es2021.intl.ts index c44967c56993..b93a4c6108a7 100644 --- a/packages/scope-manager/src/lib/es2021.intl.ts +++ b/packages/scope-manager/src/lib/es2021.intl.ts @@ -4,6 +4,7 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE_VALUE } from './base-config'; export const es2021_intl = { diff --git a/packages/scope-manager/src/lib/es2021.promise.ts b/packages/scope-manager/src/lib/es2021.promise.ts index ce63bedb4f88..e14ed9218633 100644 --- a/packages/scope-manager/src/lib/es2021.promise.ts +++ b/packages/scope-manager/src/lib/es2021.promise.ts @@ -4,6 +4,7 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE, TYPE_VALUE } from './base-config'; export const es2021_promise = { diff --git a/packages/scope-manager/src/lib/es2021.string.ts b/packages/scope-manager/src/lib/es2021.string.ts index b02bcd1eaee6..d5f73f5c6b2b 100644 --- a/packages/scope-manager/src/lib/es2021.string.ts +++ b/packages/scope-manager/src/lib/es2021.string.ts @@ -4,6 +4,7 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const es2021_string = { diff --git a/packages/scope-manager/src/lib/es2021.ts b/packages/scope-manager/src/lib/es2021.ts index c9a70c02f405..4339d22bf547 100644 --- a/packages/scope-manager/src/lib/es2021.ts +++ b/packages/scope-manager/src/lib/es2021.ts @@ -4,11 +4,12 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { es2020 } from './es2020'; +import { es2021_intl } from './es2021.intl'; import { es2021_promise } from './es2021.promise'; import { es2021_string } from './es2021.string'; import { es2021_weakref } from './es2021.weakref'; -import { es2021_intl } from './es2021.intl'; export const es2021 = { ...es2020, diff --git a/packages/scope-manager/src/lib/es2021.weakref.ts b/packages/scope-manager/src/lib/es2021.weakref.ts index 742d76df1c15..93aa18db7a90 100644 --- a/packages/scope-manager/src/lib/es2021.weakref.ts +++ b/packages/scope-manager/src/lib/es2021.weakref.ts @@ -4,11 +4,12 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE, TYPE_VALUE } from './base-config'; export const es2021_weakref = { - WeakRef: TYPE_VALUE, - WeakRefConstructor: TYPE, FinalizationRegistry: TYPE_VALUE, FinalizationRegistryConstructor: TYPE, + WeakRef: TYPE_VALUE, + WeakRefConstructor: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2022.array.ts b/packages/scope-manager/src/lib/es2022.array.ts index a533753be207..ed14bc4430aa 100644 --- a/packages/scope-manager/src/lib/es2022.array.ts +++ b/packages/scope-manager/src/lib/es2022.array.ts @@ -4,20 +4,21 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const es2022_array = { Array: TYPE, - ReadonlyArray: TYPE, - Int8Array: TYPE, - Uint8Array: TYPE, - Uint8ClampedArray: TYPE, + BigInt64Array: TYPE, + BigUint64Array: TYPE, + Float32Array: TYPE, + Float64Array: TYPE, Int16Array: TYPE, - Uint16Array: TYPE, Int32Array: TYPE, + Int8Array: TYPE, + ReadonlyArray: TYPE, + Uint16Array: TYPE, Uint32Array: TYPE, - Float32Array: TYPE, - Float64Array: TYPE, - BigInt64Array: TYPE, - BigUint64Array: TYPE, + Uint8Array: TYPE, + Uint8ClampedArray: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2022.error.ts b/packages/scope-manager/src/lib/es2022.error.ts index e23bc8a779aa..8f7225ac1b3a 100644 --- a/packages/scope-manager/src/lib/es2022.error.ts +++ b/packages/scope-manager/src/lib/es2022.error.ts @@ -4,17 +4,18 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const es2022_error = { - ErrorOptions: TYPE, + AggregateErrorConstructor: TYPE, Error: TYPE, ErrorConstructor: TYPE, + ErrorOptions: TYPE, EvalErrorConstructor: TYPE, RangeErrorConstructor: TYPE, ReferenceErrorConstructor: TYPE, SyntaxErrorConstructor: TYPE, TypeErrorConstructor: TYPE, URIErrorConstructor: TYPE, - AggregateErrorConstructor: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2022.full.ts b/packages/scope-manager/src/lib/es2022.full.ts index 8ee6fe7ec7b0..f6b83e9f5a6b 100644 --- a/packages/scope-manager/src/lib/es2022.full.ts +++ b/packages/scope-manager/src/lib/es2022.full.ts @@ -4,12 +4,13 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; -import { es2022 } from './es2022'; + import { dom } from './dom'; -import { webworker_importscripts } from './webworker.importscripts'; -import { scripthost } from './scripthost'; -import { dom_iterable } from './dom.iterable'; import { dom_asynciterable } from './dom.asynciterable'; +import { dom_iterable } from './dom.iterable'; +import { es2022 } from './es2022'; +import { scripthost } from './scripthost'; +import { webworker_importscripts } from './webworker.importscripts'; export const es2022_full = { ...es2022, diff --git a/packages/scope-manager/src/lib/es2022.intl.ts b/packages/scope-manager/src/lib/es2022.intl.ts index 0bacc1cd58d4..4300f78f1a5e 100644 --- a/packages/scope-manager/src/lib/es2022.intl.ts +++ b/packages/scope-manager/src/lib/es2022.intl.ts @@ -4,6 +4,7 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE_VALUE } from './base-config'; export const es2022_intl = { diff --git a/packages/scope-manager/src/lib/es2022.object.ts b/packages/scope-manager/src/lib/es2022.object.ts index 37cb6296ac81..7d84d496f3f0 100644 --- a/packages/scope-manager/src/lib/es2022.object.ts +++ b/packages/scope-manager/src/lib/es2022.object.ts @@ -4,6 +4,7 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const es2022_object = { diff --git a/packages/scope-manager/src/lib/es2022.regexp.ts b/packages/scope-manager/src/lib/es2022.regexp.ts index d184e219e9b5..e8f4c983b399 100644 --- a/packages/scope-manager/src/lib/es2022.regexp.ts +++ b/packages/scope-manager/src/lib/es2022.regexp.ts @@ -4,11 +4,12 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const es2022_regexp = { - RegExpMatchArray: TYPE, + RegExp: TYPE, RegExpExecArray: TYPE, RegExpIndicesArray: TYPE, - RegExp: TYPE, + RegExpMatchArray: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2022.sharedmemory.ts b/packages/scope-manager/src/lib/es2022.sharedmemory.ts index 41696abdc52c..70fdc6bcdf4a 100644 --- a/packages/scope-manager/src/lib/es2022.sharedmemory.ts +++ b/packages/scope-manager/src/lib/es2022.sharedmemory.ts @@ -4,6 +4,7 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const es2022_sharedmemory = { diff --git a/packages/scope-manager/src/lib/es2022.string.ts b/packages/scope-manager/src/lib/es2022.string.ts index 80aa6e9a8a0e..c7e523d495b1 100644 --- a/packages/scope-manager/src/lib/es2022.string.ts +++ b/packages/scope-manager/src/lib/es2022.string.ts @@ -4,6 +4,7 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const es2022_string = { diff --git a/packages/scope-manager/src/lib/es2022.ts b/packages/scope-manager/src/lib/es2022.ts index c109282b6897..aa55b2f1b432 100644 --- a/packages/scope-manager/src/lib/es2022.ts +++ b/packages/scope-manager/src/lib/es2022.ts @@ -4,14 +4,15 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { es2021 } from './es2021'; import { es2022_array } from './es2022.array'; import { es2022_error } from './es2022.error'; import { es2022_intl } from './es2022.intl'; import { es2022_object } from './es2022.object'; +import { es2022_regexp } from './es2022.regexp'; import { es2022_sharedmemory } from './es2022.sharedmemory'; import { es2022_string } from './es2022.string'; -import { es2022_regexp } from './es2022.regexp'; export const es2022 = { ...es2021, diff --git a/packages/scope-manager/src/lib/es2023.array.ts b/packages/scope-manager/src/lib/es2023.array.ts index 493c23238414..02a5f2ef521c 100644 --- a/packages/scope-manager/src/lib/es2023.array.ts +++ b/packages/scope-manager/src/lib/es2023.array.ts @@ -4,20 +4,21 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const es2023_array = { Array: TYPE, - ReadonlyArray: TYPE, - Int8Array: TYPE, - Uint8Array: TYPE, - Uint8ClampedArray: TYPE, + BigInt64Array: TYPE, + BigUint64Array: TYPE, + Float32Array: TYPE, + Float64Array: TYPE, Int16Array: TYPE, - Uint16Array: TYPE, Int32Array: TYPE, + Int8Array: TYPE, + ReadonlyArray: TYPE, + Uint16Array: TYPE, Uint32Array: TYPE, - Float32Array: TYPE, - Float64Array: TYPE, - BigInt64Array: TYPE, - BigUint64Array: TYPE, + Uint8Array: TYPE, + Uint8ClampedArray: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2023.collection.ts b/packages/scope-manager/src/lib/es2023.collection.ts index b5ea8e71c9b2..c555fc4553c2 100644 --- a/packages/scope-manager/src/lib/es2023.collection.ts +++ b/packages/scope-manager/src/lib/es2023.collection.ts @@ -4,6 +4,7 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const es2023_collection = { diff --git a/packages/scope-manager/src/lib/es2023.full.ts b/packages/scope-manager/src/lib/es2023.full.ts index f8713f0f4092..851eaa7f801d 100644 --- a/packages/scope-manager/src/lib/es2023.full.ts +++ b/packages/scope-manager/src/lib/es2023.full.ts @@ -4,12 +4,13 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; -import { es2023 } from './es2023'; + import { dom } from './dom'; -import { webworker_importscripts } from './webworker.importscripts'; -import { scripthost } from './scripthost'; -import { dom_iterable } from './dom.iterable'; import { dom_asynciterable } from './dom.asynciterable'; +import { dom_iterable } from './dom.iterable'; +import { es2023 } from './es2023'; +import { scripthost } from './scripthost'; +import { webworker_importscripts } from './webworker.importscripts'; export const es2023_full = { ...es2023, diff --git a/packages/scope-manager/src/lib/es2023.intl.ts b/packages/scope-manager/src/lib/es2023.intl.ts index 33f94aa18f02..0a39cbacd8e5 100644 --- a/packages/scope-manager/src/lib/es2023.intl.ts +++ b/packages/scope-manager/src/lib/es2023.intl.ts @@ -4,6 +4,7 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE_VALUE } from './base-config'; export const es2023_intl = { diff --git a/packages/scope-manager/src/lib/es2023.ts b/packages/scope-manager/src/lib/es2023.ts index 098ab48dbb11..9d8ef483d95c 100644 --- a/packages/scope-manager/src/lib/es2023.ts +++ b/packages/scope-manager/src/lib/es2023.ts @@ -4,6 +4,7 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { es2022 } from './es2022'; import { es2023_array } from './es2023.array'; import { es2023_collection } from './es2023.collection'; diff --git a/packages/scope-manager/src/lib/es5.ts b/packages/scope-manager/src/lib/es5.ts index 9cc47710e60d..47cd0f0e9861 100644 --- a/packages/scope-manager/src/lib/es5.ts +++ b/packages/scope-manager/src/lib/es5.ts @@ -4,114 +4,115 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + +import { TYPE, TYPE_VALUE } from './base-config'; import { decorators } from './decorators'; import { decorators_legacy } from './decorators.legacy'; -import { TYPE, TYPE_VALUE } from './base-config'; export const es5 = { ...decorators, ...decorators_legacy, - Symbol: TYPE, - PropertyKey: TYPE, - PropertyDescriptor: TYPE, - PropertyDescriptorMap: TYPE, - Object: TYPE_VALUE, - ObjectConstructor: TYPE, - Function: TYPE_VALUE, - FunctionConstructor: TYPE, - ThisParameterType: TYPE, - OmitThisParameter: TYPE, - CallableFunction: TYPE, - NewableFunction: TYPE, - IArguments: TYPE, - String: TYPE_VALUE, - StringConstructor: TYPE, + Array: TYPE_VALUE, + ArrayBuffer: TYPE_VALUE, + ArrayBufferConstructor: TYPE, + ArrayBufferLike: TYPE, + ArrayBufferTypes: TYPE, + ArrayBufferView: TYPE, + ArrayConstructor: TYPE, + ArrayLike: TYPE, + Awaited: TYPE, Boolean: TYPE_VALUE, BooleanConstructor: TYPE, - Number: TYPE_VALUE, - NumberConstructor: TYPE, - TemplateStringsArray: TYPE, - ImportMeta: TYPE, - ImportCallOptions: TYPE, - ImportAssertions: TYPE, - ImportAttributes: TYPE, - Math: TYPE_VALUE, + CallableFunction: TYPE, + Capitalize: TYPE, + ConcatArray: TYPE, + ConstructorParameters: TYPE, + DataView: TYPE_VALUE, + DataViewConstructor: TYPE, Date: TYPE_VALUE, DateConstructor: TYPE, - RegExpMatchArray: TYPE, - RegExpExecArray: TYPE, - RegExp: TYPE_VALUE, - RegExpConstructor: TYPE, Error: TYPE_VALUE, ErrorConstructor: TYPE, EvalError: TYPE_VALUE, EvalErrorConstructor: TYPE, + Exclude: TYPE, + Extract: TYPE, + Float32Array: TYPE_VALUE, + Float32ArrayConstructor: TYPE, + Float64Array: TYPE_VALUE, + Float64ArrayConstructor: TYPE, + Function: TYPE_VALUE, + FunctionConstructor: TYPE, + IArguments: TYPE, + ImportAssertions: TYPE, + ImportAttributes: TYPE, + ImportCallOptions: TYPE, + ImportMeta: TYPE, + InstanceType: TYPE, + Int16Array: TYPE_VALUE, + Int16ArrayConstructor: TYPE, + Int32Array: TYPE_VALUE, + Int32ArrayConstructor: TYPE, + Int8Array: TYPE_VALUE, + Int8ArrayConstructor: TYPE, + Intl: TYPE_VALUE, + JSON: TYPE_VALUE, + Lowercase: TYPE, + Math: TYPE_VALUE, + NewableFunction: TYPE, + NoInfer: TYPE, + NonNullable: TYPE, + Number: TYPE_VALUE, + NumberConstructor: TYPE, + Object: TYPE_VALUE, + ObjectConstructor: TYPE, + Omit: TYPE, + OmitThisParameter: TYPE, + Parameters: TYPE, + Partial: TYPE, + Pick: TYPE, + Promise: TYPE, + PromiseConstructorLike: TYPE, + PromiseLike: TYPE, + PropertyDescriptor: TYPE, + PropertyDescriptorMap: TYPE, + PropertyKey: TYPE, RangeError: TYPE_VALUE, RangeErrorConstructor: TYPE, + Readonly: TYPE, + ReadonlyArray: TYPE, + Record: TYPE, ReferenceError: TYPE_VALUE, ReferenceErrorConstructor: TYPE, + RegExp: TYPE_VALUE, + RegExpConstructor: TYPE, + RegExpExecArray: TYPE, + RegExpMatchArray: TYPE, + Required: TYPE, + ReturnType: TYPE, + String: TYPE_VALUE, + StringConstructor: TYPE, + Symbol: TYPE, SyntaxError: TYPE_VALUE, SyntaxErrorConstructor: TYPE, + TemplateStringsArray: TYPE, + ThisParameterType: TYPE, + ThisType: TYPE, + TypedPropertyDescriptor: TYPE, TypeError: TYPE_VALUE, TypeErrorConstructor: TYPE, - URIError: TYPE_VALUE, - URIErrorConstructor: TYPE, - JSON: TYPE_VALUE, - ReadonlyArray: TYPE, - ConcatArray: TYPE, - Array: TYPE_VALUE, - ArrayConstructor: TYPE, - TypedPropertyDescriptor: TYPE, - PromiseConstructorLike: TYPE, - PromiseLike: TYPE, - Promise: TYPE, - Awaited: TYPE, - ArrayLike: TYPE, - Partial: TYPE, - Required: TYPE, - Readonly: TYPE, - Pick: TYPE, - Record: TYPE, - Exclude: TYPE, - Extract: TYPE, - Omit: TYPE, - NonNullable: TYPE, - Parameters: TYPE, - ConstructorParameters: TYPE, - ReturnType: TYPE, - InstanceType: TYPE, - Uppercase: TYPE, - Lowercase: TYPE, - Capitalize: TYPE, - Uncapitalize: TYPE, - NoInfer: TYPE, - ThisType: TYPE, - WeakKeyTypes: TYPE, - WeakKey: TYPE, - ArrayBuffer: TYPE_VALUE, - ArrayBufferTypes: TYPE, - ArrayBufferLike: TYPE, - ArrayBufferConstructor: TYPE, - ArrayBufferView: TYPE, - DataView: TYPE_VALUE, - DataViewConstructor: TYPE, - Int8Array: TYPE_VALUE, - Int8ArrayConstructor: TYPE, - Uint8Array: TYPE_VALUE, - Uint8ArrayConstructor: TYPE, - Uint8ClampedArray: TYPE_VALUE, - Uint8ClampedArrayConstructor: TYPE, - Int16Array: TYPE_VALUE, - Int16ArrayConstructor: TYPE, Uint16Array: TYPE_VALUE, Uint16ArrayConstructor: TYPE, - Int32Array: TYPE_VALUE, - Int32ArrayConstructor: TYPE, Uint32Array: TYPE_VALUE, Uint32ArrayConstructor: TYPE, - Float32Array: TYPE_VALUE, - Float32ArrayConstructor: TYPE, - Float64Array: TYPE_VALUE, - Float64ArrayConstructor: TYPE, - Intl: TYPE_VALUE, + Uint8Array: TYPE_VALUE, + Uint8ArrayConstructor: TYPE, + Uint8ClampedArray: TYPE_VALUE, + Uint8ClampedArrayConstructor: TYPE, + Uncapitalize: TYPE, + Uppercase: TYPE, + URIError: TYPE_VALUE, + URIErrorConstructor: TYPE, + WeakKey: TYPE, + WeakKeyTypes: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es6.ts b/packages/scope-manager/src/lib/es6.ts index d6c07a04f424..816b1c684448 100644 --- a/packages/scope-manager/src/lib/es6.ts +++ b/packages/scope-manager/src/lib/es6.ts @@ -4,16 +4,17 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; -import { es5 } from './es5'; -import { es2015_core } from './es2015.core'; + import { es2015_collection } from './es2015.collection'; -import { es2015_iterable } from './es2015.iterable'; +import { es2015_core } from './es2015.core'; import { es2015_generator } from './es2015.generator'; +import { es2015_iterable } from './es2015.iterable'; import { es2015_promise } from './es2015.promise'; import { es2015_proxy } from './es2015.proxy'; import { es2015_reflect } from './es2015.reflect'; import { es2015_symbol } from './es2015.symbol'; import { es2015_symbol_wellknown } from './es2015.symbol.wellknown'; +import { es5 } from './es5'; export const es6 = { ...es5, diff --git a/packages/scope-manager/src/lib/es7.ts b/packages/scope-manager/src/lib/es7.ts index a80e3b82d468..ed952867b22d 100644 --- a/packages/scope-manager/src/lib/es7.ts +++ b/packages/scope-manager/src/lib/es7.ts @@ -4,6 +4,7 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { es2015 } from './es2015'; import { es2016_array_include } from './es2016.array.include'; import { es2016_intl } from './es2016.intl'; diff --git a/packages/scope-manager/src/lib/esnext.array.ts b/packages/scope-manager/src/lib/esnext.array.ts index 2187ffa9d4b8..063063640a3d 100644 --- a/packages/scope-manager/src/lib/esnext.array.ts +++ b/packages/scope-manager/src/lib/esnext.array.ts @@ -4,6 +4,7 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const esnext_array = { diff --git a/packages/scope-manager/src/lib/esnext.asynciterable.ts b/packages/scope-manager/src/lib/esnext.asynciterable.ts index dc8e1d405f9f..137b63ece500 100644 --- a/packages/scope-manager/src/lib/esnext.asynciterable.ts +++ b/packages/scope-manager/src/lib/esnext.asynciterable.ts @@ -4,16 +4,17 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; -import { es2015_symbol } from './es2015.symbol'; -import { es2015_iterable } from './es2015.iterable'; + import { TYPE } from './base-config'; +import { es2015_iterable } from './es2015.iterable'; +import { es2015_symbol } from './es2015.symbol'; export const esnext_asynciterable = { ...es2015_symbol, ...es2015_iterable, - SymbolConstructor: TYPE, - AsyncIterator: TYPE, AsyncIterable: TYPE, AsyncIterableIterator: TYPE, + AsyncIterator: TYPE, AsyncIteratorObject: TYPE, + SymbolConstructor: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/esnext.bigint.ts b/packages/scope-manager/src/lib/esnext.bigint.ts index cb61daacd9a0..f74b181ee487 100644 --- a/packages/scope-manager/src/lib/esnext.bigint.ts +++ b/packages/scope-manager/src/lib/esnext.bigint.ts @@ -4,16 +4,17 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; -import { es2020_intl } from './es2020.intl'; + import { TYPE, TYPE_VALUE } from './base-config'; +import { es2020_intl } from './es2020.intl'; export const esnext_bigint = { ...es2020_intl, - BigIntToLocaleStringOptions: TYPE, BigInt: TYPE_VALUE, - BigIntConstructor: TYPE, BigInt64Array: TYPE_VALUE, BigInt64ArrayConstructor: TYPE, + BigIntConstructor: TYPE, + BigIntToLocaleStringOptions: TYPE, BigUint64Array: TYPE_VALUE, BigUint64ArrayConstructor: TYPE, DataView: TYPE, diff --git a/packages/scope-manager/src/lib/esnext.collection.ts b/packages/scope-manager/src/lib/esnext.collection.ts index 95ca17039a0f..a4ac9daa3c81 100644 --- a/packages/scope-manager/src/lib/esnext.collection.ts +++ b/packages/scope-manager/src/lib/esnext.collection.ts @@ -4,11 +4,12 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const esnext_collection = { MapConstructor: TYPE, + ReadonlySet: TYPE, ReadonlySetLike: TYPE, Set: TYPE, - ReadonlySet: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/esnext.decorators.ts b/packages/scope-manager/src/lib/esnext.decorators.ts index 8ee06a124fad..a56218bbcac7 100644 --- a/packages/scope-manager/src/lib/esnext.decorators.ts +++ b/packages/scope-manager/src/lib/esnext.decorators.ts @@ -4,13 +4,14 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; -import { es2015_symbol } from './es2015.symbol'; -import { decorators } from './decorators'; + import { TYPE } from './base-config'; +import { decorators } from './decorators'; +import { es2015_symbol } from './es2015.symbol'; export const esnext_decorators = { ...es2015_symbol, ...decorators, - SymbolConstructor: TYPE, Function: TYPE, + SymbolConstructor: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/esnext.disposable.ts b/packages/scope-manager/src/lib/esnext.disposable.ts index 0c3950af2e86..cfb4363d0230 100644 --- a/packages/scope-manager/src/lib/esnext.disposable.ts +++ b/packages/scope-manager/src/lib/esnext.disposable.ts @@ -4,24 +4,25 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; -import { es2015_symbol } from './es2015.symbol'; + +import { TYPE, TYPE_VALUE } from './base-config'; import { es2015_iterable } from './es2015.iterable'; +import { es2015_symbol } from './es2015.symbol'; import { es2018_asynciterable } from './es2018.asynciterable'; -import { TYPE, TYPE_VALUE } from './base-config'; export const esnext_disposable = { ...es2015_symbol, ...es2015_iterable, ...es2018_asynciterable, - SymbolConstructor: TYPE, - Disposable: TYPE, AsyncDisposable: TYPE, - SuppressedError: TYPE_VALUE, - SuppressedErrorConstructor: TYPE, - DisposableStack: TYPE_VALUE, - DisposableStackConstructor: TYPE, AsyncDisposableStack: TYPE_VALUE, AsyncDisposableStackConstructor: TYPE, - IteratorObject: TYPE, AsyncIteratorObject: TYPE, + Disposable: TYPE, + DisposableStack: TYPE_VALUE, + DisposableStackConstructor: TYPE, + IteratorObject: TYPE, + SuppressedError: TYPE_VALUE, + SuppressedErrorConstructor: TYPE, + SymbolConstructor: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/esnext.full.ts b/packages/scope-manager/src/lib/esnext.full.ts index 56f94ae67fff..82f1f430cd41 100644 --- a/packages/scope-manager/src/lib/esnext.full.ts +++ b/packages/scope-manager/src/lib/esnext.full.ts @@ -4,12 +4,13 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; -import { esnext } from './esnext'; + import { dom } from './dom'; -import { webworker_importscripts } from './webworker.importscripts'; -import { scripthost } from './scripthost'; -import { dom_iterable } from './dom.iterable'; import { dom_asynciterable } from './dom.asynciterable'; +import { dom_iterable } from './dom.iterable'; +import { esnext } from './esnext'; +import { scripthost } from './scripthost'; +import { webworker_importscripts } from './webworker.importscripts'; export const esnext_full = { ...esnext, diff --git a/packages/scope-manager/src/lib/esnext.intl.ts b/packages/scope-manager/src/lib/esnext.intl.ts index 876bbb1d47c1..5a0de1891a15 100644 --- a/packages/scope-manager/src/lib/esnext.intl.ts +++ b/packages/scope-manager/src/lib/esnext.intl.ts @@ -4,6 +4,7 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE_VALUE } from './base-config'; export const esnext_intl = { diff --git a/packages/scope-manager/src/lib/esnext.iterator.ts b/packages/scope-manager/src/lib/esnext.iterator.ts index 48219fb55616..daf2305ebcb9 100644 --- a/packages/scope-manager/src/lib/esnext.iterator.ts +++ b/packages/scope-manager/src/lib/esnext.iterator.ts @@ -4,8 +4,9 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; -import { es2015_iterable } from './es2015.iterable'; + import { TYPE, TYPE_VALUE } from './base-config'; +import { es2015_iterable } from './es2015.iterable'; export const esnext_iterator = { ...es2015_iterable, diff --git a/packages/scope-manager/src/lib/esnext.object.ts b/packages/scope-manager/src/lib/esnext.object.ts index 8cfe09a5b062..7364d730c353 100644 --- a/packages/scope-manager/src/lib/esnext.object.ts +++ b/packages/scope-manager/src/lib/esnext.object.ts @@ -4,6 +4,7 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const esnext_object = { diff --git a/packages/scope-manager/src/lib/esnext.promise.ts b/packages/scope-manager/src/lib/esnext.promise.ts index d53e53fb2adf..ee4be767a01d 100644 --- a/packages/scope-manager/src/lib/esnext.promise.ts +++ b/packages/scope-manager/src/lib/esnext.promise.ts @@ -4,9 +4,10 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const esnext_promise = { - PromiseWithResolvers: TYPE, PromiseConstructor: TYPE, + PromiseWithResolvers: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/esnext.regexp.ts b/packages/scope-manager/src/lib/esnext.regexp.ts index 48a11cf58225..cefee0172d38 100644 --- a/packages/scope-manager/src/lib/esnext.regexp.ts +++ b/packages/scope-manager/src/lib/esnext.regexp.ts @@ -4,6 +4,7 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const esnext_regexp = { diff --git a/packages/scope-manager/src/lib/esnext.string.ts b/packages/scope-manager/src/lib/esnext.string.ts index c72afe37395a..613a57c915aa 100644 --- a/packages/scope-manager/src/lib/esnext.string.ts +++ b/packages/scope-manager/src/lib/esnext.string.ts @@ -4,6 +4,7 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const esnext_string = { diff --git a/packages/scope-manager/src/lib/esnext.symbol.ts b/packages/scope-manager/src/lib/esnext.symbol.ts index 1a9f956c8a43..a51f83ff23c4 100644 --- a/packages/scope-manager/src/lib/esnext.symbol.ts +++ b/packages/scope-manager/src/lib/esnext.symbol.ts @@ -4,6 +4,7 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const esnext_symbol = { diff --git a/packages/scope-manager/src/lib/esnext.ts b/packages/scope-manager/src/lib/esnext.ts index 8edde8270d3f..c3e76d8bd05d 100644 --- a/packages/scope-manager/src/lib/esnext.ts +++ b/packages/scope-manager/src/lib/esnext.ts @@ -4,17 +4,18 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { es2023 } from './es2023'; -import { esnext_intl } from './esnext.intl'; +import { esnext_array } from './esnext.array'; +import { esnext_collection } from './esnext.collection'; import { esnext_decorators } from './esnext.decorators'; import { esnext_disposable } from './esnext.disposable'; -import { esnext_promise } from './esnext.promise'; +import { esnext_intl } from './esnext.intl'; +import { esnext_iterator } from './esnext.iterator'; import { esnext_object } from './esnext.object'; -import { esnext_collection } from './esnext.collection'; -import { esnext_array } from './esnext.array'; +import { esnext_promise } from './esnext.promise'; import { esnext_regexp } from './esnext.regexp'; import { esnext_string } from './esnext.string'; -import { esnext_iterator } from './esnext.iterator'; export const esnext = { ...es2023, diff --git a/packages/scope-manager/src/lib/esnext.weakref.ts b/packages/scope-manager/src/lib/esnext.weakref.ts index 1827ccce8deb..85447e3a02c6 100644 --- a/packages/scope-manager/src/lib/esnext.weakref.ts +++ b/packages/scope-manager/src/lib/esnext.weakref.ts @@ -4,11 +4,12 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE, TYPE_VALUE } from './base-config'; export const esnext_weakref = { - WeakRef: TYPE_VALUE, - WeakRefConstructor: TYPE, FinalizationRegistry: TYPE_VALUE, FinalizationRegistryConstructor: TYPE, + WeakRef: TYPE_VALUE, + WeakRefConstructor: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/index.ts b/packages/scope-manager/src/lib/index.ts index a18367397259..181042154bc1 100644 --- a/packages/scope-manager/src/lib/index.ts +++ b/packages/scope-manager/src/lib/index.ts @@ -3,29 +3,14 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib repo -import { es5 } from './es5'; -import { es6 } from './es6'; -import { es2015 } from './es2015'; -import { es7 } from './es7'; -import { es2016 } from './es2016'; -import { es2017 } from './es2017'; -import { es2018 } from './es2018'; -import { es2019 } from './es2019'; -import { es2020 } from './es2020'; -import { es2021 } from './es2021'; -import { es2022 } from './es2022'; -import { es2023 } from './es2023'; -import { esnext } from './esnext'; +import { decorators } from './decorators'; +import { decorators_legacy } from './decorators.legacy'; import { dom } from './dom'; -import { dom_iterable } from './dom.iterable'; import { dom_asynciterable } from './dom.asynciterable'; -import { webworker } from './webworker'; -import { webworker_importscripts } from './webworker.importscripts'; -import { webworker_iterable } from './webworker.iterable'; -import { webworker_asynciterable } from './webworker.asynciterable'; -import { scripthost } from './scripthost'; -import { es2015_core } from './es2015.core'; +import { dom_iterable } from './dom.iterable'; +import { es2015 } from './es2015'; import { es2015_collection } from './es2015.collection'; +import { es2015_core } from './es2015.core'; import { es2015_generator } from './es2015.generator'; import { es2015_iterable } from './es2015.iterable'; import { es2015_promise } from './es2015.promise'; @@ -33,97 +18,97 @@ import { es2015_proxy } from './es2015.proxy'; import { es2015_reflect } from './es2015.reflect'; import { es2015_symbol } from './es2015.symbol'; import { es2015_symbol_wellknown } from './es2015.symbol.wellknown'; +import { es2016 } from './es2016'; import { es2016_array_include } from './es2016.array.include'; +import { es2016_full } from './es2016.full'; import { es2016_intl } from './es2016.intl'; +import { es2017 } from './es2017'; import { es2017_date } from './es2017.date'; +import { es2017_full } from './es2017.full'; +import { es2017_intl } from './es2017.intl'; import { es2017_object } from './es2017.object'; import { es2017_sharedmemory } from './es2017.sharedmemory'; import { es2017_string } from './es2017.string'; -import { es2017_intl } from './es2017.intl'; import { es2017_typedarrays } from './es2017.typedarrays'; +import { es2018 } from './es2018'; import { es2018_asyncgenerator } from './es2018.asyncgenerator'; import { es2018_asynciterable } from './es2018.asynciterable'; +import { es2018_full } from './es2018.full'; import { es2018_intl } from './es2018.intl'; import { es2018_promise } from './es2018.promise'; import { es2018_regexp } from './es2018.regexp'; +import { es2019 } from './es2019'; import { es2019_array } from './es2019.array'; +import { es2019_full } from './es2019.full'; +import { es2019_intl } from './es2019.intl'; import { es2019_object } from './es2019.object'; import { es2019_string } from './es2019.string'; import { es2019_symbol } from './es2019.symbol'; -import { es2019_intl } from './es2019.intl'; +import { es2020 } from './es2020'; import { es2020_bigint } from './es2020.bigint'; import { es2020_date } from './es2020.date'; +import { es2020_full } from './es2020.full'; +import { es2020_intl } from './es2020.intl'; +import { es2020_number } from './es2020.number'; import { es2020_promise } from './es2020.promise'; import { es2020_sharedmemory } from './es2020.sharedmemory'; import { es2020_string } from './es2020.string'; import { es2020_symbol_wellknown } from './es2020.symbol.wellknown'; -import { es2020_intl } from './es2020.intl'; -import { es2020_number } from './es2020.number'; +import { es2021 } from './es2021'; +import { es2021_full } from './es2021.full'; +import { es2021_intl } from './es2021.intl'; import { es2021_promise } from './es2021.promise'; import { es2021_string } from './es2021.string'; import { es2021_weakref } from './es2021.weakref'; -import { es2021_intl } from './es2021.intl'; +import { es2022 } from './es2022'; import { es2022_array } from './es2022.array'; import { es2022_error } from './es2022.error'; +import { es2022_full } from './es2022.full'; import { es2022_intl } from './es2022.intl'; import { es2022_object } from './es2022.object'; +import { es2022_regexp } from './es2022.regexp'; import { es2022_sharedmemory } from './es2022.sharedmemory'; import { es2022_string } from './es2022.string'; -import { es2022_regexp } from './es2022.regexp'; +import { es2023 } from './es2023'; import { es2023_array } from './es2023.array'; import { es2023_collection } from './es2023.collection'; +import { es2023_full } from './es2023.full'; import { es2023_intl } from './es2023.intl'; +import { es5 } from './es5'; +import { es6 } from './es6'; +import { es7 } from './es7'; +import { esnext } from './esnext'; import { esnext_array } from './esnext.array'; -import { esnext_collection } from './esnext.collection'; -import { esnext_symbol } from './esnext.symbol'; import { esnext_asynciterable } from './esnext.asynciterable'; -import { esnext_intl } from './esnext.intl'; -import { esnext_disposable } from './esnext.disposable'; import { esnext_bigint } from './esnext.bigint'; -import { esnext_string } from './esnext.string'; -import { esnext_promise } from './esnext.promise'; -import { esnext_weakref } from './esnext.weakref'; +import { esnext_collection } from './esnext.collection'; import { esnext_decorators } from './esnext.decorators'; +import { esnext_disposable } from './esnext.disposable'; +import { esnext_full } from './esnext.full'; +import { esnext_intl } from './esnext.intl'; +import { esnext_iterator } from './esnext.iterator'; import { esnext_object } from './esnext.object'; +import { esnext_promise } from './esnext.promise'; import { esnext_regexp } from './esnext.regexp'; -import { esnext_iterator } from './esnext.iterator'; -import { decorators } from './decorators'; -import { decorators_legacy } from './decorators.legacy'; -import { es2016_full } from './es2016.full'; -import { es2017_full } from './es2017.full'; -import { es2018_full } from './es2018.full'; -import { es2019_full } from './es2019.full'; -import { es2020_full } from './es2020.full'; -import { es2021_full } from './es2021.full'; -import { es2022_full } from './es2022.full'; -import { es2023_full } from './es2023.full'; -import { esnext_full } from './esnext.full'; +import { esnext_string } from './esnext.string'; +import { esnext_symbol } from './esnext.symbol'; +import { esnext_weakref } from './esnext.weakref'; import { lib as libBase } from './lib'; +import { scripthost } from './scripthost'; +import { webworker } from './webworker'; +import { webworker_asynciterable } from './webworker.asynciterable'; +import { webworker_importscripts } from './webworker.importscripts'; +import { webworker_iterable } from './webworker.iterable'; const lib = { - es5, - es6, - es2015, - es7, - es2016, - es2017, - es2018, - es2019, - es2020, - es2021, - es2022, - es2023, - esnext, + decorators, + 'decorators.legacy': decorators_legacy, dom, - 'dom.iterable': dom_iterable, 'dom.asynciterable': dom_asynciterable, - webworker, - 'webworker.importscripts': webworker_importscripts, - 'webworker.iterable': webworker_iterable, - 'webworker.asynciterable': webworker_asynciterable, - scripthost, - 'es2015.core': es2015_core, + 'dom.iterable': dom_iterable, + es2015, 'es2015.collection': es2015_collection, + 'es2015.core': es2015_core, 'es2015.generator': es2015_generator, 'es2015.iterable': es2015_iterable, 'es2015.promise': es2015_promise, @@ -131,72 +116,87 @@ const lib = { 'es2015.reflect': es2015_reflect, 'es2015.symbol': es2015_symbol, 'es2015.symbol.wellknown': es2015_symbol_wellknown, + es2016, 'es2016.array.include': es2016_array_include, + 'es2016.full': es2016_full, 'es2016.intl': es2016_intl, + es2017, 'es2017.date': es2017_date, + 'es2017.full': es2017_full, + 'es2017.intl': es2017_intl, 'es2017.object': es2017_object, 'es2017.sharedmemory': es2017_sharedmemory, 'es2017.string': es2017_string, - 'es2017.intl': es2017_intl, 'es2017.typedarrays': es2017_typedarrays, + es2018, 'es2018.asyncgenerator': es2018_asyncgenerator, 'es2018.asynciterable': es2018_asynciterable, + 'es2018.full': es2018_full, 'es2018.intl': es2018_intl, 'es2018.promise': es2018_promise, 'es2018.regexp': es2018_regexp, + es2019, 'es2019.array': es2019_array, + 'es2019.full': es2019_full, + 'es2019.intl': es2019_intl, 'es2019.object': es2019_object, 'es2019.string': es2019_string, 'es2019.symbol': es2019_symbol, - 'es2019.intl': es2019_intl, + es2020, 'es2020.bigint': es2020_bigint, 'es2020.date': es2020_date, + 'es2020.full': es2020_full, + 'es2020.intl': es2020_intl, + 'es2020.number': es2020_number, 'es2020.promise': es2020_promise, 'es2020.sharedmemory': es2020_sharedmemory, 'es2020.string': es2020_string, 'es2020.symbol.wellknown': es2020_symbol_wellknown, - 'es2020.intl': es2020_intl, - 'es2020.number': es2020_number, + es2021, + 'es2021.full': es2021_full, + 'es2021.intl': es2021_intl, 'es2021.promise': es2021_promise, 'es2021.string': es2021_string, 'es2021.weakref': es2021_weakref, - 'es2021.intl': es2021_intl, + es2022, 'es2022.array': es2022_array, 'es2022.error': es2022_error, + 'es2022.full': es2022_full, 'es2022.intl': es2022_intl, 'es2022.object': es2022_object, + 'es2022.regexp': es2022_regexp, 'es2022.sharedmemory': es2022_sharedmemory, 'es2022.string': es2022_string, - 'es2022.regexp': es2022_regexp, + es2023, 'es2023.array': es2023_array, 'es2023.collection': es2023_collection, + 'es2023.full': es2023_full, 'es2023.intl': es2023_intl, + es5, + es6, + es7, + esnext, 'esnext.array': esnext_array, - 'esnext.collection': esnext_collection, - 'esnext.symbol': esnext_symbol, 'esnext.asynciterable': esnext_asynciterable, - 'esnext.intl': esnext_intl, - 'esnext.disposable': esnext_disposable, 'esnext.bigint': esnext_bigint, - 'esnext.string': esnext_string, - 'esnext.promise': esnext_promise, - 'esnext.weakref': esnext_weakref, + 'esnext.collection': esnext_collection, 'esnext.decorators': esnext_decorators, + 'esnext.disposable': esnext_disposable, + 'esnext.full': esnext_full, + 'esnext.intl': esnext_intl, + 'esnext.iterator': esnext_iterator, 'esnext.object': esnext_object, + 'esnext.promise': esnext_promise, 'esnext.regexp': esnext_regexp, - 'esnext.iterator': esnext_iterator, - decorators, - 'decorators.legacy': decorators_legacy, - 'es2016.full': es2016_full, - 'es2017.full': es2017_full, - 'es2018.full': es2018_full, - 'es2019.full': es2019_full, - 'es2020.full': es2020_full, - 'es2021.full': es2021_full, - 'es2022.full': es2022_full, - 'es2023.full': es2023_full, - 'esnext.full': esnext_full, + 'esnext.string': esnext_string, + 'esnext.symbol': esnext_symbol, + 'esnext.weakref': esnext_weakref, lib: libBase, + scripthost, + webworker, + 'webworker.asynciterable': webworker_asynciterable, + 'webworker.importscripts': webworker_importscripts, + 'webworker.iterable': webworker_iterable, } as const; export { lib }; diff --git a/packages/scope-manager/src/lib/lib.ts b/packages/scope-manager/src/lib/lib.ts index 2b0aec247cb4..1256669a81fa 100644 --- a/packages/scope-manager/src/lib/lib.ts +++ b/packages/scope-manager/src/lib/lib.ts @@ -4,10 +4,11 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; -import { es5 } from './es5'; + import { dom } from './dom'; -import { webworker_importscripts } from './webworker.importscripts'; +import { es5 } from './es5'; import { scripthost } from './scripthost'; +import { webworker_importscripts } from './webworker.importscripts'; export const lib = { ...es5, diff --git a/packages/scope-manager/src/lib/scripthost.ts b/packages/scope-manager/src/lib/scripthost.ts index dde023531039..21e00f61a550 100644 --- a/packages/scope-manager/src/lib/scripthost.ts +++ b/packages/scope-manager/src/lib/scripthost.ts @@ -4,20 +4,21 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE, TYPE_VALUE } from './base-config'; export const scripthost = { ActiveXObject: TYPE_VALUE, + Date: TYPE, + DateConstructor: TYPE, + Enumerator: TYPE_VALUE, + EnumeratorConstructor: TYPE, ITextWriter: TYPE, + SafeArray: TYPE_VALUE, TextStreamBase: TYPE, - TextStreamWriter: TYPE, TextStreamReader: TYPE, - SafeArray: TYPE_VALUE, - Enumerator: TYPE_VALUE, - EnumeratorConstructor: TYPE, + TextStreamWriter: TYPE, + VarDate: TYPE_VALUE, VBArray: TYPE_VALUE, VBArrayConstructor: TYPE, - VarDate: TYPE_VALUE, - DateConstructor: TYPE, - Date: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/webworker.asynciterable.ts b/packages/scope-manager/src/lib/webworker.asynciterable.ts index 17706b55bf77..bb74df8c9762 100644 --- a/packages/scope-manager/src/lib/webworker.asynciterable.ts +++ b/packages/scope-manager/src/lib/webworker.asynciterable.ts @@ -4,11 +4,12 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const webworker_asynciterable = { - FileSystemDirectoryHandleAsyncIterator: TYPE, FileSystemDirectoryHandle: TYPE, - ReadableStreamAsyncIterator: TYPE, + FileSystemDirectoryHandleAsyncIterator: TYPE, ReadableStream: TYPE, + ReadableStreamAsyncIterator: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/webworker.iterable.ts b/packages/scope-manager/src/lib/webworker.iterable.ts index 8c14d3058a7a..20d889c162a7 100644 --- a/packages/scope-manager/src/lib/webworker.iterable.ts +++ b/packages/scope-manager/src/lib/webworker.iterable.ts @@ -4,31 +4,32 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE } from './base-config'; export const webworker_iterable = { AbortSignal: TYPE, - CSSNumericArray: TYPE, - CSSTransformValue: TYPE, - CSSUnparsedValue: TYPE, Cache: TYPE, CanvasPath: TYPE, CanvasPathDrawingStyles: TYPE, + CSSNumericArray: TYPE, + CSSTransformValue: TYPE, + CSSUnparsedValue: TYPE, DOMStringList: TYPE, FileList: TYPE, FontFaceSet: TYPE, - FormDataIterator: TYPE, FormData: TYPE, - HeadersIterator: TYPE, + FormDataIterator: TYPE, Headers: TYPE, + HeadersIterator: TYPE, IDBDatabase: TYPE, IDBObjectStore: TYPE, MessageEvent: TYPE, - StylePropertyMapReadOnlyIterator: TYPE, StylePropertyMapReadOnly: TYPE, + StylePropertyMapReadOnlyIterator: TYPE, SubtleCrypto: TYPE, - URLSearchParamsIterator: TYPE, URLSearchParams: TYPE, + URLSearchParamsIterator: TYPE, WEBGL_draw_buffers: TYPE, WEBGL_multi_draw: TYPE, WebGL2RenderingContextBase: TYPE, diff --git a/packages/scope-manager/src/lib/webworker.ts b/packages/scope-manager/src/lib/webworker.ts index 4f1596a8a4a4..6fd3903f3eeb 100644 --- a/packages/scope-manager/src/lib/webworker.ts +++ b/packages/scope-manager/src/lib/webworker.ts @@ -4,9 +4,15 @@ // npx nx generate-lib repo import type { ImplicitLibVariableOptions } from '../variable'; + import { TYPE, TYPE_VALUE } from './base-config'; export const webworker = { + AbortController: TYPE_VALUE, + AbortSignal: TYPE_VALUE, + AbortSignalEventMap: TYPE, + AbstractWorker: TYPE, + AbstractWorkerEventMap: TYPE, AddEventListenerOptions: TYPE, AesCbcParams: TYPE, AesCtrParams: TYPE, @@ -15,161 +21,94 @@ export const webworker = { AesKeyAlgorithm: TYPE, AesKeyGenParams: TYPE, Algorithm: TYPE, + AlgorithmIdentifier: TYPE, + AllowSharedBufferSource: TYPE, + AlphaOption: TYPE, + ANGLE_instanced_arrays: TYPE, + AnimationFrameProvider: TYPE, AudioConfiguration: TYPE, + AvcBitstreamFormat: TYPE, AvcEncoderConfig: TYPE, + BigInteger: TYPE, + BinaryData: TYPE, + BinaryType: TYPE, + Blob: TYPE_VALUE, + BlobPart: TYPE, BlobPropertyBag: TYPE, - CSSMatrixComponentOptions: TYPE, - CSSNumericType: TYPE, + Body: TYPE, + BodyInit: TYPE, + BroadcastChannel: TYPE_VALUE, + BroadcastChannelEventMap: TYPE, + BufferSource: TYPE, + ByteLengthQueuingStrategy: TYPE_VALUE, + Cache: TYPE_VALUE, CacheQueryOptions: TYPE, + CacheStorage: TYPE_VALUE, + CanvasCompositing: TYPE, + CanvasDirection: TYPE, + CanvasDrawImage: TYPE, + CanvasDrawPath: TYPE, + CanvasFillRule: TYPE, + CanvasFillStrokeStyles: TYPE, + CanvasFilters: TYPE, + CanvasFontKerning: TYPE, + CanvasFontStretch: TYPE, + CanvasFontVariantCaps: TYPE, + CanvasGradient: TYPE_VALUE, + CanvasImageData: TYPE, + CanvasImageSmoothing: TYPE, + CanvasImageSource: TYPE, + CanvasLineCap: TYPE, + CanvasLineJoin: TYPE, + CanvasPath: TYPE, + CanvasPathDrawingStyles: TYPE, + CanvasPattern: TYPE_VALUE, + CanvasRect: TYPE, + CanvasShadowStyles: TYPE, + CanvasState: TYPE, + CanvasText: TYPE, + CanvasTextAlign: TYPE, + CanvasTextBaseline: TYPE, + CanvasTextDrawingStyles: TYPE, + CanvasTextRendering: TYPE, + CanvasTransform: TYPE, + Client: TYPE_VALUE, ClientQueryOptions: TYPE, + Clients: TYPE_VALUE, + ClientTypes: TYPE, + CloseEvent: TYPE_VALUE, CloseEventInit: TYPE, + CodecState: TYPE, + ColorGamut: TYPE, + ColorSpaceConversion: TYPE, + CompressionFormat: TYPE, + CompressionStream: TYPE_VALUE, + Console: TYPE, + CountQueuingStrategy: TYPE_VALUE, + Crypto: TYPE_VALUE, + CryptoKey: TYPE_VALUE, CryptoKeyPair: TYPE, - CustomEventInit: TYPE, - DOMMatrix2DInit: TYPE, - DOMMatrixInit: TYPE, - DOMPointInit: TYPE, - DOMQuadInit: TYPE, - DOMRectInit: TYPE, - EcKeyGenParams: TYPE, - EcKeyImportParams: TYPE, - EcdhKeyDeriveParams: TYPE, - EcdsaParams: TYPE, - EncodedVideoChunkInit: TYPE, - EncodedVideoChunkMetadata: TYPE, - ErrorEventInit: TYPE, - EventInit: TYPE, - EventListenerOptions: TYPE, - EventSourceInit: TYPE, - ExtendableEventInit: TYPE, - ExtendableMessageEventInit: TYPE, - FetchEventInit: TYPE, - FilePropertyBag: TYPE, - FileSystemCreateWritableOptions: TYPE, - FileSystemGetDirectoryOptions: TYPE, - FileSystemGetFileOptions: TYPE, - FileSystemReadWriteOptions: TYPE, - FileSystemRemoveOptions: TYPE, - FontFaceDescriptors: TYPE, - FontFaceSetLoadEventInit: TYPE, - GetNotificationOptions: TYPE, - HkdfParams: TYPE, - HmacImportParams: TYPE, - HmacKeyGenParams: TYPE, - IDBDatabaseInfo: TYPE, - IDBIndexParameters: TYPE, - IDBObjectStoreParameters: TYPE, - IDBTransactionOptions: TYPE, - IDBVersionChangeEventInit: TYPE, - ImageBitmapOptions: TYPE, - ImageBitmapRenderingContextSettings: TYPE, - ImageDataSettings: TYPE, - ImageEncodeOptions: TYPE, - JsonWebKey: TYPE, - KeyAlgorithm: TYPE, - LockInfo: TYPE, - LockManagerSnapshot: TYPE, - LockOptions: TYPE, - MediaCapabilitiesDecodingInfo: TYPE, - MediaCapabilitiesEncodingInfo: TYPE, - MediaCapabilitiesInfo: TYPE, - MediaConfiguration: TYPE, - MediaDecodingConfiguration: TYPE, - MediaEncodingConfiguration: TYPE, - MediaStreamTrackProcessorInit: TYPE, - MessageEventInit: TYPE, - MultiCacheQueryOptions: TYPE, - NavigationPreloadState: TYPE, - NotificationEventInit: TYPE, - NotificationOptions: TYPE, - Pbkdf2Params: TYPE, - PerformanceMarkOptions: TYPE, - PerformanceMeasureOptions: TYPE, - PerformanceObserverInit: TYPE, - PermissionDescriptor: TYPE, - PlaneLayout: TYPE, - ProgressEventInit: TYPE, - PromiseRejectionEventInit: TYPE, - PushEventInit: TYPE, - PushSubscriptionJSON: TYPE, - PushSubscriptionOptionsInit: TYPE, - QueuingStrategy: TYPE, - QueuingStrategyInit: TYPE, - RTCEncodedAudioFrameMetadata: TYPE, - RTCEncodedVideoFrameMetadata: TYPE, - ReadableStreamGetReaderOptions: TYPE, - ReadableStreamIteratorOptions: TYPE, - ReadableStreamReadDoneResult: TYPE, - ReadableStreamReadValueResult: TYPE, - ReadableWritablePair: TYPE, - RegistrationOptions: TYPE, - ReportingObserverOptions: TYPE, - RequestInit: TYPE, - ResponseInit: TYPE, - RsaHashedImportParams: TYPE, - RsaHashedKeyGenParams: TYPE, - RsaKeyGenParams: TYPE, - RsaOaepParams: TYPE, - RsaOtherPrimesInfo: TYPE, - RsaPssParams: TYPE, - SecurityPolicyViolationEventInit: TYPE, - StorageEstimate: TYPE, - StreamPipeOptions: TYPE, - StructuredSerializeOptions: TYPE, - TextDecodeOptions: TYPE, - TextDecoderOptions: TYPE, - TextEncoderEncodeIntoResult: TYPE, - Transformer: TYPE, - UnderlyingByteSource: TYPE, - UnderlyingDefaultSource: TYPE, - UnderlyingSink: TYPE, - UnderlyingSource: TYPE, - VideoColorSpaceInit: TYPE, - VideoConfiguration: TYPE, - VideoDecoderConfig: TYPE, - VideoDecoderInit: TYPE, - VideoDecoderSupport: TYPE, - VideoEncoderConfig: TYPE, - VideoEncoderEncodeOptions: TYPE, - VideoEncoderInit: TYPE, - VideoEncoderSupport: TYPE, - VideoFrameBufferInit: TYPE, - VideoFrameCopyToOptions: TYPE, - VideoFrameInit: TYPE, - WebGLContextAttributes: TYPE, - WebGLContextEventInit: TYPE, - WebTransportCloseInfo: TYPE, - WebTransportErrorOptions: TYPE, - WebTransportHash: TYPE, - WebTransportOptions: TYPE, - WebTransportSendStreamOptions: TYPE, - WorkerOptions: TYPE, - WriteParams: TYPE, - ANGLE_instanced_arrays: TYPE, - AbortController: TYPE_VALUE, - AbortSignalEventMap: TYPE, - AbortSignal: TYPE_VALUE, - AbstractWorkerEventMap: TYPE, - AbstractWorker: TYPE, - AnimationFrameProvider: TYPE, - Blob: TYPE_VALUE, - Body: TYPE, - BroadcastChannelEventMap: TYPE, - BroadcastChannel: TYPE_VALUE, - ByteLengthQueuingStrategy: TYPE_VALUE, CSSImageValue: TYPE_VALUE, + CSSKeywordish: TYPE, CSSKeywordValue: TYPE_VALUE, CSSMathClamp: TYPE_VALUE, CSSMathInvert: TYPE_VALUE, CSSMathMax: TYPE_VALUE, CSSMathMin: TYPE_VALUE, CSSMathNegate: TYPE_VALUE, + CSSMathOperator: TYPE, CSSMathProduct: TYPE_VALUE, CSSMathSum: TYPE_VALUE, CSSMathValue: TYPE_VALUE, CSSMatrixComponent: TYPE_VALUE, + CSSMatrixComponentOptions: TYPE, + CSSNumberish: TYPE, CSSNumericArray: TYPE_VALUE, + CSSNumericBaseType: TYPE, + CSSNumericType: TYPE, CSSNumericValue: TYPE_VALUE, CSSPerspective: TYPE_VALUE, + CSSPerspectiveValue: TYPE, CSSRotate: TYPE_VALUE, CSSScale: TYPE_VALUE, CSSSkew: TYPE_VALUE, @@ -180,117 +119,199 @@ export const webworker = { CSSTransformValue: TYPE_VALUE, CSSTranslate: TYPE_VALUE, CSSUnitValue: TYPE_VALUE, + CSSUnparsedSegment: TYPE, CSSUnparsedValue: TYPE_VALUE, CSSVariableReferenceValue: TYPE_VALUE, - Cache: TYPE_VALUE, - CacheStorage: TYPE_VALUE, - CanvasCompositing: TYPE, - CanvasDrawImage: TYPE, - CanvasDrawPath: TYPE, - CanvasFillStrokeStyles: TYPE, - CanvasFilters: TYPE, - CanvasGradient: TYPE_VALUE, - CanvasImageData: TYPE, - CanvasImageSmoothing: TYPE, - CanvasPath: TYPE, - CanvasPathDrawingStyles: TYPE, - CanvasPattern: TYPE_VALUE, - CanvasRect: TYPE, - CanvasShadowStyles: TYPE, - CanvasState: TYPE, - CanvasText: TYPE, - CanvasTextDrawingStyles: TYPE, - CanvasTransform: TYPE, - Client: TYPE_VALUE, - Clients: TYPE_VALUE, - CloseEvent: TYPE_VALUE, - CompressionStream: TYPE_VALUE, - CountQueuingStrategy: TYPE_VALUE, - Crypto: TYPE_VALUE, - CryptoKey: TYPE_VALUE, CustomEvent: TYPE_VALUE, + CustomEventInit: TYPE, + DecompressionStream: TYPE_VALUE, + DedicatedWorkerGlobalScope: TYPE_VALUE, + DedicatedWorkerGlobalScopeEventMap: TYPE, + DocumentVisibilityState: TYPE, DOMException: TYPE_VALUE, + DOMHighResTimeStamp: TYPE, DOMMatrix: TYPE_VALUE, + DOMMatrix2DInit: TYPE, + DOMMatrixInit: TYPE, DOMMatrixReadOnly: TYPE_VALUE, DOMPoint: TYPE_VALUE, + DOMPointInit: TYPE, DOMPointReadOnly: TYPE_VALUE, DOMQuad: TYPE_VALUE, + DOMQuadInit: TYPE, DOMRect: TYPE_VALUE, + DOMRectInit: TYPE, DOMRectReadOnly: TYPE_VALUE, DOMStringList: TYPE_VALUE, - DecompressionStream: TYPE_VALUE, - DedicatedWorkerGlobalScopeEventMap: TYPE, - DedicatedWorkerGlobalScope: TYPE_VALUE, + EcdhKeyDeriveParams: TYPE, + EcdsaParams: TYPE, + EcKeyGenParams: TYPE, + EcKeyImportParams: TYPE, + EncodedVideoChunk: TYPE_VALUE, + EncodedVideoChunkInit: TYPE, + EncodedVideoChunkMetadata: TYPE, + EncodedVideoChunkOutputCallback: TYPE, + EncodedVideoChunkType: TYPE, + EndingType: TYPE, + EpochTimeStamp: TYPE, + ErrorEvent: TYPE_VALUE, + ErrorEventInit: TYPE, + Event: TYPE_VALUE, + EventInit: TYPE, + EventListener: TYPE, + EventListenerObject: TYPE, + EventListenerOptions: TYPE, + EventListenerOrEventListenerObject: TYPE, + EventSource: TYPE_VALUE, + EventSourceEventMap: TYPE, + EventSourceInit: TYPE, + EventTarget: TYPE_VALUE, EXT_blend_minmax: TYPE, EXT_color_buffer_float: TYPE, EXT_color_buffer_half_float: TYPE, EXT_float_blend: TYPE, EXT_frag_depth: TYPE, - EXT_sRGB: TYPE, EXT_shader_texture_lod: TYPE, + EXT_sRGB: TYPE, EXT_texture_compression_bptc: TYPE, EXT_texture_compression_rgtc: TYPE, EXT_texture_filter_anisotropic: TYPE, EXT_texture_norm16: TYPE, - EncodedVideoChunk: TYPE_VALUE, - ErrorEvent: TYPE_VALUE, - Event: TYPE_VALUE, - EventListener: TYPE, - EventListenerObject: TYPE, - EventSourceEventMap: TYPE, - EventSource: TYPE_VALUE, - EventTarget: TYPE_VALUE, ExtendableEvent: TYPE_VALUE, + ExtendableEventInit: TYPE, ExtendableMessageEvent: TYPE_VALUE, + ExtendableMessageEventInit: TYPE, FetchEvent: TYPE_VALUE, + FetchEventInit: TYPE, File: TYPE_VALUE, FileList: TYPE_VALUE, - FileReaderEventMap: TYPE, + FilePropertyBag: TYPE, FileReader: TYPE_VALUE, + FileReaderEventMap: TYPE, FileReaderSync: TYPE_VALUE, + FileSystemCreateWritableOptions: TYPE, FileSystemDirectoryHandle: TYPE_VALUE, FileSystemFileHandle: TYPE_VALUE, + FileSystemGetDirectoryOptions: TYPE, + FileSystemGetFileOptions: TYPE, FileSystemHandle: TYPE_VALUE, + FileSystemHandleKind: TYPE, + FileSystemReadWriteOptions: TYPE, + FileSystemRemoveOptions: TYPE, FileSystemSyncAccessHandle: TYPE_VALUE, FileSystemWritableFileStream: TYPE_VALUE, + FileSystemWriteChunkType: TYPE, + Float32List: TYPE, + FontDisplay: TYPE, FontFace: TYPE_VALUE, - FontFaceSetEventMap: TYPE, + FontFaceDescriptors: TYPE, + FontFaceLoadStatus: TYPE, FontFaceSet: TYPE_VALUE, + FontFaceSetEventMap: TYPE, FontFaceSetLoadEvent: TYPE_VALUE, + FontFaceSetLoadEventInit: TYPE, + FontFaceSetLoadStatus: TYPE, FontFaceSource: TYPE, FormData: TYPE_VALUE, + FormDataEntryValue: TYPE, + FrameRequestCallback: TYPE, + FrameType: TYPE, GenericTransformStream: TYPE, + GetNotificationOptions: TYPE, + GLbitfield: TYPE, + GLboolean: TYPE, + GLclampf: TYPE, + GLenum: TYPE, + GLfloat: TYPE, + GLint: TYPE, + GLint64: TYPE, + GLintptr: TYPE, + GlobalCompositeOperation: TYPE, + GLsizei: TYPE, + GLsizeiptr: TYPE, + GLuint: TYPE, + GLuint64: TYPE, + HardwareAcceleration: TYPE, + HashAlgorithmIdentifier: TYPE, + HdrMetadataType: TYPE, Headers: TYPE_VALUE, + HeadersInit: TYPE, + HkdfParams: TYPE, + HmacImportParams: TYPE, + HmacKeyGenParams: TYPE, IDBCursor: TYPE_VALUE, + IDBCursorDirection: TYPE, IDBCursorWithValue: TYPE_VALUE, - IDBDatabaseEventMap: TYPE, IDBDatabase: TYPE_VALUE, + IDBDatabaseEventMap: TYPE, + IDBDatabaseInfo: TYPE, IDBFactory: TYPE_VALUE, IDBIndex: TYPE_VALUE, + IDBIndexParameters: TYPE, IDBKeyRange: TYPE_VALUE, IDBObjectStore: TYPE_VALUE, - IDBOpenDBRequestEventMap: TYPE, + IDBObjectStoreParameters: TYPE, IDBOpenDBRequest: TYPE_VALUE, - IDBRequestEventMap: TYPE, + IDBOpenDBRequestEventMap: TYPE, IDBRequest: TYPE_VALUE, - IDBTransactionEventMap: TYPE, + IDBRequestEventMap: TYPE, + IDBRequestReadyState: TYPE, IDBTransaction: TYPE_VALUE, + IDBTransactionDurability: TYPE, + IDBTransactionEventMap: TYPE, + IDBTransactionMode: TYPE, + IDBTransactionOptions: TYPE, + IDBValidKey: TYPE, IDBVersionChangeEvent: TYPE_VALUE, + IDBVersionChangeEventInit: TYPE, ImageBitmap: TYPE_VALUE, + ImageBitmapOptions: TYPE, ImageBitmapRenderingContext: TYPE_VALUE, + ImageBitmapRenderingContextSettings: TYPE, + ImageBitmapSource: TYPE, ImageData: TYPE_VALUE, + ImageDataSettings: TYPE, + ImageEncodeOptions: TYPE, + ImageOrientation: TYPE, + ImageSmoothingQuality: TYPE, ImportMeta: TYPE, + Int32List: TYPE, + JsonWebKey: TYPE, + KeyAlgorithm: TYPE, + KeyFormat: TYPE, + KeyType: TYPE, + KeyUsage: TYPE, KHR_parallel_shader_compile: TYPE, + LatencyMode: TYPE, Lock: TYPE_VALUE, + LockGrantedCallback: TYPE, + LockInfo: TYPE, LockManager: TYPE_VALUE, + LockManagerSnapshot: TYPE, + LockMode: TYPE, + LockOptions: TYPE, MediaCapabilities: TYPE_VALUE, + MediaCapabilitiesDecodingInfo: TYPE, + MediaCapabilitiesEncodingInfo: TYPE, + MediaCapabilitiesInfo: TYPE, + MediaConfiguration: TYPE, + MediaDecodingConfiguration: TYPE, + MediaDecodingType: TYPE, + MediaEncodingConfiguration: TYPE, + MediaEncodingType: TYPE, MediaSourceHandle: TYPE_VALUE, MediaStreamTrackProcessor: TYPE_VALUE, + MediaStreamTrackProcessorInit: TYPE, MessageChannel: TYPE_VALUE, MessageEvent: TYPE_VALUE, - MessagePortEventMap: TYPE, + MessageEventInit: TYPE, + MessageEventSource: TYPE, MessagePort: TYPE_VALUE, + MessagePortEventMap: TYPE, + MultiCacheQueryOptions: TYPE, + NamedCurve: TYPE, NavigationPreloadManager: TYPE_VALUE, + NavigationPreloadState: TYPE, NavigatorBadge: TYPE, NavigatorConcurrentHardware: TYPE, NavigatorID: TYPE, @@ -298,9 +319,13 @@ export const webworker = { NavigatorLocks: TYPE, NavigatorOnLine: TYPE, NavigatorStorage: TYPE, - NotificationEventMap: TYPE, Notification: TYPE_VALUE, + NotificationDirection: TYPE, NotificationEvent: TYPE_VALUE, + NotificationEventInit: TYPE, + NotificationEventMap: TYPE, + NotificationOptions: TYPE, + NotificationPermission: TYPE, OES_draw_buffers_indexed: TYPE, OES_element_index_uint: TYPE, OES_fbo_render_mipmap: TYPE, @@ -310,77 +335,189 @@ export const webworker = { OES_texture_half_float: TYPE, OES_texture_half_float_linear: TYPE, OES_vertex_array_object: TYPE, - OVR_multiview2: TYPE, - OffscreenCanvasEventMap: TYPE, OffscreenCanvas: TYPE_VALUE, + OffscreenCanvasEventMap: TYPE, OffscreenCanvasRenderingContext2D: TYPE_VALUE, + OffscreenRenderingContext: TYPE, + OffscreenRenderingContextId: TYPE, + OnErrorEventHandler: TYPE, + OnErrorEventHandlerNonNull: TYPE, + OVR_multiview2: TYPE, Path2D: TYPE_VALUE, - PerformanceEventMap: TYPE, + Pbkdf2Params: TYPE, Performance: TYPE_VALUE, PerformanceEntry: TYPE_VALUE, + PerformanceEntryList: TYPE, + PerformanceEventMap: TYPE, PerformanceMark: TYPE_VALUE, + PerformanceMarkOptions: TYPE, PerformanceMeasure: TYPE_VALUE, + PerformanceMeasureOptions: TYPE, PerformanceObserver: TYPE_VALUE, + PerformanceObserverCallback: TYPE, PerformanceObserverEntryList: TYPE_VALUE, + PerformanceObserverInit: TYPE, PerformanceResourceTiming: TYPE_VALUE, PerformanceServerTiming: TYPE_VALUE, - PermissionStatusEventMap: TYPE, - PermissionStatus: TYPE_VALUE, + PermissionDescriptor: TYPE, + PermissionName: TYPE, Permissions: TYPE_VALUE, + PermissionState: TYPE, + PermissionStatus: TYPE_VALUE, + PermissionStatusEventMap: TYPE, + PlaneLayout: TYPE, + PredefinedColorSpace: TYPE, + PremultiplyAlpha: TYPE, ProgressEvent: TYPE_VALUE, + ProgressEventInit: TYPE, PromiseRejectionEvent: TYPE_VALUE, + PromiseRejectionEventInit: TYPE, + PushEncryptionKeyName: TYPE, PushEvent: TYPE_VALUE, + PushEventInit: TYPE, PushManager: TYPE_VALUE, PushMessageData: TYPE_VALUE, + PushMessageDataInit: TYPE, PushSubscription: TYPE_VALUE, + PushSubscriptionJSON: TYPE, PushSubscriptionOptions: TYPE_VALUE, + PushSubscriptionOptionsInit: TYPE, + QueuingStrategy: TYPE, + QueuingStrategyInit: TYPE, + QueuingStrategySize: TYPE, + ReadableByteStreamController: TYPE_VALUE, + ReadableStream: TYPE_VALUE, + ReadableStreamBYOBReader: TYPE_VALUE, + ReadableStreamBYOBRequest: TYPE_VALUE, + ReadableStreamController: TYPE, + ReadableStreamDefaultController: TYPE_VALUE, + ReadableStreamDefaultReader: TYPE_VALUE, + ReadableStreamGenericReader: TYPE, + ReadableStreamGetReaderOptions: TYPE, + ReadableStreamIteratorOptions: TYPE, + ReadableStreamReadDoneResult: TYPE, + ReadableStreamReader: TYPE, + ReadableStreamReaderMode: TYPE, + ReadableStreamReadResult: TYPE, + ReadableStreamReadValueResult: TYPE, + ReadableStreamType: TYPE, + ReadableWritablePair: TYPE, + ReferrerPolicy: TYPE, + RegistrationOptions: TYPE, + Report: TYPE_VALUE, + ReportBody: TYPE_VALUE, + ReportingObserver: TYPE_VALUE, + ReportingObserverCallback: TYPE, + ReportingObserverOptions: TYPE, + ReportList: TYPE, + Request: TYPE_VALUE, + RequestCache: TYPE, + RequestCredentials: TYPE, + RequestDestination: TYPE, + RequestInfo: TYPE, + RequestInit: TYPE, + RequestMode: TYPE, + RequestPriority: TYPE, + RequestRedirect: TYPE, + ResizeQuality: TYPE, + Response: TYPE_VALUE, + ResponseInit: TYPE, + ResponseType: TYPE, + RsaHashedImportParams: TYPE, + RsaHashedKeyGenParams: TYPE, + RsaKeyGenParams: TYPE, + RsaOaepParams: TYPE, + RsaOtherPrimesInfo: TYPE, + RsaPssParams: TYPE, RTCEncodedAudioFrame: TYPE_VALUE, + RTCEncodedAudioFrameMetadata: TYPE, RTCEncodedVideoFrame: TYPE_VALUE, + RTCEncodedVideoFrameMetadata: TYPE, + RTCEncodedVideoFrameType: TYPE, RTCRtpScriptTransformer: TYPE_VALUE, RTCTransformEvent: TYPE_VALUE, - ReadableByteStreamController: TYPE_VALUE, - ReadableStream: TYPE_VALUE, - ReadableStreamBYOBReader: TYPE_VALUE, - ReadableStreamBYOBRequest: TYPE_VALUE, - ReadableStreamDefaultController: TYPE_VALUE, - ReadableStreamDefaultReader: TYPE_VALUE, - ReadableStreamGenericReader: TYPE, - Report: TYPE_VALUE, - ReportBody: TYPE_VALUE, - ReportingObserver: TYPE_VALUE, - Request: TYPE_VALUE, - Response: TYPE_VALUE, SecurityPolicyViolationEvent: TYPE_VALUE, - ServiceWorkerEventMap: TYPE, + SecurityPolicyViolationEventDisposition: TYPE, + SecurityPolicyViolationEventInit: TYPE, ServiceWorker: TYPE_VALUE, - ServiceWorkerContainerEventMap: TYPE, ServiceWorkerContainer: TYPE_VALUE, - ServiceWorkerGlobalScopeEventMap: TYPE, + ServiceWorkerContainerEventMap: TYPE, + ServiceWorkerEventMap: TYPE, ServiceWorkerGlobalScope: TYPE_VALUE, - ServiceWorkerRegistrationEventMap: TYPE, + ServiceWorkerGlobalScopeEventMap: TYPE, ServiceWorkerRegistration: TYPE_VALUE, - SharedWorkerGlobalScopeEventMap: TYPE, + ServiceWorkerRegistrationEventMap: TYPE, + ServiceWorkerState: TYPE, + ServiceWorkerUpdateViaCache: TYPE, SharedWorkerGlobalScope: TYPE_VALUE, + SharedWorkerGlobalScopeEventMap: TYPE, + StorageEstimate: TYPE, StorageManager: TYPE_VALUE, + StreamPipeOptions: TYPE, + StructuredSerializeOptions: TYPE, StylePropertyMapReadOnly: TYPE_VALUE, SubtleCrypto: TYPE_VALUE, + TexImageSource: TYPE, + TextDecodeOptions: TYPE, TextDecoder: TYPE_VALUE, TextDecoderCommon: TYPE, + TextDecoderOptions: TYPE, TextDecoderStream: TYPE_VALUE, TextEncoder: TYPE_VALUE, TextEncoderCommon: TYPE, + TextEncoderEncodeIntoResult: TYPE, TextEncoderStream: TYPE_VALUE, TextMetrics: TYPE_VALUE, + TimerHandler: TYPE, + Transferable: TYPE, + TransferFunction: TYPE, + Transformer: TYPE, + TransformerFlushCallback: TYPE, + TransformerStartCallback: TYPE, + TransformerTransformCallback: TYPE, TransformStream: TYPE_VALUE, TransformStreamDefaultController: TYPE_VALUE, + Uint32List: TYPE, + UnderlyingByteSource: TYPE, + UnderlyingDefaultSource: TYPE, + UnderlyingSink: TYPE, + UnderlyingSinkAbortCallback: TYPE, + UnderlyingSinkCloseCallback: TYPE, + UnderlyingSinkStartCallback: TYPE, + UnderlyingSinkWriteCallback: TYPE, + UnderlyingSource: TYPE, + UnderlyingSourceCancelCallback: TYPE, + UnderlyingSourcePullCallback: TYPE, + UnderlyingSourceStartCallback: TYPE, URL: TYPE_VALUE, URLSearchParams: TYPE_VALUE, + VideoColorPrimaries: TYPE, VideoColorSpace: TYPE_VALUE, - VideoDecoderEventMap: TYPE, + VideoColorSpaceInit: TYPE, + VideoConfiguration: TYPE, VideoDecoder: TYPE_VALUE, - VideoEncoderEventMap: TYPE, + VideoDecoderConfig: TYPE, + VideoDecoderEventMap: TYPE, + VideoDecoderInit: TYPE, + VideoDecoderSupport: TYPE, VideoEncoder: TYPE_VALUE, + VideoEncoderBitrateMode: TYPE, + VideoEncoderConfig: TYPE, + VideoEncoderEncodeOptions: TYPE, + VideoEncoderEventMap: TYPE, + VideoEncoderInit: TYPE, + VideoEncoderSupport: TYPE, VideoFrame: TYPE_VALUE, + VideoFrameBufferInit: TYPE, + VideoFrameCopyToOptions: TYPE, + VideoFrameInit: TYPE, + VideoFrameOutputCallback: TYPE, + VideoMatrixCoefficients: TYPE, + VideoPixelFormat: TYPE, + VideoTransferCharacteristics: TYPE, + VoidFunction: TYPE, + WebAssembly: TYPE_VALUE, + WebCodecsErrorCallback: TYPE, WEBGL_color_buffer_float: TYPE, WEBGL_compressed_texture_astc: TYPE, WEBGL_compressed_texture_etc: TYPE, @@ -399,8 +536,11 @@ export const webworker = { WebGL2RenderingContextOverloads: TYPE, WebGLActiveInfo: TYPE_VALUE, WebGLBuffer: TYPE_VALUE, + WebGLContextAttributes: TYPE, WebGLContextEvent: TYPE_VALUE, + WebGLContextEventInit: TYPE, WebGLFramebuffer: TYPE_VALUE, + WebGLPowerPreference: TYPE, WebGLProgram: TYPE_VALUE, WebGLQuery: TYPE_VALUE, WebGLRenderbuffer: TYPE_VALUE, @@ -416,178 +556,39 @@ export const webworker = { WebGLUniformLocation: TYPE_VALUE, WebGLVertexArrayObject: TYPE_VALUE, WebGLVertexArrayObjectOES: TYPE, - WebSocketEventMap: TYPE, WebSocket: TYPE_VALUE, + WebSocketEventMap: TYPE, WebTransport: TYPE_VALUE, WebTransportBidirectionalStream: TYPE_VALUE, + WebTransportCloseInfo: TYPE, + WebTransportCongestionControl: TYPE, WebTransportDatagramDuplexStream: TYPE_VALUE, WebTransportError: TYPE_VALUE, + WebTransportErrorOptions: TYPE, + WebTransportErrorSource: TYPE, + WebTransportHash: TYPE, + WebTransportOptions: TYPE, + WebTransportSendStreamOptions: TYPE, WindowClient: TYPE_VALUE, WindowOrWorkerGlobalScope: TYPE, - WorkerEventMap: TYPE, Worker: TYPE_VALUE, - WorkerGlobalScopeEventMap: TYPE, + WorkerEventMap: TYPE, WorkerGlobalScope: TYPE_VALUE, + WorkerGlobalScopeEventMap: TYPE, WorkerLocation: TYPE_VALUE, WorkerNavigator: TYPE_VALUE, + WorkerOptions: TYPE, + WorkerType: TYPE, WritableStream: TYPE_VALUE, WritableStreamDefaultController: TYPE_VALUE, WritableStreamDefaultWriter: TYPE_VALUE, - XMLHttpRequestEventMap: TYPE, + WriteCommandType: TYPE, + WriteParams: TYPE, XMLHttpRequest: TYPE_VALUE, - XMLHttpRequestEventTargetEventMap: TYPE, - XMLHttpRequestEventTarget: TYPE_VALUE, - XMLHttpRequestUpload: TYPE_VALUE, - Console: TYPE, - WebAssembly: TYPE_VALUE, - EncodedVideoChunkOutputCallback: TYPE, - FrameRequestCallback: TYPE, - LockGrantedCallback: TYPE, - OnErrorEventHandlerNonNull: TYPE, - PerformanceObserverCallback: TYPE, - QueuingStrategySize: TYPE, - ReportingObserverCallback: TYPE, - TransformerFlushCallback: TYPE, - TransformerStartCallback: TYPE, - TransformerTransformCallback: TYPE, - UnderlyingSinkAbortCallback: TYPE, - UnderlyingSinkCloseCallback: TYPE, - UnderlyingSinkStartCallback: TYPE, - UnderlyingSinkWriteCallback: TYPE, - UnderlyingSourceCancelCallback: TYPE, - UnderlyingSourcePullCallback: TYPE, - UnderlyingSourceStartCallback: TYPE, - VideoFrameOutputCallback: TYPE, - VoidFunction: TYPE, - WebCodecsErrorCallback: TYPE, - AlgorithmIdentifier: TYPE, - AllowSharedBufferSource: TYPE, - BigInteger: TYPE, - BinaryData: TYPE, - BlobPart: TYPE, - BodyInit: TYPE, - BufferSource: TYPE, - CSSKeywordish: TYPE, - CSSNumberish: TYPE, - CSSPerspectiveValue: TYPE, - CSSUnparsedSegment: TYPE, - CanvasImageSource: TYPE, - DOMHighResTimeStamp: TYPE, - EpochTimeStamp: TYPE, - EventListenerOrEventListenerObject: TYPE, - FileSystemWriteChunkType: TYPE, - Float32List: TYPE, - FormDataEntryValue: TYPE, - GLbitfield: TYPE, - GLboolean: TYPE, - GLclampf: TYPE, - GLenum: TYPE, - GLfloat: TYPE, - GLint: TYPE, - GLint64: TYPE, - GLintptr: TYPE, - GLsizei: TYPE, - GLsizeiptr: TYPE, - GLuint: TYPE, - GLuint64: TYPE, - HashAlgorithmIdentifier: TYPE, - HeadersInit: TYPE, - IDBValidKey: TYPE, - ImageBitmapSource: TYPE, - Int32List: TYPE, - MessageEventSource: TYPE, - NamedCurve: TYPE, - OffscreenRenderingContext: TYPE, - OnErrorEventHandler: TYPE, - PerformanceEntryList: TYPE, - PushMessageDataInit: TYPE, - ReadableStreamController: TYPE, - ReadableStreamReadResult: TYPE, - ReadableStreamReader: TYPE, - ReportList: TYPE, - RequestInfo: TYPE, - TexImageSource: TYPE, - TimerHandler: TYPE, - Transferable: TYPE, - Uint32List: TYPE, XMLHttpRequestBodyInit: TYPE, - AlphaOption: TYPE, - AvcBitstreamFormat: TYPE, - BinaryType: TYPE, - CSSMathOperator: TYPE, - CSSNumericBaseType: TYPE, - CanvasDirection: TYPE, - CanvasFillRule: TYPE, - CanvasFontKerning: TYPE, - CanvasFontStretch: TYPE, - CanvasFontVariantCaps: TYPE, - CanvasLineCap: TYPE, - CanvasLineJoin: TYPE, - CanvasTextAlign: TYPE, - CanvasTextBaseline: TYPE, - CanvasTextRendering: TYPE, - ClientTypes: TYPE, - CodecState: TYPE, - ColorGamut: TYPE, - ColorSpaceConversion: TYPE, - CompressionFormat: TYPE, - DocumentVisibilityState: TYPE, - EncodedVideoChunkType: TYPE, - EndingType: TYPE, - FileSystemHandleKind: TYPE, - FontDisplay: TYPE, - FontFaceLoadStatus: TYPE, - FontFaceSetLoadStatus: TYPE, - FrameType: TYPE, - GlobalCompositeOperation: TYPE, - HardwareAcceleration: TYPE, - HdrMetadataType: TYPE, - IDBCursorDirection: TYPE, - IDBRequestReadyState: TYPE, - IDBTransactionDurability: TYPE, - IDBTransactionMode: TYPE, - ImageOrientation: TYPE, - ImageSmoothingQuality: TYPE, - KeyFormat: TYPE, - KeyType: TYPE, - KeyUsage: TYPE, - LatencyMode: TYPE, - LockMode: TYPE, - MediaDecodingType: TYPE, - MediaEncodingType: TYPE, - NotificationDirection: TYPE, - NotificationPermission: TYPE, - OffscreenRenderingContextId: TYPE, - PermissionName: TYPE, - PermissionState: TYPE, - PredefinedColorSpace: TYPE, - PremultiplyAlpha: TYPE, - PushEncryptionKeyName: TYPE, - RTCEncodedVideoFrameType: TYPE, - ReadableStreamReaderMode: TYPE, - ReadableStreamType: TYPE, - ReferrerPolicy: TYPE, - RequestCache: TYPE, - RequestCredentials: TYPE, - RequestDestination: TYPE, - RequestMode: TYPE, - RequestPriority: TYPE, - RequestRedirect: TYPE, - ResizeQuality: TYPE, - ResponseType: TYPE, - SecurityPolicyViolationEventDisposition: TYPE, - ServiceWorkerState: TYPE, - ServiceWorkerUpdateViaCache: TYPE, - TransferFunction: TYPE, - VideoColorPrimaries: TYPE, - VideoEncoderBitrateMode: TYPE, - VideoMatrixCoefficients: TYPE, - VideoPixelFormat: TYPE, - VideoTransferCharacteristics: TYPE, - WebGLPowerPreference: TYPE, - WebTransportCongestionControl: TYPE, - WebTransportErrorSource: TYPE, - WorkerType: TYPE, - WriteCommandType: TYPE, + XMLHttpRequestEventMap: TYPE, + XMLHttpRequestEventTarget: TYPE_VALUE, + XMLHttpRequestEventTargetEventMap: TYPE, XMLHttpRequestResponseType: TYPE, + XMLHttpRequestUpload: TYPE_VALUE, } as Record; diff --git a/packages/types/src/lib.ts b/packages/types/src/lib.ts index 8426161dcd09..70690101ed96 100644 --- a/packages/types/src/lib.ts +++ b/packages/types/src/lib.ts @@ -4,29 +4,17 @@ // npx nx generate-lib repo type Lib = + | 'decorators' + | 'decorators.legacy' + | 'dom' + | 'dom.asynciterable' + | 'dom.iterable' | 'es5' | 'es6' - | 'es2015' | 'es7' - | 'es2016' - | 'es2017' - | 'es2018' - | 'es2019' - | 'es2020' - | 'es2021' - | 'es2022' - | 'es2023' - | 'esnext' - | 'dom' - | 'dom.iterable' - | 'dom.asynciterable' - | 'webworker' - | 'webworker.importscripts' - | 'webworker.iterable' - | 'webworker.asynciterable' - | 'scripthost' - | 'es2015.core' + | 'es2015' | 'es2015.collection' + | 'es2015.core' | 'es2015.generator' | 'es2015.iterable' | 'es2015.promise' @@ -34,71 +22,83 @@ type Lib = | 'es2015.reflect' | 'es2015.symbol' | 'es2015.symbol.wellknown' + | 'es2016' | 'es2016.array.include' + | 'es2016.full' | 'es2016.intl' + | 'es2017' | 'es2017.date' + | 'es2017.full' + | 'es2017.intl' | 'es2017.object' | 'es2017.sharedmemory' | 'es2017.string' - | 'es2017.intl' | 'es2017.typedarrays' + | 'es2018' | 'es2018.asyncgenerator' | 'es2018.asynciterable' + | 'es2018.full' | 'es2018.intl' | 'es2018.promise' | 'es2018.regexp' + | 'es2019' | 'es2019.array' + | 'es2019.full' + | 'es2019.intl' | 'es2019.object' | 'es2019.string' | 'es2019.symbol' - | 'es2019.intl' + | 'es2020' | 'es2020.bigint' | 'es2020.date' + | 'es2020.full' + | 'es2020.intl' + | 'es2020.number' | 'es2020.promise' | 'es2020.sharedmemory' | 'es2020.string' | 'es2020.symbol.wellknown' - | 'es2020.intl' - | 'es2020.number' + | 'es2021' + | 'es2021.full' + | 'es2021.intl' | 'es2021.promise' | 'es2021.string' | 'es2021.weakref' - | 'es2021.intl' + | 'es2022' | 'es2022.array' | 'es2022.error' + | 'es2022.full' | 'es2022.intl' | 'es2022.object' + | 'es2022.regexp' | 'es2022.sharedmemory' | 'es2022.string' - | 'es2022.regexp' + | 'es2023' | 'es2023.array' | 'es2023.collection' + | 'es2023.full' | 'es2023.intl' + | 'esnext' | 'esnext.array' - | 'esnext.collection' - | 'esnext.symbol' | 'esnext.asynciterable' - | 'esnext.intl' - | 'esnext.disposable' | 'esnext.bigint' - | 'esnext.string' - | 'esnext.promise' - | 'esnext.weakref' + | 'esnext.collection' | 'esnext.decorators' + | 'esnext.disposable' + | 'esnext.full' + | 'esnext.intl' + | 'esnext.iterator' | 'esnext.object' + | 'esnext.promise' | 'esnext.regexp' - | 'esnext.iterator' - | 'decorators' - | 'decorators.legacy' - | 'es2016.full' - | 'es2017.full' - | 'es2018.full' - | 'es2019.full' - | 'es2020.full' - | 'es2021.full' - | 'es2022.full' - | 'es2023.full' - | 'esnext.full' - | 'lib'; + | 'esnext.string' + | 'esnext.symbol' + | 'esnext.weakref' + | 'lib' + | 'scripthost' + | 'webworker' + | 'webworker.asynciterable' + | 'webworker.importscripts' + | 'webworker.iterable'; export { Lib }; From 064ddcabaf3b8a414d6f174e09f54e5976305216 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Mon, 14 Oct 2024 21:02:48 -0400 Subject: [PATCH 10/14] Add fixtures --- .prettierignore | 6 +- .../fixtures/as-string/fixture.ts | 1 + .../as-string/snapshots/1-TSESTree-AST.shot | 64 ++++++++++++++++ .../snapshots/2-TSESTree-Tokens.shot | 76 +++++++++++++++++++ .../as-string/snapshots/3-Babel-AST.shot | 62 +++++++++++++++ .../as-string/snapshots/4-Babel-Tokens.shot | 76 +++++++++++++++++++ .../snapshots/5-AST-Alignment-AST.shot | 70 +++++++++++++++++ .../snapshots/6-AST-Alignment-Tokens.shot | 6 ++ .../fixtures/as-string/fixture.ts | 1 + .../as-string/snapshots/1-TSESTree-AST.shot | 39 ++++++++++ .../snapshots/2-TSESTree-Tokens.shot | 66 ++++++++++++++++ .../as-string/snapshots/3-Babel-AST.shot | 39 ++++++++++ .../as-string/snapshots/4-Babel-Tokens.shot | 66 ++++++++++++++++ .../snapshots/5-AST-Alignment-AST.shot | 44 +++++++++++ .../snapshots/6-AST-Alignment-Tokens.shot | 6 ++ .../fixtures/default/fixture.ts | 2 +- .../default/snapshots/1-TSESTree-AST.shot | 42 ++++++---- .../default/snapshots/2-TSESTree-Tokens.shot | 64 +++++++++++++--- .../default/snapshots/3-Babel-AST.shot | 42 ++++++---- .../default/snapshots/4-Babel-Tokens.shot | 64 +++++++++++++--- .../snapshots/5-AST-Alignment-AST.shot | 42 ++++++---- .../tests/fixtures-with-differences-ast.shot | 2 + 22 files changed, 809 insertions(+), 71 deletions(-) create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/fixture.ts create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/1-TSESTree-AST.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/2-TSESTree-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/3-Babel-AST.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/4-Babel-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/5-AST-Alignment-AST.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/6-AST-Alignment-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/fixture.ts create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/1-TSESTree-AST.shot create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/2-TSESTree-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/3-Babel-AST.shot create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/4-Babel-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/5-AST-Alignment-AST.shot create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/6-AST-Alignment-Tokens.shot diff --git a/.prettierignore b/.prettierignore index e3259c2c815b..f369ef3cf30b 100644 --- a/.prettierignore +++ b/.prettierignore @@ -10,6 +10,10 @@ packages/eslint-plugin/tests/fixtures/indent/ # prettier errors on this case because it's semantically valid packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract-with-value/fixture.ts +# prettier doesn't yet support arbitrary export/import names +packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/fixture.ts +packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/fixture.ts + # prettier doesn't yet support `using` declaration packages/ast-spec/src/declaration/VariableDeclaration/fixtures/await-using-multiple-declarations/fixture.ts packages/ast-spec/src/declaration/VariableDeclaration/fixtures/await-using-with-value/fixture.ts @@ -34,4 +38,4 @@ packages/website/build packages/rule-tester/tests/eslint-base /.nx/cache -/.nx/workspace-data \ No newline at end of file +/.nx/workspace-data diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/fixture.ts b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/fixture.ts new file mode 100644 index 000000000000..45feb729c295 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/fixture.ts @@ -0,0 +1 @@ +export { a as "🍎" }; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..070979906fc0 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,64 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration as-string TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + ExportNamedDeclaration { + type: "ExportNamedDeclaration", + attributes: [], + declaration: null, + exportKind: "value", + source: null, + specifiers: [ + ExportSpecifier { + type: "ExportSpecifier", + exported: Literal { + type: "Literal", + raw: ""🍎"", + value: "🍎", + + range: [14, 18], + loc: { + start: { column: 14, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + exportKind: "value", + local: Identifier { + type: "Identifier", + decorators: [], + name: "a", + optional: false, + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + + range: [9, 18], + loc: { + start: { column: 9, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], + + range: [0, 21], + loc: { + start: { column: 0, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + ], + sourceType: "module", + + range: [0, 22], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..59cc76000d7b --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,76 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration as-string TSESTree - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "export", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "a", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "as", + + range: [11, 13], + loc: { + start: { column: 11, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + String { + type: "String", + value: ""🍎"", + + range: [14, 18], + loc: { + start: { column: 14, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [19, 20], + loc: { + start: { column: 19, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..5dede69de4b7 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/3-Babel-AST.shot @@ -0,0 +1,62 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration as-string Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + ExportNamedDeclaration { + type: "ExportNamedDeclaration", + assertions: [], + declaration: null, + exportKind: "value", + source: null, + specifiers: [ + ExportSpecifier { + type: "ExportSpecifier", + exported: Literal { + type: "Literal", + raw: ""🍎"", + value: "🍎", + + range: [14, 18], + loc: { + start: { column: 14, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + exportKind: "value", + local: Identifier { + type: "Identifier", + name: "a", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + + range: [9, 18], + loc: { + start: { column: 9, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], + + range: [0, 21], + loc: { + start: { column: 0, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 22], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..ef805f280e26 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,76 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration as-string Babel - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "export", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "a", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "as", + + range: [11, 13], + loc: { + start: { column: 11, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + String { + type: "String", + value: ""🍎"", + + range: [14, 18], + loc: { + start: { column: 14, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [19, 20], + loc: { + start: { column: 19, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..38622a9df05f --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,70 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration as-string AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExportNamedDeclaration { + type: 'ExportNamedDeclaration', +- attributes: Array [], ++ assertions: Array [], + declaration: null, + exportKind: 'value', + source: null, + specifiers: Array [ + ExportSpecifier { + type: 'ExportSpecifier', + exported: Literal { + type: 'Literal', + raw: '"🍎"', + value: '🍎', + + range: [14, 18], + loc: { + start: { column: 14, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + exportKind: 'value', + local: Identifier { + type: 'Identifier', +- decorators: Array [], + name: 'a', +- optional: false, + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + + range: [9, 18], + loc: { + start: { column: 9, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], + + range: [0, 21], + loc: { + start: { column: 0, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + ], +- sourceType: 'module', ++ sourceType: 'script', + + range: [0, 22], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..10f4a81340c0 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration as-string AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/fixture.ts b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/fixture.ts new file mode 100644 index 000000000000..421d8a81af3f --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/fixture.ts @@ -0,0 +1 @@ +import {} from 'mod'; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..b15565a48422 --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,39 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration as-string TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + ImportDeclaration { + type: "ImportDeclaration", + attributes: [], + importKind: "value", + source: Literal { + type: "Literal", + raw: "'mod'", + value: "mod", + + range: [15, 20], + loc: { + start: { column: 15, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + specifiers: [], + + range: [0, 21], + loc: { + start: { column: 0, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + ], + sourceType: "module", + + range: [0, 22], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..b852d000bddf --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,66 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration as-string TSESTree - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "import", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [8, 9], + loc: { + start: { column: 8, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "from", + + range: [10, 14], + loc: { + start: { column: 10, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + String { + type: "String", + value: "'mod'", + + range: [15, 20], + loc: { + start: { column: 15, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..f18033903b8e --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/3-Babel-AST.shot @@ -0,0 +1,39 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration as-string Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + ImportDeclaration { + type: "ImportDeclaration", + assertions: [], + importKind: "value", + source: Literal { + type: "Literal", + raw: "'mod'", + value: "mod", + + range: [15, 20], + loc: { + start: { column: 15, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + specifiers: [], + + range: [0, 21], + loc: { + start: { column: 0, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + ], + sourceType: "module", + + range: [0, 22], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..41838c517744 --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,66 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration as-string Babel - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "import", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [8, 9], + loc: { + start: { column: 8, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "from", + + range: [10, 14], + loc: { + start: { column: 10, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + String { + type: "String", + value: "'mod'", + + range: [15, 20], + loc: { + start: { column: 15, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..797210adaaed --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,44 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration as-string AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ImportDeclaration { + type: 'ImportDeclaration', +- attributes: Array [], ++ assertions: Array [], + importKind: 'value', + source: Literal { + type: 'Literal', + raw: '\\'mod\\'', + value: 'mod', + + range: [15, 20], + loc: { + start: { column: 15, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + specifiers: Array [], + + range: [0, 21], + loc: { + start: { column: 0, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + ], + sourceType: 'module', + + range: [0, 22], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..93c395a91a60 --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration as-string AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/fixture.ts b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/fixture.ts index b4fa44ea4352..ca1014f30e96 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/fixture.ts +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/fixture.ts @@ -1 +1 @@ -import a from 'mod'; +import { "🍎" as a } from "mod"; 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 0cd95609cb32..b616f7c9c87e 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 @@ -10,49 +10,61 @@ Program { importKind: "value", source: Literal { type: "Literal", - raw: "'mod'", + raw: ""mod"", value: "mod", - range: [14, 19], + range: [26, 31], loc: { - start: { column: 14, line: 1 }, - end: { column: 19, line: 1 }, + start: { column: 26, line: 1 }, + end: { column: 31, line: 1 }, }, }, specifiers: [ - ImportDefaultSpecifier { - type: "ImportDefaultSpecifier", + ImportSpecifier { + type: "ImportSpecifier", + imported: Literal { + type: "Literal", + raw: ""🍎"", + value: "🍎", + + range: [9, 13], + loc: { + start: { column: 9, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + importKind: "value", local: Identifier { type: "Identifier", decorators: [], name: "a", optional: false, - range: [7, 8], + range: [17, 18], loc: { - start: { column: 7, line: 1 }, - end: { column: 8, line: 1 }, + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, }, }, - range: [7, 8], + range: [9, 18], loc: { - start: { column: 7, line: 1 }, - end: { column: 8, line: 1 }, + start: { column: 9, line: 1 }, + end: { column: 18, line: 1 }, }, }, ], - range: [0, 20], + range: [0, 32], loc: { start: { column: 0, line: 1 }, - end: { column: 20, line: 1 }, + end: { column: 32, line: 1 }, }, }, ], sourceType: "module", - range: [0, 21], + range: [0, 33], loc: { start: { column: 0, line: 1 }, end: { column: 0, line: 2 }, 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 7ee197190751..6619475370ad 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 @@ -12,9 +12,9 @@ exports[`AST Fixtures declaration ImportDeclaration default TSESTree - Tokens 1` end: { column: 6, line: 1 }, }, }, - Identifier { - type: "Identifier", - value: "a", + Punctuator { + type: "Punctuator", + value: "{", range: [7, 8], loc: { @@ -22,9 +22,9 @@ exports[`AST Fixtures declaration ImportDeclaration default TSESTree - Tokens 1` end: { column: 8, line: 1 }, }, }, - Identifier { - type: "Identifier", - value: "from", + String { + type: "String", + value: ""🍎"", range: [9, 13], loc: { @@ -32,19 +32,29 @@ exports[`AST Fixtures declaration ImportDeclaration default TSESTree - Tokens 1` end: { column: 13, line: 1 }, }, }, - String { - type: "String", - value: "'mod'", + Identifier { + type: "Identifier", + value: "as", - range: [14, 19], + range: [14, 16], loc: { start: { column: 14, line: 1 }, - end: { column: 19, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "a", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, }, }, Punctuator { type: "Punctuator", - value: ";", + value: "}", range: [19, 20], loc: { @@ -52,5 +62,35 @@ exports[`AST Fixtures declaration ImportDeclaration default TSESTree - Tokens 1` end: { column: 20, line: 1 }, }, }, + Identifier { + type: "Identifier", + value: "from", + + range: [21, 25], + loc: { + start: { column: 21, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + String { + type: "String", + value: ""mod"", + + range: [26, 31], + loc: { + start: { column: 26, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [31, 32], + loc: { + start: { column: 31, line: 1 }, + end: { column: 32, line: 1 }, + }, + }, ] `; 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 4f1b046fcb67..efa8ae4caffe 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 @@ -10,47 +10,59 @@ Program { importKind: "value", source: Literal { type: "Literal", - raw: "'mod'", + raw: ""mod"", value: "mod", - range: [14, 19], + range: [26, 31], loc: { - start: { column: 14, line: 1 }, - end: { column: 19, line: 1 }, + start: { column: 26, line: 1 }, + end: { column: 31, line: 1 }, }, }, specifiers: [ - ImportDefaultSpecifier { - type: "ImportDefaultSpecifier", + ImportSpecifier { + type: "ImportSpecifier", + imported: Literal { + type: "Literal", + raw: ""🍎"", + value: "🍎", + + range: [9, 13], + loc: { + start: { column: 9, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + importKind: "value", local: Identifier { type: "Identifier", name: "a", - range: [7, 8], + range: [17, 18], loc: { - start: { column: 7, line: 1 }, - end: { column: 8, line: 1 }, + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, }, }, - range: [7, 8], + range: [9, 18], loc: { - start: { column: 7, line: 1 }, - end: { column: 8, line: 1 }, + start: { column: 9, line: 1 }, + end: { column: 18, line: 1 }, }, }, ], - range: [0, 20], + range: [0, 32], loc: { start: { column: 0, line: 1 }, - end: { column: 20, line: 1 }, + end: { column: 32, line: 1 }, }, }, ], sourceType: "module", - range: [0, 21], + range: [0, 33], loc: { start: { column: 0, line: 1 }, end: { column: 0, line: 2 }, 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 6a16623cd286..37a8fedc16a8 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 @@ -12,9 +12,9 @@ exports[`AST Fixtures declaration ImportDeclaration default Babel - Tokens 1`] = end: { column: 6, line: 1 }, }, }, - Identifier { - type: "Identifier", - value: "a", + Punctuator { + type: "Punctuator", + value: "{", range: [7, 8], loc: { @@ -22,9 +22,9 @@ exports[`AST Fixtures declaration ImportDeclaration default Babel - Tokens 1`] = end: { column: 8, line: 1 }, }, }, - Identifier { - type: "Identifier", - value: "from", + String { + type: "String", + value: ""🍎"", range: [9, 13], loc: { @@ -32,19 +32,29 @@ exports[`AST Fixtures declaration ImportDeclaration default Babel - Tokens 1`] = end: { column: 13, line: 1 }, }, }, - String { - type: "String", - value: "'mod'", + Identifier { + type: "Identifier", + value: "as", - range: [14, 19], + range: [14, 16], loc: { start: { column: 14, line: 1 }, - end: { column: 19, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "a", + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, }, }, Punctuator { type: "Punctuator", - value: ";", + value: "}", range: [19, 20], loc: { @@ -52,5 +62,35 @@ exports[`AST Fixtures declaration ImportDeclaration default Babel - Tokens 1`] = end: { column: 20, line: 1 }, }, }, + Identifier { + type: "Identifier", + value: "from", + + range: [21, 25], + loc: { + start: { column: 21, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + String { + type: "String", + value: ""mod"", + + range: [26, 31], + loc: { + start: { column: 26, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [31, 32], + loc: { + start: { column: 31, line: 1 }, + end: { column: 32, line: 1 }, + }, + }, ] `; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/5-AST-Alignment-AST.shot index 1e180527e932..2b849831186c 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/5-AST-Alignment-AST.shot @@ -15,49 +15,61 @@ exports[`AST Fixtures declaration ImportDeclaration default AST Alignment - AST importKind: 'value', source: Literal { type: 'Literal', - raw: '\\'mod\\'', + raw: '"mod"', value: 'mod', - range: [14, 19], + range: [26, 31], loc: { - start: { column: 14, line: 1 }, - end: { column: 19, line: 1 }, + start: { column: 26, line: 1 }, + end: { column: 31, line: 1 }, }, }, specifiers: Array [ - ImportDefaultSpecifier { - type: 'ImportDefaultSpecifier', + ImportSpecifier { + type: 'ImportSpecifier', + imported: Literal { + type: 'Literal', + raw: '"🍎"', + value: '🍎', + + range: [9, 13], + loc: { + start: { column: 9, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + importKind: 'value', local: Identifier { type: 'Identifier', - decorators: Array [], name: 'a', - optional: false, - range: [7, 8], + range: [17, 18], loc: { - start: { column: 7, line: 1 }, - end: { column: 8, line: 1 }, + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, }, }, - range: [7, 8], + range: [9, 18], loc: { - start: { column: 7, line: 1 }, - end: { column: 8, line: 1 }, + start: { column: 9, line: 1 }, + end: { column: 18, line: 1 }, }, }, ], - range: [0, 20], + range: [0, 32], loc: { start: { column: 0, line: 1 }, - end: { column: 20, line: 1 }, + end: { column: 32, line: 1 }, }, }, ], sourceType: 'module', - range: [0, 21], + range: [0, 33], loc: { start: { column: 0, line: 1 }, end: { column: 0, line: 2 }, diff --git a/packages/ast-spec/tests/fixtures-with-differences-ast.shot b/packages/ast-spec/tests/fixtures-with-differences-ast.shot index b44a79dd02a6..2458f8800f80 100644 --- a/packages/ast-spec/tests/fixtures-with-differences-ast.shot +++ b/packages/ast-spec/tests/fixtures-with-differences-ast.shot @@ -28,6 +28,7 @@ exports[`AST Fixtures List fixtures with AST differences 1`] = ` "declaration/ExportDefaultDeclaration/fixtures/identifier/fixture.ts", "declaration/ExportDefaultDeclaration/fixtures/interface/fixture.ts", "declaration/ExportNamedDeclaration/fixtures/aliased/fixture.ts", + "declaration/ExportNamedDeclaration/fixtures/as-string/fixture.ts", "declaration/ExportNamedDeclaration/fixtures/class/fixture.ts", "declaration/ExportNamedDeclaration/fixtures/declare-function/fixture.ts", "declaration/ExportNamedDeclaration/fixtures/enum/fixture.ts", @@ -46,6 +47,7 @@ exports[`AST Fixtures List fixtures with AST differences 1`] = ` "declaration/FunctionDeclaration/fixtures/returnType/fixture.ts", "declaration/FunctionDeclaration/fixtures/type-param-many/fixture.ts", "declaration/FunctionDeclaration/fixtures/type-param-one/fixture.ts", + "declaration/ImportDeclaration/fixtures/as-string/fixture.ts", "declaration/ImportDeclaration/fixtures/assertion/fixture.ts", "declaration/ImportDeclaration/fixtures/default-and-named-many/fixture.ts", "declaration/ImportDeclaration/fixtures/default-and-named-none/fixture.ts", From c49e85fddae12b4351926f2aa77614cdf932e092 Mon Sep 17 00:00:00 2001 From: Brad Zacher Date: Thu, 17 Oct 2024 22:06:36 +1030 Subject: [PATCH 11/14] more fixtures and ban bad export cases --- .prettierignore | 34 +++-- package.json | 1 + .../fixture.ts | 1 + .../snapshots/1-TSESTree-Error.shot | 8 ++ .../snapshots/2-Babel-Error.shot | 3 + .../snapshots/3-Alignment-Error.shot | 3 + .../fixture.ts | 1 + .../snapshots/1-TSESTree-Error.shot | 8 ++ .../snapshots/2-Babel-Error.shot | 3 + .../snapshots/3-Alignment-Error.shot | 3 + .../fixture.ts | 1 + .../snapshots/1-TSESTree-Error.shot | 8 ++ .../snapshots/2-Babel-Error.shot} | 2 +- .../snapshots/3-Alignment-Error.shot} | 2 +- .../fixture.ts | 1 + .../snapshots/1-TSESTree-Error.shot | 8 ++ .../snapshots/2-Babel-Error.shot | 3 + .../snapshots/3-Alignment-Error.shot | 2 +- .../fixture.ts | 1 + .../snapshots/1-TSESTree-Error.shot | 8 ++ .../snapshots/2-Babel-Error.shot} | 4 +- .../snapshots/3-Alignment-Error.shot | 3 + .../fixture.ts | 1 + .../snapshots/1-TSESTree-Error.shot | 8 ++ .../snapshots/2-Babel-Error.shot | 3 + .../snapshots/3-Alignment-Error.shot | 3 + .../fixture.ts | 1 + .../snapshots/1-TSESTree-Error.shot | 8 ++ .../snapshots/2-Babel-Error.shot | 6 + .../snapshots/3-Alignment-Error.shot | 3 + .../fixture.ts | 1 + .../snapshots/1-TSESTree-Error.shot | 8 ++ .../snapshots/2-Babel-Error.shot | 4 +- .../snapshots/3-Alignment-Error.shot} | 2 +- .../fixture.ts | 1 + .../snapshots/1-TSESTree-Error.shot | 8 ++ .../snapshots/2-Babel-Error.shot | 4 +- .../snapshots/3-Alignment-Error.shot} | 2 +- .../export-as-string-literal/fixture.ts | 1 - .../snapshots/2-TSESTree-Tokens.shot | 116 ------------------ .../snapshots/3-Babel-AST.shot | 101 --------------- .../snapshots/4-Babel-Tokens.shot | 116 ------------------ .../snapshots/6-AST-Alignment-Tokens.shot | 6 - .../_error_/literal-braced/fixture.ts | 1 - .../fixtures/as-string/fixture.ts | 1 - .../snapshots/6-AST-Alignment-Tokens.shot | 6 - .../fixture.ts | 1 + .../snapshots/1-TSESTree-AST.shot | 14 +-- .../snapshots/2-TSESTree-Tokens.shot | 18 ++- .../snapshots/3-Babel-AST.shot | 14 +-- .../snapshots/4-Babel-Tokens.shot | 18 ++- .../snapshots/5-AST-Alignment-AST.shot | 14 +-- .../snapshots/6-AST-Alignment-Tokens.shot | 6 + .../fixture.ts | 0 .../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/6-AST-Alignment-Tokens.shot | 6 + .../fixture.ts | 1 + .../snapshots/1-TSESTree-AST.shot | 74 +++++++++++ .../snapshots/2-TSESTree-Tokens.shot | 96 +++++++++++++++ .../snapshots/3-Babel-AST.shot | 72 +++++++++++ .../snapshots/4-Babel-Tokens.shot | 96 +++++++++++++++ .../snapshots/5-AST-Alignment-AST.shot | 79 ++++++++++++ .../snapshots/6-AST-Alignment-Tokens.shot | 6 + .../fixture.ts | 1 + .../snapshots/1-TSESTree-AST.shot | 20 +-- .../snapshots/2-TSESTree-Tokens.shot | 20 +-- .../snapshots/3-Babel-AST.shot | 20 +-- .../snapshots/4-Babel-Tokens.shot | 20 +-- .../snapshots/5-AST-Alignment-AST.shot | 20 +-- .../snapshots/6-AST-Alignment-Tokens.shot | 6 + .../fixture.ts | 1 + .../snapshots/1-TSESTree-AST.shot | 68 +++++----- .../snapshots/2-TSESTree-Tokens.shot | 96 +++++++++++++++ .../snapshots/3-Babel-AST.shot | 101 +++++++++++++++ .../snapshots/4-Babel-Tokens.shot | 96 +++++++++++++++ .../snapshots/5-AST-Alignment-AST.shot | 68 +++++----- .../snapshots/6-AST-Alignment-Tokens.shot | 6 + .../fixture.ts | 0 .../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/6-AST-Alignment-Tokens.shot | 6 + .../braced-identifier-with-source/fixture.ts | 1 + .../snapshots/1-TSESTree-AST.shot | 75 +++++++++++ .../snapshots/2-TSESTree-Tokens.shot | 76 ++++++++++++ .../snapshots/3-Babel-AST.shot | 71 +++++++++++ .../snapshots/4-Babel-Tokens.shot | 76 ++++++++++++ .../snapshots/5-AST-Alignment-AST.shot | 80 ++++++++++++ .../snapshots/6-AST-Alignment-Tokens.shot | 6 + .../fixture.ts | 0 .../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/6-AST-Alignment-Tokens.shot | 6 + .../fixture.ts | 1 + .../snapshots/1-TSESTree-AST.shot | 74 +++++++++++ .../snapshots/2-TSESTree-Tokens.shot | 96 +++++++++++++++ .../snapshots/3-Babel-AST.shot | 72 +++++++++++ .../snapshots/4-Babel-Tokens.shot | 96 +++++++++++++++ .../snapshots/5-AST-Alignment-AST.shot | 79 ++++++++++++ .../snapshots/6-AST-Alignment-Tokens.shot | 6 + .../fixture.ts | 1 + .../snapshots/1-TSESTree-AST.shot | 105 ++++++++++++++++ .../snapshots/2-TSESTree-Tokens.shot | 96 +++++++++++++++ .../snapshots/3-Babel-AST.shot | 105 ++++++++++++++++ .../snapshots/4-Babel-Tokens.shot | 96 +++++++++++++++ .../snapshots/5-AST-Alignment-AST.shot | 110 +++++++++++++++++ .../snapshots/6-AST-Alignment-Tokens.shot | 6 + .../fixture.ts | 1 + .../snapshots/1-TSESTree-AST.shot | 73 +++++++++++ .../snapshots/2-TSESTree-Tokens.shot | 38 +++--- .../snapshots/3-Babel-AST.shot | 73 +++++++++++ .../snapshots/4-Babel-Tokens.shot | 38 +++--- .../snapshots/5-AST-Alignment-AST.shot | 78 ++++++++++++ .../snapshots/6-AST-Alignment-Tokens.shot | 6 + .../snapshots/6-AST-Alignment-Tokens.shot | 6 - .../snapshots/6-AST-Alignment-Tokens.shot | 6 - .../ExportNamedDeclaration/spec.ts | 13 +- .../fixture.ts | 1 + .../snapshots/1-TSESTree-Error.shot | 8 ++ .../snapshots/2-Babel-Error.shot | 3 + .../snapshots/3-Alignment-Error.shot} | 2 +- .../fixture.ts | 0 .../snapshots/1-TSESTree-Error.shot | 2 +- .../snapshots/2-Babel-Error.shot | 2 +- .../snapshots/3-Alignment-Error.shot | 2 +- .../_error_/default-string-literal/fixture.ts | 1 + .../snapshots/1-TSESTree-Error.shot | 8 ++ .../snapshots/2-Babel-Error.shot | 3 + .../snapshots/3-Alignment-Error.shot} | 2 +- .../fixtures/_error_/name/fixture.ts | 1 - .../snapshots/1-Babel-Error.shot | 3 - .../snapshots/2-Alignment-Error.shot | 3 - .../fixture.ts | 1 + .../snapshots/1-TSESTree-Error.shot | 8 ++ .../snapshots/2-Babel-Error.shot | 3 + .../snapshots/3-Alignment-Error.shot | 2 +- .../fixture.ts | 1 + .../snapshots/1-TSESTree-Error.shot | 8 ++ .../snapshots/2-Babel-Error.shot | 3 + .../snapshots/3-Alignment-Error.shot} | 2 +- .../fixture.ts | 1 + .../snapshots/1-TSESTree-Error.shot | 4 +- .../snapshots/2-Babel-Error.shot | 3 + .../snapshots/3-Alignment-Error.shot} | 2 +- .../fixture.ts | 1 + .../snapshots/1-TSESTree-Error.shot | 8 ++ .../snapshots/2-Babel-Error.shot | 3 + .../snapshots/3-Alignment-Error.shot} | 2 +- .../fixture.ts | 1 + .../snapshots/1-TSESTree-Error.shot | 8 ++ .../snapshots/2-Babel-Error.shot | 3 + .../snapshots/3-Alignment-Error.shot | 3 + .../fixture.ts | 1 + .../snapshots/1-TSESTree-Error.shot | 8 ++ .../snapshots/2-Babel-Error.shot | 3 + .../snapshots/3-Alignment-Error.shot | 3 + .../fixture.ts | 1 + .../snapshots/1-TSESTree-Error.shot | 8 ++ .../snapshots/2-Babel-Error.shot | 3 + .../snapshots/3-Alignment-Error.shot | 3 + .../snapshots/1-Babel-Error.shot | 3 - .../snapshots/2-Alignment-Error.shot | 3 - .../snapshots/1-Babel-Error.shot | 3 - .../snapshots/2-Alignment-Error.shot | 3 - .../snapshots/1-Babel-Error.shot | 3 - .../snapshots/2-Alignment-Error.shot | 3 - .../snapshots/1-Babel-Error.shot | 3 - .../snapshots/2-Alignment-Error.shot | 3 - .../snapshots/1-Babel-Error.shot | 3 - .../snapshots/2-Alignment-Error.shot | 3 - .../snapshots/1-Babel-Error.shot | 3 - .../snapshots/2-Alignment-Error.shot | 3 - .../fixtures/as-string/fixture.ts | 1 - .../as-string/snapshots/1-TSESTree-AST.shot | 39 ------ .../as-string/snapshots/3-Babel-AST.shot | 39 ------ .../snapshots/5-AST-Alignment-AST.shot | 44 ------- .../fixtures/default/fixture.ts | 2 +- .../default/snapshots/1-TSESTree-AST.shot | 42 +++---- .../default/snapshots/2-TSESTree-Tokens.shot | 64 ++-------- .../default/snapshots/3-Babel-AST.shot | 42 +++---- .../default/snapshots/4-Babel-Tokens.shot | 64 ++-------- .../snapshots/5-AST-Alignment-AST.shot | 42 +++---- .../fixture.ts | 1 + .../snapshots/1-TSESTree-AST.shot | 73 +++++++++++ .../snapshots/2-TSESTree-Tokens.shot | 96 +++++++++++++++ .../snapshots/3-Babel-AST.shot | 71 +++++++++++ .../snapshots/4-Babel-Tokens.shot | 96 +++++++++++++++ .../snapshots/5-AST-Alignment-AST.shot | 78 ++++++++++++ .../snapshots/6-AST-Alignment-Tokens.shot | 6 + .../fixture.ts | 3 +- .../using-multiple-declarations/fixture.ts | 3 +- .../fixtures/component/fixture.tsx | 6 +- .../_error_/literal-specifier/fixture.ts | 1 + .../snapshots/1-TSESTree-Error.shot | 8 ++ .../snapshots/2-Babel-Error.shot | 6 + .../snapshots/3-Alignment-Error.shot | 3 + .../export-as-string-literal-from/fixture.ts | 1 - .../snapshots/6-AST-Alignment-Tokens.shot | 6 - .../fixtures/literal-specifier/fixture.ts | 1 + .../snapshots/1-TSESTree-AST.shot | 74 +++++++++++ .../snapshots/2-TSESTree-Tokens.shot | 96 +++++++++++++++ .../snapshots/3-Babel-AST.shot | 72 +++++++++++ .../snapshots/4-Babel-Tokens.shot | 96 +++++++++++++++ .../snapshots/5-AST-Alignment-AST.shot | 79 ++++++++++++ .../snapshots/6-AST-Alignment-Tokens.shot | 2 +- .../value-export-specifier/fixture.ts | 1 + .../snapshots/1-TSESTree-AST.shot | 74 +++++++++++ .../snapshots/2-TSESTree-Tokens.shot | 96 +++++++++++++++ .../snapshots/3-Babel-AST.shot | 72 +++++++++++ .../snapshots/4-Babel-Tokens.shot | 96 +++++++++++++++ .../snapshots/5-AST-Alignment-AST.shot | 79 ++++++++++++ .../snapshots/6-AST-Alignment-Tokens.shot | 2 +- .../src/special/ExportSpecifier/spec.ts | 19 +-- .../class-decl-in-const-modifier/fixture.ts | 2 +- .../class-expr-const-in-modifier/fixture.ts | 2 +- .../fixture.ts | 2 +- .../fixture.ts | 2 +- .../class-expr-const-modifier/fixture.ts | 2 +- .../class-expr-in-const-modifier/fixture.ts | 2 +- .../fixture.ts | 2 +- .../tests/fixtures-with-differences-ast.shot | 20 ++- .../fixtures-with-differences-errors.shot | 2 - .../src/rules/consistent-type-exports.ts | 14 ++- .../rules/explicit-module-boundary-types.ts | 2 +- packages/scope-manager/package.json | 1 + .../src/referencer/ExportVisitor.ts | 5 +- .../fixtures/jsx/namespaced-attribute.tsx | 8 +- packages/types/src/ts-estree.ts | 23 ++-- packages/typescript-estree/src/convert.ts | 18 ++- yarn.lock | 3 +- 239 files changed, 4254 insertions(+), 1005 deletions(-) create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-identifier-aliased-to-number-literal-with-source/fixture.ts create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-identifier-aliased-to-number-literal-with-source/snapshots/1-TSESTree-Error.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-identifier-aliased-to-number-literal-with-source/snapshots/2-Babel-Error.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-identifier-aliased-to-number-literal-with-source/snapshots/3-Alignment-Error.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-identifier-aliased-to-number-literal-without-source/fixture.ts create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-identifier-aliased-to-number-literal-without-source/snapshots/1-TSESTree-Error.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-identifier-aliased-to-number-literal-without-source/snapshots/2-Babel-Error.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-identifier-aliased-to-number-literal-without-source/snapshots/3-Alignment-Error.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-number-literal-with-source/fixture.ts create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-number-literal-with-source/snapshots/1-TSESTree-Error.shot rename packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/{export-as-string-literal/snapshots/3-Alignment-Error.shot => braced-number-literal-with-source/snapshots/2-Babel-Error.shot} (52%) rename packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/{literal-braced/snapshots/2-Alignment-Error.shot => braced-number-literal-with-source/snapshots/3-Alignment-Error.shot} (59%) create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-number-literal-without-source/fixture.ts create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-number-literal-without-source/snapshots/1-TSESTree-Error.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-number-literal-without-source/snapshots/2-Babel-Error.shot rename packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/{literal-braced => braced-number-literal-without-source}/snapshots/3-Alignment-Error.shot (58%) create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-identifier-without-source/fixture.ts create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-identifier-without-source/snapshots/1-TSESTree-Error.shot rename packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/{literal-braced/snapshots/1-Babel-Error.shot => braced-string-literal-aliased-to-identifier-without-source/snapshots/2-Babel-Error.shot} (56%) create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-identifier-without-source/snapshots/3-Alignment-Error.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-number-literal-without-source/fixture.ts create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-number-literal-without-source/snapshots/1-TSESTree-Error.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-number-literal-without-source/snapshots/2-Babel-Error.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-number-literal-without-source/snapshots/3-Alignment-Error.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-string-literal-without-source/fixture.ts create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-string-literal-without-source/snapshots/1-TSESTree-Error.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-string-literal-without-source/snapshots/2-Babel-Error.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-string-literal-without-source/snapshots/3-Alignment-Error.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-many-without-source/fixture.ts create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-many-without-source/snapshots/1-TSESTree-Error.shot rename packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/{literal-braced => braced-string-literal-many-without-source}/snapshots/2-Babel-Error.shot (59%) rename packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/{literal-braced/snapshots/1-TSESTree-Error.shot => braced-string-literal-many-without-source/snapshots/3-Alignment-Error.shot} (56%) create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-without-source/fixture.ts create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-without-source/snapshots/1-TSESTree-Error.shot rename packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/{export-as-string-literal => braced-string-literal-without-source}/snapshots/2-Babel-Error.shot (62%) rename packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/{export-as-string-literal/snapshots/1-TSESTree-Error.shot => braced-string-literal-without-source/snapshots/3-Alignment-Error.shot} (58%) delete mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/fixture.ts delete mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/2-TSESTree-Tokens.shot delete mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/3-Babel-AST.shot delete mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/4-Babel-Tokens.shot delete mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/6-AST-Alignment-Tokens.shot delete mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/literal-braced/fixture.ts delete mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/fixture.ts delete mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/6-AST-Alignment-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-with-source/fixture.ts rename packages/ast-spec/src/{special/ExportSpecifier/fixtures/export-as-string-literal-from => declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-with-source}/snapshots/1-TSESTree-AST.shot (81%) rename packages/ast-spec/src/{special/ExportSpecifier/fixtures/export-as-string-literal-from => declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-with-source}/snapshots/2-TSESTree-Tokens.shot (79%) rename packages/ast-spec/src/{special/ExportSpecifier/fixtures/export-as-string-literal-from => declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-with-source}/snapshots/3-Babel-AST.shot (80%) rename packages/ast-spec/src/{special/ExportSpecifier/fixtures/export-as-string-literal-from => declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-with-source}/snapshots/4-Babel-Tokens.shot (79%) rename packages/ast-spec/src/{special/ExportSpecifier/fixtures/export-as-string-literal-from => declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-with-source}/snapshots/5-AST-Alignment-AST.shot (82%) create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-with-source/snapshots/6-AST-Alignment-Tokens.shot rename packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/{aliased => braced-identifier-aliased-to-identifier-without-source}/fixture.ts (100%) rename packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/{aliased => braced-identifier-aliased-to-identifier-without-source}/snapshots/1-TSESTree-AST.shot (91%) rename packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/{aliased => braced-identifier-aliased-to-identifier-without-source}/snapshots/2-TSESTree-Tokens.shot (90%) rename packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/{aliased => braced-identifier-aliased-to-identifier-without-source}/snapshots/3-Babel-AST.shot (90%) rename packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/{aliased => braced-identifier-aliased-to-identifier-without-source}/snapshots/4-Babel-Tokens.shot (90%) rename packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/{aliased => braced-identifier-aliased-to-identifier-without-source}/snapshots/5-AST-Alignment-AST.shot (92%) create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-without-source/snapshots/6-AST-Alignment-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-with-source/fixture.ts create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-with-source/snapshots/1-TSESTree-AST.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-with-source/snapshots/2-TSESTree-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-with-source/snapshots/3-Babel-AST.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-with-source/snapshots/4-Babel-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-with-source/snapshots/5-AST-Alignment-AST.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-with-source/snapshots/6-AST-Alignment-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-without-source/fixture.ts rename packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/{as-string => braced-identifier-aliased-to-string-literal-without-source}/snapshots/1-TSESTree-AST.shot (72%) rename packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/{as-string => braced-identifier-aliased-to-string-literal-without-source}/snapshots/2-TSESTree-Tokens.shot (77%) rename packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/{as-string => braced-identifier-aliased-to-string-literal-without-source}/snapshots/3-Babel-AST.shot (72%) rename packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/{as-string => braced-identifier-aliased-to-string-literal-without-source}/snapshots/4-Babel-Tokens.shot (77%) rename packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/{as-string => braced-identifier-aliased-to-string-literal-without-source}/snapshots/5-AST-Alignment-AST.shot (75%) create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-without-source/snapshots/6-AST-Alignment-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-with-source/fixture.ts rename packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/{_error_/export-as-string-literal => braced-identifier-many-with-source}/snapshots/1-TSESTree-AST.shot (51%) create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-with-source/snapshots/2-TSESTree-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-with-source/snapshots/3-Babel-AST.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-with-source/snapshots/4-Babel-Tokens.shot rename packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/{_error_/export-as-string-literal => braced-identifier-many-with-source}/snapshots/5-AST-Alignment-AST.shot (54%) create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-with-source/snapshots/6-AST-Alignment-Tokens.shot rename packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/{identifier-many => braced-identifier-many-without-source}/fixture.ts (100%) rename packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/{identifier-many => braced-identifier-many-without-source}/snapshots/1-TSESTree-AST.shot (95%) rename packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/{identifier-many => braced-identifier-many-without-source}/snapshots/2-TSESTree-Tokens.shot (91%) rename packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/{identifier-many => braced-identifier-many-without-source}/snapshots/3-Babel-AST.shot (94%) rename packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/{identifier-many => braced-identifier-many-without-source}/snapshots/4-Babel-Tokens.shot (91%) rename packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/{identifier-many => braced-identifier-many-without-source}/snapshots/5-AST-Alignment-AST.shot (95%) create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-without-source/snapshots/6-AST-Alignment-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-with-source/fixture.ts create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-with-source/snapshots/1-TSESTree-AST.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-with-source/snapshots/2-TSESTree-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-with-source/snapshots/3-Babel-AST.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-with-source/snapshots/4-Babel-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-with-source/snapshots/5-AST-Alignment-AST.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-with-source/snapshots/6-AST-Alignment-Tokens.shot rename packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/{identifier-braced => braced-identifier-without-source}/fixture.ts (100%) rename packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/{identifier-braced => braced-identifier-without-source}/snapshots/1-TSESTree-AST.shot (92%) rename packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/{identifier-braced => braced-identifier-without-source}/snapshots/2-TSESTree-Tokens.shot (88%) rename packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/{identifier-braced => braced-identifier-without-source}/snapshots/3-Babel-AST.shot (92%) rename packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/{identifier-braced => braced-identifier-without-source}/snapshots/4-Babel-Tokens.shot (88%) rename packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/{identifier-braced => braced-identifier-without-source}/snapshots/5-AST-Alignment-AST.shot (93%) create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-without-source/snapshots/6-AST-Alignment-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-aliased-to-identifier-with-source/fixture.ts create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-aliased-to-identifier-with-source/snapshots/1-TSESTree-AST.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-aliased-to-identifier-with-source/snapshots/2-TSESTree-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-aliased-to-identifier-with-source/snapshots/3-Babel-AST.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-aliased-to-identifier-with-source/snapshots/4-Babel-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-aliased-to-identifier-with-source/snapshots/5-AST-Alignment-AST.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-aliased-to-identifier-with-source/snapshots/6-AST-Alignment-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-many-with-source/fixture.ts create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-many-with-source/snapshots/1-TSESTree-AST.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-many-with-source/snapshots/2-TSESTree-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-many-with-source/snapshots/3-Babel-AST.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-many-with-source/snapshots/4-Babel-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-many-with-source/snapshots/5-AST-Alignment-AST.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-many-with-source/snapshots/6-AST-Alignment-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-with-source/fixture.ts create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-with-source/snapshots/1-TSESTree-AST.shot rename packages/ast-spec/src/declaration/{ImportDeclaration/fixtures/as-string => ExportNamedDeclaration/fixtures/braced-string-literal-with-source}/snapshots/2-TSESTree-Tokens.shot (57%) create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-with-source/snapshots/3-Babel-AST.shot rename packages/ast-spec/src/declaration/{ImportDeclaration/fixtures/as-string => ExportNamedDeclaration/fixtures/braced-string-literal-with-source}/snapshots/4-Babel-Tokens.shot (58%) create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-with-source/snapshots/5-AST-Alignment-AST.shot create mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-with-source/snapshots/6-AST-Alignment-Tokens.shot delete mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/6-AST-Alignment-Tokens.shot delete mode 100644 packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/6-AST-Alignment-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-and-named-and-namespace/fixture.ts create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-and-named-and-namespace/snapshots/1-TSESTree-Error.shot create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-and-named-and-namespace/snapshots/2-Babel-Error.shot rename packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/{default-non-identifier/snapshots/1-Babel-Error.shot => default-and-named-and-namespace/snapshots/3-Alignment-Error.shot} (53%) rename packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/{default-non-identifier => default-number-literal}/fixture.ts (100%) rename packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/{default-non-identifier => default-number-literal}/snapshots/1-TSESTree-Error.shot (81%) rename packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/{default-non-identifier => default-number-literal}/snapshots/2-Babel-Error.shot (68%) rename packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/{default-non-identifier => default-number-literal}/snapshots/3-Alignment-Error.shot (64%) create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-string-literal/fixture.ts create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-string-literal/snapshots/1-TSESTree-Error.shot create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-string-literal/snapshots/2-Babel-Error.shot rename packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/{default-non-identifier/snapshots/2-Alignment-Error.shot => default-string-literal/snapshots/3-Alignment-Error.shot} (64%) delete mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/name/fixture.ts delete mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-and-namespace/snapshots/1-Babel-Error.shot delete mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-and-namespace/snapshots/2-Alignment-Error.shot create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-identifier-aliased-to-number-literal/fixture.ts create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-identifier-aliased-to-number-literal/snapshots/1-TSESTree-Error.shot create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-identifier-aliased-to-number-literal/snapshots/2-Babel-Error.shot rename packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/{name => named-identifier-aliased-to-number-literal}/snapshots/3-Alignment-Error.shot (57%) create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-identifier-aliased-to-string-literal/fixture.ts create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-identifier-aliased-to-string-literal/snapshots/1-TSESTree-Error.shot create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-identifier-aliased-to-string-literal/snapshots/2-Babel-Error.shot rename packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/{name/snapshots/2-Alignment-Error.shot => named-identifier-aliased-to-string-literal/snapshots/3-Alignment-Error.shot} (57%) create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-identifier/fixture.ts rename packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/{name => named-number-literal-aliased-to-identifier}/snapshots/1-TSESTree-Error.shot (62%) create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-identifier/snapshots/2-Babel-Error.shot rename packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/{name/snapshots/2-Babel-Error.shot => named-number-literal-aliased-to-identifier/snapshots/3-Alignment-Error.shot} (57%) create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-number-literal/fixture.ts create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-number-literal/snapshots/1-TSESTree-Error.shot create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-number-literal/snapshots/2-Babel-Error.shot rename packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/{name/snapshots/1-Babel-Error.shot => named-number-literal-aliased-to-number-literal/snapshots/3-Alignment-Error.shot} (56%) create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-string-literal/fixture.ts create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-string-literal/snapshots/1-TSESTree-Error.shot create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-string-literal/snapshots/2-Babel-Error.shot create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-string-literal/snapshots/3-Alignment-Error.shot create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal-aliased-to-number-literal/fixture.ts create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal-aliased-to-number-literal/snapshots/1-TSESTree-Error.shot create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal-aliased-to-number-literal/snapshots/2-Babel-Error.shot create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal-aliased-to-number-literal/snapshots/3-Alignment-Error.shot create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal-aliased-to-string-literal/fixture.ts create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal-aliased-to-string-literal/snapshots/1-TSESTree-Error.shot create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal-aliased-to-string-literal/snapshots/2-Babel-Error.shot create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal-aliased-to-string-literal/snapshots/3-Alignment-Error.shot delete mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal/snapshots/1-Babel-Error.shot delete mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal/snapshots/2-Alignment-Error.shot delete mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/namespace-and-default/snapshots/1-Babel-Error.shot delete mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/namespace-and-default/snapshots/2-Alignment-Error.shot delete mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/namespace-and-named/snapshots/1-Babel-Error.shot delete mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/namespace-and-named/snapshots/2-Alignment-Error.shot delete mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/namespace-and-namespace/snapshots/1-Babel-Error.shot delete mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/namespace-and-namespace/snapshots/2-Alignment-Error.shot delete mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/namespace-non-identifier/snapshots/1-Babel-Error.shot delete mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/namespace-non-identifier/snapshots/2-Alignment-Error.shot delete mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/non-string-source/snapshots/1-Babel-Error.shot delete mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/non-string-source/snapshots/2-Alignment-Error.shot delete mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/fixture.ts delete mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/1-TSESTree-AST.shot delete mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/3-Babel-AST.shot delete mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/5-AST-Alignment-AST.shot create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-string-literal-aliased-to-identifier/fixture.ts create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-string-literal-aliased-to-identifier/snapshots/1-TSESTree-AST.shot create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-string-literal-aliased-to-identifier/snapshots/2-TSESTree-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-string-literal-aliased-to-identifier/snapshots/3-Babel-AST.shot create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-string-literal-aliased-to-identifier/snapshots/4-Babel-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-string-literal-aliased-to-identifier/snapshots/5-AST-Alignment-AST.shot create mode 100644 packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-string-literal-aliased-to-identifier/snapshots/6-AST-Alignment-Tokens.shot create mode 100644 packages/ast-spec/src/special/ExportSpecifier/fixtures/_error_/literal-specifier/fixture.ts create mode 100644 packages/ast-spec/src/special/ExportSpecifier/fixtures/_error_/literal-specifier/snapshots/1-TSESTree-Error.shot create mode 100644 packages/ast-spec/src/special/ExportSpecifier/fixtures/_error_/literal-specifier/snapshots/2-Babel-Error.shot create mode 100644 packages/ast-spec/src/special/ExportSpecifier/fixtures/_error_/literal-specifier/snapshots/3-Alignment-Error.shot delete mode 100644 packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/fixture.ts delete mode 100644 packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/6-AST-Alignment-Tokens.shot create mode 100644 packages/ast-spec/src/special/ExportSpecifier/fixtures/literal-specifier/fixture.ts create mode 100644 packages/ast-spec/src/special/ExportSpecifier/fixtures/literal-specifier/snapshots/1-TSESTree-AST.shot create mode 100644 packages/ast-spec/src/special/ExportSpecifier/fixtures/literal-specifier/snapshots/2-TSESTree-Tokens.shot create mode 100644 packages/ast-spec/src/special/ExportSpecifier/fixtures/literal-specifier/snapshots/3-Babel-AST.shot create mode 100644 packages/ast-spec/src/special/ExportSpecifier/fixtures/literal-specifier/snapshots/4-Babel-Tokens.shot create mode 100644 packages/ast-spec/src/special/ExportSpecifier/fixtures/literal-specifier/snapshots/5-AST-Alignment-AST.shot rename packages/ast-spec/src/{declaration/ImportDeclaration/fixtures/as-string => special/ExportSpecifier/fixtures/literal-specifier}/snapshots/6-AST-Alignment-Tokens.shot (53%) create mode 100644 packages/ast-spec/src/special/ExportSpecifier/fixtures/value-export-specifier/fixture.ts create mode 100644 packages/ast-spec/src/special/ExportSpecifier/fixtures/value-export-specifier/snapshots/1-TSESTree-AST.shot create mode 100644 packages/ast-spec/src/special/ExportSpecifier/fixtures/value-export-specifier/snapshots/2-TSESTree-Tokens.shot create mode 100644 packages/ast-spec/src/special/ExportSpecifier/fixtures/value-export-specifier/snapshots/3-Babel-AST.shot create mode 100644 packages/ast-spec/src/special/ExportSpecifier/fixtures/value-export-specifier/snapshots/4-Babel-Tokens.shot create mode 100644 packages/ast-spec/src/special/ExportSpecifier/fixtures/value-export-specifier/snapshots/5-AST-Alignment-AST.shot rename packages/ast-spec/src/{declaration/ExportNamedDeclaration/fixtures/aliased => special/ExportSpecifier/fixtures/value-export-specifier}/snapshots/6-AST-Alignment-Tokens.shot (51%) diff --git a/.prettierignore b/.prettierignore index f369ef3cf30b..6a9febb413a7 100644 --- a/.prettierignore +++ b/.prettierignore @@ -4,29 +4,25 @@ **/.nyc_output **/.vs CONTRIBUTORS.md -packages/ast-spec/src/*/*/fixtures/_error_/*/fixture.ts -packages/eslint-plugin/tests/fixtures/indent/ - -# prettier errors on this case because it's semantically valid -packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract-with-value/fixture.ts -# prettier doesn't yet support arbitrary export/import names -packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/fixture.ts -packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/fixture.ts +.yarn/plugins +.yarn/releases -# prettier doesn't yet support `using` declaration -packages/ast-spec/src/declaration/VariableDeclaration/fixtures/await-using-multiple-declarations/fixture.ts -packages/ast-spec/src/declaration/VariableDeclaration/fixtures/await-using-with-value/fixture.ts -packages/ast-spec/src/declaration/VariableDeclaration/fixtures/using-multiple-declarations/fixture.ts -packages/ast-spec/src/declaration/VariableDeclaration/fixtures/using-with-value/fixture.ts -packages/ast-spec/src/statement/ForOfStatement/fixtures/using-decralation/fixture.ts +packages/eslint-plugin/tests/fixtures/indent/ -# prettier doesn't yet support `const` modifiers for type parameters -packages/ast-spec/src/special/TSTypeParameter/fixtures +# ignore all error fixtures cos they often have intentional syntax errors +packages/ast-spec/src/*/*/fixtures/_error_/*/fixture.ts -# prettier doesn't yet support JSX namespaced attributes -packages/ast-spec/src/jsx/JSXNamespacedName/fixtures/component/fixture.tsx -packages/scope-manager/tests/fixtures/jsx/namespaced-attribute.tsx +# TS 5.6 -- string literal import/export specifiers +# TODO - remove this once prettier supports it +packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-with-source/fixture.ts +packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-without-source/fixture.ts +packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-aliased-to-identifier-with-source/fixture.ts +packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-many-with-source/fixture.ts +packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-with-source/fixture.ts +packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-string-literal-aliased-to-identifier/fixture.ts +packages/ast-spec/src/special/ExportSpecifier/fixtures/literal-specifier/fixture.ts +packages/ast-spec/src/special/ExportSpecifier/fixtures/value-export-specifier/fixture.ts # Ignore CHANGELOG.md files to avoid issues with automated release job CHANGELOG.md diff --git a/package.json b/package.json index 39c76ea8639d..c9f83d1b8fe4 100644 --- a/package.json +++ b/package.json @@ -142,6 +142,7 @@ "jest-config": "^29", "jest-resolve": "^29", "jest-util": "^29", + "prettier": "3.3.2", "pretty-format": "^29", "react-split-pane@^0.1.92": "patch:react-split-pane@npm%3A0.1.92#./.yarn/patches/react-split-pane-npm-0.1.92-93dbf51dff.patch", "tmp": "0.2.1", diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-identifier-aliased-to-number-literal-with-source/fixture.ts b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-identifier-aliased-to-number-literal-with-source/fixture.ts new file mode 100644 index 000000000000..3f4367e53b55 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-identifier-aliased-to-number-literal-with-source/fixture.ts @@ -0,0 +1 @@ +export { a as 1 } from 'mod'; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-identifier-aliased-to-number-literal-with-source/snapshots/1-TSESTree-Error.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-identifier-aliased-to-number-literal-with-source/snapshots/1-TSESTree-Error.shot new file mode 100644 index 000000000000..24f7b42f0b77 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-identifier-aliased-to-number-literal-with-source/snapshots/1-TSESTree-Error.shot @@ -0,0 +1,8 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration _error_ braced-identifier-aliased-to-number-literal-with-source TSESTree - Error 1`] = ` +"TSError +> 1 | export { a as 1 } from 'mod'; + | ^ Identifier expected. + 2 |" +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-identifier-aliased-to-number-literal-with-source/snapshots/2-Babel-Error.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-identifier-aliased-to-number-literal-with-source/snapshots/2-Babel-Error.shot new file mode 100644 index 000000000000..b084f34a5da0 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-identifier-aliased-to-number-literal-with-source/snapshots/2-Babel-Error.shot @@ -0,0 +1,3 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration _error_ braced-identifier-aliased-to-number-literal-with-source Babel - Error 1`] = `[SyntaxError: Unexpected token (1:14)]`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-identifier-aliased-to-number-literal-with-source/snapshots/3-Alignment-Error.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-identifier-aliased-to-number-literal-with-source/snapshots/3-Alignment-Error.shot new file mode 100644 index 000000000000..c8ad6c49c869 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-identifier-aliased-to-number-literal-with-source/snapshots/3-Alignment-Error.shot @@ -0,0 +1,3 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration _error_ braced-identifier-aliased-to-number-literal-with-source Error Alignment 1`] = `"Both errored"`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-identifier-aliased-to-number-literal-without-source/fixture.ts b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-identifier-aliased-to-number-literal-without-source/fixture.ts new file mode 100644 index 000000000000..504dbf44ba01 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-identifier-aliased-to-number-literal-without-source/fixture.ts @@ -0,0 +1 @@ +export { a as 1 }; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-identifier-aliased-to-number-literal-without-source/snapshots/1-TSESTree-Error.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-identifier-aliased-to-number-literal-without-source/snapshots/1-TSESTree-Error.shot new file mode 100644 index 000000000000..7b7fbf69df5c --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-identifier-aliased-to-number-literal-without-source/snapshots/1-TSESTree-Error.shot @@ -0,0 +1,8 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration _error_ braced-identifier-aliased-to-number-literal-without-source TSESTree - Error 1`] = ` +"TSError +> 1 | export { a as 1 }; + | ^ Identifier expected. + 2 |" +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-identifier-aliased-to-number-literal-without-source/snapshots/2-Babel-Error.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-identifier-aliased-to-number-literal-without-source/snapshots/2-Babel-Error.shot new file mode 100644 index 000000000000..fcbf3dc6d452 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-identifier-aliased-to-number-literal-without-source/snapshots/2-Babel-Error.shot @@ -0,0 +1,3 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration _error_ braced-identifier-aliased-to-number-literal-without-source Babel - Error 1`] = `[SyntaxError: Unexpected token (1:14)]`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-identifier-aliased-to-number-literal-without-source/snapshots/3-Alignment-Error.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-identifier-aliased-to-number-literal-without-source/snapshots/3-Alignment-Error.shot new file mode 100644 index 000000000000..922f7f21f6de --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-identifier-aliased-to-number-literal-without-source/snapshots/3-Alignment-Error.shot @@ -0,0 +1,3 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration _error_ braced-identifier-aliased-to-number-literal-without-source Error Alignment 1`] = `"Both errored"`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-number-literal-with-source/fixture.ts b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-number-literal-with-source/fixture.ts new file mode 100644 index 000000000000..b74776276410 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-number-literal-with-source/fixture.ts @@ -0,0 +1 @@ +export { 1 } from 'mod'; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-number-literal-with-source/snapshots/1-TSESTree-Error.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-number-literal-with-source/snapshots/1-TSESTree-Error.shot new file mode 100644 index 000000000000..4236bc62af00 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-number-literal-with-source/snapshots/1-TSESTree-Error.shot @@ -0,0 +1,8 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration _error_ braced-number-literal-with-source TSESTree - Error 1`] = ` +"TSError +> 1 | export { 1 } from 'mod'; + | ^ Identifier expected. + 2 |" +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/3-Alignment-Error.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-number-literal-with-source/snapshots/2-Babel-Error.shot similarity index 52% rename from packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/3-Alignment-Error.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-number-literal-with-source/snapshots/2-Babel-Error.shot index a4715c995bbf..f9d04b880622 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/3-Alignment-Error.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-number-literal-with-source/snapshots/2-Babel-Error.shot @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ExportNamedDeclaration _error_ export-as-string-literal Error Alignment 1`] = `"Babel errored but TSESTree didn't"`; +exports[`AST Fixtures declaration ExportNamedDeclaration _error_ braced-number-literal-with-source Babel - Error 1`] = `[SyntaxError: Unexpected token (1:9)]`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/literal-braced/snapshots/2-Alignment-Error.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-number-literal-with-source/snapshots/3-Alignment-Error.shot similarity index 59% rename from packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/literal-braced/snapshots/2-Alignment-Error.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-number-literal-with-source/snapshots/3-Alignment-Error.shot index f2d4bb40cc50..7db9712e5305 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/literal-braced/snapshots/2-Alignment-Error.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-number-literal-with-source/snapshots/3-Alignment-Error.shot @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ExportNamedDeclaration _error_ literal-braced Error Alignment 1`] = `"Both errored"`; +exports[`AST Fixtures declaration ExportNamedDeclaration _error_ braced-number-literal-with-source Error Alignment 1`] = `"Both errored"`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-number-literal-without-source/fixture.ts b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-number-literal-without-source/fixture.ts new file mode 100644 index 000000000000..fa1afc8165af --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-number-literal-without-source/fixture.ts @@ -0,0 +1 @@ +export { 1 }; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-number-literal-without-source/snapshots/1-TSESTree-Error.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-number-literal-without-source/snapshots/1-TSESTree-Error.shot new file mode 100644 index 000000000000..b8091168e53b --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-number-literal-without-source/snapshots/1-TSESTree-Error.shot @@ -0,0 +1,8 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration _error_ braced-number-literal-without-source TSESTree - Error 1`] = ` +"TSError +> 1 | export { 1 }; + | ^ Identifier expected. + 2 |" +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-number-literal-without-source/snapshots/2-Babel-Error.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-number-literal-without-source/snapshots/2-Babel-Error.shot new file mode 100644 index 000000000000..027935e43e47 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-number-literal-without-source/snapshots/2-Babel-Error.shot @@ -0,0 +1,3 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration _error_ braced-number-literal-without-source Babel - Error 1`] = `[SyntaxError: Unexpected token (1:9)]`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/literal-braced/snapshots/3-Alignment-Error.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-number-literal-without-source/snapshots/3-Alignment-Error.shot similarity index 58% rename from packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/literal-braced/snapshots/3-Alignment-Error.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-number-literal-without-source/snapshots/3-Alignment-Error.shot index 5c4d97e25614..0b69103437fe 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/literal-braced/snapshots/3-Alignment-Error.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-number-literal-without-source/snapshots/3-Alignment-Error.shot @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ExportNamedDeclaration _error_ literal-braced Error Alignment 1`] = `"Babel errored but TSESTree didn't"`; +exports[`AST Fixtures declaration ExportNamedDeclaration _error_ braced-number-literal-without-source Error Alignment 1`] = `"Both errored"`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-identifier-without-source/fixture.ts b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-identifier-without-source/fixture.ts new file mode 100644 index 000000000000..7bf13642b5a3 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-identifier-without-source/fixture.ts @@ -0,0 +1 @@ +export { 'a a' as b }; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-identifier-without-source/snapshots/1-TSESTree-Error.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-identifier-without-source/snapshots/1-TSESTree-Error.shot new file mode 100644 index 000000000000..c0cb744a406c --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-identifier-without-source/snapshots/1-TSESTree-Error.shot @@ -0,0 +1,8 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration _error_ braced-string-literal-aliased-to-identifier-without-source TSESTree - Error 1`] = ` +"TSError +> 1 | export { 'a a' as b }; + | ^^^^^ A string literal cannot be used as a local exported binding without \`from\`. + 2 |" +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/literal-braced/snapshots/1-Babel-Error.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-identifier-without-source/snapshots/2-Babel-Error.shot similarity index 56% rename from packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/literal-braced/snapshots/1-Babel-Error.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-identifier-without-source/snapshots/2-Babel-Error.shot index 3ba27489473b..8a5bd0de2a8c 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/literal-braced/snapshots/1-Babel-Error.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-identifier-without-source/snapshots/2-Babel-Error.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ExportNamedDeclaration _error_ literal-braced Babel - Error 1`] = ` +exports[`AST Fixtures declaration ExportNamedDeclaration _error_ braced-string-literal-aliased-to-identifier-without-source Babel - Error 1`] = ` [SyntaxError: A string literal cannot be used as an exported binding without \`from\`. -- Did you mean \`export { 'a' as 'a' } from 'some-module'\`? (1:9)] +- Did you mean \`export { 'a a' as 'b' } from 'some-module'\`? (1:9)] `; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-identifier-without-source/snapshots/3-Alignment-Error.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-identifier-without-source/snapshots/3-Alignment-Error.shot new file mode 100644 index 000000000000..f36da5abefdc --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-identifier-without-source/snapshots/3-Alignment-Error.shot @@ -0,0 +1,3 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration _error_ braced-string-literal-aliased-to-identifier-without-source Error Alignment 1`] = `"Both errored"`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-number-literal-without-source/fixture.ts b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-number-literal-without-source/fixture.ts new file mode 100644 index 000000000000..f0ce06919277 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-number-literal-without-source/fixture.ts @@ -0,0 +1 @@ +export { 'a a' as 1 }; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-number-literal-without-source/snapshots/1-TSESTree-Error.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-number-literal-without-source/snapshots/1-TSESTree-Error.shot new file mode 100644 index 000000000000..8e6e90c6f422 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-number-literal-without-source/snapshots/1-TSESTree-Error.shot @@ -0,0 +1,8 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration _error_ braced-string-literal-aliased-to-number-literal-without-source TSESTree - Error 1`] = ` +"TSError +> 1 | export { 'a a' as 1 }; + | ^ Identifier expected. + 2 |" +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-number-literal-without-source/snapshots/2-Babel-Error.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-number-literal-without-source/snapshots/2-Babel-Error.shot new file mode 100644 index 000000000000..59e6552db777 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-number-literal-without-source/snapshots/2-Babel-Error.shot @@ -0,0 +1,3 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration _error_ braced-string-literal-aliased-to-number-literal-without-source Babel - Error 1`] = `[SyntaxError: Unexpected token (1:18)]`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-number-literal-without-source/snapshots/3-Alignment-Error.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-number-literal-without-source/snapshots/3-Alignment-Error.shot new file mode 100644 index 000000000000..5d822c09ed07 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-number-literal-without-source/snapshots/3-Alignment-Error.shot @@ -0,0 +1,3 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration _error_ braced-string-literal-aliased-to-number-literal-without-source Error Alignment 1`] = `"Both errored"`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-string-literal-without-source/fixture.ts b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-string-literal-without-source/fixture.ts new file mode 100644 index 000000000000..a54a56ad01ed --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-string-literal-without-source/fixture.ts @@ -0,0 +1 @@ +export { 'a a' as 'b b' }; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-string-literal-without-source/snapshots/1-TSESTree-Error.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-string-literal-without-source/snapshots/1-TSESTree-Error.shot new file mode 100644 index 000000000000..abff37aa4a9e --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-string-literal-without-source/snapshots/1-TSESTree-Error.shot @@ -0,0 +1,8 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration _error_ braced-string-literal-aliased-to-string-literal-without-source TSESTree - Error 1`] = ` +"TSError +> 1 | export { 'a a' as 'b b' }; + | ^^^^^ A string literal cannot be used as a local exported binding without \`from\`. + 2 |" +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-string-literal-without-source/snapshots/2-Babel-Error.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-string-literal-without-source/snapshots/2-Babel-Error.shot new file mode 100644 index 000000000000..383648bd3c68 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-string-literal-without-source/snapshots/2-Babel-Error.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration _error_ braced-string-literal-aliased-to-string-literal-without-source Babel - Error 1`] = ` +[SyntaxError: A string literal cannot be used as an exported binding without \`from\`. +- Did you mean \`export { 'a a' as 'b b' } from 'some-module'\`? (1:9)] +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-string-literal-without-source/snapshots/3-Alignment-Error.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-string-literal-without-source/snapshots/3-Alignment-Error.shot new file mode 100644 index 000000000000..bd27647c8d0e --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-aliased-to-string-literal-without-source/snapshots/3-Alignment-Error.shot @@ -0,0 +1,3 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration _error_ braced-string-literal-aliased-to-string-literal-without-source Error Alignment 1`] = `"Both errored"`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-many-without-source/fixture.ts b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-many-without-source/fixture.ts new file mode 100644 index 000000000000..93341fb488d5 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-many-without-source/fixture.ts @@ -0,0 +1 @@ +export { 'a a', 'b b' }; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-many-without-source/snapshots/1-TSESTree-Error.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-many-without-source/snapshots/1-TSESTree-Error.shot new file mode 100644 index 000000000000..3b9ad821bd0c --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-many-without-source/snapshots/1-TSESTree-Error.shot @@ -0,0 +1,8 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration _error_ braced-string-literal-many-without-source TSESTree - Error 1`] = ` +"TSError +> 1 | export { 'a a', 'b b' }; + | ^^^^^ A string literal cannot be used as a local exported binding without \`from\`. + 2 |" +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/literal-braced/snapshots/2-Babel-Error.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-many-without-source/snapshots/2-Babel-Error.shot similarity index 59% rename from packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/literal-braced/snapshots/2-Babel-Error.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-many-without-source/snapshots/2-Babel-Error.shot index 3ba27489473b..2ee71a5daf29 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/literal-braced/snapshots/2-Babel-Error.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-many-without-source/snapshots/2-Babel-Error.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ExportNamedDeclaration _error_ literal-braced Babel - Error 1`] = ` +exports[`AST Fixtures declaration ExportNamedDeclaration _error_ braced-string-literal-many-without-source Babel - Error 1`] = ` [SyntaxError: A string literal cannot be used as an exported binding without \`from\`. -- Did you mean \`export { 'a' as 'a' } from 'some-module'\`? (1:9)] +- Did you mean \`export { 'a a' as 'a a' } from 'some-module'\`? (1:9)] `; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/literal-braced/snapshots/1-TSESTree-Error.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-many-without-source/snapshots/3-Alignment-Error.shot similarity index 56% rename from packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/literal-braced/snapshots/1-TSESTree-Error.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-many-without-source/snapshots/3-Alignment-Error.shot index fcd45d738a22..40240523bf45 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/literal-braced/snapshots/1-TSESTree-Error.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-many-without-source/snapshots/3-Alignment-Error.shot @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ExportNamedDeclaration _error_ literal-braced TSESTree - Error 1`] = `"NO ERROR"`; +exports[`AST Fixtures declaration ExportNamedDeclaration _error_ braced-string-literal-many-without-source Error Alignment 1`] = `"Both errored"`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-without-source/fixture.ts b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-without-source/fixture.ts new file mode 100644 index 000000000000..838871242b23 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-without-source/fixture.ts @@ -0,0 +1 @@ +export { 'a a' }; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-without-source/snapshots/1-TSESTree-Error.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-without-source/snapshots/1-TSESTree-Error.shot new file mode 100644 index 000000000000..4aab1a3ea4a8 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-without-source/snapshots/1-TSESTree-Error.shot @@ -0,0 +1,8 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration _error_ braced-string-literal-without-source TSESTree - Error 1`] = ` +"TSError +> 1 | export { 'a a' }; + | ^^^^^ A string literal cannot be used as a local exported binding without \`from\`. + 2 |" +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/2-Babel-Error.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-without-source/snapshots/2-Babel-Error.shot similarity index 62% rename from packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/2-Babel-Error.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-without-source/snapshots/2-Babel-Error.shot index 51f23e20c6a1..23fb23d4e816 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/2-Babel-Error.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-without-source/snapshots/2-Babel-Error.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ExportNamedDeclaration _error_ export-as-string-literal Babel - Error 1`] = ` +exports[`AST Fixtures declaration ExportNamedDeclaration _error_ braced-string-literal-without-source Babel - Error 1`] = ` [SyntaxError: A string literal cannot be used as an exported binding without \`from\`. -- Did you mean \`export { 'foo' as 'foo' } from 'some-module'\`? (1:9)] +- Did you mean \`export { 'a a' as 'a a' } from 'some-module'\`? (1:9)] `; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/1-TSESTree-Error.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-without-source/snapshots/3-Alignment-Error.shot similarity index 58% rename from packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/1-TSESTree-Error.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-without-source/snapshots/3-Alignment-Error.shot index 8de4e002ecfe..1ca50acedcb8 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/1-TSESTree-Error.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/braced-string-literal-without-source/snapshots/3-Alignment-Error.shot @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ExportNamedDeclaration _error_ export-as-string-literal TSESTree - Error 1`] = `"NO ERROR"`; +exports[`AST Fixtures declaration ExportNamedDeclaration _error_ braced-string-literal-without-source Error Alignment 1`] = `"Both errored"`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/fixture.ts b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/fixture.ts deleted file mode 100644 index dc02ca6140d8..000000000000 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/fixture.ts +++ /dev/null @@ -1 +0,0 @@ -export { "foo" as "foo" }; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/2-TSESTree-Tokens.shot deleted file mode 100644 index abc413b3fe60..000000000000 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/2-TSESTree-Tokens.shot +++ /dev/null @@ -1,116 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AST Fixtures legacy-fixtures basics type-only-export-specifiers TSESTree - Tokens 1`] = ` -[ - Keyword { - type: "Keyword", - value: "export", - - range: [73, 79], - loc: { - start: { column: 0, line: 3 }, - end: { column: 6, line: 3 }, - }, - }, - Punctuator { - type: "Punctuator", - value: "{", - - range: [80, 81], - loc: { - start: { column: 7, line: 3 }, - end: { column: 8, line: 3 }, - }, - }, - Identifier { - type: "Identifier", - value: "type", - - range: [82, 86], - loc: { - start: { column: 9, line: 3 }, - end: { column: 13, line: 3 }, - }, - }, - Identifier { - type: "Identifier", - value: "A", - - range: [87, 88], - loc: { - start: { column: 14, line: 3 }, - end: { column: 15, line: 3 }, - }, - }, - Punctuator { - type: "Punctuator", - value: ",", - - range: [88, 89], - loc: { - start: { column: 15, line: 3 }, - end: { column: 16, line: 3 }, - }, - }, - Identifier { - type: "Identifier", - value: "type", - - range: [90, 94], - loc: { - start: { column: 17, line: 3 }, - end: { column: 21, line: 3 }, - }, - }, - Identifier { - type: "Identifier", - value: "B", - - range: [95, 96], - loc: { - start: { column: 22, line: 3 }, - end: { column: 23, line: 3 }, - }, - }, - Punctuator { - type: "Punctuator", - value: "}", - - range: [97, 98], - loc: { - start: { column: 24, line: 3 }, - end: { column: 25, line: 3 }, - }, - }, - Identifier { - type: "Identifier", - value: "from", - - range: [99, 103], - loc: { - start: { column: 26, line: 3 }, - end: { column: 30, line: 3 }, - }, - }, - String { - type: "String", - value: "'mod'", - - range: [104, 109], - loc: { - start: { column: 31, line: 3 }, - end: { column: 36, line: 3 }, - }, - }, - Punctuator { - type: "Punctuator", - value: ";", - - range: [109, 110], - loc: { - start: { column: 36, line: 3 }, - end: { column: 37, line: 3 }, - }, - }, -] -`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/3-Babel-AST.shot deleted file mode 100644 index 63fad08067d5..000000000000 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/3-Babel-AST.shot +++ /dev/null @@ -1,101 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AST Fixtures legacy-fixtures basics type-only-export-specifiers Babel - AST 1`] = ` -Program { - type: "Program", - body: [ - ExportNamedDeclaration { - type: "ExportNamedDeclaration", - assertions: [], - declaration: null, - exportKind: "value", - source: Literal { - type: "Literal", - raw: "'mod'", - value: "mod", - - range: [104, 109], - loc: { - start: { column: 31, line: 3 }, - end: { column: 36, line: 3 }, - }, - }, - specifiers: [ - ExportSpecifier { - type: "ExportSpecifier", - exported: Identifier { - type: "Identifier", - name: "A", - - range: [87, 88], - loc: { - start: { column: 14, line: 3 }, - end: { column: 15, line: 3 }, - }, - }, - exportKind: "type", - local: Identifier { - type: "Identifier", - name: "A", - - range: [87, 88], - loc: { - start: { column: 14, line: 3 }, - end: { column: 15, line: 3 }, - }, - }, - - range: [82, 88], - loc: { - start: { column: 9, line: 3 }, - end: { column: 15, line: 3 }, - }, - }, - ExportSpecifier { - type: "ExportSpecifier", - exported: Identifier { - type: "Identifier", - name: "B", - - range: [95, 96], - loc: { - start: { column: 22, line: 3 }, - end: { column: 23, line: 3 }, - }, - }, - exportKind: "type", - local: Identifier { - type: "Identifier", - name: "B", - - range: [95, 96], - loc: { - start: { column: 22, line: 3 }, - end: { column: 23, line: 3 }, - }, - }, - - range: [90, 96], - loc: { - start: { column: 17, line: 3 }, - end: { column: 23, line: 3 }, - }, - }, - ], - - range: [73, 110], - loc: { - start: { column: 0, line: 3 }, - end: { column: 37, line: 3 }, - }, - }, - ], - sourceType: "module", - - range: [73, 111], - loc: { - start: { column: 0, line: 3 }, - end: { column: 0, line: 4 }, - }, -} -`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/4-Babel-Tokens.shot deleted file mode 100644 index 9e084aa3850f..000000000000 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/4-Babel-Tokens.shot +++ /dev/null @@ -1,116 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AST Fixtures legacy-fixtures basics type-only-export-specifiers Babel - Tokens 1`] = ` -[ - Keyword { - type: "Keyword", - value: "export", - - range: [73, 79], - loc: { - start: { column: 0, line: 3 }, - end: { column: 6, line: 3 }, - }, - }, - Punctuator { - type: "Punctuator", - value: "{", - - range: [80, 81], - loc: { - start: { column: 7, line: 3 }, - end: { column: 8, line: 3 }, - }, - }, - Identifier { - type: "Identifier", - value: "type", - - range: [82, 86], - loc: { - start: { column: 9, line: 3 }, - end: { column: 13, line: 3 }, - }, - }, - Identifier { - type: "Identifier", - value: "A", - - range: [87, 88], - loc: { - start: { column: 14, line: 3 }, - end: { column: 15, line: 3 }, - }, - }, - Punctuator { - type: "Punctuator", - value: ",", - - range: [88, 89], - loc: { - start: { column: 15, line: 3 }, - end: { column: 16, line: 3 }, - }, - }, - Identifier { - type: "Identifier", - value: "type", - - range: [90, 94], - loc: { - start: { column: 17, line: 3 }, - end: { column: 21, line: 3 }, - }, - }, - Identifier { - type: "Identifier", - value: "B", - - range: [95, 96], - loc: { - start: { column: 22, line: 3 }, - end: { column: 23, line: 3 }, - }, - }, - Punctuator { - type: "Punctuator", - value: "}", - - range: [97, 98], - loc: { - start: { column: 24, line: 3 }, - end: { column: 25, line: 3 }, - }, - }, - Identifier { - type: "Identifier", - value: "from", - - range: [99, 103], - loc: { - start: { column: 26, line: 3 }, - end: { column: 30, line: 3 }, - }, - }, - String { - type: "String", - value: "'mod'", - - range: [104, 109], - loc: { - start: { column: 31, line: 3 }, - end: { column: 36, line: 3 }, - }, - }, - Punctuator { - type: "Punctuator", - value: ";", - - range: [109, 110], - loc: { - start: { column: 36, line: 3 }, - end: { column: 37, line: 3 }, - }, - }, -] -`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/6-AST-Alignment-Tokens.shot deleted file mode 100644 index 1db1ef638f8d..000000000000 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/6-AST-Alignment-Tokens.shot +++ /dev/null @@ -1,6 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AST Fixtures legacy-fixtures basics type-only-export-specifiers AST Alignment - Token 1`] = ` -"Snapshot Diff: -Compared values have no visual difference." -`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/literal-braced/fixture.ts b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/literal-braced/fixture.ts deleted file mode 100644 index 7eec000d816d..000000000000 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/literal-braced/fixture.ts +++ /dev/null @@ -1 +0,0 @@ -export { 'a' }; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/fixture.ts b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/fixture.ts deleted file mode 100644 index 45feb729c295..000000000000 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/fixture.ts +++ /dev/null @@ -1 +0,0 @@ -export { a as "🍎" }; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/6-AST-Alignment-Tokens.shot deleted file mode 100644 index 10f4a81340c0..000000000000 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/6-AST-Alignment-Tokens.shot +++ /dev/null @@ -1,6 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AST Fixtures declaration ExportNamedDeclaration as-string AST Alignment - Token 1`] = ` -"Snapshot Diff: -Compared values have no visual difference." -`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-with-source/fixture.ts b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-with-source/fixture.ts new file mode 100644 index 000000000000..7d1a5a7aa3a5 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-with-source/fixture.ts @@ -0,0 +1 @@ +export { a as b } from 'mod'; diff --git a/packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-with-source/snapshots/1-TSESTree-AST.shot similarity index 81% rename from packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/1-TSESTree-AST.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-with-source/snapshots/1-TSESTree-AST.shot index c09cb455fd79..78f189622475 100644 --- a/packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-with-source/snapshots/1-TSESTree-AST.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures special ExportSpecifier export-as-string-literal-from TSESTree - AST 1`] = ` +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-aliased-to-identifier-with-source TSESTree - AST 1`] = ` Program { type: "Program", body: [ @@ -26,7 +26,7 @@ Program { exported: Identifier { type: "Identifier", decorators: [], - name: "A", + name: "b", optional: false, range: [14, 15], @@ -35,17 +35,17 @@ Program { end: { column: 15, line: 1 }, }, }, - exportKind: "type", + exportKind: "value", local: Identifier { type: "Identifier", decorators: [], - name: "A", + name: "a", optional: false, - range: [14, 15], + range: [9, 10], loc: { - start: { column: 14, line: 1 }, - end: { column: 15, line: 1 }, + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, }, }, diff --git a/packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-with-source/snapshots/2-TSESTree-Tokens.shot similarity index 79% rename from packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/2-TSESTree-Tokens.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-with-source/snapshots/2-TSESTree-Tokens.shot index a7e60ed65c33..b975c782fc4a 100644 --- a/packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-with-source/snapshots/2-TSESTree-Tokens.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures special ExportSpecifier export-as-string-literal-from TSESTree - Tokens 1`] = ` +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-aliased-to-identifier-with-source TSESTree - Tokens 1`] = ` [ Keyword { type: "Keyword", @@ -24,17 +24,27 @@ exports[`AST Fixtures special ExportSpecifier export-as-string-literal-from TSES }, Identifier { type: "Identifier", - value: "type", + value: "a", - range: [9, 13], + range: [9, 10], loc: { start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "as", + + range: [11, 13], + loc: { + start: { column: 11, line: 1 }, end: { column: 13, line: 1 }, }, }, Identifier { type: "Identifier", - value: "A", + value: "b", range: [14, 15], loc: { diff --git a/packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-with-source/snapshots/3-Babel-AST.shot similarity index 80% rename from packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/3-Babel-AST.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-with-source/snapshots/3-Babel-AST.shot index ea18d898e7d1..20876dca3105 100644 --- a/packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-with-source/snapshots/3-Babel-AST.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures special ExportSpecifier export-as-string-literal-from Babel - AST 1`] = ` +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-aliased-to-identifier-with-source Babel - AST 1`] = ` Program { type: "Program", body: [ @@ -25,7 +25,7 @@ Program { type: "ExportSpecifier", exported: Identifier { type: "Identifier", - name: "A", + name: "b", range: [14, 15], loc: { @@ -33,15 +33,15 @@ Program { end: { column: 15, line: 1 }, }, }, - exportKind: "type", + exportKind: "value", local: Identifier { type: "Identifier", - name: "A", + name: "a", - range: [14, 15], + range: [9, 10], loc: { - start: { column: 14, line: 1 }, - end: { column: 15, line: 1 }, + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, }, }, diff --git a/packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-with-source/snapshots/4-Babel-Tokens.shot similarity index 79% rename from packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/4-Babel-Tokens.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-with-source/snapshots/4-Babel-Tokens.shot index 55498b62630c..56aac5f39800 100644 --- a/packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-with-source/snapshots/4-Babel-Tokens.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures special ExportSpecifier export-as-string-literal-from Babel - Tokens 1`] = ` +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-aliased-to-identifier-with-source Babel - Tokens 1`] = ` [ Keyword { type: "Keyword", @@ -24,17 +24,27 @@ exports[`AST Fixtures special ExportSpecifier export-as-string-literal-from Babe }, Identifier { type: "Identifier", - value: "type", + value: "a", - range: [9, 13], + range: [9, 10], loc: { start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "as", + + range: [11, 13], + loc: { + start: { column: 11, line: 1 }, end: { column: 13, line: 1 }, }, }, Identifier { type: "Identifier", - value: "A", + value: "b", range: [14, 15], loc: { diff --git a/packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-with-source/snapshots/5-AST-Alignment-AST.shot similarity index 82% rename from packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/5-AST-Alignment-AST.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-with-source/snapshots/5-AST-Alignment-AST.shot index 43e409781129..91755224f540 100644 --- a/packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-with-source/snapshots/5-AST-Alignment-AST.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures special ExportSpecifier export-as-string-literal-from AST Alignment - AST 1`] = ` +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-aliased-to-identifier-with-source AST Alignment - AST 1`] = ` "Snapshot Diff: - TSESTree + Babel @@ -31,7 +31,7 @@ exports[`AST Fixtures special ExportSpecifier export-as-string-literal-from AST exported: Identifier { type: 'Identifier', - decorators: Array [], - name: 'A', + name: 'b', - optional: false, range: [14, 15], @@ -40,17 +40,17 @@ exports[`AST Fixtures special ExportSpecifier export-as-string-literal-from AST end: { column: 15, line: 1 }, }, }, - exportKind: 'type', + exportKind: 'value', local: Identifier { type: 'Identifier', - decorators: Array [], - name: 'A', + name: 'a', - optional: false, - range: [14, 15], + range: [9, 10], loc: { - start: { column: 14, line: 1 }, - end: { column: 15, line: 1 }, + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, }, }, diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-with-source/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-with-source/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..5e0e4b49653a --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-with-source/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-aliased-to-identifier-with-source AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/fixture.ts b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-without-source/fixture.ts similarity index 100% rename from packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/fixture.ts rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-without-source/fixture.ts diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-without-source/snapshots/1-TSESTree-AST.shot similarity index 91% rename from packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/1-TSESTree-AST.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-without-source/snapshots/1-TSESTree-AST.shot index 1b2d074fc6ef..f0e126d60d9e 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-without-source/snapshots/1-TSESTree-AST.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ExportNamedDeclaration aliased TSESTree - AST 1`] = ` +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-aliased-to-identifier-without-source TSESTree - AST 1`] = ` Program { type: "Program", body: [ diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-without-source/snapshots/2-TSESTree-Tokens.shot similarity index 90% rename from packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/2-TSESTree-Tokens.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-without-source/snapshots/2-TSESTree-Tokens.shot index 8bdbd3c34b8f..1b39423e8fe0 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-without-source/snapshots/2-TSESTree-Tokens.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ExportNamedDeclaration aliased TSESTree - Tokens 1`] = ` +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-aliased-to-identifier-without-source TSESTree - Tokens 1`] = ` [ Keyword { type: "Keyword", diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-without-source/snapshots/3-Babel-AST.shot similarity index 90% rename from packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/3-Babel-AST.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-without-source/snapshots/3-Babel-AST.shot index 2027ecaf04ea..cb9de6bf21d8 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-without-source/snapshots/3-Babel-AST.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ExportNamedDeclaration aliased Babel - AST 1`] = ` +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-aliased-to-identifier-without-source Babel - AST 1`] = ` Program { type: "Program", body: [ diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-without-source/snapshots/4-Babel-Tokens.shot similarity index 90% rename from packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/4-Babel-Tokens.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-without-source/snapshots/4-Babel-Tokens.shot index 68b9dbc1c3fd..f2cee18f8cc6 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-without-source/snapshots/4-Babel-Tokens.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ExportNamedDeclaration aliased Babel - Tokens 1`] = ` +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-aliased-to-identifier-without-source Babel - Tokens 1`] = ` [ Keyword { type: "Keyword", diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-without-source/snapshots/5-AST-Alignment-AST.shot similarity index 92% rename from packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/5-AST-Alignment-AST.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-without-source/snapshots/5-AST-Alignment-AST.shot index 1fd302c11434..71c86d6ccd1a 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-without-source/snapshots/5-AST-Alignment-AST.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ExportNamedDeclaration aliased AST Alignment - AST 1`] = ` +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-aliased-to-identifier-without-source AST Alignment - AST 1`] = ` "Snapshot Diff: - TSESTree + Babel diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-without-source/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-without-source/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..7a4d0886e2a1 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-without-source/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-aliased-to-identifier-without-source AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-with-source/fixture.ts b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-with-source/fixture.ts new file mode 100644 index 000000000000..2793b054c40a --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-with-source/fixture.ts @@ -0,0 +1 @@ +export { a as 'b' } from 'mod'; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-with-source/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-with-source/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..12303ecaa5d2 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-with-source/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,74 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-aliased-to-string-literal-with-source TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + ExportNamedDeclaration { + type: "ExportNamedDeclaration", + attributes: [], + declaration: null, + exportKind: "value", + source: Literal { + type: "Literal", + raw: "'mod'", + value: "mod", + + range: [25, 30], + loc: { + start: { column: 25, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + specifiers: [ + ExportSpecifier { + type: "ExportSpecifier", + exported: Literal { + type: "Literal", + raw: "'b'", + value: "b", + + range: [14, 17], + loc: { + start: { column: 14, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + exportKind: "value", + local: Identifier { + type: "Identifier", + decorators: [], + name: "a", + optional: false, + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + + range: [9, 17], + loc: { + start: { column: 9, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + ], + + range: [0, 31], + loc: { + start: { column: 0, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + ], + sourceType: "module", + + range: [0, 32], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-with-source/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-with-source/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..1fd352d9bea5 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-with-source/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,96 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-aliased-to-string-literal-with-source TSESTree - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "export", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "a", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "as", + + range: [11, 13], + loc: { + start: { column: 11, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + String { + type: "String", + value: "'b'", + + range: [14, 17], + loc: { + start: { column: 14, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "from", + + range: [20, 24], + loc: { + start: { column: 20, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + String { + type: "String", + value: "'mod'", + + range: [25, 30], + loc: { + start: { column: 25, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [30, 31], + loc: { + start: { column: 30, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-with-source/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-with-source/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..f3e94f39ac59 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-with-source/snapshots/3-Babel-AST.shot @@ -0,0 +1,72 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-aliased-to-string-literal-with-source Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + ExportNamedDeclaration { + type: "ExportNamedDeclaration", + assertions: [], + declaration: null, + exportKind: "value", + source: Literal { + type: "Literal", + raw: "'mod'", + value: "mod", + + range: [25, 30], + loc: { + start: { column: 25, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + specifiers: [ + ExportSpecifier { + type: "ExportSpecifier", + exported: Literal { + type: "Literal", + raw: "'b'", + value: "b", + + range: [14, 17], + loc: { + start: { column: 14, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + exportKind: "value", + local: Identifier { + type: "Identifier", + name: "a", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + + range: [9, 17], + loc: { + start: { column: 9, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + ], + + range: [0, 31], + loc: { + start: { column: 0, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + ], + sourceType: "module", + + range: [0, 32], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-with-source/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-with-source/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..613532e02424 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-with-source/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,96 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-aliased-to-string-literal-with-source Babel - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "export", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "a", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "as", + + range: [11, 13], + loc: { + start: { column: 11, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + String { + type: "String", + value: "'b'", + + range: [14, 17], + loc: { + start: { column: 14, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "from", + + range: [20, 24], + loc: { + start: { column: 20, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + String { + type: "String", + value: "'mod'", + + range: [25, 30], + loc: { + start: { column: 25, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [30, 31], + loc: { + start: { column: 30, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-with-source/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-with-source/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..2ce277fa53a0 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-with-source/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,79 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-aliased-to-string-literal-with-source AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExportNamedDeclaration { + type: 'ExportNamedDeclaration', +- attributes: Array [], ++ assertions: Array [], + declaration: null, + exportKind: 'value', + source: Literal { + type: 'Literal', + raw: '\\'mod\\'', + value: 'mod', + + range: [25, 30], + loc: { + start: { column: 25, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + specifiers: Array [ + ExportSpecifier { + type: 'ExportSpecifier', + exported: Literal { + type: 'Literal', + raw: '\\'b\\'', + value: 'b', + + range: [14, 17], + loc: { + start: { column: 14, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + exportKind: 'value', + local: Identifier { + type: 'Identifier', +- decorators: Array [], + name: 'a', +- optional: false, + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + + range: [9, 17], + loc: { + start: { column: 9, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + ], + + range: [0, 31], + loc: { + start: { column: 0, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + ], + sourceType: 'module', + + range: [0, 32], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-with-source/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-with-source/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..bef6c6e24d1f --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-with-source/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-aliased-to-string-literal-with-source AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-without-source/fixture.ts b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-without-source/fixture.ts new file mode 100644 index 000000000000..718bd08c02c3 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-without-source/fixture.ts @@ -0,0 +1 @@ +export { a as 'b' }; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-without-source/snapshots/1-TSESTree-AST.shot similarity index 72% rename from packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/1-TSESTree-AST.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-without-source/snapshots/1-TSESTree-AST.shot index 070979906fc0..0a001051a27d 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-without-source/snapshots/1-TSESTree-AST.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ExportNamedDeclaration as-string TSESTree - AST 1`] = ` +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-aliased-to-string-literal-without-source TSESTree - AST 1`] = ` Program { type: "Program", body: [ @@ -15,13 +15,13 @@ Program { type: "ExportSpecifier", exported: Literal { type: "Literal", - raw: ""🍎"", - value: "🍎", + raw: "'b'", + value: "b", - range: [14, 18], + range: [14, 17], loc: { start: { column: 14, line: 1 }, - end: { column: 18, line: 1 }, + end: { column: 17, line: 1 }, }, }, exportKind: "value", @@ -38,24 +38,24 @@ Program { }, }, - range: [9, 18], + range: [9, 17], loc: { start: { column: 9, line: 1 }, - end: { column: 18, line: 1 }, + end: { column: 17, line: 1 }, }, }, ], - range: [0, 21], + range: [0, 20], loc: { start: { column: 0, line: 1 }, - end: { column: 21, line: 1 }, + end: { column: 20, line: 1 }, }, }, ], sourceType: "module", - range: [0, 22], + range: [0, 21], loc: { start: { column: 0, line: 1 }, end: { column: 0, line: 2 }, diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-without-source/snapshots/2-TSESTree-Tokens.shot similarity index 77% rename from packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/2-TSESTree-Tokens.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-without-source/snapshots/2-TSESTree-Tokens.shot index 59cc76000d7b..369411ea58fa 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-without-source/snapshots/2-TSESTree-Tokens.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ExportNamedDeclaration as-string TSESTree - Tokens 1`] = ` +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-aliased-to-string-literal-without-source TSESTree - Tokens 1`] = ` [ Keyword { type: "Keyword", @@ -44,32 +44,32 @@ exports[`AST Fixtures declaration ExportNamedDeclaration as-string TSESTree - To }, String { type: "String", - value: ""🍎"", + value: "'b'", - range: [14, 18], + range: [14, 17], loc: { start: { column: 14, line: 1 }, - end: { column: 18, line: 1 }, + end: { column: 17, line: 1 }, }, }, Punctuator { type: "Punctuator", value: "}", - range: [19, 20], + range: [18, 19], loc: { - start: { column: 19, line: 1 }, - end: { column: 20, line: 1 }, + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, }, }, Punctuator { type: "Punctuator", value: ";", - range: [20, 21], + range: [19, 20], loc: { - start: { column: 20, line: 1 }, - end: { column: 21, line: 1 }, + start: { column: 19, line: 1 }, + end: { column: 20, line: 1 }, }, }, ] diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-without-source/snapshots/3-Babel-AST.shot similarity index 72% rename from packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/3-Babel-AST.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-without-source/snapshots/3-Babel-AST.shot index 5dede69de4b7..d3e072e4b7ad 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-without-source/snapshots/3-Babel-AST.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ExportNamedDeclaration as-string Babel - AST 1`] = ` +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-aliased-to-string-literal-without-source Babel - AST 1`] = ` Program { type: "Program", body: [ @@ -15,13 +15,13 @@ Program { type: "ExportSpecifier", exported: Literal { type: "Literal", - raw: ""🍎"", - value: "🍎", + raw: "'b'", + value: "b", - range: [14, 18], + range: [14, 17], loc: { start: { column: 14, line: 1 }, - end: { column: 18, line: 1 }, + end: { column: 17, line: 1 }, }, }, exportKind: "value", @@ -36,24 +36,24 @@ Program { }, }, - range: [9, 18], + range: [9, 17], loc: { start: { column: 9, line: 1 }, - end: { column: 18, line: 1 }, + end: { column: 17, line: 1 }, }, }, ], - range: [0, 21], + range: [0, 20], loc: { start: { column: 0, line: 1 }, - end: { column: 21, line: 1 }, + end: { column: 20, line: 1 }, }, }, ], sourceType: "script", - range: [0, 22], + range: [0, 21], loc: { start: { column: 0, line: 1 }, end: { column: 0, line: 2 }, diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-without-source/snapshots/4-Babel-Tokens.shot similarity index 77% rename from packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/4-Babel-Tokens.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-without-source/snapshots/4-Babel-Tokens.shot index ef805f280e26..f80606bb4cc2 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-without-source/snapshots/4-Babel-Tokens.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ExportNamedDeclaration as-string Babel - Tokens 1`] = ` +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-aliased-to-string-literal-without-source Babel - Tokens 1`] = ` [ Keyword { type: "Keyword", @@ -44,32 +44,32 @@ exports[`AST Fixtures declaration ExportNamedDeclaration as-string Babel - Token }, String { type: "String", - value: ""🍎"", + value: "'b'", - range: [14, 18], + range: [14, 17], loc: { start: { column: 14, line: 1 }, - end: { column: 18, line: 1 }, + end: { column: 17, line: 1 }, }, }, Punctuator { type: "Punctuator", value: "}", - range: [19, 20], + range: [18, 19], loc: { - start: { column: 19, line: 1 }, - end: { column: 20, line: 1 }, + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, }, }, Punctuator { type: "Punctuator", value: ";", - range: [20, 21], + range: [19, 20], loc: { - start: { column: 20, line: 1 }, - end: { column: 21, line: 1 }, + start: { column: 19, line: 1 }, + end: { column: 20, line: 1 }, }, }, ] diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-without-source/snapshots/5-AST-Alignment-AST.shot similarity index 75% rename from packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/5-AST-Alignment-AST.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-without-source/snapshots/5-AST-Alignment-AST.shot index 38622a9df05f..c8778afd4bdc 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/as-string/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-without-source/snapshots/5-AST-Alignment-AST.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ExportNamedDeclaration as-string AST Alignment - AST 1`] = ` +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-aliased-to-string-literal-without-source AST Alignment - AST 1`] = ` "Snapshot Diff: - TSESTree + Babel @@ -20,13 +20,13 @@ exports[`AST Fixtures declaration ExportNamedDeclaration as-string AST Alignment type: 'ExportSpecifier', exported: Literal { type: 'Literal', - raw: '"🍎"', - value: '🍎', + raw: '\\'b\\'', + value: 'b', - range: [14, 18], + range: [14, 17], loc: { start: { column: 14, line: 1 }, - end: { column: 18, line: 1 }, + end: { column: 17, line: 1 }, }, }, exportKind: 'value', @@ -43,25 +43,25 @@ exports[`AST Fixtures declaration ExportNamedDeclaration as-string AST Alignment }, }, - range: [9, 18], + range: [9, 17], loc: { start: { column: 9, line: 1 }, - end: { column: 18, line: 1 }, + end: { column: 17, line: 1 }, }, }, ], - range: [0, 21], + range: [0, 20], loc: { start: { column: 0, line: 1 }, - end: { column: 21, line: 1 }, + end: { column: 20, line: 1 }, }, }, ], - sourceType: 'module', + sourceType: 'script', - range: [0, 22], + range: [0, 21], loc: { start: { column: 0, line: 1 }, end: { column: 0, line: 2 }, diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-without-source/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-without-source/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..bd2fc2bc854b --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-without-source/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-aliased-to-string-literal-without-source AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-with-source/fixture.ts b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-with-source/fixture.ts new file mode 100644 index 000000000000..7143bbd8b1ad --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-with-source/fixture.ts @@ -0,0 +1 @@ +export { a, b } from 'mod'; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-with-source/snapshots/1-TSESTree-AST.shot similarity index 51% rename from packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/1-TSESTree-AST.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-with-source/snapshots/1-TSESTree-AST.shot index efc42fbfc7c4..ed5078361878 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-with-source/snapshots/1-TSESTree-AST.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures legacy-fixtures basics type-only-export-specifiers TSESTree - AST 1`] = ` +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-many-with-source TSESTree - AST 1`] = ` Program { type: "Program", body: [ @@ -14,10 +14,10 @@ Program { raw: "'mod'", value: "mod", - range: [104, 109], + range: [21, 26], loc: { - start: { column: 31, line: 3 }, - end: { column: 36, line: 3 }, + start: { column: 21, line: 1 }, + end: { column: 26, line: 1 }, }, }, specifiers: [ @@ -26,33 +26,33 @@ Program { exported: Identifier { type: "Identifier", decorators: [], - name: "A", + name: "a", optional: false, - range: [87, 88], + range: [9, 10], loc: { - start: { column: 14, line: 3 }, - end: { column: 15, line: 3 }, + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, }, }, - exportKind: "type", + exportKind: "value", local: Identifier { type: "Identifier", decorators: [], - name: "A", + name: "a", optional: false, - range: [87, 88], + range: [9, 10], loc: { - start: { column: 14, line: 3 }, - end: { column: 15, line: 3 }, + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, }, }, - range: [82, 88], + range: [9, 10], loc: { - start: { column: 9, line: 3 }, - end: { column: 15, line: 3 }, + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, }, }, ExportSpecifier { @@ -60,50 +60,50 @@ Program { exported: Identifier { type: "Identifier", decorators: [], - name: "B", + name: "b", optional: false, - range: [95, 96], + range: [12, 13], loc: { - start: { column: 22, line: 3 }, - end: { column: 23, line: 3 }, + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, }, }, - exportKind: "type", + exportKind: "value", local: Identifier { type: "Identifier", decorators: [], - name: "B", + name: "b", optional: false, - range: [95, 96], + range: [12, 13], loc: { - start: { column: 22, line: 3 }, - end: { column: 23, line: 3 }, + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, }, }, - range: [90, 96], + range: [12, 13], loc: { - start: { column: 17, line: 3 }, - end: { column: 23, line: 3 }, + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, }, }, ], - range: [73, 110], + range: [0, 27], loc: { - start: { column: 0, line: 3 }, - end: { column: 37, line: 3 }, + start: { column: 0, line: 1 }, + end: { column: 27, line: 1 }, }, }, ], sourceType: "module", - range: [73, 111], + range: [0, 28], loc: { - start: { column: 0, line: 3 }, - end: { column: 0, line: 4 }, + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, }, } `; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-with-source/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-with-source/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..b8d689aea35c --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-with-source/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,96 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-many-with-source TSESTree - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "export", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "a", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ",", + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "b", + + range: [12, 13], + loc: { + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "from", + + range: [16, 20], + loc: { + start: { column: 16, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + String { + type: "String", + value: "'mod'", + + range: [21, 26], + loc: { + start: { column: 21, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [26, 27], + loc: { + start: { column: 26, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-with-source/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-with-source/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..8fcb020372ca --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-with-source/snapshots/3-Babel-AST.shot @@ -0,0 +1,101 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-many-with-source Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + ExportNamedDeclaration { + type: "ExportNamedDeclaration", + assertions: [], + declaration: null, + exportKind: "value", + source: Literal { + type: "Literal", + raw: "'mod'", + value: "mod", + + range: [21, 26], + loc: { + start: { column: 21, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + specifiers: [ + ExportSpecifier { + type: "ExportSpecifier", + exported: Identifier { + type: "Identifier", + name: "a", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + exportKind: "value", + local: Identifier { + type: "Identifier", + name: "a", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + ExportSpecifier { + type: "ExportSpecifier", + exported: Identifier { + type: "Identifier", + name: "b", + + range: [12, 13], + loc: { + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + exportKind: "value", + local: Identifier { + type: "Identifier", + name: "b", + + range: [12, 13], + loc: { + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + + range: [12, 13], + loc: { + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + ], + + range: [0, 27], + loc: { + start: { column: 0, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + ], + sourceType: "module", + + range: [0, 28], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-with-source/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-with-source/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..e3ead9bca995 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-with-source/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,96 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-many-with-source Babel - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "export", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "a", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ",", + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "b", + + range: [12, 13], + loc: { + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "from", + + range: [16, 20], + loc: { + start: { column: 16, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + String { + type: "String", + value: "'mod'", + + range: [21, 26], + loc: { + start: { column: 21, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [26, 27], + loc: { + start: { column: 26, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-with-source/snapshots/5-AST-Alignment-AST.shot similarity index 54% rename from packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/5-AST-Alignment-AST.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-with-source/snapshots/5-AST-Alignment-AST.shot index 189f9140bbb1..6113cba0e5c4 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-with-source/snapshots/5-AST-Alignment-AST.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures legacy-fixtures basics type-only-export-specifiers AST Alignment - AST 1`] = ` +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-many-with-source AST Alignment - AST 1`] = ` "Snapshot Diff: - TSESTree + Babel @@ -19,10 +19,10 @@ exports[`AST Fixtures legacy-fixtures basics type-only-export-specifiers AST Ali raw: '\\'mod\\'', value: 'mod', - range: [104, 109], + range: [21, 26], loc: { - start: { column: 31, line: 3 }, - end: { column: 36, line: 3 }, + start: { column: 21, line: 1 }, + end: { column: 26, line: 1 }, }, }, specifiers: Array [ @@ -31,33 +31,33 @@ exports[`AST Fixtures legacy-fixtures basics type-only-export-specifiers AST Ali exported: Identifier { type: 'Identifier', - decorators: Array [], - name: 'A', + name: 'a', - optional: false, - range: [87, 88], + range: [9, 10], loc: { - start: { column: 14, line: 3 }, - end: { column: 15, line: 3 }, + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, }, }, - exportKind: 'type', + exportKind: 'value', local: Identifier { type: 'Identifier', - decorators: Array [], - name: 'A', + name: 'a', - optional: false, - range: [87, 88], + range: [9, 10], loc: { - start: { column: 14, line: 3 }, - end: { column: 15, line: 3 }, + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, }, }, - range: [82, 88], + range: [9, 10], loc: { - start: { column: 9, line: 3 }, - end: { column: 15, line: 3 }, + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, }, }, ExportSpecifier { @@ -65,50 +65,50 @@ exports[`AST Fixtures legacy-fixtures basics type-only-export-specifiers AST Ali exported: Identifier { type: 'Identifier', - decorators: Array [], - name: 'B', + name: 'b', - optional: false, - range: [95, 96], + range: [12, 13], loc: { - start: { column: 22, line: 3 }, - end: { column: 23, line: 3 }, + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, }, }, - exportKind: 'type', + exportKind: 'value', local: Identifier { type: 'Identifier', - decorators: Array [], - name: 'B', + name: 'b', - optional: false, - range: [95, 96], + range: [12, 13], loc: { - start: { column: 22, line: 3 }, - end: { column: 23, line: 3 }, + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, }, }, - range: [90, 96], + range: [12, 13], loc: { - start: { column: 17, line: 3 }, - end: { column: 23, line: 3 }, + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, }, }, ], - range: [73, 110], + range: [0, 27], loc: { - start: { column: 0, line: 3 }, - end: { column: 37, line: 3 }, + start: { column: 0, line: 1 }, + end: { column: 27, line: 1 }, }, }, ], sourceType: 'module', - range: [73, 111], + range: [0, 28], loc: { - start: { column: 0, line: 3 }, - end: { column: 0, line: 4 }, + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, }, }" `; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-with-source/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-with-source/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..2f3c7ca6ec43 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-with-source/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-many-with-source AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/fixture.ts b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-without-source/fixture.ts similarity index 100% rename from packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/fixture.ts rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-without-source/fixture.ts 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/braced-identifier-many-without-source/snapshots/1-TSESTree-AST.shot similarity index 95% rename from packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/1-TSESTree-AST.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-without-source/snapshots/1-TSESTree-AST.shot index 8892a61581c0..4cb3f5c2798b 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-without-source/snapshots/1-TSESTree-AST.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ExportNamedDeclaration identifier-many TSESTree - AST 1`] = ` +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-many-without-source TSESTree - AST 1`] = ` Program { type: "Program", body: [ 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/braced-identifier-many-without-source/snapshots/2-TSESTree-Tokens.shot similarity index 91% rename from packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/2-TSESTree-Tokens.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-without-source/snapshots/2-TSESTree-Tokens.shot index 1a0506845dc5..c337f6f5329f 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-without-source/snapshots/2-TSESTree-Tokens.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ExportNamedDeclaration identifier-many TSESTree - Tokens 1`] = ` +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-many-without-source TSESTree - Tokens 1`] = ` [ Keyword { type: "Keyword", 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/braced-identifier-many-without-source/snapshots/3-Babel-AST.shot similarity index 94% rename from packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/3-Babel-AST.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-without-source/snapshots/3-Babel-AST.shot index 9b3deae0f972..4af1be81daeb 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-without-source/snapshots/3-Babel-AST.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ExportNamedDeclaration identifier-many Babel - AST 1`] = ` +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-many-without-source Babel - AST 1`] = ` Program { type: "Program", body: [ 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/braced-identifier-many-without-source/snapshots/4-Babel-Tokens.shot similarity index 91% rename from packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/4-Babel-Tokens.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-without-source/snapshots/4-Babel-Tokens.shot index f3da2541784c..9413931d9afc 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-without-source/snapshots/4-Babel-Tokens.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ExportNamedDeclaration identifier-many Babel - Tokens 1`] = ` +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-many-without-source Babel - Tokens 1`] = ` [ Keyword { type: "Keyword", diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-without-source/snapshots/5-AST-Alignment-AST.shot similarity index 95% rename from packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/5-AST-Alignment-AST.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-without-source/snapshots/5-AST-Alignment-AST.shot index 00294e85963b..147b250042f7 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-without-source/snapshots/5-AST-Alignment-AST.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ExportNamedDeclaration identifier-many AST Alignment - AST 1`] = ` +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-many-without-source AST Alignment - AST 1`] = ` "Snapshot Diff: - TSESTree + Babel diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-without-source/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-without-source/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..c4c3db65b420 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-without-source/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-many-without-source AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-with-source/fixture.ts b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-with-source/fixture.ts new file mode 100644 index 000000000000..2987292f975a --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-with-source/fixture.ts @@ -0,0 +1 @@ +export { a } from 'mod'; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-with-source/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-with-source/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..f219e3cb7a43 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-with-source/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,75 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-with-source TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + ExportNamedDeclaration { + type: "ExportNamedDeclaration", + attributes: [], + declaration: null, + exportKind: "value", + source: Literal { + type: "Literal", + raw: "'mod'", + value: "mod", + + range: [18, 23], + loc: { + start: { column: 18, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + specifiers: [ + ExportSpecifier { + type: "ExportSpecifier", + exported: Identifier { + type: "Identifier", + decorators: [], + name: "a", + optional: false, + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + exportKind: "value", + local: Identifier { + type: "Identifier", + decorators: [], + name: "a", + optional: false, + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + ], + + range: [0, 24], + loc: { + start: { column: 0, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + ], + sourceType: "module", + + range: [0, 25], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-with-source/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-with-source/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..0b2f885efed9 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-with-source/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,76 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-with-source TSESTree - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "export", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "a", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [11, 12], + loc: { + start: { column: 11, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "from", + + range: [13, 17], + loc: { + start: { column: 13, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + String { + type: "String", + value: "'mod'", + + range: [18, 23], + loc: { + start: { column: 18, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [23, 24], + loc: { + start: { column: 23, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-with-source/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-with-source/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..05f61dcf26ec --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-with-source/snapshots/3-Babel-AST.shot @@ -0,0 +1,71 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-with-source Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + ExportNamedDeclaration { + type: "ExportNamedDeclaration", + assertions: [], + declaration: null, + exportKind: "value", + source: Literal { + type: "Literal", + raw: "'mod'", + value: "mod", + + range: [18, 23], + loc: { + start: { column: 18, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + specifiers: [ + ExportSpecifier { + type: "ExportSpecifier", + exported: Identifier { + type: "Identifier", + name: "a", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + exportKind: "value", + local: Identifier { + type: "Identifier", + name: "a", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + ], + + range: [0, 24], + loc: { + start: { column: 0, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + ], + sourceType: "module", + + range: [0, 25], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-with-source/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-with-source/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..1b0626f17888 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-with-source/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,76 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-with-source Babel - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "export", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "a", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [11, 12], + loc: { + start: { column: 11, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "from", + + range: [13, 17], + loc: { + start: { column: 13, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + String { + type: "String", + value: "'mod'", + + range: [18, 23], + loc: { + start: { column: 18, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [23, 24], + loc: { + start: { column: 23, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-with-source/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-with-source/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..0bd08d542e76 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-with-source/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,80 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-with-source AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExportNamedDeclaration { + type: 'ExportNamedDeclaration', +- attributes: Array [], ++ assertions: Array [], + declaration: null, + exportKind: 'value', + source: Literal { + type: 'Literal', + raw: '\\'mod\\'', + value: 'mod', + + range: [18, 23], + loc: { + start: { column: 18, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + specifiers: Array [ + ExportSpecifier { + type: 'ExportSpecifier', + exported: Identifier { + type: 'Identifier', +- decorators: Array [], + name: 'a', +- optional: false, + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + exportKind: 'value', + local: Identifier { + type: 'Identifier', +- decorators: Array [], + name: 'a', +- optional: false, + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + ], + + range: [0, 24], + loc: { + start: { column: 0, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + ], + sourceType: 'module', + + range: [0, 25], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-with-source/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-with-source/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..3aac3b1d21cf --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-with-source/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-with-source AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/fixture.ts b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-without-source/fixture.ts similarity index 100% rename from packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/fixture.ts rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-without-source/fixture.ts 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/braced-identifier-without-source/snapshots/1-TSESTree-AST.shot similarity index 92% rename from packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/1-TSESTree-AST.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-without-source/snapshots/1-TSESTree-AST.shot index d9f0a0177742..2f5393b47088 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-without-source/snapshots/1-TSESTree-AST.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ExportNamedDeclaration identifier-braced TSESTree - AST 1`] = ` +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-without-source TSESTree - AST 1`] = ` Program { type: "Program", body: [ 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/braced-identifier-without-source/snapshots/2-TSESTree-Tokens.shot similarity index 88% rename from packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/2-TSESTree-Tokens.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-without-source/snapshots/2-TSESTree-Tokens.shot index 5d19014688b4..957c360c0894 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-without-source/snapshots/2-TSESTree-Tokens.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ExportNamedDeclaration identifier-braced TSESTree - Tokens 1`] = ` +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-without-source TSESTree - Tokens 1`] = ` [ Keyword { type: "Keyword", 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/braced-identifier-without-source/snapshots/3-Babel-AST.shot similarity index 92% rename from packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/3-Babel-AST.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-without-source/snapshots/3-Babel-AST.shot index c99b8674c943..b6ee6e695f5f 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-without-source/snapshots/3-Babel-AST.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ExportNamedDeclaration identifier-braced Babel - AST 1`] = ` +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-without-source Babel - AST 1`] = ` Program { type: "Program", body: [ 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/braced-identifier-without-source/snapshots/4-Babel-Tokens.shot similarity index 88% rename from packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/4-Babel-Tokens.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-without-source/snapshots/4-Babel-Tokens.shot index e31a37ad775b..c6dcc898382b 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-without-source/snapshots/4-Babel-Tokens.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ExportNamedDeclaration identifier-braced Babel - Tokens 1`] = ` +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-without-source Babel - Tokens 1`] = ` [ Keyword { type: "Keyword", diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-without-source/snapshots/5-AST-Alignment-AST.shot similarity index 93% rename from packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/5-AST-Alignment-AST.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-without-source/snapshots/5-AST-Alignment-AST.shot index 5336bc5c7c63..0e290454dc9c 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-without-source/snapshots/5-AST-Alignment-AST.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ExportNamedDeclaration identifier-braced AST Alignment - AST 1`] = ` +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-without-source AST Alignment - AST 1`] = ` "Snapshot Diff: - TSESTree + Babel diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-without-source/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-without-source/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..fa17826e0432 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-identifier-without-source/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration braced-identifier-without-source AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-aliased-to-identifier-with-source/fixture.ts b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-aliased-to-identifier-with-source/fixture.ts new file mode 100644 index 000000000000..cf1bc3a16691 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-aliased-to-identifier-with-source/fixture.ts @@ -0,0 +1 @@ +export { 'a a' as b } from 'mod'; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-aliased-to-identifier-with-source/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-aliased-to-identifier-with-source/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..ed3db51ae89d --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-aliased-to-identifier-with-source/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,74 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration braced-string-literal-aliased-to-identifier-with-source TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + ExportNamedDeclaration { + type: "ExportNamedDeclaration", + attributes: [], + declaration: null, + exportKind: "value", + source: Literal { + type: "Literal", + raw: "'mod'", + value: "mod", + + range: [27, 32], + loc: { + start: { column: 27, line: 1 }, + end: { column: 32, line: 1 }, + }, + }, + specifiers: [ + ExportSpecifier { + type: "ExportSpecifier", + exported: Identifier { + type: "Identifier", + decorators: [], + name: "b", + optional: false, + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + exportKind: "value", + local: Literal { + type: "Literal", + raw: "'a a'", + value: "a a", + + range: [9, 14], + loc: { + start: { column: 9, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + + range: [9, 19], + loc: { + start: { column: 9, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + ], + + range: [0, 33], + loc: { + start: { column: 0, line: 1 }, + end: { column: 33, line: 1 }, + }, + }, + ], + sourceType: "module", + + range: [0, 34], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-aliased-to-identifier-with-source/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-aliased-to-identifier-with-source/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..3da9372f680b --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-aliased-to-identifier-with-source/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,96 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration braced-string-literal-aliased-to-identifier-with-source TSESTree - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "export", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + String { + type: "String", + value: "'a a'", + + range: [9, 14], + loc: { + start: { column: 9, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "as", + + range: [15, 17], + loc: { + start: { column: 15, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "b", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "from", + + range: [22, 26], + loc: { + start: { column: 22, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + String { + type: "String", + value: "'mod'", + + range: [27, 32], + loc: { + start: { column: 27, line: 1 }, + end: { column: 32, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [32, 33], + loc: { + start: { column: 32, line: 1 }, + end: { column: 33, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-aliased-to-identifier-with-source/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-aliased-to-identifier-with-source/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..a4ce3b40a8d3 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-aliased-to-identifier-with-source/snapshots/3-Babel-AST.shot @@ -0,0 +1,72 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration braced-string-literal-aliased-to-identifier-with-source Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + ExportNamedDeclaration { + type: "ExportNamedDeclaration", + assertions: [], + declaration: null, + exportKind: "value", + source: Literal { + type: "Literal", + raw: "'mod'", + value: "mod", + + range: [27, 32], + loc: { + start: { column: 27, line: 1 }, + end: { column: 32, line: 1 }, + }, + }, + specifiers: [ + ExportSpecifier { + type: "ExportSpecifier", + exported: Identifier { + type: "Identifier", + name: "b", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + exportKind: "value", + local: Literal { + type: "Literal", + raw: "'a a'", + value: "a a", + + range: [9, 14], + loc: { + start: { column: 9, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + + range: [9, 19], + loc: { + start: { column: 9, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + ], + + range: [0, 33], + loc: { + start: { column: 0, line: 1 }, + end: { column: 33, line: 1 }, + }, + }, + ], + sourceType: "module", + + range: [0, 34], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-aliased-to-identifier-with-source/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-aliased-to-identifier-with-source/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..651a962c4fd5 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-aliased-to-identifier-with-source/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,96 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration braced-string-literal-aliased-to-identifier-with-source Babel - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "export", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + String { + type: "String", + value: "'a a'", + + range: [9, 14], + loc: { + start: { column: 9, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "as", + + range: [15, 17], + loc: { + start: { column: 15, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "b", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "from", + + range: [22, 26], + loc: { + start: { column: 22, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + String { + type: "String", + value: "'mod'", + + range: [27, 32], + loc: { + start: { column: 27, line: 1 }, + end: { column: 32, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [32, 33], + loc: { + start: { column: 32, line: 1 }, + end: { column: 33, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-aliased-to-identifier-with-source/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-aliased-to-identifier-with-source/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..bd501e07974f --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-aliased-to-identifier-with-source/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,79 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration braced-string-literal-aliased-to-identifier-with-source AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExportNamedDeclaration { + type: 'ExportNamedDeclaration', +- attributes: Array [], ++ assertions: Array [], + declaration: null, + exportKind: 'value', + source: Literal { + type: 'Literal', + raw: '\\'mod\\'', + value: 'mod', + + range: [27, 32], + loc: { + start: { column: 27, line: 1 }, + end: { column: 32, line: 1 }, + }, + }, + specifiers: Array [ + ExportSpecifier { + type: 'ExportSpecifier', + exported: Identifier { + type: 'Identifier', +- decorators: Array [], + name: 'b', +- optional: false, + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + exportKind: 'value', + local: Literal { + type: 'Literal', + raw: '\\'a a\\'', + value: 'a a', + + range: [9, 14], + loc: { + start: { column: 9, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + + range: [9, 19], + loc: { + start: { column: 9, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + ], + + range: [0, 33], + loc: { + start: { column: 0, line: 1 }, + end: { column: 33, line: 1 }, + }, + }, + ], + sourceType: 'module', + + range: [0, 34], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-aliased-to-identifier-with-source/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-aliased-to-identifier-with-source/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..013676484cb0 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-aliased-to-identifier-with-source/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration braced-string-literal-aliased-to-identifier-with-source AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-many-with-source/fixture.ts b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-many-with-source/fixture.ts new file mode 100644 index 000000000000..5ee1ca6e5a43 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-many-with-source/fixture.ts @@ -0,0 +1 @@ +export { 'a a', 'b b' } from 'mod'; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-many-with-source/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-many-with-source/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..99062c83b78f --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-many-with-source/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,105 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration braced-string-literal-many-with-source TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + ExportNamedDeclaration { + type: "ExportNamedDeclaration", + attributes: [], + declaration: null, + exportKind: "value", + source: Literal { + type: "Literal", + raw: "'mod'", + value: "mod", + + range: [29, 34], + loc: { + start: { column: 29, line: 1 }, + end: { column: 34, line: 1 }, + }, + }, + specifiers: [ + ExportSpecifier { + type: "ExportSpecifier", + exported: Literal { + type: "Literal", + raw: "'a a'", + value: "a a", + + range: [9, 14], + loc: { + start: { column: 9, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + exportKind: "value", + local: Literal { + type: "Literal", + raw: "'a a'", + value: "a a", + + range: [9, 14], + loc: { + start: { column: 9, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + + range: [9, 14], + loc: { + start: { column: 9, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + ExportSpecifier { + type: "ExportSpecifier", + exported: Literal { + type: "Literal", + raw: "'b b'", + value: "b b", + + range: [16, 21], + loc: { + start: { column: 16, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + exportKind: "value", + local: Literal { + type: "Literal", + raw: "'b b'", + value: "b b", + + range: [16, 21], + loc: { + start: { column: 16, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + + range: [16, 21], + loc: { + start: { column: 16, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + ], + + range: [0, 35], + loc: { + start: { column: 0, line: 1 }, + end: { column: 35, line: 1 }, + }, + }, + ], + sourceType: "module", + + range: [0, 36], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-many-with-source/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-many-with-source/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..31ad2ecba3c5 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-many-with-source/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,96 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration braced-string-literal-many-with-source TSESTree - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "export", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + String { + type: "String", + value: "'a a'", + + range: [9, 14], + loc: { + start: { column: 9, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ",", + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + String { + type: "String", + value: "'b b'", + + range: [16, 21], + loc: { + start: { column: 16, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "from", + + range: [24, 28], + loc: { + start: { column: 24, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + String { + type: "String", + value: "'mod'", + + range: [29, 34], + loc: { + start: { column: 29, line: 1 }, + end: { column: 34, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [34, 35], + loc: { + start: { column: 34, line: 1 }, + end: { column: 35, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-many-with-source/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-many-with-source/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..9ff935acade5 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-many-with-source/snapshots/3-Babel-AST.shot @@ -0,0 +1,105 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration braced-string-literal-many-with-source Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + ExportNamedDeclaration { + type: "ExportNamedDeclaration", + assertions: [], + declaration: null, + exportKind: "value", + source: Literal { + type: "Literal", + raw: "'mod'", + value: "mod", + + range: [29, 34], + loc: { + start: { column: 29, line: 1 }, + end: { column: 34, line: 1 }, + }, + }, + specifiers: [ + ExportSpecifier { + type: "ExportSpecifier", + exported: Literal { + type: "Literal", + raw: "'a a'", + value: "a a", + + range: [9, 14], + loc: { + start: { column: 9, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + exportKind: "value", + local: Literal { + type: "Literal", + raw: "'a a'", + value: "a a", + + range: [9, 14], + loc: { + start: { column: 9, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + + range: [9, 14], + loc: { + start: { column: 9, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + ExportSpecifier { + type: "ExportSpecifier", + exported: Literal { + type: "Literal", + raw: "'b b'", + value: "b b", + + range: [16, 21], + loc: { + start: { column: 16, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + exportKind: "value", + local: Literal { + type: "Literal", + raw: "'b b'", + value: "b b", + + range: [16, 21], + loc: { + start: { column: 16, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + + range: [16, 21], + loc: { + start: { column: 16, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + ], + + range: [0, 35], + loc: { + start: { column: 0, line: 1 }, + end: { column: 35, line: 1 }, + }, + }, + ], + sourceType: "module", + + range: [0, 36], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-many-with-source/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-many-with-source/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..e6b87399cc54 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-many-with-source/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,96 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration braced-string-literal-many-with-source Babel - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "export", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + String { + type: "String", + value: "'a a'", + + range: [9, 14], + loc: { + start: { column: 9, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ",", + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + String { + type: "String", + value: "'b b'", + + range: [16, 21], + loc: { + start: { column: 16, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "from", + + range: [24, 28], + loc: { + start: { column: 24, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + String { + type: "String", + value: "'mod'", + + range: [29, 34], + loc: { + start: { column: 29, line: 1 }, + end: { column: 34, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [34, 35], + loc: { + start: { column: 34, line: 1 }, + end: { column: 35, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-many-with-source/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-many-with-source/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..23b269cc250f --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-many-with-source/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,110 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration braced-string-literal-many-with-source AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExportNamedDeclaration { + type: 'ExportNamedDeclaration', +- attributes: Array [], ++ assertions: Array [], + declaration: null, + exportKind: 'value', + source: Literal { + type: 'Literal', + raw: '\\'mod\\'', + value: 'mod', + + range: [29, 34], + loc: { + start: { column: 29, line: 1 }, + end: { column: 34, line: 1 }, + }, + }, + specifiers: Array [ + ExportSpecifier { + type: 'ExportSpecifier', + exported: Literal { + type: 'Literal', + raw: '\\'a a\\'', + value: 'a a', + + range: [9, 14], + loc: { + start: { column: 9, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + exportKind: 'value', + local: Literal { + type: 'Literal', + raw: '\\'a a\\'', + value: 'a a', + + range: [9, 14], + loc: { + start: { column: 9, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + + range: [9, 14], + loc: { + start: { column: 9, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + ExportSpecifier { + type: 'ExportSpecifier', + exported: Literal { + type: 'Literal', + raw: '\\'b b\\'', + value: 'b b', + + range: [16, 21], + loc: { + start: { column: 16, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + exportKind: 'value', + local: Literal { + type: 'Literal', + raw: '\\'b b\\'', + value: 'b b', + + range: [16, 21], + loc: { + start: { column: 16, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + + range: [16, 21], + loc: { + start: { column: 16, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + ], + + range: [0, 35], + loc: { + start: { column: 0, line: 1 }, + end: { column: 35, line: 1 }, + }, + }, + ], + sourceType: 'module', + + range: [0, 36], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-many-with-source/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-many-with-source/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..0e7d6a2b84dc --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-many-with-source/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration braced-string-literal-many-with-source AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-with-source/fixture.ts b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-with-source/fixture.ts new file mode 100644 index 000000000000..96cea3b07692 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-with-source/fixture.ts @@ -0,0 +1 @@ +export { 'a a' } from 'mod'; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-with-source/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-with-source/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..3d0653eea62d --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-with-source/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,73 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration braced-string-literal-with-source TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + ExportNamedDeclaration { + type: "ExportNamedDeclaration", + attributes: [], + declaration: null, + exportKind: "value", + source: Literal { + type: "Literal", + raw: "'mod'", + value: "mod", + + range: [22, 27], + loc: { + start: { column: 22, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + specifiers: [ + ExportSpecifier { + type: "ExportSpecifier", + exported: Literal { + type: "Literal", + raw: "'a a'", + value: "a a", + + range: [9, 14], + loc: { + start: { column: 9, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + exportKind: "value", + local: Literal { + type: "Literal", + raw: "'a a'", + value: "a a", + + range: [9, 14], + loc: { + start: { column: 9, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + + range: [9, 14], + loc: { + start: { column: 9, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + ], + + range: [0, 28], + loc: { + start: { column: 0, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + ], + sourceType: "module", + + range: [0, 29], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-with-source/snapshots/2-TSESTree-Tokens.shot similarity index 57% rename from packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/2-TSESTree-Tokens.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-with-source/snapshots/2-TSESTree-Tokens.shot index b852d000bddf..a6970cc620d9 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-with-source/snapshots/2-TSESTree-Tokens.shot @@ -1,10 +1,10 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ImportDeclaration as-string TSESTree - Tokens 1`] = ` +exports[`AST Fixtures declaration ExportNamedDeclaration braced-string-literal-with-source TSESTree - Tokens 1`] = ` [ Keyword { type: "Keyword", - value: "import", + value: "export", range: [0, 6], loc: { @@ -22,44 +22,54 @@ exports[`AST Fixtures declaration ImportDeclaration as-string TSESTree - Tokens end: { column: 8, line: 1 }, }, }, + String { + type: "String", + value: "'a a'", + + range: [9, 14], + loc: { + start: { column: 9, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, Punctuator { type: "Punctuator", value: "}", - range: [8, 9], + range: [15, 16], loc: { - start: { column: 8, line: 1 }, - end: { column: 9, line: 1 }, + start: { column: 15, line: 1 }, + end: { column: 16, line: 1 }, }, }, Identifier { type: "Identifier", value: "from", - range: [10, 14], + range: [17, 21], loc: { - start: { column: 10, line: 1 }, - end: { column: 14, line: 1 }, + start: { column: 17, line: 1 }, + end: { column: 21, line: 1 }, }, }, String { type: "String", value: "'mod'", - range: [15, 20], + range: [22, 27], loc: { - start: { column: 15, line: 1 }, - end: { column: 20, line: 1 }, + start: { column: 22, line: 1 }, + end: { column: 27, line: 1 }, }, }, Punctuator { type: "Punctuator", value: ";", - range: [20, 21], + range: [27, 28], loc: { - start: { column: 20, line: 1 }, - end: { column: 21, line: 1 }, + start: { column: 27, line: 1 }, + end: { column: 28, line: 1 }, }, }, ] diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-with-source/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-with-source/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..0bd7dd4ea51a --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-with-source/snapshots/3-Babel-AST.shot @@ -0,0 +1,73 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration braced-string-literal-with-source Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + ExportNamedDeclaration { + type: "ExportNamedDeclaration", + assertions: [], + declaration: null, + exportKind: "value", + source: Literal { + type: "Literal", + raw: "'mod'", + value: "mod", + + range: [22, 27], + loc: { + start: { column: 22, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + specifiers: [ + ExportSpecifier { + type: "ExportSpecifier", + exported: Literal { + type: "Literal", + raw: "'a a'", + value: "a a", + + range: [9, 14], + loc: { + start: { column: 9, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + exportKind: "value", + local: Literal { + type: "Literal", + raw: "'a a'", + value: "a a", + + range: [9, 14], + loc: { + start: { column: 9, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + + range: [9, 14], + loc: { + start: { column: 9, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + ], + + range: [0, 28], + loc: { + start: { column: 0, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + ], + sourceType: "module", + + range: [0, 29], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-with-source/snapshots/4-Babel-Tokens.shot similarity index 58% rename from packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/4-Babel-Tokens.shot rename to packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-with-source/snapshots/4-Babel-Tokens.shot index 41838c517744..9e79a0692088 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-with-source/snapshots/4-Babel-Tokens.shot @@ -1,10 +1,10 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ImportDeclaration as-string Babel - Tokens 1`] = ` +exports[`AST Fixtures declaration ExportNamedDeclaration braced-string-literal-with-source Babel - Tokens 1`] = ` [ Keyword { type: "Keyword", - value: "import", + value: "export", range: [0, 6], loc: { @@ -22,44 +22,54 @@ exports[`AST Fixtures declaration ImportDeclaration as-string Babel - Tokens 1`] end: { column: 8, line: 1 }, }, }, + String { + type: "String", + value: "'a a'", + + range: [9, 14], + loc: { + start: { column: 9, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, Punctuator { type: "Punctuator", value: "}", - range: [8, 9], + range: [15, 16], loc: { - start: { column: 8, line: 1 }, - end: { column: 9, line: 1 }, + start: { column: 15, line: 1 }, + end: { column: 16, line: 1 }, }, }, Identifier { type: "Identifier", value: "from", - range: [10, 14], + range: [17, 21], loc: { - start: { column: 10, line: 1 }, - end: { column: 14, line: 1 }, + start: { column: 17, line: 1 }, + end: { column: 21, line: 1 }, }, }, String { type: "String", value: "'mod'", - range: [15, 20], + range: [22, 27], loc: { - start: { column: 15, line: 1 }, - end: { column: 20, line: 1 }, + start: { column: 22, line: 1 }, + end: { column: 27, line: 1 }, }, }, Punctuator { type: "Punctuator", value: ";", - range: [20, 21], + range: [27, 28], loc: { - start: { column: 20, line: 1 }, - end: { column: 21, line: 1 }, + start: { column: 27, line: 1 }, + end: { column: 28, line: 1 }, }, }, ] diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-with-source/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-with-source/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..732466bc7bd4 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-with-source/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,78 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration braced-string-literal-with-source AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExportNamedDeclaration { + type: 'ExportNamedDeclaration', +- attributes: Array [], ++ assertions: Array [], + declaration: null, + exportKind: 'value', + source: Literal { + type: 'Literal', + raw: '\\'mod\\'', + value: 'mod', + + range: [22, 27], + loc: { + start: { column: 22, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + specifiers: Array [ + ExportSpecifier { + type: 'ExportSpecifier', + exported: Literal { + type: 'Literal', + raw: '\\'a a\\'', + value: 'a a', + + range: [9, 14], + loc: { + start: { column: 9, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + exportKind: 'value', + local: Literal { + type: 'Literal', + raw: '\\'a a\\'', + value: 'a a', + + range: [9, 14], + loc: { + start: { column: 9, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + + range: [9, 14], + loc: { + start: { column: 9, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + ], + + range: [0, 28], + loc: { + start: { column: 0, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + ], + sourceType: 'module', + + range: [0, 29], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-with-source/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-with-source/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..22bb3f9fcbf3 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/braced-string-literal-with-source/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportNamedDeclaration braced-string-literal-with-source AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/6-AST-Alignment-Tokens.shot deleted file mode 100644 index d3563662f8c1..000000000000 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/6-AST-Alignment-Tokens.shot +++ /dev/null @@ -1,6 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AST Fixtures declaration ExportNamedDeclaration identifier-braced AST Alignment - Token 1`] = ` -"Snapshot Diff: -Compared values have no visual difference." -`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/6-AST-Alignment-Tokens.shot deleted file mode 100644 index 939b36fc37cd..000000000000 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/6-AST-Alignment-Tokens.shot +++ /dev/null @@ -1,6 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AST Fixtures declaration ExportNamedDeclaration identifier-many AST Alignment - Token 1`] = ` -"Snapshot Diff: -Compared values have no visual difference." -`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/spec.ts b/packages/ast-spec/src/declaration/ExportNamedDeclaration/spec.ts index 79c266d9b5fc..1fcb91b033ed 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/spec.ts +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/spec.ts @@ -1,7 +1,10 @@ import type { AST_NODE_TYPES } from '../../ast-node-types'; import type { BaseNode } from '../../base/BaseNode'; import type { StringLiteral } from '../../expression/literal/StringLiteral/spec'; -import type { ExportSpecifier } from '../../special/ExportSpecifier/spec'; +import type { + ExportSpecifier, + ExportSpecifierWithIdentifierLocal, +} from '../../special/ExportSpecifier/spec'; import type { ImportAttribute } from '../../special/ImportAttribute/spec'; import type { NamedExportDeclarations } from '../../unions/ExportDeclaration'; import type { ExportKind } from '../ExportAndImportKind'; @@ -75,6 +78,8 @@ export interface ExportNamedDeclarationWithoutSourceWithMultiple attributes: ImportAttribute[]; declaration: null; source: null; + // Cannot have literal local without a source + specifiers: ExportSpecifierWithIdentifierLocal[]; } /** @@ -99,7 +104,7 @@ export interface ExportNamedDeclarationWithoutSourceWithSingle /** * This will always be an empty array. */ - specifiers: ExportSpecifier[]; + specifiers: ExportSpecifierWithIdentifierLocal[]; } /** @@ -114,6 +119,10 @@ export interface ExportNamedDeclarationWithSource source: StringLiteral; } +export type ExportNamedDeclarationWithoutSource = + | ExportNamedDeclarationWithoutSourceWithMultiple + | ExportNamedDeclarationWithoutSourceWithSingle; + export type ExportNamedDeclaration = | ExportNamedDeclarationWithoutSourceWithMultiple | ExportNamedDeclarationWithoutSourceWithSingle diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-and-named-and-namespace/fixture.ts b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-and-named-and-namespace/fixture.ts new file mode 100644 index 000000000000..54e0da9ee1d4 --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-and-named-and-namespace/fixture.ts @@ -0,0 +1 @@ +import a, * as b, { c } from 'mod'; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-and-named-and-namespace/snapshots/1-TSESTree-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-and-named-and-namespace/snapshots/1-TSESTree-Error.shot new file mode 100644 index 000000000000..4968c665b7f4 --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-and-named-and-namespace/snapshots/1-TSESTree-Error.shot @@ -0,0 +1,8 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration _error_ default-and-named-and-namespace TSESTree - Error 1`] = ` +"TSError +> 1 | import a, * as b, { c } from 'mod'; + | ^ 'from' expected. + 2 |" +`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-and-named-and-namespace/snapshots/2-Babel-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-and-named-and-namespace/snapshots/2-Babel-Error.shot new file mode 100644 index 000000000000..c937b0227c30 --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-and-named-and-namespace/snapshots/2-Babel-Error.shot @@ -0,0 +1,3 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration _error_ default-and-named-and-namespace Babel - Error 1`] = `[SyntaxError: Unexpected token, expected "from" (1:16)]`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-non-identifier/snapshots/1-Babel-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-and-named-and-namespace/snapshots/3-Alignment-Error.shot similarity index 53% rename from packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-non-identifier/snapshots/1-Babel-Error.shot rename to packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-and-named-and-namespace/snapshots/3-Alignment-Error.shot index 438c9cdf7501..40b9a5a2bb0f 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-non-identifier/snapshots/1-Babel-Error.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-and-named-and-namespace/snapshots/3-Alignment-Error.shot @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ImportDeclaration _error_ default-non-identifier Babel - Error 1`] = `[SyntaxError: Unexpected token, expected "{" (1:7)]`; +exports[`AST Fixtures declaration ImportDeclaration _error_ default-and-named-and-namespace Error Alignment 1`] = `"Both errored"`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-non-identifier/fixture.ts b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-number-literal/fixture.ts similarity index 100% rename from packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-non-identifier/fixture.ts rename to packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-number-literal/fixture.ts diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-non-identifier/snapshots/1-TSESTree-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-number-literal/snapshots/1-TSESTree-Error.shot similarity index 81% rename from packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-non-identifier/snapshots/1-TSESTree-Error.shot rename to packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-number-literal/snapshots/1-TSESTree-Error.shot index 33e9c446a1ac..733e29a135bd 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-non-identifier/snapshots/1-TSESTree-Error.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-number-literal/snapshots/1-TSESTree-Error.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ImportDeclaration _error_ default-non-identifier TSESTree - Error 1`] = ` +exports[`AST Fixtures declaration ImportDeclaration _error_ default-number-literal TSESTree - Error 1`] = ` "TSError > 1 | import 1 from 'mod'; | ^ Declaration or statement expected. diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-non-identifier/snapshots/2-Babel-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-number-literal/snapshots/2-Babel-Error.shot similarity index 68% rename from packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-non-identifier/snapshots/2-Babel-Error.shot rename to packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-number-literal/snapshots/2-Babel-Error.shot index 438c9cdf7501..edf91ca01db1 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-non-identifier/snapshots/2-Babel-Error.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-number-literal/snapshots/2-Babel-Error.shot @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ImportDeclaration _error_ default-non-identifier Babel - Error 1`] = `[SyntaxError: Unexpected token, expected "{" (1:7)]`; +exports[`AST Fixtures declaration ImportDeclaration _error_ default-number-literal Babel - Error 1`] = `[SyntaxError: Unexpected token, expected "{" (1:7)]`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-non-identifier/snapshots/3-Alignment-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-number-literal/snapshots/3-Alignment-Error.shot similarity index 64% rename from packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-non-identifier/snapshots/3-Alignment-Error.shot rename to packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-number-literal/snapshots/3-Alignment-Error.shot index 2e0bcbec5a5e..f3810de15bec 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-non-identifier/snapshots/3-Alignment-Error.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-number-literal/snapshots/3-Alignment-Error.shot @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ImportDeclaration _error_ default-non-identifier Error Alignment 1`] = `"Both errored"`; +exports[`AST Fixtures declaration ImportDeclaration _error_ default-number-literal Error Alignment 1`] = `"Both errored"`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-string-literal/fixture.ts b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-string-literal/fixture.ts new file mode 100644 index 000000000000..65c0a923c510 --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-string-literal/fixture.ts @@ -0,0 +1 @@ +import 'a a' from 'mod'; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-string-literal/snapshots/1-TSESTree-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-string-literal/snapshots/1-TSESTree-Error.shot new file mode 100644 index 000000000000..db2f849a6462 --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-string-literal/snapshots/1-TSESTree-Error.shot @@ -0,0 +1,8 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration _error_ default-string-literal TSESTree - Error 1`] = ` +"TSError +> 1 | import 'a a' from 'mod'; + | ^ ';' expected. + 2 |" +`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-string-literal/snapshots/2-Babel-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-string-literal/snapshots/2-Babel-Error.shot new file mode 100644 index 000000000000..7f044aaf68a9 --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-string-literal/snapshots/2-Babel-Error.shot @@ -0,0 +1,3 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration _error_ default-string-literal Babel - Error 1`] = `[SyntaxError: Missing semicolon. (1:12)]`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-non-identifier/snapshots/2-Alignment-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-string-literal/snapshots/3-Alignment-Error.shot similarity index 64% rename from packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-non-identifier/snapshots/2-Alignment-Error.shot rename to packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-string-literal/snapshots/3-Alignment-Error.shot index 2e0bcbec5a5e..6aaccd724166 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-non-identifier/snapshots/2-Alignment-Error.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/default-string-literal/snapshots/3-Alignment-Error.shot @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ImportDeclaration _error_ default-non-identifier Error Alignment 1`] = `"Both errored"`; +exports[`AST Fixtures declaration ImportDeclaration _error_ default-string-literal Error Alignment 1`] = `"Both errored"`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/name/fixture.ts b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/name/fixture.ts deleted file mode 100644 index 6a7fb92600de..000000000000 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/name/fixture.ts +++ /dev/null @@ -1 +0,0 @@ -import { 1 } from 'mod'; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-and-namespace/snapshots/1-Babel-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-and-namespace/snapshots/1-Babel-Error.shot deleted file mode 100644 index 9cf4c4b719a9..000000000000 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-and-namespace/snapshots/1-Babel-Error.shot +++ /dev/null @@ -1,3 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AST Fixtures declaration ImportDeclaration _error_ named-and-namespace Babel - Error 1`] = `[SyntaxError: Unexpected token, expected "from" (1:12)]`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-and-namespace/snapshots/2-Alignment-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-and-namespace/snapshots/2-Alignment-Error.shot deleted file mode 100644 index 89fae3fa27c3..000000000000 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-and-namespace/snapshots/2-Alignment-Error.shot +++ /dev/null @@ -1,3 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AST Fixtures declaration ImportDeclaration _error_ named-and-namespace Error Alignment 1`] = `"Both errored"`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-identifier-aliased-to-number-literal/fixture.ts b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-identifier-aliased-to-number-literal/fixture.ts new file mode 100644 index 000000000000..e37d9c20f53f --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-identifier-aliased-to-number-literal/fixture.ts @@ -0,0 +1 @@ +import { X as 1 } from 'mod'; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-identifier-aliased-to-number-literal/snapshots/1-TSESTree-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-identifier-aliased-to-number-literal/snapshots/1-TSESTree-Error.shot new file mode 100644 index 000000000000..58be2d8119f6 --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-identifier-aliased-to-number-literal/snapshots/1-TSESTree-Error.shot @@ -0,0 +1,8 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration _error_ named-identifier-aliased-to-number-literal TSESTree - Error 1`] = ` +"TSError +> 1 | import { X as 1 } from 'mod'; + | ^ Identifier expected. + 2 |" +`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-identifier-aliased-to-number-literal/snapshots/2-Babel-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-identifier-aliased-to-number-literal/snapshots/2-Babel-Error.shot new file mode 100644 index 000000000000..d9a7cd7a0c2e --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-identifier-aliased-to-number-literal/snapshots/2-Babel-Error.shot @@ -0,0 +1,3 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration _error_ named-identifier-aliased-to-number-literal Babel - Error 1`] = `[SyntaxError: Unexpected token (1:14)]`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/name/snapshots/3-Alignment-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-identifier-aliased-to-number-literal/snapshots/3-Alignment-Error.shot similarity index 57% rename from packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/name/snapshots/3-Alignment-Error.shot rename to packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-identifier-aliased-to-number-literal/snapshots/3-Alignment-Error.shot index 8706c3d608a2..8c894dfa107b 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/name/snapshots/3-Alignment-Error.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-identifier-aliased-to-number-literal/snapshots/3-Alignment-Error.shot @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ImportDeclaration _error_ name Error Alignment 1`] = `"Both errored"`; +exports[`AST Fixtures declaration ImportDeclaration _error_ named-identifier-aliased-to-number-literal Error Alignment 1`] = `"Both errored"`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-identifier-aliased-to-string-literal/fixture.ts b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-identifier-aliased-to-string-literal/fixture.ts new file mode 100644 index 000000000000..6687e6e1bc00 --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-identifier-aliased-to-string-literal/fixture.ts @@ -0,0 +1 @@ +import { X as 'a a' } from 'mod'; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-identifier-aliased-to-string-literal/snapshots/1-TSESTree-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-identifier-aliased-to-string-literal/snapshots/1-TSESTree-Error.shot new file mode 100644 index 000000000000..531618494f56 --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-identifier-aliased-to-string-literal/snapshots/1-TSESTree-Error.shot @@ -0,0 +1,8 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration _error_ named-identifier-aliased-to-string-literal TSESTree - Error 1`] = ` +"TSError +> 1 | import { X as 'a a' } from 'mod'; + | ^ Identifier expected. + 2 |" +`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-identifier-aliased-to-string-literal/snapshots/2-Babel-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-identifier-aliased-to-string-literal/snapshots/2-Babel-Error.shot new file mode 100644 index 000000000000..7656a34c665f --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-identifier-aliased-to-string-literal/snapshots/2-Babel-Error.shot @@ -0,0 +1,3 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration _error_ named-identifier-aliased-to-string-literal Babel - Error 1`] = `[SyntaxError: Unexpected token (1:14)]`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/name/snapshots/2-Alignment-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-identifier-aliased-to-string-literal/snapshots/3-Alignment-Error.shot similarity index 57% rename from packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/name/snapshots/2-Alignment-Error.shot rename to packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-identifier-aliased-to-string-literal/snapshots/3-Alignment-Error.shot index fefbeef9c524..a29f2cd12227 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/name/snapshots/2-Alignment-Error.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-identifier-aliased-to-string-literal/snapshots/3-Alignment-Error.shot @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ImportDeclaration _error_ named-non-identifier Error Alignment 1`] = `"Both errored"`; +exports[`AST Fixtures declaration ImportDeclaration _error_ named-identifier-aliased-to-string-literal Error Alignment 1`] = `"Both errored"`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-identifier/fixture.ts b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-identifier/fixture.ts new file mode 100644 index 000000000000..099f3ad1726b --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-identifier/fixture.ts @@ -0,0 +1 @@ +import { 1 as X } from 'mod'; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/name/snapshots/1-TSESTree-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-identifier/snapshots/1-TSESTree-Error.shot similarity index 62% rename from packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/name/snapshots/1-TSESTree-Error.shot rename to packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-identifier/snapshots/1-TSESTree-Error.shot index 7423421a9e86..e1122d1ce71d 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/name/snapshots/1-TSESTree-Error.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-identifier/snapshots/1-TSESTree-Error.shot @@ -1,8 +1,8 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ImportDeclaration _error_ name TSESTree - Error 1`] = ` +exports[`AST Fixtures declaration ImportDeclaration _error_ named-number-literal-aliased-to-identifier TSESTree - Error 1`] = ` "TSError -> 1 | import { 1 } from 'mod'; +> 1 | import { 1 as X } from 'mod'; | ^ Identifier expected. 2 |" `; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-identifier/snapshots/2-Babel-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-identifier/snapshots/2-Babel-Error.shot new file mode 100644 index 000000000000..58519208645e --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-identifier/snapshots/2-Babel-Error.shot @@ -0,0 +1,3 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration _error_ named-number-literal-aliased-to-identifier Babel - Error 1`] = `[SyntaxError: Unexpected token (1:9)]`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/name/snapshots/2-Babel-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-identifier/snapshots/3-Alignment-Error.shot similarity index 57% rename from packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/name/snapshots/2-Babel-Error.shot rename to packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-identifier/snapshots/3-Alignment-Error.shot index e162fb8fbb09..749860b2f02f 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/name/snapshots/2-Babel-Error.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-identifier/snapshots/3-Alignment-Error.shot @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ImportDeclaration _error_ name Babel - Error 1`] = `[SyntaxError: Unexpected token (1:9)]`; +exports[`AST Fixtures declaration ImportDeclaration _error_ named-number-literal-aliased-to-identifier Error Alignment 1`] = `"Both errored"`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-number-literal/fixture.ts b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-number-literal/fixture.ts new file mode 100644 index 000000000000..fea36d1c3a0d --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-number-literal/fixture.ts @@ -0,0 +1 @@ +import { 1 as 1 } from 'mod'; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-number-literal/snapshots/1-TSESTree-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-number-literal/snapshots/1-TSESTree-Error.shot new file mode 100644 index 000000000000..80f9adac9bcb --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-number-literal/snapshots/1-TSESTree-Error.shot @@ -0,0 +1,8 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration _error_ named-number-literal-aliased-to-number-literal TSESTree - Error 1`] = ` +"TSError +> 1 | import { 1 as 1 } from 'mod'; + | ^ Identifier expected. + 2 |" +`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-number-literal/snapshots/2-Babel-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-number-literal/snapshots/2-Babel-Error.shot new file mode 100644 index 000000000000..0a7c831653fd --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-number-literal/snapshots/2-Babel-Error.shot @@ -0,0 +1,3 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration _error_ named-number-literal-aliased-to-number-literal Babel - Error 1`] = `[SyntaxError: Unexpected token (1:9)]`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/name/snapshots/1-Babel-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-number-literal/snapshots/3-Alignment-Error.shot similarity index 56% rename from packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/name/snapshots/1-Babel-Error.shot rename to packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-number-literal/snapshots/3-Alignment-Error.shot index 970528e3253d..2f287555e305 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/name/snapshots/1-Babel-Error.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-number-literal/snapshots/3-Alignment-Error.shot @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ImportDeclaration _error_ named-non-identifier Babel - Error 1`] = `[SyntaxError: Unexpected token (1:9)]`; +exports[`AST Fixtures declaration ImportDeclaration _error_ named-number-literal-aliased-to-number-literal Error Alignment 1`] = `"Both errored"`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-string-literal/fixture.ts b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-string-literal/fixture.ts new file mode 100644 index 000000000000..511385a56927 --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-string-literal/fixture.ts @@ -0,0 +1 @@ +import { 1 as 'a a' } from 'mod'; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-string-literal/snapshots/1-TSESTree-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-string-literal/snapshots/1-TSESTree-Error.shot new file mode 100644 index 000000000000..ec1b36db89c2 --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-string-literal/snapshots/1-TSESTree-Error.shot @@ -0,0 +1,8 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration _error_ named-number-literal-aliased-to-string-literal TSESTree - Error 1`] = ` +"TSError +> 1 | import { 1 as 'a a' } from 'mod'; + | ^ Identifier expected. + 2 |" +`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-string-literal/snapshots/2-Babel-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-string-literal/snapshots/2-Babel-Error.shot new file mode 100644 index 000000000000..19f6f28a36de --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-string-literal/snapshots/2-Babel-Error.shot @@ -0,0 +1,3 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration _error_ named-number-literal-aliased-to-string-literal Babel - Error 1`] = `[SyntaxError: Unexpected token (1:9)]`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-string-literal/snapshots/3-Alignment-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-string-literal/snapshots/3-Alignment-Error.shot new file mode 100644 index 000000000000..7cf9b37ab9fd --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-number-literal-aliased-to-string-literal/snapshots/3-Alignment-Error.shot @@ -0,0 +1,3 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration _error_ named-number-literal-aliased-to-string-literal Error Alignment 1`] = `"Both errored"`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal-aliased-to-number-literal/fixture.ts b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal-aliased-to-number-literal/fixture.ts new file mode 100644 index 000000000000..0a3e8d333471 --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal-aliased-to-number-literal/fixture.ts @@ -0,0 +1 @@ +import { "😭" as 1 } from 'mod'; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal-aliased-to-number-literal/snapshots/1-TSESTree-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal-aliased-to-number-literal/snapshots/1-TSESTree-Error.shot new file mode 100644 index 000000000000..96863c644aec --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal-aliased-to-number-literal/snapshots/1-TSESTree-Error.shot @@ -0,0 +1,8 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration _error_ named-string-literal-aliased-to-number-literal TSESTree - Error 1`] = ` +"TSError +> 1 | import { "😭" as 1 } from 'mod'; + | ^ Identifier expected. + 2 |" +`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal-aliased-to-number-literal/snapshots/2-Babel-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal-aliased-to-number-literal/snapshots/2-Babel-Error.shot new file mode 100644 index 000000000000..59bdc16bbe31 --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal-aliased-to-number-literal/snapshots/2-Babel-Error.shot @@ -0,0 +1,3 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration _error_ named-string-literal-aliased-to-number-literal Babel - Error 1`] = `[SyntaxError: Unexpected token (1:17)]`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal-aliased-to-number-literal/snapshots/3-Alignment-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal-aliased-to-number-literal/snapshots/3-Alignment-Error.shot new file mode 100644 index 000000000000..9fdcd1ad6d2f --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal-aliased-to-number-literal/snapshots/3-Alignment-Error.shot @@ -0,0 +1,3 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration _error_ named-string-literal-aliased-to-number-literal Error Alignment 1`] = `"Both errored"`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal-aliased-to-string-literal/fixture.ts b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal-aliased-to-string-literal/fixture.ts new file mode 100644 index 000000000000..d2a4b3f84e80 --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal-aliased-to-string-literal/fixture.ts @@ -0,0 +1 @@ +import { "😭" as 'a a' } from 'mod'; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal-aliased-to-string-literal/snapshots/1-TSESTree-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal-aliased-to-string-literal/snapshots/1-TSESTree-Error.shot new file mode 100644 index 000000000000..31ba0b991eb4 --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal-aliased-to-string-literal/snapshots/1-TSESTree-Error.shot @@ -0,0 +1,8 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration _error_ named-string-literal-aliased-to-string-literal TSESTree - Error 1`] = ` +"TSError +> 1 | import { "😭" as 'a a' } from 'mod'; + | ^ Identifier expected. + 2 |" +`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal-aliased-to-string-literal/snapshots/2-Babel-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal-aliased-to-string-literal/snapshots/2-Babel-Error.shot new file mode 100644 index 000000000000..13f04b7d71f3 --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal-aliased-to-string-literal/snapshots/2-Babel-Error.shot @@ -0,0 +1,3 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration _error_ named-string-literal-aliased-to-string-literal Babel - Error 1`] = `[SyntaxError: Unexpected token (1:17)]`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal-aliased-to-string-literal/snapshots/3-Alignment-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal-aliased-to-string-literal/snapshots/3-Alignment-Error.shot new file mode 100644 index 000000000000..bac20b92c0dd --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal-aliased-to-string-literal/snapshots/3-Alignment-Error.shot @@ -0,0 +1,3 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration _error_ named-string-literal-aliased-to-string-literal Error Alignment 1`] = `"Both errored"`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal/snapshots/1-Babel-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal/snapshots/1-Babel-Error.shot deleted file mode 100644 index 970528e3253d..000000000000 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal/snapshots/1-Babel-Error.shot +++ /dev/null @@ -1,3 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AST Fixtures declaration ImportDeclaration _error_ named-non-identifier Babel - Error 1`] = `[SyntaxError: Unexpected token (1:9)]`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal/snapshots/2-Alignment-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal/snapshots/2-Alignment-Error.shot deleted file mode 100644 index fefbeef9c524..000000000000 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/named-string-literal/snapshots/2-Alignment-Error.shot +++ /dev/null @@ -1,3 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AST Fixtures declaration ImportDeclaration _error_ named-non-identifier Error Alignment 1`] = `"Both errored"`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/namespace-and-default/snapshots/1-Babel-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/namespace-and-default/snapshots/1-Babel-Error.shot deleted file mode 100644 index 294d069aacc6..000000000000 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/namespace-and-default/snapshots/1-Babel-Error.shot +++ /dev/null @@ -1,3 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AST Fixtures declaration ImportDeclaration _error_ namespace-and-default Babel - Error 1`] = `[SyntaxError: Unexpected token, expected "from" (1:13)]`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/namespace-and-default/snapshots/2-Alignment-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/namespace-and-default/snapshots/2-Alignment-Error.shot deleted file mode 100644 index 6e491db0e63b..000000000000 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/namespace-and-default/snapshots/2-Alignment-Error.shot +++ /dev/null @@ -1,3 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AST Fixtures declaration ImportDeclaration _error_ namespace-and-default Error Alignment 1`] = `"Both errored"`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/namespace-and-named/snapshots/1-Babel-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/namespace-and-named/snapshots/1-Babel-Error.shot deleted file mode 100644 index 605940a84336..000000000000 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/namespace-and-named/snapshots/1-Babel-Error.shot +++ /dev/null @@ -1,3 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AST Fixtures declaration ImportDeclaration _error_ namespace-and-named Babel - Error 1`] = `[SyntaxError: Unexpected token, expected "from" (1:13)]`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/namespace-and-named/snapshots/2-Alignment-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/namespace-and-named/snapshots/2-Alignment-Error.shot deleted file mode 100644 index f1e891dbecaf..000000000000 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/namespace-and-named/snapshots/2-Alignment-Error.shot +++ /dev/null @@ -1,3 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AST Fixtures declaration ImportDeclaration _error_ namespace-and-named Error Alignment 1`] = `"Both errored"`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/namespace-and-namespace/snapshots/1-Babel-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/namespace-and-namespace/snapshots/1-Babel-Error.shot deleted file mode 100644 index 8efbfcaf5191..000000000000 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/namespace-and-namespace/snapshots/1-Babel-Error.shot +++ /dev/null @@ -1,3 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AST Fixtures declaration ImportDeclaration _error_ namespace-and-namespace Babel - Error 1`] = `[SyntaxError: Unexpected token, expected "from" (1:13)]`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/namespace-and-namespace/snapshots/2-Alignment-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/namespace-and-namespace/snapshots/2-Alignment-Error.shot deleted file mode 100644 index e3c8c7a6288d..000000000000 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/namespace-and-namespace/snapshots/2-Alignment-Error.shot +++ /dev/null @@ -1,3 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AST Fixtures declaration ImportDeclaration _error_ namespace-and-namespace Error Alignment 1`] = `"Both errored"`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/namespace-non-identifier/snapshots/1-Babel-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/namespace-non-identifier/snapshots/1-Babel-Error.shot deleted file mode 100644 index a511cc6c94d3..000000000000 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/namespace-non-identifier/snapshots/1-Babel-Error.shot +++ /dev/null @@ -1,3 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AST Fixtures declaration ImportDeclaration _error_ namespace-non-identifier Babel - Error 1`] = `[SyntaxError: Unexpected token (1:12)]`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/namespace-non-identifier/snapshots/2-Alignment-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/namespace-non-identifier/snapshots/2-Alignment-Error.shot deleted file mode 100644 index f0d97ae32bc8..000000000000 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/namespace-non-identifier/snapshots/2-Alignment-Error.shot +++ /dev/null @@ -1,3 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AST Fixtures declaration ImportDeclaration _error_ namespace-non-identifier Error Alignment 1`] = `"Both errored"`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/non-string-source/snapshots/1-Babel-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/non-string-source/snapshots/1-Babel-Error.shot deleted file mode 100644 index 49abb8366621..000000000000 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/non-string-source/snapshots/1-Babel-Error.shot +++ /dev/null @@ -1,3 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AST Fixtures declaration ImportDeclaration _error_ non-string-source Babel - Error 1`] = `[SyntaxError: Unexpected token (1:19)]`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/non-string-source/snapshots/2-Alignment-Error.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/non-string-source/snapshots/2-Alignment-Error.shot deleted file mode 100644 index 0d5964ffc24c..000000000000 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/_error_/non-string-source/snapshots/2-Alignment-Error.shot +++ /dev/null @@ -1,3 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AST Fixtures declaration ImportDeclaration _error_ non-string-source Error Alignment 1`] = `"Both errored"`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/fixture.ts b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/fixture.ts deleted file mode 100644 index 421d8a81af3f..000000000000 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/fixture.ts +++ /dev/null @@ -1 +0,0 @@ -import {} from 'mod'; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/1-TSESTree-AST.shot deleted file mode 100644 index b15565a48422..000000000000 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/1-TSESTree-AST.shot +++ /dev/null @@ -1,39 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AST Fixtures declaration ImportDeclaration as-string TSESTree - AST 1`] = ` -Program { - type: "Program", - body: [ - ImportDeclaration { - type: "ImportDeclaration", - attributes: [], - importKind: "value", - source: Literal { - type: "Literal", - raw: "'mod'", - value: "mod", - - range: [15, 20], - loc: { - start: { column: 15, line: 1 }, - end: { column: 20, line: 1 }, - }, - }, - specifiers: [], - - range: [0, 21], - loc: { - start: { column: 0, line: 1 }, - end: { column: 21, line: 1 }, - }, - }, - ], - sourceType: "module", - - range: [0, 22], - loc: { - start: { column: 0, line: 1 }, - end: { column: 0, line: 2 }, - }, -} -`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/3-Babel-AST.shot deleted file mode 100644 index f18033903b8e..000000000000 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/3-Babel-AST.shot +++ /dev/null @@ -1,39 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AST Fixtures declaration ImportDeclaration as-string Babel - AST 1`] = ` -Program { - type: "Program", - body: [ - ImportDeclaration { - type: "ImportDeclaration", - assertions: [], - importKind: "value", - source: Literal { - type: "Literal", - raw: "'mod'", - value: "mod", - - range: [15, 20], - loc: { - start: { column: 15, line: 1 }, - end: { column: 20, line: 1 }, - }, - }, - specifiers: [], - - range: [0, 21], - loc: { - start: { column: 0, line: 1 }, - end: { column: 21, line: 1 }, - }, - }, - ], - sourceType: "module", - - range: [0, 22], - loc: { - start: { column: 0, line: 1 }, - end: { column: 0, line: 2 }, - }, -} -`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/5-AST-Alignment-AST.shot deleted file mode 100644 index 797210adaaed..000000000000 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/5-AST-Alignment-AST.shot +++ /dev/null @@ -1,44 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AST Fixtures declaration ImportDeclaration as-string AST Alignment - AST 1`] = ` -"Snapshot Diff: -- TSESTree -+ Babel - - Program { - type: 'Program', - body: Array [ - ImportDeclaration { - type: 'ImportDeclaration', -- attributes: Array [], -+ assertions: Array [], - importKind: 'value', - source: Literal { - type: 'Literal', - raw: '\\'mod\\'', - value: 'mod', - - range: [15, 20], - loc: { - start: { column: 15, line: 1 }, - end: { column: 20, line: 1 }, - }, - }, - specifiers: Array [], - - range: [0, 21], - loc: { - start: { column: 0, line: 1 }, - end: { column: 21, line: 1 }, - }, - }, - ], - sourceType: 'module', - - range: [0, 22], - loc: { - start: { column: 0, line: 1 }, - end: { column: 0, line: 2 }, - }, - }" -`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/fixture.ts b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/fixture.ts index ca1014f30e96..b4fa44ea4352 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/fixture.ts +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/fixture.ts @@ -1 +1 @@ -import { "🍎" as a } from "mod"; +import a from 'mod'; 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 b616f7c9c87e..0cd95609cb32 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 @@ -10,61 +10,49 @@ Program { importKind: "value", source: Literal { type: "Literal", - raw: ""mod"", + raw: "'mod'", value: "mod", - range: [26, 31], + range: [14, 19], loc: { - start: { column: 26, line: 1 }, - end: { column: 31, line: 1 }, + start: { column: 14, line: 1 }, + end: { column: 19, line: 1 }, }, }, specifiers: [ - ImportSpecifier { - type: "ImportSpecifier", - imported: Literal { - type: "Literal", - raw: ""🍎"", - value: "🍎", - - range: [9, 13], - loc: { - start: { column: 9, line: 1 }, - end: { column: 13, line: 1 }, - }, - }, - importKind: "value", + ImportDefaultSpecifier { + type: "ImportDefaultSpecifier", local: Identifier { type: "Identifier", decorators: [], name: "a", optional: false, - range: [17, 18], + range: [7, 8], loc: { - start: { column: 17, line: 1 }, - end: { column: 18, line: 1 }, + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, }, }, - range: [9, 18], + range: [7, 8], loc: { - start: { column: 9, line: 1 }, - end: { column: 18, line: 1 }, + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, }, }, ], - range: [0, 32], + range: [0, 20], loc: { start: { column: 0, line: 1 }, - end: { column: 32, line: 1 }, + end: { column: 20, line: 1 }, }, }, ], sourceType: "module", - range: [0, 33], + range: [0, 21], loc: { start: { column: 0, line: 1 }, end: { column: 0, line: 2 }, 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 6619475370ad..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 @@ -12,9 +12,9 @@ exports[`AST Fixtures declaration ImportDeclaration default TSESTree - Tokens 1` end: { column: 6, line: 1 }, }, }, - Punctuator { - type: "Punctuator", - value: "{", + Identifier { + type: "Identifier", + value: "a", range: [7, 8], loc: { @@ -22,9 +22,9 @@ exports[`AST Fixtures declaration ImportDeclaration default TSESTree - Tokens 1` end: { column: 8, line: 1 }, }, }, - String { - type: "String", - value: ""🍎"", + Identifier { + type: "Identifier", + value: "from", range: [9, 13], loc: { @@ -32,29 +32,19 @@ exports[`AST Fixtures declaration ImportDeclaration default TSESTree - Tokens 1` end: { column: 13, line: 1 }, }, }, - Identifier { - type: "Identifier", - value: "as", + String { + type: "String", + value: "'mod'", - range: [14, 16], + range: [14, 19], loc: { start: { column: 14, line: 1 }, - end: { column: 16, line: 1 }, - }, - }, - Identifier { - type: "Identifier", - value: "a", - - range: [17, 18], - loc: { - start: { column: 17, line: 1 }, - end: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, }, }, Punctuator { type: "Punctuator", - value: "}", + value: ";", range: [19, 20], loc: { @@ -62,35 +52,5 @@ exports[`AST Fixtures declaration ImportDeclaration default TSESTree - Tokens 1` end: { column: 20, line: 1 }, }, }, - Identifier { - type: "Identifier", - value: "from", - - range: [21, 25], - loc: { - start: { column: 21, line: 1 }, - end: { column: 25, line: 1 }, - }, - }, - String { - type: "String", - value: ""mod"", - - range: [26, 31], - loc: { - start: { column: 26, line: 1 }, - end: { column: 31, line: 1 }, - }, - }, - Punctuator { - type: "Punctuator", - value: ";", - - range: [31, 32], - loc: { - start: { column: 31, line: 1 }, - end: { column: 32, line: 1 }, - }, - }, ] `; 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 efa8ae4caffe..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 @@ -10,59 +10,47 @@ Program { importKind: "value", source: Literal { type: "Literal", - raw: ""mod"", + raw: "'mod'", value: "mod", - range: [26, 31], + range: [14, 19], loc: { - start: { column: 26, line: 1 }, - end: { column: 31, line: 1 }, + start: { column: 14, line: 1 }, + end: { column: 19, line: 1 }, }, }, specifiers: [ - ImportSpecifier { - type: "ImportSpecifier", - imported: Literal { - type: "Literal", - raw: ""🍎"", - value: "🍎", - - range: [9, 13], - loc: { - start: { column: 9, line: 1 }, - end: { column: 13, line: 1 }, - }, - }, - importKind: "value", + ImportDefaultSpecifier { + type: "ImportDefaultSpecifier", local: Identifier { type: "Identifier", name: "a", - range: [17, 18], + range: [7, 8], loc: { - start: { column: 17, line: 1 }, - end: { column: 18, line: 1 }, + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, }, }, - range: [9, 18], + range: [7, 8], loc: { - start: { column: 9, line: 1 }, - end: { column: 18, line: 1 }, + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, }, }, ], - range: [0, 32], + range: [0, 20], loc: { start: { column: 0, line: 1 }, - end: { column: 32, line: 1 }, + end: { column: 20, line: 1 }, }, }, ], sourceType: "module", - range: [0, 33], + range: [0, 21], loc: { start: { column: 0, line: 1 }, end: { column: 0, line: 2 }, 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 37a8fedc16a8..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 @@ -12,9 +12,9 @@ exports[`AST Fixtures declaration ImportDeclaration default Babel - Tokens 1`] = end: { column: 6, line: 1 }, }, }, - Punctuator { - type: "Punctuator", - value: "{", + Identifier { + type: "Identifier", + value: "a", range: [7, 8], loc: { @@ -22,9 +22,9 @@ exports[`AST Fixtures declaration ImportDeclaration default Babel - Tokens 1`] = end: { column: 8, line: 1 }, }, }, - String { - type: "String", - value: ""🍎"", + Identifier { + type: "Identifier", + value: "from", range: [9, 13], loc: { @@ -32,29 +32,19 @@ exports[`AST Fixtures declaration ImportDeclaration default Babel - Tokens 1`] = end: { column: 13, line: 1 }, }, }, - Identifier { - type: "Identifier", - value: "as", + String { + type: "String", + value: "'mod'", - range: [14, 16], + range: [14, 19], loc: { start: { column: 14, line: 1 }, - end: { column: 16, line: 1 }, - }, - }, - Identifier { - type: "Identifier", - value: "a", - - range: [17, 18], - loc: { - start: { column: 17, line: 1 }, - end: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, }, }, Punctuator { type: "Punctuator", - value: "}", + value: ";", range: [19, 20], loc: { @@ -62,35 +52,5 @@ exports[`AST Fixtures declaration ImportDeclaration default Babel - Tokens 1`] = end: { column: 20, line: 1 }, }, }, - Identifier { - type: "Identifier", - value: "from", - - range: [21, 25], - loc: { - start: { column: 21, line: 1 }, - end: { column: 25, line: 1 }, - }, - }, - String { - type: "String", - value: ""mod"", - - range: [26, 31], - loc: { - start: { column: 26, line: 1 }, - end: { column: 31, line: 1 }, - }, - }, - Punctuator { - type: "Punctuator", - value: ";", - - range: [31, 32], - loc: { - start: { column: 31, line: 1 }, - end: { column: 32, line: 1 }, - }, - }, ] `; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/5-AST-Alignment-AST.shot index 2b849831186c..1e180527e932 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/5-AST-Alignment-AST.shot @@ -15,61 +15,49 @@ exports[`AST Fixtures declaration ImportDeclaration default AST Alignment - AST importKind: 'value', source: Literal { type: 'Literal', - raw: '"mod"', + raw: '\\'mod\\'', value: 'mod', - range: [26, 31], + range: [14, 19], loc: { - start: { column: 26, line: 1 }, - end: { column: 31, line: 1 }, + start: { column: 14, line: 1 }, + end: { column: 19, line: 1 }, }, }, specifiers: Array [ - ImportSpecifier { - type: 'ImportSpecifier', - imported: Literal { - type: 'Literal', - raw: '"🍎"', - value: '🍎', - - range: [9, 13], - loc: { - start: { column: 9, line: 1 }, - end: { column: 13, line: 1 }, - }, - }, - importKind: 'value', + ImportDefaultSpecifier { + type: 'ImportDefaultSpecifier', local: Identifier { type: 'Identifier', - decorators: Array [], name: 'a', - optional: false, - range: [17, 18], + range: [7, 8], loc: { - start: { column: 17, line: 1 }, - end: { column: 18, line: 1 }, + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, }, }, - range: [9, 18], + range: [7, 8], loc: { - start: { column: 9, line: 1 }, - end: { column: 18, line: 1 }, + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, }, }, ], - range: [0, 32], + range: [0, 20], loc: { start: { column: 0, line: 1 }, - end: { column: 32, line: 1 }, + end: { column: 20, line: 1 }, }, }, ], sourceType: 'module', - range: [0, 33], + range: [0, 21], loc: { start: { column: 0, line: 1 }, end: { column: 0, line: 2 }, diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-string-literal-aliased-to-identifier/fixture.ts b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-string-literal-aliased-to-identifier/fixture.ts new file mode 100644 index 000000000000..dd77a2ba052f --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-string-literal-aliased-to-identifier/fixture.ts @@ -0,0 +1 @@ +import { 'a a' as X } from 'mod'; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-string-literal-aliased-to-identifier/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-string-literal-aliased-to-identifier/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..c17bff3bdbb9 --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-string-literal-aliased-to-identifier/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,73 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration named-string-literal-aliased-to-identifier TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + ImportDeclaration { + type: "ImportDeclaration", + attributes: [], + importKind: "value", + source: Literal { + type: "Literal", + raw: "'mod'", + value: "mod", + + range: [27, 32], + loc: { + start: { column: 27, line: 1 }, + end: { column: 32, line: 1 }, + }, + }, + specifiers: [ + ImportSpecifier { + type: "ImportSpecifier", + imported: Literal { + type: "Literal", + raw: "'a a'", + value: "a a", + + range: [9, 14], + loc: { + start: { column: 9, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + importKind: "value", + local: Identifier { + type: "Identifier", + decorators: [], + name: "X", + optional: false, + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [9, 19], + loc: { + start: { column: 9, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + ], + + range: [0, 33], + loc: { + start: { column: 0, line: 1 }, + end: { column: 33, line: 1 }, + }, + }, + ], + sourceType: "module", + + range: [0, 34], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-string-literal-aliased-to-identifier/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-string-literal-aliased-to-identifier/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..707ce3ff9c17 --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-string-literal-aliased-to-identifier/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,96 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration named-string-literal-aliased-to-identifier TSESTree - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "import", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + String { + type: "String", + value: "'a a'", + + range: [9, 14], + loc: { + start: { column: 9, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "as", + + range: [15, 17], + loc: { + start: { column: 15, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "X", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "from", + + range: [22, 26], + loc: { + start: { column: 22, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + String { + type: "String", + value: "'mod'", + + range: [27, 32], + loc: { + start: { column: 27, line: 1 }, + end: { column: 32, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [32, 33], + loc: { + start: { column: 32, line: 1 }, + end: { column: 33, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-string-literal-aliased-to-identifier/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-string-literal-aliased-to-identifier/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..c8b8eaf484f7 --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-string-literal-aliased-to-identifier/snapshots/3-Babel-AST.shot @@ -0,0 +1,71 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration named-string-literal-aliased-to-identifier Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + ImportDeclaration { + type: "ImportDeclaration", + assertions: [], + importKind: "value", + source: Literal { + type: "Literal", + raw: "'mod'", + value: "mod", + + range: [27, 32], + loc: { + start: { column: 27, line: 1 }, + end: { column: 32, line: 1 }, + }, + }, + specifiers: [ + ImportSpecifier { + type: "ImportSpecifier", + imported: Literal { + type: "Literal", + raw: "'a a'", + value: "a a", + + range: [9, 14], + loc: { + start: { column: 9, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + importKind: "value", + local: Identifier { + type: "Identifier", + name: "X", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [9, 19], + loc: { + start: { column: 9, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + ], + + range: [0, 33], + loc: { + start: { column: 0, line: 1 }, + end: { column: 33, line: 1 }, + }, + }, + ], + sourceType: "module", + + range: [0, 34], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-string-literal-aliased-to-identifier/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-string-literal-aliased-to-identifier/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..49688d3a6cb3 --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-string-literal-aliased-to-identifier/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,96 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration named-string-literal-aliased-to-identifier Babel - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "import", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + String { + type: "String", + value: "'a a'", + + range: [9, 14], + loc: { + start: { column: 9, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "as", + + range: [15, 17], + loc: { + start: { column: 15, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "X", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "from", + + range: [22, 26], + loc: { + start: { column: 22, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + String { + type: "String", + value: "'mod'", + + range: [27, 32], + loc: { + start: { column: 27, line: 1 }, + end: { column: 32, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [32, 33], + loc: { + start: { column: 32, line: 1 }, + end: { column: 33, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-string-literal-aliased-to-identifier/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-string-literal-aliased-to-identifier/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..4e07e47433b7 --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-string-literal-aliased-to-identifier/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,78 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration named-string-literal-aliased-to-identifier AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ImportDeclaration { + type: 'ImportDeclaration', +- attributes: Array [], ++ assertions: Array [], + importKind: 'value', + source: Literal { + type: 'Literal', + raw: '\\'mod\\'', + value: 'mod', + + range: [27, 32], + loc: { + start: { column: 27, line: 1 }, + end: { column: 32, line: 1 }, + }, + }, + specifiers: Array [ + ImportSpecifier { + type: 'ImportSpecifier', + imported: Literal { + type: 'Literal', + raw: '\\'a a\\'', + value: 'a a', + + range: [9, 14], + loc: { + start: { column: 9, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + importKind: 'value', + local: Identifier { + type: 'Identifier', +- decorators: Array [], + name: 'X', +- optional: false, + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [9, 19], + loc: { + start: { column: 9, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + ], + + range: [0, 33], + loc: { + start: { column: 0, line: 1 }, + end: { column: 33, line: 1 }, + }, + }, + ], + sourceType: 'module', + + range: [0, 34], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-string-literal-aliased-to-identifier/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-string-literal-aliased-to-identifier/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..a3c5da04f73a --- /dev/null +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-string-literal-aliased-to-identifier/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ImportDeclaration named-string-literal-aliased-to-identifier AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/await-using-multiple-declarations/fixture.ts b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/await-using-multiple-declarations/fixture.ts index 9e48b70be733..58f984a20bd4 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/await-using-multiple-declarations/fixture.ts +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/await-using-multiple-declarations/fixture.ts @@ -1 +1,2 @@ -await using x = 1, y = 2; +await using x = 1, + y = 2; diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/using-multiple-declarations/fixture.ts b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/using-multiple-declarations/fixture.ts index dcce1ee2a42a..e1c8d6e78ad2 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/using-multiple-declarations/fixture.ts +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/using-multiple-declarations/fixture.ts @@ -1 +1,2 @@ -using x = 1, y = 2; +using x = 1, + y = 2; diff --git a/packages/ast-spec/src/jsx/JSXNamespacedName/fixtures/component/fixture.tsx b/packages/ast-spec/src/jsx/JSXNamespacedName/fixtures/component/fixture.tsx index 04117403f023..2e5c444e3f6c 100644 --- a/packages/ast-spec/src/jsx/JSXNamespacedName/fixtures/component/fixture.tsx +++ b/packages/ast-spec/src/jsx/JSXNamespacedName/fixtures/component/fixture.tsx @@ -1,10 +1,10 @@ const x = ; -const y = ; +const y = ; interface NamespacePropComponentProps { - "a:b": string; + 'a:b': string; } function NamespacePropComponent(props: NamespacePropComponentProps) { - return
{props["a:b"]}
; + return
{props['a:b']}
; } diff --git a/packages/ast-spec/src/special/ExportSpecifier/fixtures/_error_/literal-specifier/fixture.ts b/packages/ast-spec/src/special/ExportSpecifier/fixtures/_error_/literal-specifier/fixture.ts new file mode 100644 index 000000000000..4e5fb7826321 --- /dev/null +++ b/packages/ast-spec/src/special/ExportSpecifier/fixtures/_error_/literal-specifier/fixture.ts @@ -0,0 +1 @@ +export { 'A' as A }; diff --git a/packages/ast-spec/src/special/ExportSpecifier/fixtures/_error_/literal-specifier/snapshots/1-TSESTree-Error.shot b/packages/ast-spec/src/special/ExportSpecifier/fixtures/_error_/literal-specifier/snapshots/1-TSESTree-Error.shot new file mode 100644 index 000000000000..ee76a4ad0f5a --- /dev/null +++ b/packages/ast-spec/src/special/ExportSpecifier/fixtures/_error_/literal-specifier/snapshots/1-TSESTree-Error.shot @@ -0,0 +1,8 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special ExportSpecifier _error_ literal-specifier TSESTree - Error 1`] = ` +"TSError +> 1 | export { 'A' as A }; + | ^^^ A string literal cannot be used as a local exported binding without \`from\`. + 2 |" +`; diff --git a/packages/ast-spec/src/special/ExportSpecifier/fixtures/_error_/literal-specifier/snapshots/2-Babel-Error.shot b/packages/ast-spec/src/special/ExportSpecifier/fixtures/_error_/literal-specifier/snapshots/2-Babel-Error.shot new file mode 100644 index 000000000000..371eef93ebcd --- /dev/null +++ b/packages/ast-spec/src/special/ExportSpecifier/fixtures/_error_/literal-specifier/snapshots/2-Babel-Error.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special ExportSpecifier _error_ literal-specifier Babel - Error 1`] = ` +[SyntaxError: A string literal cannot be used as an exported binding without \`from\`. +- Did you mean \`export { 'A' as 'A' } from 'some-module'\`? (1:9)] +`; diff --git a/packages/ast-spec/src/special/ExportSpecifier/fixtures/_error_/literal-specifier/snapshots/3-Alignment-Error.shot b/packages/ast-spec/src/special/ExportSpecifier/fixtures/_error_/literal-specifier/snapshots/3-Alignment-Error.shot new file mode 100644 index 000000000000..1b30c3094d7c --- /dev/null +++ b/packages/ast-spec/src/special/ExportSpecifier/fixtures/_error_/literal-specifier/snapshots/3-Alignment-Error.shot @@ -0,0 +1,3 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special ExportSpecifier _error_ literal-specifier Error Alignment 1`] = `"Both errored"`; diff --git a/packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/fixture.ts b/packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/fixture.ts deleted file mode 100644 index 96627be28005..000000000000 --- a/packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/fixture.ts +++ /dev/null @@ -1 +0,0 @@ -export { type A } from 'mod'; diff --git a/packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/6-AST-Alignment-Tokens.shot deleted file mode 100644 index 14162922e456..000000000000 --- a/packages/ast-spec/src/special/ExportSpecifier/fixtures/export-as-string-literal-from/snapshots/6-AST-Alignment-Tokens.shot +++ /dev/null @@ -1,6 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AST Fixtures special ExportSpecifier export-as-string-literal-from AST Alignment - Token 1`] = ` -"Snapshot Diff: -Compared values have no visual difference." -`; diff --git a/packages/ast-spec/src/special/ExportSpecifier/fixtures/literal-specifier/fixture.ts b/packages/ast-spec/src/special/ExportSpecifier/fixtures/literal-specifier/fixture.ts new file mode 100644 index 000000000000..a45b013df7fa --- /dev/null +++ b/packages/ast-spec/src/special/ExportSpecifier/fixtures/literal-specifier/fixture.ts @@ -0,0 +1 @@ +export { A as 'A' } from 'mod'; diff --git a/packages/ast-spec/src/special/ExportSpecifier/fixtures/literal-specifier/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/special/ExportSpecifier/fixtures/literal-specifier/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..b69c0578632e --- /dev/null +++ b/packages/ast-spec/src/special/ExportSpecifier/fixtures/literal-specifier/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,74 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special ExportSpecifier literal-specifier TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + ExportNamedDeclaration { + type: "ExportNamedDeclaration", + attributes: [], + declaration: null, + exportKind: "value", + source: Literal { + type: "Literal", + raw: "'mod'", + value: "mod", + + range: [25, 30], + loc: { + start: { column: 25, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + specifiers: [ + ExportSpecifier { + type: "ExportSpecifier", + exported: Literal { + type: "Literal", + raw: "'A'", + value: "A", + + range: [14, 17], + loc: { + start: { column: 14, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + exportKind: "value", + local: Identifier { + type: "Identifier", + decorators: [], + name: "A", + optional: false, + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + + range: [9, 17], + loc: { + start: { column: 9, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + ], + + range: [0, 31], + loc: { + start: { column: 0, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + ], + sourceType: "module", + + range: [0, 32], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/ExportSpecifier/fixtures/literal-specifier/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/special/ExportSpecifier/fixtures/literal-specifier/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..fb7598ea9115 --- /dev/null +++ b/packages/ast-spec/src/special/ExportSpecifier/fixtures/literal-specifier/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,96 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special ExportSpecifier literal-specifier TSESTree - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "export", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "A", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "as", + + range: [11, 13], + loc: { + start: { column: 11, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + String { + type: "String", + value: "'A'", + + range: [14, 17], + loc: { + start: { column: 14, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "from", + + range: [20, 24], + loc: { + start: { column: 20, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + String { + type: "String", + value: "'mod'", + + range: [25, 30], + loc: { + start: { column: 25, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [30, 31], + loc: { + start: { column: 30, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/ExportSpecifier/fixtures/literal-specifier/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/special/ExportSpecifier/fixtures/literal-specifier/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..359714d4fdb0 --- /dev/null +++ b/packages/ast-spec/src/special/ExportSpecifier/fixtures/literal-specifier/snapshots/3-Babel-AST.shot @@ -0,0 +1,72 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special ExportSpecifier literal-specifier Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + ExportNamedDeclaration { + type: "ExportNamedDeclaration", + assertions: [], + declaration: null, + exportKind: "value", + source: Literal { + type: "Literal", + raw: "'mod'", + value: "mod", + + range: [25, 30], + loc: { + start: { column: 25, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + specifiers: [ + ExportSpecifier { + type: "ExportSpecifier", + exported: Literal { + type: "Literal", + raw: "'A'", + value: "A", + + range: [14, 17], + loc: { + start: { column: 14, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + exportKind: "value", + local: Identifier { + type: "Identifier", + name: "A", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + + range: [9, 17], + loc: { + start: { column: 9, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + ], + + range: [0, 31], + loc: { + start: { column: 0, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + ], + sourceType: "module", + + range: [0, 32], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/ExportSpecifier/fixtures/literal-specifier/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/special/ExportSpecifier/fixtures/literal-specifier/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..c266c934e8af --- /dev/null +++ b/packages/ast-spec/src/special/ExportSpecifier/fixtures/literal-specifier/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,96 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special ExportSpecifier literal-specifier Babel - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "export", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "A", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "as", + + range: [11, 13], + loc: { + start: { column: 11, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + String { + type: "String", + value: "'A'", + + range: [14, 17], + loc: { + start: { column: 14, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "from", + + range: [20, 24], + loc: { + start: { column: 20, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + String { + type: "String", + value: "'mod'", + + range: [25, 30], + loc: { + start: { column: 25, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [30, 31], + loc: { + start: { column: 30, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/ExportSpecifier/fixtures/literal-specifier/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/special/ExportSpecifier/fixtures/literal-specifier/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..f904d790041a --- /dev/null +++ b/packages/ast-spec/src/special/ExportSpecifier/fixtures/literal-specifier/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,79 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special ExportSpecifier literal-specifier AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExportNamedDeclaration { + type: 'ExportNamedDeclaration', +- attributes: Array [], ++ assertions: Array [], + declaration: null, + exportKind: 'value', + source: Literal { + type: 'Literal', + raw: '\\'mod\\'', + value: 'mod', + + range: [25, 30], + loc: { + start: { column: 25, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + specifiers: Array [ + ExportSpecifier { + type: 'ExportSpecifier', + exported: Literal { + type: 'Literal', + raw: '\\'A\\'', + value: 'A', + + range: [14, 17], + loc: { + start: { column: 14, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + exportKind: 'value', + local: Identifier { + type: 'Identifier', +- decorators: Array [], + name: 'A', +- optional: false, + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + + range: [9, 17], + loc: { + start: { column: 9, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + ], + + range: [0, 31], + loc: { + start: { column: 0, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + ], + sourceType: 'module', + + range: [0, 32], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/special/ExportSpecifier/fixtures/literal-specifier/snapshots/6-AST-Alignment-Tokens.shot similarity index 53% rename from packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/6-AST-Alignment-Tokens.shot rename to packages/ast-spec/src/special/ExportSpecifier/fixtures/literal-specifier/snapshots/6-AST-Alignment-Tokens.shot index 93c395a91a60..e722c5c9970c 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/as-string/snapshots/6-AST-Alignment-Tokens.shot +++ b/packages/ast-spec/src/special/ExportSpecifier/fixtures/literal-specifier/snapshots/6-AST-Alignment-Tokens.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ImportDeclaration as-string AST Alignment - Token 1`] = ` +exports[`AST Fixtures special ExportSpecifier literal-specifier AST Alignment - Token 1`] = ` "Snapshot Diff: Compared values have no visual difference." `; diff --git a/packages/ast-spec/src/special/ExportSpecifier/fixtures/value-export-specifier/fixture.ts b/packages/ast-spec/src/special/ExportSpecifier/fixtures/value-export-specifier/fixture.ts new file mode 100644 index 000000000000..a45b013df7fa --- /dev/null +++ b/packages/ast-spec/src/special/ExportSpecifier/fixtures/value-export-specifier/fixture.ts @@ -0,0 +1 @@ +export { A as 'A' } from 'mod'; diff --git a/packages/ast-spec/src/special/ExportSpecifier/fixtures/value-export-specifier/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/special/ExportSpecifier/fixtures/value-export-specifier/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..a78bbd9c862e --- /dev/null +++ b/packages/ast-spec/src/special/ExportSpecifier/fixtures/value-export-specifier/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,74 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special ExportSpecifier value-export-specifier TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + ExportNamedDeclaration { + type: "ExportNamedDeclaration", + attributes: [], + declaration: null, + exportKind: "value", + source: Literal { + type: "Literal", + raw: "'mod'", + value: "mod", + + range: [25, 30], + loc: { + start: { column: 25, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + specifiers: [ + ExportSpecifier { + type: "ExportSpecifier", + exported: Literal { + type: "Literal", + raw: "'A'", + value: "A", + + range: [14, 17], + loc: { + start: { column: 14, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + exportKind: "value", + local: Identifier { + type: "Identifier", + decorators: [], + name: "A", + optional: false, + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + + range: [9, 17], + loc: { + start: { column: 9, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + ], + + range: [0, 31], + loc: { + start: { column: 0, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + ], + sourceType: "module", + + range: [0, 32], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/ExportSpecifier/fixtures/value-export-specifier/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/special/ExportSpecifier/fixtures/value-export-specifier/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..8e76817d8de0 --- /dev/null +++ b/packages/ast-spec/src/special/ExportSpecifier/fixtures/value-export-specifier/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,96 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special ExportSpecifier value-export-specifier TSESTree - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "export", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "A", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "as", + + range: [11, 13], + loc: { + start: { column: 11, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + String { + type: "String", + value: "'A'", + + range: [14, 17], + loc: { + start: { column: 14, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "from", + + range: [20, 24], + loc: { + start: { column: 20, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + String { + type: "String", + value: "'mod'", + + range: [25, 30], + loc: { + start: { column: 25, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [30, 31], + loc: { + start: { column: 30, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/ExportSpecifier/fixtures/value-export-specifier/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/special/ExportSpecifier/fixtures/value-export-specifier/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..fda29c2069d0 --- /dev/null +++ b/packages/ast-spec/src/special/ExportSpecifier/fixtures/value-export-specifier/snapshots/3-Babel-AST.shot @@ -0,0 +1,72 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special ExportSpecifier value-export-specifier Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + ExportNamedDeclaration { + type: "ExportNamedDeclaration", + assertions: [], + declaration: null, + exportKind: "value", + source: Literal { + type: "Literal", + raw: "'mod'", + value: "mod", + + range: [25, 30], + loc: { + start: { column: 25, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + specifiers: [ + ExportSpecifier { + type: "ExportSpecifier", + exported: Literal { + type: "Literal", + raw: "'A'", + value: "A", + + range: [14, 17], + loc: { + start: { column: 14, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + exportKind: "value", + local: Identifier { + type: "Identifier", + name: "A", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + + range: [9, 17], + loc: { + start: { column: 9, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + ], + + range: [0, 31], + loc: { + start: { column: 0, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + ], + sourceType: "module", + + range: [0, 32], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/special/ExportSpecifier/fixtures/value-export-specifier/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/special/ExportSpecifier/fixtures/value-export-specifier/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..93b98c503ed2 --- /dev/null +++ b/packages/ast-spec/src/special/ExportSpecifier/fixtures/value-export-specifier/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,96 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special ExportSpecifier value-export-specifier Babel - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "export", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "A", + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "as", + + range: [11, 13], + loc: { + start: { column: 11, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + String { + type: "String", + value: "'A'", + + range: [14, 17], + loc: { + start: { column: 14, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "from", + + range: [20, 24], + loc: { + start: { column: 20, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + String { + type: "String", + value: "'mod'", + + range: [25, 30], + loc: { + start: { column: 25, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [30, 31], + loc: { + start: { column: 30, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/special/ExportSpecifier/fixtures/value-export-specifier/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/special/ExportSpecifier/fixtures/value-export-specifier/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..df7bfcd78711 --- /dev/null +++ b/packages/ast-spec/src/special/ExportSpecifier/fixtures/value-export-specifier/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,79 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures special ExportSpecifier value-export-specifier AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExportNamedDeclaration { + type: 'ExportNamedDeclaration', +- attributes: Array [], ++ assertions: Array [], + declaration: null, + exportKind: 'value', + source: Literal { + type: 'Literal', + raw: '\\'mod\\'', + value: 'mod', + + range: [25, 30], + loc: { + start: { column: 25, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + specifiers: Array [ + ExportSpecifier { + type: 'ExportSpecifier', + exported: Literal { + type: 'Literal', + raw: '\\'A\\'', + value: 'A', + + range: [14, 17], + loc: { + start: { column: 14, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + exportKind: 'value', + local: Identifier { + type: 'Identifier', +- decorators: Array [], + name: 'A', +- optional: false, + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + + range: [9, 17], + loc: { + start: { column: 9, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + ], + + range: [0, 31], + loc: { + start: { column: 0, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + ], + sourceType: 'module', + + range: [0, 32], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/special/ExportSpecifier/fixtures/value-export-specifier/snapshots/6-AST-Alignment-Tokens.shot similarity index 51% rename from packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/6-AST-Alignment-Tokens.shot rename to packages/ast-spec/src/special/ExportSpecifier/fixtures/value-export-specifier/snapshots/6-AST-Alignment-Tokens.shot index ce523723d51e..f5be7bfe4cb7 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/6-AST-Alignment-Tokens.shot +++ b/packages/ast-spec/src/special/ExportSpecifier/fixtures/value-export-specifier/snapshots/6-AST-Alignment-Tokens.shot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures declaration ExportNamedDeclaration aliased AST Alignment - Token 1`] = ` +exports[`AST Fixtures special ExportSpecifier value-export-specifier AST Alignment - Token 1`] = ` "Snapshot Diff: Compared values have no visual difference." `; diff --git a/packages/ast-spec/src/special/ExportSpecifier/spec.ts b/packages/ast-spec/src/special/ExportSpecifier/spec.ts index 668e9c92c6c9..5d4d355fc2c3 100644 --- a/packages/ast-spec/src/special/ExportSpecifier/spec.ts +++ b/packages/ast-spec/src/special/ExportSpecifier/spec.ts @@ -4,18 +4,23 @@ import type { ExportKind } from '../../declaration/ExportAndImportKind'; import type { Identifier } from '../../expression/Identifier/spec'; import type { StringLiteral } from '../../expression/literal/StringLiteral/spec'; -export interface ExportSpecifierBase extends BaseNode { +interface ExportSpecifierBase extends BaseNode { type: AST_NODE_TYPES.ExportSpecifier; + exported: Identifier | StringLiteral; exportKind: ExportKind; - local: Identifier; + local: Identifier | StringLiteral; } -export interface ExportIdentifierSpecifier extends ExportSpecifierBase { - exported: Identifier; +export interface ExportSpecifierWithIdentifierLocal + extends ExportSpecifierBase { + local: Identifier; } -export interface ExportSourceSpecifier extends ExportSpecifierBase { - exported: Identifier | StringLiteral; +export interface ExportSpecifierWithStringOrLiteralLocal + extends ExportSpecifierBase { + local: Identifier | StringLiteral; } -export type ExportSpecifier = ExportIdentifierSpecifier | ExportSourceSpecifier; +export type ExportSpecifier = + | ExportSpecifierWithIdentifierLocal + | ExportSpecifierWithStringOrLiteralLocal; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-in-const-modifier/fixture.ts b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-in-const-modifier/fixture.ts index 046c0ebea359..4f2e85735664 100644 --- a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-in-const-modifier/fixture.ts +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-decl-in-const-modifier/fixture.ts @@ -1 +1 @@ -class D {} +class D {} diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-in-modifier/fixture.ts b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-in-modifier/fixture.ts index 7a02fba43020..7aab3b72c474 100644 --- a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-in-modifier/fixture.ts +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-in-modifier/fixture.ts @@ -1 +1 @@ -(class {}); +(class {}); diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/fixture.ts b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/fixture.ts index cd6ecc95bec3..141b8722a300 100644 --- a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/fixture.ts +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/fixture.ts @@ -1 +1 @@ -(class {}); +(class {}); diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/fixture.ts b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/fixture.ts index a0fd2dc36d9e..0f326968ac50 100644 --- a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/fixture.ts +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/fixture.ts @@ -1 +1 @@ -(class {}); +(class {}); diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier/fixture.ts b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier/fixture.ts index e7c0e459e69f..6636f92bcff8 100644 --- a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier/fixture.ts +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier/fixture.ts @@ -1 +1 @@ -(class {}); +(class {}); diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-in-const-modifier/fixture.ts b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-in-const-modifier/fixture.ts index eb21599bf3b2..7aab3b72c474 100644 --- a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-in-const-modifier/fixture.ts +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-in-const-modifier/fixture.ts @@ -1 +1 @@ -(class {}); +(class {}); diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-in-const-modifier-multiple/fixture.ts b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-in-const-modifier-multiple/fixture.ts index 8dc6e2f6033f..256f473826bf 100644 --- a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-in-const-modifier-multiple/fixture.ts +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-in-const-modifier-multiple/fixture.ts @@ -1 +1 @@ -interface L {} +interface L {} diff --git a/packages/ast-spec/tests/fixtures-with-differences-ast.shot b/packages/ast-spec/tests/fixtures-with-differences-ast.shot index 2458f8800f80..d6c3ab00dc5d 100644 --- a/packages/ast-spec/tests/fixtures-with-differences-ast.shot +++ b/packages/ast-spec/tests/fixtures-with-differences-ast.shot @@ -27,14 +27,21 @@ exports[`AST Fixtures List fixtures with AST differences 1`] = ` "declaration/ExportDefaultDeclaration/fixtures/function/fixture.ts", "declaration/ExportDefaultDeclaration/fixtures/identifier/fixture.ts", "declaration/ExportDefaultDeclaration/fixtures/interface/fixture.ts", - "declaration/ExportNamedDeclaration/fixtures/aliased/fixture.ts", - "declaration/ExportNamedDeclaration/fixtures/as-string/fixture.ts", + "declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-with-source/fixture.ts", + "declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-identifier-without-source/fixture.ts", + "declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-with-source/fixture.ts", + "declaration/ExportNamedDeclaration/fixtures/braced-identifier-aliased-to-string-literal-without-source/fixture.ts", + "declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-with-source/fixture.ts", + "declaration/ExportNamedDeclaration/fixtures/braced-identifier-many-without-source/fixture.ts", + "declaration/ExportNamedDeclaration/fixtures/braced-identifier-with-source/fixture.ts", + "declaration/ExportNamedDeclaration/fixtures/braced-identifier-without-source/fixture.ts", + "declaration/ExportNamedDeclaration/fixtures/braced-string-literal-aliased-to-identifier-with-source/fixture.ts", + "declaration/ExportNamedDeclaration/fixtures/braced-string-literal-many-with-source/fixture.ts", + "declaration/ExportNamedDeclaration/fixtures/braced-string-literal-with-source/fixture.ts", "declaration/ExportNamedDeclaration/fixtures/class/fixture.ts", "declaration/ExportNamedDeclaration/fixtures/declare-function/fixture.ts", "declaration/ExportNamedDeclaration/fixtures/enum/fixture.ts", "declaration/ExportNamedDeclaration/fixtures/function-declaration/fixture.ts", - "declaration/ExportNamedDeclaration/fixtures/identifier-braced/fixture.ts", - "declaration/ExportNamedDeclaration/fixtures/identifier-many/fixture.ts", "declaration/ExportNamedDeclaration/fixtures/interface/fixture.ts", "declaration/ExportNamedDeclaration/fixtures/namespace/fixture.ts", "declaration/ExportNamedDeclaration/fixtures/type-alias/fixture.ts", @@ -47,7 +54,6 @@ exports[`AST Fixtures List fixtures with AST differences 1`] = ` "declaration/FunctionDeclaration/fixtures/returnType/fixture.ts", "declaration/FunctionDeclaration/fixtures/type-param-many/fixture.ts", "declaration/FunctionDeclaration/fixtures/type-param-one/fixture.ts", - "declaration/ImportDeclaration/fixtures/as-string/fixture.ts", "declaration/ImportDeclaration/fixtures/assertion/fixture.ts", "declaration/ImportDeclaration/fixtures/default-and-named-many/fixture.ts", "declaration/ImportDeclaration/fixtures/default-and-named-none/fixture.ts", @@ -57,6 +63,7 @@ exports[`AST Fixtures List fixtures with AST differences 1`] = ` "declaration/ImportDeclaration/fixtures/named-many/fixture.ts", "declaration/ImportDeclaration/fixtures/named-none/fixture.ts", "declaration/ImportDeclaration/fixtures/named-one/fixture.ts", + "declaration/ImportDeclaration/fixtures/named-string-literal-aliased-to-identifier/fixture.ts", "declaration/ImportDeclaration/fixtures/side-effect/fixture.ts", "declaration/TSDeclareFunction/fixtures/async-ambient/fixture.ts", "declaration/TSDeclareFunction/fixtures/async-overload/fixture.ts", @@ -481,8 +488,9 @@ exports[`AST Fixtures List fixtures with AST differences 1`] = ` "legacy-fixtures/types/fixtures/union-type/fixture.ts", "special/Decorator/fixtures/decorator-class-member-super-with-parens/fixture.ts", "special/Decorator/fixtures/decorator-class-member-super-without-parens/fixture.ts", - "special/ExportSpecifier/fixtures/export-as-string-literal-from/fixture.ts", + "special/ExportSpecifier/fixtures/literal-specifier/fixture.ts", "special/ExportSpecifier/fixtures/type-only-export-specifiers/fixture.ts", + "special/ExportSpecifier/fixtures/value-export-specifier/fixture.ts", "special/ImportSpecifier/fixtures/type-only-import-specifier/fixture.ts", "special/ImportSpecifier/fixtures/type-only-import-specifiers/fixture.ts", "special/TSTypeParameter/fixtures/arrow-const-modifier-extends/fixture.ts", diff --git a/packages/ast-spec/tests/fixtures-with-differences-errors.shot b/packages/ast-spec/tests/fixtures-with-differences-errors.shot index f0ac17eb4d25..505d0a51a3e3 100644 --- a/packages/ast-spec/tests/fixtures-with-differences-errors.shot +++ b/packages/ast-spec/tests/fixtures-with-differences-errors.shot @@ -7,8 +7,6 @@ exports[`AST Fixtures List fixtures with Error differences 1`] = ` "declaration/ClassDeclaration/fixtures/_error_/missing-extends-type-param/fixture.ts", "declaration/ClassDeclaration/fixtures/_error_/missing-type-param/fixture.ts", "declaration/ExportNamedDeclaration/fixtures/_error_/assertion/fixture.ts", - "declaration/ExportNamedDeclaration/fixtures/_error_/export-as-string-literal/fixture.ts", - "declaration/ExportNamedDeclaration/fixtures/_error_/literal-braced/fixture.ts", "declaration/FunctionDeclaration/fixtures/_error_/missing-type-param/fixture.ts", "declaration/TSDeclareFunction/fixtures/_error_/missing-type-param/fixture.ts", "declaration/TSImportEqualsDeclaration/fixtures/_error_/import-kind/fixture.ts", diff --git a/packages/eslint-plugin/src/rules/consistent-type-exports.ts b/packages/eslint-plugin/src/rules/consistent-type-exports.ts index b99cc37c7e82..eb610ae84105 100644 --- a/packages/eslint-plugin/src/rules/consistent-type-exports.ts +++ b/packages/eslint-plugin/src/rules/consistent-type-exports.ts @@ -277,8 +277,10 @@ export default createRule({ } // We have both type and value violations. - const allExportNames = report.typeBasedSpecifiers.map( - specifier => specifier.local.name, + const allExportNames = report.typeBasedSpecifiers.map(specifier => + specifier.local.type === AST_NODE_TYPES.Identifier + ? specifier.local.name + : specifier.local.value, ); if (allExportNames.length === 1) { @@ -450,8 +452,12 @@ function getSpecifierText(specifier: TSESTree.ExportSpecifier): string { specifier.exported.type === AST_NODE_TYPES.Literal ? specifier.exported.raw : specifier.exported.name; + const localName = + specifier.local.type === AST_NODE_TYPES.Literal + ? specifier.local.raw + : specifier.local.name; - return `${specifier.local.name}${ - exportedName !== specifier.local.name ? ` as ${exportedName}` : '' + return `${localName}${ + exportedName !== localName ? ` as ${exportedName}` : '' }`; } diff --git a/packages/eslint-plugin/src/rules/explicit-module-boundary-types.ts b/packages/eslint-plugin/src/rules/explicit-module-boundary-types.ts index ee8f691b7695..add712099646 100644 --- a/packages/eslint-plugin/src/rules/explicit-module-boundary-types.ts +++ b/packages/eslint-plugin/src/rules/explicit-module-boundary-types.ts @@ -148,7 +148,7 @@ export default createRule({ checkNode(node.declaration); }, 'ExportNamedDeclaration:not([source]):exit'( - node: TSESTree.ExportNamedDeclaration, + node: TSESTree.ExportNamedDeclarationWithoutSource, ): void { if (node.declaration) { checkNode(node.declaration); diff --git a/packages/scope-manager/package.json b/packages/scope-manager/package.json index 977525271531..71f5e5e2b79a 100644 --- a/packages/scope-manager/package.json +++ b/packages/scope-manager/package.json @@ -56,6 +56,7 @@ "glob": "*", "jest-specific-snapshot": "*", "make-dir": "*", + "prettier": "^3.2.5", "pretty-format": "*", "typescript": "*" }, diff --git a/packages/scope-manager/src/referencer/ExportVisitor.ts b/packages/scope-manager/src/referencer/ExportVisitor.ts index f45fa8a213d1..53da3435e2ee 100644 --- a/packages/scope-manager/src/referencer/ExportVisitor.ts +++ b/packages/scope-manager/src/referencer/ExportVisitor.ts @@ -60,7 +60,10 @@ class ExportVisitor extends Visitor { } protected ExportSpecifier(node: TSESTree.ExportSpecifier): void { - if (node.exportKind === 'type') { + if ( + node.exportKind === 'type' && + node.local.type == AST_NODE_TYPES.Identifier + ) { // export { type T }; // type exports can only reference types // diff --git a/packages/scope-manager/tests/fixtures/jsx/namespaced-attribute.tsx b/packages/scope-manager/tests/fixtures/jsx/namespaced-attribute.tsx index b42f48eaefdb..a94dae741c41 100644 --- a/packages/scope-manager/tests/fixtures/jsx/namespaced-attribute.tsx +++ b/packages/scope-manager/tests/fixtures/jsx/namespaced-attribute.tsx @@ -1,13 +1,13 @@ -import * as React from "react"; +import * as React from 'react'; // Both of these are equivalent: const x = ; -const y = ; +const y = ; interface FooProps { - "a:b": string; + 'a:b': string; } function Foo(props: FooProps) { - return
{props["a:b"]}
; + return
{props['a:b']}
; } diff --git a/packages/types/src/ts-estree.ts b/packages/types/src/ts-estree.ts index cd630e4ba2c5..4914055b1992 100644 --- a/packages/types/src/ts-estree.ts +++ b/packages/types/src/ts-estree.ts @@ -19,32 +19,28 @@ declare module './generated/ast-spec' { interface AccessorPropertyNonComputedName { parent: TSESTree.ClassBody; } + interface TSAbstractAccessorPropertyComputedName { + parent: TSESTree.ClassBody; + } + interface TSAbstractAccessorPropertyNonComputedName { + parent: TSESTree.ClassBody; + } interface VariableDeclaratorDefiniteAssignment { parent: TSESTree.VariableDeclaration; } - interface VariableDeclaratorMaybeInit { parent: TSESTree.VariableDeclaration; } - interface VariableDeclaratorNoInit { parent: TSESTree.VariableDeclaration; } - interface UsingInForOfDeclarator { parent: TSESTree.VariableDeclaration; } - interface UsingInNormalContextDeclarator { parent: TSESTree.VariableDeclaration; } - interface TSAbstractAccessorPropertyComputedName { - parent: TSESTree.ClassBody; - } - interface TSAbstractAccessorPropertyNonComputedName { - parent: TSESTree.ClassBody; - } interface CatchClause { parent: TSESTree.TryStatement; @@ -216,6 +212,13 @@ declare module './generated/ast-spec' { | TSESTree.TSMappedType | TSESTree.TSTypeParameterDeclaration; } + + interface ExportSpecifierWithIdentifierLocal { + parent: TSESTree.ExportNamedDeclaration; + } + interface ExportSpecifierWithStringOrLiteralLocal { + parent: TSESTree.ExportNamedDeclaration; + } } export * as TSESTree from './generated/ast-spec'; diff --git a/packages/typescript-estree/src/convert.ts b/packages/typescript-estree/src/convert.ts index 26b22ad2aa74..5cb94c19e77e 100644 --- a/packages/typescript-estree/src/convert.ts +++ b/packages/typescript-estree/src/convert.ts @@ -2029,7 +2029,7 @@ export class Converter { type: AST_NODE_TYPES.ExportNamedDeclaration, source: this.convertChild(node.moduleSpecifier), specifiers: node.exportClause.elements.map(el => - this.convertChild(el), + this.convertChild(el, node), ), exportKind: node.isTypeOnly ? 'type' : 'value', declaration: null, @@ -2068,13 +2068,25 @@ export class Converter { ); } - case SyntaxKind.ExportSpecifier: + case SyntaxKind.ExportSpecifier: { + const local = node.propertyName ?? node.name; + if ( + local.kind === SyntaxKind.StringLiteral && + parent.kind === SyntaxKind.ExportDeclaration && + parent.moduleSpecifier?.kind !== SyntaxKind.StringLiteral + ) { + this.#throwError( + local, + 'A string literal cannot be used as a local exported binding without `from`.', + ); + } return this.createNode(node, { type: AST_NODE_TYPES.ExportSpecifier, - local: this.convertChild(node.propertyName ?? node.name), + local: this.convertChild(local), exported: this.convertChild(node.name), exportKind: node.isTypeOnly ? 'type' : 'value', }); + } case SyntaxKind.ExportAssignment: if (node.isExportEquals) { diff --git a/yarn.lock b/yarn.lock index f66ca12e7e25..36c60ba9f175 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5811,6 +5811,7 @@ __metadata: glob: "*" jest-specific-snapshot: "*" make-dir: "*" + prettier: ^3.2.5 pretty-format: "*" typescript: "*" languageName: unknown @@ -16720,7 +16721,7 @@ __metadata: languageName: node linkType: hard -"prettier@npm:3.3.2, prettier@npm:^3.2.5": +"prettier@npm:3.3.2": version: 3.3.2 resolution: "prettier@npm:3.3.2" bin: From bdb6c8caef998826830643e28e1b365be5c01ccc Mon Sep 17 00:00:00 2001 From: Brad Zacher Date: Thu, 17 Oct 2024 22:14:31 +1030 Subject: [PATCH 12/14] fix lint --- packages/scope-manager/src/referencer/ExportVisitor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/scope-manager/src/referencer/ExportVisitor.ts b/packages/scope-manager/src/referencer/ExportVisitor.ts index 53da3435e2ee..723c4b0aab78 100644 --- a/packages/scope-manager/src/referencer/ExportVisitor.ts +++ b/packages/scope-manager/src/referencer/ExportVisitor.ts @@ -62,7 +62,7 @@ class ExportVisitor extends Visitor { protected ExportSpecifier(node: TSESTree.ExportSpecifier): void { if ( node.exportKind === 'type' && - node.local.type == AST_NODE_TYPES.Identifier + node.local.type === AST_NODE_TYPES.Identifier ) { // export { type T }; // type exports can only reference types From 4b5774cac21cf20cdc95bc15ed52abdb506151c4 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Thu, 17 Oct 2024 12:03:21 -0400 Subject: [PATCH 13/14] Update snapshots --- .../snapshots/1-TSESTree-AST.shot | 26 +-- .../snapshots/2-TSESTree-Tokens.shot | 24 +-- .../snapshots/3-Babel-AST.shot | 26 +-- .../snapshots/4-Babel-Tokens.shot | 24 +-- .../snapshots/5-AST-Alignment-AST.shot | 26 +-- .../snapshots/1-TSESTree-AST.shot | 26 +-- .../snapshots/2-TSESTree-Tokens.shot | 24 +-- .../snapshots/3-Babel-AST.shot | 26 +-- .../snapshots/4-Babel-Tokens.shot | 24 +-- .../snapshots/5-AST-Alignment-AST.shot | 26 +-- .../component/snapshots/1-TSESTree-AST.shot | 146 +++++++------- .../snapshots/2-TSESTree-Tokens.shot | 186 +++++++++--------- .../component/snapshots/3-Babel-AST.shot | 146 +++++++------- .../component/snapshots/4-Babel-Tokens.shot | 186 +++++++++--------- .../snapshots/5-AST-Alignment-AST.shot | 146 +++++++------- .../snapshots/6-AST-Alignment-Tokens.shot | 186 +++++++++--------- .../snapshots/2-TSESTree-Tokens.shot | 12 +- .../snapshots/4-Babel-Tokens.shot | 12 +- .../snapshots/1-TSESTree-AST.shot | 34 ++-- .../snapshots/2-TSESTree-Tokens.shot | 52 ++--- .../snapshots/3-Babel-AST.shot | 28 +-- .../snapshots/4-Babel-Tokens.shot | 52 ++--- .../snapshots/5-AST-Alignment-AST.shot | 34 ++-- .../snapshots/1-TSESTree-AST.shot | 46 ++--- .../snapshots/2-TSESTree-Tokens.shot | 58 +++--- .../snapshots/3-Babel-AST.shot | 40 ++-- .../snapshots/4-Babel-Tokens.shot | 58 +++--- .../snapshots/5-AST-Alignment-AST.shot | 46 ++--- .../snapshots/1-TSESTree-AST.shot | 46 ++--- .../snapshots/2-TSESTree-Tokens.shot | 58 +++--- .../snapshots/3-Babel-AST.shot | 34 ++-- .../snapshots/4-Babel-Tokens.shot | 58 +++--- .../snapshots/5-AST-Alignment-AST.shot | 46 ++--- .../snapshots/1-TSESTree-AST.shot | 34 ++-- .../snapshots/2-TSESTree-Tokens.shot | 46 ++--- .../snapshots/3-Babel-AST.shot | 28 +-- .../snapshots/4-Babel-Tokens.shot | 46 ++--- .../snapshots/5-AST-Alignment-AST.shot | 34 ++-- .../snapshots/1-TSESTree-AST.shot | 34 ++-- .../snapshots/2-TSESTree-Tokens.shot | 56 +++--- .../snapshots/3-Babel-AST.shot | 28 +-- .../snapshots/4-Babel-Tokens.shot | 56 +++--- .../snapshots/5-AST-Alignment-AST.shot | 34 ++-- .../snapshots/2-TSESTree-Tokens.shot | 12 +- .../snapshots/4-Babel-Tokens.shot | 12 +- .../snapshots/6-AST-Alignment-Tokens.shot | 12 +- 46 files changed, 1197 insertions(+), 1197 deletions(-) diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/await-using-multiple-declarations/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/await-using-multiple-declarations/snapshots/1-TSESTree-AST.shot index cc177f81242f..d54fd36f4f5e 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/await-using-multiple-declarations/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/await-using-multiple-declarations/snapshots/1-TSESTree-AST.shot @@ -49,10 +49,10 @@ Program { name: "y", optional: false, - range: [19, 20], + range: [21, 22], loc: { - start: { column: 19, line: 1 }, - end: { column: 20, line: 1 }, + start: { column: 2, line: 2 }, + end: { column: 3, line: 2 }, }, }, init: Literal { @@ -60,36 +60,36 @@ Program { raw: "2", value: 2, - range: [23, 24], + range: [25, 26], loc: { - start: { column: 23, line: 1 }, - end: { column: 24, line: 1 }, + start: { column: 6, line: 2 }, + end: { column: 7, line: 2 }, }, }, - range: [19, 24], + range: [21, 26], loc: { - start: { column: 19, line: 1 }, - end: { column: 24, line: 1 }, + start: { column: 2, line: 2 }, + end: { column: 7, line: 2 }, }, }, ], declare: false, kind: "await using", - range: [0, 25], + range: [0, 27], loc: { start: { column: 0, line: 1 }, - end: { column: 25, line: 1 }, + end: { column: 8, line: 2 }, }, }, ], sourceType: "script", - range: [0, 26], + range: [0, 28], loc: { start: { column: 0, line: 1 }, - end: { column: 0, line: 2 }, + end: { column: 0, line: 3 }, }, } `; diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/await-using-multiple-declarations/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/await-using-multiple-declarations/snapshots/2-TSESTree-Tokens.shot index c123deb06892..7411e75da579 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/await-using-multiple-declarations/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/await-using-multiple-declarations/snapshots/2-TSESTree-Tokens.shot @@ -66,40 +66,40 @@ exports[`AST Fixtures declaration VariableDeclaration await-using-multiple-decla type: "Identifier", value: "y", - range: [19, 20], + range: [21, 22], loc: { - start: { column: 19, line: 1 }, - end: { column: 20, line: 1 }, + start: { column: 2, line: 2 }, + end: { column: 3, line: 2 }, }, }, Punctuator { type: "Punctuator", value: "=", - range: [21, 22], + range: [23, 24], loc: { - start: { column: 21, line: 1 }, - end: { column: 22, line: 1 }, + start: { column: 4, line: 2 }, + end: { column: 5, line: 2 }, }, }, Numeric { type: "Numeric", value: "2", - range: [23, 24], + range: [25, 26], loc: { - start: { column: 23, line: 1 }, - end: { column: 24, line: 1 }, + start: { column: 6, line: 2 }, + end: { column: 7, line: 2 }, }, }, Punctuator { type: "Punctuator", value: ";", - range: [24, 25], + range: [26, 27], loc: { - start: { column: 24, line: 1 }, - end: { column: 25, line: 1 }, + start: { column: 7, line: 2 }, + end: { column: 8, line: 2 }, }, }, ] diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/await-using-multiple-declarations/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/await-using-multiple-declarations/snapshots/3-Babel-AST.shot index 56ed5f448201..19023e03c7ed 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/await-using-multiple-declarations/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/await-using-multiple-declarations/snapshots/3-Babel-AST.shot @@ -43,10 +43,10 @@ Program { type: "Identifier", name: "y", - range: [19, 20], + range: [21, 22], loc: { - start: { column: 19, line: 1 }, - end: { column: 20, line: 1 }, + start: { column: 2, line: 2 }, + end: { column: 3, line: 2 }, }, }, init: Literal { @@ -54,35 +54,35 @@ Program { raw: "2", value: 2, - range: [23, 24], + range: [25, 26], loc: { - start: { column: 23, line: 1 }, - end: { column: 24, line: 1 }, + start: { column: 6, line: 2 }, + end: { column: 7, line: 2 }, }, }, - range: [19, 24], + range: [21, 26], loc: { - start: { column: 19, line: 1 }, - end: { column: 24, line: 1 }, + start: { column: 2, line: 2 }, + end: { column: 7, line: 2 }, }, }, ], kind: "await using", - range: [0, 25], + range: [0, 27], loc: { start: { column: 0, line: 1 }, - end: { column: 25, line: 1 }, + end: { column: 8, line: 2 }, }, }, ], sourceType: "script", - range: [0, 26], + range: [0, 28], loc: { start: { column: 0, line: 1 }, - end: { column: 0, line: 2 }, + end: { column: 0, line: 3 }, }, } `; diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/await-using-multiple-declarations/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/await-using-multiple-declarations/snapshots/4-Babel-Tokens.shot index a4259e47cb7e..ff50696ccc37 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/await-using-multiple-declarations/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/await-using-multiple-declarations/snapshots/4-Babel-Tokens.shot @@ -66,40 +66,40 @@ exports[`AST Fixtures declaration VariableDeclaration await-using-multiple-decla type: "Identifier", value: "y", - range: [19, 20], + range: [21, 22], loc: { - start: { column: 19, line: 1 }, - end: { column: 20, line: 1 }, + start: { column: 2, line: 2 }, + end: { column: 3, line: 2 }, }, }, Punctuator { type: "Punctuator", value: "=", - range: [21, 22], + range: [23, 24], loc: { - start: { column: 21, line: 1 }, - end: { column: 22, line: 1 }, + start: { column: 4, line: 2 }, + end: { column: 5, line: 2 }, }, }, Numeric { type: "Numeric", value: "2", - range: [23, 24], + range: [25, 26], loc: { - start: { column: 23, line: 1 }, - end: { column: 24, line: 1 }, + start: { column: 6, line: 2 }, + end: { column: 7, line: 2 }, }, }, Punctuator { type: "Punctuator", value: ";", - range: [24, 25], + range: [26, 27], loc: { - start: { column: 24, line: 1 }, - end: { column: 25, line: 1 }, + start: { column: 7, line: 2 }, + end: { column: 8, line: 2 }, }, }, ] diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/await-using-multiple-declarations/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/await-using-multiple-declarations/snapshots/5-AST-Alignment-AST.shot index 4495e1e3efaf..5731e016531e 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/await-using-multiple-declarations/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/await-using-multiple-declarations/snapshots/5-AST-Alignment-AST.shot @@ -53,10 +53,10 @@ exports[`AST Fixtures declaration VariableDeclaration await-using-multiple-decla name: 'y', - optional: false, - range: [19, 20], + range: [21, 22], loc: { - start: { column: 19, line: 1 }, - end: { column: 20, line: 1 }, + start: { column: 2, line: 2 }, + end: { column: 3, line: 2 }, }, }, init: Literal { @@ -64,36 +64,36 @@ exports[`AST Fixtures declaration VariableDeclaration await-using-multiple-decla raw: '2', value: 2, - range: [23, 24], + range: [25, 26], loc: { - start: { column: 23, line: 1 }, - end: { column: 24, line: 1 }, + start: { column: 6, line: 2 }, + end: { column: 7, line: 2 }, }, }, - range: [19, 24], + range: [21, 26], loc: { - start: { column: 19, line: 1 }, - end: { column: 24, line: 1 }, + start: { column: 2, line: 2 }, + end: { column: 7, line: 2 }, }, }, ], - declare: false, kind: 'await using', - range: [0, 25], + range: [0, 27], loc: { start: { column: 0, line: 1 }, - end: { column: 25, line: 1 }, + end: { column: 8, line: 2 }, }, }, ], sourceType: 'script', - range: [0, 26], + range: [0, 28], loc: { start: { column: 0, line: 1 }, - end: { column: 0, line: 2 }, + end: { column: 0, line: 3 }, }, }" `; diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/using-multiple-declarations/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/using-multiple-declarations/snapshots/1-TSESTree-AST.shot index 0e6057adde39..085698cc3718 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/using-multiple-declarations/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/using-multiple-declarations/snapshots/1-TSESTree-AST.shot @@ -49,10 +49,10 @@ Program { name: "y", optional: false, - range: [13, 14], + range: [15, 16], loc: { - start: { column: 13, line: 1 }, - end: { column: 14, line: 1 }, + start: { column: 2, line: 2 }, + end: { column: 3, line: 2 }, }, }, init: Literal { @@ -60,36 +60,36 @@ Program { raw: "2", value: 2, - range: [17, 18], + range: [19, 20], loc: { - start: { column: 17, line: 1 }, - end: { column: 18, line: 1 }, + start: { column: 6, line: 2 }, + end: { column: 7, line: 2 }, }, }, - range: [13, 18], + range: [15, 20], loc: { - start: { column: 13, line: 1 }, - end: { column: 18, line: 1 }, + start: { column: 2, line: 2 }, + end: { column: 7, line: 2 }, }, }, ], declare: false, kind: "using", - range: [0, 19], + range: [0, 21], loc: { start: { column: 0, line: 1 }, - end: { column: 19, line: 1 }, + end: { column: 8, line: 2 }, }, }, ], sourceType: "script", - range: [0, 20], + range: [0, 22], loc: { start: { column: 0, line: 1 }, - end: { column: 0, line: 2 }, + end: { column: 0, line: 3 }, }, } `; diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/using-multiple-declarations/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/using-multiple-declarations/snapshots/2-TSESTree-Tokens.shot index 5199e67367c1..b07cd4d7ef5f 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/using-multiple-declarations/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/using-multiple-declarations/snapshots/2-TSESTree-Tokens.shot @@ -56,40 +56,40 @@ exports[`AST Fixtures declaration VariableDeclaration using-multiple-declaration type: "Identifier", value: "y", - range: [13, 14], + range: [15, 16], loc: { - start: { column: 13, line: 1 }, - end: { column: 14, line: 1 }, + start: { column: 2, line: 2 }, + end: { column: 3, line: 2 }, }, }, Punctuator { type: "Punctuator", value: "=", - range: [15, 16], + range: [17, 18], loc: { - start: { column: 15, line: 1 }, - end: { column: 16, line: 1 }, + start: { column: 4, line: 2 }, + end: { column: 5, line: 2 }, }, }, Numeric { type: "Numeric", value: "2", - range: [17, 18], + range: [19, 20], loc: { - start: { column: 17, line: 1 }, - end: { column: 18, line: 1 }, + start: { column: 6, line: 2 }, + end: { column: 7, line: 2 }, }, }, Punctuator { type: "Punctuator", value: ";", - range: [18, 19], + range: [20, 21], loc: { - start: { column: 18, line: 1 }, - end: { column: 19, line: 1 }, + start: { column: 7, line: 2 }, + end: { column: 8, line: 2 }, }, }, ] diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/using-multiple-declarations/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/using-multiple-declarations/snapshots/3-Babel-AST.shot index 291406b764a7..e42780ca03e4 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/using-multiple-declarations/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/using-multiple-declarations/snapshots/3-Babel-AST.shot @@ -43,10 +43,10 @@ Program { type: "Identifier", name: "y", - range: [13, 14], + range: [15, 16], loc: { - start: { column: 13, line: 1 }, - end: { column: 14, line: 1 }, + start: { column: 2, line: 2 }, + end: { column: 3, line: 2 }, }, }, init: Literal { @@ -54,35 +54,35 @@ Program { raw: "2", value: 2, - range: [17, 18], + range: [19, 20], loc: { - start: { column: 17, line: 1 }, - end: { column: 18, line: 1 }, + start: { column: 6, line: 2 }, + end: { column: 7, line: 2 }, }, }, - range: [13, 18], + range: [15, 20], loc: { - start: { column: 13, line: 1 }, - end: { column: 18, line: 1 }, + start: { column: 2, line: 2 }, + end: { column: 7, line: 2 }, }, }, ], kind: "using", - range: [0, 19], + range: [0, 21], loc: { start: { column: 0, line: 1 }, - end: { column: 19, line: 1 }, + end: { column: 8, line: 2 }, }, }, ], sourceType: "script", - range: [0, 20], + range: [0, 22], loc: { start: { column: 0, line: 1 }, - end: { column: 0, line: 2 }, + end: { column: 0, line: 3 }, }, } `; diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/using-multiple-declarations/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/using-multiple-declarations/snapshots/4-Babel-Tokens.shot index 1adcd3e551cd..500fb5e0772a 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/using-multiple-declarations/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/using-multiple-declarations/snapshots/4-Babel-Tokens.shot @@ -56,40 +56,40 @@ exports[`AST Fixtures declaration VariableDeclaration using-multiple-declaration type: "Identifier", value: "y", - range: [13, 14], + range: [15, 16], loc: { - start: { column: 13, line: 1 }, - end: { column: 14, line: 1 }, + start: { column: 2, line: 2 }, + end: { column: 3, line: 2 }, }, }, Punctuator { type: "Punctuator", value: "=", - range: [15, 16], + range: [17, 18], loc: { - start: { column: 15, line: 1 }, - end: { column: 16, line: 1 }, + start: { column: 4, line: 2 }, + end: { column: 5, line: 2 }, }, }, Numeric { type: "Numeric", value: "2", - range: [17, 18], + range: [19, 20], loc: { - start: { column: 17, line: 1 }, - end: { column: 18, line: 1 }, + start: { column: 6, line: 2 }, + end: { column: 7, line: 2 }, }, }, Punctuator { type: "Punctuator", value: ";", - range: [18, 19], + range: [20, 21], loc: { - start: { column: 18, line: 1 }, - end: { column: 19, line: 1 }, + start: { column: 7, line: 2 }, + end: { column: 8, line: 2 }, }, }, ] diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/using-multiple-declarations/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/using-multiple-declarations/snapshots/5-AST-Alignment-AST.shot index 5895a5a4d686..95f446ee6ff6 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/using-multiple-declarations/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/using-multiple-declarations/snapshots/5-AST-Alignment-AST.shot @@ -53,10 +53,10 @@ exports[`AST Fixtures declaration VariableDeclaration using-multiple-declaration name: 'y', - optional: false, - range: [13, 14], + range: [15, 16], loc: { - start: { column: 13, line: 1 }, - end: { column: 14, line: 1 }, + start: { column: 2, line: 2 }, + end: { column: 3, line: 2 }, }, }, init: Literal { @@ -64,36 +64,36 @@ exports[`AST Fixtures declaration VariableDeclaration using-multiple-declaration raw: '2', value: 2, - range: [17, 18], + range: [19, 20], loc: { - start: { column: 17, line: 1 }, - end: { column: 18, line: 1 }, + start: { column: 6, line: 2 }, + end: { column: 7, line: 2 }, }, }, - range: [13, 18], + range: [15, 20], loc: { - start: { column: 13, line: 1 }, - end: { column: 18, line: 1 }, + start: { column: 2, line: 2 }, + end: { column: 7, line: 2 }, }, }, ], - declare: false, kind: 'using', - range: [0, 19], + range: [0, 21], loc: { start: { column: 0, line: 1 }, - end: { column: 19, line: 1 }, + end: { column: 8, line: 2 }, }, }, ], sourceType: 'script', - range: [0, 20], + range: [0, 22], loc: { start: { column: 0, line: 1 }, - end: { column: 0, line: 2 }, + end: { column: 0, line: 3 }, }, }" `; diff --git a/packages/ast-spec/src/jsx/JSXNamespacedName/fixtures/component/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/jsx/JSXNamespacedName/fixtures/component/snapshots/1-TSESTree-AST.shot index 71bbf93d4942..100fbb780b5a 100644 --- a/packages/ast-spec/src/jsx/JSXNamespacedName/fixtures/component/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/jsx/JSXNamespacedName/fixtures/component/snapshots/1-TSESTree-AST.shot @@ -154,10 +154,10 @@ Program { type: "JSXIdentifier", name: "b", - range: [96, 97], + range: [94, 95], loc: { - start: { column: 38, line: 2 }, - end: { column: 39, line: 2 }, + start: { column: 36, line: 2 }, + end: { column: 37, line: 2 }, }, }, namespace: JSXIdentifier { @@ -171,10 +171,10 @@ Program { }, }, - range: [92, 97], + range: [92, 95], loc: { start: { column: 34, line: 2 }, - end: { column: 39, line: 2 }, + end: { column: 37, line: 2 }, }, }, value: Literal { @@ -182,17 +182,17 @@ Program { raw: ""loose spacing"", value: "loose spacing", - range: [98, 113], + range: [96, 111], loc: { - start: { column: 40, line: 2 }, - end: { column: 55, line: 2 }, + start: { column: 38, line: 2 }, + end: { column: 53, line: 2 }, }, }, - range: [92, 113], + range: [92, 111], loc: { start: { column: 34, line: 2 }, - end: { column: 55, line: 2 }, + end: { column: 53, line: 2 }, }, }, ], @@ -208,34 +208,34 @@ Program { }, selfClosing: true, - range: [68, 116], + range: [68, 114], loc: { start: { column: 10, line: 2 }, - end: { column: 58, line: 2 }, + end: { column: 56, line: 2 }, }, }, - range: [68, 116], + range: [68, 114], loc: { start: { column: 10, line: 2 }, - end: { column: 58, line: 2 }, + end: { column: 56, line: 2 }, }, }, - range: [64, 116], + range: [64, 114], loc: { start: { column: 6, line: 2 }, - end: { column: 58, line: 2 }, + end: { column: 56, line: 2 }, }, }, ], declare: false, kind: "const", - range: [58, 117], + range: [58, 115], loc: { start: { column: 0, line: 2 }, - end: { column: 59, line: 2 }, + end: { column: 57, line: 2 }, }, }, TSInterfaceDeclaration { @@ -248,13 +248,13 @@ Program { computed: false, key: Literal { type: "Literal", - raw: ""a:b"", + raw: "'a:b'", value: "a:b", - range: [163, 168], + range: [159, 164], loc: { - start: { column: 4, line: 5 }, - end: { column: 9, line: 5 }, + start: { column: 2, line: 5 }, + end: { column: 7, line: 5 }, }, }, optional: false, @@ -265,29 +265,29 @@ Program { typeAnnotation: TSStringKeyword { type: "TSStringKeyword", - range: [170, 176], + range: [166, 172], loc: { - start: { column: 11, line: 5 }, - end: { column: 17, line: 5 }, + start: { column: 9, line: 5 }, + end: { column: 15, line: 5 }, }, }, - range: [168, 176], + range: [164, 172], loc: { - start: { column: 9, line: 5 }, - end: { column: 17, line: 5 }, + start: { column: 7, line: 5 }, + end: { column: 15, line: 5 }, }, }, - range: [163, 177], + range: [159, 173], loc: { - start: { column: 4, line: 5 }, - end: { column: 18, line: 5 }, + start: { column: 2, line: 5 }, + end: { column: 16, line: 5 }, }, }, ], - range: [157, 179], + range: [155, 175], loc: { start: { column: 38, line: 4 }, end: { column: 1, line: 6 }, @@ -301,14 +301,14 @@ Program { name: "NamespacePropComponentProps", optional: false, - range: [129, 156], + range: [127, 154], loc: { start: { column: 10, line: 4 }, end: { column: 37, line: 4 }, }, }, - range: [119, 179], + range: [117, 175], loc: { start: { column: 0, line: 4 }, end: { column: 1, line: 6 }, @@ -336,36 +336,36 @@ Program { name: "props", optional: false, - range: [268, 273], + range: [262, 267], loc: { - start: { column: 17, line: 9 }, - end: { column: 22, line: 9 }, + start: { column: 15, line: 9 }, + end: { column: 20, line: 9 }, }, }, optional: false, property: Literal { type: "Literal", - raw: ""a:b"", + raw: "'a:b'", value: "a:b", - range: [274, 279], + range: [268, 273], loc: { - start: { column: 23, line: 9 }, - end: { column: 28, line: 9 }, + start: { column: 21, line: 9 }, + end: { column: 26, line: 9 }, }, }, - range: [268, 280], + range: [262, 274], loc: { - start: { column: 17, line: 9 }, - end: { column: 29, line: 9 }, + start: { column: 15, line: 9 }, + end: { column: 27, line: 9 }, }, }, - range: [267, 281], + range: [261, 275], loc: { - start: { column: 16, line: 9 }, - end: { column: 30, line: 9 }, + start: { column: 14, line: 9 }, + end: { column: 28, line: 9 }, }, }, ], @@ -375,17 +375,17 @@ Program { type: "JSXIdentifier", name: "div", - range: [283, 286], + range: [277, 280], loc: { - start: { column: 32, line: 9 }, - end: { column: 35, line: 9 }, + start: { column: 30, line: 9 }, + end: { column: 33, line: 9 }, }, }, - range: [281, 287], + range: [275, 281], loc: { - start: { column: 30, line: 9 }, - end: { column: 36, line: 9 }, + start: { column: 28, line: 9 }, + end: { column: 34, line: 9 }, }, }, openingElement: JSXOpeningElement { @@ -395,37 +395,37 @@ Program { type: "JSXIdentifier", name: "div", - range: [263, 266], + range: [257, 260], loc: { - start: { column: 12, line: 9 }, - end: { column: 15, line: 9 }, + start: { column: 10, line: 9 }, + end: { column: 13, line: 9 }, }, }, selfClosing: false, - range: [262, 267], + range: [256, 261], loc: { - start: { column: 11, line: 9 }, - end: { column: 16, line: 9 }, + start: { column: 9, line: 9 }, + end: { column: 14, line: 9 }, }, }, - range: [262, 287], + range: [256, 281], loc: { - start: { column: 11, line: 9 }, - end: { column: 36, line: 9 }, + start: { column: 9, line: 9 }, + end: { column: 34, line: 9 }, }, }, - range: [255, 288], + range: [249, 282], loc: { - start: { column: 4, line: 9 }, - end: { column: 37, line: 9 }, + start: { column: 2, line: 9 }, + end: { column: 35, line: 9 }, }, }, ], - range: [249, 290], + range: [245, 284], loc: { start: { column: 68, line: 8 }, end: { column: 1, line: 10 }, @@ -440,7 +440,7 @@ Program { name: "NamespacePropComponent", optional: false, - range: [190, 212], + range: [186, 208], loc: { start: { column: 9, line: 8 }, end: { column: 31, line: 8 }, @@ -462,28 +462,28 @@ Program { name: "NamespacePropComponentProps", optional: false, - range: [220, 247], + range: [216, 243], loc: { start: { column: 39, line: 8 }, end: { column: 66, line: 8 }, }, }, - range: [220, 247], + range: [216, 243], loc: { start: { column: 39, line: 8 }, end: { column: 66, line: 8 }, }, }, - range: [218, 247], + range: [214, 243], loc: { start: { column: 37, line: 8 }, end: { column: 66, line: 8 }, }, }, - range: [213, 247], + range: [209, 243], loc: { start: { column: 32, line: 8 }, end: { column: 66, line: 8 }, @@ -491,7 +491,7 @@ Program { }, ], - range: [181, 290], + range: [177, 284], loc: { start: { column: 0, line: 8 }, end: { column: 1, line: 10 }, @@ -500,7 +500,7 @@ Program { ], sourceType: "script", - range: [0, 291], + range: [0, 285], loc: { start: { column: 0, line: 1 }, end: { column: 0, line: 11 }, diff --git a/packages/ast-spec/src/jsx/JSXNamespacedName/fixtures/component/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/jsx/JSXNamespacedName/fixtures/component/snapshots/2-TSESTree-Tokens.shot index 9352a620aac9..5a14d5aafb4a 100644 --- a/packages/ast-spec/src/jsx/JSXNamespacedName/fixtures/component/snapshots/2-TSESTree-Tokens.shot +++ b/packages/ast-spec/src/jsx/JSXNamespacedName/fixtures/component/snapshots/2-TSESTree-Tokens.shot @@ -196,77 +196,77 @@ exports[`AST Fixtures jsx JSXNamespacedName component TSESTree - Tokens 1`] = ` type: "Punctuator", value: ":", - range: [94, 95], + range: [93, 94], loc: { - start: { column: 36, line: 2 }, - end: { column: 37, line: 2 }, + start: { column: 35, line: 2 }, + end: { column: 36, line: 2 }, }, }, Identifier { type: "Identifier", value: "b", - range: [96, 97], + range: [94, 95], loc: { - start: { column: 38, line: 2 }, - end: { column: 39, line: 2 }, + start: { column: 36, line: 2 }, + end: { column: 37, line: 2 }, }, }, Punctuator { type: "Punctuator", value: "=", - range: [97, 98], + range: [95, 96], loc: { - start: { column: 39, line: 2 }, - end: { column: 40, line: 2 }, + start: { column: 37, line: 2 }, + end: { column: 38, line: 2 }, }, }, JSXText { type: "JSXText", value: ""loose spacing"", - range: [98, 113], + range: [96, 111], loc: { - start: { column: 40, line: 2 }, - end: { column: 55, line: 2 }, + start: { column: 38, line: 2 }, + end: { column: 53, line: 2 }, }, }, Punctuator { type: "Punctuator", value: "/", - range: [114, 115], + range: [112, 113], loc: { - start: { column: 56, line: 2 }, - end: { column: 57, line: 2 }, + start: { column: 54, line: 2 }, + end: { column: 55, line: 2 }, }, }, Punctuator { type: "Punctuator", value: ">", - range: [115, 116], + range: [113, 114], loc: { - start: { column: 57, line: 2 }, - end: { column: 58, line: 2 }, + start: { column: 55, line: 2 }, + end: { column: 56, line: 2 }, }, }, Punctuator { type: "Punctuator", value: ";", - range: [116, 117], + range: [114, 115], loc: { - start: { column: 58, line: 2 }, - end: { column: 59, line: 2 }, + start: { column: 56, line: 2 }, + end: { column: 57, line: 2 }, }, }, Keyword { type: "Keyword", value: "interface", - range: [119, 128], + range: [117, 126], loc: { start: { column: 0, line: 4 }, end: { column: 9, line: 4 }, @@ -276,7 +276,7 @@ exports[`AST Fixtures jsx JSXNamespacedName component TSESTree - Tokens 1`] = ` type: "Identifier", value: "NamespacePropComponentProps", - range: [129, 156], + range: [127, 154], loc: { start: { column: 10, line: 4 }, end: { column: 37, line: 4 }, @@ -286,7 +286,7 @@ exports[`AST Fixtures jsx JSXNamespacedName component TSESTree - Tokens 1`] = ` type: "Punctuator", value: "{", - range: [157, 158], + range: [155, 156], loc: { start: { column: 38, line: 4 }, end: { column: 39, line: 4 }, @@ -294,49 +294,49 @@ exports[`AST Fixtures jsx JSXNamespacedName component TSESTree - Tokens 1`] = ` }, String { type: "String", - value: ""a:b"", + value: "'a:b'", - range: [163, 168], + range: [159, 164], loc: { - start: { column: 4, line: 5 }, - end: { column: 9, line: 5 }, + start: { column: 2, line: 5 }, + end: { column: 7, line: 5 }, }, }, Punctuator { type: "Punctuator", value: ":", - range: [168, 169], + range: [164, 165], loc: { - start: { column: 9, line: 5 }, - end: { column: 10, line: 5 }, + start: { column: 7, line: 5 }, + end: { column: 8, line: 5 }, }, }, Identifier { type: "Identifier", value: "string", - range: [170, 176], + range: [166, 172], loc: { - start: { column: 11, line: 5 }, - end: { column: 17, line: 5 }, + start: { column: 9, line: 5 }, + end: { column: 15, line: 5 }, }, }, Punctuator { type: "Punctuator", value: ";", - range: [176, 177], + range: [172, 173], loc: { - start: { column: 17, line: 5 }, - end: { column: 18, line: 5 }, + start: { column: 15, line: 5 }, + end: { column: 16, line: 5 }, }, }, Punctuator { type: "Punctuator", value: "}", - range: [178, 179], + range: [174, 175], loc: { start: { column: 0, line: 6 }, end: { column: 1, line: 6 }, @@ -346,7 +346,7 @@ exports[`AST Fixtures jsx JSXNamespacedName component TSESTree - Tokens 1`] = ` type: "Keyword", value: "function", - range: [181, 189], + range: [177, 185], loc: { start: { column: 0, line: 8 }, end: { column: 8, line: 8 }, @@ -356,7 +356,7 @@ exports[`AST Fixtures jsx JSXNamespacedName component TSESTree - Tokens 1`] = ` type: "Identifier", value: "NamespacePropComponent", - range: [190, 212], + range: [186, 208], loc: { start: { column: 9, line: 8 }, end: { column: 31, line: 8 }, @@ -366,7 +366,7 @@ exports[`AST Fixtures jsx JSXNamespacedName component TSESTree - Tokens 1`] = ` type: "Punctuator", value: "(", - range: [212, 213], + range: [208, 209], loc: { start: { column: 31, line: 8 }, end: { column: 32, line: 8 }, @@ -376,7 +376,7 @@ exports[`AST Fixtures jsx JSXNamespacedName component TSESTree - Tokens 1`] = ` type: "Identifier", value: "props", - range: [213, 218], + range: [209, 214], loc: { start: { column: 32, line: 8 }, end: { column: 37, line: 8 }, @@ -386,7 +386,7 @@ exports[`AST Fixtures jsx JSXNamespacedName component TSESTree - Tokens 1`] = ` type: "Punctuator", value: ":", - range: [218, 219], + range: [214, 215], loc: { start: { column: 37, line: 8 }, end: { column: 38, line: 8 }, @@ -396,7 +396,7 @@ exports[`AST Fixtures jsx JSXNamespacedName component TSESTree - Tokens 1`] = ` type: "Identifier", value: "NamespacePropComponentProps", - range: [220, 247], + range: [216, 243], loc: { start: { column: 39, line: 8 }, end: { column: 66, line: 8 }, @@ -406,7 +406,7 @@ exports[`AST Fixtures jsx JSXNamespacedName component TSESTree - Tokens 1`] = ` type: "Punctuator", value: ")", - range: [247, 248], + range: [243, 244], loc: { start: { column: 66, line: 8 }, end: { column: 67, line: 8 }, @@ -416,7 +416,7 @@ exports[`AST Fixtures jsx JSXNamespacedName component TSESTree - Tokens 1`] = ` type: "Punctuator", value: "{", - range: [249, 250], + range: [245, 246], loc: { start: { column: 68, line: 8 }, end: { column: 69, line: 8 }, @@ -426,157 +426,157 @@ exports[`AST Fixtures jsx JSXNamespacedName component TSESTree - Tokens 1`] = ` type: "Keyword", value: "return", - range: [255, 261], + range: [249, 255], loc: { - start: { column: 4, line: 9 }, - end: { column: 10, line: 9 }, + start: { column: 2, line: 9 }, + end: { column: 8, line: 9 }, }, }, Punctuator { type: "Punctuator", value: "<", - range: [262, 263], + range: [256, 257], loc: { - start: { column: 11, line: 9 }, - end: { column: 12, line: 9 }, + start: { column: 9, line: 9 }, + end: { column: 10, line: 9 }, }, }, JSXIdentifier { type: "JSXIdentifier", value: "div", - range: [263, 266], + range: [257, 260], loc: { - start: { column: 12, line: 9 }, - end: { column: 15, line: 9 }, + start: { column: 10, line: 9 }, + end: { column: 13, line: 9 }, }, }, Punctuator { type: "Punctuator", value: ">", - range: [266, 267], + range: [260, 261], loc: { - start: { column: 15, line: 9 }, - end: { column: 16, line: 9 }, + start: { column: 13, line: 9 }, + end: { column: 14, line: 9 }, }, }, Punctuator { type: "Punctuator", value: "{", - range: [267, 268], + range: [261, 262], loc: { - start: { column: 16, line: 9 }, - end: { column: 17, line: 9 }, + start: { column: 14, line: 9 }, + end: { column: 15, line: 9 }, }, }, Identifier { type: "Identifier", value: "props", - range: [268, 273], + range: [262, 267], loc: { - start: { column: 17, line: 9 }, - end: { column: 22, line: 9 }, + start: { column: 15, line: 9 }, + end: { column: 20, line: 9 }, }, }, Punctuator { type: "Punctuator", value: "[", - range: [273, 274], + range: [267, 268], loc: { - start: { column: 22, line: 9 }, - end: { column: 23, line: 9 }, + start: { column: 20, line: 9 }, + end: { column: 21, line: 9 }, }, }, String { type: "String", - value: ""a:b"", + value: "'a:b'", - range: [274, 279], + range: [268, 273], loc: { - start: { column: 23, line: 9 }, - end: { column: 28, line: 9 }, + start: { column: 21, line: 9 }, + end: { column: 26, line: 9 }, }, }, Punctuator { type: "Punctuator", value: "]", - range: [279, 280], + range: [273, 274], loc: { - start: { column: 28, line: 9 }, - end: { column: 29, line: 9 }, + start: { column: 26, line: 9 }, + end: { column: 27, line: 9 }, }, }, Punctuator { type: "Punctuator", value: "}", - range: [280, 281], + range: [274, 275], loc: { - start: { column: 29, line: 9 }, - end: { column: 30, line: 9 }, + start: { column: 27, line: 9 }, + end: { column: 28, line: 9 }, }, }, Punctuator { type: "Punctuator", value: "<", - range: [281, 282], + range: [275, 276], loc: { - start: { column: 30, line: 9 }, - end: { column: 31, line: 9 }, + start: { column: 28, line: 9 }, + end: { column: 29, line: 9 }, }, }, Punctuator { type: "Punctuator", value: "/", - range: [282, 283], + range: [276, 277], loc: { - start: { column: 31, line: 9 }, - end: { column: 32, line: 9 }, + start: { column: 29, line: 9 }, + end: { column: 30, line: 9 }, }, }, JSXIdentifier { type: "JSXIdentifier", value: "div", - range: [283, 286], + range: [277, 280], loc: { - start: { column: 32, line: 9 }, - end: { column: 35, line: 9 }, + start: { column: 30, line: 9 }, + end: { column: 33, line: 9 }, }, }, Punctuator { type: "Punctuator", value: ">", - range: [286, 287], + range: [280, 281], loc: { - start: { column: 35, line: 9 }, - end: { column: 36, line: 9 }, + start: { column: 33, line: 9 }, + end: { column: 34, line: 9 }, }, }, Punctuator { type: "Punctuator", value: ";", - range: [287, 288], + range: [281, 282], loc: { - start: { column: 36, line: 9 }, - end: { column: 37, line: 9 }, + start: { column: 34, line: 9 }, + end: { column: 35, line: 9 }, }, }, Punctuator { type: "Punctuator", value: "}", - range: [289, 290], + range: [283, 284], loc: { start: { column: 0, line: 10 }, end: { column: 1, line: 10 }, diff --git a/packages/ast-spec/src/jsx/JSXNamespacedName/fixtures/component/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/jsx/JSXNamespacedName/fixtures/component/snapshots/3-Babel-AST.shot index 7582f7301e58..973ac01c6c92 100644 --- a/packages/ast-spec/src/jsx/JSXNamespacedName/fixtures/component/snapshots/3-Babel-AST.shot +++ b/packages/ast-spec/src/jsx/JSXNamespacedName/fixtures/component/snapshots/3-Babel-AST.shot @@ -147,10 +147,10 @@ Program { type: "JSXIdentifier", name: "b", - range: [96, 97], + range: [94, 95], loc: { - start: { column: 38, line: 2 }, - end: { column: 39, line: 2 }, + start: { column: 36, line: 2 }, + end: { column: 37, line: 2 }, }, }, namespace: JSXIdentifier { @@ -164,10 +164,10 @@ Program { }, }, - range: [92, 97], + range: [92, 95], loc: { start: { column: 34, line: 2 }, - end: { column: 39, line: 2 }, + end: { column: 37, line: 2 }, }, }, value: Literal { @@ -175,17 +175,17 @@ Program { raw: ""loose spacing"", value: "loose spacing", - range: [98, 113], + range: [96, 111], loc: { - start: { column: 40, line: 2 }, - end: { column: 55, line: 2 }, + start: { column: 38, line: 2 }, + end: { column: 53, line: 2 }, }, }, - range: [92, 113], + range: [92, 111], loc: { start: { column: 34, line: 2 }, - end: { column: 55, line: 2 }, + end: { column: 53, line: 2 }, }, }, ], @@ -201,33 +201,33 @@ Program { }, selfClosing: true, - range: [68, 116], + range: [68, 114], loc: { start: { column: 10, line: 2 }, - end: { column: 58, line: 2 }, + end: { column: 56, line: 2 }, }, }, - range: [68, 116], + range: [68, 114], loc: { start: { column: 10, line: 2 }, - end: { column: 58, line: 2 }, + end: { column: 56, line: 2 }, }, }, - range: [64, 116], + range: [64, 114], loc: { start: { column: 6, line: 2 }, - end: { column: 58, line: 2 }, + end: { column: 56, line: 2 }, }, }, ], kind: "const", - range: [58, 117], + range: [58, 115], loc: { start: { column: 0, line: 2 }, - end: { column: 59, line: 2 }, + end: { column: 57, line: 2 }, }, }, TSInterfaceDeclaration { @@ -240,13 +240,13 @@ Program { computed: false, key: Literal { type: "Literal", - raw: ""a:b"", + raw: "'a:b'", value: "a:b", - range: [163, 168], + range: [159, 164], loc: { - start: { column: 4, line: 5 }, - end: { column: 9, line: 5 }, + start: { column: 2, line: 5 }, + end: { column: 7, line: 5 }, }, }, typeAnnotation: TSTypeAnnotation { @@ -254,29 +254,29 @@ Program { typeAnnotation: TSStringKeyword { type: "TSStringKeyword", - range: [170, 176], + range: [166, 172], loc: { - start: { column: 11, line: 5 }, - end: { column: 17, line: 5 }, + start: { column: 9, line: 5 }, + end: { column: 15, line: 5 }, }, }, - range: [168, 176], + range: [164, 172], loc: { - start: { column: 9, line: 5 }, - end: { column: 17, line: 5 }, + start: { column: 7, line: 5 }, + end: { column: 15, line: 5 }, }, }, - range: [163, 177], + range: [159, 173], loc: { - start: { column: 4, line: 5 }, - end: { column: 18, line: 5 }, + start: { column: 2, line: 5 }, + end: { column: 16, line: 5 }, }, }, ], - range: [157, 179], + range: [155, 175], loc: { start: { column: 38, line: 4 }, end: { column: 1, line: 6 }, @@ -286,14 +286,14 @@ Program { type: "Identifier", name: "NamespacePropComponentProps", - range: [129, 156], + range: [127, 154], loc: { start: { column: 10, line: 4 }, end: { column: 37, line: 4 }, }, }, - range: [119, 179], + range: [117, 175], loc: { start: { column: 0, line: 4 }, end: { column: 1, line: 6 }, @@ -319,36 +319,36 @@ Program { type: "Identifier", name: "props", - range: [268, 273], + range: [262, 267], loc: { - start: { column: 17, line: 9 }, - end: { column: 22, line: 9 }, + start: { column: 15, line: 9 }, + end: { column: 20, line: 9 }, }, }, optional: false, property: Literal { type: "Literal", - raw: ""a:b"", + raw: "'a:b'", value: "a:b", - range: [274, 279], + range: [268, 273], loc: { - start: { column: 23, line: 9 }, - end: { column: 28, line: 9 }, + start: { column: 21, line: 9 }, + end: { column: 26, line: 9 }, }, }, - range: [268, 280], + range: [262, 274], loc: { - start: { column: 17, line: 9 }, - end: { column: 29, line: 9 }, + start: { column: 15, line: 9 }, + end: { column: 27, line: 9 }, }, }, - range: [267, 281], + range: [261, 275], loc: { - start: { column: 16, line: 9 }, - end: { column: 30, line: 9 }, + start: { column: 14, line: 9 }, + end: { column: 28, line: 9 }, }, }, ], @@ -358,17 +358,17 @@ Program { type: "JSXIdentifier", name: "div", - range: [283, 286], + range: [277, 280], loc: { - start: { column: 32, line: 9 }, - end: { column: 35, line: 9 }, + start: { column: 30, line: 9 }, + end: { column: 33, line: 9 }, }, }, - range: [281, 287], + range: [275, 281], loc: { - start: { column: 30, line: 9 }, - end: { column: 36, line: 9 }, + start: { column: 28, line: 9 }, + end: { column: 34, line: 9 }, }, }, openingElement: JSXOpeningElement { @@ -378,37 +378,37 @@ Program { type: "JSXIdentifier", name: "div", - range: [263, 266], + range: [257, 260], loc: { - start: { column: 12, line: 9 }, - end: { column: 15, line: 9 }, + start: { column: 10, line: 9 }, + end: { column: 13, line: 9 }, }, }, selfClosing: false, - range: [262, 267], + range: [256, 261], loc: { - start: { column: 11, line: 9 }, - end: { column: 16, line: 9 }, + start: { column: 9, line: 9 }, + end: { column: 14, line: 9 }, }, }, - range: [262, 287], + range: [256, 281], loc: { - start: { column: 11, line: 9 }, - end: { column: 36, line: 9 }, + start: { column: 9, line: 9 }, + end: { column: 34, line: 9 }, }, }, - range: [255, 288], + range: [249, 282], loc: { - start: { column: 4, line: 9 }, - end: { column: 37, line: 9 }, + start: { column: 2, line: 9 }, + end: { column: 35, line: 9 }, }, }, ], - range: [249, 290], + range: [245, 284], loc: { start: { column: 68, line: 8 }, end: { column: 1, line: 10 }, @@ -420,7 +420,7 @@ Program { type: "Identifier", name: "NamespacePropComponent", - range: [190, 212], + range: [186, 208], loc: { start: { column: 9, line: 8 }, end: { column: 31, line: 8 }, @@ -438,28 +438,28 @@ Program { type: "Identifier", name: "NamespacePropComponentProps", - range: [220, 247], + range: [216, 243], loc: { start: { column: 39, line: 8 }, end: { column: 66, line: 8 }, }, }, - range: [220, 247], + range: [216, 243], loc: { start: { column: 39, line: 8 }, end: { column: 66, line: 8 }, }, }, - range: [218, 247], + range: [214, 243], loc: { start: { column: 37, line: 8 }, end: { column: 66, line: 8 }, }, }, - range: [213, 247], + range: [209, 243], loc: { start: { column: 32, line: 8 }, end: { column: 66, line: 8 }, @@ -467,7 +467,7 @@ Program { }, ], - range: [181, 290], + range: [177, 284], loc: { start: { column: 0, line: 8 }, end: { column: 1, line: 10 }, @@ -476,7 +476,7 @@ Program { ], sourceType: "script", - range: [0, 291], + range: [0, 285], loc: { start: { column: 0, line: 1 }, end: { column: 0, line: 11 }, diff --git a/packages/ast-spec/src/jsx/JSXNamespacedName/fixtures/component/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/jsx/JSXNamespacedName/fixtures/component/snapshots/4-Babel-Tokens.shot index afdd8792c205..e746539dc618 100644 --- a/packages/ast-spec/src/jsx/JSXNamespacedName/fixtures/component/snapshots/4-Babel-Tokens.shot +++ b/packages/ast-spec/src/jsx/JSXNamespacedName/fixtures/component/snapshots/4-Babel-Tokens.shot @@ -196,77 +196,77 @@ exports[`AST Fixtures jsx JSXNamespacedName component Babel - Tokens 1`] = ` type: "Punctuator", value: ":", - range: [94, 95], + range: [93, 94], loc: { - start: { column: 36, line: 2 }, - end: { column: 37, line: 2 }, + start: { column: 35, line: 2 }, + end: { column: 36, line: 2 }, }, }, JSXIdentifier { type: "JSXIdentifier", value: "b", - range: [96, 97], + range: [94, 95], loc: { - start: { column: 38, line: 2 }, - end: { column: 39, line: 2 }, + start: { column: 36, line: 2 }, + end: { column: 37, line: 2 }, }, }, Punctuator { type: "Punctuator", value: "=", - range: [97, 98], + range: [95, 96], loc: { - start: { column: 39, line: 2 }, - end: { column: 40, line: 2 }, + start: { column: 37, line: 2 }, + end: { column: 38, line: 2 }, }, }, String { type: "String", value: ""loose spacing"", - range: [98, 113], + range: [96, 111], loc: { - start: { column: 40, line: 2 }, - end: { column: 55, line: 2 }, + start: { column: 38, line: 2 }, + end: { column: 53, line: 2 }, }, }, Punctuator { type: "Punctuator", value: "/", - range: [114, 115], + range: [112, 113], loc: { - start: { column: 56, line: 2 }, - end: { column: 57, line: 2 }, + start: { column: 54, line: 2 }, + end: { column: 55, line: 2 }, }, }, Punctuator { type: "Punctuator", value: ">", - range: [115, 116], + range: [113, 114], loc: { - start: { column: 57, line: 2 }, - end: { column: 58, line: 2 }, + start: { column: 55, line: 2 }, + end: { column: 56, line: 2 }, }, }, Punctuator { type: "Punctuator", value: ";", - range: [116, 117], + range: [114, 115], loc: { - start: { column: 58, line: 2 }, - end: { column: 59, line: 2 }, + start: { column: 56, line: 2 }, + end: { column: 57, line: 2 }, }, }, Identifier { type: "Identifier", value: "interface", - range: [119, 128], + range: [117, 126], loc: { start: { column: 0, line: 4 }, end: { column: 9, line: 4 }, @@ -276,7 +276,7 @@ exports[`AST Fixtures jsx JSXNamespacedName component Babel - Tokens 1`] = ` type: "Identifier", value: "NamespacePropComponentProps", - range: [129, 156], + range: [127, 154], loc: { start: { column: 10, line: 4 }, end: { column: 37, line: 4 }, @@ -286,7 +286,7 @@ exports[`AST Fixtures jsx JSXNamespacedName component Babel - Tokens 1`] = ` type: "Punctuator", value: "{", - range: [157, 158], + range: [155, 156], loc: { start: { column: 38, line: 4 }, end: { column: 39, line: 4 }, @@ -294,49 +294,49 @@ exports[`AST Fixtures jsx JSXNamespacedName component Babel - Tokens 1`] = ` }, String { type: "String", - value: ""a:b"", + value: "'a:b'", - range: [163, 168], + range: [159, 164], loc: { - start: { column: 4, line: 5 }, - end: { column: 9, line: 5 }, + start: { column: 2, line: 5 }, + end: { column: 7, line: 5 }, }, }, Punctuator { type: "Punctuator", value: ":", - range: [168, 169], + range: [164, 165], loc: { - start: { column: 9, line: 5 }, - end: { column: 10, line: 5 }, + start: { column: 7, line: 5 }, + end: { column: 8, line: 5 }, }, }, Identifier { type: "Identifier", value: "string", - range: [170, 176], + range: [166, 172], loc: { - start: { column: 11, line: 5 }, - end: { column: 17, line: 5 }, + start: { column: 9, line: 5 }, + end: { column: 15, line: 5 }, }, }, Punctuator { type: "Punctuator", value: ";", - range: [176, 177], + range: [172, 173], loc: { - start: { column: 17, line: 5 }, - end: { column: 18, line: 5 }, + start: { column: 15, line: 5 }, + end: { column: 16, line: 5 }, }, }, Punctuator { type: "Punctuator", value: "}", - range: [178, 179], + range: [174, 175], loc: { start: { column: 0, line: 6 }, end: { column: 1, line: 6 }, @@ -346,7 +346,7 @@ exports[`AST Fixtures jsx JSXNamespacedName component Babel - Tokens 1`] = ` type: "Keyword", value: "function", - range: [181, 189], + range: [177, 185], loc: { start: { column: 0, line: 8 }, end: { column: 8, line: 8 }, @@ -356,7 +356,7 @@ exports[`AST Fixtures jsx JSXNamespacedName component Babel - Tokens 1`] = ` type: "Identifier", value: "NamespacePropComponent", - range: [190, 212], + range: [186, 208], loc: { start: { column: 9, line: 8 }, end: { column: 31, line: 8 }, @@ -366,7 +366,7 @@ exports[`AST Fixtures jsx JSXNamespacedName component Babel - Tokens 1`] = ` type: "Punctuator", value: "(", - range: [212, 213], + range: [208, 209], loc: { start: { column: 31, line: 8 }, end: { column: 32, line: 8 }, @@ -376,7 +376,7 @@ exports[`AST Fixtures jsx JSXNamespacedName component Babel - Tokens 1`] = ` type: "Identifier", value: "props", - range: [213, 218], + range: [209, 214], loc: { start: { column: 32, line: 8 }, end: { column: 37, line: 8 }, @@ -386,7 +386,7 @@ exports[`AST Fixtures jsx JSXNamespacedName component Babel - Tokens 1`] = ` type: "Punctuator", value: ":", - range: [218, 219], + range: [214, 215], loc: { start: { column: 37, line: 8 }, end: { column: 38, line: 8 }, @@ -396,7 +396,7 @@ exports[`AST Fixtures jsx JSXNamespacedName component Babel - Tokens 1`] = ` type: "Identifier", value: "NamespacePropComponentProps", - range: [220, 247], + range: [216, 243], loc: { start: { column: 39, line: 8 }, end: { column: 66, line: 8 }, @@ -406,7 +406,7 @@ exports[`AST Fixtures jsx JSXNamespacedName component Babel - Tokens 1`] = ` type: "Punctuator", value: ")", - range: [247, 248], + range: [243, 244], loc: { start: { column: 66, line: 8 }, end: { column: 67, line: 8 }, @@ -416,7 +416,7 @@ exports[`AST Fixtures jsx JSXNamespacedName component Babel - Tokens 1`] = ` type: "Punctuator", value: "{", - range: [249, 250], + range: [245, 246], loc: { start: { column: 68, line: 8 }, end: { column: 69, line: 8 }, @@ -426,157 +426,157 @@ exports[`AST Fixtures jsx JSXNamespacedName component Babel - Tokens 1`] = ` type: "Keyword", value: "return", - range: [255, 261], + range: [249, 255], loc: { - start: { column: 4, line: 9 }, - end: { column: 10, line: 9 }, + start: { column: 2, line: 9 }, + end: { column: 8, line: 9 }, }, }, Punctuator { type: "Punctuator", value: "<", - range: [262, 263], + range: [256, 257], loc: { - start: { column: 11, line: 9 }, - end: { column: 12, line: 9 }, + start: { column: 9, line: 9 }, + end: { column: 10, line: 9 }, }, }, JSXIdentifier { type: "JSXIdentifier", value: "div", - range: [263, 266], + range: [257, 260], loc: { - start: { column: 12, line: 9 }, - end: { column: 15, line: 9 }, + start: { column: 10, line: 9 }, + end: { column: 13, line: 9 }, }, }, Punctuator { type: "Punctuator", value: ">", - range: [266, 267], + range: [260, 261], loc: { - start: { column: 15, line: 9 }, - end: { column: 16, line: 9 }, + start: { column: 13, line: 9 }, + end: { column: 14, line: 9 }, }, }, Punctuator { type: "Punctuator", value: "{", - range: [267, 268], + range: [261, 262], loc: { - start: { column: 16, line: 9 }, - end: { column: 17, line: 9 }, + start: { column: 14, line: 9 }, + end: { column: 15, line: 9 }, }, }, Identifier { type: "Identifier", value: "props", - range: [268, 273], + range: [262, 267], loc: { - start: { column: 17, line: 9 }, - end: { column: 22, line: 9 }, + start: { column: 15, line: 9 }, + end: { column: 20, line: 9 }, }, }, Punctuator { type: "Punctuator", value: "[", - range: [273, 274], + range: [267, 268], loc: { - start: { column: 22, line: 9 }, - end: { column: 23, line: 9 }, + start: { column: 20, line: 9 }, + end: { column: 21, line: 9 }, }, }, String { type: "String", - value: ""a:b"", + value: "'a:b'", - range: [274, 279], + range: [268, 273], loc: { - start: { column: 23, line: 9 }, - end: { column: 28, line: 9 }, + start: { column: 21, line: 9 }, + end: { column: 26, line: 9 }, }, }, Punctuator { type: "Punctuator", value: "]", - range: [279, 280], + range: [273, 274], loc: { - start: { column: 28, line: 9 }, - end: { column: 29, line: 9 }, + start: { column: 26, line: 9 }, + end: { column: 27, line: 9 }, }, }, Punctuator { type: "Punctuator", value: "}", - range: [280, 281], + range: [274, 275], loc: { - start: { column: 29, line: 9 }, - end: { column: 30, line: 9 }, + start: { column: 27, line: 9 }, + end: { column: 28, line: 9 }, }, }, Punctuator { type: "Punctuator", value: "<", - range: [281, 282], + range: [275, 276], loc: { - start: { column: 30, line: 9 }, - end: { column: 31, line: 9 }, + start: { column: 28, line: 9 }, + end: { column: 29, line: 9 }, }, }, Punctuator { type: "Punctuator", value: "/", - range: [282, 283], + range: [276, 277], loc: { - start: { column: 31, line: 9 }, - end: { column: 32, line: 9 }, + start: { column: 29, line: 9 }, + end: { column: 30, line: 9 }, }, }, JSXIdentifier { type: "JSXIdentifier", value: "div", - range: [283, 286], + range: [277, 280], loc: { - start: { column: 32, line: 9 }, - end: { column: 35, line: 9 }, + start: { column: 30, line: 9 }, + end: { column: 33, line: 9 }, }, }, Punctuator { type: "Punctuator", value: ">", - range: [286, 287], + range: [280, 281], loc: { - start: { column: 35, line: 9 }, - end: { column: 36, line: 9 }, + start: { column: 33, line: 9 }, + end: { column: 34, line: 9 }, }, }, Punctuator { type: "Punctuator", value: ";", - range: [287, 288], + range: [281, 282], loc: { - start: { column: 36, line: 9 }, - end: { column: 37, line: 9 }, + start: { column: 34, line: 9 }, + end: { column: 35, line: 9 }, }, }, Punctuator { type: "Punctuator", value: "}", - range: [289, 290], + range: [283, 284], loc: { start: { column: 0, line: 10 }, end: { column: 1, line: 10 }, diff --git a/packages/ast-spec/src/jsx/JSXNamespacedName/fixtures/component/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/jsx/JSXNamespacedName/fixtures/component/snapshots/5-AST-Alignment-AST.shot index 45ffcb1a2319..4bfa82416b40 100644 --- a/packages/ast-spec/src/jsx/JSXNamespacedName/fixtures/component/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/jsx/JSXNamespacedName/fixtures/component/snapshots/5-AST-Alignment-AST.shot @@ -158,10 +158,10 @@ exports[`AST Fixtures jsx JSXNamespacedName component AST Alignment - AST 1`] = type: 'JSXIdentifier', name: 'b', - range: [96, 97], + range: [94, 95], loc: { - start: { column: 38, line: 2 }, - end: { column: 39, line: 2 }, + start: { column: 36, line: 2 }, + end: { column: 37, line: 2 }, }, }, namespace: JSXIdentifier { @@ -175,10 +175,10 @@ exports[`AST Fixtures jsx JSXNamespacedName component AST Alignment - AST 1`] = }, }, - range: [92, 97], + range: [92, 95], loc: { start: { column: 34, line: 2 }, - end: { column: 39, line: 2 }, + end: { column: 37, line: 2 }, }, }, value: Literal { @@ -186,17 +186,17 @@ exports[`AST Fixtures jsx JSXNamespacedName component AST Alignment - AST 1`] = raw: '"loose spacing"', value: 'loose spacing', - range: [98, 113], + range: [96, 111], loc: { - start: { column: 40, line: 2 }, - end: { column: 55, line: 2 }, + start: { column: 38, line: 2 }, + end: { column: 53, line: 2 }, }, }, - range: [92, 113], + range: [92, 111], loc: { start: { column: 34, line: 2 }, - end: { column: 55, line: 2 }, + end: { column: 53, line: 2 }, }, }, ], @@ -212,34 +212,34 @@ exports[`AST Fixtures jsx JSXNamespacedName component AST Alignment - AST 1`] = }, selfClosing: true, - range: [68, 116], + range: [68, 114], loc: { start: { column: 10, line: 2 }, - end: { column: 58, line: 2 }, + end: { column: 56, line: 2 }, }, }, - range: [68, 116], + range: [68, 114], loc: { start: { column: 10, line: 2 }, - end: { column: 58, line: 2 }, + end: { column: 56, line: 2 }, }, }, - range: [64, 116], + range: [64, 114], loc: { start: { column: 6, line: 2 }, - end: { column: 58, line: 2 }, + end: { column: 56, line: 2 }, }, }, ], - declare: false, kind: 'const', - range: [58, 117], + range: [58, 115], loc: { start: { column: 0, line: 2 }, - end: { column: 59, line: 2 }, + end: { column: 57, line: 2 }, }, }, TSInterfaceDeclaration { @@ -252,13 +252,13 @@ exports[`AST Fixtures jsx JSXNamespacedName component AST Alignment - AST 1`] = computed: false, key: Literal { type: 'Literal', - raw: '"a:b"', + raw: '\\'a:b\\'', value: 'a:b', - range: [163, 168], + range: [159, 164], loc: { - start: { column: 4, line: 5 }, - end: { column: 9, line: 5 }, + start: { column: 2, line: 5 }, + end: { column: 7, line: 5 }, }, }, - optional: false, @@ -269,29 +269,29 @@ exports[`AST Fixtures jsx JSXNamespacedName component AST Alignment - AST 1`] = typeAnnotation: TSStringKeyword { type: 'TSStringKeyword', - range: [170, 176], + range: [166, 172], loc: { - start: { column: 11, line: 5 }, - end: { column: 17, line: 5 }, + start: { column: 9, line: 5 }, + end: { column: 15, line: 5 }, }, }, - range: [168, 176], + range: [164, 172], loc: { - start: { column: 9, line: 5 }, - end: { column: 17, line: 5 }, + start: { column: 7, line: 5 }, + end: { column: 15, line: 5 }, }, }, - range: [163, 177], + range: [159, 173], loc: { - start: { column: 4, line: 5 }, - end: { column: 18, line: 5 }, + start: { column: 2, line: 5 }, + end: { column: 16, line: 5 }, }, }, ], - range: [157, 179], + range: [155, 175], loc: { start: { column: 38, line: 4 }, end: { column: 1, line: 6 }, @@ -305,14 +305,14 @@ exports[`AST Fixtures jsx JSXNamespacedName component AST Alignment - AST 1`] = name: 'NamespacePropComponentProps', - optional: false, - range: [129, 156], + range: [127, 154], loc: { start: { column: 10, line: 4 }, end: { column: 37, line: 4 }, }, }, - range: [119, 179], + range: [117, 175], loc: { start: { column: 0, line: 4 }, end: { column: 1, line: 6 }, @@ -340,36 +340,36 @@ exports[`AST Fixtures jsx JSXNamespacedName component AST Alignment - AST 1`] = name: 'props', - optional: false, - range: [268, 273], + range: [262, 267], loc: { - start: { column: 17, line: 9 }, - end: { column: 22, line: 9 }, + start: { column: 15, line: 9 }, + end: { column: 20, line: 9 }, }, }, optional: false, property: Literal { type: 'Literal', - raw: '"a:b"', + raw: '\\'a:b\\'', value: 'a:b', - range: [274, 279], + range: [268, 273], loc: { - start: { column: 23, line: 9 }, - end: { column: 28, line: 9 }, + start: { column: 21, line: 9 }, + end: { column: 26, line: 9 }, }, }, - range: [268, 280], + range: [262, 274], loc: { - start: { column: 17, line: 9 }, - end: { column: 29, line: 9 }, + start: { column: 15, line: 9 }, + end: { column: 27, line: 9 }, }, }, - range: [267, 281], + range: [261, 275], loc: { - start: { column: 16, line: 9 }, - end: { column: 30, line: 9 }, + start: { column: 14, line: 9 }, + end: { column: 28, line: 9 }, }, }, ], @@ -379,17 +379,17 @@ exports[`AST Fixtures jsx JSXNamespacedName component AST Alignment - AST 1`] = type: 'JSXIdentifier', name: 'div', - range: [283, 286], + range: [277, 280], loc: { - start: { column: 32, line: 9 }, - end: { column: 35, line: 9 }, + start: { column: 30, line: 9 }, + end: { column: 33, line: 9 }, }, }, - range: [281, 287], + range: [275, 281], loc: { - start: { column: 30, line: 9 }, - end: { column: 36, line: 9 }, + start: { column: 28, line: 9 }, + end: { column: 34, line: 9 }, }, }, openingElement: JSXOpeningElement { @@ -399,37 +399,37 @@ exports[`AST Fixtures jsx JSXNamespacedName component AST Alignment - AST 1`] = type: 'JSXIdentifier', name: 'div', - range: [263, 266], + range: [257, 260], loc: { - start: { column: 12, line: 9 }, - end: { column: 15, line: 9 }, + start: { column: 10, line: 9 }, + end: { column: 13, line: 9 }, }, }, selfClosing: false, - range: [262, 267], + range: [256, 261], loc: { - start: { column: 11, line: 9 }, - end: { column: 16, line: 9 }, + start: { column: 9, line: 9 }, + end: { column: 14, line: 9 }, }, }, - range: [262, 287], + range: [256, 281], loc: { - start: { column: 11, line: 9 }, - end: { column: 36, line: 9 }, + start: { column: 9, line: 9 }, + end: { column: 34, line: 9 }, }, }, - range: [255, 288], + range: [249, 282], loc: { - start: { column: 4, line: 9 }, - end: { column: 37, line: 9 }, + start: { column: 2, line: 9 }, + end: { column: 35, line: 9 }, }, }, ], - range: [249, 290], + range: [245, 284], loc: { start: { column: 68, line: 8 }, end: { column: 1, line: 10 }, @@ -444,7 +444,7 @@ exports[`AST Fixtures jsx JSXNamespacedName component AST Alignment - AST 1`] = name: 'NamespacePropComponent', - optional: false, - range: [190, 212], + range: [186, 208], loc: { start: { column: 9, line: 8 }, end: { column: 31, line: 8 }, @@ -466,28 +466,28 @@ exports[`AST Fixtures jsx JSXNamespacedName component AST Alignment - AST 1`] = name: 'NamespacePropComponentProps', - optional: false, - range: [220, 247], + range: [216, 243], loc: { start: { column: 39, line: 8 }, end: { column: 66, line: 8 }, }, }, - range: [220, 247], + range: [216, 243], loc: { start: { column: 39, line: 8 }, end: { column: 66, line: 8 }, }, }, - range: [218, 247], + range: [214, 243], loc: { start: { column: 37, line: 8 }, end: { column: 66, line: 8 }, }, }, - range: [213, 247], + range: [209, 243], loc: { start: { column: 32, line: 8 }, end: { column: 66, line: 8 }, @@ -495,7 +495,7 @@ exports[`AST Fixtures jsx JSXNamespacedName component AST Alignment - AST 1`] = }, ], - range: [181, 290], + range: [177, 284], loc: { start: { column: 0, line: 8 }, end: { column: 1, line: 10 }, @@ -504,7 +504,7 @@ exports[`AST Fixtures jsx JSXNamespacedName component AST Alignment - AST 1`] = ], sourceType: 'script', - range: [0, 291], + range: [0, 285], loc: { start: { column: 0, line: 1 }, end: { column: 0, line: 11 }, diff --git a/packages/ast-spec/src/jsx/JSXNamespacedName/fixtures/component/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/jsx/JSXNamespacedName/fixtures/component/snapshots/6-AST-Alignment-Tokens.shot index 2a72ccaf2fef..b77749bc53ad 100644 --- a/packages/ast-spec/src/jsx/JSXNamespacedName/fixtures/component/snapshots/6-AST-Alignment-Tokens.shot +++ b/packages/ast-spec/src/jsx/JSXNamespacedName/fixtures/component/snapshots/6-AST-Alignment-Tokens.shot @@ -208,10 +208,10 @@ exports[`AST Fixtures jsx JSXNamespacedName component AST Alignment - Token 1`] type: 'Punctuator', value: ':', - range: [94, 95], + range: [93, 94], loc: { - start: { column: 36, line: 2 }, - end: { column: 37, line: 2 }, + start: { column: 35, line: 2 }, + end: { column: 36, line: 2 }, }, }, - Identifier { @@ -220,20 +220,20 @@ exports[`AST Fixtures jsx JSXNamespacedName component AST Alignment - Token 1`] + type: 'JSXIdentifier', value: 'b', - range: [96, 97], + range: [94, 95], loc: { - start: { column: 38, line: 2 }, - end: { column: 39, line: 2 }, + start: { column: 36, line: 2 }, + end: { column: 37, line: 2 }, }, }, Punctuator { type: 'Punctuator', value: '=', - range: [97, 98], + range: [95, 96], loc: { - start: { column: 39, line: 2 }, - end: { column: 40, line: 2 }, + start: { column: 37, line: 2 }, + end: { column: 38, line: 2 }, }, }, - JSXText { @@ -242,40 +242,40 @@ exports[`AST Fixtures jsx JSXNamespacedName component AST Alignment - Token 1`] + type: 'String', value: '"loose spacing"', - range: [98, 113], + range: [96, 111], loc: { - start: { column: 40, line: 2 }, - end: { column: 55, line: 2 }, + start: { column: 38, line: 2 }, + end: { column: 53, line: 2 }, }, }, Punctuator { type: 'Punctuator', value: '/', - range: [114, 115], + range: [112, 113], loc: { - start: { column: 56, line: 2 }, - end: { column: 57, line: 2 }, + start: { column: 54, line: 2 }, + end: { column: 55, line: 2 }, }, }, Punctuator { type: 'Punctuator', value: '>', - range: [115, 116], + range: [113, 114], loc: { - start: { column: 57, line: 2 }, - end: { column: 58, line: 2 }, + start: { column: 55, line: 2 }, + end: { column: 56, line: 2 }, }, }, Punctuator { type: 'Punctuator', value: ';', - range: [116, 117], + range: [114, 115], loc: { - start: { column: 58, line: 2 }, - end: { column: 59, line: 2 }, + start: { column: 56, line: 2 }, + end: { column: 57, line: 2 }, }, }, - Keyword { @@ -284,7 +284,7 @@ exports[`AST Fixtures jsx JSXNamespacedName component AST Alignment - Token 1`] + type: 'Identifier', value: 'interface', - range: [119, 128], + range: [117, 126], loc: { start: { column: 0, line: 4 }, end: { column: 9, line: 4 }, @@ -294,7 +294,7 @@ exports[`AST Fixtures jsx JSXNamespacedName component AST Alignment - Token 1`] type: 'Identifier', value: 'NamespacePropComponentProps', - range: [129, 156], + range: [127, 154], loc: { start: { column: 10, line: 4 }, end: { column: 37, line: 4 }, @@ -304,7 +304,7 @@ exports[`AST Fixtures jsx JSXNamespacedName component AST Alignment - Token 1`] type: 'Punctuator', value: '{', - range: [157, 158], + range: [155, 156], loc: { start: { column: 38, line: 4 }, end: { column: 39, line: 4 }, @@ -312,49 +312,49 @@ exports[`AST Fixtures jsx JSXNamespacedName component AST Alignment - Token 1`] }, String { type: 'String', - value: '"a:b"', + value: '\\'a:b\\'', - range: [163, 168], + range: [159, 164], loc: { - start: { column: 4, line: 5 }, - end: { column: 9, line: 5 }, + start: { column: 2, line: 5 }, + end: { column: 7, line: 5 }, }, }, Punctuator { type: 'Punctuator', value: ':', - range: [168, 169], + range: [164, 165], loc: { - start: { column: 9, line: 5 }, - end: { column: 10, line: 5 }, + start: { column: 7, line: 5 }, + end: { column: 8, line: 5 }, }, }, Identifier { type: 'Identifier', value: 'string', - range: [170, 176], + range: [166, 172], loc: { - start: { column: 11, line: 5 }, - end: { column: 17, line: 5 }, + start: { column: 9, line: 5 }, + end: { column: 15, line: 5 }, }, }, Punctuator { type: 'Punctuator', value: ';', - range: [176, 177], + range: [172, 173], loc: { - start: { column: 17, line: 5 }, - end: { column: 18, line: 5 }, + start: { column: 15, line: 5 }, + end: { column: 16, line: 5 }, }, }, Punctuator { type: 'Punctuator', value: '}', - range: [178, 179], + range: [174, 175], loc: { start: { column: 0, line: 6 }, end: { column: 1, line: 6 }, @@ -364,7 +364,7 @@ exports[`AST Fixtures jsx JSXNamespacedName component AST Alignment - Token 1`] type: 'Keyword', value: 'function', - range: [181, 189], + range: [177, 185], loc: { start: { column: 0, line: 8 }, end: { column: 8, line: 8 }, @@ -374,7 +374,7 @@ exports[`AST Fixtures jsx JSXNamespacedName component AST Alignment - Token 1`] type: 'Identifier', value: 'NamespacePropComponent', - range: [190, 212], + range: [186, 208], loc: { start: { column: 9, line: 8 }, end: { column: 31, line: 8 }, @@ -384,7 +384,7 @@ exports[`AST Fixtures jsx JSXNamespacedName component AST Alignment - Token 1`] type: 'Punctuator', value: '(', - range: [212, 213], + range: [208, 209], loc: { start: { column: 31, line: 8 }, end: { column: 32, line: 8 }, @@ -394,7 +394,7 @@ exports[`AST Fixtures jsx JSXNamespacedName component AST Alignment - Token 1`] type: 'Identifier', value: 'props', - range: [213, 218], + range: [209, 214], loc: { start: { column: 32, line: 8 }, end: { column: 37, line: 8 }, @@ -404,7 +404,7 @@ exports[`AST Fixtures jsx JSXNamespacedName component AST Alignment - Token 1`] type: 'Punctuator', value: ':', - range: [218, 219], + range: [214, 215], loc: { start: { column: 37, line: 8 }, end: { column: 38, line: 8 }, @@ -414,7 +414,7 @@ exports[`AST Fixtures jsx JSXNamespacedName component AST Alignment - Token 1`] type: 'Identifier', value: 'NamespacePropComponentProps', - range: [220, 247], + range: [216, 243], loc: { start: { column: 39, line: 8 }, end: { column: 66, line: 8 }, @@ -424,7 +424,7 @@ exports[`AST Fixtures jsx JSXNamespacedName component AST Alignment - Token 1`] type: 'Punctuator', value: ')', - range: [247, 248], + range: [243, 244], loc: { start: { column: 66, line: 8 }, end: { column: 67, line: 8 }, @@ -434,7 +434,7 @@ exports[`AST Fixtures jsx JSXNamespacedName component AST Alignment - Token 1`] type: 'Punctuator', value: '{', - range: [249, 250], + range: [245, 246], loc: { start: { column: 68, line: 8 }, end: { column: 69, line: 8 }, @@ -444,157 +444,157 @@ exports[`AST Fixtures jsx JSXNamespacedName component AST Alignment - Token 1`] type: 'Keyword', value: 'return', - range: [255, 261], + range: [249, 255], loc: { - start: { column: 4, line: 9 }, - end: { column: 10, line: 9 }, + start: { column: 2, line: 9 }, + end: { column: 8, line: 9 }, }, }, Punctuator { type: 'Punctuator', value: '<', - range: [262, 263], + range: [256, 257], loc: { - start: { column: 11, line: 9 }, - end: { column: 12, line: 9 }, + start: { column: 9, line: 9 }, + end: { column: 10, line: 9 }, }, }, JSXIdentifier { type: 'JSXIdentifier', value: 'div', - range: [263, 266], + range: [257, 260], loc: { - start: { column: 12, line: 9 }, - end: { column: 15, line: 9 }, + start: { column: 10, line: 9 }, + end: { column: 13, line: 9 }, }, }, Punctuator { type: 'Punctuator', value: '>', - range: [266, 267], + range: [260, 261], loc: { - start: { column: 15, line: 9 }, - end: { column: 16, line: 9 }, + start: { column: 13, line: 9 }, + end: { column: 14, line: 9 }, }, }, Punctuator { type: 'Punctuator', value: '{', - range: [267, 268], + range: [261, 262], loc: { - start: { column: 16, line: 9 }, - end: { column: 17, line: 9 }, + start: { column: 14, line: 9 }, + end: { column: 15, line: 9 }, }, }, Identifier { type: 'Identifier', value: 'props', - range: [268, 273], + range: [262, 267], loc: { - start: { column: 17, line: 9 }, - end: { column: 22, line: 9 }, + start: { column: 15, line: 9 }, + end: { column: 20, line: 9 }, }, }, Punctuator { type: 'Punctuator', value: '[', - range: [273, 274], + range: [267, 268], loc: { - start: { column: 22, line: 9 }, - end: { column: 23, line: 9 }, + start: { column: 20, line: 9 }, + end: { column: 21, line: 9 }, }, }, String { type: 'String', - value: '"a:b"', + value: '\\'a:b\\'', - range: [274, 279], + range: [268, 273], loc: { - start: { column: 23, line: 9 }, - end: { column: 28, line: 9 }, + start: { column: 21, line: 9 }, + end: { column: 26, line: 9 }, }, }, Punctuator { type: 'Punctuator', value: ']', - range: [279, 280], + range: [273, 274], loc: { - start: { column: 28, line: 9 }, - end: { column: 29, line: 9 }, + start: { column: 26, line: 9 }, + end: { column: 27, line: 9 }, }, }, Punctuator { type: 'Punctuator', value: '}', - range: [280, 281], + range: [274, 275], loc: { - start: { column: 29, line: 9 }, - end: { column: 30, line: 9 }, + start: { column: 27, line: 9 }, + end: { column: 28, line: 9 }, }, }, Punctuator { type: 'Punctuator', value: '<', - range: [281, 282], + range: [275, 276], loc: { - start: { column: 30, line: 9 }, - end: { column: 31, line: 9 }, + start: { column: 28, line: 9 }, + end: { column: 29, line: 9 }, }, }, Punctuator { type: 'Punctuator', value: '/', - range: [282, 283], + range: [276, 277], loc: { - start: { column: 31, line: 9 }, - end: { column: 32, line: 9 }, + start: { column: 29, line: 9 }, + end: { column: 30, line: 9 }, }, }, JSXIdentifier { type: 'JSXIdentifier', value: 'div', - range: [283, 286], + range: [277, 280], loc: { - start: { column: 32, line: 9 }, - end: { column: 35, line: 9 }, + start: { column: 30, line: 9 }, + end: { column: 33, line: 9 }, }, }, Punctuator { type: 'Punctuator', value: '>', - range: [286, 287], + range: [280, 281], loc: { - start: { column: 35, line: 9 }, - end: { column: 36, line: 9 }, + start: { column: 33, line: 9 }, + end: { column: 34, line: 9 }, }, }, Punctuator { type: 'Punctuator', value: ';', - range: [287, 288], + range: [281, 282], loc: { - start: { column: 36, line: 9 }, - end: { column: 37, line: 9 }, + start: { column: 34, line: 9 }, + end: { column: 35, line: 9 }, }, }, Punctuator { type: 'Punctuator', value: '}', - range: [289, 290], + range: [283, 284], loc: { start: { column: 0, line: 10 }, end: { column: 1, line: 10 }, 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 c7afa0857168..489d673c2f2e 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 @@ -34,21 +34,21 @@ exports[`AST Fixtures special TSTypeParameter class-decl-in-const-modifier TSEST }, Keyword { type: "Keyword", - value: "in", + value: "const", - range: [8, 10], + range: [8, 13], loc: { start: { column: 8, line: 1 }, - end: { column: 10, line: 1 }, + end: { column: 13, line: 1 }, }, }, Keyword { type: "Keyword", - value: "const", + value: "in", - range: [11, 16], + range: [14, 16], loc: { - start: { column: 11, line: 1 }, + start: { column: 14, line: 1 }, end: { column: 16, line: 1 }, }, }, 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 93b1ee573afd..42611a08d657 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 @@ -34,21 +34,21 @@ exports[`AST Fixtures special TSTypeParameter class-decl-in-const-modifier Babel }, Keyword { type: "Keyword", - value: "in", + value: "const", - range: [8, 10], + range: [8, 13], loc: { start: { column: 8, line: 1 }, - end: { column: 10, line: 1 }, + end: { column: 13, line: 1 }, }, }, Keyword { type: "Keyword", - value: "const", + value: "in", - range: [11, 16], + range: [14, 16], loc: { - start: { column: 11, line: 1 }, + start: { column: 14, line: 1 }, end: { column: 16, line: 1 }, }, }, 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 9d3bd6eaa128..468135a5f6f0 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 @@ -13,10 +13,10 @@ Program { type: "ClassBody", body: [], - range: [20, 22], + range: [19, 21], loc: { - start: { column: 20, line: 1 }, - end: { column: 22, line: 1 }, + start: { column: 19, line: 1 }, + end: { column: 21, line: 1 }, }, }, declare: false, @@ -37,46 +37,46 @@ Program { name: "T", optional: false, - range: [17, 18], + range: [16, 17], loc: { - start: { column: 17, line: 1 }, - end: { column: 18, line: 1 }, + start: { column: 16, line: 1 }, + end: { column: 17, line: 1 }, }, }, out: false, - range: [8, 18], + range: [7, 17], loc: { - start: { column: 8, line: 1 }, - end: { column: 18, line: 1 }, + start: { column: 7, line: 1 }, + end: { column: 17, line: 1 }, }, }, ], - range: [7, 19], + range: [6, 18], loc: { - start: { column: 7, line: 1 }, - end: { column: 19, line: 1 }, + start: { column: 6, line: 1 }, + end: { column: 18, line: 1 }, }, }, - range: [1, 22], + range: [1, 21], loc: { start: { column: 1, line: 1 }, - end: { column: 22, line: 1 }, + end: { column: 21, line: 1 }, }, }, - range: [0, 24], + range: [0, 23], loc: { start: { column: 0, line: 1 }, - end: { column: 24, line: 1 }, + end: { column: 23, line: 1 }, }, }, ], sourceType: "script", - range: [0, 25], + range: [0, 24], loc: { start: { column: 0, line: 1 }, end: { column: 0, line: 2 }, diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-in-modifier/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-in-modifier/snapshots/2-TSESTree-Tokens.shot index b72435e44963..a73b2203ca57 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 @@ -26,36 +26,46 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-in-modifier TSEST type: "Punctuator", value: "<", - range: [7, 8], + range: [6, 7], loc: { - start: { column: 7, line: 1 }, - end: { column: 8, line: 1 }, + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, }, }, Keyword { type: "Keyword", value: "const", - range: [8, 13], + range: [7, 12], loc: { - start: { column: 8, line: 1 }, - end: { column: 13, line: 1 }, + start: { column: 7, line: 1 }, + end: { column: 12, line: 1 }, }, }, Keyword { type: "Keyword", value: "in", - range: [14, 16], + range: [13, 15], loc: { - start: { column: 14, line: 1 }, - end: { column: 16, line: 1 }, + start: { column: 13, line: 1 }, + end: { column: 15, line: 1 }, }, }, Identifier { type: "Identifier", value: "T", + range: [16, 17], + loc: { + start: { column: 16, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + range: [17, 18], loc: { start: { column: 17, line: 1 }, @@ -64,17 +74,17 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-in-modifier TSEST }, Punctuator { type: "Punctuator", - value: ">", + value: "{", - range: [18, 19], + range: [19, 20], loc: { - start: { column: 18, line: 1 }, - end: { column: 19, line: 1 }, + start: { column: 19, line: 1 }, + end: { column: 20, line: 1 }, }, }, Punctuator { type: "Punctuator", - value: "{", + value: "}", range: [20, 21], loc: { @@ -84,7 +94,7 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-in-modifier TSEST }, Punctuator { type: "Punctuator", - value: "}", + value: ")", range: [21, 22], loc: { @@ -94,7 +104,7 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-in-modifier TSEST }, Punctuator { type: "Punctuator", - value: ")", + value: ";", range: [22, 23], loc: { @@ -102,15 +112,5 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-in-modifier TSEST end: { column: 23, line: 1 }, }, }, - Punctuator { - type: "Punctuator", - value: ";", - - range: [23, 24], - loc: { - start: { column: 23, line: 1 }, - end: { column: 24, line: 1 }, - }, - }, ] `; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-in-modifier/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-in-modifier/snapshots/3-Babel-AST.shot index b91328e335ff..7353592c4201 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 @@ -12,10 +12,10 @@ Program { type: "ClassBody", body: [], - range: [20, 22], + range: [19, 21], loc: { - start: { column: 20, line: 1 }, - end: { column: 22, line: 1 }, + start: { column: 19, line: 1 }, + end: { column: 21, line: 1 }, }, }, id: null, @@ -29,38 +29,38 @@ Program { in: true, name: "T", - range: [8, 18], + range: [7, 17], loc: { - start: { column: 8, line: 1 }, - end: { column: 18, line: 1 }, + start: { column: 7, line: 1 }, + end: { column: 17, line: 1 }, }, }, ], - range: [7, 19], + range: [6, 18], loc: { - start: { column: 7, line: 1 }, - end: { column: 19, line: 1 }, + start: { column: 6, line: 1 }, + end: { column: 18, line: 1 }, }, }, - range: [1, 22], + range: [1, 21], loc: { start: { column: 1, line: 1 }, - end: { column: 22, line: 1 }, + end: { column: 21, line: 1 }, }, }, - range: [0, 24], + range: [0, 23], loc: { start: { column: 0, line: 1 }, - end: { column: 24, line: 1 }, + end: { column: 23, line: 1 }, }, }, ], sourceType: "script", - range: [0, 25], + range: [0, 24], loc: { start: { column: 0, line: 1 }, end: { column: 0, line: 2 }, diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-in-modifier/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-in-modifier/snapshots/4-Babel-Tokens.shot index 2bb229553460..7ee922ac0b52 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 @@ -26,36 +26,46 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-in-modifier Babel type: "Punctuator", value: "<", - range: [7, 8], + range: [6, 7], loc: { - start: { column: 7, line: 1 }, - end: { column: 8, line: 1 }, + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, }, }, Keyword { type: "Keyword", value: "const", - range: [8, 13], + range: [7, 12], loc: { - start: { column: 8, line: 1 }, - end: { column: 13, line: 1 }, + start: { column: 7, line: 1 }, + end: { column: 12, line: 1 }, }, }, Keyword { type: "Keyword", value: "in", - range: [14, 16], + range: [13, 15], loc: { - start: { column: 14, line: 1 }, - end: { column: 16, line: 1 }, + start: { column: 13, line: 1 }, + end: { column: 15, line: 1 }, }, }, Identifier { type: "Identifier", value: "T", + range: [16, 17], + loc: { + start: { column: 16, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + range: [17, 18], loc: { start: { column: 17, line: 1 }, @@ -64,17 +74,17 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-in-modifier Babel }, Punctuator { type: "Punctuator", - value: ">", + value: "{", - range: [18, 19], + range: [19, 20], loc: { - start: { column: 18, line: 1 }, - end: { column: 19, line: 1 }, + start: { column: 19, line: 1 }, + end: { column: 20, line: 1 }, }, }, Punctuator { type: "Punctuator", - value: "{", + value: "}", range: [20, 21], loc: { @@ -84,7 +94,7 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-in-modifier Babel }, Punctuator { type: "Punctuator", - value: "}", + value: ")", range: [21, 22], loc: { @@ -94,7 +104,7 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-in-modifier Babel }, Punctuator { type: "Punctuator", - value: ")", + value: ";", range: [22, 23], loc: { @@ -102,15 +112,5 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-in-modifier Babel end: { column: 23, line: 1 }, }, }, - Punctuator { - type: "Punctuator", - value: ";", - - range: [23, 24], - loc: { - start: { column: 23, line: 1 }, - end: { column: 24, line: 1 }, - }, - }, ] `; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-in-modifier/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-in-modifier/snapshots/5-AST-Alignment-AST.shot index 32a31c4e8e40..7104e6d4228c 100644 --- a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-in-modifier/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-in-modifier/snapshots/5-AST-Alignment-AST.shot @@ -17,10 +17,10 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-in-modifier AST A type: 'ClassBody', body: Array [], - range: [20, 22], + range: [19, 21], loc: { - start: { column: 20, line: 1 }, - end: { column: 22, line: 1 }, + start: { column: 19, line: 1 }, + end: { column: 21, line: 1 }, }, }, - declare: false, @@ -41,47 +41,47 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-in-modifier AST A - name: 'T', - optional: false, - -- range: [17, 18], +- range: [16, 17], - loc: { -- start: { column: 17, line: 1 }, -- end: { column: 18, line: 1 }, +- start: { column: 16, line: 1 }, +- end: { column: 17, line: 1 }, - }, - }, - out: false, + name: 'T', - range: [8, 18], + range: [7, 17], loc: { - start: { column: 8, line: 1 }, - end: { column: 18, line: 1 }, + start: { column: 7, line: 1 }, + end: { column: 17, line: 1 }, }, }, ], - range: [7, 19], + range: [6, 18], loc: { - start: { column: 7, line: 1 }, - end: { column: 19, line: 1 }, + start: { column: 6, line: 1 }, + end: { column: 18, line: 1 }, }, }, - range: [1, 22], + range: [1, 21], loc: { start: { column: 1, line: 1 }, - end: { column: 22, line: 1 }, + end: { column: 21, line: 1 }, }, }, - range: [0, 24], + range: [0, 23], loc: { start: { column: 0, line: 1 }, - end: { column: 24, line: 1 }, + end: { column: 23, line: 1 }, }, }, ], sourceType: 'script', - range: [0, 25], + range: [0, 24], loc: { start: { column: 0, line: 1 }, end: { column: 0, line: 2 }, diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/snapshots/1-TSESTree-AST.shot index 125a353ad2f2..b5540ee0a4e0 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 @@ -13,10 +13,10 @@ Program { type: "ClassBody", body: [], - range: [27, 29], + range: [26, 28], loc: { - start: { column: 27, line: 1 }, - end: { column: 29, line: 1 }, + start: { column: 26, line: 1 }, + end: { column: 28, line: 1 }, }, }, declare: false, @@ -38,17 +38,17 @@ Program { name: "U", optional: false, - range: [24, 25], + range: [23, 24], loc: { - start: { column: 24, line: 1 }, - end: { column: 25, line: 1 }, + start: { column: 23, line: 1 }, + end: { column: 24, line: 1 }, }, }, - range: [24, 25], + range: [23, 24], loc: { - start: { column: 24, line: 1 }, - end: { column: 25, line: 1 }, + start: { column: 23, line: 1 }, + end: { column: 24, line: 1 }, }, }, in: false, @@ -58,46 +58,46 @@ Program { name: "T", optional: false, - range: [14, 15], + range: [13, 14], loc: { - start: { column: 14, line: 1 }, - end: { column: 15, line: 1 }, + start: { column: 13, line: 1 }, + end: { column: 14, line: 1 }, }, }, out: false, - range: [8, 25], + range: [7, 24], loc: { - start: { column: 8, line: 1 }, - end: { column: 25, line: 1 }, + start: { column: 7, line: 1 }, + end: { column: 24, line: 1 }, }, }, ], - range: [7, 26], + range: [6, 25], loc: { - start: { column: 7, line: 1 }, - end: { column: 26, line: 1 }, + start: { column: 6, line: 1 }, + end: { column: 25, line: 1 }, }, }, - range: [1, 29], + range: [1, 28], loc: { start: { column: 1, line: 1 }, - end: { column: 29, line: 1 }, + end: { column: 28, line: 1 }, }, }, - range: [0, 31], + range: [0, 30], loc: { start: { column: 0, line: 1 }, - end: { column: 31, line: 1 }, + end: { column: 30, line: 1 }, }, }, ], sourceType: "script", - range: [0, 32], + range: [0, 31], loc: { start: { column: 0, line: 1 }, end: { column: 0, line: 2 }, diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/snapshots/2-TSESTree-Tokens.shot index 9cd407c13d33..83290557ac32 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 @@ -26,46 +26,56 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-extends type: "Punctuator", value: "<", - range: [7, 8], + range: [6, 7], loc: { - start: { column: 7, line: 1 }, - end: { column: 8, line: 1 }, + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, }, }, Keyword { type: "Keyword", value: "const", - range: [8, 13], + range: [7, 12], loc: { - start: { column: 8, line: 1 }, - end: { column: 13, line: 1 }, + start: { column: 7, line: 1 }, + end: { column: 12, line: 1 }, }, }, Identifier { type: "Identifier", value: "T", - range: [14, 15], + range: [13, 14], loc: { - start: { column: 14, line: 1 }, - end: { column: 15, line: 1 }, + start: { column: 13, line: 1 }, + end: { column: 14, line: 1 }, }, }, Keyword { type: "Keyword", value: "extends", - range: [16, 23], + range: [15, 22], loc: { - start: { column: 16, line: 1 }, - end: { column: 23, line: 1 }, + start: { column: 15, line: 1 }, + end: { column: 22, line: 1 }, }, }, Identifier { type: "Identifier", value: "U", + range: [23, 24], + loc: { + start: { column: 23, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + range: [24, 25], loc: { start: { column: 24, line: 1 }, @@ -74,17 +84,17 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-extends }, Punctuator { type: "Punctuator", - value: ">", + value: "{", - range: [25, 26], + range: [26, 27], loc: { - start: { column: 25, line: 1 }, - end: { column: 26, line: 1 }, + start: { column: 26, line: 1 }, + end: { column: 27, line: 1 }, }, }, Punctuator { type: "Punctuator", - value: "{", + value: "}", range: [27, 28], loc: { @@ -94,7 +104,7 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-extends }, Punctuator { type: "Punctuator", - value: "}", + value: ")", range: [28, 29], loc: { @@ -104,7 +114,7 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-extends }, Punctuator { type: "Punctuator", - value: ")", + value: ";", range: [29, 30], loc: { @@ -112,15 +122,5 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-extends end: { column: 30, line: 1 }, }, }, - Punctuator { - type: "Punctuator", - value: ";", - - range: [30, 31], - loc: { - start: { column: 30, line: 1 }, - end: { column: 31, line: 1 }, - }, - }, ] `; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/snapshots/3-Babel-AST.shot index 6f6690c12313..833f4168997e 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 @@ -12,10 +12,10 @@ Program { type: "ClassBody", body: [], - range: [27, 29], + range: [26, 28], loc: { - start: { column: 27, line: 1 }, - end: { column: 29, line: 1 }, + start: { column: 26, line: 1 }, + end: { column: 28, line: 1 }, }, }, id: null, @@ -32,53 +32,53 @@ Program { type: "Identifier", name: "U", - range: [24, 25], + range: [23, 24], loc: { - start: { column: 24, line: 1 }, - end: { column: 25, line: 1 }, + start: { column: 23, line: 1 }, + end: { column: 24, line: 1 }, }, }, - range: [24, 25], + range: [23, 24], loc: { - start: { column: 24, line: 1 }, - end: { column: 25, line: 1 }, + start: { column: 23, line: 1 }, + end: { column: 24, line: 1 }, }, }, name: "T", - range: [8, 25], + range: [7, 24], loc: { - start: { column: 8, line: 1 }, - end: { column: 25, line: 1 }, + start: { column: 7, line: 1 }, + end: { column: 24, line: 1 }, }, }, ], - range: [7, 26], + range: [6, 25], loc: { - start: { column: 7, line: 1 }, - end: { column: 26, line: 1 }, + start: { column: 6, line: 1 }, + end: { column: 25, line: 1 }, }, }, - range: [1, 29], + range: [1, 28], loc: { start: { column: 1, line: 1 }, - end: { column: 29, line: 1 }, + end: { column: 28, line: 1 }, }, }, - range: [0, 31], + range: [0, 30], loc: { start: { column: 0, line: 1 }, - end: { column: 31, line: 1 }, + end: { column: 30, line: 1 }, }, }, ], sourceType: "script", - range: [0, 32], + range: [0, 31], loc: { start: { column: 0, line: 1 }, end: { column: 0, line: 2 }, diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/snapshots/4-Babel-Tokens.shot index 8878acf69126..79fc39d63dd8 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 @@ -26,46 +26,56 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-extends type: "Punctuator", value: "<", - range: [7, 8], + range: [6, 7], loc: { - start: { column: 7, line: 1 }, - end: { column: 8, line: 1 }, + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, }, }, Keyword { type: "Keyword", value: "const", - range: [8, 13], + range: [7, 12], loc: { - start: { column: 8, line: 1 }, - end: { column: 13, line: 1 }, + start: { column: 7, line: 1 }, + end: { column: 12, line: 1 }, }, }, Identifier { type: "Identifier", value: "T", - range: [14, 15], + range: [13, 14], loc: { - start: { column: 14, line: 1 }, - end: { column: 15, line: 1 }, + start: { column: 13, line: 1 }, + end: { column: 14, line: 1 }, }, }, Keyword { type: "Keyword", value: "extends", - range: [16, 23], + range: [15, 22], loc: { - start: { column: 16, line: 1 }, - end: { column: 23, line: 1 }, + start: { column: 15, line: 1 }, + end: { column: 22, line: 1 }, }, }, Identifier { type: "Identifier", value: "U", + range: [23, 24], + loc: { + start: { column: 23, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + range: [24, 25], loc: { start: { column: 24, line: 1 }, @@ -74,17 +84,17 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-extends }, Punctuator { type: "Punctuator", - value: ">", + value: "{", - range: [25, 26], + range: [26, 27], loc: { - start: { column: 25, line: 1 }, - end: { column: 26, line: 1 }, + start: { column: 26, line: 1 }, + end: { column: 27, line: 1 }, }, }, Punctuator { type: "Punctuator", - value: "{", + value: "}", range: [27, 28], loc: { @@ -94,7 +104,7 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-extends }, Punctuator { type: "Punctuator", - value: "}", + value: ")", range: [28, 29], loc: { @@ -104,7 +114,7 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-extends }, Punctuator { type: "Punctuator", - value: ")", + value: ";", range: [29, 30], loc: { @@ -112,15 +122,5 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-extends end: { column: 30, line: 1 }, }, }, - Punctuator { - type: "Punctuator", - value: ";", - - range: [30, 31], - loc: { - start: { column: 30, line: 1 }, - end: { column: 31, line: 1 }, - }, - }, ] `; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/snapshots/5-AST-Alignment-AST.shot index 076a347f025f..7080150612d3 100644 --- a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-extends/snapshots/5-AST-Alignment-AST.shot @@ -17,10 +17,10 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-extends type: 'ClassBody', body: Array [], - range: [27, 29], + range: [26, 28], loc: { - start: { column: 27, line: 1 }, - end: { column: 29, line: 1 }, + start: { column: 26, line: 1 }, + end: { column: 28, line: 1 }, }, }, - declare: false, @@ -42,17 +42,17 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-extends name: 'U', - optional: false, - range: [24, 25], + range: [23, 24], loc: { - start: { column: 24, line: 1 }, - end: { column: 25, line: 1 }, + start: { column: 23, line: 1 }, + end: { column: 24, line: 1 }, }, }, - range: [24, 25], + range: [23, 24], loc: { - start: { column: 24, line: 1 }, - end: { column: 25, line: 1 }, + start: { column: 23, line: 1 }, + end: { column: 24, line: 1 }, }, }, - in: false, @@ -62,47 +62,47 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-extends - name: 'T', - optional: false, - -- range: [14, 15], +- range: [13, 14], - loc: { -- start: { column: 14, line: 1 }, -- end: { column: 15, line: 1 }, +- start: { column: 13, line: 1 }, +- end: { column: 14, line: 1 }, - }, - }, - out: false, + name: 'T', - range: [8, 25], + range: [7, 24], loc: { - start: { column: 8, line: 1 }, - end: { column: 25, line: 1 }, + start: { column: 7, line: 1 }, + end: { column: 24, line: 1 }, }, }, ], - range: [7, 26], + range: [6, 25], loc: { - start: { column: 7, line: 1 }, - end: { column: 26, line: 1 }, + start: { column: 6, line: 1 }, + end: { column: 25, line: 1 }, }, }, - range: [1, 29], + range: [1, 28], loc: { start: { column: 1, line: 1 }, - end: { column: 29, line: 1 }, + end: { column: 28, line: 1 }, }, }, - range: [0, 31], + range: [0, 30], loc: { start: { column: 0, line: 1 }, - end: { column: 31, line: 1 }, + end: { column: 30, line: 1 }, }, }, ], sourceType: 'script', - range: [0, 32], + range: [0, 31], loc: { start: { column: 0, line: 1 }, end: { column: 0, line: 2 }, diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/snapshots/1-TSESTree-AST.shot index a8c6cf44d81a..8abc80358098 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 @@ -13,10 +13,10 @@ Program { type: "ClassBody", body: [], - range: [20, 22], + range: [19, 21], loc: { - start: { column: 20, line: 1 }, - end: { column: 22, line: 1 }, + start: { column: 19, line: 1 }, + end: { column: 21, line: 1 }, }, }, declare: false, @@ -37,18 +37,18 @@ Program { name: "T", optional: false, - range: [8, 9], + range: [7, 8], loc: { - start: { column: 8, line: 1 }, - end: { column: 9, line: 1 }, + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, }, }, out: false, - range: [8, 9], + range: [7, 8], loc: { - start: { column: 8, line: 1 }, - end: { column: 9, line: 1 }, + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, }, }, TSTypeParameter { @@ -61,46 +61,46 @@ Program { name: "U", optional: false, - range: [17, 18], + range: [16, 17], loc: { - start: { column: 17, line: 1 }, - end: { column: 18, line: 1 }, + start: { column: 16, line: 1 }, + end: { column: 17, line: 1 }, }, }, out: false, - range: [11, 18], + range: [10, 17], loc: { - start: { column: 11, line: 1 }, - end: { column: 18, line: 1 }, + start: { column: 10, line: 1 }, + end: { column: 17, line: 1 }, }, }, ], - range: [7, 19], + range: [6, 18], loc: { - start: { column: 7, line: 1 }, - end: { column: 19, line: 1 }, + start: { column: 6, line: 1 }, + end: { column: 18, line: 1 }, }, }, - range: [1, 22], + range: [1, 21], loc: { start: { column: 1, line: 1 }, - end: { column: 22, line: 1 }, + end: { column: 21, line: 1 }, }, }, - range: [0, 24], + range: [0, 23], loc: { start: { column: 0, line: 1 }, - end: { column: 24, line: 1 }, + end: { column: 23, line: 1 }, }, }, ], sourceType: "script", - range: [0, 25], + range: [0, 24], loc: { start: { column: 0, line: 1 }, end: { column: 0, line: 2 }, diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/snapshots/2-TSESTree-Tokens.shot index 825375374759..91c2253f6df6 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 @@ -26,46 +26,56 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-multiple type: "Punctuator", value: "<", - range: [7, 8], + range: [6, 7], loc: { - start: { column: 7, line: 1 }, - end: { column: 8, line: 1 }, + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, }, }, Identifier { type: "Identifier", value: "T", - range: [8, 9], + range: [7, 8], loc: { - start: { column: 8, line: 1 }, - end: { column: 9, line: 1 }, + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, }, }, Punctuator { type: "Punctuator", value: ",", - range: [9, 10], + range: [8, 9], loc: { - start: { column: 9, line: 1 }, - end: { column: 10, line: 1 }, + start: { column: 8, line: 1 }, + end: { column: 9, line: 1 }, }, }, Keyword { type: "Keyword", value: "const", - range: [11, 16], + range: [10, 15], loc: { - start: { column: 11, line: 1 }, - end: { column: 16, line: 1 }, + start: { column: 10, line: 1 }, + end: { column: 15, line: 1 }, }, }, Identifier { type: "Identifier", value: "U", + range: [16, 17], + loc: { + start: { column: 16, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + range: [17, 18], loc: { start: { column: 17, line: 1 }, @@ -74,17 +84,17 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-multiple }, Punctuator { type: "Punctuator", - value: ">", + value: "{", - range: [18, 19], + range: [19, 20], loc: { - start: { column: 18, line: 1 }, - end: { column: 19, line: 1 }, + start: { column: 19, line: 1 }, + end: { column: 20, line: 1 }, }, }, Punctuator { type: "Punctuator", - value: "{", + value: "}", range: [20, 21], loc: { @@ -94,7 +104,7 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-multiple }, Punctuator { type: "Punctuator", - value: "}", + value: ")", range: [21, 22], loc: { @@ -104,7 +114,7 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-multiple }, Punctuator { type: "Punctuator", - value: ")", + value: ";", range: [22, 23], loc: { @@ -112,15 +122,5 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-multiple end: { column: 23, line: 1 }, }, }, - Punctuator { - type: "Punctuator", - value: ";", - - range: [23, 24], - loc: { - start: { column: 23, line: 1 }, - end: { column: 24, line: 1 }, - }, - }, ] `; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/snapshots/3-Babel-AST.shot index 70dec76e302f..747e704ca760 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 @@ -12,10 +12,10 @@ Program { type: "ClassBody", body: [], - range: [20, 22], + range: [19, 21], loc: { - start: { column: 20, line: 1 }, - end: { column: 22, line: 1 }, + start: { column: 19, line: 1 }, + end: { column: 21, line: 1 }, }, }, id: null, @@ -27,10 +27,10 @@ Program { type: "TSTypeParameter", name: "T", - range: [8, 9], + range: [7, 8], loc: { - start: { column: 8, line: 1 }, - end: { column: 9, line: 1 }, + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, }, }, TSTypeParameter { @@ -38,38 +38,38 @@ Program { const: true, name: "U", - range: [11, 18], + range: [10, 17], loc: { - start: { column: 11, line: 1 }, - end: { column: 18, line: 1 }, + start: { column: 10, line: 1 }, + end: { column: 17, line: 1 }, }, }, ], - range: [7, 19], + range: [6, 18], loc: { - start: { column: 7, line: 1 }, - end: { column: 19, line: 1 }, + start: { column: 6, line: 1 }, + end: { column: 18, line: 1 }, }, }, - range: [1, 22], + range: [1, 21], loc: { start: { column: 1, line: 1 }, - end: { column: 22, line: 1 }, + end: { column: 21, line: 1 }, }, }, - range: [0, 24], + range: [0, 23], loc: { start: { column: 0, line: 1 }, - end: { column: 24, line: 1 }, + end: { column: 23, line: 1 }, }, }, ], sourceType: "script", - range: [0, 25], + range: [0, 24], loc: { start: { column: 0, line: 1 }, end: { column: 0, line: 2 }, diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/snapshots/4-Babel-Tokens.shot index dd07dc882c06..c116c98c12ed 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 @@ -26,46 +26,56 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-multiple type: "Punctuator", value: "<", - range: [7, 8], + range: [6, 7], loc: { - start: { column: 7, line: 1 }, - end: { column: 8, line: 1 }, + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, }, }, Identifier { type: "Identifier", value: "T", - range: [8, 9], + range: [7, 8], loc: { - start: { column: 8, line: 1 }, - end: { column: 9, line: 1 }, + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, }, }, Punctuator { type: "Punctuator", value: ",", - range: [9, 10], + range: [8, 9], loc: { - start: { column: 9, line: 1 }, - end: { column: 10, line: 1 }, + start: { column: 8, line: 1 }, + end: { column: 9, line: 1 }, }, }, Keyword { type: "Keyword", value: "const", - range: [11, 16], + range: [10, 15], loc: { - start: { column: 11, line: 1 }, - end: { column: 16, line: 1 }, + start: { column: 10, line: 1 }, + end: { column: 15, line: 1 }, }, }, Identifier { type: "Identifier", value: "U", + range: [16, 17], + loc: { + start: { column: 16, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + range: [17, 18], loc: { start: { column: 17, line: 1 }, @@ -74,17 +84,17 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-multiple }, Punctuator { type: "Punctuator", - value: ">", + value: "{", - range: [18, 19], + range: [19, 20], loc: { - start: { column: 18, line: 1 }, - end: { column: 19, line: 1 }, + start: { column: 19, line: 1 }, + end: { column: 20, line: 1 }, }, }, Punctuator { type: "Punctuator", - value: "{", + value: "}", range: [20, 21], loc: { @@ -94,7 +104,7 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-multiple }, Punctuator { type: "Punctuator", - value: "}", + value: ")", range: [21, 22], loc: { @@ -104,7 +114,7 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-multiple }, Punctuator { type: "Punctuator", - value: ")", + value: ";", range: [22, 23], loc: { @@ -112,15 +122,5 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-multiple end: { column: 23, line: 1 }, }, }, - Punctuator { - type: "Punctuator", - value: ";", - - range: [23, 24], - loc: { - start: { column: 23, line: 1 }, - end: { column: 24, line: 1 }, - }, - }, ] `; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/snapshots/5-AST-Alignment-AST.shot index 8ff0271450e5..fa9b0915d71e 100644 --- a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier-multiple/snapshots/5-AST-Alignment-AST.shot @@ -17,10 +17,10 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-multiple type: 'ClassBody', body: Array [], - range: [20, 22], + range: [19, 21], loc: { - start: { column: 20, line: 1 }, - end: { column: 22, line: 1 }, + start: { column: 19, line: 1 }, + end: { column: 21, line: 1 }, }, }, - declare: false, @@ -41,19 +41,19 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-multiple - name: 'T', - optional: false, - -- range: [8, 9], +- range: [7, 8], - loc: { -- start: { column: 8, line: 1 }, -- end: { column: 9, line: 1 }, +- start: { column: 7, line: 1 }, +- end: { column: 8, line: 1 }, - }, - }, - out: false, + name: 'T', - range: [8, 9], + range: [7, 8], loc: { - start: { column: 8, line: 1 }, - end: { column: 9, line: 1 }, + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, }, }, TSTypeParameter { @@ -66,47 +66,47 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier-multiple - name: 'U', - optional: false, - -- range: [17, 18], +- range: [16, 17], - loc: { -- start: { column: 17, line: 1 }, -- end: { column: 18, line: 1 }, +- start: { column: 16, line: 1 }, +- end: { column: 17, line: 1 }, - }, - }, - out: false, + name: 'U', - range: [11, 18], + range: [10, 17], loc: { - start: { column: 11, line: 1 }, - end: { column: 18, line: 1 }, + start: { column: 10, line: 1 }, + end: { column: 17, line: 1 }, }, }, ], - range: [7, 19], + range: [6, 18], loc: { - start: { column: 7, line: 1 }, - end: { column: 19, line: 1 }, + start: { column: 6, line: 1 }, + end: { column: 18, line: 1 }, }, }, - range: [1, 22], + range: [1, 21], loc: { start: { column: 1, line: 1 }, - end: { column: 22, line: 1 }, + end: { column: 21, line: 1 }, }, }, - range: [0, 24], + range: [0, 23], loc: { start: { column: 0, line: 1 }, - end: { column: 24, line: 1 }, + end: { column: 23, line: 1 }, }, }, ], sourceType: 'script', - range: [0, 25], + range: [0, 24], loc: { start: { column: 0, line: 1 }, end: { column: 0, line: 2 }, diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier/snapshots/1-TSESTree-AST.shot index ffc7d16c1be6..247ae9c75e9e 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 @@ -13,10 +13,10 @@ Program { type: "ClassBody", body: [], - range: [17, 19], + range: [16, 18], loc: { - start: { column: 17, line: 1 }, - end: { column: 19, line: 1 }, + start: { column: 16, line: 1 }, + end: { column: 18, line: 1 }, }, }, declare: false, @@ -37,46 +37,46 @@ Program { name: "T", optional: false, - range: [14, 15], + range: [13, 14], loc: { - start: { column: 14, line: 1 }, - end: { column: 15, line: 1 }, + start: { column: 13, line: 1 }, + end: { column: 14, line: 1 }, }, }, out: false, - range: [8, 15], + range: [7, 14], loc: { - start: { column: 8, line: 1 }, - end: { column: 15, line: 1 }, + start: { column: 7, line: 1 }, + end: { column: 14, line: 1 }, }, }, ], - range: [7, 16], + range: [6, 15], loc: { - start: { column: 7, line: 1 }, - end: { column: 16, line: 1 }, + start: { column: 6, line: 1 }, + end: { column: 15, line: 1 }, }, }, - range: [1, 19], + range: [1, 18], loc: { start: { column: 1, line: 1 }, - end: { column: 19, line: 1 }, + end: { column: 18, line: 1 }, }, }, - range: [0, 21], + range: [0, 20], loc: { start: { column: 0, line: 1 }, - end: { column: 21, line: 1 }, + end: { column: 20, line: 1 }, }, }, ], sourceType: "script", - range: [0, 22], + range: [0, 21], loc: { start: { column: 0, line: 1 }, end: { column: 0, line: 2 }, diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier/snapshots/2-TSESTree-Tokens.shot index a599070370a6..86f39a94072f 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 @@ -26,26 +26,36 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier TSESTree type: "Punctuator", value: "<", - range: [7, 8], + range: [6, 7], loc: { - start: { column: 7, line: 1 }, - end: { column: 8, line: 1 }, + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, }, }, Keyword { type: "Keyword", value: "const", - range: [8, 13], + range: [7, 12], loc: { - start: { column: 8, line: 1 }, - end: { column: 13, line: 1 }, + start: { column: 7, line: 1 }, + end: { column: 12, line: 1 }, }, }, Identifier { type: "Identifier", value: "T", + range: [13, 14], + loc: { + start: { column: 13, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + range: [14, 15], loc: { start: { column: 14, line: 1 }, @@ -54,17 +64,17 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier TSESTree }, Punctuator { type: "Punctuator", - value: ">", + value: "{", - range: [15, 16], + range: [16, 17], loc: { - start: { column: 15, line: 1 }, - end: { column: 16, line: 1 }, + start: { column: 16, line: 1 }, + end: { column: 17, line: 1 }, }, }, Punctuator { type: "Punctuator", - value: "{", + value: "}", range: [17, 18], loc: { @@ -74,7 +84,7 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier TSESTree }, Punctuator { type: "Punctuator", - value: "}", + value: ")", range: [18, 19], loc: { @@ -84,7 +94,7 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier TSESTree }, Punctuator { type: "Punctuator", - value: ")", + value: ";", range: [19, 20], loc: { @@ -92,15 +102,5 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier TSESTree end: { column: 20, line: 1 }, }, }, - Punctuator { - type: "Punctuator", - value: ";", - - range: [20, 21], - loc: { - start: { column: 20, line: 1 }, - end: { column: 21, line: 1 }, - }, - }, ] `; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier/snapshots/3-Babel-AST.shot index 592ea11dcc9a..ebbfa104d17b 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 @@ -12,10 +12,10 @@ Program { type: "ClassBody", body: [], - range: [17, 19], + range: [16, 18], loc: { - start: { column: 17, line: 1 }, - end: { column: 19, line: 1 }, + start: { column: 16, line: 1 }, + end: { column: 18, line: 1 }, }, }, id: null, @@ -28,38 +28,38 @@ Program { const: true, name: "T", - range: [8, 15], + range: [7, 14], loc: { - start: { column: 8, line: 1 }, - end: { column: 15, line: 1 }, + start: { column: 7, line: 1 }, + end: { column: 14, line: 1 }, }, }, ], - range: [7, 16], + range: [6, 15], loc: { - start: { column: 7, line: 1 }, - end: { column: 16, line: 1 }, + start: { column: 6, line: 1 }, + end: { column: 15, line: 1 }, }, }, - range: [1, 19], + range: [1, 18], loc: { start: { column: 1, line: 1 }, - end: { column: 19, line: 1 }, + end: { column: 18, line: 1 }, }, }, - range: [0, 21], + range: [0, 20], loc: { start: { column: 0, line: 1 }, - end: { column: 21, line: 1 }, + end: { column: 20, line: 1 }, }, }, ], sourceType: "script", - range: [0, 22], + range: [0, 21], loc: { start: { column: 0, line: 1 }, end: { column: 0, line: 2 }, diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier/snapshots/4-Babel-Tokens.shot index 0e54bfc1447d..08e1929b1700 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 @@ -26,26 +26,36 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier Babel - type: "Punctuator", value: "<", - range: [7, 8], + range: [6, 7], loc: { - start: { column: 7, line: 1 }, - end: { column: 8, line: 1 }, + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, }, }, Keyword { type: "Keyword", value: "const", - range: [8, 13], + range: [7, 12], loc: { - start: { column: 8, line: 1 }, - end: { column: 13, line: 1 }, + start: { column: 7, line: 1 }, + end: { column: 12, line: 1 }, }, }, Identifier { type: "Identifier", value: "T", + range: [13, 14], + loc: { + start: { column: 13, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + range: [14, 15], loc: { start: { column: 14, line: 1 }, @@ -54,17 +64,17 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier Babel - }, Punctuator { type: "Punctuator", - value: ">", + value: "{", - range: [15, 16], + range: [16, 17], loc: { - start: { column: 15, line: 1 }, - end: { column: 16, line: 1 }, + start: { column: 16, line: 1 }, + end: { column: 17, line: 1 }, }, }, Punctuator { type: "Punctuator", - value: "{", + value: "}", range: [17, 18], loc: { @@ -74,7 +84,7 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier Babel - }, Punctuator { type: "Punctuator", - value: "}", + value: ")", range: [18, 19], loc: { @@ -84,7 +94,7 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier Babel - }, Punctuator { type: "Punctuator", - value: ")", + value: ";", range: [19, 20], loc: { @@ -92,15 +102,5 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier Babel - end: { column: 20, line: 1 }, }, }, - Punctuator { - type: "Punctuator", - value: ";", - - range: [20, 21], - loc: { - start: { column: 20, line: 1 }, - end: { column: 21, line: 1 }, - }, - }, ] `; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier/snapshots/5-AST-Alignment-AST.shot index 05e22d460f7e..ad1ae38b608b 100644 --- a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-const-modifier/snapshots/5-AST-Alignment-AST.shot @@ -17,10 +17,10 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier AST Alig type: 'ClassBody', body: Array [], - range: [17, 19], + range: [16, 18], loc: { - start: { column: 17, line: 1 }, - end: { column: 19, line: 1 }, + start: { column: 16, line: 1 }, + end: { column: 18, line: 1 }, }, }, - declare: false, @@ -41,47 +41,47 @@ exports[`AST Fixtures special TSTypeParameter class-expr-const-modifier AST Alig - name: 'T', - optional: false, - -- range: [14, 15], +- range: [13, 14], - loc: { -- start: { column: 14, line: 1 }, -- end: { column: 15, line: 1 }, +- start: { column: 13, line: 1 }, +- end: { column: 14, line: 1 }, - }, - }, - out: false, + name: 'T', - range: [8, 15], + range: [7, 14], loc: { - start: { column: 8, line: 1 }, - end: { column: 15, line: 1 }, + start: { column: 7, line: 1 }, + end: { column: 14, line: 1 }, }, }, ], - range: [7, 16], + range: [6, 15], loc: { - start: { column: 7, line: 1 }, - end: { column: 16, line: 1 }, + start: { column: 6, line: 1 }, + end: { column: 15, line: 1 }, }, }, - range: [1, 19], + range: [1, 18], loc: { start: { column: 1, line: 1 }, - end: { column: 19, line: 1 }, + end: { column: 18, line: 1 }, }, }, - range: [0, 21], + range: [0, 20], loc: { start: { column: 0, line: 1 }, - end: { column: 21, line: 1 }, + end: { column: 20, line: 1 }, }, }, ], sourceType: 'script', - range: [0, 22], + range: [0, 21], loc: { start: { column: 0, line: 1 }, end: { column: 0, line: 2 }, diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-in-const-modifier/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-in-const-modifier/snapshots/1-TSESTree-AST.shot index 5a7a38bb6cb9..466edfe36a9f 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 @@ -13,10 +13,10 @@ Program { type: "ClassBody", body: [], - range: [20, 22], + range: [19, 21], loc: { - start: { column: 20, line: 1 }, - end: { column: 22, line: 1 }, + start: { column: 19, line: 1 }, + end: { column: 21, line: 1 }, }, }, declare: false, @@ -37,46 +37,46 @@ Program { name: "T", optional: false, - range: [17, 18], + range: [16, 17], loc: { - start: { column: 17, line: 1 }, - end: { column: 18, line: 1 }, + start: { column: 16, line: 1 }, + end: { column: 17, line: 1 }, }, }, out: false, - range: [8, 18], + range: [7, 17], loc: { - start: { column: 8, line: 1 }, - end: { column: 18, line: 1 }, + start: { column: 7, line: 1 }, + end: { column: 17, line: 1 }, }, }, ], - range: [7, 19], + range: [6, 18], loc: { - start: { column: 7, line: 1 }, - end: { column: 19, line: 1 }, + start: { column: 6, line: 1 }, + end: { column: 18, line: 1 }, }, }, - range: [1, 22], + range: [1, 21], loc: { start: { column: 1, line: 1 }, - end: { column: 22, line: 1 }, + end: { column: 21, line: 1 }, }, }, - range: [0, 24], + range: [0, 23], loc: { start: { column: 0, line: 1 }, - end: { column: 24, line: 1 }, + end: { column: 23, line: 1 }, }, }, ], sourceType: "script", - range: [0, 25], + range: [0, 24], loc: { start: { column: 0, line: 1 }, end: { column: 0, line: 2 }, diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-in-const-modifier/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-in-const-modifier/snapshots/2-TSESTree-Tokens.shot index 1046c2c28015..d7fac0446d86 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 @@ -26,36 +26,46 @@ exports[`AST Fixtures special TSTypeParameter class-expr-in-const-modifier TSEST type: "Punctuator", value: "<", - range: [7, 8], + range: [6, 7], loc: { - start: { column: 7, line: 1 }, - end: { column: 8, line: 1 }, + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, }, }, Keyword { type: "Keyword", - value: "in", + value: "const", - range: [8, 10], + range: [7, 12], loc: { - start: { column: 8, line: 1 }, - end: { column: 10, line: 1 }, + start: { column: 7, line: 1 }, + end: { column: 12, line: 1 }, }, }, Keyword { type: "Keyword", - value: "const", + value: "in", - range: [11, 16], + range: [13, 15], loc: { - start: { column: 11, line: 1 }, - end: { column: 16, line: 1 }, + start: { column: 13, line: 1 }, + end: { column: 15, line: 1 }, }, }, Identifier { type: "Identifier", value: "T", + range: [16, 17], + loc: { + start: { column: 16, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + range: [17, 18], loc: { start: { column: 17, line: 1 }, @@ -64,17 +74,17 @@ exports[`AST Fixtures special TSTypeParameter class-expr-in-const-modifier TSEST }, Punctuator { type: "Punctuator", - value: ">", + value: "{", - range: [18, 19], + range: [19, 20], loc: { - start: { column: 18, line: 1 }, - end: { column: 19, line: 1 }, + start: { column: 19, line: 1 }, + end: { column: 20, line: 1 }, }, }, Punctuator { type: "Punctuator", - value: "{", + value: "}", range: [20, 21], loc: { @@ -84,7 +94,7 @@ exports[`AST Fixtures special TSTypeParameter class-expr-in-const-modifier TSEST }, Punctuator { type: "Punctuator", - value: "}", + value: ")", range: [21, 22], loc: { @@ -94,7 +104,7 @@ exports[`AST Fixtures special TSTypeParameter class-expr-in-const-modifier TSEST }, Punctuator { type: "Punctuator", - value: ")", + value: ";", range: [22, 23], loc: { @@ -102,15 +112,5 @@ exports[`AST Fixtures special TSTypeParameter class-expr-in-const-modifier TSEST end: { column: 23, line: 1 }, }, }, - Punctuator { - type: "Punctuator", - value: ";", - - range: [23, 24], - loc: { - start: { column: 23, line: 1 }, - end: { column: 24, line: 1 }, - }, - }, ] `; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-in-const-modifier/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-in-const-modifier/snapshots/3-Babel-AST.shot index 3229c6fab61b..9993404c4e92 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 @@ -12,10 +12,10 @@ Program { type: "ClassBody", body: [], - range: [20, 22], + range: [19, 21], loc: { - start: { column: 20, line: 1 }, - end: { column: 22, line: 1 }, + start: { column: 19, line: 1 }, + end: { column: 21, line: 1 }, }, }, id: null, @@ -29,38 +29,38 @@ Program { in: true, name: "T", - range: [8, 18], + range: [7, 17], loc: { - start: { column: 8, line: 1 }, - end: { column: 18, line: 1 }, + start: { column: 7, line: 1 }, + end: { column: 17, line: 1 }, }, }, ], - range: [7, 19], + range: [6, 18], loc: { - start: { column: 7, line: 1 }, - end: { column: 19, line: 1 }, + start: { column: 6, line: 1 }, + end: { column: 18, line: 1 }, }, }, - range: [1, 22], + range: [1, 21], loc: { start: { column: 1, line: 1 }, - end: { column: 22, line: 1 }, + end: { column: 21, line: 1 }, }, }, - range: [0, 24], + range: [0, 23], loc: { start: { column: 0, line: 1 }, - end: { column: 24, line: 1 }, + end: { column: 23, line: 1 }, }, }, ], sourceType: "script", - range: [0, 25], + range: [0, 24], loc: { start: { column: 0, line: 1 }, end: { column: 0, line: 2 }, diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-in-const-modifier/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-in-const-modifier/snapshots/4-Babel-Tokens.shot index 3cdb8cd44bc7..9f93e854f08d 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 @@ -26,36 +26,46 @@ exports[`AST Fixtures special TSTypeParameter class-expr-in-const-modifier Babel type: "Punctuator", value: "<", - range: [7, 8], + range: [6, 7], loc: { - start: { column: 7, line: 1 }, - end: { column: 8, line: 1 }, + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, }, }, Keyword { type: "Keyword", - value: "in", + value: "const", - range: [8, 10], + range: [7, 12], loc: { - start: { column: 8, line: 1 }, - end: { column: 10, line: 1 }, + start: { column: 7, line: 1 }, + end: { column: 12, line: 1 }, }, }, Keyword { type: "Keyword", - value: "const", + value: "in", - range: [11, 16], + range: [13, 15], loc: { - start: { column: 11, line: 1 }, - end: { column: 16, line: 1 }, + start: { column: 13, line: 1 }, + end: { column: 15, line: 1 }, }, }, Identifier { type: "Identifier", value: "T", + range: [16, 17], + loc: { + start: { column: 16, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ">", + range: [17, 18], loc: { start: { column: 17, line: 1 }, @@ -64,17 +74,17 @@ exports[`AST Fixtures special TSTypeParameter class-expr-in-const-modifier Babel }, Punctuator { type: "Punctuator", - value: ">", + value: "{", - range: [18, 19], + range: [19, 20], loc: { - start: { column: 18, line: 1 }, - end: { column: 19, line: 1 }, + start: { column: 19, line: 1 }, + end: { column: 20, line: 1 }, }, }, Punctuator { type: "Punctuator", - value: "{", + value: "}", range: [20, 21], loc: { @@ -84,7 +94,7 @@ exports[`AST Fixtures special TSTypeParameter class-expr-in-const-modifier Babel }, Punctuator { type: "Punctuator", - value: "}", + value: ")", range: [21, 22], loc: { @@ -94,7 +104,7 @@ exports[`AST Fixtures special TSTypeParameter class-expr-in-const-modifier Babel }, Punctuator { type: "Punctuator", - value: ")", + value: ";", range: [22, 23], loc: { @@ -102,15 +112,5 @@ exports[`AST Fixtures special TSTypeParameter class-expr-in-const-modifier Babel end: { column: 23, line: 1 }, }, }, - Punctuator { - type: "Punctuator", - value: ";", - - range: [23, 24], - loc: { - start: { column: 23, line: 1 }, - end: { column: 24, line: 1 }, - }, - }, ] `; diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-in-const-modifier/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-in-const-modifier/snapshots/5-AST-Alignment-AST.shot index e92dc3b1d949..700e89790ccf 100644 --- a/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-in-const-modifier/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/class-expr-in-const-modifier/snapshots/5-AST-Alignment-AST.shot @@ -17,10 +17,10 @@ exports[`AST Fixtures special TSTypeParameter class-expr-in-const-modifier AST A type: 'ClassBody', body: Array [], - range: [20, 22], + range: [19, 21], loc: { - start: { column: 20, line: 1 }, - end: { column: 22, line: 1 }, + start: { column: 19, line: 1 }, + end: { column: 21, line: 1 }, }, }, - declare: false, @@ -41,47 +41,47 @@ exports[`AST Fixtures special TSTypeParameter class-expr-in-const-modifier AST A - name: 'T', - optional: false, - -- range: [17, 18], +- range: [16, 17], - loc: { -- start: { column: 17, line: 1 }, -- end: { column: 18, line: 1 }, +- start: { column: 16, line: 1 }, +- end: { column: 17, line: 1 }, - }, - }, - out: false, + name: 'T', - range: [8, 18], + range: [7, 17], loc: { - start: { column: 8, line: 1 }, - end: { column: 18, line: 1 }, + start: { column: 7, line: 1 }, + end: { column: 17, line: 1 }, }, }, ], - range: [7, 19], + range: [6, 18], loc: { - start: { column: 7, line: 1 }, - end: { column: 19, line: 1 }, + start: { column: 6, line: 1 }, + end: { column: 18, line: 1 }, }, }, - range: [1, 22], + range: [1, 21], loc: { start: { column: 1, line: 1 }, - end: { column: 22, line: 1 }, + end: { column: 21, line: 1 }, }, }, - range: [0, 24], + range: [0, 23], loc: { start: { column: 0, line: 1 }, - end: { column: 24, line: 1 }, + end: { column: 23, line: 1 }, }, }, ], sourceType: 'script', - range: [0, 25], + range: [0, 24], loc: { start: { column: 0, line: 1 }, end: { column: 0, line: 2 }, diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-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 abc1c07187ed..ed7fba0e8d86 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 @@ -34,21 +34,21 @@ exports[`AST Fixtures special TSTypeParameter interface-in-const-modifier-multip }, Keyword { type: "Keyword", - value: "in", + value: "const", - range: [12, 14], + range: [12, 17], loc: { start: { column: 12, line: 1 }, - end: { column: 14, line: 1 }, + end: { column: 17, line: 1 }, }, }, Keyword { type: "Keyword", - value: "const", + value: "in", - range: [15, 20], + range: [18, 20], loc: { - start: { column: 15, line: 1 }, + start: { column: 18, line: 1 }, end: { column: 20, line: 1 }, }, }, 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 b2701779685b..274070dae74e 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 @@ -34,21 +34,21 @@ exports[`AST Fixtures special TSTypeParameter interface-in-const-modifier-multip }, Keyword { type: "Keyword", - value: "in", + value: "const", - range: [12, 14], + range: [12, 17], loc: { start: { column: 12, line: 1 }, - end: { column: 14, line: 1 }, + end: { column: 17, line: 1 }, }, }, Keyword { type: "Keyword", - value: "const", + value: "in", - range: [15, 20], + range: [18, 20], loc: { - start: { column: 15, line: 1 }, + start: { column: 18, line: 1 }, end: { column: 20, line: 1 }, }, }, diff --git a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-in-const-modifier-multiple/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-in-const-modifier-multiple/snapshots/6-AST-Alignment-Tokens.shot index 2968ea8bf5ea..4771009b4633 100644 --- a/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-in-const-modifier-multiple/snapshots/6-AST-Alignment-Tokens.shot +++ b/packages/ast-spec/src/special/TSTypeParameter/fixtures/interface-in-const-modifier-multiple/snapshots/6-AST-Alignment-Tokens.shot @@ -40,21 +40,21 @@ exports[`AST Fixtures special TSTypeParameter interface-in-const-modifier-multip }, Keyword { type: 'Keyword', - value: 'in', + value: 'const', - range: [12, 14], + range: [12, 17], loc: { start: { column: 12, line: 1 }, - end: { column: 14, line: 1 }, + end: { column: 17, line: 1 }, }, }, Keyword { type: 'Keyword', - value: 'const', + value: 'in', - range: [15, 20], + range: [18, 20], loc: { - start: { column: 15, line: 1 }, + start: { column: 18, line: 1 }, end: { column: 20, line: 1 }, }, }, From 5b93a476d09eda96a61ee97ec4694a8cd6d7d9cb Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Thu, 17 Oct 2024 12:06:03 -0400 Subject: [PATCH 14/14] Remove api-extractor patch --- ...-api-extractor-npm-7.47.9-d69a694fc6.patch | 44 ------------------- package.json | 5 +-- packages/ast-spec/package.json | 2 +- yarn.lock | 43 +++++------------- 4 files changed, 13 insertions(+), 81 deletions(-) delete mode 100644 .yarn/patches/@microsoft-api-extractor-npm-7.47.9-d69a694fc6.patch diff --git a/.yarn/patches/@microsoft-api-extractor-npm-7.47.9-d69a694fc6.patch b/.yarn/patches/@microsoft-api-extractor-npm-7.47.9-d69a694fc6.patch deleted file mode 100644 index e883bb4b1a99..000000000000 --- a/.yarn/patches/@microsoft-api-extractor-npm-7.47.9-d69a694fc6.patch +++ /dev/null @@ -1,44 +0,0 @@ -diff --git a/lib/analyzer/ExportAnalyzer.js b/lib/analyzer/ExportAnalyzer.js -index 43b4bb171db8f2e51b6a2eaa0cc669f67ec820e8..b60e84802ad4a73d1910266b80c627fd05ae7c27 100644 ---- a/lib/analyzer/ExportAnalyzer.js -+++ b/lib/analyzer/ExportAnalyzer.js -@@ -192,7 +192,11 @@ class ExportAnalyzer { - ? importOrExportDeclaration.argument - : importOrExportDeclaration.moduleSpecifier; - const mode = specifier && ts.isStringLiteralLike(specifier) -- ? TypeScriptInternals_1.TypeScriptInternals.getModeForUsageLocation(importOrExportDeclaration.getSourceFile(), specifier) -+ ? TypeScriptInternals_1.TypeScriptInternals.getModeForUsageLocation( -+ importOrExportDeclaration.getSourceFile(), -+ specifier, -+ this._program.getCompilerOptions() -+ ) - : undefined; - const resolvedModule = TypeScriptInternals_1.TypeScriptInternals.getResolvedModule(this._program, importOrExportDeclaration.getSourceFile(), moduleSpecifier, mode); - if (resolvedModule === undefined) { -@@ -676,7 +680,7 @@ class ExportAnalyzer { - const moduleSpecifier = this._getModuleSpecifier(importOrExportDeclaration); - const mode = importOrExportDeclaration.moduleSpecifier && - ts.isStringLiteralLike(importOrExportDeclaration.moduleSpecifier) -- ? TypeScriptInternals_1.TypeScriptInternals.getModeForUsageLocation(importOrExportDeclaration.getSourceFile(), importOrExportDeclaration.moduleSpecifier) -+ ? TypeScriptInternals_1.TypeScriptInternals.getModeForUsageLocation(importOrExportDeclaration.getSourceFile(), importOrExportDeclaration.moduleSpecifier, this._program.getCompilerOptions()) - : undefined; - const resolvedModule = TypeScriptInternals_1.TypeScriptInternals.getResolvedModule(this._program, importOrExportDeclaration.getSourceFile(), moduleSpecifier, mode); - if (resolvedModule === undefined) { -diff --git a/lib/analyzer/TypeScriptInternals.js b/lib/analyzer/TypeScriptInternals.js -index c72cafa63c0c6669b8389fbed17ecb49179773c3..22775d6d7cfd7bde796d7b44c51f07c7be774c6e 100644 ---- a/lib/analyzer/TypeScriptInternals.js -+++ b/lib/analyzer/TypeScriptInternals.js -@@ -93,11 +93,11 @@ class TypeScriptInternals { - /** - * Gets the mode required for module resolution required with the addition of Node16/nodenext - */ -- static getModeForUsageLocation(file, usage) { -+ static getModeForUsageLocation(file, usage, compilerOptions) { - // Compiler internal: - // https://github.com/microsoft/TypeScript/blob/v4.7.2/src/compiler/program.ts#L568 - var _a, _b; -- return (_b = (_a = ts).getModeForUsageLocation) === null || _b === void 0 ? void 0 : _b.call(_a, file, usage); -+ return (_b = (_a = ts).getModeForUsageLocation) === null || _b === void 0 ? void 0 : _b.call(_a, file, usage, compilerOptions); - } - /** - * Returns ts.Symbol.parent if it exists. diff --git a/package.json b/package.json index c9f83d1b8fe4..0b656908bd71 100644 --- a/package.json +++ b/package.json @@ -138,6 +138,7 @@ "@types/node": "^20.0.0", "@types/react": "^18.2.14", "eslint": "^9", + "eslint-plugin-eslint-plugin@^5.5.0": "patch:eslint-plugin-eslint-plugin@npm%3A5.5.1#./.yarn/patches/eslint-plugin-eslint-plugin-npm-5.5.1-4206c2506d.patch", "eslint-visitor-keys": "^3.4.1", "jest-config": "^29", "jest-resolve": "^29", @@ -147,9 +148,7 @@ "react-split-pane@^0.1.92": "patch:react-split-pane@npm%3A0.1.92#./.yarn/patches/react-split-pane-npm-0.1.92-93dbf51dff.patch", "tmp": "0.2.1", "tsx": "^4.7.2", - "typescript": "5.6.2", - "eslint-plugin-eslint-plugin@^5.5.0": "patch:eslint-plugin-eslint-plugin@npm%3A5.5.1#./.yarn/patches/eslint-plugin-eslint-plugin-npm-5.5.1-4206c2506d.patch", - "@microsoft/api-extractor@^7.47.8": "patch:@microsoft/api-extractor@npm%3A7.47.9#./.yarn/patches/@microsoft-api-extractor-npm-7.47.9-d69a694fc6.patch" + "typescript": "5.6.2" }, "packageManager": "yarn@3.8.2", "nx": { diff --git a/packages/ast-spec/package.json b/packages/ast-spec/package.json index 423bbfb9fef5..691b74f0a14f 100644 --- a/packages/ast-spec/package.json +++ b/packages/ast-spec/package.json @@ -48,7 +48,7 @@ "@babel/core": "*", "@babel/eslint-parser": "*", "@jest/types": "29.6.3", - "@microsoft/api-extractor": "^7.47.8", + "@microsoft/api-extractor": "^7.47.11", "glob": "*", "jest": "29.7.0", "jest-diff": "^29.7.0", diff --git a/yarn.lock b/yarn.lock index 36c60ba9f175..797c02a5cd27 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3895,9 +3895,9 @@ __metadata: languageName: node linkType: hard -"@microsoft/api-extractor@npm:7.47.9": - version: 7.47.9 - resolution: "@microsoft/api-extractor@npm:7.47.9" +"@microsoft/api-extractor@npm:^7.47.11": + version: 7.47.11 + resolution: "@microsoft/api-extractor@npm:7.47.11" dependencies: "@microsoft/api-extractor-model": 7.29.8 "@microsoft/tsdoc": ~0.15.0 @@ -3905,7 +3905,7 @@ __metadata: "@rushstack/node-core-library": 5.9.0 "@rushstack/rig-package": 0.5.3 "@rushstack/terminal": 0.14.2 - "@rushstack/ts-command-line": 4.22.8 + "@rushstack/ts-command-line": 4.23.0 lodash: ~4.17.15 minimatch: ~3.0.3 resolve: ~1.22.1 @@ -3914,30 +3914,7 @@ __metadata: typescript: 5.4.2 bin: api-extractor: bin/api-extractor - checksum: 5e96654b388359bd9a1fb85ea7698921ca0f9dfa9c57e48fc9d28625107fea54863d57c82f4080686f190ae0d6fcd8b7fa7c070e7b8acb359b5cd62137e2bb23 - languageName: node - linkType: hard - -"@microsoft/api-extractor@patch:@microsoft/api-extractor@npm%3A7.47.9#./.yarn/patches/@microsoft-api-extractor-npm-7.47.9-d69a694fc6.patch::locator=%40typescript-eslint%2Ftypescript-eslint%40workspace%3A.": - version: 7.47.9 - resolution: "@microsoft/api-extractor@patch:@microsoft/api-extractor@npm%3A7.47.9#./.yarn/patches/@microsoft-api-extractor-npm-7.47.9-d69a694fc6.patch::version=7.47.9&hash=abab87&locator=%40typescript-eslint%2Ftypescript-eslint%40workspace%3A." - dependencies: - "@microsoft/api-extractor-model": 7.29.8 - "@microsoft/tsdoc": ~0.15.0 - "@microsoft/tsdoc-config": ~0.17.0 - "@rushstack/node-core-library": 5.9.0 - "@rushstack/rig-package": 0.5.3 - "@rushstack/terminal": 0.14.2 - "@rushstack/ts-command-line": 4.22.8 - lodash: ~4.17.15 - minimatch: ~3.0.3 - resolve: ~1.22.1 - semver: ~7.5.4 - source-map: ~0.6.1 - typescript: 5.4.2 - bin: - api-extractor: bin/api-extractor - checksum: 591e477993159a3b619c9167f4a30a641cdae07ff4b04034a746072e0b0ba9257683d8888a32e31162c3b9c2dceb7598625bb3a872a2a006c91e6ced5c816c0e + checksum: 1ae7634c21e20fe191b5297a03b87547b03e9db4ee3439809363e554bcc7610ebd43dd71d30db5fbee573b7f84a2e1fa6ab3bdf320500a266b7c7c1ccc6049b2 languageName: node linkType: hard @@ -4542,15 +4519,15 @@ __metadata: languageName: node linkType: hard -"@rushstack/ts-command-line@npm:4.22.8": - version: 4.22.8 - resolution: "@rushstack/ts-command-line@npm:4.22.8" +"@rushstack/ts-command-line@npm:4.23.0": + version: 4.23.0 + resolution: "@rushstack/ts-command-line@npm:4.23.0" dependencies: "@rushstack/terminal": 0.14.2 "@types/argparse": 1.0.38 argparse: ~1.0.9 string-argv: ~0.3.1 - checksum: b0108e4b567c364a7c62b30dc3e4d17130b6f8ba16a0457c56b8c898ba84316e72726a4e043ca5183da7bf5d0189aed585ab3ac8bce5991b8e80ac94d333cd6c + checksum: 4f3d77c5b2998bbc551d02e882f0c7b8e7aed0d97ad6e4ee45b2d6281a209087f738fc1a021397088ffbe666c4eae462c1d8c4a14dc031dddee2af055b12f794 languageName: node linkType: hard @@ -5648,7 +5625,7 @@ __metadata: "@babel/core": "*" "@babel/eslint-parser": "*" "@jest/types": 29.6.3 - "@microsoft/api-extractor": ^7.47.8 + "@microsoft/api-extractor": ^7.47.11 glob: "*" jest: 29.7.0 jest-diff: ^29.7.0 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy